@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ============================================================
   LeaveApp — design system
   Warm editorial campus tool. Cream paper, burgundy ink, DM Sans.
   ============================================================ */
:root {
  --color-primary: #781C2E;
  --color-primary-dark: #5a1422;
  --color-primary-soft: #f2e6e9;
  --color-primary-faint: #faf4f5;
  --color-bg: #F9F6EE;
  --color-surface: #ffffff;
  --color-surface-2: #fdfbf6;
  --color-text: #2a1a1a;
  --color-muted: #6b5a5a;
  --color-line: #e6ddd0;
  --color-border: var(--color-line);

  --color-success: #2f6b3a;
  --color-success-soft: #e3efe5;
  --color-warning: #b46a1f;
  --color-warning-soft: #fbe9d0;
  --color-danger: #9b2c2c;
  --color-danger-soft: #f5e1e1;
  --color-info: #2f5f7a;
  --color-info-soft: #e1ecf2;
  --color-neutral: #6b5a5a;
  --color-neutral-soft: #ece6e6;

  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-hero: clamp(40px, 6vw, 60px);

  --radius-sm: 8px;
  --radius-input: 10px;
  --radius-card: 16px;
  --radius-pill: 999px;

  --shadow-rest: 0 1px 2px rgba(42,26,26,0.04), 0 4px 16px rgba(120,28,46,0.04);
  --shadow-hover: 0 2px 6px rgba(42,26,26,0.06), 0 14px 36px rgba(120,28,46,0.10);
  --shadow-modal: 0 24px 80px rgba(42,26,26,0.24);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px;

  --container: 1120px;
  --container-narrow: 820px;
  --container-form: 680px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
p { margin: 0 0 var(--s-3); }
a { color: var(--color-primary); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); }
.container-form { max-width: var(--container-form); }
.page { padding: var(--s-7) 0 var(--s-8); }
.page-sm { padding: var(--s-6) 0 var(--s-7); }
.stack > * + * { margin-top: var(--s-5); }
.row { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.row-tight { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.col { flex: 1 1 0; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.center { text-align: center; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.tiny { font-size: var(--text-xs); }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: var(--header-h); padding: 0 var(--s-5);
  background: rgba(249,246,238,0.86);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--color-primary); }
.brand:hover { text-decoration: none; color: var(--color-primary-dark); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--color-primary); color: #fff; }
.site-nav { display: flex; align-items: center; gap: var(--s-2); }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.site-nav a:hover { background: var(--color-primary-soft); color: var(--color-primary); text-decoration: none; }
.site-nav a.active { background: var(--color-primary-soft); color: var(--color-primary); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; }
.site-nav a.btn-primary:hover { background: var(--color-primary-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-input);
  font-size: var(--text-base); font-weight: 600; line-height: 1; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 120ms ease, color 180ms ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--text-sm); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 2px 8px rgba(120,28,46,0.20); }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); box-shadow: 0 6px 18px rgba(120,28,46,0.26); color: #fff; }
