:root {
  color-scheme: dark;
  --bg: #070a0d;
  --panel: rgba(14, 18, 23, 0.94);
  --panel-2: #0a0e12;
  --line: #1d2724;
  --line-bright: #2c4a3b;
  --text: #f2f6f3;
  --muted: #8c9992;
  --green: #9cf377;
  --green-strong: #43da83;
  --green-dark: #102a1c;
  --danger: #ff7b83;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 3%, rgba(52, 179, 105, 0.1), transparent 27rem),
    linear-gradient(180deg, #080c0e 0%, #07090c 100%);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  top: -18rem;
  left: 50%;
  width: 50rem;
  height: 38rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(53, 227, 121, 0.06);
  filter: blur(90px);
  pointer-events: none;
}

.shell {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(126, 158, 140, 0.1);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(99, 245, 147, 0.08);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tutorial-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #34543f;
  border-radius: 999px;
  color: #d9f4e1;
  background: #122219;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.tutorial-nav-button:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  background: #183021;
}

.tutorial-nav-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.privacy {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #24332b;
  border-radius: 999px;
  color: #a8b5ae;
  background: rgba(10, 15, 12, 0.7);
  font-size: 12px;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero {
  padding: 76px 16px 54px;
  text-align: center;
}

.eyebrow,
.panel-kicker,
.slot-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 10px 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #e9f6ed 0%, var(--green) 64%, #40d989 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 25px;
}

.feature-pills span {
  padding: 7px 12px;
  border: 1px solid #1d2a24;
  border-radius: 7px;
  color: #b3beb8;
  background: rgba(16, 21, 19, 0.78);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  text-decoration: none;
}

.workspace {
  padding-bottom: 70px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.mode-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #9aa69f;
  background: rgba(12, 16, 18, 0.9);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.mode-card:hover {
  transform: translateY(-1px);
  border-color: #34513f;
}

.mode-card.active {
  border-color: #4c845f;
  color: var(--text);
  background: linear-gradient(135deg, rgba(24, 49, 33, 0.95), rgba(13, 22, 17, 0.95));
  box-shadow: inset 0 0 25px rgba(82, 222, 127, 0.04);
}

.mode-card > span:last-child {
  display: grid;
  gap: 5px;
}

.mode-card strong {
  font-size: 15px;
}

.mode-card small {
  color: #78867e;
  font-size: 11px;
}

.cookie-editor-inline {
  width: auto;
  height: auto;
  max-width: none;
  vertical-align: middle;
}

.mode-number {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #29352f;
  border-radius: 9px;
  color: var(--green);
  background: #0c1510;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.mode-action {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin: 0 3px 10px;
}

.mode-action .message {
  flex: 1;
  margin: 0;
}

.mode-action .button {
  min-width: 148px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.input-panel {
  padding: 26px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.input-panel.dragging {
  transform: translateY(-2px);
  border-color: var(--green-strong);
}

.panel-head,
.summary-bar,
.section-head,
.account-card-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2,
.summary-bar h2,
.section-head h2 {
  margin: 6px 0 0;
  font-size: 20px;
}

.panel-head h3 {
  margin: 5px 0 0;
  font-size: 16px;
}

.counter {
  padding: 5px 8px;
  border: 1px solid #222a2e;
  border-radius: 7px;
  color: #77837d;
  background: #0b0e12;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.drop-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 9px;
  color: var(--muted);
  font-size: 12px;
}

.file-button {
  cursor: pointer;
  color: #afc1b6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#file-input {
  display: none;
}

textarea,
input[type="search"] {
  width: 100%;
  border: 1px solid #20282c;
  outline: none;
  color: #dce6e0;
  background: var(--panel-2);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea:focus,
input[type="search"]:focus {
  border-color: #315c44;
  box-shadow: 0 0 0 3px rgba(83, 225, 130, 0.06);
}

#source-input {
  min-height: 320px;
  resize: vertical;
  overflow: auto;
  padding: 18px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}

.append-option {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 13px 2px 0;
  color: #9aa8a0;
  font-size: 12px;
  cursor: pointer;
}

.append-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green-strong);
}

textarea::placeholder,
input::placeholder {
  color: #46504b;
}

.input-actions,
.output-actions,
.detail-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 14px;
}

.button,
.icon-button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #05120a;
  background: linear-gradient(135deg, #a7f683, #48df86);
  box-shadow: 0 8px 24px rgba(76, 218, 127, 0.14);
}

.button.ghost,
.icon-button {
  border-color: #29312e;
  color: #aab6af;
  background: #111614;
}

.button.danger {
  margin-right: auto;
  color: #b9868b;
}

.message {
  min-height: 20px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--green);
}

.results {
  margin-top: 28px;
}

.summary-bar {
  padding: 2px 4px 18px;
}

.summary-stats {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.summary-stats span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(12, 16, 18, 0.8);
  font-size: 12px;
}

.summary-stats strong {
  color: var(--green);
}

.summary-stats .button {
  min-height: 34px;
}

.formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.output-panel {
  padding: 20px;
}

.output {
  min-height: 190px;
  margin-top: 16px;
  resize: vertical;
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre;
}

