[hidden] { display: none !important; }
/* BizMoro app styles. Look and frame are finished in bizmoro.css, loaded after this file. */
/* Layout: app shell. Sidebar nav on wide screens, bottom tab bar on phones; one view at a time. */
/* BizMoro palette: white surfaces, near-black text, cobalt for actions. Money meanings keep one colour each:
   sold = cobalt, money in = green, owed = amber, money out = red. White is the default; dark only when chosen. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --line: #E4E7EC;
  --line-2: #EEF0F3;
  --fg: #16181D;
  --ink-2: #3D4350;
  --muted: #5B6170;
  --accent: #3F62E0;
  --accent-ink: #FFFFFF;
  --accent-soft: #ECF0FD;
  --accent-strong: #2F4FC4;
  --gold: #A86200;
  --coin: #3F62E0;
  --gold-soft: #FDF2DC;
  --good: #11804F;
  --warn: #A86200;
  --bad: #C63D30;
  --good-soft: #E4F5EC;
  --warn-soft: #FDF2DC;
  --bad-soft: #FCE9E6;
  --side-bg: #FFFFFF;
  --side-ink: #16181D;
  --side-muted: #3D4350;
  --brand-ink: #16181D;
  --display: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 4px 16px rgba(22, 24, 29, .05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F1115; --surface: #171A20; --surface-2: #1E2229; --line: #2A2F38; --line-2: #22262E;
  --fg: #ECEEF2; --ink-2: #C5CAD3; --muted: #9AA1AE; --accent: #7C95F0; --accent-ink: #0F1115; --accent-soft: #1E2640; --accent-strong: #A3B5F5;
  --gold: #F2C46B; --coin: #7C95F0; --gold-soft: #33290F; --good: #5CC98F; --warn: #F2C46B; --bad: #F08079;
  --good-soft: #16301F; --warn-soft: #33290F; --bad-soft: #3A1C1A;
  --side-bg: #171A20; --side-ink: #ECEEF2; --side-muted: #C5CAD3; --brand-ink: #ECEEF2;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }


.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.mode { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.mode a { border: 0; background: transparent; padding: 7px 6px; border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.mode a[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; text-align: left; font-weight: 500; color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: none; }
.biz { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; font-size: .85rem; }
.biz strong { display: block; }

main { min-width: 0; padding-block: 24px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.view { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.view-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; justify-content: space-between; }
.view-head p { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: 1.1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.alert { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: var(--radius); padding: 14px 16px; }
.alert .when { font-family: var(--mono); font-weight: 500; color: var(--warn); font-size: .85rem; }
.alert .txt { flex: 1 1 260px; min-width: 0; }

.btn { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .88rem; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-sm { padding: 5px 10px; font-size: .8rem; }

.score { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-family: var(--display); font-size: 2rem; line-height: 1; display: block; }
.bars { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 34px; gap: 8px; align-items: center; font-size: .85rem; }
.track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 99px; }

.stages { display: flex; flex-direction: column; gap: 14px; }
.stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .t { min-width: 0; }
.item .t small { display: block; color: var(--muted); font-size: .8rem; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.dot.done { background: var(--good); border-color: var(--good); }
.dot.prog { border-color: var(--warn); background: conic-gradient(var(--warn) 0 50%, transparent 50% 100%); }
.dot.lock { border-style: dashed; }
.dot svg { width: 12px; height: 12px; }
.item.is-done .t span { color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--surface-2); color: var(--muted); }

.dl { list-style: none; margin: 0; padding: 0; }
.dl li { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dl li:first-child { border-top: 0; }
.date { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; background: var(--surface-2); }
.date b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.date span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi .v { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.kpi .d { font-size: .8rem; }
.up { color: var(--good); } .down { color: var(--bad); }
.chart-wrap { overflow-x: auto; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.r, th.r { text-align: right; }
.tbl { overflow-x: auto; }

.chat { display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.bot ul { margin: 6px 0 0; padding-left: 18px; }
.msg .src { display: block; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: .84rem; }
.suggest button:hover { border-color: var(--accent); color: var(--accent); }
.composer { display: flex; gap: 8px; }
.composer input, .composer textarea { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); color: inherit; font: inherit; }
.composer textarea { resize: none; line-height: 1.45; max-height: 160px; }
.composer { align-items: flex-end; }
.msg { overflow-wrap: anywhere; word-break: break-word; }
.msg .md-list { margin: 6px 0; padding-left: 20px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: kd-dot 1.2s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: .15s; } .msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes kd-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .msg.typing span { animation: none; } }
#chat { max-height: 62vh; overflow-y: auto; padding-right: 4px; }

.calc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.field input { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--surface); font-family: var(--mono); }
.result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.result b { display: block; font-family: var(--mono); font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--display); }
.steps li.now::before { background: var(--accent); color: var(--surface); }

.modal-bg { position: fixed; inset: 0; background: rgba(10,20,14,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 16px; max-width: 420px; width: 100%; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal .row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-size: .9rem; }
.modal .acts { display: flex; gap: 8px; justify-content: end; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .88rem; z-index: 60; max-width: calc(100% - 32px); }

.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .g-2, .g-3, .kpis { grid-template-columns: 1fr; }
  main { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .mobile-top { display: flex !important; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); z-index: 40; }
  .tabbar a { border: 0; background: transparent; padding: 8px 1px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; min-width: 0; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .tabbar svg { width: 20px; height: 20px; }
  .tabbar a { position: relative; }
  .tabbar .count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; font-size: .6rem; line-height: 16px; background: var(--bad); color: #fff; }
}
@media (max-width: 520px) {
  .dl li { grid-template-columns: 60px 1fr; }
  .dl .acts { grid-column: 1 / -1; justify-content: start; }
  .calc, .result { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .item { grid-template-columns: 22px 1fr; }
  .item > :last-child { grid-column: 2; justify-self: start; }
}
.wa-wrap { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 20px; align-items: start; }
.phone { --wa-bg: #efe7dd; --wa-in: #ffffff; --wa-out: #d9fdd3; --wa-head: #0b5e4f; --wa-ink: #111b21; --wa-sub: #667781;
  border-radius: 28px; border: 8px solid var(--fg); overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; height: 600px; max-width: 100%; }
:root[data-theme="dark"] .phone { --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; --wa-head: #202c33; --wa-ink: #e9edef; --wa-sub: #8696a0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; --wa-head: #202c33; --wa-ink: #e9edef; --wa-sub: #8696a0; } }
.wa-head { background: var(--wa-head); color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; background: #25d366; display: grid; place-items: center; flex: none; }
.wa-head small { display: block; opacity: .8; font-size: .75rem; }
.wa-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; color: var(--wa-ink); }
.wa { max-width: 86%; padding: 7px 10px 5px; border-radius: 9px; font-size: .88rem; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 2px; }
.wa.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.wa .tm { display: block; text-align: right; font-size: .68rem; color: var(--wa-sub); margin-top: 2px; }
.wa .tr { display: block; font-size: .78rem; color: var(--wa-sub); font-style: italic; margin-top: 4px; }
.vn { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.vn .play { width: 26px; height: 26px; border-radius: 50%; background: var(--wa-sub); display: grid; place-items: center; flex: none; }
.vn .wave { flex: 1; height: 20px; background: repeating-linear-gradient(90deg, var(--wa-sub) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(0deg, #000 30%, transparent 30% 70%, #000 70%); opacity: .7; border-radius: 2px; }
.vn .dur { font-size: .72rem; color: var(--wa-sub); font-family: var(--mono); }
.wa-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.wa-btns button { border: 0; background: transparent; color: #027eb5; font-weight: 600; padding: 6px; border-top: 1px solid rgba(128,128,128,.25); font-size: .85rem; }
.wa-foot { padding: 8px; display: flex; gap: 8px; align-items: center; background: var(--wa-bg); }
.wa-foot .fake { flex: 1; background: var(--wa-in); border-radius: 20px; padding: 9px 14px; color: var(--wa-sub); font-size: .85rem; }
.wa-mic { width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: grid; place-items: center; border: 0; flex: none; }
.vn-list { display: flex; flex-direction: column; gap: 8px; }
.vn-list button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; }
.vn-list button:hover { border-color: var(--accent); }
.vn-list button[disabled] { opacity: .5; cursor: default; }
.vn-list .mic { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
@media (max-width: 860px) { .wa-wrap { grid-template-columns: 1fr; } .phone { height: 540px; } }
.mobile-top { display: none; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) { .fill, .ring circle { transition: all .5s ease; } }

/* ---- Additions for the real app (links, forms, messages, auth pages) ---- */
a { color: var(--accent); }
.nav a, .tabbar a { text-decoration: none; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-weight: 500; color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .group { margin: 12px 10px 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--fg); cursor: pointer; }
.btn-primary { color: var(--accent-ink); }
.btn-danger { color: var(--bad); }
.btn-block { width: 100%; justify-content: center; }
.mobile-top { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }

form .field input, form .field select, form .field textarea,
.input { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: var(--surface); color: var(--fg); font: inherit; width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field .help { color: var(--muted); font-size: .78rem; }
.field .error, .errorlist { color: var(--bad); font-size: .8rem; list-style: none; padding: 0; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.flash { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flash li { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; }
.flash li.success { background: var(--good-soft); color: var(--good); }
.flash li.error { background: var(--bad-soft); color: var(--bad); }
.flash li.warning { background: var(--warn-soft); color: var(--warn); }

.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 420px; }
.auth .brand { padding: 0; margin-bottom: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg label { text-align: center; padding: 7px; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg input { display: none; }
.seg input:checked + span { color: var(--fg); }
.seg label:has(input:checked) { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.otp { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .4em; text-align: center; }

.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: .8em; }
.prose ul, .prose ol { padding-left: 20px; }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-weight: 600; font-size: .8rem; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.landing-hero { max-width: 760px; margin: 0 auto; padding: 56px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.landing-grid { max-width: 1040px; margin: 0 auto; padding: 0 16px 56px; }
@media print { .side, .tabbar, .mobile-top, .no-print { display: none !important; } .shell { display: block; } body { background: #fff; } }

/* ---- Team dashboard ---- */
.nav .count { margin-left: auto; font-size: .72rem; font-weight: 700; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); text-align: center; }
.nav .count.hot { background: var(--bad-soft); color: var(--bad); }
.team-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold); border-radius: 6px; padding: 2px 7px; margin-left: 8px; vertical-align: 3px; }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .kpis.k4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpis.k4 { grid-template-columns: 1fr 1fr; gap: 10px; } .kpis.k4 .kpi { padding: 12px; } .kpis.k4 .kpi .v { font-size: 1.3rem; } .weeks span { font-size: .6rem; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 99px; font-size: .84rem; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.tabs a .n { font-family: var(--mono); font-weight: 500; margin-left: 4px; opacity: .75; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; min-width: 0; flex: 1 1 200px; }
.filters select.input { flex: 0 1 auto; }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { border-top: 1px solid var(--line); }
.attn li:first-child { border-top: 0; }
.attn a { display: grid; grid-template-columns: 44px 1fr 16px; gap: 12px; align-items: center; padding: 11px 2px; text-decoration: none; color: var(--fg); }
.attn a:hover .t { color: var(--accent); }
.attn .n { font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-align: center; border-radius: 9px; padding: 4px 0; }
.attn .n.bad { background: var(--bad-soft); color: var(--bad); } .attn .n.warn { background: var(--warn-soft); color: var(--warn); } .attn .n.info { background: var(--surface-2); color: var(--muted); }
.weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 140px; }
.weeks div { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 4px; height: 100%; font-size: .72rem; color: var(--muted); }
.weeks i { display: block; width: 100%; max-width: 34px; background: var(--accent); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.weeks b { font-family: var(--mono); font-weight: 500; color: var(--fg); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; font-size: .88rem; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 6px; }
.timeline li.message::before { background: #25d366; } .timeline li.note::before { background: var(--gold); } .timeline li.update::before { background: var(--accent); }
.timeline small { display: block; color: var(--muted); font-size: .76rem; }
.mini-chat { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding: 4px; }
.mini-chat .b { max-width: 88%; padding: 7px 10px; border-radius: 10px; font-size: .85rem; white-space: pre-line; }
.mini-chat .b.in { align-self: flex-start; background: var(--surface-2); }
.mini-chat .b.out { align-self: flex-end; background: var(--accent-soft); }
.mini-chat .b.fail { background: var(--bad-soft); }
.mini-chat .b small { display: block; color: var(--muted); font-size: .7rem; margin-top: 2px; }
.dl-grid { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: .88rem; margin: 0; }
.dl-grid dt { color: var(--muted); } .dl-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .actions-grid, .dl-grid { grid-template-columns: 1fr; } .dl-grid dt { margin-top: 6px; } }
.subcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.subcard h3 { font-size: .92rem; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.status-dot.on { color: var(--good); } .status-dot.on::before { background: var(--good); }
.status-dot.test { color: var(--warn); } .status-dot.test::before { background: var(--warn); }
.status-dot.off { color: var(--muted); }
.key-row { display: grid; grid-template-columns: 220px 1fr; gap: 6px 14px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.key-row:first-of-type { border-top: 0; }
.key-row .help { color: var(--muted); font-size: .78rem; display: block; margin-top: 2px; }
.key-row label > strong, .key-row .src { display: block; }
.key-row .src { font-size: .7rem; color: var(--muted); font-family: var(--mono); }
@media (max-width: 720px) { .key-row { grid-template-columns: 1fr; } }
.copy { font-family: var(--mono); font-size: .8rem; background: var(--surface-2); padding: 6px 9px; border-radius: 8px; overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { width: auto; padding: 5px 8px; font-size: .84rem; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: .86rem; }
.wrap-anywhere { overflow-wrap: anywhere; }
.grid.g-2 > .grid { align-content: start; }
.dl-grid dd { font-family: var(--body); }
.subcard input[type=file] { font-size: .78rem; max-width: 100%; }

/* Moving between pages without a full reload (hx-boost) */
#loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000; background: var(--accent); opacity: 0; pointer-events: none; }
html.is-loading #loadbar { opacity: 1; width: 85%; transition: width 2.5s cubic-bezier(.1,.7,.2,1), opacity .1s; }
html:not(.is-loading) #loadbar { width: 100%; opacity: 0; transition: opacity .3s .1s; }
html.is-loading .view { opacity: .6; transition: opacity .15s .15s; }
.view { animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } #loadbar { transition: none !important; } }

/* ---- BizMoro app look ---- */
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 0 6px; text-decoration: none; color: var(--brand-ink); }
.brand-coin { width: 32px; height: 32px; flex: none; display: block; }
.brand-coin .c-face { fill: var(--coin); } .brand-coin .c-ink { fill: #3F62E0; } .brand-coin .c-ring { stroke: #3F62E0; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; line-height: 1; }
.brand-word span { color: var(--gold); }
.side .brand, .mobile-top .brand { color: var(--side-ink); }
.side .brand-word span, .mobile-top .brand-word span { color: var(--coin); }

.side { background: var(--side-bg); color: var(--side-ink); border-right: 0; padding: 22px 14px; }
.side .nav a { color: var(--side-muted); }
.side .nav a:hover { background: rgba(255,255,255,.06); color: var(--side-ink); }
.side .nav a[aria-current="page"] { background: rgba(226,176,74,.16); color: var(--coin); }
.side .nav .group { color: var(--side-muted); opacity: .8; }
.side .nav .count { background: rgba(255,255,255,.1); color: var(--side-ink); }
.side .biz { border-top-color: rgba(255,255,255,.12); color: var(--side-ink); }
.side .biz .muted { color: var(--side-muted); }
.side .btn { background: transparent; border-color: rgba(255,255,255,.22); color: var(--side-ink); }
.side .team-tag { background: rgba(226,176,74,.18); color: var(--coin); }

.mobile-top { background: var(--side-bg); border-bottom: 0; color: var(--side-ink); padding-top: max(12px, env(safe-area-inset-top, 0px)); }
.mobile-top .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--side-ink); }

.card { box-shadow: var(--shadow); border-color: var(--line); }
.btn { border-radius: 12px; }
.btn-gold { background: var(--coin); border-color: var(--coin); color: #14211a; }
.chip.gold { background: var(--gold-soft); color: var(--gold); }

/* The money card at the top of Home: feels like a wallet in a banking app. */
.wallet { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #F6F7F9;
  background: radial-gradient(120% 140% at 100% 0%, #2F4FC4 0%, #3F62E0 55%, #2F4FC4 100%); display: flex; flex-direction: column; gap: 16px; }
.wallet::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 18px solid rgba(226,176,74,.14); pointer-events: none; }
.wallet .label { color: #E4E7EC; }
.wallet .big { font-family: var(--display); font-size: clamp(2rem, 6vw, 2.7rem); font-weight: 700; line-height: 1.05; }
.wallet .big.neg { color: #ffb4a8; }
.wallet .split { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; }
.wallet .split b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1rem; color: #FFFFFF; }
.wallet .chg { display: inline-block; margin-left: 8px; font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.12); vertical-align: middle; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: #F6F7F9;
  font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px 4px; }
.quick a:hover { background: rgba(255,255,255,.13); }
.quick .qi { width: 34px; height: 34px; border-radius: 50%; background: var(--coin); color: #3F62E0; display: grid; place-items: center; }
.quick .qi svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .wallet { border-radius: 18px; padding: 18px; } .quick a { font-size: .7rem; } }

/* "Added on WhatsApp" markers and the activity feed that shows chat and dashboard in one place. */
.via { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.via.wa { color: #128c4a; background: #e3f6ea; }
:root[data-theme="dark"] .via.wa { color: #6fdc9b; background: #173b2a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .via.wa { color: #6fdc9b; background: #173b2a; } }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.feed li:first-child { border-top: 0; }
.feed .fi { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .85rem; }
.feed .fi.wa { background: #e3f6ea; }
.feed small { color: var(--muted); display: block; font-size: .76rem; }
.feed .q { color: var(--muted); font-style: italic; }

/* Recording a real voice note from the dashboard */
.rec { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rec .dot-live { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.assistant-name { font-family: var(--display); font-weight: 700; }
.chart-wrap svg { display: block; max-height: 280px; margin: 0 auto; }
/* A tick box reads as one line: box then words, across the whole form. */
.form-grid .field.toggle { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; grid-column: 1 / -1; font-size: .9rem; color: var(--ink); }
.form-grid .field.toggle input { width: 18px; height: 18px; padding: 0; flex: none; }
.form-grid .field.toggle .help { flex-basis: 100%; padding-left: 28px; }
.form-grid .field.toggle > span:not(.help):not(.error) { flex: 1; min-width: 0; }

/* Bank statement review */
.seg a { text-align: center; padding: 6px 12px; border-radius: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.alert.ok { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.insights { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.insights li { display: flex; gap: 10px; align-items: baseline; line-height: 1.45; }
.insights li:not(:has(.chip))::before { content: "•"; color: var(--gold); font-weight: 700; }
.statement-lines td { vertical-align: top; }
.statement-lines select.input { padding: 6px 8px; min-width: 130px; }
.statement-lines small { display: block; margin-top: 2px; font-size: .76rem; }
.statement-lines tr.flagged { background: color-mix(in srgb, var(--warn-soft) 60%, transparent); }
.statement-lines tr.faded td:not(:nth-child(4)) { opacity: .55; }
.line-flag { color: var(--warn); }
.nowrap { white-space: nowrap; }
.reading-bar { width: 40%; background: var(--accent); animation: reading 1.4s ease-in-out infinite alternate; }
@keyframes reading { from { margin-left: 0; } to { margin-left: 60%; } }
@media (max-width: 720px) { .kpis.k4 { grid-template-columns: 1fr 1fr; } .statement-lines select.input { min-width: 110px; } }
#statement-summary { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
@media (max-width: 720px) {
  .statement-lines thead { display: none; }
  .statement-lines, .statement-lines tbody { display: block; }
  .statement-lines tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .statement-lines td { display: block; padding: 0; border: 0; }
  .statement-lines td:nth-child(1) { order: 1; color: var(--muted); font-size: .8rem; }
  .statement-lines td:nth-child(3) { order: 2; text-align: right; }
  .statement-lines td:nth-child(2) { order: 3; grid-column: 1 / -1; }
  .statement-lines td:nth-child(4) { order: 4; }
  .statement-lines td:nth-child(5) { order: 5; align-self: center; }
  .statement-lines select.input { min-width: 0; width: 100%; }
  .statement-lines tr.faded td:not(:nth-child(4)) { opacity: .6; }
}
.chat-photo { display: block; max-width: 180px; max-height: 180px; border-radius: 10px; margin: 6px 0 2px; object-fit: cover; border: 1px solid var(--line); }

/* Phones: 16px text in fields so iPhone doesn't zoom in when you tap one */
@media (max-width: 860px) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } }
/* A list of tick boxes, like the products a sale covers */
.form-grid .field.ticks { grid-column: 1 / -1; }
.field.ticks > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; max-height: 260px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.field.ticks > div label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); }
.field.ticks > div input { width: 18px; height: 18px; flex: none; padding: 0; }

/* Theme switch (dark by default) and the actions at the top right of every signed-in page. */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: 99px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:root[data-theme="light"] .theme-toggle .i-sun, :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; max-width: 1040px; margin: 0 auto 6px; }
.mobile-top .top-actions { margin: 0; }
.mobile-top .theme-toggle, .mobile-top .bell > summary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--side-ink); }
.mobile-top .theme-label { display: none; }
@media (max-width: 860px) { main > .top-actions { display: none; } }
.bell { position: relative; }
.bell > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); border-radius: 99px; padding: 6px 10px; position: relative; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary svg { width: 18px; height: 18px; }
.bell-n { min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 700; text-align: center; line-height: 18px; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: min(320px, calc(100vw - 32px)); background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 4px; }
.bell-menu a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: .88rem; }
.bell-menu a:hover { background: var(--surface-2); }
.bell-menu strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 2px 8px 6px; }
.bell-menu .muted { padding: 4px 8px; margin: 0; }
.mobile-top { position: relative; }
.mobile-top .bell { position: static; }
.mobile-top .bell-menu { left: 12px; right: 12px; width: auto; top: calc(100% - 4px); }

/* ---- Company admin (adminpanel): plan locks, stats charts, complaints ---- */
.lock-tag { margin-left: auto; font-size: .7rem; opacity: .8; }
.lock-card { text-align: center; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lock-card .form-actions { justify-content: center; }
.lock-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.lock-mark svg { width: 24px; height: 24px; }
.bchart { display: flex; align-items: stretch; gap: 3px; height: 160px; padding-top: 6px; }
.bchart .bcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bchart .stack-b { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; }
.bchart i { display: block; flex: 1; max-width: 16px; min-height: 2px; border-radius: 3px 3px 1px 1px; }
.bchart i.a, .legend i.a { background: var(--accent); }
.bchart i.b, .legend i.b { background: var(--gold); }
.bchart .lb { font-size: .62rem; color: var(--muted); text-align: center; white-space: nowrap; height: 1em; overflow: visible; }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.meter { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.dl-btns { display: inline-flex; gap: 4px; }
.feature-grid th.c, .feature-grid td.c { text-align: center; width: 110px; }
.feature-grid tr.grp th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.feature-grid .tick input { width: 18px; height: 18px; accent-color: var(--accent); }
.feature-grid .yes { color: var(--good); font-weight: 700; }
.thread { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thread li { display: flex; flex-direction: column; max-width: 85%; }
.thread li.me { align-self: flex-end; align-items: flex-end; }
.thread li.them { align-self: flex-start; }
.thread li.note { align-self: center; max-width: 100%; align-items: center; }
.thread .bubble { padding: 9px 12px; border-radius: 12px; font-size: .9rem; background: var(--surface-2); overflow-wrap: anywhere; }
.thread li.me .bubble { background: var(--accent); color: var(--accent-ink); }
.thread li.note .bubble { background: var(--gold-soft); font-size: .82rem; }
.thread small { color: var(--muted); font-size: .72rem; margin-top: 3px; }
@media (max-width: 520px) { .bchart { height: 120px; gap: 2px; } .feature-grid th.c, .feature-grid td.c { width: 64px; } .thread li { max-width: 100%; } }
.kpis.activity > div { min-width: 0; } .kpis.activity .v { font-size: 1.15rem; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: kd-spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes kd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.wait-dots { font-size: .9rem; }

/* Upgrade banner: "Go Pro" on Basic, "Go Business" on Pro, nothing on the top plan. */
.upgrade { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, #3F62E0 0%, #0f3324 60%, #2a3a17 100%); color: #F6F7F9; border: 1px solid #2F4FC4; margin-bottom: 16px; }
.upgrade h2 { color: #fff; font-size: 1.25rem; margin: 2px 0 8px; }
.upgrade .up-text { flex: 1 1 320px; min-width: 0; }
.upgrade .up-eyebrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #3F62E0; font-weight: 600; }
.upgrade ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; }
.upgrade li { position: relative; padding-left: 22px; font-size: .9rem; color: #dfe8e1; }
.upgrade li::before { content: "✓"; position: absolute; left: 0; color: #3F62E0; font-weight: 700; }
.upgrade p { color: #dfe8e1; font-size: .9rem; }
.upgrade .up-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.upgrade .up-cta b { font-size: 1.5rem; color: #fff; }
.upgrade .up-cta small { font-size: .8rem; font-weight: 500; color: #b9c8bd; margin-left: 3px; }
.upgrade .btn-gold { padding: 10px 20px; font-weight: 700; }
.upgrade.compact { padding: 14px 18px; }
.upgrade.compact h2 { font-size: 1.05rem; margin-bottom: 4px; }
.store-card .store-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.store-card .store-stats a { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.store-card .store-stats b { font-size: 1.4rem; }
.store-card .store-stats span { font-size: .8rem; color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.cat-img { width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2, var(--line)); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-edit { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cat-file { font-size: .8rem; max-width: 100%; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 560px) { .link-row { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--line); } }
input[type=file]{max-width:100%;min-width:0;box-sizing:border-box}
.field{min-width:0}
/* statement lines: search + pages inside the card, no sideways scroll on laptop */
.lines-search{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 6px}
.lines-search .input{flex:1 1 240px;min-width:0}
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}
.pager .on{background:var(--accent,#3F62E0);color:#1b1d18;border-color:transparent}
.pager [aria-disabled]{opacity:.45;pointer-events:none}
.pager .dots{padding:0 4px;color:var(--muted)}
.pager .muted{margin-left:auto;font-size:.85rem}
.statement-lines{table-layout:auto;width:100%}
.statement-lines td:nth-child(2) div{overflow-wrap:anywhere;word-break:break-word}
@media (min-width:721px){.statement-lines td:nth-child(2){min-width:220px}.statement-lines select.input{min-width:0;max-width:150px}}
/* New store orders: a bold card on top, big Accept / Decline for thumbs */
.new-orders{border:2px solid var(--accent,#3F62E0);border-radius:18px;padding:16px;margin:0 0 16px;background:color-mix(in srgb,var(--accent,#3F62E0) 10%,var(--surface))}
.new-orders.is-empty{display:none}
.new-orders-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.new-orders-head h2{margin:0;font-size:1.25rem}
.pulse{width:12px;height:12px;border-radius:50%;background:#2fbf71;box-shadow:0 0 0 0 rgba(47,191,113,.6);animation:kdpulse 1.6s infinite;flex:none}
@keyframes kdpulse{70%{box-shadow:0 0 0 12px rgba(47,191,113,0)}100%{box-shadow:0 0 0 0 rgba(47,191,113,0)}}
@media (prefers-reduced-motion:reduce){.pulse{animation:none}}
.new-orders-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.new-order{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}
.no-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.no-top .muted{margin-left:auto;font-size:.8rem}
.no-buyer{font-size:.92rem;overflow-wrap:anywhere}
.no-items{margin:0;padding-left:18px;font-size:.92rem}
.no-addr{font-size:.85rem}
.no-total{font:800 1.35rem/1.1 var(--display,inherit)}
.no-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}
.no-actions .btn{min-height:48px;font-size:1rem;font-weight:800;justify-content:center}
.btn-accept{background:#2fbf71;color:#06210f;border-color:#2fbf71}
.btn-accept:hover{background:#3fd683}
.btn-decline{background:transparent;color:#ff8a80;border:2px solid #ff8a80}
/* pop-up on any page when a new order comes in */
.order-pop{position:fixed;z-index:200;top:12px;left:50%;transform:translateX(-50%);width:min(560px,calc(100vw - 24px));display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:#3F62E0;color:#fff;border:2px solid #3F62E0;box-shadow:0 18px 40px rgba(0,0,0,.35);animation:kdpop .25s ease-out}
.order-pop div{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.order-pop b{font-size:1.05rem}.order-pop span{font-size:.9rem;opacity:.9}
.order-pop-ico{font-size:1.6rem}
.order-pop-x{background:none;border:0;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;padding:4px 6px}
.order-pop.fade{opacity:0;transition:opacity .4s;pointer-events:none}
@keyframes kdpop{from{transform:translate(-50%,-16px);opacity:0}}
/* The sidebar stays put while the page scrolls (owners, accountants and the team). A long menu scrolls inside it. */
@media (min-width: 861px) {
  .shell > .side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; align-self: start; }
}
/* menu and footer link rows with icons */
.link-row2{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);gap:8px;align-items:center;margin-bottom:10px}
.link-row2 [data-icon-when]{grid-column:2/-1}
.lr-ico{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);display:grid;place-items:center;font-size:20px;color:var(--fg)}
.lr-ico .lk-ico{width:22px;height:22px;margin:0}.lr-ico .lk-ico img,.lr-ico .lk-ico svg{width:22px;height:22px}
.lr-none{color:var(--muted);font-size:18px}
@media (max-width:640px){.link-row2{grid-template-columns:40px minmax(0,1fr);padding-bottom:10px;border-bottom:1px dashed var(--line)}.link-row2>*:not(.lr-ico){grid-column:2}.link-row2 .lr-ico{grid-row:1/span 3}}

/* Log out button on Settings (phone has no sidebar) */
.logout-form{display:inline-flex;margin:0}
.btn-logout{display:inline-flex;align-items:center;gap:6px;color:#e5484d;border-color:color-mix(in srgb,#e5484d 45%,transparent)}
.btn-logout:hover{background:color-mix(in srgb,#e5484d 12%,transparent)}

.handoff-note{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--gold) 14%,transparent);font-size:.9rem}

/* Radio choices in forms (e.g. a reminder by WhatsApp or by phone call) */
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .9rem; line-height: 1.35; }
.field .choice input, .choice input[type=radio] { margin: 1px 0 0; padding: 0; accent-color: var(--gold, #3F62E0); flex: 0 0 18px; width: 18px; min-width: 0; height: 18px; border: 0; box-shadow: none; background: none; }
.choice > span { flex: 1; min-width: 0; }
.choice:has(input:checked) { border-color: var(--accent, #3F62E0); background: var(--surface-2); font-weight: 600; }

/* ---- Account checks (owner Help & support, team customer page) ---- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 11px 4px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks .ci { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.checks .ok .ci { background: var(--good-soft); color: var(--good); }
.checks .warn .ci { background: var(--warn-soft); color: var(--warn); }
.checks .bad .ci { background: var(--bad-soft); color: var(--bad); }
.checks b { display: block; font-size: .9rem; }
.checks .area { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.checks p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-2, var(--muted)); }
.checks .tn { display: block; margin-top: 3px; font-family: "IBM Plex Mono", monospace; font-size: .72rem; color: var(--muted); word-break: break-word; }
.checks .act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.checks .act form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.checks .act input[type=file] { max-width: 190px; font-size: .78rem; }
.checks.compact li.ok { display: none; }
.check-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.private-note { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--gold, #3F62E0); padding: 6px 10px; background: var(--surface-2); border-radius: 0 8px 8px 0; margin-top: 10px; }
.problem-list { list-style: none; margin: 0; padding: 0; }
.problem-list li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.problem-list li:first-child { border-top: 0; }
.problem-list details summary { cursor: pointer; font-size: .78rem; color: var(--muted); }
.problem-list pre { white-space: pre-wrap; font-size: .7rem; max-height: 220px; overflow: auto; background: var(--surface-2); padding: 8px; border-radius: 8px; }
.problem-list .fixed { opacity: .55; }
.queue-tag { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #2a2340; color: #d9ccff; }
@media (max-width: 640px) {
  .checks li { grid-template-columns: 28px 1fr; }
  .checks .act { grid-column: 2; justify-content: flex-start; }
}

/* Feature switches (Team → Plan features): Soon tag, hidden links. */
.soon-tag { margin-left: auto; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px;
  background: var(--gold-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); white-space: nowrap; }
.side .soon-tag { background: rgba(226, 176, 74, .18); color: #f3cf86; border-color: rgba(226, 176, 74, .4); }
.soon-tag-lg { margin: 4px 0 0; font-size: .74rem; padding: 4px 12px; }
a:has(> .feat-hidden) { display: none !important; }
.tabbar .soon-tag, .tabbar .lock-tag { display: none; }
.tabbar:has(.feat-hidden) { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.feat-key-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.feat-key-grid p { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.feat-status { min-width: 170px; }
.feat-status select { width: 100%; }
.feat-note { margin-top: 6px; width: 100%; font-size: .8rem; display: none; }
.feat-row.is-soon .feat-note { display: block; }
.feat-row.is-soon td:first-child strong::after { content: " · Coming soon"; color: var(--warn); font-weight: 600; font-size: .78rem; }
.feat-row.is-hidden td:not(.feat-status) { opacity: .5; }
.feat-row.is-hidden td:first-child strong::after { content: " · Hidden"; color: var(--muted); font-weight: 600; font-size: .78rem; }
@media (max-width: 900px) { .feat-key-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feat-key-grid { grid-template-columns: 1fr; } .feat-status { min-width: 130px; } }

/* Announcements from the BizMoro team: the strip at the top, the bell, What's new. */
.ann-bar { --ann-bg: var(--surface-2); --ann-line: var(--line); --ann-ink: var(--accent);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; margin: 0 0 16px; border-radius: 14px;
  background: var(--ann-bg); border: 1px solid var(--ann-line); color: var(--fg); }
.ann-sale { --ann-bg: var(--gold-soft); --ann-line: color-mix(in srgb, var(--gold) 40%, transparent); --ann-ink: var(--warn); }
.ann-feature { --ann-bg: var(--accent-soft); --ann-line: color-mix(in srgb, var(--accent) 30%, transparent); --ann-ink: var(--accent); }
.ann-warning { --ann-bg: var(--bad-soft); --ann-line: color-mix(in srgb, var(--bad) 35%, transparent); --ann-ink: var(--bad); }
.ann-maintenance { --ann-bg: var(--warn-soft); --ann-line: color-mix(in srgb, var(--warn) 35%, transparent); --ann-ink: var(--warn); }
.ann-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--ann-ink); }
.ann-ic svg { width: 18px; height: 18px; }
.ann-text { flex: 1; min-width: 0; margin: 0; font-size: .92rem; line-height: 1.4; }
.ann-text b { font-weight: 650; }
.ann-kind { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ann-ink, var(--accent)); margin-right: 4px; }
.ann-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.ann-acts form { margin: 0; }
.ann-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--ann-line); background: transparent; color: var(--fg); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ann-x:hover { background: var(--surface); }
@media (max-width: 560px) {
  .ann-bar { flex-wrap: wrap; align-items: flex-start; padding: 12px; }
  .ann-text { flex-basis: calc(100% - 92px); }
  .ann-acts { width: 100%; justify-content: flex-end; }
  .ann-acts .ann-read { flex: 1; }
  .ann-ic { order: 0; }
}
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 0; }
.bell-head a { font-size: .8rem; font-weight: 600; color: var(--accent); padding: 2px 6px; }
.bell-menu a.bell-news { align-items: flex-start; }
.bell-news > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bell-news b { font-weight: 600; line-height: 1.3; }
.bell-news small { color: var(--muted); font-size: .76rem; }
.bell-news em { font-style: normal; color: var(--bad); font-weight: 700; }
.bell-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: transparent; }
.bell-news.unread .bell-dot { background: var(--bad); }
.bell-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--fg); padding: 16px; border-left: 4px solid var(--ann-line, var(--line)); }
.news-item:hover { border-color: var(--ann-ink, var(--accent)); }
.news-item.unread { background: color-mix(in srgb, var(--ann-bg, var(--surface-2)) 55%, var(--surface)); }
.news-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ann-bg, var(--surface-2)); color: var(--ann-ink, var(--accent)); }
.news-ic svg { width: 20px; height: 20px; }
.news-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-main b { font-size: 1.02rem; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); }
.news-full { padding: 24px; }
.news-full h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 12px 0 14px; }
.news-body { font-size: 1rem; line-height: 1.7; max-width: 68ch; }
.news-body > * + * { margin-top: 12px; }
.news-body ul, .news-body ol { padding-left: 22px; }
.news-body a { color: var(--accent); }
.news-more { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.news-more a { color: var(--fg); font-weight: 600; }
.ann-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ann-preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ann-preview .ann-bar { margin: 0; flex-wrap: wrap; }
@media (max-width: 1000px) { .ann-editor { grid-template-columns: 1fr; } .ann-preview { position: static; order: -1; } }
.ann-read { background: var(--surface); border: 1px solid var(--ann-line); color: var(--fg); font-weight: 600; }
.news-item.card { display: flex; flex-direction: row; }
.chip.soon { background: var(--gold-soft); color: var(--warn); }
.chip.off { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

/* Blocked account page (shown after a right code for a blocked account) */
.blocked-card { gap: 18px; }
.blocked-head { display: flex; gap: 14px; align-items: flex-start; }
.blocked-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); }
.blocked-ic svg { width: 26px; height: 26px; }
.blocked-head h1 { margin: 0 0 6px; }
.blocked-reason { border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); border-radius: 14px; padding: 12px 14px; }
.blocked-reason span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bad); }
.blocked-reason p { margin: 4px 0 0; font-weight: 600; white-space: pre-line; }
.blocked-h2 { font-size: 1rem; margin: 0 0 8px; }
.blocked-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
/* Team → All users: block with a reason */
.block-pop { position: relative; display: inline-block; text-align: left; }
.block-pop > summary { list-style: none; cursor: pointer; }
.block-pop > summary::-webkit-details-marker { display: none; }
.block-pop[open] > summary { opacity: .7; }
.block-pop[open]::before { content: ""; position: fixed; inset: 0; background: rgba(8, 14, 11, .55); z-index: 90; }
.block-form { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 91; width: min(440px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); text-align: left; }
.block-form .block-acts { display: flex; gap: 8px; justify-content: flex-end; }
.block-form p { font-size: .8rem; margin: 0; }
.block-form textarea { width: 100%; }
.blocked-row td { font-size: .85rem; color: var(--muted); padding-top: 0; }

.pack-filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.pack-filter label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); flex: 1 1 140px; min-width: 0; }
.pack-filter select, .pack-filter input { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--surface); color: var(--fg); font: inherit; width: 100%; }
@media print { .no-print { display: none !important; } }

.save-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--good, #1f8a4c); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.your-plan .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-ticks, .plan-x { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.your-plan .plan-ticks { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.plan-ticks li::before { content: "✓"; color: var(--good, #1f8a4c); font-weight: 700; margin-right: 8px; }
.plan-x li { padding: 8px 10px; border-radius: 9px; background: var(--surface-2); }
.plan-x li b::before { content: "✕"; color: var(--bad, #c0392b); margin-right: 8px; }
.plan-x li span { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; padding-left: 22px; }
.plan-dlg { border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); max-height: 86vh; overflow-y: auto; }
.plan-dlg::backdrop { background: rgba(0,0,0,.55); }
.plan-dlg h2 { margin: 0; }
.plan-total { font-size: 1.4rem; font-weight: 700; margin: 4px 0 0; }

/* 7 Nov: long store addresses (e.g. internationalhumanityfoundatio.bizmoro.com) and links wrap inside their card
   instead of running off the screen. break-word only breaks a word when it would overflow. */
p, li, dd, dt, td, th, h1, h2, h3, label, .chip, .muted, .card strong, .card a, .card code, .card .num { overflow-wrap: break-word; }
.card, .grid > *, .stack > *, .row-between > * { min-width: 0; }
.url-text, .card p strong.num, .card p a[href^="http"] { overflow-wrap: anywhere; word-break: normal; }

/* 7 Nov: phone top bar. Logo on the left with the bell and light/dark switch on the right, then the business name
   as one full-width button underneath, so nothing bunches up on the left. */
@media (max-width: 860px) {
  .mobile-top { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 8px; }
  .mobile-top .top-actions { display: contents; }
  .mobile-top > .brand { grid-column: 1; min-width: 0; }
  .mobile-top .top-actions > .btn { grid-column: 1 / -1; width: 100%; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Team → Settings: checks on top, one section at a time */
.set-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 6px; margin-top: 8px; }
.set-check { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.set-check a { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: inherit; text-decoration: none; font-size: .86rem; }
.set-check a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-check form { margin: 0; }
.set-problem { font-size: .72rem; font-weight: 700; color: var(--bad, #c0392b); }
.set-steps, .set-section { scroll-margin-top: 84px; }
.set-steps { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin: 4px 0 10px; scrollbar-width: thin; }
.set-steps a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: inherit; text-decoration: none; background: var(--surface); white-space: nowrap; }
.set-steps a .n { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.set-steps a.on { background: var(--accent-fill, var(--accent)); border-color: transparent; color: #fff; }
.set-steps a.on .n { color: #fff; }
.set-count { font-size: .78rem; margin: 0 0 2px; }
.set-pager { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.status-dot:empty { width: 8px; height: 8px; padding: 0; }
@media (max-width: 640px) { .key-row { grid-template-columns: minmax(0, 1fr); } }
.set-checks-box > summary { cursor: pointer; list-style: none; }
.set-checks-box > summary::-webkit-details-marker { display: none; }
.set-checks-box > summary h2::after { content: " ▾"; color: var(--muted); font-size: .8em; }
.set-checks-box:not([open]) > summary h2::after { content: " ▸"; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 4px 12px; font-size: .86rem; }
.perm-grid label { display: flex; gap: 6px; align-items: flex-start; }
.rev-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; padding-top: 18px; }
.rev-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.rev-bar { width: 100%; max-width: 46px; background: var(--accent-fill, var(--accent)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.rev-v { font-size: .62rem; color: var(--muted); margin-bottom: 2px; overflow: hidden; max-width: 100%; }
.rev-m { font-size: .72rem; color: var(--muted); margin-top: 4px; }