.btn-secondary { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover:not(:disabled) { background: var(--color-primary-soft); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #7f2323; color: #fff; }
.btn-ghost { background: transparent; color: var(--color-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--color-primary-soft); color: var(--color-primary); }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover:not(:disabled) { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-line); border-radius: var(--radius-input); background: var(--color-surface); color: var(--color-muted); cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms; }
.icon-btn:hover { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--color-primary-soft); }
.link-button { padding: 0; border: 0; background: none; color: var(--color-primary); font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.link-button:hover { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 650ms linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: #fff; opacity: 0.7; } }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s-4); }
.field label { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--color-line); border-radius: var(--radius-input);
  background: var(--color-surface); color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: #a3948f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.field input[readonly], .field textarea[readonly] { background: #f3eee4; color: var(--color-muted); cursor: not-allowed; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field .error { display: none; margin-top: 6px; font-size: var(--text-xs); color: var(--color-danger); }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-danger); box-shadow: 0 0 0 3px var(--color-danger-soft); }
.field .hint { margin-top: 6px; font-size: var(--text-xs); color: var(--color-muted); }
.field-inline { display: flex; align-items: flex-start; gap: 10px; }
.field-inline input[type="checkbox"], .check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); flex: 0 0 auto; }
.field-icon { position: relative; }
.field-icon > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.field-icon input { padding-left: 40px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); line-height: 1.5; cursor: pointer; }
.check a { text-decoration: underline; }
.form-section { padding: var(--s-5); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-rest); }
.form-section + .form-section { margin-top: var(--s-4); }
.form-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--s-4); }
.form-section-head .icon-chip { flex: 0 0 auto; }
.form-section-head h3 { margin: 0 0 2px; }
.form-section-head p { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); padding: var(--s-5); box-shadow: var(--shadow-rest); }
.card-flat { box-shadow: none; }
.card-hover { transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease; }
.card-hover:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #dccfc0; }
.card-pad-lg { padding: var(--s-6); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.card-head h3 { margin: 0; }
.card-head p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.divider { height: 1px; background: var(--color-line); border: 0; margin: var(--s-4) 0; }

/* ---------- Chips / icons ---------- */
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--color-primary-soft); color: var(--color-primary); }
.icon-chip-sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-chip-neutral { background: #f1ece4; color: var(--color-muted); }
.icon-chip-success { background: var(--color-success-soft); color: var(--color-success); }
.icon-chip-warning { background: var(--color-warning-soft); color: var(--color-warning); }
.icon-chip-info { background: var(--color-info-soft); color: var(--color-info); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--color-line); background: var(--color-surface); font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); white-space: nowrap; }
.chip-warning { background: var(--color-warning-soft); border-color: transparent; color: var(--color-warning); }
.chip-success { background: var(--color-success-soft); border-color: transparent; color: var(--color-success); }
.chip-danger { background: var(--color-danger-soft); border-color: transparent; color: var(--color-danger); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.badge-pending { background: var(--color-warning-soft); color: var(--color-warning); }
.badge-approved { background: var(--color-success-soft); color: var(--color-success); }
.badge-rejected { background: var(--color-danger-soft); color: var(--color-danger); }
.badge-needs-info { background: var(--color-info-soft); color: var(--color-info); }
.badge-cancelled { background: var(--color-neutral-soft); color: var(--color-neutral); }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.page-head h1, .page-head h2 { margin: 0; }
.page-sub { margin: 6px 0 0; font-size: var(--text-base); color: var(--color-muted); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-3); }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat-card { padding: var(--s-4); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-rest); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.stat-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.stat-num { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--color-primary); line-height: 1; }
.stat-foot { margin-top: 6px; font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 14px; border-bottom: 1px solid var(--color-line); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-muted); text-align: left; }
.table td { padding: 14px; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); vertical-align: middle; }
.table tbody tr { transition: background 120ms ease; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--color-primary-faint); }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { margin-bottom: var(--s-3); padding: var(--s-3); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); }
  .table td { border: none; padding: 4px 0; }
}