.accounts-section {
  margin-top: 40px;
}

.section-head {
  margin-bottom: 16px;
}

.account-tools {
  display: flex;
  gap: 7px;
  align-items: center;
}

.account-tools input {
  width: min(230px, 32vw);
}

.page-info {
  min-width: 78px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  text-align: right;
}

.login-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(13, 18, 16, 0.75);
}

.login-export code {
  color: #8ea097;
  font-size: 11px;
}

.login-export > div {
  display: flex;
  gap: 8px;
}

.cookie-count {
  color: #a8e9ba;
  font-size: 11px;
}

.account-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111815;
  box-shadow: var(--shadow);
}

.account-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #34423c;
  border-right: 1px solid #34423c;
  text-align: center;
  vertical-align: middle;
}

.account-table th:last-child,
.account-table td:last-child {
  border-right: 0;
}

.account-table th {
  color: #9caca4;
  background: #16211c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-table tbody tr:hover {
  background: rgba(67, 218, 131, 0.025);
}

.account-row {
  transition: opacity 150ms ease, filter 150ms ease, background 150ms ease;
}

.account-row.is-read {
  opacity: 0.46;
  background: #101311;
  filter: grayscale(1);
}

.account-row.is-read:hover {
  opacity: 0.62;
  background: #151916;
}

.table-hint {
  margin: 6px 0 0;
  color: #718078;
  font-size: 11px;
}

.cookie-install {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #34423c;
  border-radius: 13px;
  background: #111815;
}

.cookie-install-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #91a198;
  font-size: 11px;
}

.cookie-install-title img {
  width: auto;
  height: auto;
  max-width: none;
}

.cookie-install-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(120px, 0.55fr);
  gap: 9px;
}

.browser-install,
.tutorial-placeholder {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border: 1px solid #2d3934;
  border-radius: 10px;
  background: #0d1310;
}

.browser-name {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: auto;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.browser-name img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.browser-install .button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.tutorial-placeholder {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-inline: 14px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.tutorial-placeholder:hover {
  transform: translateY(-1px);
  border-color: #4c845f;
  background: #132019;
}

.tutorial-placeholder strong {
  color: #b8c6be;
  font-size: 12px;
}

.tutorial-button-title {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.tutorial-cookie-icon {
  display: block;
  position: relative;
  width: 29px;
  height: 29px;
  overflow: hidden;
  flex: 0 0 29px;
}

.tutorial-cookie-icon img {
  position: absolute;
  top: -3px;
  left: 0;
  width: auto;
  height: 35px;
  max-width: none;
}

.tutorial-placeholder span {
  color: #66746d;
  font-size: 10px;
}

.tutorial-placeholder .tutorial-cookie-icon {
  color: inherit;
}

.tutorial-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.tutorial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.tutorial-dialog {
  position: relative;
  display: flex;
  width: min(1400px, 100%);
  max-height: calc(100vh - 24px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #385044;
  border-radius: 18px;
  background: #0b100e;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.7);
}

.tutorial-header,
.tutorial-footer {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: rgba(13, 20, 17, 0.97);
}

.tutorial-header {
  border-bottom: 1px solid #27342e;
}

.tutorial-header h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.tutorial-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #34423c;
  border-radius: 9px;
  color: #b7c3bd;
  background: #111815;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.tutorial-content {
  overflow-y: auto;
  padding: 26px;
}

.tutorial-intro {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #4b3e25;
  border-radius: 10px;
  color: #cabf9d;
  background: #1d180e;
  font-size: 14px;
  line-height: 1.7;
}

.tutorial-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid #28362f;
  border-radius: 14px;
  background: #101713;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #3a684b;
  border-radius: 10px;
  color: var(--green);
  background: #11261a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.step-copy h2,
.step-copy h3 {
  margin: 1px 0 7px;
  font-size: 19px;
}

.step-copy p {
  margin: 0;
  color: #98a69f;
  font-size: 14px;
  line-height: 1.9;
}

.step-copy a {
  color: var(--green);
}

.tutorial-images {
  display: grid;
  grid-column: 2;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.tutorial-images.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tutorial-images.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutorial-images a {
  display: block;
  overflow: hidden;
  border: 1px solid #304038;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
}

.tutorial-images img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 160ms ease;
}

.tutorial-images a:hover img {
  transform: scale(1.012);
}

.tutorial-footer {
  justify-content: flex-end;
  border-top: 1px solid #27342e;
}

body.tutorial-open {
  overflow: hidden;
}

.tutorial-page-main {
  padding: 32px 0 72px;
}

.tutorial-page-card {
  overflow: hidden;
  border: 1px solid #385044;
  border-radius: 18px;
  background: #0b100e;
  box-shadow: var(--shadow);
}

.tutorial-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid #27342e;
  background: rgba(13, 20, 17, 0.97);
}

.tutorial-page-heading h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 38px);
}

.tutorial-back-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tutorial-page .tutorial-content {
  overflow: visible;
}

