/* Kirvo — paleta esmeralda, com modo claro e escuro */
:root {
    --brand: #065F46;
    --brand-2: #047857;
    --brand-soft: #E7F6EF;
    --brand-bright: #10B981;
    --on-brand: #FFFFFF;
    --on-brand-muted: #BBF0D6;
    --link: #047857;
    --bg: #F5F7F6;
    --surface: #FFFFFF;
    --surface-2: #EDF3F0;
    --text: #0F1115;
    --text-2: #2A3240;
    --muted: #5B6575;
    --line: #DDE3E0;
    --danger: #B42318;
    --danger-soft: #FEE4E2;
    --warning: #B54708;
    --warning-soft: #FEF0C7;
    --s-prospectando: #3B5B8C;
    --s-andamento: #B54708;
    --s-concluido: #10B981;
    --s-cancelado: #8A8F98;
    --q-rascunho: #6B7280;
    --q-enviado: #2563EB;
    --q-aprovado: #047857;
    --q-recusado: #B42318;
    --backdrop: rgba(6, 78, 59, .55);
    --focus: rgba(16, 185, 129, .25);
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 17, 21, .06), 0 4px 16px rgba(15, 17, 21, .06);
    --safe-b: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    -webkit-text-size-adjust: 100%;
}

/* Modo escuro: automático (sistema) ou escolhido pela pessoa */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #0B7A5A; --brand-2: #10966F; --brand-soft: #12302A; --brand-bright: #34D399;
        --on-brand: #FFFFFF; --on-brand-muted: #A7F3D0; --link: #34D399;
        --bg: #0E1412; --surface: #161E1B; --surface-2: #1C2622; --text: #E8EEEB; --text-2: #C9D3CF;
        --muted: #93A19B; --line: #2A3631; --danger: #F97066; --danger-soft: #3B1715; --warning: #FDB022; --warning-soft: #3A2A0B;
        --s-prospectando: #7FA3D9; --s-andamento: #F79009; --s-concluido: #34D399; --s-cancelado: #8A8F98;
        --q-rascunho: #9CA3AF; --q-enviado: #60A5FA; --q-aprovado: #34D399; --q-recusado: #F97066;
        --backdrop: rgba(0, 0, 0, .65); --focus: rgba(52, 211, 153, .3);
        --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --brand: #0B7A5A; --brand-2: #10966F; --brand-soft: #12302A; --brand-bright: #34D399;
    --on-brand: #FFFFFF; --on-brand-muted: #A7F3D0; --link: #34D399;
    --bg: #0E1412; --surface: #161E1B; --surface-2: #1C2622; --text: #E8EEEB; --text-2: #C9D3CF;
    --muted: #93A19B; --line: #2A3631; --danger: #F97066; --danger-soft: #3B1715; --warning: #FDB022; --warning-soft: #3A2A0B;
    --s-prospectando: #7FA3D9; --s-andamento: #F79009; --s-concluido: #34D399; --s-cancelado: #8A8F98;
    --q-rascunho: #9CA3AF; --q-enviado: #60A5FA; --q-aprovado: #34D399; --q-recusado: #F97066;
    --backdrop: rgba(0, 0, 0, .65); --focus: rgba(52, 211, 153, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; min-height: 100dvh; font-size: 16px; line-height: 1.45; color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Splash / login ---------- */
.splash { min-height: 100dvh; display: grid; place-items: center; background: var(--brand); }
.logo-mark { width: 56px; height: 56px; border-radius: 14px; display: block; }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--brand); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 18px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card h1 { font-size: 1.5rem; margin: 14px 0 4px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); margin: 0 0 20px; }
.auth-card .logo-mark { width: 48px; height: 48px; border-radius: 12px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; }
.auth-foot { margin-top: 18px; font-size: .82rem; color: var(--muted); text-align: center; }
.auth-forgot { text-align: right; margin: -6px 0 14px; font-size: .9rem; }
.success { background: var(--brand-soft); color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: .95rem; margin-bottom: 14px; }