/* ---------- Request list ---------- */
.request-list { display: flex; flex-direction: column; gap: var(--s-3); }
.request-card { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); transition: box-shadow 180ms ease, border-color 180ms ease; }
.request-card:hover { box-shadow: var(--shadow-hover); border-color: #dccfc0; }
.request-main { min-width: 0; }
.request-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.request-meta { margin-top: 4px; font-size: var(--text-sm); color: var(--color-muted); }
.request-reason { margin-top: 8px; font-size: var(--text-sm); }
.request-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
@media (max-width: 640px) { .request-card { flex-direction: column; } .request-side { width: 100%; justify-content: flex-end; } }

/* ---------- Tabs / filters ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-surface); }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background 150ms, color 150ms; }
.tab:hover { background: var(--color-primary-faint); color: var(--color-primary); }
.tab.active { background: var(--color-primary); color: #fff; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-2); }
@media (max-width: 860px) { .filter-bar { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .filter-bar { grid-template-columns: 1fr; } }
.filter-bar select, .filter-bar input { width: 100%; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: var(--radius-input); background: var(--color-surface); font-size: var(--text-sm); }
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }

/* ---------- Callouts ---------- */
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-input); font-size: var(--text-sm); line-height: 1.5; }
.callout svg { flex: 0 0 auto; margin-top: 1px; }
.callout-info { background: var(--color-info-soft); color: var(--color-info); }
.callout-warning { background: var(--color-warning-soft); color: var(--color-warning); }
.callout-success { background: var(--color-success-soft); color: var(--color-success); }
.callout-danger { background: var(--color-danger-soft); color: var(--color-danger); }
.callout-neutral { background: #f1ece4; color: var(--color-muted); }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: var(--radius-pill); background: #efe8dc; overflow: hidden; }
.progress .bar { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)); transition: width 250ms ease; }
.strength { display: flex; gap: 5px; margin-top: 8px; }
.strength span { height: 5px; flex: 1; border-radius: 999px; background: #efe8dc; transition: background 180ms; }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: var(--s-5); }
.step { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--color-muted); }
.step-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--color-line); background: var(--color-surface); font-size: var(--text-xs); font-weight: 700; flex: 0 0 auto; }
.step-label { font-size: var(--text-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-line { height: 1px; flex: 1; background: var(--color-line); margin: 0 8px; }
.step.active { color: var(--color-primary); }
.step.active .step-dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.step.done .step-dot { background: var(--color-success-soft); border-color: transparent; color: var(--color-success); }
@media (max-width: 560px) { .step-label { display: none; } }

/* ---------- Empty state / ghost ---------- */
.empty-state { padding: var(--s-7) var(--s-4); text-align: center; color: var(--color-muted); }
.empty-state h3 { margin: 0 0 4px; color: var(--color-text); }
.empty-state p { margin: 0 0 4px; font-size: var(--text-sm); }
.ghost { width: 104px; height: 104px; margin: 0 auto var(--s-4); animation: float 3.4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .ghost { animation: none; } }

/* ---------- Avatar ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); font-weight: 700; font-size: var(--text-sm); flex: 0 0 auto; letter-spacing: 0.02em; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; padding: var(--s-4); background: rgba(42,26,26,0.48); backdrop-filter: blur(3px); }
.modal-backdrop.show { display: flex; animation: fadeIn 160ms ease; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: var(--s-6); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-modal); animation: popIn 180ms ease; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: var(--s-4); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 1000; max-width: 360px; padding: 12px 18px; border-radius: var(--radius-input); background: var(--color-text); color: #fff; font-size: var(--text-sm); font-weight: 500; box-shadow: 0 12px 32px rgba(0,0,0,0.20); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Landing ---------- */
.hero { position: relative; padding: var(--s-9) 0 var(--s-8); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-7); align-items: stretch; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.hero h1 { font-size: var(--text-hero); max-width: 14ch; }
.hero-lead { max-width: 54ch; margin-top: var(--s-4); font-size: var(--text-lg); color: var(--color-muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s-5); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: var(--s-4); font-size: var(--text-sm); color: var(--color-muted); }
.hero-panel { position: relative; padding: var(--s-5); border: 1px solid var(--color-line); border-radius: 24px; background: var(--color-surface); box-shadow: var(--shadow-hover); }
.hero-panel::before { content: ""; position: absolute; inset: 12px; border: 1px dashed #e0d3c2; border-radius: 18px; pointer-events: none; }
.hero-panel-inner { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.mini-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--radius-input); background: var(--color-bg); }
.mini-stat strong { font-size: 20px; color: var(--color-primary); }
.mini-stat span { font-size: var(--text-xs); color: var(--color-muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-4); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step-card { padding: var(--s-5); border-top: 2px solid var(--color-primary); background: var(--color-surface); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.step-num { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; color: var(--color-primary); }
.step-card h3 { margin: 10px 0 6px; }
.step-card p { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-4); }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { padding: var(--s-5); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); }
.feature-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--text-sm); color: var(--color-muted); }
.feature-list svg { color: var(--color-success); flex: 0 0 auto; margin-top: 2px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-6); border-radius: 20px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; pointer-events: none; }
.cta-band h3 { color: #fff; font-size: var(--text-xl); }
.cta-band p { margin: 4px 0 0; color: rgba(255,255,255,0.82); font-size: var(--text-sm); }
.site-footer { padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--color-line); font-size: var(--text-xs); color: var(--color-muted); }
.site-footer nav a { color: var(--color-muted); }
.site-footer nav a:hover { color: var(--color-primary); }

