/* Wareyva design system. Shared across marketing, account and live screens.
   See UI-DESIGN.md for tokens, component states and page coverage. */
:root {
  color-scheme: light;
  --paper:#f7f8fa; --raise:#ffffff; --sink:#eef1f5; --ink:#202b3d;
  --quiet:#5d697b; --faint:#667285; --rule:#e4e8ee; --rule2:#ced5df;
  --field-rule:#818c9c; --read-done:#657083;
  --mark:#b94a24; --mark-in:#fff; --mark-wash:#fff1e9; --trail:#f1cf78;
  --good:#237050; --good-wash:#eaf7ef; --warn:#b43535; --warn-wash:#fff0ef;
  --navy:#192b40; --radius:16px;
  --shadow:0 2px 6px #202b3d03,0 12px 36px -18px #202b3d25;
  --shadow-lg:0 8px 24px #202b3d06,0 30px 70px -24px #202b3d30;
  --ui:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --read:"Newsreader",Georgia,serif;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --paper:#101720; --raise:#18222f; --sink:#202e3e; --ink:#edf1f7;
  --quiet:#a8b5c7; --faint:#9ba9bb; --rule:#2b394a; --rule2:#415269;
  --field-rule:#7889a0; --read-done:#a0adbf;
  --mark:#ffab7f; --mark-in:#25180e; --mark-wash:#35281f; --trail:#846b2e;
  --good:#7bd4aa; --good-wash:#19342c; --warn:#ff9a91; --warn-wash:#3c2529;
  --navy:#182c42; --shadow:0 12px 36px -18px #0008; --shadow-lg:0 24px 70px -20px #0009;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
html,body { margin:0; }
body { min-height:100vh; display:flex; flex-direction:column; background:var(--paper);
  color:var(--ink); font:400 15px/1.65 var(--ui); -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-underline-offset:4px; }
button,a { touch-action:manipulation; }
button { color:inherit; }
button:not(:disabled),summary { cursor:pointer; }
:focus-visible { outline:3px solid var(--mark); outline-offset:4px; }
::selection { background:var(--trail); color:var(--ink); }
h1,h2,h3,h4,p { margin-top:0; }
h1,h2,h3,h4 { font-family:var(--ui); font-weight:600; color:var(--ink); }
h1 { font-size:clamp(30px,3.5vw,42px); line-height:1.2; letter-spacing:-.045em; margin-bottom:12px; text-wrap:balance; }
h2 { font-size:25px; line-height:1.3; letter-spacing:-.03em; margin:36px 0 18px; }
h3 { font-size:18px; line-height:1.4; letter-spacing:-.02em; margin-bottom:10px; }
p { margin-bottom:16px; }
svg.icon { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round; flex:none; vertical-align:middle; }
.icon-box { display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px;
  border-radius:13px; color:var(--mark); background:var(--mark-wash); flex:none; }
.icon-box.green { color:var(--good); background:var(--good-wash); }
.icon-box.slate { color:var(--ink); background:var(--sink); }
.eyebrow { display:block; font:600 11px/1.5 var(--ui); letter-spacing:.12em; text-transform:uppercase;
  color:var(--quiet); margin:0 0 12px; }
.eyebrow.accent { color:var(--mark); }
.lede { font-size:17px; line-height:1.75; color:var(--quiet); max-width:620px; margin:0 0 28px; }
.note,.hint { color:var(--quiet); font-size:13px; line-height:1.65; margin:0; }
.hint { margin-top:10px; }
.mono { font:13px/1.5 ui-monospace,Consolas,monospace; }
.num { font-variant-numeric:tabular-nums; }
.bad { color:var(--warn); }
.good { color:var(--good); }
.msg { font-size:13px; line-height:1.55; margin:12px 0 0; overflow-wrap:anywhere; }
.msg:empty { display:none; }
.msg.bad,.msg.good { border-radius:9px; padding:11px 13px; }
.msg.bad { background:var(--warn-wash); }
.msg.good { background:var(--good-wash); }
.skip-link { position:fixed; top:10px; left:10px; transform:translateY(-180%); z-index:100; opacity:0; pointer-events:none;
  padding:12px 20px; border-radius:8px; background:var(--ink); color:var(--raise); }
.skip-link:focus { transform:none; opacity:1; pointer-events:auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mark { display:inline-flex; align-items:center; gap:10px; white-space:nowrap;
  font:600 23px/1 var(--ui); letter-spacing:-1px; text-decoration:none; color:var(--ink); }
.brand-logo { display:block; width:154px; height:auto; flex:none; }
.brand-logo-dark { display:none; }
:root[data-theme="dark"] .brand-logo-light { display:none; }
:root[data-theme="dark"] .brand-logo-dark { display:block; }
.bar { min-height:82px; flex:none; display:flex; align-items:center; gap:24px; padding:16px max(28px,calc((100vw - 1184px)/2));
  border-bottom:1px solid var(--rule); background:var(--raise); }
.bar nav { margin-left:auto; display:flex; align-items:center; gap:8px; }
.bar nav a { text-decoration:none; padding:9px 12px; font-size:13px; font-weight:500; color:var(--quiet); border-radius:8px; }
.bar nav a:hover,.bar nav a[aria-current="page"] { background:var(--sink); color:var(--ink); }
.bar nav .nav-cta { background:var(--ink); color:var(--raise); padding:11px 17px; margin-left:8px; }
.bar nav .nav-cta:hover { background:var(--mark); color:var(--mark-in); }
.bar .nav-secondary { margin-right:18px; }
.icon-btn { width:38px; height:38px; display:inline-grid; place-items:center; padding:0; border:1px solid var(--rule);
  border-radius:10px; background:var(--raise); color:var(--quiet); flex:none; }
.icon-btn:hover { background:var(--sink); color:var(--ink); }
.menu-toggle { display:none; }
.public-menu-toggle { display:none; }
main { flex:1 1 auto; width:100%; max-width:1152px; margin:0 auto; padding:50px 32px 80px; }
.narrow { max-width:520px; }
footer { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; border-top:1px solid var(--rule);
  padding:25px max(28px,calc((100vw - 1184px)/2)); font-size:12px; color:var(--quiet); }
footer a { color:var(--quiet); text-decoration:none; }
footer a:hover { color:var(--mark); }
footer nav { display:flex; gap:22px; flex-wrap:wrap; }
.footer-brand { display:flex; align-items:center; gap:14px; }
.footer-brand .mark { font-size:20px; }
.footer-brand .brand-logo { width:138px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px;
  font:500 14px/1.3 var(--ui); padding:12px 18px; border-radius:10px;
  border:1px solid var(--rule2); background:var(--raise); color:var(--ink); cursor:pointer;
  text-decoration:none; text-align:center; transition:background .16s,box-shadow .16s,transform .16s,border-color .16s; }
.btn:hover { border-color:var(--quiet); background:var(--sink); }
.btn:active { transform:translateY(1px); }
.btn.solid { background:var(--mark); border-color:var(--mark); color:var(--mark-in); box-shadow:0 3px 6px #c4512910; }
.btn.solid:hover { filter:brightness(1.06); box-shadow:0 5px 15px #c4512928; }
.btn.dark { background:var(--ink); color:var(--raise); border-color:var(--ink); }
.btn.ghost { background:transparent; border-color:transparent; }
.btn.wide { width:100%; }
.btn.big { min-height:50px; padding:14px 22px; font-size:14px; }
.btn.small { min-height:36px; padding:8px 12px; font-size:12px; border-radius:8px; }
.btn.danger { color:var(--warn); border-color:var(--rule); background:var(--raise); }
.btn.danger:hover { background:var(--warn-wash); border-color:var(--warn); }
.btn:disabled { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.btn .icon { width:17px; height:17px; }
.actions,.button-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
label { display:block; font-size:13px; font-weight:500; color:var(--ink); margin:18px 0 7px; }
input:not([type]),input[type=email],input[type=password],input[type=text],input[type=number],select,textarea {
  width:100%; min-width:0; font:400 14px/1.5 var(--ui); padding:12px 14px; border:1px solid var(--field-rule);
  border-radius:10px; background:var(--raise); color:var(--ink); transition:border-color .15s,box-shadow .15s; }
input::placeholder,textarea::placeholder { color:var(--faint); opacity:1; }
input:focus,select:focus,textarea:focus { outline:none; border-color:var(--mark); box-shadow:0 0 0 3px var(--mark-wash); }
input[readonly] { background:var(--paper); color:var(--quiet); }
input[type=checkbox],input[type=radio] { accent-color:var(--mark); }
textarea { resize:vertical; line-height:1.7; }
select { cursor:pointer; }
summary { font-size:13px; font-weight:500; color:var(--quiet); }
summary:hover { color:var(--mark); }
.card { background:var(--raise); border:1px solid var(--rule); border-radius:var(--radius); padding:26px; }
.cards { display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); }
.card-heading { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.card-heading h2,.card-heading h3 { margin:0; }
.card-heading .note { margin-left:auto; }
.tag,.chip,.pill { display:inline-flex; align-items:center; gap:6px; width:fit-content; padding:5px 9px;
  font:500 11px/1.3 var(--ui); border-radius:6px; border:1px solid var(--rule); color:var(--quiet); background:var(--paper); }
.tag,.chip.on { color:var(--mark); background:var(--mark-wash); border-color:transparent; }
.chip.paid { color:var(--good); background:var(--good-wash); border-color:transparent; }
.plan { display:flex; flex-direction:column; padding:30px; }
.plan h2 { margin:18px 0 10px; }
.plan .price { font:600 42px/1.1 var(--ui); letter-spacing:-.045em; margin:22px 0 12px; }
.plan .price small { font:400 13px/1.5 var(--ui); color:var(--quiet); letter-spacing:0; }
.plan ul { flex:1; list-style:none; padding:0; margin:24px 0; display:flex; flex-direction:column; gap:13px; }
.plan li { position:relative; padding-left:25px; font-size:13px; color:var(--quiet); }
.plan li::before { content:"✓"; position:absolute; left:0; color:var(--good); font-weight:600; }
.plan.best { border-color:var(--mark); box-shadow:var(--shadow); }
.meter { height:6px; border-radius:999px; background:var(--sink); overflow:hidden; display:flex; }
.meter i { display:block; height:100%; background:var(--mark); }
.meter i.full { background:var(--warn); }
.meter i.paid { background:var(--good); }
.rows { width:100%; border-collapse:collapse; font-size:13px; }
.rows td { padding:14px 0; border-bottom:1px solid var(--rule); }
.rows td:last-child { text-align:right; color:var(--quiet); overflow-wrap:anywhere; }
.rows tr:last-child td { border-bottom:0; }
.shell { display:flex; flex:1 1 auto; min-height:100vh; width:100%; }
.app-view { padding:0; max-width:none; margin:0; }
.rail { width:236px; flex:none; border-right:1px solid var(--rule); background:var(--raise); padding:28px 18px 20px;
  display:flex; flex-direction:column; gap:30px; position:sticky; top:0; height:100dvh; align-self:flex-start; }
.rail .mark { padding:0 8px; font-size:22px; }
.rail nav { display:flex; flex-direction:column; gap:5px; }
.rail nav a { display:flex; align-items:center; gap:12px; padding:11px 13px; border-radius:9px;
  color:var(--quiet); font-size:13px; font-weight:500; text-decoration:none; }
.rail nav a:hover { background:var(--sink); color:var(--ink); }
.rail nav a.on { background:var(--mark-wash); color:var(--mark); }
.rail nav .icon { width:18px; height:18px; }
.rail nav .group { display:block; font:500 10px/1.5 var(--ui); color:var(--faint);
  text-transform:uppercase; letter-spacing:.1em; margin-top:20px; padding:0 13px 7px; }
.rail nav .group:first-child { margin-top:0; }
.rail .foot { margin-top:auto; display:flex; flex-direction:column; gap:20px; }
.rail-tip { padding:17px; background:var(--paper); border:1px solid var(--rule); border-radius:12px; font-size:12px; }
.rail-tip b { display:block; margin-bottom:5px; font-weight:500; }
.rail-tip p { color:var(--quiet); line-height:1.6; margin:0 0 12px; }
.rail-tip a { font-size:12px; color:var(--mark); font-weight:500; text-decoration:none; }
.rail-profile { display:flex; gap:10px; align-items:center; padding:15px 5px 0; border-top:1px solid var(--rule); text-decoration:none; }
.avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--mark-wash);
  color:var(--mark); font-size:12px; font-weight:600; flex:none; }
.rail-profile .me { font-size:11px; color:var(--quiet); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.rail-profile b { display:block; color:var(--ink); font-size:12px; font-weight:500; }
.work { flex:1 1 auto; min-width:0; }
.workspace-topbar { height:74px; display:flex; align-items:center; gap:14px; padding:15px 38px;
  border-bottom:1px solid var(--rule); background:var(--raise); }
.workspace-topbar .crumb { font-size:12px; color:var(--quiet); display:flex; align-items:center; gap:10px; margin:0; }
.workspace-topbar .crumb strong { font-weight:500; color:var(--ink); }
.workspace-topbar .top-actions { margin-left:auto; display:flex; align-items:center; gap:14px; }
.top-date { color:var(--quiet); font-size:12px; }
.work .inner,.workspace-main { max-width:1236px; padding:38px 38px 64px; margin:0 auto; }
.workspace-main { width:100%; }
.workspace-footer { padding:20px 38px; margin:0 auto; max-width:1236px; }
.tabs { display:none; }
.nav-backdrop { display:none; }
.apphead { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 28px; }
.apphead h1 { font-size:30px; margin:0 0 6px; }
.apphead .sub { font-size:14px; color:var(--quiet); margin:0; }
.apphead .eyebrow { margin-bottom:10px; }
.overview-grid { display:grid; grid-template-columns:1.45fr 1fr; gap:22px; }
.welcome-card { position:relative; overflow:hidden; border-radius:18px; padding:30px; background:var(--navy); color:#fff; }
.welcome-card h2 { color:#fff; font-size:28px; margin:8px 0 12px; max-width:350px; }
.welcome-card p { color:#bdcada; font-size:14px; max-width:290px; margin-bottom:24px; }
.welcome-card .eyebrow { color:#f7ba97; position:relative; z-index:1; }
.welcome-card .btn { background:#fff; border-color:#fff; color:#24364a; position:relative; z-index:1; }
.welcome-card::after { content:""; position:absolute; width:210px; height:210px; right:-100px; top:-12px;
  border:1px solid #ffffff16; border-radius:50%; box-shadow:0 0 0 28px #ffffff04,0 0 0 60px #ffffff04,0 0 0 92px #ffffff03; }
.balance { background:var(--raise); border:1px solid var(--rule); border-radius:18px; padding:26px;
  display:flex; flex-direction:column; gap:18px; }
.balance .eyebrow { margin:0; }
.balance .figure { display:flex; align-items:baseline; gap:10px; }
.balance .figure b { font:500 48px/1.1 var(--ui); letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
.balance .figure span { font-size:13px; color:var(--quiet); }
.balance .legend { display:flex; gap:8px 20px; flex-wrap:wrap; font-size:12px; color:var(--quiet); }
.balance .legend i { width:7px; height:7px; display:inline-block; border-radius:50%; margin-right:7px; }
.balance .note { font-size:12px; }
.balance .balance-link { color:var(--mark); font-size:12px; font-weight:500; text-decoration:none; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:16px; margin:22px 0 30px; }
.stat { padding:20px 22px; border:1px solid var(--rule); border-radius:13px; background:var(--raise); }
.stat b { font:500 26px/1.1 var(--ui); display:block; letter-spacing:-.04em; margin-bottom:8px; }
.stat span { font-size:11px; color:var(--quiet); }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:30px 0 16px; }
.section-head h2 { font-size:18px; margin:0; }
.section-head a { font-size:12px; color:var(--quiet); text-decoration:none; }
.mode-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.mode-link { position:relative; background:var(--raise); border:1px solid var(--rule); border-radius:14px;
  padding:22px; text-decoration:none; transition:border-color .15s,transform .15s,box-shadow .15s; }
.mode-link:hover { border-color:var(--mark); transform:translateY(-2px); box-shadow:var(--shadow); }
.mode-link .icon-box { width:40px; height:40px; margin-bottom:18px; border-radius:11px; }
.mode-link h3 { font-size:14px; margin-bottom:7px; }
.mode-link p { color:var(--quiet); font-size:12px; line-height:1.7; margin-bottom:20px; }
.mode-link .go-link { color:var(--mark); font-size:12px; font-weight:500; display:flex; align-items:center; gap:6px; }
.mode-link .go-link .icon { width:14px; height:14px; }
.session { border:1px solid var(--good); background:var(--good-wash); padding:22px; border-radius:14px;
  display:flex; flex-direction:column; gap:14px; margin:24px 0; }
.session .top { display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:13px; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--good); flex:none; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
.linkrow { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.linkrow input { flex:1 1 14em; min-width:0; font:12px/1.5 ui-monospace,Consolas,monospace; }
.log { display:flex; flex-direction:column; border:1px solid var(--rule); background:var(--raise); border-radius:14px; overflow:hidden; }
.log .row { display:flex; align-items:center; gap:14px; padding:17px 22px; border-bottom:1px solid var(--rule); flex-wrap:wrap; }
.log .row:last-child { border:0; }
.log .row > .icon-box { width:36px; height:36px; border-radius:10px; }
.log .row .what { flex:1 1 12em; min-width:0; }
.log .row .what b { font-weight:500; font-size:13px; }
.log .row .what small { display:block; font-size:11px; color:var(--quiet); margin-top:3px; }
.log .row .when { font-size:12px; color:var(--quiet); }
.log .row .amount { font:500 12px/1.5 var(--ui); min-width:60px; text-align:right; }
.empty { color:var(--quiet); font-size:14px; padding:22px 0; }
.empty-card { text-align:center; padding:35px 24px; border:1px dashed var(--rule2); border-radius:14px; }
.empty-card .icon-box { margin-bottom:15px; }
.empty-card h3 { font-size:15px; margin:0 0 7px; }
.empty-card p { color:var(--quiet); font-size:13px; margin-bottom:16px; }
.buy { display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; }
.buy .field { flex:1 1 180px; }
.buy label { margin-top:0; }
.total { font:500 14px/1.5 var(--ui); margin-bottom:12px; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.settings-grid .card h2 { font-size:16px; margin:0 0 5px; }
.settings-grid .card .btn { margin-top:18px; }
.settings-grid .full { grid-column:1/-1; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:15px; margin:0 0 32px; }
.tile { background:var(--raise); border:1px solid var(--rule); border-radius:14px; padding:23px 20px; }
.tile b { display:block; font:500 28px/1.2 var(--ui); letter-spacing:-.04em; margin-bottom:8px; }
.tile span { font-size:11px; color:var(--quiet); }
.tile.owe { border-color:var(--mark); }
.scroll { overflow-x:auto; border:1px solid var(--rule); background:var(--raise); border-radius:13px; }
table.grid { width:100%; border-collapse:collapse; min-width:680px; font-size:12px; }
table.grid th { padding:15px 18px; background:var(--paper); color:var(--quiet); font:500 11px/1.5 var(--ui); text-align:left; white-space:nowrap; }
table.grid td { padding:15px 18px; border-top:1px solid var(--rule); }
table.grid td.n,table.grid th.n { text-align:right; font-variant-numeric:tabular-nums; }
table.grid tr:hover td { background:var(--paper); }
.search { display:flex; gap:10px; margin-bottom:16px; }
.search input { max-width:380px; }
.give { display:flex; gap:6px; }
.give input { width:80px; padding:8px; font-size:12px; }
.who { font-weight:500; }
.state { display:inline-flex; align-items:center; gap:8px; font-size:12px; color:var(--quiet);
  background:var(--paper); border:1px solid var(--rule); border-radius:999px; padding:7px 11px; }
.state i { width:7px; height:7px; border-radius:50%; background:var(--faint); flex:none; }
.state.live i { background:var(--good); animation:pulse 2s infinite; }
.state.err { color:var(--warn); background:var(--warn-wash); }
.state.err i { background:var(--warn); animation:none; }
.warnbox { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:16px 18px; margin:20px 0;
  border:1px solid var(--rule2); background:var(--mark-wash); border-radius:12px; font-size:13px; }
.warnbox > span { flex:1 1 14em; min-width:0; }
.warnbox > [data-icon] { flex:none; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:28px; flex-wrap:wrap; }
ul.plain { list-style:none; padding:0; margin:16px 0; display:grid; gap:14px; }
ul.plain li { position:relative; padding-left:27px; color:var(--quiet); font-size:14px; line-height:1.7; }
ul.plain li::before { content:"✓"; position:absolute; left:0; color:var(--good); }
.page-intro { max-width:700px; margin-bottom:32px; }
.page-intro h1 { margin-bottom:12px; }
.page-intro .lede { margin-bottom:0; }
.breadcrumb { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--quiet); text-decoration:none; margin-bottom:24px; }
.breadcrumb .icon { width:15px; height:15px; }
.mode-picker .plan { min-height:410px; }
.mode-picker .icon-box { margin-bottom:22px; width:52px; height:52px; }
.mode-picker .tag { margin-bottom:12px; }
.mode-picker h2 { font-size:23px; margin:0 0 10px; }
.mode-picker .note { min-height:65px; }
.setup-steps { display:flex; gap:28px; padding:18px 0 25px; margin-bottom:8px; border-bottom:1px solid var(--rule); flex-wrap:wrap; }
.setup-steps span { display:flex; align-items:center; gap:8px; color:var(--quiet); font-size:12px; }
.setup-steps b { display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--rule); background:var(--raise);
  border-radius:50%; font-weight:500; color:var(--quiet); }
.setup-steps .active { color:var(--mark); }
.setup-steps .active b { background:var(--mark); color:var(--mark-in); border-color:var(--mark); }
.setup-grid { display:grid; grid-template-columns:minmax(0,1fr) 282px; gap:24px; align-items:start; margin-top:26px; }
.document-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.slot { background:var(--raise); border:1px solid var(--rule); border-radius:15px; padding:24px; margin-bottom:20px; }
.slot .head { display:flex; gap:12px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.slot .head h2 { margin:0; font-size:15px; }
.slot .head .note { font-size:11px; }
.slot .head .icon-box { width:38px; height:38px; }
.slot .head .slot-title { flex:1; }
.drop { border:1.5px dashed var(--rule2); border-radius:12px; padding:24px 12px; text-align:center; margin:18px 0 0; background:var(--paper); }
.drop > .icon { color:var(--quiet); width:27px; height:27px; margin-bottom:10px; }
.drop.over { background:var(--mark-wash); border-color:var(--mark); }
.drop p { font-size:12px; color:var(--quiet); margin-bottom:13px; }
.drop .hint { font-size:11px; margin-top:12px; }
.slot details { margin-top:16px; }
.slot textarea { margin-top:12px; }
.slot details .btn { margin-top:12px; }
.have { display:flex; gap:10px; align-items:center; background:var(--good-wash); padding:11px 13px; margin-top:14px; border-radius:9px; font-size:11px; overflow-wrap:anywhere; }
.have b { font-weight:500; min-width:0; }
.have .btn { margin-left:auto; flex:none; }
.setup-summary { position:sticky; top:24px; padding:24px; border:1px solid var(--rule); background:var(--raise); border-radius:15px; }
.setup-summary h2 { font-size:16px; margin:0 0 10px; }
.checklist { list-style:none; padding:0; margin:20px 0; display:grid; gap:14px; }
.checklist li { display:flex; gap:10px; color:var(--quiet); font-size:12px; }
.checklist .icon { width:17px; height:17px; flex:none; }
.checklist .ready { color:var(--good); }
.setup-summary .hint { font-size:11px; }
.setup-summary .msg { margin-bottom:14px; }
.guide-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:28px; }
.guide-step { border:1px solid var(--rule); background:var(--raise); padding:26px; border-radius:15px; }
.guide-step h3 { font-size:16px; margin:20px 0 10px; }
.guide-step p { font-size:13px; color:var(--quiet); margin:0; }
.support-demo { border:1px solid var(--rule); background:var(--raise); border-radius:16px; padding:30px; margin-top:30px; }
.support-demo .sample-text { font:400 26px/1.9 var(--read); max-width:800px; margin:20px 0; }
.sample-done { color:var(--read-done); }
.sample-trail { text-decoration:underline 3px #e7b953; text-underline-offset:6px; }
.sample-now { background:var(--mark-wash); border-bottom:3px solid var(--mark); border-radius:2px; }
.sample-legend { display:flex; gap:20px; font-size:11px; color:var(--quiet); flex-wrap:wrap; }
.sample-legend span { display:flex; align-items:center; gap:7px; }
.sample-legend i { display:block; width:7px; height:7px; border-radius:50%; background:var(--mark); }
.legal-page main { max-width:800px; padding-top:60px; }
.legal-page h1 { font-size:40px !important; }
.legal-page h2 { font-size:19px; margin-top:32px; }
.legal-page main > p { color:var(--quiet); font-size:14px; line-height:1.85; }
.legal-page .policy-content { background:var(--raise); border:1px solid var(--rule); padding:32px; border-radius:16px; }
.legal-page .policy-content p { color:var(--quiet); font-size:14px; }
.legal-page .policy-content h2:first-child { margin-top:0; }
.policy-links { display:flex; gap:18px; margin:20px 0 28px; font-size:13px; }
.publication-note { margin:28px 0; padding:18px 22px; border:1px solid var(--rule2); border-radius:12px; color:var(--quiet); font-size:13px; }
.publication-note strong { display:block; color:var(--ink); margin-bottom:4px; }
.admin-card { margin:24px 0; }
.admin-card h2 { margin-top:0; }
@media (max-width:1100px) {
  .rail { width:212px; padding-inline:13px; }
  .work .inner,.workspace-main { padding:30px 26px 60px; }
  .workspace-topbar { padding-inline:26px; }
  .overview-grid { grid-template-columns:1.2fr 1fr; }
  .setup-grid { grid-template-columns:1fr; }
  .setup-summary { position:static; }
  .setup-summary .checklist { display:flex; flex-wrap:wrap; gap:24px; }
  .setup-summary .btn { width:auto; min-width:220px; }
  .mode-picker { grid-template-columns:1fr; }
  .mode-picker .plan { min-height:0; }
  .mode-picker .note { min-height:0; }
}
@media (max-width:860px) {
  .rail { position:fixed; top:0; left:0; width:258px; z-index:31; transform:translateX(-100%); transition:transform .2s;
    box-shadow:var(--shadow-lg); visibility:hidden; }
  body.nav-open { overflow:hidden; }
  body.nav-open .rail { transform:none; visibility:visible; }
  body.nav-open .nav-backdrop { display:block; position:fixed; inset:0; width:100%; height:100%; z-index:30;
    background:#101d3299; border:0; padding:0; }
  .menu-toggle { display:inline-grid; }
  .workspace-topbar { height:68px; padding:12px 22px; }
  .top-date { display:none; }
  .bar { padding:16px 24px; min-height:76px; gap:14px; }
  .bar .nav-secondary { margin-right:0; }
}
@media (max-width:620px) {
  main { padding:32px 20px 55px; }
  .bar { padding:14px 20px; gap:10px; min-height:70px; flex-wrap:wrap; }
  .bar .mark { font-size:21px; }
  .bar nav { gap:1px; }
  .bar nav a { padding:8px; font-size:12px; }
  .bar nav .nav-cta { margin-left:3px; padding:10px 12px; }
  .bar .nav-secondary { display:none; }
  .bar .icon-btn { width:44px; height:44px; }
  .workspace-topbar .icon-btn { width:44px; height:44px; }
  .btn.small { min-height:44px; }
  .preview-bottom button { min-height:44px; }
  .public-menu-toggle { display:inline-grid; margin-left:auto; }
  .bar nav.public-nav { display:none; width:100%; order:4; flex-direction:column; align-items:stretch; }
  .bar nav.public-nav[data-open="true"] { display:flex; }
  .bar nav.public-nav .nav-secondary { display:block; }
  .bar nav.public-nav a { padding:12px; }
  .bar nav.public-nav .nav-cta { margin:0; text-align:center; }
  .bar > .icon-btn { margin-left:auto; }
  .bar > .public-menu-toggle + .icon-btn { margin-left:0; }
  .work .inner,.workspace-main { padding:28px 20px 50px; }
  .workspace-topbar { padding:12px 20px; gap:10px; }
  .workspace-topbar .crumb > span,.workspace-topbar .crumb > .icon { display:none; }
  .workspace-topbar .top-actions { gap:8px; }
  .workspace-topbar .top-actions > .btn { padding:9px 11px; font-size:12px; min-height:44px; }
  .workspace-topbar .top-actions > .btn .icon { display:none; }
  .apphead { align-items:flex-start; margin-bottom:24px; }
  .apphead h1 { font-size:27px; }
  .apphead .sub { font-size:13px; }
  .overview-grid,.settings-grid,.document-grid,.guide-grid { grid-template-columns:1fr; }
  .mode-grid { grid-template-columns:1fr; }
  .mode-link { padding:20px; }
  .mode-link .icon-box { float:left; margin:0 16px 10px 0; }
  .mode-link p { margin-bottom:10px; }
  .mode-link .go-link { padding-left:56px; }
  .stats { grid-template-columns:repeat(2,1fr); gap:12px; }
  .stat { padding:18px; }
  .welcome-card { padding:26px; }
  .welcome-card h2 { font-size:27px; }
  .balance { padding:24px; }
  .card,.slot { padding:22px; }
  .setup-steps { gap:12px 16px; }
  .setup-steps span { font-size:11px; }
  .setup-summary .btn { width:100%; }
  .log .row { gap:10px; padding:16px; }
  .log .row .when { margin-left:46px; }
  .log .row .amount { margin-left:auto; }
  .rows td:first-child { min-width:90px; }
  .rows td:last-child { max-width:190px; }
  footer,.workspace-footer { padding:22px 20px; }
  .footer-brand > span { display:none; }
  .legal-page main { padding-top:36px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
