/* MarginQ v11 — "ledger green" design system */
:root {
  --ink: #0d1f18; --ink-2: #33473e; --muted: #6a786f; --line: #e4e6df; --line-2: #d6dad1;
  --paper: #f4f4ef; --card: #ffffff; --tint: #eef3ec;
  --forest: #0b2a20; --forest-2: #123a2d; --brand: #12674e; --brand-2: #0e5640; --lime: #b0f58c; --lime-2: #9be673;
  --red: #c8432b; --red-bg: #fdeeea; --amber: #b7791f; --amber-bg: #fff5df; --green: #157a52; --green-bg: #e5f4ea; --blue: #2f6fd6;
  --p-profit: #3ccf7e; --p-fees: #f2a33a; --p-costs: #8fa69a; --p-ship: #5b8def; --p-exp: #d06b9e;
  --r: 16px; --r-sm: 11px; --shadow: 0 1px 2px rgba(13,31,24,.05), 0 6px 22px rgba(13,31,24,.06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.sheet-open { overflow: hidden; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime-2); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .pad { padding: 10px 0; }
.neg { color: var(--red) !important; } .pos { color: var(--green); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.boot { min-height: 100vh; display: grid; place-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; background: var(--card); color: var(--ink); transition: transform .06s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 0 var(--brand-2); }
.btn-primary:hover { background: var(--brand-2); }
.btn-lime { background: var(--lime); color: var(--forest); box-shadow: 0 2px 0 var(--lime-2); }
.btn-lime:hover { background: var(--lime-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--tint); }
.btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.danger-text { color: var(--red) !important; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: inherit; text-decoration: none; }
.icon-btn:hover { background: rgba(127,127,127,.12); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.row-center { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- pills, chips, deltas ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 750; white-space: nowrap; background: var(--tint); color: var(--ink-2); }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.red { background: var(--red-bg); color: var(--red); } .pill.amber { background: var(--amber-bg); color: var(--amber); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); font-weight: 650; font-size: 14px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.ch-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.ch-label { display: inline-flex; align-items: center; gap: 6px; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 750; padding: 2px 8px 2px 5px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.delta.good { color: var(--green); background: var(--green-bg); } .delta.bad { color: var(--red); background: var(--red-bg); } .delta.flat { color: var(--muted); background: var(--tint); }
.seg-group { display: inline-flex; background: #e6e9e1; border-radius: 13px; padding: 4px; gap: 2px; }
.seg { border: 0; background: transparent; padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 650; font-size: 14px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 13px; background: #fff; font-size: 16px; font-weight: 500; }
textarea { min-height: 46px; resize: none; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(18,103,78,.12); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2333473e' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid.three { grid-template-columns: 1.4fr .7fr 1fr; }
.err { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.notice { background: var(--amber-bg); color: #6b4a10; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.notice.ok { background: var(--green-bg); color: var(--green); }
.devbox { margin-top: 10px; font-size: 13px; word-break: break-all; }
details.more-fields summary, details.mapping summary, details.howto summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
.keep { display: flex; justify-content: space-between; align-items: baseline; background: var(--tint); border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.keep strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.lang-select { display: inline-flex; align-items: center; gap: 4px; position: relative; color: inherit; }
.lang-select select { min-height: 36px; width: auto; border: 0; background-color: transparent; padding: 4px 22px 4px 2px; font-size: 14px; font-weight: 650; color: inherit; background-position: right 4px center; }
.lang-select.light select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.lang-select.light select option, .topbar .lang-select select option { color: #000; }

/* ---------- shell ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--forest); color: #fff; padding-top: env(safe-area-inset-top); }
.topbar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 16px; }
.topbar .lang-select select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-weight: 800; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 21px; letter-spacing: -0.04em; }
.brand-name b { color: var(--lime); font-weight: 800; }
.lp-foot .brand-name b, .setup-wrap .brand-name b, .auth-wrap .brand-name b { color: var(--lime); }
.topnav { display: none; gap: 2px; margin-left: 18px; }
.topnav a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 650; font-size: 14.5px; padding: 8px 11px; border-radius: 10px; }
.topnav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.topnav a:hover { color: #fff; }
.spacer { flex: 1; }
.desk-only { display: none !important; }
main { max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 10px 0 12px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 700; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tab-add { border: 0; background: none; display: grid; place-items: center; padding-bottom: 12px; }
.tab-add span { width: 56px; height: 56px; border-radius: 18px; background: var(--forest); color: var(--lime); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(11,42,32,.35); transform: translateY(-10px); }

/* ---------- page ---------- */
.page { display: grid; gap: 16px; }
.page.narrow { max-width: 760px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card > h2 { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.more-link { font-weight: 700; font-size: 14px; text-decoration: none; }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.grid-2 { display: grid; gap: 16px; }
.filters { display: flex; flex-direction: column; gap: 10px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--amber-bg); border: 1px solid #f1dca8; color: #6b4a10; border-radius: 14px; padding: 10px 10px 10px 16px; font-weight: 650; font-size: 14px; }
.welcome h1 { font-size: 30px; }
.welcome p { color: var(--muted); margin-top: 6px; }
.fx-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--forest); color: #fff; border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 14px 34px rgba(11,42,32,.28); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(176,245,140,.08); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.eyebrow { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; color: #a9c7b8; }
.hero .delta.good { background: rgba(176,245,140,.16); color: var(--lime); } .hero .delta.bad { background: rgba(255,120,100,.16); color: #ffb3a6; } .hero .delta.flat { background: rgba(255,255,255,.1); color: #cfe0d6; }
.hero-num { font-size: clamp(42px, 11vw, 60px); font-weight: 850; letter-spacing: -0.045em; line-height: 1.05; margin: 10px 0 4px; font-variant-numeric: tabular-nums; color: var(--lime); }
.hero-num.neg { color: #ffb3a6; }
.hero-sub { color: #cfe0d6; font-size: 14.5px; }
.hero-split { margin-top: 18px; }
.split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; background: rgba(255,255,255,.1); }
.split span { display: block; min-width: 3px; }
.p-profit { background: var(--p-profit); } .p-fees { background: var(--p-fees); } .p-costs { background: var(--p-costs); } .p-ship { background: var(--p-ship); } .p-exp { background: var(--p-exp); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; color: #cfe0d6; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hero-per { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #e4efe8; font-weight: 600; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 13px 14px; display: grid; gap: 4px; align-content: start; box-shadow: var(--shadow); }
.kpi > span:first-child { font-size: 13px; color: var(--muted); font-weight: 650; }
.kpi strong { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .delta { justify-self: start; }

/* ---------- alerts / money check ---------- */
.alerts { display: grid; gap: 10px; }
.alert { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 13px; border-radius: 13px; border: 1px solid var(--line); background: #fbfbf8; }
.alert .btn { grid-column: 2; justify-self: start; margin-top: 6px; }
.alert-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; grid-row: span 2; }
.alert.high { background: var(--red-bg); border-color: #f5cfc5; } .alert.high .alert-icon { background: #fff; color: var(--red); }
.alert.medium { background: var(--amber-bg); border-color: #f1dca8; } .alert.medium .alert-icon { background: #fff; color: var(--amber); }
.alert.low .alert-icon { background: var(--tint); color: var(--ink-2); }
.alert-body b { display: block; font-size: 15px; } .alert-body p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.tip { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; background: var(--tint); border-radius: 12px; font-size: 14px; font-weight: 600; }
.tip span { flex: 1; }

/* getting started */
.gs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.gs-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.gs-list li:first-child { border-top: 0; }
.gs-list li p { font-size: 13.5px; color: var(--muted); }
.gs-list li.done b { text-decoration: line-through; color: var(--muted); }
.gs-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--tint); color: var(--brand); }
.gs-list li.done .gs-n { background: var(--green); color: #fff; }
.gs-alt { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ask */
.ask { background: linear-gradient(160deg, #ffffff 0%, #f2f8ee 100%); }
.ask-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ask-badge { width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: var(--lime); display: grid; place-items: center; flex: none; }
.ask-head p { font-size: 13.5px; }
.ask-form { display: flex; gap: 8px; }
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ask-chips .chip { font-size: 13px; padding: 6px 12px; }
.ask-answer { margin-top: 14px; background: var(--forest); color: #eaf4ee; border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; font-size: 15px; }

/* chart */
.chart-wrap { position: relative; padding-bottom: 20px; }
.chart { width: 100%; height: 200px; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--line-2); stroke-width: 1.5; }
.chart .bar { fill: #d7e8dc; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .dot { fill: var(--brand); }
.chart-y { position: absolute; top: -4px; left: 0; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.chart-x { position: relative; height: 16px; font-size: 11.5px; color: var(--muted); }
.chart-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.chart-tip { position: absolute; top: 18px; transform: translateX(-50%); background: var(--forest); color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 13px; display: grid; gap: 2px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.chart-tip div { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.k.rev { background: #d7e8dc; } .k.pro { background: var(--brand); }
.chart-tip .k.rev { background: #d7e8dc; } .chart-tip .k.pro { background: var(--lime); }
.legend-inline { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.legend-inline span { display: inline-flex; align-items: center; gap: 5px; }

/* marketplaces & products */
.mk-list { display: grid; gap: 14px; }
.mk-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name nums" "bar bar"; gap: 6px 10px; }
.mk-name { grid-area: name; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-name small { color: var(--muted); font-size: 12.5px; }
.mk-nums { grid-area: nums; text-align: right; display: grid; font-variant-numeric: tabular-nums; }
.mk-nums small { color: var(--muted); font-size: 12.5px; }
.mk-bar { grid-area: bar; position: relative; height: 10px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.mk-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.mk-bar .rev { background: #d7e8dc; } .mk-bar .pro { background: var(--brand); }
.top-list { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.top-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); counter-increment: top; }
.top-list li:first-child { border-top: 0; }
.top-list li::before { content: counter(top); width: 26px; height: 26px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--brand); flex: none; }
.top-list li div { flex: 1; min-width: 0; display: grid; }
.top-list li b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-list small { color: var(--muted); font-size: 12.5px; }
.top-list strong { font-variant-numeric: tabular-nums; }
.warn-line { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--amber); font-weight: 650; margin-top: 8px; }

/* ---------- lists ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar select { width: auto; max-width: 44%; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 12px; color: var(--muted); }
.search input { border: 0; padding: 10px 0; min-height: 44px; box-shadow: none !important; }
.list { display: grid; }
.list-day { padding: 12px 16px 6px; font-size: 12.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: #fafaf7; border-top: 1px solid var(--line); }
.list-day:first-child { border-top: 0; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; color: inherit; text-decoration: none; }
.list-row:first-child, .list-day + .list-row { border-top: 0; }
button.list-row:hover { background: #fafbf7; }
.list-row > svg { color: var(--muted); flex: none; }
.lr-main { flex: 1; min-width: 0; display: grid; }
.lr-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.lr-main small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-nums { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.lr-nums small { font-size: 12.5px; font-weight: 650; }
.cat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--tint); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; }
.stock { display: grid; justify-items: end; gap: 2px; } .stock small { color: var(--muted); font-size: 12px; }
.empty { text-align: center; padding: 40px 20px; background: var(--card); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.empty p { color: var(--muted); margin: 6px auto 0; max-width: 420px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.loading { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 30px; color: var(--muted); font-weight: 600; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(8,22,16,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; padding-bottom: env(safe-area-inset-bottom); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 12px 8px 20px; }
.sheet-body { overflow: auto; padding: 4px 20px 22px; }
.sheet-body > p { margin-bottom: 10px; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } } @keyframes fade { from { opacity: 0; } }
.add-grid { display: grid; gap: 8px; }
.add-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: left; }
.add-item:hover { background: var(--tint); }
.add-item span:last-child { display: grid; } .add-item small { color: var(--muted); font-size: 13px; }
.add-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--forest); color: var(--lime); display: grid; place-items: center; flex: none; }
.menu-list { display: grid; gap: 8px; }

/* ---------- import ---------- */
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 38px 20px; border: 2px dashed #b9cbbf; border-radius: 20px; background: #fff; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.over { background: var(--tint); border-color: var(--brand); }
.dz-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--forest); color: var(--lime); display: grid; place-items: center; margin-bottom: 6px; }
.dropzone b { font-size: 18px; } .dropzone small { color: var(--muted); }
.howto { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 16px; }
.howto ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; font-size: 14px; }
.howto li span { color: var(--ink-2); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.stats3 div { background: var(--tint); border-radius: 12px; padding: 10px; display: grid; }
.stats3 strong { font-size: 16px; font-variant-numeric: tabular-nums; } .stats3 span { font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; background: #fafaf7; }
table.mini td { padding: 9px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
table.mini td:nth-child(2) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mapping { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.result { text-align: center; padding: 30px 20px; }
.result-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.result h2 { font-size: 24px; }

/* ---------- payouts ---------- */
.check-grid { display: grid; gap: 12px; margin-bottom: 14px; }
.check-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.check-card.bad { border-color: #f0c2b6; background: linear-gradient(#fff, #fff9f7); }
.cc-head { display: flex; justify-content: space-between; align-items: center; }
.cc-head b { font-size: 17px; }
.cc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-nums div { display: grid; } .cc-nums span { font-size: 12.5px; color: var(--muted); font-weight: 650; } .cc-nums strong { font-variant-numeric: tabular-nums; }
.short-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.short-list li { display: flex; justify-content: space-between; gap: 10px; background: var(--red-bg); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.short-list b { color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- community ---------- */
.handle-card { display: grid; gap: 12px; background: var(--forest); color: #fff; border: 0; }
.handle-card .muted { color: #b7cfc2; } .handle-card .field { color: #fff; }
.handle-card .btn-primary { background: var(--lime); color: var(--forest); box-shadow: none; }
.room-grid { display: grid; gap: 10px; }
.room-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.room-card div { flex: 1; display: grid; } .room-card small { color: var(--muted); font-size: 13px; }
.room-emoji { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 22px; flex: none; }
.room-emoji.sm { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
.rules { background: var(--tint); border-radius: var(--r); padding: 16px 18px; }
.rules ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.chat-page { grid-template-rows: auto 1fr auto; height: calc(100dvh - 60px - var(--tabbar-h) - env(safe-area-inset-bottom) - env(safe-area-inset-top) - 36px); gap: 10px; }
.room-head { display: flex; align-items: center; gap: 10px; }
.room-head h1 { font-size: 20px; }
.msgs { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; min-height: 0; }
.msg { max-width: 84%; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: 8px 12px 10px; box-shadow: var(--shadow); }
.msg.mine { align-self: flex-end; background: var(--forest); color: #fff; border-color: var(--forest); border-radius: 16px 16px 6px 16px; }
.msg-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 2px; }
.msg-meta b { color: var(--brand); } .msg.mine .msg-meta b { color: var(--lime); }
.msg-meta time { color: var(--muted); } .msg.mine .msg-meta time { color: #a9c7b8; }
.msg-meta .icon-btn { margin-left: auto; width: 26px; height: 26px; } .msg.mine .icon-btn { color: #a9c7b8; }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.composer { display: flex; gap: 8px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: var(--shadow); }
.composer textarea { border: 0; box-shadow: none !important; min-height: 42px; }
.composer .send { width: 46px; min-height: 42px; padding: 0; border-radius: 13px; }

/* ---------- settings / reports / billing / more ---------- */
.ch-list { display: grid; gap: 8px; margin-top: 12px; }
.ch-edit { border: 1px solid var(--line); border-radius: 14px; background: #fcfcfa; }
.ch-edit summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; }
.ch-edit summary small { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch-edit summary svg { color: var(--muted); transition: transform .15s; }
.ch-edit[open] summary svg { transform: rotate(90deg); }
.ch-edit form { padding: 0 14px 14px; }
table.statement { width: 100%; border-collapse: collapse; font-size: 15px; }
table.statement td { padding: 8px 0; border-top: 1px solid var(--line); }
table.statement td.num { font-variant-numeric: tabular-nums; }
table.statement tr.section td { border-top: 0; padding-top: 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 750; }
table.statement tr.sub td { font-weight: 750; }
table.statement tr.total td { font-weight: 850; font-size: 18px; border-top: 2px solid var(--ink); padding-top: 12px; }
table.statement tr.muted-row td { color: var(--muted); font-size: 14px; }
.plans { display: grid; gap: 16px; }
.plan-grid { display: grid; gap: 14px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); }
.plan.pro { background: var(--forest); color: #fff; border: 0; }
.plan-tag { position: absolute; top: 16px; right: 16px; background: var(--lime); color: var(--forest); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.price { display: flex; align-items: baseline; gap: 6px; } .price b { font-size: 40px; font-weight: 850; letter-spacing: -0.03em; } .price span { color: var(--muted); font-weight: 650; }
.plan.pro .price span, .price-sub { color: #b7cfc2; font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 8px; align-items: center; font-weight: 550; }
.plan li svg { color: var(--green); flex: none; } .plan.pro li svg { color: var(--lime); }
.plan-current { text-align: center; font-weight: 750; padding: 12px; border-radius: 12px; background: var(--tint); color: var(--brand); }
.plan.pro .plan-current { background: rgba(255,255,255,.1); color: var(--lime); }
.more-list { display: grid; }
.more-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.more-item:first-child { border-top: 0; }
.more-item > span:nth-child(2) { flex: 1; display: grid; } .more-item small { color: var(--muted); font-size: 13px; } .more-item > svg { color: var(--muted); }
.more-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.legal-links { text-align: center; font-size: 13px; color: var(--muted); }
.legal-links a { color: var(--muted); }

/* ---------- auth & setup ---------- */
.auth-wrap, .setup-wrap { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, #1d5c45 0%, var(--forest) 60%); padding: 0 16px 40px; }
.auth-top { max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 70px; color: #fff; }
.auth-card { max-width: 440px; margin: 0 auto; display: grid; gap: 14px; }
.auth-hero { color: #fff; text-align: center; margin: 10px 0 4px; }
.auth-hero h1 { font-size: 30px; } .auth-hero p { color: #b7cfc2; margin-top: 6px; }
.auth-card .card { padding: 22px; }
.auth-card form { display: grid; gap: 14px; }
.auth-foot { text-align: center; color: #cfe0d6; } .auth-foot a { color: var(--lime); font-weight: 700; }
.auth-legal { font-size: 12.5px; color: var(--muted); text-align: center; }
.setup-hero { max-width: 560px; margin: 10px auto 18px; color: #fff; text-align: center; }
.setup-hero h1 { font-size: 32px; } .setup-hero p { color: #b7cfc2; margin-top: 6px; }
.setup-card { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; padding: 22px; }
.step { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.step-n { width: 28px; height: 28px; border-radius: 9px; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; text-align: left; min-height: 54px; }
.pick svg { margin-left: auto; color: var(--brand); }
.pick[aria-pressed="true"] { border-color: var(--brand); background: var(--green-bg); }
.pick:disabled { opacity: .45; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--forest); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 650; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: up .2s; }
.toast.ok { border-left: 4px solid var(--lime); } .toast.err { background: var(--red); }

/* ---------- landing ---------- */
.lp { background: var(--paper); }
.lp-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp-in.narrow { max-width: 760px; }
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(11,42,32,.92); backdrop-filter: blur(10px); color: #fff; }
.lp-nav .lp-in { display: flex; align-items: center; gap: 8px; height: 64px; }
.lp-hero { background: radial-gradient(900px 500px at 80% 10%, #1f6a4f 0%, var(--forest) 62%); color: #fff; padding: 46px 0 0; overflow: hidden; }
.lp-hero-grid { display: grid; gap: 30px; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 750; letter-spacing: .02em; color: var(--lime); background: rgba(176,245,140,.12); border-radius: 99px; padding: 6px 12px; }
.lp-kicker.dark { color: var(--brand); background: var(--green-bg); }
.lp-hero h1 { font-size: clamp(38px, 8vw, 64px); font-weight: 850; letter-spacing: -0.045em; line-height: 1.02; margin: 16px 0; }
.lp-hero h1 em { font-style: normal; color: var(--lime); }
.lp-lead { font-size: 18px; color: #cfe0d6; max-width: 560px; }
.lp-lead.dark { color: var(--ink-2); margin: 12px 0; }
.lp-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.lp-small { font-size: 13.5px; color: #9fbcad; margin-top: 12px; }
.lp-markets { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; font-size: 14px; font-weight: 650; color: #e4efe8; }
.lp-markets span { display: inline-flex; align-items: center; gap: 7px; }
.lp-shots { position: relative; height: 470px; }
.phone { margin: 0; width: 240px; border-radius: 34px; background: #0a0f0d; padding: 9px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.phone img { width: 100%; height: auto; display: block; border-radius: 26px; background: #fff; }
.lp-shots .phone { position: absolute; }
.lp-shots .front { left: 50%; transform: translateX(-75%); top: 10px; z-index: 2; }
.lp-shots .back { left: 50%; transform: translateX(-5%) rotate(4deg); top: 60px; opacity: .97; }
.lp section h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 850; letter-spacing: -0.035em; }
.lp-pain { padding: 64px 0 20px; }
.lp-pain-grid { display: grid; gap: 14px; margin-top: 22px; }
.lp-pain-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.lp-pain-grid b { font-size: 18px; } .lp-pain-grid p { color: var(--ink-2); margin-top: 6px; }
.lp-features { padding: 50px 0; }
.lp-feature-grid { display: grid; gap: 14px; margin-top: 24px; }
.lp-feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.lp-ficon { width: 46px; height: 46px; border-radius: 14px; background: var(--forest); color: var(--lime); display: grid; place-items: center; margin-bottom: 14px; }
.lp-feature p { color: var(--ink-2); margin-top: 6px; }
.lp-how, .lp-community { padding: 50px 0; }
.lp-how { background: var(--card); border-block: 1px solid var(--line); }
.lp-how-grid { display: grid; gap: 30px; align-items: center; justify-items: center; }
.lp-how-grid > div { justify-self: stretch; }
.lp-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.lp-steps li { display: flex; gap: 14px; }
.lp-steps li > span { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-weight: 850; flex: none; }
.lp-steps p { color: var(--ink-2); }
.lp-checks { list-style: none; padding: 0; display: grid; gap: 10px; margin: 16px 0 0; font-weight: 650; }
.lp-checks li { display: flex; gap: 10px; align-items: center; } .lp-checks svg { color: var(--green); }
.lp-pricing { padding: 56px 0; text-align: center; }
.lp-pricing .plans { text-align: left; max-width: 760px; margin: 22px auto 0; }
.lp-sub { color: var(--muted); margin-top: 8px; }
.lp-faq { padding: 30px 0 50px; }
.lp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-top: 10px; }
.lp-faq summary { font-weight: 750; padding: 14px 0; cursor: pointer; list-style: none; }
.lp-faq details p { padding-bottom: 14px; color: var(--ink-2); }
.lp-final { background: var(--forest); color: #fff; padding: 60px 0; }
.lp-final .lp-lead { margin: 12px auto 24px; }
.lp-foot { padding: 26px 0 40px; }
.lp-foot .lp-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.lp-foot .brand { color: var(--ink); } .lp-foot .brand-name b { color: var(--brand); }
.lp-foot a { color: var(--ink-2); }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .lp-pain-grid, .lp-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; }
  .filters { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 980px) {
  .topnav { display: flex; }
  .desk-only { display: inline-flex !important; }
  .tabbar { display: none; }
  main { padding-bottom: 48px; }
  .grid-2 { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .chat-page { height: calc(100dvh - 60px - 60px); }
  #toasts { bottom: 24px; }
  .lp-hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .lp-shots { height: 560px; }
  .phone { width: 270px; }
  .lp-how-grid { grid-template-columns: 1fr 1fr; }
  .lp-community .lp-how-grid > div { order: 2; }
  h1 { font-size: 32px; }
}
@media (max-width: 380px) {
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .form-grid.three > :first-child { grid-column: span 2; }
  .hero-num { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- fixes after mobile review ---------- */
.field { align-content: start; }
.form-grid { align-items: start; }
.lp { overflow-x: clip; }
@media (max-width: 719px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar select { flex: 1; max-width: none; }
  .lp-shots { height: 500px; }
  .lp-shots .back { display: none; }
  .lp-shots .front { transform: translateX(-50%); }
  .lp-nav .lang-select select { max-width: 92px; }
  .legend { grid-template-columns: 1fr; }
}
.page > *, .col > *, .card { min-width: 0; }
@media (max-width: 480px) { .hide-sm { display: none; } table.mini td, table.mini th { padding: 8px 10px; } }
.lp-lang-mobile { display: none; margin-top: 10px; color: #cfe0d6; }
@media (max-width: 480px) {
  .lp-nav .lang-select { display: none; }
  .lp-lang-mobile { display: block; }
  .lp-nav .brand-name { font-size: 19px; }
}
@media (max-width: 480px) { .lp-nav .btn-lime { display: none; } }

/* ---------- plans, upgrade, trial ---------- */
.plan li.locked { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.plan li.locked svg { color: #b9bfb9 !important; }
.pro-pill { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 850; letter-spacing: .06em; background: var(--lime); color: var(--forest); padding: 2px 7px; border-radius: 6px; }
.upgrade-why { display: flex; gap: 10px; align-items: flex-start; background: var(--forest); color: #e4efe8; border-radius: 14px; padding: 14px; margin-bottom: 14px; font-weight: 600; }
.upgrade-why svg { color: var(--lime); flex: none; margin-top: 2px; }
.sheet.wide { max-width: 760px; }
.trial-banner { display: flex; align-items: center; gap: 8px; background: var(--forest); color: #e4efe8; border-radius: 14px; padding: 10px 14px; font-weight: 650; font-size: 14px; }
.trial-banner svg { color: var(--lime); } .trial-banner span { flex: 1; } .trial-banner .linklike { color: var(--lime); }
.blurred { filter: blur(5px); user-select: none; pointer-events: none; }
.locked-card { position: relative; overflow: hidden; }
.locked-over { position: absolute; inset: 56px 0 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.92)); }
.locked-over p { max-width: 380px; font-weight: 650; }
.sc-line { display: inline-block; min-width: 38px; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--tint); border-radius: 6px; padding: 2px 6px; margin-right: 10px; text-align: center; }
.seg-group { flex-wrap: wrap; }
.plan.pro { order: -1; }
@media (min-width: 720px) { .plan.pro { order: 0; } }

/* Sheets: size to the *visible* screen on phones (Safari's toolbars), so the top is never cut off */
.sheet-wrap { height: 100vh; height: 100dvh; }
.sheet { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top)); }
.sheet-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

.sheet-head { position: sticky; top: 0; background: var(--card); z-index: 2; border-radius: 22px 22px 0 0; }
.sheet-grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 8px auto 0; }
.sheet-x { background: var(--tint); }
.sheet-cancel { margin-top: 10px; color: var(--muted); border-color: transparent; }
@media (min-width: 720px) { .sheet-grab { display: none; } }

/* instant navigation */
main.refreshing { opacity: .72; transition: opacity .15s; }
.skeleton .sk { background: linear-gradient(90deg, #e9ebe4 25%, #f3f4ef 50%, #e9ebe4 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 16px; }
.sk-title { height: 34px; width: 50%; } .sk-hero { height: 220px; border-radius: 22px !important; } .sk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-card { height: 92px; } .sk-block { height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.code-box { text-align: center; margin-top: 4px; }
.code-box summary { cursor: pointer; color: var(--brand); font-weight: 700; list-style: none; padding: 8px; }
.code-form { display: flex; gap: 8px; max-width: 380px; margin: 6px auto 0; }
.code-form input { text-transform: uppercase; }