/* Landing page trust + skip link */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-4); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* Landing page enhanced sections */
.section-pad { padding-bottom: var(--s-8); }
section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.steps-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); }
@media (max-width: 1024px) { .steps-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }
.audience-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-6); align-items: center; }
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; gap: var(--s-4); } }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); }
@media (max-width: 1024px) { .status-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .status-grid { grid-template-columns: 1fr; } }
.status-card { padding: var(--s-4); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-rest); }
.status-card h3 { margin: var(--s-3) 0 var(--s-2); font-size: var(--text-md); }
.status-card p { font-size: var(--text-sm); color: var(--color-muted); }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-4); }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }
.privacy-panel { padding: var(--s-6); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-rest); }
.privacy-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: var(--s-4); }
.privacy-head h2 { margin: 0; }
.privacy-head .eyebrow { margin-bottom: 6px; }
@media (max-width: 480px) {
  .site-header { padding: 0 16px; gap: 8px; }
  .brand { font-size: 16px; }
  .site-nav { gap: 4px; }
  .site-nav a { padding: 6px 8px; font-size: 13px; }
  .site-nav a.btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
  .site-nav .nav-home { display: none; }
}
@media (max-width: 640px) { .site-nav .nav-how { display: none; } }

/* ============ Landing page editorial pass ============ */
.landing-page {
  background-color: var(--color-bg);
  background-image: radial-gradient(rgba(120,28,46,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-landing { position: relative; overflow: hidden; }
.hero-grid-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: repeating-linear-gradient(115deg, rgba(120,28,46,0.05) 0 1px, transparent 1px 26px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
}
.hero-orbit { position: absolute; border: 1px solid rgba(120,28,46,0.12); border-radius: 50%; pointer-events: none; }
.hero-orbit-1 { width: 520px; height: 520px; right: -180px; top: -160px; }
.hero-orbit-2 { width: 340px; height: 340px; right: 80px; bottom: -220px; border-style: dashed; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; }
.hero-visual { position: relative; z-index: 1; display: flex; }
.preview-shell {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--color-line); border-radius: 20px; background: var(--color-surface);
  box-shadow: var(--shadow-hover); overflow: hidden;
}
.preview-topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.preview-dots { display: inline-flex; gap: 4px; }
.preview-dots span { width: 7px; height: 7px; border-radius: 50%; background: #e0d3c2; }
.preview-dots span:nth-child(2) { background: #d6c2b0; }
.preview-dots span:nth-child(3) { background: #cbb5a2; }
.preview-window-title { font-size: 12px; font-weight: 600; color: var(--color-muted); letter-spacing: 0.02em; }
.chip-demo { margin-left: auto; padding: 3px 8px; gap: 4px; border-color: transparent; background: var(--color-primary-soft); color: var(--color-primary); }
.preview-body { display: flex; flex-direction: column; gap: 14px; padding: 18px; flex: 1; min-height: 0; }
.preview-person { display: flex; align-items: center; gap: 12px; }
.preview-person .avatar { width: 42px; height: 42px; }
.preview-person-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.preview-person-copy strong { font-size: 16px; letter-spacing: -0.01em; }
.preview-label { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.preview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.preview-metric { padding: 10px 0; min-width: 0; }
.preview-metric + .preview-metric { border-left: 1px solid var(--color-line); padding-left: 14px; }
.preview-metric strong { display: block; font-size: 24px; line-height: 1; letter-spacing: -0.03em; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.preview-metric span { display: block; margin-top: 4px; font-size: 9px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--color-muted); }
.preview-record { padding-top: 12px; border-top: 1px solid var(--color-line); }
.preview-record-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preview-record-kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.preview-dates { margin-top: 5px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.preview-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.preview-detail-grid > div { min-width: 0; }
.preview-detail-grid span { display: block; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.preview-detail-grid strong { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }
.preview-reason { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-text); }
.preview-reason::before { content: "“"; }
.preview-reason::after { content: "”"; }
.text-warning { color: var(--color-warning); }
.preview-timeline { position: relative; display: flex; align-items: flex-start; margin-top: auto; padding-top: 2px; }
.preview-timeline::before { content: ""; position: absolute; top: 7px; left: 16.66%; right: 16.66%; height: 1px; background: var(--color-line); }
.preview-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-surface); border: 1px solid var(--color-line); }
.preview-step.done .preview-dot { background: var(--color-primary); border-color: var(--color-primary); }
.preview-step.current .preview-dot { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.preview-step small { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); text-align: center; }
.preview-step.done small { color: var(--color-text); }
.preview-step.current small { color: var(--color-primary); font-weight: 600; }
.preview-next { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.preview-next svg { flex: 0 0 auto; }
.preview-status-pending { color: var(--color-warning); }
.preview-status-approved { color: var(--color-success); }
.preview-status-rejected { color: var(--color-danger); }
.preview-status-info { color: var(--color-info); }
.preview-status-neutral { color: var(--color-muted); }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.preview-parent { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--color-muted); }
.hero-rule { height: 1px; background: var(--color-line); margin: var(--s-5) 0 var(--s-4); max-width: 420px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--text-xs); color: var(--color-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--color-primary); }

.section-head-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-5); align-items: end; margin-bottom: var(--s-5); }
@media (max-width: 760px) { .section-head-split { grid-template-columns: 1fr; gap: var(--s-2); } }
.section-aside { margin: 0; max-width: 42ch; font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 760px) { .section-aside { max-width: none; } }

.process-ledger { border-top: 1px solid var(--color-line); }
.process-row {
  display: grid; grid-template-columns: 86px 44px minmax(0,1fr) 44px; gap: var(--s-4); align-items: center;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--color-line); transition: background 160ms ease, padding 160ms ease;
}
.process-row:hover { background: rgba(120,28,46,0.035); padding-left: var(--s-3); }
.process-index { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: rgba(120,28,46,0.22); }
.process-copy h3 { margin: 0 0 2px; font-size: var(--text-lg); }
.process-copy p { margin: 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 66ch; }
.process-tag { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--color-primary); }
.process-mark { font-size: 18px; color: rgba(120,28,46,0.35); text-align: right; }
@media (max-width: 640px) {
  .process-row { grid-template-columns: 52px 36px minmax(0,1fr); gap: var(--s-3); }
  .process-mark { display: none; }
  .process-index { font-size: 30px; }
  .process-row .icon-chip { width: 34px; height: 34px; }
}

