:root {
  --ink-950: #17211d;
  --ink-800: #2b3832;
  --ink-650: #4c5c54;
  --ink-500: #6d7b74;
  --forest-800: #174f45;
  --forest-700: #1d6457;
  --forest-600: #277767;
  --forest-100: #dceee8;
  --forest-50: #edf7f3;
  --sage-200: #cdded3;
  --sage-100: #e8f0ea;
  --clay-700: #a64f35;
  --clay-100: #f7e1d8;
  --sand-100: #eee7db;
  --sand-50: #f7f4ee;
  --surface: #fffdfa;
  --white: #ffffff;
  --danger: #9f3d35;
  --danger-soft: #fbe9e6;
  --warning: #93621f;
  --warning-soft: #fff4d8;
  --success: #28705e;
  --border: #dedfd9;
  --border-strong: #c9cec8;
  --shadow-sm: 0 1px 2px rgba(28, 45, 37, .05), 0 4px 12px rgba(28, 45, 37, .04);
  --shadow-md: 0 12px 32px rgba(28, 45, 37, .09);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --sidebar-width: 256px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-950);
  background: var(--sand-50);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--sand-50); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink-950);
  background: var(--sand-50);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
code { padding: 2px 5px; color: var(--forest-800); background: var(--forest-50); border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

:focus-visible {
  outline: 3px solid rgba(39, 119, 103, .32);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 24px 18px 20px;
  color: #eff8f3;
  background: #183f38;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--forest-600);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.brand-mark svg { width: 24px; height: 24px; fill: currentColor; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.01em; }
.brand small { margin-top: 1px; color: rgba(238, 248, 243, .62); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

.sidebar-nav { display: grid; gap: 5px; margin-top: 38px; }
.nav-label { margin: 0 12px 8px; color: rgba(238, 248, 243, .5); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(245, 251, 248, .74);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.nav-item:hover { color: var(--white); background: rgba(255, 255, 255, .08); transform: translateX(1px); }
.nav-item.is-active { color: var(--white); background: rgba(216, 238, 227, .15); box-shadow: inset 3px 0 #8fc3ad; }
.nav-item svg { width: 20px; height: 20px; fill: currentColor; }

.sidebar-footer { display: grid; gap: 14px; margin-top: auto; }
.security-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; }
.security-note strong, .security-note small { display: block; }
.security-note strong { font-size: 12px; }
.security-note small { margin-top: 2px; color: rgba(238, 248, 243, .58); font-size: 10px; line-height: 1.35; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; margin-top: .32em; background: #8ac4aa; border-radius: 50%; box-shadow: 0 0 0 4px rgba(138, 196, 170, .14); }

.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.mobile-header { display: none; }
.page-container { width: min(1180px, 100%); margin: 0 auto; padding: 42px 44px 60px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 2px 0 4px; font-size: clamp(27px, 3vw, 36px); line-height: 1.16; letter-spacing: -.035em; }
.page-description { max-width: 680px; margin: 0; color: var(--ink-650); font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; color: var(--forest-700); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--ink-800);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.button:hover { background: var(--sand-50); border-color: #aeb9b2; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button-primary { color: var(--white); background: var(--forest-700); border-color: var(--forest-700); box-shadow: 0 5px 14px rgba(29, 100, 87, .18); }
.button-primary:hover { color: var(--white); background: var(--forest-800); border-color: var(--forest-800); }
.button-danger { color: var(--danger); background: var(--danger-soft); border-color: #efc4bd; }
.button-danger:hover { background: #f8dcd7; border-color: #dfaaa1; }
.button-ghost { color: rgba(245, 251, 248, .78); background: transparent; border-color: rgba(255, 255, 255, .14); }
.button-ghost:hover { color: var(--white); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.button-soft { color: var(--forest-800); background: var(--forest-50); border-color: var(--sage-200); }
.button-small { min-height: 34px; padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.button-large { min-height: 48px; padding: 11px 18px; }
.button-block { width: 100%; }

.welcome-card {
  position: relative;
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: 34px 38px;
  color: #eff8f3;
  background: #235b50;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.welcome-card::after { position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; content: ""; background: rgba(255, 255, 255, .055); border-radius: 50%; }
.welcome-card > div:first-child { position: relative; z-index: 1; max-width: 650px; }
.welcome-card h2 { margin: 16px 0 8px; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.025em; }
.welcome-card p { max-width: 590px; margin: 0; color: rgba(239, 248, 243, .72); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill-soft { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); }
.pill .status-dot { margin: 0; width: 7px; height: 7px; }
.welcome-illustration { position: relative; z-index: 1; width: 145px; flex: 0 0 auto; opacity: .9; }
.welcome-illustration svg { width: 100%; }
.welcome-illustration .shield { fill: #d9e9df; opacity: .16; stroke: #d9e9df; stroke-width: 2; }
.welcome-illustration .keyhole { fill: #d9e9df; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 32px 0 14px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 104px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.quick-card:hover { border-color: #acbeb4; box-shadow: 0 10px 24px rgba(28, 45, 37, .08); transform: translateY(-2px); }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { margin-bottom: 3px; color: var(--ink-800); font-size: 14px; }
.quick-card small { color: var(--ink-500); font-size: 11px; line-height: 1.45; }
.quick-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; }
.quick-icon svg { width: 21px; height: 21px; fill: currentColor; }
.quick-icon-forest { color: var(--forest-700); background: var(--forest-100); }
.quick-icon-sage { color: #59765f; background: var(--sage-100); }
.quick-icon-clay { color: var(--clay-700); background: var(--clay-100); }
.card-arrow { width: 17px; height: 17px; fill: none; stroke: var(--ink-500); stroke-width: 2; }
.security-banner { display: flex; align-items: flex-start; gap: 13px; margin-top: 24px; padding: 17px 19px; background: #f3eee4; border: 1px solid #e5dac8; border-radius: var(--radius-md); }
.security-banner-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--forest-700); background: var(--white); border-radius: 10px; }
.security-banner-icon svg { width: 20px; height: 20px; fill: currentColor; }
.security-banner strong { color: var(--ink-800); font-size: 13px; }
.security-banner p { margin: 2px 0 0; color: var(--ink-650); font-size: 12px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.card-header h2 { margin: 0; font-size: 17px; }
.card-header p { margin: 4px 0 0; color: var(--ink-500); font-size: 12px; }
.card-body { padding: 22px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 18px; align-items: start; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 19px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.stat-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; color: var(--forest-700); background: var(--forest-50); border-radius: 12px; }
.stat-icon svg { width: 22px; height: 22px; fill: currentColor; }
.stat-card strong, .stat-card small { display: block; }
.stat-card strong { font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.stat-card small { margin-top: 5px; color: var(--ink-500); font-size: 11px; font-weight: 600; }

.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.toolbar form { display: flex; flex: 1; align-items: end; gap: 9px; }
.toolbar .field { max-width: 440px; flex: 1; }
.field { display: grid; gap: 6px; }
.field-label { color: var(--ink-800); font-size: 12px; font-weight: 750; }
.field-hint { color: var(--ink-500); font-size: 11px; line-height: 1.45; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack-form { display: grid; gap: 17px; }
input, select, textarea {
  width: 100%;
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input, select { min-height: 42px; padding: 9px 11px; }
textarea { min-height: 112px; padding: 10px 11px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa39e; }
input:focus, select:focus, textarea:focus { background: var(--white); border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(39, 119, 103, .13); }
input[readonly] { color: var(--ink-800); background: var(--sand-50); }
.form-section { display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.form-section-header { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.form-section-header h2 { margin: 0; font-size: 16px; }
.form-section-header p { margin: 3px 0 0; color: var(--ink-500); font-size: 11px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 4px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 16px; color: var(--ink-500); background: #f4f1ea; border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 16px; color: var(--ink-650); border-bottom: 1px solid #e8e8e3; font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfbf7; }
.primary-cell strong, .primary-cell small { display: block; }
.primary-cell strong { color: var(--ink-800); font-size: 13px; }
.primary-cell small { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.table-actions form { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--forest-50); border-color: var(--sage-200); }
.badge-muted { color: var(--ink-650); background: #f0f0ec; border-color: #dedfd9; }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: #efcbc5; }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: #ead59c; }
.badge .status-dot { width: 6px; height: 6px; margin: 0; box-shadow: none; background: currentColor; }
.empty-state { display: grid; min-height: 260px; place-items: center; padding: 38px 20px; text-align: center; }
.empty-state-icon { display: grid; width: 56px; height: 56px; margin: 0 auto 14px; place-items: center; color: var(--forest-700); background: var(--forest-50); border-radius: 16px; }
.empty-state-icon svg { width: 28px; height: 28px; fill: currentColor; }
.empty-state h2 { margin: 0 0 5px; font-size: 17px; }
.empty-state p { max-width: 420px; margin: 0 auto 16px; color: var(--ink-500); font-size: 12px; }

.alert { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: 12px; }
.alert-danger { color: var(--danger); background: var(--danger-soft); border-color: #efc2bb; }
.alert-info { color: var(--forest-800); background: var(--forest-50); border-color: var(--sage-200); }
.alert-warning { color: var(--warning); background: var(--warning-soft); border-color: #ead59c; }
.info-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-650); font-size: 12px; }
.info-list-marker { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; color: var(--forest-700); background: var(--forest-50); border-radius: 7px; font-size: 11px; font-weight: 800; }
.setup-steps { display: grid; gap: 18px; margin: 0 0 20px; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: flex-start; gap: 11px; }
.setup-steps li > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; color: var(--white); background: var(--forest-700); border-radius: 8px; font-size: 11px; font-weight: 800; }
.setup-steps strong, .setup-steps small { display: block; }
.setup-steps strong { color: var(--ink-800); font-size: 12px; }
.setup-steps small { margin-top: 3px; color: var(--ink-500); font-size: 11px; line-height: 1.45; }
.audit-notice { margin-bottom: 14px; }
.audit-table .timestamp { white-space: nowrap; font-variant-numeric: tabular-nums; }
.secret-panel { display: grid; gap: 18px; max-width: 760px; }
.secret-value-row { display: flex; align-items: stretch; gap: 9px; }
.secret-value-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.copy-feedback { min-height: 18px; margin: 0; color: var(--success); font-size: 11px; }
.otp-preview-card { text-align: center; }
.otp-preview-card .card-body { display: grid; justify-items: center; padding: 38px 24px; }
.otp-code { margin: 17px 0 8px; color: var(--forest-800); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(38px, 8vw, 62px); line-height: 1; letter-spacing: .12em; }
.otp-preview-card p { margin: 0; color: var(--ink-500); font-size: 12px; }

.auth-body { background: #f3f0e9; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.05fr) minmax(440px, .95fr); }
.auth-story { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 38px 54px; color: #eff8f3; background: #193f38; }
.auth-story::before { position: absolute; width: 440px; height: 440px; right: -240px; bottom: -180px; content: ""; border: 70px solid rgba(255, 255, 255, .035); border-radius: 50%; }
.brand-on-dark { position: relative; z-index: 1; }
.auth-story-content { position: relative; z-index: 1; max-width: 590px; margin: auto 0; padding: 70px 0; }
.auth-kicker { display: inline-block; margin-bottom: 20px; color: #a8cfbd; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-story h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.auth-story-content > p { max-width: 540px; margin: 0; color: rgba(239, 248, 243, .7); font-size: 16px; }
.feature-list { display: grid; gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: rgba(239, 248, 243, .82); font-size: 13px; }
.feature-list span { display: grid; width: 22px; height: 22px; place-items: center; color: #b9dbc9; background: rgba(185, 219, 201, .1); border-radius: 50%; font-size: 11px; font-weight: 800; }
.auth-footnote { position: relative; z-index: 1; margin: 0; color: rgba(239, 248, 243, .45); font-size: 11px; }
.auth-panel { display: grid; place-items: center; padding: 44px; }
.auth-card { width: min(430px, 100%); padding: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.auth-card-icon { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; color: var(--forest-700); background: var(--forest-50); border: 1px solid var(--sage-200); border-radius: 14px; }
.auth-card-icon svg { width: 25px; height: 25px; fill: currentColor; }
.auth-card h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.auth-card-description { margin: 7px 0 24px; color: var(--ink-500); font-size: 13px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: var(--ink-500); font-size: 10px; }
.privacy-note svg { width: 15px; height: 15px; fill: var(--forest-600); }

@media (max-width: 980px) {
  .quick-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 380px; padding: 28px 34px; }
  .auth-story-content { padding: 48px 0 38px; }
  .auth-story h1 { font-size: 40px; }
  .auth-footnote { display: none; }
  .auth-panel { padding: 34px 20px; }
}

@media (max-width: 760px) {
  .app-sidebar { display: none; }
  .app-main { margin-left: 0; }
  .mobile-header { display: flex; position: sticky; top: 0; z-index: 15; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; color: var(--white); background: #183f38; box-shadow: 0 4px 14px rgba(20, 47, 40, .16); }
  .brand-compact { gap: 7px; font-size: 13px; }
  .brand-compact .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
  .mobile-header nav { display: flex; gap: 3px; overflow-x: auto; }
  .mobile-header nav a { padding: 6px 7px; color: rgba(255, 255, 255, .72); border-radius: 7px; font-size: 10px; font-weight: 700; }
  .mobile-header nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
  .mobile-logout { flex: 0 0 auto; margin: 0; }
  .mobile-logout button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: rgba(255, 255, 255, .76); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; cursor: pointer; }
  .mobile-logout button:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
  .mobile-logout svg { width: 17px; height: 17px; fill: currentColor; }
  .page-container { padding: 26px 16px 44px; }
  .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .welcome-card { min-height: 0; padding: 26px 22px; }
  .welcome-illustration { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .toolbar, .toolbar form { align-items: stretch; flex-direction: column; }
  .toolbar .field { width: 100%; max-width: none; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .card-header { align-items: stretch; flex-direction: column; }
  .table-actions { justify-content: flex-start; }
  .responsive-table thead { display: none; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table tr { padding: 8px 14px; border-bottom: 1px solid var(--border); }
  .responsive-table tr:last-child { border-bottom: 0; }
  .responsive-table td { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed #e7e5de; text-align: right; }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td::before { flex: 0 0 auto; color: var(--ink-500); content: attr(data-label); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
  .responsive-table .primary-cell strong, .responsive-table .primary-cell small { text-align: right; }
  .responsive-table .table-actions { justify-content: flex-end; flex-wrap: wrap; white-space: normal; }
  .secret-value-row { flex-direction: column; }
}

@media (max-width: 520px) {
  .auth-story { min-height: 300px; padding: 22px; }
  .auth-story-content { padding: 34px 0 18px; }
  .auth-story h1 { font-size: 34px; }
  .auth-story-content > p { font-size: 14px; }
  .feature-list { display: none; }
  .auth-panel { padding: 22px 14px; }
  .auth-card { padding: 26px 20px; border-radius: 16px; }
  .mobile-header nav { max-width: 48vw; }
  .table-wrap { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