/* ---------- Formulários ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.field input, .field select, .field textarea, .input {
    width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    min-height: 46px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--focus); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 16px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 > :first-child { grid-column: 1 / -1; } }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
    background: var(--brand); color: var(--on-brand); font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.ghost.danger-text { color: var(--danger); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn.whatsapp { background: #128C4B; color: #fff; }
.icon-btn {
    width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; flex: none;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); text-decoration: none;
}
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn.danger { color: var(--danger); }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Estrutura ---------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 10; background: var(--brand); color: var(--on-brand);
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.topbar .logo-mark { width: 32px; height: 32px; border-radius: 8px; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { color: var(--on-brand-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; position: relative; }
.topnav a.active, .topnav a:hover { color: var(--on-brand); background: rgba(255,255,255,.12); }

main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 16px calc(88px + var(--safe-b)); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.4rem; margin: 0; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 6px; }

.bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface);
    border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
    padding-bottom: var(--safe-b);
}
.bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; position: relative;
    color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600;
}
.bottomnav a.active { color: var(--brand-2); }
.dot-count {
    position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.topnav .dot-count { top: 0; left: auto; right: -2px; }

@media (min-width: 900px) {
    .topnav { display: flex; }
    .bottomnav { display: none; }
    main { padding: 24px 24px 40px; }
}

/* ---------- Cartões / listas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .main { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.list-item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .actions { display: flex; gap: 6px; flex: none; }
.meta-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.list-item .value { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.list-item { color: inherit; text-decoration: none; }
a.list-item:hover { background: var(--surface-2); }
.avatar {
    width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-2); font-weight: 700;
}
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.search { margin-bottom: 12px; }
.section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.section-title.danger { color: var(--danger); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }

.alert { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin-bottom: 14px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 14px; background: var(--brand-soft); color: var(--text); flex-wrap: wrap; }
.banner.warn { background: var(--warning-soft); }
.banner .grow { flex: 1; min-width: 180px; }

/* ---------- Kanban ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { padding: 12px 14px; }
.stat .label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .num { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.board {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 85%); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
@media (min-width: 900px) { .board { grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.col { scroll-snap-align: start; background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.col.over { outline: 2px dashed var(--brand-2); outline-offset: -4px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px; font-weight: 700; font-size: .92rem; }
.col-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.col-head .count { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .85rem; }
.col-total { font-size: .8rem; color: var(--muted); padding: 0 4px 4px; font-variant-numeric: tabular-nums; }
.pcard { background: var(--surface); border-radius: 10px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); cursor: grab; }
.pcard .t { font-weight: 600; margin-bottom: 2px; word-break: break-word; }
.pcard .c { font-size: .85rem; color: var(--muted); }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.pcard .v { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.pcard .d { font-size: .8rem; color: var(--muted); }
.pcard .d.late { color: var(--danger); font-weight: 600; }
.pcard select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .82rem; min-height: 34px; }
.pcard .edit { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; width: 100%; color: inherit; }

/* ---------- Orçamento ---------- */
.items { width: 100%; border-collapse: collapse; }
.items th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 0 6px 6px; }
.items td { padding: 4px 6px; vertical-align: top; }
.items td.num { width: 110px; }
.items td.sub { width: 120px; text-align: right; font-weight: 600; padding-top: 16px; font-variant-numeric: tabular-nums; }
.items td.del { width: 48px; }
@media (max-width: 640px) {
    .items thead { display: none; }
    .items, .items tbody, .items tr, .items td { display: block; width: 100% !important; }
    .items tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 10px; position: relative; }
    .items td.num { display: inline-block; width: 48% !important; }
    .items td.sub { text-align: left; padding-top: 4px; }
    .items td.del { position: absolute; top: 8px; right: 8px; width: auto !important; padding: 0; }
    .items td.desc { padding-right: 52px; }
}
.totals { margin-left: auto; max-width: 320px; padding: 12px 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.2rem; font-weight: 800; border-top: 2px solid var(--text); margin-top: 6px; padding-top: 8px; }
.form-section { padding: 16px; margin-bottom: 14px; }
.form-section h2 { font-size: 1rem; margin: 0 0 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.form-actions.start { justify-content: flex-start; }
.form-actions .push { margin-right: auto; }
.share-options { display: grid; gap: 10px; }
.share-options .btn { justify-content: flex-start; }

/* ---------- Cliente: detalhe e linha do tempo ---------- */
.client-head { display: flex; gap: 14px; align-items: center; padding: 16px; flex-wrap: wrap; }
.client-head .avatar { width: 56px; height: 56px; font-size: 1.3rem; }
.client-head .info { flex: 1; min-width: 200px; }
.client-head h1 { font-size: 1.3rem; margin: 0; }
.client-head .meta { color: var(--muted); font-size: .9rem; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 3fr 2fr; align-items: start; } }
.timeline { list-style: none; margin: 0; padding: 0 16px 8px; }
.timeline li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-bright); }
.timeline .when { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.timeline .txt { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.timeline .del { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.note-form { padding: 16px; border-bottom: 1px solid var(--line); }

/* ---------- Lembretes ---------- */
.rem { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rem:last-child { border-bottom: 0; }
.rem input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; cursor: pointer; }
.rem .main { flex: 1; min-width: 0; }
.rem .title { font-weight: 600; word-break: break-word; }
.rem.done .title { text-decoration: line-through; color: var(--muted); }
.rem .meta { font-size: .85rem; color: var(--muted); }
.rem .meta.late { color: var(--danger); font-weight: 600; }

/* ---------- Relatório ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.chart { padding: 16px; }
.chart h2 { font-size: 1rem; margin: 0 0 2px; }
.chart .sub { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 200px; border-bottom: 1px solid var(--line); padding-top: 22px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.bar { width: min(36px, 70%); background: var(--brand-bright); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-col:hover .bar, .bar-col:focus-visible .bar { background: var(--brand-2); }
.bar-val { font-size: .72rem; color: var(--text-2); font-weight: 600; margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 6px; }
.bar-labels span { text-align: center; font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.tip {
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
    padding: 6px 10px; border-radius: 8px; font-size: .8rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 2;
}
.bar-col:hover .tip, .bar-col:focus-visible .tip { opacity: 1; }
.funnel div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.funnel div:last-child { border-bottom: 0; }

/* ---------- Conta ---------- */
.logo-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.logo-prev { width: 120px; height: 72px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; color: #5B6575; font-size: .8rem; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segmented button { border: 0; background: var(--surface); padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--text-2); }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button.on { background: var(--brand); color: var(--on-brand); }
.danger-zone { border-color: var(--danger); }
.danger-zone h2 { color: var(--danger); }

/* ---------- Modal / toast ---------- */
.modal {
    border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
    box-shadow: 0 30px 80px rgba(0,0,0,.3); background: var(--surface); color: var(--text);
}
.modal::backdrop { background: var(--backdrop); }
.modal .m-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal .m-head h2 { margin: 0; font-size: 1.1rem; }
.modal .m-body { padding: 18px; overflow-y: auto; }
.modal .m-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toast {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-b)); z-index: 50;
    background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow);
    max-width: calc(100vw - 32px); font-size: .95rem;
}
.toast.error { background: var(--danger); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.offline-bar { position: sticky; top: 0; z-index: 60; background: #B54708; color: #fff; text-align: center; padding: 8px 12px; font-size: .88rem; }

/* ---------- Páginas de texto (privacidade, exclusão) ---------- */
.doc-top { background: var(--brand); color: var(--on-brand); padding: 28px 16px; }
.doc-top .inner, .doc { max-width: 760px; margin: 0 auto; }
.doc-top a { color: var(--on-brand-muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.doc-top h1 { margin: 14px 0 4px; font-size: 1.7rem; letter-spacing: -.02em; }
.doc-top p { margin: 0; color: var(--on-brand-muted); }
.doc { padding: 24px 16px 60px; }
.doc h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--brand-soft); color: var(--text); }