.audience-grid { position: relative; }
.audience-copy { position: relative; padding-top: var(--s-4); }
.audience-index { position: absolute; top: -26px; left: -6px; font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -0.06em; color: rgba(120,28,46,0.08); pointer-events: none; }
.audience-copy h2 { position: relative; max-width: 16ch; }
.feature-panel { position: relative; padding: var(--s-5); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-rest); }
.feature-panel::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(120,28,46,0.10); border-radius: 10px; pointer-events: none; }
.feature-panel > * { position: relative; }
.feature-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: var(--s-3); }
.feature-panel h3 { margin-bottom: var(--s-2); }
.feature-panel-dark { background: linear-gradient(150deg, #781C2E 0%, #4e0f1d 100%); border-color: transparent; color: #fff; box-shadow: 0 18px 40px rgba(120,28,46,0.18); }
.feature-panel-dark::before { border-color: rgba(255,255,255,0.14); }
.feature-panel-dark h3 { color: #fff; }
.feature-panel-dark .feature-list li { color: rgba(255,255,255,0.82); }
.feature-panel-dark .feature-list svg { color: #f2c9d2; }
.feature-panel-dark .chip { background: rgba(255,255,255,0.12); color: #fff; border-color: transparent; }
.feature-panel-dark .tiny { color: rgba(255,255,255,0.78) !important; }

.status-board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); overflow: hidden; box-shadow: var(--shadow-rest); }
.status-row { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: var(--s-4); padding: var(--s-5); border-bottom: 1px solid var(--color-line); }
.status-row:nth-child(odd) { border-right: 1px solid var(--color-line); }
.status-row:nth-last-child(-n+2) { border-bottom: 0; }
.status-row-lead { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.status-arrow { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: rgba(120,28,46,0.14); }
.status-row h3 { margin: 0 0 4px; font-size: var(--text-md); }
.status-row p { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 820px) {
  .status-board { grid-template-columns: 1fr; }
  .status-row:nth-child(odd) { border-right: 0; }
  .status-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--color-line); }
  .status-row:last-child { border-bottom: 0; }
}
@media (max-width: 520px) { .status-row { grid-template-columns: 1fr; gap: var(--s-3); } .status-row-lead { flex-direction: row; align-items: center; justify-content: space-between; } }

.compare-table-wrap { border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); overflow: hidden; box-shadow: var(--shadow-rest); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; font-size: var(--text-sm); border-bottom: 1px solid var(--color-line); }
.compare-table thead th { background: var(--color-bg); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
.compare-table tbody th { width: 22%; font-weight: 600; color: var(--color-text); background: rgba(249,246,238,0.55); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: rgba(120,28,46,0.025); }
@media (max-width: 860px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--color-line); }
  .compare-table tbody th { background: transparent; padding: 0 0 6px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
  .compare-table td { padding: 4px 0; border: 0; }
  .compare-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--color-text); }
}

