
:root {
  color-scheme: light;
  --ink: #152332;
  --muted: #607080;
  --line: #dce4eb;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --brand: #087f72;
  --brand-dark: #05665d;
  --brand-soft: #dff7f1;
  --warning: #9b5d11;
  --warning-soft: #fff1d9;
  --danger: #a43b31;
  --shadow: 0 16px 40px rgba(15, 43, 65, 0.09);
  --shadow-soft: 0 3px 14px rgba(15, 43, 65, 0.045);
  --sidebar-width: 244px;
  --sidebar-collapsed: 78px;
  --radius-lg: 16px;
  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); font-size: 14px; line-height: 1.5; }
html.navigation-pending::before { content: ""; position: fixed; z-index: 200; top: 0; left: 0; width: 72%; height: 3px; background: linear-gradient(90deg, var(--brand), #52cdb9); box-shadow: 0 0 10px rgba(8,127,114,.35); transform-origin: left; animation: navigation-progress 1.4s ease-out infinite; }
html.navigation-pending body { cursor: progress; }
@keyframes navigation-progress { 0% { transform: translateX(-100%) scaleX(.3); } 55% { transform: translateX(25%) scaleX(.75); } 100% { transform: translateX(145%) scaleX(.35); } }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.ui-icon { width: 19px; height: 19px; flex: 0 0 auto; display: block; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid rgba(31,111,168,.24); outline-offset: 2px; }
.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: var(--sidebar-width) minmax(0, 1fr); transition: grid-template-columns .2s ease; }
.app-layout.sidebar-collapsed { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; min-width: 0; display: flex; flex-direction: column; padding: 22px 14px 14px; background: linear-gradient(180deg, #081a29 0%, #0b2d48 100%); color: #dce6ee; overflow: hidden; box-shadow: 8px 0 28px rgba(11,22,32,.08); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; }
.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-copy { min-width: 0; white-space: nowrap; overflow: hidden; }
.brand-name { display: block; color: #fff; font-weight: 750; }
.brand-edition { display: block; margin-top: 1px; color: #9fb4c6; font-size: 12px; }
.workspace-mode { display: flex; align-items: center; gap: 9px; min-height: 38px; margin: 14px 3px 5px; padding: 8px 10px; border: 1px solid rgba(126,190,226,.18); border-radius: 10px; color: #a9c8dc; background: rgba(255,255,255,.035); font-size: 11px; font-weight: 750; }
.workspace-mode-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group { min-height: 0; flex: 1; margin-top: 5px; padding: 2px 2px 12px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(140,210,243,.32) transparent; }
.nav-section + .nav-section { margin-top: 14px; }
.nav-section-label { margin: 0 9px 7px; color: #7fa0b8; font-size: 10px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; white-space: nowrap; }
.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; gap: 11px; min-height: 41px; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; color: #c8d6e2; text-decoration: none; font-size: 13px; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.nav-link-icon { color: #79badf; }
.nav-link-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link[aria-current="page"] { border-color: rgba(103,183,234,.24); background: #174a73; color: #fff; font-weight: 700; box-shadow: inset 3px 0 #67b7ea; }
.nav-link[aria-current="page"] .nav-link-icon { color: #bfe9ff; }
.sidebar-toggle { min-height: 40px; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: auto; padding: 9px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #b8cbd9; background: rgba(255,255,255,.035); font-size: 12px; font-weight: 700; cursor: pointer; }
.sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-backdrop, .mobile-nav-toggle { display: none; }
.app-layout.sidebar-collapsed :is(.brand-copy, .workspace-mode-label, .nav-section-label, .sidebar-toggle span) { display: none; }
.app-layout.sidebar-collapsed .brand { justify-content: center; padding-inline: 0; }
.app-layout.sidebar-collapsed .workspace-mode, .app-layout.sidebar-collapsed .nav-link, .app-layout.sidebar-collapsed .sidebar-toggle { justify-content: center; padding-inline: 8px; }
.app-layout.sidebar-collapsed .nav-link { gap: 0; }
.app-layout.sidebar-collapsed .nav-link-label { display: none; }
.app-layout.sidebar-collapsed .nav-section + .nav-section { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }

.main-column { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; 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,.94); border-bottom: 1px solid var(--line); box-shadow: 0 3px 14px rgba(15,43,65,.035); backdrop-filter: blur(12px); }
.topbar-identity { min-width: 0; flex: 1; }
.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; flex-wrap: wrap; align-items: center; gap: 9px; }
.top-actions form { margin: 0; }
.content { width: min(1360px, 100%); margin: 0 auto; padding: 28px clamp(20px, 2.5vw, 36px) 56px; }
.content > :is(.panel, .metrics, .dashboard-grid, .module-grid) + :is(.panel, .metrics, .dashboard-grid, .module-grid) { margin-top: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-head > div:first-child { min-width: 0; }
.page-head > .button, .page-head > .top-actions { flex: 0 0 auto; }
.page-head .button { white-space: nowrap; }
.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, 2.3vw, 32px); letter-spacing: -.035em; line-height: 1.2; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.subtitle { max-width: 680px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.context-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 8px 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 3px 12px rgba(15,43,65,.04); }
.context-nav-title { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; color: #35546b; font-size: 11px; font-weight: 800; white-space: nowrap; }
.context-nav-icon { color: var(--brand); }
.context-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.context-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border-radius: 8px; color: #526b7d; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.context-link-icon { width: 15px; height: 15px; color: #79a5c2; }
.context-link:hover { color: #174a73; background: var(--brand-soft); }
.context-link[aria-current="page"] { color: #fff; background: var(--brand); }
.context-link[aria-current="page"] .context-link-icon { color: #fff; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid #cfdae3; border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 650; font-size: 13px; line-height: 1.4; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(15,43,65,.035); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.button-icon { width: 17px; height: 17px; color: var(--brand); }
.button:hover { border-color: #9fb8ca; background: #f7fbfd; box-shadow: 0 5px 14px rgba(15,43,65,.07); }
.button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button.primary .button-icon, .button.danger .button-icon { color: currentColor; }
.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); }
.notice-warning { border-color: #f0d9a8; background: #fff7e6; color: #7a4a06; }
.notice-warning .notice-dot { background: #d18a06; }
.report-back { margin: 0 0 6px; font-size: 13px; }
.report-back a { color: var(--muted); text-decoration: none; }
.report-section { margin: 26px 0 10px; font-size: 18px; }
.report-links { justify-content: flex-end; }
.scan-box { display: grid; gap: 8px; margin: 0 0 14px; padding: 14px; border: 1px dashed #b9cad8; border-radius: 12px; background: #f7fafc; }
.scan-box[hidden], .scan-choose[hidden], .scan-video[hidden] { display: none; }
.scan-row { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-row input { flex: 1 1 220px; min-width: 0; }
.scan-box input[data-scan-input], .scan-box input[data-scan-search] { min-height: 44px; padding: 10px 12px; border: 1px solid #cfdae3; border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.scan-video { width: 100%; max-width: 420px; border-radius: 10px; background: #0f2b41; }
.scan-choose { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.scan-results { display: flex; flex-wrap: wrap; gap: 6px; }
.scan-sticky { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.gstr2b-steps ol { margin: 0 0 14px; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.gstr2b-steps .field { max-width: 420px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card, .panel { min-width: 0; border: 1px solid #d6e1e9; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.panel { overflow: hidden; }
.metric-card { padding: 18px; border-top: 3px solid #7cb9dc; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.metric-card:hover { border-color: #a8cee4; border-top-color: var(--brand); box-shadow: 0 12px 28px rgba(15,43,65,.1); transform: translateY(-1px); }
.metric-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.metric-icon .ui-icon { width: 18px; height: 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; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 58px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.panel-head h2 { min-width: 0; }
.panel-body { padding: 20px; }
.table-wrap { position: relative; min-width: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #b6cbd9 transparent; }
.table-wrap:focus-visible { outline: 3px solid rgba(31,111,168,.2); outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; padding: 11px 12px; color: #52697a; background: #f4f8fb; box-shadow: inset 0 -1px var(--line); font-size: 11px; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
td { padding: 14px 16px; border-top: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { padding-inline: 16px; font-weight: 650; }
.align-right, .metric-value { font-variant-numeric: tabular-nums; }
td .button { min-height: 36px; padding: 7px 12px; font-size: 12px; }
td form { margin: 0; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #f8fbfd; }
td a { color: #175e8e; font-weight: 700; text-decoration-color: transparent; text-underline-offset: 3px; }
td a:hover { text-decoration-color: currentColor; }
.empty-cell { padding: 34px 16px; color: var(--muted); text-align: center; white-space: normal; }
.empty-cell::before { content: ""; width: 30px; height: 30px; display: block; margin: 0 auto 9px; border: 1px dashed #9fc3da; border-radius: 10px; background: linear-gradient(135deg, #f4f9fc, #e6f1f8); }
.align-right { text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 9px; border: 1px solid rgba(31,111,168,.1); border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.quick-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; font-size: 13px; font-weight: 700; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.quick-link:hover { border-color: #9fc3da; background: #f4f9fc; transform: translateX(2px); }
.quick-link-main { min-width: 0; display: flex; align-items: center; gap: 10px; }
.quick-link-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.quick-link-icon .ui-icon { width: 16px; height: 16px; }
.quick-link-arrow { 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; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-form input { width: 170px; max-width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #bdccd7; 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 #d6e1e9; border-top: 3px solid #a8cee4; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.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; }
.import-workbook-download { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.import-workbook-download .subtitle { max-width: 780px; margin-top: 0; }
.import-export-panel { overflow: hidden; }
.import-export-panel > summary { padding: 18px 20px; color: var(--ink); font-weight: 800; cursor: pointer; list-style-position: inside; }
.import-export-panel > summary:hover { background: #f6fafc; }
.import-export-panel[open] > summary { border-bottom: 1px solid var(--line); }
.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; align-content: start; min-width: 0; gap: 7px; margin-bottom: 18px; }
.field label { color: #334b5e; font-size: 13px; font-weight: 650; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #bdccd7; border-radius: 8px; color: var(--ink); background: #fff; font-size: 14px; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select { height: 44px; }
.field input[type="file"] { padding: 7px; overflow: hidden; }
.field input::file-selector-button { margin-right: 10px; padding: 5px 10px; border: 0; border-radius: 5px; color: var(--brand-dark); background: var(--brand-soft); font: inherit; cursor: pointer; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8fb0c5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(31,111,168,.14); box-shadow: 0 0 0 1px var(--brand); }
.field :is(input, select, textarea):disabled { color: #768895; background: #f1f4f6; cursor: not-allowed; }
.field :is(input, select, textarea):user-invalid { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(164,59,49,.1); }
.searchable-select { align-content: start; }
.searchable-select .select-search-input { padding-left: 12px; border-color: #d2dde5; background: #f8fbfd; }
.searchable-select .select-search-input::placeholder { color: #708390; }
.searchable-select .form-help { min-height: 18px; margin: -2px 0 0; }
.searchable-select select { margin-top: 1px; }
.provision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.form-section { min-width: 0; margin: 4px 0 20px; padding: 16px; border: 1px solid #d5e1e9; border-radius: 10px; background: #fbfdfe; }
.form-section legend { padding: 0 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.panel-body > .subtitle:first-child, .panel-body > .form-help:first-child { margin-top: 0; }
.panel-body > :is(.subtitle,.form-help) + :is(form,.button), form > .form-help + .button { margin-top: 16px; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-size: 13px; line-height: 1.55; }
.consent-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--brand); }
.danger-panel { border-color: #efb4ae; }
.reset-password-form { min-width: 250px; }
.compact-field { margin-bottom: 8px; }
.auth-card .button { width: 100%; margin-top: 5px; }
.signup-page { grid-template-columns: minmax(280px,.75fr) minmax(460px,1.25fr); }
.signup-page .auth-aside { justify-content: flex-start; gap: 64px; }
.signup-page .auth-card { width: min(800px,100%); }
.signup-page fieldset { margin: 20px 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; }
.signup-page fieldset legend { margin-bottom: 16px; font-weight: 700; }
.signup-page .field { min-width: 0; margin: 0; align-content: start; }
.signup-page [hidden] { display: none !important; }
.signup-page .button.primary { background: #1e70aa; }
.signup-page .field small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.signup-page .legal-acceptance { grid-column: 1 / -1; }
.signup-page #signup-status { padding: 12px; border-radius: 8px; background: #edf5fb; color: #175e8e; }
.signup-page .form-help { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media(max-width:900px){.signup-page { grid-template-columns: 1fr; }.signup-page .auth-aside { min-height: auto; gap: 22px; padding: 28px; }.signup-page .auth-copy h1 { font-size: 32px; }.signup-page .auth-main { padding: 18px; }}
@media(max-width:540px){.signup-page fieldset { grid-template-columns: 1fr; }.signup-page .auth-card { padding: 22px; }.signup-page .auth-copy p { font-size: 14px; }}
.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-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.provider-buttons { display: grid; gap: 10px; }
.signup-page .provider-buttons { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.provider-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; font-weight: 650; text-decoration: none; }
.provider-google { border: 1px solid #747775; background: #fff; color: #1f1f1f; }
.provider-google:hover { background: #f8f9fa; }
.provider-apple { border: 1px solid #000; background: #000; color: #fff; }
.provider-apple:hover { background: #1d1d1f; }
.provider-icon { flex: none; }
.identity-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.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 20px; align-items: start; }
.line-entry-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(100px, 1fr)); gap: 16px 12px; align-items: end; padding: 12px 0 30px; border-bottom: 1px solid var(--line); }
.line-entry-grid > .field { margin: 0; }
.line-entry-grid .searchable-select { position: relative; }
.line-entry-grid .searchable-select .form-help { position: absolute; top: 100%; margin-top: 4px; }
.line-entry-grid > .field:has(input[name^="override_reason_"]) { grid-column: 1 / -1; margin-top: 12px; }
.line-entry-grid:last-child { border-bottom: 0; }
.product-line { padding-bottom: 12px; }
.product-line summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.product-line summary:focus-visible { outline: 3px solid rgba(31,111,168,.24); outline-offset: 2px; }
.product-line-hint { margin-left: 12px; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.product-line + .product-line { padding-top: 12px; border-top: 1px solid var(--line); }
.product-line .line-entry-grid { border-bottom: 0; }
.product-line .field { min-width: 0; }
.product-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-line-actions .form-help { margin: 0; }
.remove-product { color: var(--danger); }
[data-product-editor] [hidden] { display: none !important; }
.filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filter-form .field { min-width: 180px; margin: 0; }
.register-controls { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.register-search { flex: 1 1 360px; }
.register-search .field { flex: 1 1 180px; max-width: 360px; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; color: var(--muted); font-size: .88rem; }
.button.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.loading-state, [aria-busy="true"] { position: relative; }
.loading-state::after, [aria-busy="true"]::after { content: ""; width: 16px; height: 16px; display: inline-block; margin-left: 8px; border: 2px solid #b7d3e4; border-top-color: var(--brand); border-radius: 50%; vertical-align: text-bottom; animation: ui-spin .8s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

.topbar-product { min-width: 0; display: flex; align-items: center; gap: 11px; }
.topbar-product-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: var(--brand); font-size: 17px; font-weight: 850; }
.topbar-product-copy { min-width: 0; }
.topbar-product-copy strong, .topbar-product-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-product-copy strong { font-size: 13px; letter-spacing: .025em; }
.topbar-product-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.topbar-identity > .user-context { margin-left: 51px; }
.mobile-bottom-nav { display: none; }

.dashboard-page-head { margin-bottom: 18px; }
.dashboard-primary-action { width: min(360px, 100%); min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; border-radius: 14px; color: #fff; background: var(--brand); box-shadow: 0 10px 22px rgba(8,127,114,.2); font-size: 14px; font-weight: 800; text-decoration: none; }
.dashboard-primary-action:hover { background: var(--brand-dark); }
.dashboard-primary-action .ui-icon { width: 20px; height: 20px; }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 20px; }
.dashboard-quick-actions a { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(15,43,65,.04); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.dashboard-quick-actions a:hover { border-color: #8fcac2; background: #f5fcfa; }
.dashboard-quick-actions .ui-icon { width: 20px; height: 20px; color: var(--brand); }
.dashboard-overview { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(380px, 1fr); gap: 14px; }
.dashboard-today { min-width: 0; padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(145deg, #082c32, #0b4c50); color: #eefcf9; box-shadow: 0 14px 30px rgba(5,64,62,.16); }
.dashboard-today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dashboard-today small, .dashboard-today strong { display: block; }
.dashboard-today small { color: #b8dcd8; font-size: 12px; }
.dashboard-today strong { margin-top: 6px; color: #fff; font-size: 28px; letter-spacing: -.035em; }
.dashboard-today-head b { padding: 6px 9px; border-radius: 999px; color: #c9eee8; background: rgba(67,187,170,.16); font-size: 10px; }
.dashboard-today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(223,247,241,.16); }
.dashboard-today-grid strong { font-size: 17px; }
.dashboard-month-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dashboard-month-grid .metric-card { height: 100%; }
.dashboard-section { margin-top: 22px; }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.dashboard-section-head a { color: var(--brand-dark); font-size: 12px; font-weight: 750; text-decoration: none; }
.dashboard-attention-list, .dashboard-recent-cards { display: grid; gap: 10px; }
.dashboard-attention { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 68px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.dashboard-attention-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); }
.dashboard-attention-icon.warning { color: #9b5d11; background: var(--warning-soft); }
.dashboard-attention > span:nth-child(2) { min-width: 0; }
.dashboard-attention strong, .dashboard-attention small { display: block; }
.dashboard-attention strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-attention small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.dashboard-attention b { color: var(--brand-dark); font-size: 11px; }
.dashboard-recent-cards { display: none; }
.dashboard-recent-table { border-top-color: #8fcac2; }
.dashboard-transaction { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dashboard-transaction-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); }
.dashboard-transaction-icon.purchase { color: #245ca6; background: #e8f0ff; }
.dashboard-transaction-copy { min-width: 0; flex: 1; }
.dashboard-transaction-copy strong, .dashboard-transaction-copy span, .dashboard-transaction-value strong { display: block; }
.dashboard-transaction-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-transaction-copy span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-transaction-value { flex: 0 0 auto; text-align: right; }
.dashboard-transaction-value strong { margin-bottom: 4px; font-size: 12px; }
.dashboard-transaction-value .status { min-height: 20px; padding: 2px 7px; font-size: 9px; }
.dashboard-empty { margin: 0; padding: 24px 14px; border: 1px dashed #9fc3da; border-radius: 14px; color: var(--muted); background: var(--surface); text-align: center; }

/* Localization layout contract: reviewed translations may be materially longer
   than the approved English source. Customer copy must wrap without hiding
   actions, values or navigation labels. */
[data-locale] :where(h1, h2, h3, p, label, legend, dt, dd, th, td, .subtitle, .user-context, .notice, .record-count, .form-help, .button) { overflow-wrap: anywhere; }
[data-locale] :where(.topbar, .top-actions, .page-head, .panel-head, .register-controls, .pagination) > * { min-width: 0; }
[data-locale] .button { height: auto; white-space: normal; text-align: center; }
[data-locale] .nav-link-label, [data-locale] .workspace-mode-label { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.25; }
[data-locale] .nav-link, [data-locale] .workspace-mode { height: auto; }
[data-locale] .nav-section-label { white-space: normal; overflow-wrap: anywhere; }
[data-locale] .field, [data-locale] .searchable-select, [data-locale] .panel-head > *, [data-locale] .page-head > * { min-width: 0; }
[data-locale] table { word-break: normal; }
.language-picker { position: fixed; right: 14px; bottom: 14px; z-index: 95; display: flex; align-items: center; gap: 8px; max-width: min(92vw, 310px); padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(15,43,65,.14); backdrop-filter: blur(10px); }
.language-picker label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.language-picker select { min-width: 0; height: 34px; padding: 5px 28px 5px 8px; border: 1px solid #bdd0df; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }
.legal-language-notice { position: sticky; top: 0; z-index: 55; padding: 10px 18px; border-bottom: 1px solid #e7c880; background: #fff6dc; color: #6b4a08; text-align: center; font-size: 13px; font-weight: 650; }

@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%); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-overview { 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; }
  .line-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-entry-grid > .searchable-select { grid-column: 1 / -1; margin-bottom: 24px; }
  .page-head { flex-wrap: wrap; }
}

@media (max-width: 780px) {
  .language-picker { right: 9px; bottom: 78px; max-width: calc(100vw - 18px); }
  .landing-body .language-picker, .auth-body .language-picker, .legal-body .language-picker { bottom: 9px; }
  .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, .app-layout.sidebar-collapsed { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(292px, 88vw); height: 100dvh; padding: 20px 14px 14px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(5,24,38,.25); }
  .app-layout.mobile-nav-open .sidebar { transform: translateX(0); }
  .app-layout.sidebar-collapsed :is(.brand-copy, .workspace-mode-label, .nav-section-label, .sidebar-toggle span, .nav-link-label) { display: initial; }
  .app-layout.sidebar-collapsed .brand, .app-layout.sidebar-collapsed .workspace-mode, .app-layout.sidebar-collapsed .nav-link, .app-layout.sidebar-collapsed .sidebar-toggle { justify-content: flex-start; padding-inline: 8px; }
  .app-layout.sidebar-collapsed .nav-link { gap: 11px; }
  .app-layout.sidebar-collapsed .nav-section + .nav-section { margin-top: 14px; padding-top: 0; border-top: 0; }
  .sidebar-toggle { display: none; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(5,24,38,.54); cursor: pointer; }
  .app-layout.mobile-nav-open .sidebar-backdrop { display: block; }
  .mobile-nav-lock { overflow: hidden; }
  .mobile-nav-toggle { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid #cfdae3; border-radius: 10px; color: #174a73; background: #fff; cursor: pointer; }
  .topbar { min-height: 68px; justify-content: flex-start; gap: 10px; padding: 10px 12px; }
  .topbar-product-mark { width: 40px; height: 40px; }
  .topbar-product-copy strong { font-size: 12px; }
  .topbar-product-copy span { font-size: 10px; }
  .topbar-identity > .user-context { display: none; }
  .topbar .top-actions { margin-left: auto; flex-wrap: nowrap; }
  .topbar .top-actions .button { padding-inline: 10px; }
  .topbar .logout-button { width: auto; min-width: 70px; color: #8f1c13; border-color: #e2b6b1; background: #fff8f7; }
  .page-head .top-actions { width: 100%; margin-left: 0; }
  .content { padding: 20px 14px 96px; }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 2px; padding: 7px 7px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -6px 20px rgba(15,43,65,.07); }
  .mobile-bottom-link { min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 5px 2px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 700; text-decoration: none; cursor: pointer; }
  .mobile-bottom-link[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }
  .mobile-bottom-icon { width: 19px; height: 19px; }
  .context-nav { margin-inline: -2px; }
  .context-nav-title span { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .dashboard-page-head { margin-bottom: 14px; }
  .dashboard-page-head h1 { font-size: 27px; }
  .dashboard-primary-action { width: 100%; }
  .dashboard-quick-actions { margin-bottom: 18px; }
  .dashboard-quick-actions a { min-height: 78px; flex-direction: column; gap: 7px; }
  .dashboard-today { padding: 17px; }
  .dashboard-today strong { font-size: 25px; }
  .dashboard-month-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-month-grid .metric-card { padding: 14px; }
  .dashboard-month-grid .metric-card-head { align-items: flex-start; flex-direction: column; }
  .dashboard-month-grid .metric-value { font-size: 18px; }
  .dashboard-attention { padding: 11px; }
  .dashboard-attention strong { white-space: normal; }
  .dashboard-recent-cards { display: grid; }
  .dashboard-recent-table { display: none; }
  .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; }
  .field input, .field select, .field textarea { min-height: 48px; font-size: 16px; }
  .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select { height: 48px; }
  .panel-body, .panel-head, .register-controls { padding: 16px; }
  .record-count { overflow-wrap: anywhere; }
  .filter-form { width: 100%; }
  .filter-form .field { flex: 1 1 100%; min-width: 0; max-width: none; }
  .register-search { flex-basis: 100%; }
  .pagination { justify-content: flex-start; gap: 8px; font-size: 12px; }
  .import-workbook-download .button { width: 100%; white-space: normal; }
  .form-section { padding: 12px; }
  .product-line-hint { margin-left: 6px; }
  .reset-password-form { min-width: 0; }
  .button { min-height: 44px; }
}

@media (max-width: 420px) {
  .topbar .top-actions > .button:first-child { display: none; }
  .dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-quick-actions a { min-height: 62px; flex-direction: row; }
  .dashboard-month-grid { grid-template-columns: 1fr; }
  .dashboard-attention { grid-template-columns: 40px minmax(0,1fr); }
  .dashboard-attention > b { grid-column: 2; }
  .dashboard-transaction-value .status { display: none; }
}

/* Settings → Bills & invoice. */
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 4px; font-weight: 600; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check-row small { display: block; color: var(--muted); font-weight: 400; }
.terms-editor { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.terms-editor legend { font-weight: 700; margin-bottom: 4px; }
.term-row { display: flex; align-items: center; gap: 10px; }
.term-row input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
.term-row input[type="text"] { flex: 1; min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid #bdccd7; border-radius: 8px; font: inherit; }
#invoice-settings form > .button { margin-top: 18px; }

/* Bill page (/bills/...): the same layout as the phone app's invoice PDF, printable on A4. */
.invoice-body { margin: 0; background: #eef0f6; color: #22233c; font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.5; }
.invoice-toolbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 12px; max-width: 210mm; margin: 0 auto; padding: 14px 16px; }
.invoice-sheet { box-sizing: border-box; max-width: 210mm; min-height: 297mm; margin: 0 auto 32px; padding: 30px 40px 24px; background: #fff; border-top: 6px solid #6947de; box-shadow: 0 16px 40px rgba(34,35,60,.12); display: flex; flex-direction: column; gap: 16px; }
.invoice-sheet p { margin: 0; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid #e1e2ec; }
.invoice-shop h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.2px; }
.invoice-meta { min-width: 220px; text-align: right; }
.invoice-meta h2 { margin: 0; color: #6947de; font-size: 22px; font-weight: 700; }
.invoice-meta dl { display: grid; gap: 4px; margin: 12px 0 0; }
.invoice-meta dl div { display: flex; justify-content: space-between; gap: 16px; }
.invoice-meta dt { color: #686b82; font-size: 12px; }
.invoice-meta dd { margin: 0; font-weight: 700; }
.invoice-muted { color: #686b82; }
.invoice-small { font-size: 11px; }
.invoice-strong { font-weight: 700; }
.invoice-status { color: #b73745; font-weight: 700; font-size: 15px; }
.invoice-label { color: #6947de; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 4px !important; }
.invoice-party { background: #f3f1ff; border-radius: 10px; padding: 12px 16px; }
.invoice-party-name { font-size: 17px; font-weight: 700; }
.invoice-items, .invoice-tax { width: 100%; border-collapse: collapse; }
.invoice-items th { background: #6947de; color: #fff; font-size: 11.5px; font-weight: 700; text-align: left; padding: 8px 8px; }
.invoice-items td { padding: 8px; border-bottom: 1px solid #e1e2ec; vertical-align: top; }
.invoice-items tbody tr:nth-child(even) td { background: #f9f9fc; }
.invoice-items .num, .invoice-tax .num { text-align: right; white-space: nowrap; }
.invoice-items td:last-child { font-weight: 700; }
.invoice-index { color: #686b82; width: 22px; }
.invoice-item { display: block; font-size: 13.5px; }
.invoice-hsn { display: block; color: #686b82; font-size: 11px; }
.invoice-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); gap: 28px; align-items: start; }
.invoice-words { display: grid; gap: 4px; }
.invoice-words .invoice-label:not(:first-child) { margin-top: 10px !important; }
.invoice-tax th { background: #f3f1ff; color: #686b82; font-size: 11px; font-weight: 600; text-align: left; padding: 5px 6px; }
.invoice-tax td { padding: 5px 6px; border-bottom: 1px solid #e1e2ec; font-size: 12px; }
.invoice-totals dl { display: grid; gap: 5px; margin: 0 0 10px; }
.invoice-totals dl div { display: flex; justify-content: space-between; gap: 16px; }
.invoice-totals dt { color: #686b82; }
.invoice-totals dd { margin: 0; }
.invoice-grand { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #6947de; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.invoice-grand strong { font-size: 21px; }
.invoice-foot { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.invoice-pay { display: flex; gap: 14px; align-items: flex-start; }
.invoice-pay > div { display: grid; gap: 2px; }
.invoice-pay .invoice-label { margin-top: 8px; }
.invoice-pay .invoice-label:first-child { margin-top: 0; }
.invoice-qr { width: 120px; height: 120px; border: 1px solid #e1e2ec; flex: none; }
.invoice-sign { min-width: 220px; text-align: right; display: grid; gap: 4px; }
.invoice-signature { display: block; width: 200px; height: 82px; margin-left: auto; border-bottom: 1px solid #c9cad8; }
.invoice-terms ol { margin: 0; padding-left: 20px; font-size: 12px; display: grid; gap: 2px; }
.invoice-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #e1e2ec; color: #686b82; font-size: 11px; }
@media (max-width: 640px) {
  .invoice-sheet { padding: 22px 16px; min-height: 0; }
  .invoice-head, .invoice-foot { flex-direction: column; }
  .invoice-meta, .invoice-sign { text-align: left; min-width: 0; }
  .invoice-signature { margin-left: 0; }
  .invoice-summary { grid-template-columns: 1fr; }
  .invoice-items { font-size: 12px; }
  .invoice-items th, .invoice-items td { padding: 6px 4px; }
}
@media print {
  @page { size: A4; margin: 10mm; }
  html:has(.invoice-body), .invoice-body { background: #fff !important; }
  .invoice-body { font-size: 11.5px; }
  .invoice-toolbar { display: none; }
  .invoice-sheet { max-width: none; min-height: 0; margin: 0; padding: 0 2mm; box-shadow: none; border-top: 0; gap: 11px; }
  .invoice-shop h1 { font-size: 22px; }
  .invoice-meta h2 { font-size: 19px; }
  .invoice-items td { padding: 5px 8px; }
  .invoice-qr { width: 100px; height: 100px; }
  .invoice-signature { height: 70px; }
  .invoice-items thead { display: table-header-group; }
  .invoice-items tr, .invoice-summary, .invoice-foot, .invoice-terms li { break-inside: avoid; }
  .invoice-items th, .invoice-grand, .invoice-party, .invoice-tax th, .invoice-items tbody tr:nth-child(even) td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Reports on a phone: each table row becomes a small card with its labels, totals sit two per row. */
@media (max-width: 640px) {
  .metrics.report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .report-metrics .metric-card { padding: 13px; }
  .report-metrics .metric-value { margin: 8px 0 3px; font-size: 19px; }
  .report-metrics .metric-label, .report-metrics .metric-note { font-size: 11px; }
  .report-table thead { display: none; }
  .report-table, .report-table tbody, .report-table tr { display: block; width: 100%; }
  .report-table tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .report-table tr:first-child { border-top: 0; }
  .report-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .report-table td::before { content: attr(data-label); flex: 0 0 auto; max-width: 48%; color: var(--muted); font-size: 12px; text-align: left; }
  .report-table td:first-child { font-weight: 700; }
  .report-table td:first-child::before { content: none; }
  .report-table td:first-child { justify-content: flex-start; text-align: left; }
  .report-table td.empty-cell { display: block; text-align: center; }
  .report-table td.empty-cell::before { content: none; }
  .report-links .button { flex: 1 1 calc(50% - 9px); }
}

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