.tutorial-page-footer {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1400px, 100%);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid #385044;
  border-radius: 14px;
  background: #080c0a;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.8);
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-caption {
  min-height: 20px;
  padding: 9px 44px 0;
  color: #a9b6af;
  font-size: 12px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #52655b;
  border-radius: 10px;
  color: #fff;
  background: rgba(7, 12, 9, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.lightbox-close:hover {
  border-color: var(--green);
  background: #132019;
}

body.lightbox-open {
  overflow: hidden;
}

.copy-cell {
  cursor: pointer;
  transition: background 120ms ease;
}

.copy-cell:hover {
  background: rgba(104, 239, 143, 0.055);
}

.copy-cell:active {
  background: rgba(104, 239, 143, 0.1);
}

.read-button {
  min-width: 76px;
  height: 30px;
  border: 1px solid #30483a;
  border-radius: 8px;
  color: #a8e9ba;
  background: #102119;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.is-read .read-button {
  border-color: #4b514e;
  color: #d2d6d3;
  background: #252a27;
}

.row-index {
  width: 45px;
  color: #5e6b64;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.account-email {
  display: block;
  max-width: 230px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-inline: auto;
}

.password-value {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: #c9d4ce;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-inline: auto;
}

.table-totp {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding-bottom: 6px;
}

.table-totp .totp-code {
  margin: 0;
  font-size: 17px;
}

.table-totp .totp-countdown {
  margin-left: 0;
}

.row-meta {
  display: block;
  margin-top: 3px;
  color: #68756e;
  font-size: 9px;
}

.row-actions {
  display: flex;
  gap: 5px;
}

.row-actions .icon-button {
  min-width: 40px;
}

input[type="search"] {
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-card {
  overflow: hidden;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(16, 22, 20, 0.98), rgba(10, 13, 16, 0.98));
}

.account-card h3 {
  overflow: hidden;
  max-width: 390px;
  margin: 6px 0 0;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complete-badge {
  padding: 5px 8px;
  border: 1px solid #294535;
  border-radius: 999px;
  color: #a8efbd;
  background: #10251a;
  font-size: 10px;
}

.complete-badge.incomplete {
  border-color: #513034;
  color: #efa8ae;
  background: #291418;
}

.credential-row,
.meta-row {
  display: flex;
  gap: 9px;
  align-items: center;
}

.credential-row {
  margin-top: 18px;
}

.field-label {
  color: var(--muted);
  font-size: 11px;
}

.password-value {
  overflow: hidden;
  flex: 1;
  color: #d4ddd8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  font-size: 10px;
}

.totp-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-top: 14px;
  padding: 13px 13px 15px;
  border: 1px solid #294b38;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(25, 55, 36, 0.65), rgba(12, 24, 18, 0.7));
}

.totp-code {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 25px;
  letter-spacing: 0.16em;
}

.totp-side {
  display: flex;
  gap: 8px;
  align-items: center;
}

.totp-countdown {
  color: #92a39a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.totp-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #14241a;
}

.totp-progress span {
  display: block;
  height: 100%;
  background: var(--green-strong);
  transition: width 1s linear;
}

.meta-row {
  justify-content: space-between;
  margin-top: 13px;
  color: #7f8d85;
  font-size: 11px;
}

details {
  margin-top: 13px;
  border-top: 1px solid #1c2421;
}

summary {
  cursor: pointer;
  padding-top: 13px;
  color: #8f9c95;
  font-size: 11px;
}

.account-json {
  overflow: auto;
  max-height: 270px;
  padding: 12px;
  border: 1px solid #1d2522;
  border-radius: 9px;
  color: #98a59e;
  background: #090c0e;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  padding: 11px 15px;
  border: 1px solid #34543f;
  border-radius: 10px;
  opacity: 0;
  color: #d9f4e1;
  background: #122219;
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    padding: 58px 5px 40px;
  }

  .hero-copy br {
    display: none;
  }

  .formats,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .summary-bar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .account-tools input {
    order: -1;
    width: 100%;
  }

  .page-info {
    margin-right: auto;
    text-align: left;
  }

  .login-export {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-install-actions {
    grid-template-columns: 1fr;
  }

  .browser-install {
    flex-wrap: wrap;
  }

  .tutorial-modal {
    padding: 8px;
  }

  .tutorial-dialog {
    max-height: calc(100vh - 16px);
  }

  .tutorial-header,
  .tutorial-footer,
  .tutorial-content {
    padding: 14px;
  }

  .tutorial-page-main {
    padding: 16px 0 40px;
  }

  .tutorial-page-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .tutorial-step {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px;
  }

  .step-number {
    width: 34px;
    height: 34px;
  }

  .tutorial-images.two,
  .tutorial-images.three {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 8px;
  }

  .lightbox-dialog {
    max-height: calc(100vh - 16px);
    padding: 8px;
  }

  .lightbox-image {
    max-height: calc(100vh - 78px);
  }

  .input-panel {
    padding: 18px;
  }
}

@media (max-width: 500px) {
  .privacy {
    max-width: 150px;
    font-size: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .summary-stats {
    width: 100%;
  }

  .summary-stats span {
    flex: 1;
    padding-inline: 7px;
    text-align: center;
  }

  .input-actions {
    flex-wrap: wrap;
  }

  .mode-action .button {
    flex: 1;
  }
}