.privacy-band { position: relative; overflow: hidden; padding: var(--s-8) 0; background: linear-gradient(140deg, #781C2E 0%, #4e0f1d 100%); color: #fff; }
.privacy-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.6; pointer-events: none; }
.privacy-band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -220px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; pointer-events: none; }
.privacy-band .container { position: relative; z-index: 1; }
.privacy-band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-7); align-items: start; }
@media (max-width: 860px) { .privacy-band-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.privacy-band h2 { color: #fff; max-width: 18ch; }
.privacy-band p { color: rgba(255,255,255,0.8); max-width: 54ch; }
.eyebrow-light { color: #f0c7d0; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.privacy-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); color: rgba(255,255,255,0.84); }
.privacy-list svg { flex: 0 0 auto; margin-top: 2px; color: #f2c9d2; }
.callout-dark { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #f7e9ec; }
.callout-dark svg { color: #f2c9d2; }

.cta-band-pattern { position: relative; overflow: hidden; }
.cta-band-pattern::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(125deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 22px); pointer-events: none; }
.cta-band-pattern > * { position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover:not(:disabled) { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

@media (max-width: 640px) {
  .hero-orbit-1 { width: 320px; height: 320px; right: -140px; top: -80px; }
  .hero-orbit-2 { display: none; }
  .privacy-band { padding: var(--s-7) 0; }
  .preview-body { padding: 14px; gap: 12px; }
  .preview-metric { padding: 8px 0; }
  .preview-metric strong { font-size: 19px; }
  .preview-metric span { font-size: 8px; }
  .preview-window-title { font-size: 11px; }
  .chip-demo { font-size: 10px; }
}


.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--radius-input); background: var(--color-primary); color: #fff; font-size: var(--text-sm); font-weight: 600; transition: top 150ms ease; }
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

/* ============ Document pages (privacy, terms, help, about, accessibility) ============ */
.doc-page { padding: var(--s-6) 0 var(--s-8); }
.doc-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--s-5); color: var(--color-muted); font-size: var(--text-sm); }
.doc-back:hover { color: var(--color-primary); }
.doc-header { padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--color-line); }
.doc-header h1 { max-width: 18ch; }
.doc-header .page-sub { margin-top: var(--s-3); }
.doc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: var(--s-3); font-size: var(--text-xs); color: var(--color-muted); }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: var(--s-7); align-items: start; padding-bottom: var(--s-7); }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); padding-top: var(--s-3); border-top: 1px solid var(--color-line); }
.doc-toc h2 { margin: 0 0 var(--s-3); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.doc-toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-toc li { counter-increment: toc; display: flex; gap: 10px; align-items: baseline; font-size: var(--text-sm); line-height: 1.4; }
.doc-toc li::before { content: counter(toc, decimal-leading-zero); font-size: 10px; font-weight: 600; color: rgba(120,28,46,0.45); letter-spacing: 0.04em; flex: 0 0 auto; }
.doc-toc a { color: var(--color-muted); }
.doc-toc a:hover { color: var(--color-primary); text-decoration: none; }
.doc-content { min-width: 0; }
.doc-section { padding: var(--s-5) 0; border-top: 1px solid var(--color-line); }
.doc-section:first-child { border-top: 0; padding-top: 0; }
.doc-section h2 { margin: 0 0 var(--s-3); font-size: var(--text-xl); }
.doc-section p, .doc-section li { max-width: 72ch; font-size: var(--text-base); line-height: 1.7; }
.doc-section p { margin: 0 0 var(--s-3); }
.doc-section ul { margin: 0 0 var(--s-3); padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.doc-section li::marker { color: var(--color-primary); }
.inline-code { padding: 2px 6px; border: 1px solid var(--color-line); border-radius: 5px; background: var(--color-bg); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88em; color: var(--color-text); }
.doc-section .callout { max-width: 72ch; }
@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .doc-toc { position: static; padding-top: 0; padding-bottom: var(--s-4); border-top: 0; border-bottom: 1px solid var(--color-line); }
  .doc-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 20px; }
}
@media (max-width: 480px) {
  .doc-page { padding-top: var(--s-5); }
  .doc-toc ol { grid-template-columns: 1fr; }
  .doc-header h1 { font-size: 28px; }
}


