
:root {
  color-scheme: light;
  --ink: #152332;
  --muted: #607080;
  --line: #dce4eb;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --brand: #1f6fa8;
  --brand-dark: #0b1620;
  --brand-soft: #e6f1f8;
  --warning: #9b5d11;
  --warning-soft: #fff1d9;
  --danger: #a43b31;
  --shadow: 0 16px 40px rgba(17, 45, 35, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; background: #0b1620; color: #dce6ee; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #dcecf7; color: #174a73; font-weight: 850; letter-spacing: -.04em; }
.brand-name { display: block; color: #fff; font-weight: 750; }
.brand-edition { display: block; margin-top: 1px; color: #9fb4c6; font-size: 12px; }
.nav-group { margin-top: 22px; }
.nav-label { margin: 0 10px 8px; color: #7fa0b8; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.nav-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: flex; align-items: center; min-height: 41px; padding: 9px 11px; border-radius: 9px; color: #c8d6e2; text-decoration: none; font-size: 14px; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link[aria-current="page"] { background: #174a73; color: #fff; font-weight: 700; box-shadow: inset 3px 0 #67b7ea; }

.main-column { min-width: 0; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(18px, 4vw, 42px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.company-name { margin: 0; font-size: 14px; font-weight: 750; }
.user-context { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.top-actions form { margin: 0; }
.content { width: min(1180px, 100%); margin: 0 auto; padding: 32px clamp(18px, 4vw, 42px) 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; line-height: 1.1; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.subtitle { max-width: 680px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; }
.button:hover { border-color: #b9c8c1; background: #f9fbfa; }
.button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-dark); }
.button.danger { border-color: #b42318; background: #b42318; color: #fff; }
.button.danger:hover { background: #8f1c13; }
.button:disabled { opacity: .56; cursor: not-allowed; }
.button.full-width { width: 100%; }

.notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; padding: 13px 15px; border: 1px solid #f0d7ad; border-radius: 10px; background: var(--warning-soft); color: #6f4818; font-size: 13px; line-height: 1.5; }
.notice-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #d28a2e; }
.notice-error { border-color: #efc2bd; background: #fbe9e7; color: var(--danger); }
.notice-error .notice-dot { background: var(--danger); }
.notice-success { border-color: #b9d9ec; background: var(--brand-soft); color: #174a73; }
.notice-success .notice-dot { background: var(--brand); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(20, 42, 33, .03); }
.metric-card { padding: 18px; }
.metric-label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-value { margin: 12px 0 5px; font-size: 25px; font-weight: 780; letter-spacing: -.035em; }
.metric-note { margin: 0; color: var(--muted); font-size: 12px; }
.metric-note.good { color: var(--brand); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; margin-top: 18px; }
.dashboard-grid > * { min-width: 0; }
.founder-audit { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 12px; color: var(--muted); background: #f8faf9; font-size: 11px; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
td { padding: 13px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.empty-cell { padding: 28px 12px; color: var(--muted); text-align: center; }
.align-right { text-align: right; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 800; }
.quick-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.quick-link { display: flex; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 700; }
.quick-link:hover { border-color: #b9c8c1; background: #f8faf9; }
.quick-link span:last-child { color: var(--brand); }
.record-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.seat-count { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--brand-soft); color: #174a73; font-size: 12px; font-weight: 800; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form input { width: 90px; min-height: 38px; padding: 7px 9px; border: 1px solid #c8d3ce; border-radius: 8px; }
.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; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card { min-width: 0; display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(20, 42, 33, .03); }
.module-card:hover { border-color: #a9bfd0; box-shadow: 0 10px 24px rgba(17, 45, 35, .07); }
.module-card.static:hover { border-color: var(--line); box-shadow: 0 1px 2px rgba(20, 42, 33, .03); }
.module-card strong { font-size: 22px; }
.module-card > span:last-child { color: var(--muted); font-size: 12px; line-height: 1.5; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-item { min-width: 0; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-item dt { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.detail-item dd { margin: 7px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.check-list { display: grid; gap: 12px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.status-confirmed, .status-active, .status-healthy, .status-success { background: #e6f1f8; color: #174a73; }
.status-draft, .status-low, .status-past_due { background: var(--warning-soft); color: var(--warning); }
.status-cancelled, .status-disabled, .status-failure, .status-denied { background: #fbe9e7; color: var(--danger); }

.landing-body { min-height: 100vh; background: #edf3f7; }
.landing-page { min-height: 100vh; padding: 22px clamp(16px, 4vw, 58px) 0; background: radial-gradient(circle at 85% 12%, rgba(94,181,230,.14), transparent 28%), #edf3f7; }
.landing-shell { width: min(1500px, 100%); min-height: min(900px, calc(100vh - 88px)); display: grid; grid-template-columns: minmax(620px, 1.35fr) minmax(390px, .8fr); margin: 0 auto; overflow: hidden; border: 1px solid rgba(18,72,109,.08); border-radius: 28px; background: #f8fbfd; box-shadow: 0 24px 65px rgba(15,43,65,.14); }
.landing-story { position: relative; min-width: 0; display: flex; flex-direction: column; padding: clamp(34px, 4vw, 58px); overflow: hidden; color: #dcebf5; background: linear-gradient(145deg, #071d31 0%, #0b2d48 68%, #0c3856 100%); }
.landing-story::before { content: ""; position: absolute; right: -180px; bottom: -320px; width: 760px; height: 760px; border: 1px solid rgba(94,181,230,.14); border-radius: 50%; box-shadow: 0 0 0 92px rgba(94,181,230,.035), 0 0 0 184px rgba(94,181,230,.025); }
.landing-story > * { position: relative; z-index: 1; }
.landing-brand-row { display: flex; align-items: center; gap: 18px; }
.landing-brand { display: inline-flex; align-items: baseline; gap: 2px; color: #fff; font-size: 22px; font-weight: 900; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.landing-brand span { color: #8cd2f3; }
.landing-brand b { margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); color: #d8ebf6; font-size: 12px; letter-spacing: .12em; }
.landing-company { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); color: #a9c0d2; font-size: 11px; }
.landing-hero { max-width: 760px; margin-top: clamp(42px, 6vh, 76px); }
.landing-eyebrow { margin: 0 0 13px; color: #6ec8f3; font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.landing-hero h1 { max-width: 760px; color: #fff; font-size: clamp(42px, 5.1vw, 72px); line-height: .98; letter-spacing: -.055em; }
.landing-hero h1 span { color: #58bcec; }
.landing-hero > p:last-child { max-width: 700px; margin: 20px 0 0; color: #c4d7e4; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.65; }
.landing-proof-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.landing-proof { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid rgba(126,190,226,.16); border-radius: 13px; background: rgba(255,255,255,.035); }
.landing-proof-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(91,193,239,.36); border-radius: 9px; color: #6ec8f3; font-size: 13px; font-weight: 850; }
.landing-proof strong { display: block; color: #fff; font-size: 12px; }
.landing-proof p { margin: 5px 0 0; color: #a9c0d2; font-size: 10px; line-height: 1.5; }
.landing-preview { width: min(690px, 86%); margin: 30px 0 0 auto; padding: 18px; border: 1px solid rgba(126,190,226,.26); border-radius: 18px; background: rgba(7,29,49,.72); box-shadow: 0 24px 50px rgba(0,0,0,.18); transform: perspective(1200px) rotateY(-3deg); }
.landing-preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.landing-preview-head > div { display: grid; gap: 5px; }
.landing-preview-head strong { color: #fff; font-size: 13px; }
.landing-preview-kicker { color: #6ec8f3; font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.landing-live-pill { padding: 5px 9px; border-radius: 999px; color: #d9f2ff; background: rgba(31,111,168,.42); font-size: 9px; font-weight: 750; }
.landing-mini-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.landing-mini-metrics article { display: grid; gap: 5px; padding: 11px; border: 1px solid rgba(126,190,226,.14); border-radius: 9px; background: rgba(255,255,255,.03); }
.landing-mini-metrics span { color: #86a8bd; font-size: 8px; }
.landing-mini-metrics strong { color: #fff; font-size: 11px; }
.landing-preview-body { display: grid; grid-template-columns: 1.45fr .8fr; gap: 14px; margin-top: 12px; }
.landing-chart { height: 108px; display: flex; align-items: flex-end; gap: 8px; padding: 14px 14px 0; border-radius: 10px; background: linear-gradient(rgba(104,169,207,.09) 1px, transparent 1px); background-size: 100% 27px; }
.landing-chart span { flex: 1; min-width: 8px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #67c6f1, #1f6fa8); opacity: .9; }
.landing-chart .bar-1 { height: 28%; } .landing-chart .bar-2 { height: 48%; } .landing-chart .bar-3 { height: 41%; } .landing-chart .bar-4 { height: 67%; } .landing-chart .bar-5 { height: 58%; } .landing-chart .bar-6 { height: 82%; } .landing-chart .bar-7 { height: 73%; }
.landing-activity { display: grid; align-content: center; gap: 8px; }
.landing-activity p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 8px 9px; border: 1px solid rgba(126,190,226,.13); border-radius: 8px; color: #a9c0d2; font-size: 8px; }
.landing-activity b { color: #75c8ef; font-weight: 750; }
.landing-feature-wrap { margin-top: 30px; }
.landing-feature-wrap > p { margin: 0 0 10px; color: #6ec8f3; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.landing-feature-grid article { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(126,190,226,.16); border-radius: 10px; background: rgba(255,255,255,.045); }
.landing-feature-grid article > span { flex: 0 0 auto; color: #67c6f1; font-size: 9px; font-weight: 850; }
.landing-feature-grid article > div { min-width: 0; display: grid; gap: 3px; }
.landing-feature-grid strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.landing-feature-grid small { overflow: hidden; color: #8faabd; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.landing-accountability { display: flex; align-items: center; gap: 9px; margin: 22px 0 0; color: #93aebf; font-size: 9px; line-height: 1.45; }
.landing-accountability > span { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(91,193,239,.34); border-radius: 50%; color: #67c6f1; }
.landing-accountability strong { color: #d9e8f1; }
.landing-access { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(circle at 50% 22%, rgba(87,181,225,.12), transparent 38%), #f8fbfd; }
.landing-access-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #d5e4ed; border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 9px 24px rgba(25,65,91,.07); }
.landing-access-badge > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #176d9d; background: #e4f3fa; font-size: 13px; font-weight: 850; }
.landing-access-badge > div { display: grid; gap: 2px; }
.landing-access-badge strong { color: #174a73; font-size: 11px; }
.landing-access-badge small { color: var(--muted); font-size: 9px; }
.landing-access-card { width: min(470px, 100%); padding: clamp(28px, 4vw, 46px); border: 1px solid #dce6ec; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 20px 45px rgba(25,65,91,.12); }
.landing-access-card .landing-eyebrow { margin-bottom: 12px; color: #1f6fa8; }
.landing-access-card h2 { max-width: 390px; color: #0b2031; font-size: clamp(29px, 3vw, 40px); line-height: 1.05; letter-spacing: -.045em; }
.landing-access-intro { margin: 16px 0 0; color: #5b6e7e; font-size: 14px; line-height: 1.6; }
.landing-check-list { display: grid; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.landing-check-list li { display: flex; align-items: flex-start; gap: 11px; }
.landing-check-list li > span { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; color: #1f6fa8; background: #e8f3f9; font-size: 10px; font-weight: 850; }
.landing-check-list li > div { display: grid; gap: 3px; }
.landing-check-list strong { color: #183044; font-size: 12px; }
.landing-check-list small { color: #70808d; font-size: 10px; line-height: 1.45; }
.landing-signin { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; padding: 13px 18px; border: 1px solid #1f6fa8; border-radius: 11px; color: #fff; background: #1f6fa8; box-shadow: 0 10px 24px rgba(31,111,168,.22); font-size: 14px; font-weight: 800; text-decoration: none; }
.landing-signin:hover { background: #174a73; }
.landing-signin:focus-visible { outline: 3px solid rgba(31,111,168,.24); outline-offset: 3px; }
.landing-access-help { margin: 11px 0 0; color: #748490; font-size: 10px; text-align: center; }
.landing-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 14px; margin-top: 23px; }
.landing-legal-links a { color: #175e8e; font-size: 10px; text-underline-offset: 2px; }
.landing-support { display: grid; justify-items: stretch; gap: 5px; margin-top: 18px; padding: 13px; border: 1px solid #dbe6ec; border-radius: 10px; background: #f7fafc; color: #687a89; text-align: center; }
.landing-support strong { color: #183044; font-size: 11px; }
.landing-support small { font-size: 8px; line-height: 1.4; }
.landing-whatsapp, .auth-whatsapp { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 10px 16px; border-radius: 9px; color: #fff; background: #12805a; font-size: 12px; font-weight: 800; text-decoration: none; }
.landing-whatsapp:hover, .auth-whatsapp:hover { color: #fff; background: #0d6547; }
.landing-whatsapp:focus-visible, .auth-whatsapp:focus-visible { outline: 3px solid rgba(18,128,90,.24); outline-offset: 3px; }
.landing-footer { width: min(1430px, calc(100% - 32px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 22px 8px 28px; color: #667b8b; font-size: 10px; }
.landing-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.landing-footer a { color: #175e8e; font-weight: 700; text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); background: #f3f7fa; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 6vw, 72px); color: #eaf2f8; background: linear-gradient(150deg, #0b1620 0%, #174a73 100%); }
.auth-aside .brand { width: fit-content; padding: 0; border: 0; }
.auth-copy { max-width: 560px; }
.auth-copy h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; }
.auth-copy p { max-width: 500px; color: #c4d4e1; font-size: 16px; line-height: 1.65; }
.auth-foot { color: #a9c0d2; font-size: 12px; }
.auth-main { display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(430px, 100%); padding: clamp(26px, 5vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 25px; }
.auth-card .subtitle { margin-bottom: 24px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c8d3ce; border-radius: 9px; color: var(--ink); background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(31,111,168,.16); }
.provision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.form-section { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.form-section legend { padding: 0 7px; font-weight: 800; color: var(--ink); }
.danger-panel { border-color: #efb4ae; }
.reset-password-form { min-width: 250px; }
.compact-field { margin-bottom: 8px; }
.auth-card .button { width: 100%; margin-top: 5px; }
.form-help { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.synthetic-data-banner { display: grid; gap: 4px; margin-bottom: 22px; padding: 14px 16px; border: 2px solid #1f6fa8; border-radius: 11px; background: #e6f1f8; color: #174a73; }
.synthetic-data-banner strong { font-size: 13px; text-transform: uppercase; letter-spacing: .055em; }
.synthetic-data-banner span { font-size: 12px; line-height: 1.5; }
.operator-test-panel { margin-bottom: 18px; border-color: #9fc3da; }
.operator-test-panel .panel-body { display: grid; justify-items: start; gap: 16px; }
.operator-test-panel .subtitle { margin-top: 0; }
.legal-acceptance { margin: 20px 0; padding: 14px; border: 1px solid #a9cbe0; border-radius: 11px; background: #f1f8fc; color: var(--ink); font-size: 12px; line-height: 1.55; }
.legal-acceptance label { display: flex; align-items: flex-start; gap: 10px; font-weight: 650; }
.legal-acceptance input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.legal-acceptance p { margin: 10px 0 0 28px; color: var(--muted); }
.legal-acceptance a, .auth-legal-links a { color: #175e8e; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.auth-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 14px; margin-top: 24px; font-size: 12px; }
.auth-grievance { display: grid; justify-items: stretch; gap: 4px; margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; text-align: center; }
.auth-grievance strong { color: var(--ink); font-size: 12px; }

.legal-body { min-height: 100vh; background: #f3f7fa; }
.legal-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px clamp(18px, 5vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.legal-brand { color: var(--brand-dark); font-weight: 850; letter-spacing: .035em; text-decoration: none; white-space: nowrap; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.legal-nav a { color: #175e8e; font-size: 12px; font-weight: 700; text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-main { width: min(920px, 100%); margin: 0 auto; padding: 42px 20px 64px; }
.legal-document { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.legal-document h1 { max-width: 760px; }
.legal-document section { margin-top: 34px; }
.legal-document section h2 { margin-bottom: 12px; font-size: 19px; }
.legal-document p, .legal-document li { color: #42576a; font-size: 14px; line-height: 1.72; }
.legal-document a { color: #175e8e; text-underline-offset: 2px; }
.legal-document ul { padding-left: 22px; }
.legal-document li + li { margin-top: 7px; }
.legal-summary { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 22px 0 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-meta div { display: grid; gap: 4px; }
.legal-meta dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-meta dd { margin: 0; font-size: 12px; font-weight: 750; }
.legal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 !important; list-style: none; }
.legal-cards li { margin: 0 !important; }
.legal-cards a { display: grid; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
.legal-cards a:hover { border-color: #9fc3da; background: #f5faff; }
.legal-cards strong { color: var(--ink); }
.legal-cards span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.legal-warning { padding: 16px; border: 1px solid #edc382; border-radius: 10px; background: var(--warning-soft); color: #6f4818; font-size: 13px; line-height: 1.65; }
.legal-contact { padding: 20px; border: 1px solid #a9cbe0; border-radius: 12px; background: #f1f8fc; }
.legal-contact p { margin: 7px 0 0; }
.legal-footer { display: grid; justify-items: center; gap: 14px; padding: 28px 20px 40px; border-top: 1px solid var(--line); background: var(--surface); text-align: center; }
.legal-footer .legal-nav { justify-content: center; }
.legal-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.line-entry-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(110px, 1fr)); gap: 0 12px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-entry-grid:last-child { border-bottom: 0; }
.filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filter-form .field { min-width: 180px; margin: 0; }

@media (max-width: 980px) {
  .landing-page { padding-inline: 14px; }
  .landing-shell { grid-template-columns: 1fr; }
  .landing-story { padding: clamp(30px, 7vw, 56px); }
  .landing-access { padding: 56px 24px; }
  .landing-access-card { width: min(560px, 100%); }
  .app-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .provision-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { min-height: 300px; gap: 52px; }
}

@media (max-width: 700px) {
  .landing-page { padding: 0; }
  .landing-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .landing-story { padding: 28px 20px 36px; }
  .landing-brand-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .landing-company { padding: 0; border: 0; }
  .landing-hero { margin-top: 42px; }
  .landing-hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .landing-proof-list { grid-template-columns: 1fr; }
  .landing-preview { width: 100%; transform: none; }
  .landing-preview-body { grid-template-columns: 1fr; }
  .landing-activity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-activity p { display: grid; }
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-feature-grid strong, .landing-feature-grid small { white-space: normal; }
  .landing-access { padding: 42px 18px; }
  .landing-access-card { padding: 28px 22px; }
  .landing-footer { align-items: center; flex-direction: column; text-align: center; }
  .landing-footer nav { justify-content: center; }
  .app-layout { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 14px; overflow: visible; }
  .sidebar .brand { padding-bottom: 14px; }
  .nav-group { margin-top: 12px; }
  .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-list { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .nav-link { white-space: nowrap; }
  .topbar { min-height: 64px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: 1fr; }
  .module-grid, .details-grid { grid-template-columns: 1fr; }
  .auth-aside { min-height: 260px; }
  .auth-copy p { font-size: 14px; }
  .legal-header { position: static; align-items: flex-start; flex-direction: column; }
  .legal-header .legal-nav { justify-content: flex-start; }
  .legal-cards { grid-template-columns: 1fr; }
  .form-grid, .line-entry-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
