:root {
    --forest: #06321c;
    --forest-2: #157a32;
    --leaf: #1f9a18;
    --ink: #102018;
    --muted: #4e6558;
    --line: #d3e3d6;
    --cream: #eef5ef;
    --paper: #ffffff;
    --gold: #e4cf12;
    --gold-deep: #8a7208;
    --sun-soft: #fff6c2;
    --danger: #8e2f2f;
    --warn: #8a5a12;
    --shadow: 0 10px 28px rgba(6, 50, 28, .07);
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh;
    color: var(--ink);
    background-color: var(--cream);
    background-image:
        radial-gradient(900px 420px at 100% -8%, rgba(228, 207, 18, .16), transparent 58%),
        radial-gradient(720px 380px at -8% -12%, rgba(21, 122, 50, .1), transparent 52%);
    font-family: "Segoe UI", Candara, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}
::selection { background: #d7ef86; color: var(--forest); }
a { color: var(--forest-2); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: Georgia, "Palatino Linotype", serif; font-weight: 600; letter-spacing: -0.02em; color: var(--forest); }
h1 { margin: 0; font-size: 1.8rem; }
h2 { margin: 0 0 12px; font-size: 1.2rem; }
h3 { margin: 0 0 6px; font-size: 1rem; }

.shell { display: flex; min-height: 100vh; }
.side {
    width: 268px;
    flex: 0 0 268px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    background:
        radial-gradient(280px 180px at 110% -10%, rgba(228, 207, 18, .22), transparent 60%),
        linear-gradient(180deg, #0b4a28 0%, #042818 58%, #02160e 100%);
    color: #f4faf6;
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px;
    box-shadow: inset 0 4px 0 var(--gold);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; padding: 6px 8px 16px; border-bottom: 1px solid rgba(228, 207, 18, .28); margin-bottom: 12px; }
.brand img, .login-brand img {
    background: #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold);
}
.brand img { width: 52px; height: 52px; }
.brand strong, .brand em { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 1.05rem; color: #fff; }
.brand em { font-style: normal; color: var(--gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e7f3ea;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 10px;
    border-left: 3px solid transparent;
}
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav a.active { background: rgba(228, 207, 18, .16); border-left-color: var(--gold); color: #fff; }
.sep { margin: 16px 10px 6px; color: #f3e58a; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.badge { margin-left: auto; background: var(--gold); color: var(--forest); border-radius: 999px; min-width: 1.3rem; text-align: center; font-size: .75rem; font-weight: 700; padding: 1px 6px; }
.side-foot { margin-top: auto; padding: 14px 8px 4px; color: #d5e7c8; font-size: .78rem; }
.ico { width: 18px; height: 18px; flex: 0 0 18px; }
.main { flex: 1; min-width: 0; }
.top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, .94);
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: inset 0 -3px 0 var(--gold), inset 0 -6px 0 var(--forest);
}
.crumb { margin: 0; color: var(--muted); letter-spacing: .04em; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who strong, .who span { display: block; }
.who span { color: var(--muted); font-size: .8rem; }
.who a { color: var(--forest); text-decoration: none; font-size: .88rem; }
.who a:hover { text-decoration: underline; }
.content { padding: 26px 28px 48px; max-width: 1180px; }
.icon-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px; }

.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.lead, .hint { color: var(--muted); }
.lead { margin: 6px 0 0; max-width: 68ch; }
.kicker { margin: 0 0 4px; color: var(--gold-deep); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.hint { margin: 6px 0 0; font-size: .86rem; }
.hint a { color: var(--forest-2); }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--forest);
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat:nth-child(2) { border-top-color: var(--forest-2); }
.stat:nth-child(3) { border-top-color: var(--leaf); }
.stat:nth-child(4) { border-top-color: var(--gold); }
.stat:nth-child(5) { border-top-color: #0d5b40; }
.stat:nth-child(6) { border-top-color: var(--gold-deep); }
.stat:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(6, 50, 28, .1); }
.stat span, .stat small { display: block; color: var(--muted); }
.stat span { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.stat b { display: block; margin: 4px 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 600; color: var(--forest); }
.stat small { font-size: .78rem; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.col, .card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.board .col:nth-child(1) { box-shadow: inset 0 3px 0 var(--forest), var(--shadow); }
.board .col:nth-child(2) { box-shadow: inset 0 3px 0 var(--leaf), var(--shadow); }
.board .col:nth-child(3) { box-shadow: inset 0 3px 0 var(--gold), var(--shadow); }
.col header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.col h2 { margin: 0; font-size: 1.05rem; }
.col header a, .more { font-size: .86rem; }
.ticket {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.ticket:hover { background: #f3faee; }
.ticket .dv { font-weight: 700; }
.ticket .payee { display: block; color: var(--muted); }
.ticket .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: .82rem; }
.ticket em { font-style: normal; color: var(--muted); }
.card { margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card h2 .count { font-family: "Segoe UI", sans-serif; font-size: .8rem; background: var(--sun-soft); color: var(--forest); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.split { display: grid; grid-template-columns: 1.3fr .9fr; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.narrow { max-width: 560px; }

.steps-list { margin: 0; padding-left: 18px; }
.steps-list li { margin: 8px 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0 10px 14px; border-left: 2px solid var(--gold); margin-left: 4px; }
.timeline strong, .timeline span, .timeline em { display: block; }
.timeline span, .timeline em { color: var(--muted); font-size: .86rem; }
.timeline em { font-style: normal; color: var(--ink); }

.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 6px; }
.stepper li { flex: 1; text-align: center; font-size: .75rem; padding: 8px 4px; border-radius: 999px; background: #e7f0e6; color: var(--muted); }
.stepper li.done { background: #d7efd4; color: var(--forest); }
.stepper li.now { background: var(--forest); color: var(--gold); }

.table-wrap { overflow: auto; }
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.data a { font-weight: 650; }
.data .num, .num { text-align: right; font-variant-numeric: tabular-nums; }
.entry textarea, .entry input, .field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid #c9d9cc;
    background: #fff;
    border-radius: 10px;
    padding: 9px 10px;
}
.entry textarea:focus, .entry input:focus, .field input:focus, .field select:focus, .field textarea:focus, .inline-select:focus {
    outline: none;
    border-color: var(--forest-2);
    box-shadow: 0 0 0 3px rgba(21, 122, 50, .16);
}
.entry textarea { min-width: 220px; }
.inline-select { border: 1px solid #c9d9cc; background: #fff; border-radius: 10px; padding: 5px 8px; max-width: 280px; }
.field input[readonly] { background: var(--cream); color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field[hidden] { display: none; }
.field span, .field-label { font-size: .82rem; font-weight: 650; }
.req { color: var(--danger); font-style: normal; }
.grid-2, .grid-3 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.span-2 { grid-column: span 2; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; }
.choice:has(input:checked) { border-color: var(--forest-2); background: #e7f6e4; }
.checkline { border-radius: 10px; margin: 8px 0; }
.is-dim { opacity: .55; }
.amt { width: 130px; }
.num-input { text-align: right; }
.totalbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0; }
.totalbar p { margin: 0; }
.totalbar strong { font-family: Georgia, serif; font-size: 1.3rem; }
.sticky-actions { position: sticky; bottom: 10px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 -8px 24px rgba(6, 50, 28, .06); }
.doc-list, .doc-picked { list-style: none; padding: 0; margin: 0 0 12px; }
.doc-list li, .doc-picked li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.doc-list a { font-weight: 650; }
.doc-meta { color: var(--muted); font-size: .86rem; }
.doc-remove { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .86rem; }
.doc-picked li.is-bad { color: var(--danger); }
.card > h3 { margin-top: 16px; }
.dropzone {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: center;
    border: 1.5px dashed #b7d0ba;
    border-radius: 14px;
    padding: 18px 14px;
    background: #f7fbf7;
    text-align: center;
    cursor: pointer;
}
.dropzone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.dropzone strong { color: var(--forest); }
.dropzone span { color: var(--muted); font-size: .86rem; }
.dropzone.is-over { border-color: var(--forest-2); background: #e7f6e4; }
.balance { font-weight: 650; }
.balance.ok { color: var(--forest-2); }
.balance.bad { color: var(--danger); }

.filters { display: grid; grid-template-columns: 1.4fr .8fr .6fr .6fr .6fr auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters .field { margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    cursor: pointer;
    background: #e7f0e4;
    color: var(--forest);
    font-weight: 650;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-ghost { background: transparent; border-color: #b7d0ba; color: var(--forest); }
.btn-danger { background: #f8e8e8; color: var(--danger); border-color: #e3c1c1; }
.btn-sm { padding: 5px 10px; font-size: .82rem; }
.btn:hover { filter: brightness(1.06); }

.pill { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: .75rem; background: #e7f0e4; color: var(--forest); white-space: nowrap; }
.s-draft, .s-returned { background: #fff3c4; color: var(--warn); }
.s-for_certification, .s-for_accounting, .s-for_cash, .s-for_approval { background: #e3f5df; color: var(--forest); }
.s-approved { background: var(--sun-soft); color: #6d5608; }
.s-paid { background: #d4f0dc; color: #0d5b40; }
.s-cancelled { background: #f3dcdc; color: var(--danger); }
.age-warn { color: var(--warn); font-weight: 650; }
.age-late { color: var(--danger); font-weight: 650; }

.flash { border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.flash-ok { background: #e3f6e6; color: #0d5b40; }
.flash-error { background: #fdecec; color: #7d2424; }
.banner-warn, .banner-bad { border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.banner-warn { background: #fff4df; color: #6d4a0d; }
.banner-bad { background: #fdecec; color: #7d2424; }
.empty { color: var(--muted); padding: 8px 0; }
blockquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--gold); background: #f7fbe8; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 10px; }
.kv div { margin: 0; }
.kv dt { color: var(--muted); font-size: .78rem; }
.kv dd { margin: 0; }
.words { font-family: Georgia, serif; font-style: italic; }
.siggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.siggrid article { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.siggrid article p { margin: 0 0 6px; font-size: .86rem; }
.sig-name { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.35rem; margin: 8px 0 0; }
.sig-image, .sig-pick, .sig-thumb { display: block; object-fit: contain; background: #fff; }
.sig-image { height: 52px; max-width: 200px; margin-top: 8px; }
.sig-pick { height: 52px; max-width: 200px; margin-top: 8px; }
.sig-thumb { height: 40px; max-width: 140px; margin-top: 6px; }
.dsig { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 0; padding: 0; background: transparent; color: #1e4e9e; font-family: Arial, Helvetica, "Segoe UI", sans-serif; font-style: normal; font-weight: 400; line-height: 1.1; letter-spacing: 0; text-align: left; vertical-align: middle; }
.dsig-badge { width: 16px; height: 22px; flex: 0 0 16px; display: block; }
.dsig-badge-slot { display: inline-flex; align-items: center; }
.dsig-sign { display: block; height: 26px; width: auto; max-width: 64px; object-fit: contain; flex: 0 0 auto; background: transparent; }
.dsig-sign[hidden], .dsig-badge-slot[hidden] { display: none !important; }
.dsig-copy { display: flex; flex-direction: column; min-width: 0; }
.dsig-by, .dsig-line { font-size: 9px; font-weight: 400; white-space: nowrap; }
.dsig-name { font-size: 10px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.revoke-form { margin-bottom: 16px; }
.danger-zone { margin-top: 8px; }
.danger-zone summary { cursor: pointer; color: var(--danger); }
.print-only { display: none; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.messenger-panel[hidden],
.messenger-list[hidden],
.messenger-thread[hidden],
.messenger-back[hidden],
.messenger-count[hidden] { display: none !important; }
.messenger { position: fixed; right: 18px; bottom: 18px; z-index: 30; }
.messenger-fab {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    box-shadow: 0 8px 20px rgba(6, 50, 28, .28), 0 0 0 3px var(--gold);
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
}
.messenger-fab:hover { background: var(--forest-2); }
.messenger-fab .ico { width: 22px; height: 22px; }
.messenger-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--forest);
    font-size: .7rem;
    font-weight: 700;
    line-height: 18px;
}
.messenger-panel {
    position: absolute;
    right: 0;
    bottom: 56px;
    width: min(340px, calc(100vw - 28px));
    height: min(480px, calc(100vh - 96px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(6, 50, 28, .18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.messenger-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, #0b4a28, #06321c);
    color: #fff;
}
.messenger-head > div { flex: 1; min-width: 0; }
.messenger-head strong, .messenger-head span { display: block; }
.messenger-head strong { font-family: Georgia, serif; font-size: 1rem; }
.messenger-head span { color: #f3e58a; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messenger-head .ico { width: 18px; height: 18px; }
.messenger-back, .messenger-close {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}
.messenger-close { margin-left: auto; font-size: 1.4rem; line-height: 1; }
.messenger-back:hover, .messenger-close:hover { background: rgba(255, 255, 255, .12); }
.messenger-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.messenger-list, .messenger-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.messenger-search { display: block; padding: 10px 10px 0; }
.messenger-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--cream);
}
.messenger-people, .messenger-log { flex: 1; overflow: auto; padding: 8px; }
.messenger-person {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
}
.messenger-person:hover, .messenger-person.is-unread { background: #f3faf4; }
.messenger-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7f6e4;
    color: var(--forest);
    font-weight: 700;
    font-size: .82rem;
}
.messenger-person.is-payee .messenger-avatar { background: var(--sun-soft); color: var(--gold-deep); }
.messenger-meta { flex: 1; min-width: 0; }
.messenger-label { margin: 10px 8px 4px; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.messenger-person strong, .messenger-person small, .messenger-person em { display: block; }
.messenger-person strong { font-size: .92rem; }
.messenger-person small, .messenger-person em { color: var(--muted); font-style: normal; font-size: .75rem; }
.messenger-person em {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.messenger-person .pill { margin-left: auto; }
.messenger-empty { color: var(--muted); padding: 16px 8px; margin: 0; }
.messenger-log { display: flex; flex-direction: column; gap: 8px; background: #f7fbf8; }
.bubble {
    max-width: 82%;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}
.bubble.mine { margin-left: auto; background: #e5f6df; border-color: #c9e6c4; }
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble time { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.messenger-compose {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 8px;
    border-top: 1px solid var(--line);
}
.messenger-compose textarea {
    flex: 1;
    resize: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px;
    min-height: 42px;
}

.login-body { display: grid; place-items: center; min-height: 100vh; }
.register-body { place-items: start center; padding: 28px 0 40px; }
.login-links { margin: 14px 0 0; font-size: .92rem; }
.login-wrap { display: grid; grid-template-columns: 1.05fr .95fr; width: min(1040px, calc(100% - 28px)); background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(4, 40, 24, .18); border: 1px solid rgba(6, 50, 28, .08); }
.login-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(228, 207, 18, .28), transparent 28%),
        radial-gradient(circle at 88% 92%, rgba(31, 154, 24, .28), transparent 34%),
        linear-gradient(165deg, #0d532c 0%, #06321c 58%, #02160e 100%);
    color: #f4faf6;
    padding: 36px 32px;
}
.login-brand::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -110px;
    border-radius: 50%;
    border: 2px solid rgba(228, 207, 18, .45);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, .04), inset 0 0 0 10px rgba(31, 154, 24, .18);
    pointer-events: none;
}
.login-brand > * { position: relative; }
.login-brand img { width: 92px; height: 92px; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-size: .75rem; margin-bottom: 0; }
.login-brand h1 { font-size: 2.15rem; line-height: 1.12; margin: 8px 0 10px; color: #fff; }
.login-brand h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--leaf)); }
.flow { list-style: none; padding: 0; margin: 22px 0 0; }
.flow li { padding: 10px 0 10px 14px; border-left: 2px solid var(--gold); }
.flow strong, .flow span { display: block; }
.flow span { color: #d7eadc; font-size: .9rem; }
.login-panel { padding: 32px 28px; }
.login-form h2 { margin-bottom: 4px; }

.privacy-wrap {
    width: min(760px, calc(100% - 28px));
    background: var(--paper);
    border-radius: 24px;
    padding: 28px 32px 24px;
    box-shadow: 0 24px 60px rgba(4, 40, 24, .18);
    border: 1px solid rgba(6, 50, 28, .08);
}
.privacy-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.privacy-brand img {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold);
}
.privacy-brand h1 { font-size: 1.7rem; margin: 2px 0; }
.privacy-brand p { margin: 0; color: var(--muted); }
.privacy-copy h2 { margin-top: 16px; font-size: 1.05rem; }
.privacy-copy h3 { margin-top: 12px; }
.privacy-copy p { margin: 6px 0 0; }
.privacy-penalty {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sun-soft);
    border: 1px solid #e6d56a;
}
.privacy-penalty h2, .privacy-penalty h3 { margin-top: 0; }
.agree-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
}
.agree-line input { margin-top: 4px; flex: 0 0 auto; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.audit-filters { grid-template-columns: minmax(240px, 1fr) auto auto; }
.audit-filters .btn { white-space: nowrap; align-self: end; }
.pill-ok { background: #d4f0dc; color: #0d5b40; }
.pill-no { background: #f3dcdc; color: var(--danger); }
.audit-note summary { cursor: pointer; font-weight: 650; }
.audit-statement {
    white-space: pre-wrap;
    margin-top: 8px;
    color: var(--muted);
    font-size: .86rem;
    max-width: 52ch;
}
.demo { margin-top: 22px; }
.demo h3 { margin-bottom: 4px; }
.demo ul { list-style: none; padding: 0; margin: 8px 0 0; }
.demo li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.demo strong, .demo em { display: block; }
.demo em { font-style: normal; color: var(--muted); font-size: .8rem; }
.demo button { border: 1px solid #b7d0ba; background: #fff; color: var(--forest); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.demo button:hover { background: #e7f6e4; }

@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
    .filters { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
    .board, .split, .login-wrap, .grid-2, .grid-3, .siggrid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .side { position: fixed; z-index: 20; transform: translateX(-105%); transition: transform .2s ease; }
    .side.open { transform: none; }
    .icon-btn { display: inline-flex; }
    .content, .top { padding-left: 16px; padding-right: 16px; }
    .who span { display: none; }
}
@media print {
    body { background: #fff; }
    .side, .top, .no-print, .filters, .messenger { display: none !important; }
    .shell, .main, .content { display: block; padding: 0; max-width: none; }
    .print-only { display: block; }
    .card, .stat { box-shadow: none; }
}