/* ---------- Auth split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.split-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: var(--s-8) var(--s-7); overflow: hidden; background: linear-gradient(150deg, #781C2E 0%, #4e0f1d 100%); color: #fff; }
.split-brand::before, .split-brand::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; pointer-events: none; }
.split-brand::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.split-brand::after { width: 300px; height: 300px; left: -120px; bottom: -120px; }
.split-brand .brand { color: #fff; }
.split-brand .brand-mark { background: #fff; color: var(--color-primary); }
.split-brand h1 { position: relative; max-width: 15ch; font-size: clamp(32px, 3.6vw, 46px); color: #fff; }
.split-brand p { position: relative; max-width: 38ch; color: rgba(255,255,255,0.78); }
.brand-points { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: var(--s-5); }
.brand-point { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); color: rgba(255,255,255,0.86); }
.brand-point svg { flex: 0 0 auto; color: #fff; margin-top: 2px; }
.split-form { display: flex; flex-direction: column; justify-content: center; padding: var(--s-8) var(--s-7); background: var(--color-bg); }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-card h2 { font-size: var(--text-2xl); }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: var(--s-2); font-size: var(--text-sm); }
.auth-foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--color-line); font-size: var(--text-sm); color: var(--color-muted); }
.demo-box { margin-top: var(--s-5); padding: 12px 14px; border: 1px dashed #dccfc0; border-radius: var(--radius-input); background: var(--color-surface-2); font-size: var(--text-xs); color: var(--color-muted); }
.demo-box code { font-family: inherit; font-weight: 600; color: var(--color-text); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split-brand { padding: var(--s-6) var(--s-5); gap: var(--s-5); }
  .split-brand h1 { font-size: 32px; }
  .brand-points { display: none; }
  .split-form { padding: var(--s-6) var(--s-4) var(--s-8); }
}
@media (max-width: 640px) {
  .split-brand { display: none; }
  .split-form { min-height: 100vh; padding: var(--s-6) var(--s-4); }
}

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-card { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .profile-card { position: static; } }
.profile-identity { display: flex; align-items: center; gap: 14px; }
.profile-identity .avatar { width: 58px; height: 58px; font-size: 18px; }
.profile-meta { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--color-line); font-size: var(--text-sm); }
.profile-meta div { display: flex; justify-content: space-between; gap: 12px; }
.profile-meta span:first-child { color: var(--color-muted); }

/* ---------- Leave form ---------- */
.summary-grid-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; }
@media (max-width: 560px) { .summary-grid-details { grid-template-columns: 1fr; } }
.detail { display: flex; flex-direction: column; gap: 2px; }
.detail .k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.detail .v { font-size: var(--text-sm); font-weight: 500; }
.sticky-submit { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: var(--s-5); padding: 14px 18px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: rgba(249,246,238,0.92); backdrop-filter: blur(10px); box-shadow: 0 -4px 20px rgba(42,26,26,0.06); }
.sticky-submit .total { font-size: var(--text-sm); color: var(--color-muted); }
.sticky-submit .total strong { font-size: var(--text-lg); color: var(--color-primary); }

/* ---------- Misc ---------- */
.success-card { max-width: 560px; margin: 0 auto; text-align: center; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: var(--s-4); border-radius: 50%; background: var(--color-success-soft); color: var(--color-success); }
.req-id { display: inline-block; margin: 4px 0 var(--s-4); padding: 6px 14px; border: 1px dashed #dccfc0; border-radius: var(--radius-pill); font-weight: 700; letter-spacing: 0.04em; color: var(--color-primary); background: var(--color-surface); }
.kbd { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid var(--color-line); border-bottom-width: 2px; border-radius: 6px; background: var(--color-surface); font-size: 11px; font-weight: 600; color: var(--color-muted); }
.link-muted { color: var(--color-muted); }
.link-muted:hover { color: var(--color-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
