/*
 * Deposit schemes (HANDOVER.md §4z15): the staff pages (/portal/schemes) and the customer's
 * passbook (/schemes on the shop's own site). Ported from Codex's approved prototype
 * (docs/schemes-screens/, codex/schemes-screens 271abc8); light only; a selected control is a
 * solid primary fill. Staff pages use the GFE platform colours; the customer's page takes the
 * shop's own colours from the theme the server writes into its head (--client-*).
 */
:root{--primary:#14213D;--on-primary:#fff;--accent:#14213D;--background:#fff;--surface:#fff;--surface-alt:#F2F8FD;--text:#111;--muted:#6B7280;--line:#E2E8F0;--control:#828997;--good:#0C6E4C;--bad:#A63D40;--warn:#8A5700;--shadow:0 16px 60px #172a4614;color-scheme:light;font:15px/1.55 Inter,'Segoe UI',Arial,sans-serif;color:var(--text);background:var(--background)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,a{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}button,a,input,select,textarea,summary{outline-offset:3px} :focus-visible{outline:3px solid var(--accent)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:38px;line-height:1.15;letter-spacing:-1.1px;font-weight:650}h2{font-size:22px;line-height:1.3;letter-spacing:-.6px;font-weight:650}h3{font-size:15px;font-weight:650}p{line-height:1.65}a{color:var(--accent)}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{display:block;font-size:11px;letter-spacing:1.6px;font-weight:650;color:var(--muted);margin-bottom:8px}.skip{position:fixed;top:-100px;left:10px;z-index:1000;background:white;padding:14px}.skip:focus{top:8px}.button,.icon-button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:44px;min-width:44px;border:1px solid var(--control);border-radius:9px;background:var(--surface);color:var(--text);padding:11px 17px;font-size:13px;font-weight:550;text-decoration:none}.button:hover{border-color:var(--primary);box-shadow:0 3px 12px #14213d12}.button.primary,.selected,[aria-current=page]{background:var(--primary)!important;color:var(--on-primary)!important;border-color:var(--primary)!important}.button.danger{color:var(--bad);border-color:var(--bad)}.icon-button{padding:0;font-size:25px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.actions .button{flex-grow:0}.full{width:100%}.field{display:grid;gap:6px;font-size:12px;color:var(--muted);margin-bottom:14px;min-width:0}.field input,.field select,.field textarea{min-height:46px;width:100%;min-width:0;border:1px solid var(--control);border-radius:9px;background:var(--surface);color:var(--text);padding:10px 12px;font-size:15px}.field textarea{resize:vertical;min-height:100px}.field input[readonly]{background:var(--surface-alt)}.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;cursor:pointer}.check input{width:20px;height:20px;accent-color:var(--primary);flex:none}.check:has(input:checked){font-weight:600}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.span2{grid-column:1/-1}.error-text{color:var(--bad);font-size:13px;margin-top:12px}.topbar{height:84px;padding:0 28px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--surface)}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:650;letter-spacing:1px}.brand-mark{width:39px;height:39px;display:grid;place-items:center;color:white;background:var(--primary);border-radius:9px;font-size:16px}.brand small{display:block;font-size:9px;letter-spacing:2.5px;color:var(--muted)}.topbar-right{font-size:12px;color:var(--muted);text-align:right}.workspace{max-width:1440px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 84px)}.sidebar{padding:28px 18px;border-right:1px solid var(--line)}.sidebar .eyebrow{padding:0 12px}.sidebar nav{display:grid;gap:8px}.nav-button{display:flex;align-items:center;gap:10px;min-height:46px;text-align:left;border:0;background:white;border-radius:8px;padding:10px 12px;font-size:13px;color:var(--muted)}.nav-icon{font-size:17px;width:20px;text-align:center}.sidebar-note{font-size:12px;color:var(--muted);padding:22px 12px;border-top:1px solid var(--line);margin-top:26px}.content{padding:32px 40px 52px;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:28px}.page-head p{font-size:14px;max-width:680px;color:var(--muted);margin-top:9px}.page-head .actions{margin:0}.grid{display:grid;gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.split{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:24px;align-items:start}.card{min-width:0;border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--surface);box-shadow:0 4px 18px #14213d06;margin-bottom:16px}.card h2,.card h3{margin-bottom:8px}.card p{font-size:13px;color:var(--muted)}.card.alert-edge{border-left:3px solid var(--bad)}.card.primary-edge{border-left:3px solid var(--primary)}.stat{display:flex;flex-direction:column;align-items:start;width:100%;text-align:left;position:relative;font:inherit;color:var(--text);cursor:pointer;margin:0;min-height:150px}.stat strong{font-size:36px;font-weight:650;line-height:1.25;margin:9px 0}.stat span:first-child{font-size:13px;color:var(--muted)}.stat small{font-size:12px;color:var(--muted)}.stat.alert-edge strong,.stat.alert-edge small{color:var(--bad)}.stat .arrow{position:absolute;right:20px;top:20px}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:28px 0 16px}.kv{display:flex;justify-content:space-between;gap:14px;font-size:13px;padding:10px 0;border-bottom:1px solid var(--line)}.kv:last-child{border:0}.kv span{color:var(--muted)}.kv b{font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}.badge{display:inline-flex;align-items:center;max-width:100%;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:650;background:var(--surface-alt);color:var(--text)}.badge.good{color:var(--good);background:#E6F4EA}.badge.warn{color:var(--warn);background:#FDF1DD}.badge.bad{color:var(--bad);background:#FAE8E8}.banner{padding:13px 15px;border-radius:11px;background:var(--surface-alt);font-size:13px;margin-bottom:18px;color:var(--text)}.banner.warn{background:#FDF1DD;color:var(--warn)}.banner.bad{background:#FAE8E8;color:var(--bad)}.banner.good{background:#E6F4EA;color:var(--good)}.banner b{display:block;margin-bottom:3px}.segments{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:20px}.segments button{min-height:44px;min-width:44px;padding:8px 14px;border:1px solid var(--control);border-radius:8px;background:var(--surface);color:var(--muted);font-size:12px}.list-row{display:grid;grid-template-columns:48px minmax(120px,1fr) minmax(120px,1fr) auto;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border:0;padding-bottom:0}.list-row p{font-size:12px;color:var(--muted);margin-top:4px}.thumb{width:44px;height:58px;object-fit:cover;border:1px solid var(--line);border-radius:5px}.screenshot{display:block;max-width:100%;width:320px;margin:auto;border:1px solid var(--line);border-radius:12px}.shot-caption{font-size:12px;text-align:center;color:var(--muted);margin-top:12px}.receipt-panel{background:#f8fafc;padding:24px;border-radius:14px;border:1px solid var(--line)}.timeline{list-style:none;margin:20px 0 0;padding:0}.timeline li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;position:relative;padding:0 0 20px;align-items:start}.timeline li:before{content:'';position:absolute;top:27px;bottom:0;left:13px;width:1px;background:var(--line)}.timeline li:last-child:before{display:none}.step{width:28px;height:28px;border-radius:50%;border:1px solid var(--control);display:grid;place-items:center;font-size:11px;background:white;z-index:1}.step.paid{background:var(--primary);color:white;border-color:var(--primary)}.timeline strong{font-size:13px}.timeline small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.timeline .badge{font-size:10px}.balance{display:block;font-size:36px;font-weight:650;letter-spacing:-1px;margin:8px 0 14px;font-variant-numeric:tabular-nums}.progress{height:6px;background:var(--line);border-radius:4px;overflow:hidden;margin:12px 0}.progress span{display:block;background:var(--primary);height:100%;width:27.27%}.rules{margin-top:20px;border-top:1px solid var(--line);padding-top:10px}.rules summary{font-weight:600;min-height:44px;padding:12px 0;font-size:13px;cursor:pointer}.rules p{margin:8px 0;font-size:13px;color:var(--muted)}.agreement{max-height:240px;overflow:auto;padding:18px;border:1px solid var(--line);border-radius:10px;margin:14px 0;background:var(--surface)}.agreement p{font-size:13px;margin-bottom:12px;color:var(--text)}.customer .workspace{display:block;max-width:1120px}.customer .content{padding:36px 32px 52px}.customer .brand{letter-spacing:2px}.customer .page-head h1{font-size:34px}.auth{max-width:980px;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:10px auto 20px;box-shadow:var(--shadow)}.auth-aside{padding:42px;background:var(--primary);color:white;display:flex;flex-direction:column;justify-content:space-between;gap:50px}.auth-aside .eyebrow,.auth-aside p{color:#d2d9e6}.auth-aside h2{font-size:32px;margin:15px 0}.auth-form{padding:42px}.auth-form h2{margin-bottom:12px}.auth-form p{font-size:13px;color:var(--muted);margin-bottom:22px}.otp{letter-spacing:8px;text-align:center;font-size:24px!important}.customer-nav{display:flex;gap:8px}.bottom-nav{display:none}.qr{display:block;width:180px;height:180px;margin:16px auto}.big-reference{padding:20px;background:var(--primary);color:white;border-radius:13px;margin-bottom:16px}.big-reference .eyebrow{color:#d2d9e6}.big-reference strong{display:block;font-size:30px}.big-reference p{color:#d2d9e6}.empty{padding:48px 24px;display:grid;justify-items:center;text-align:center;gap:12px;border:1px solid var(--line);border-radius:14px;min-height:320px}.empty p{font-size:13px;max-width:420px;color:var(--muted)}.empty-mark{width:56px;height:56px;border:1px solid var(--line);border-radius:14px;display:grid;place-items:center;font-size:25px;color:var(--muted)}.skeleton{background:linear-gradient(90deg,#eef1f5,#f9fafb,#eef1f5);background-size:200%;animation:pulse 1.5s infinite;border-radius:8px;height:18px;margin:14px 0}.skeleton.tall{height:150px}.skeleton.short{width:55%}@keyframes pulse{to{background-position:-200%}}dialog{border:1px solid var(--line);border-radius:19px;width:calc(100% - 32px);max-width:620px;max-height:90dvh;padding:26px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}dialog::backdrop{background:#0e1b3280;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}#dialog-body p{font-size:14px;color:var(--muted);margin-bottom:16px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--primary);color:var(--on-primary);padding:14px 20px;border-radius:12px;box-shadow:var(--shadow);font-size:13px;max-width:calc(100% - 32px);width:max-content;z-index:100}.footer{margin-top:30px;padding-top:18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}.permissions{display:grid;gap:12px}.permission-row{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:10px;align-items:center;font-size:13px;padding:10px 0;border-bottom:1px solid var(--line)}.permission-row .check{justify-content:center}.permission-row .check span{display:none}.export-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.export-row:last-child{border:0}.wide-form{max-width:820px}.note{font-size:12px;color:var(--muted);margin-top:12px}.inline-title{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:14px}.filter-search{max-width:480px}.nowrap{white-space:nowrap}
@media(max-width:1100px){.workspace{grid-template-columns:180px minmax(0,1fr)}.content{padding:28px 24px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.list-row{grid-template-columns:44px minmax(0,1fr) auto}.list-row .queue-meta{grid-column:2/-1}.customer .split{grid-template-columns:1fr 1fr}.page-head{flex-wrap:wrap}.stat{min-height:142px}}
@media(max-width:800px){.workspace{display:block}.sidebar{display:none}.topbar{height:68px;padding:0 16px}.topbar-right{font-size:11px}.brand{font-size:14px;gap:8px}.brand-mark{width:34px;height:34px}.content,.customer .content{padding:25px 16px 100px}.page-head h1,.customer .page-head h1{font-size:29px}.page-head{margin-bottom:22px;gap:16px}.page-head p{font-size:13px}.grid{gap:14px}.card{padding:17px}.bottom-nav{position:fixed;left:0;right:0;bottom:0;display:flex;gap:4px;background:var(--surface);border-top:1px solid var(--line);padding:7px 5px max(7px,env(safe-area-inset-bottom));z-index:20}.bottom-nav button{display:grid;justify-items:center;gap:2px;align-content:center;flex:1;min-width:0;font-size:10px;min-height:48px;background:white;color:var(--muted);border:0;border-radius:8px;padding:4px 2px}.bottom-nav .nav-icon{font-size:17px}.customer-nav{display:none}.customer .split{grid-template-columns:1fr}.customer .workspace{max-width:680px}.auth-aside{padding:28px;gap:18px}.auth-aside h2{font-size:28px}.auth-form{padding:28px}.auth{grid-template-columns:1fr;max-width:560px}.auth-aside .auth-foot{display:none}.footer{display:block}.footer span{display:block;margin-top:6px}#toast{bottom:82px}.receipt-panel{padding:16px}}
@media(max-width:500px){.grid,.grid.three,.form-grid{grid-template-columns:1fr}.grid.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:14px;min-height:150px}.stat strong{font-size:32px}.stat span:first-child{font-size:12px;max-width:105px}.stat .arrow{right:12px;top:11px;font-size:13px}.stat small{font-size:11px}.span2{grid-column:auto}.list-row{grid-template-columns:44px minmax(0,1fr);gap:12px}.list-row>.button{grid-column:2}.timeline{margin-top:16px}.timeline li{gap:8px;grid-template-columns:28px minmax(0,1fr) auto}.timeline .badge{padding:4px 7px;max-width:125px;white-space:normal;text-align:right}.topbar-right{max-width:100px}.auth-form{padding:24px 20px}.auth-aside{padding:24px}.actions .button{flex:1}.permission-row{grid-template-columns:1.2fr repeat(3,.7fr);font-size:11px;gap:4px}.permission-row .check{min-width:44px}.permission-row .check input{width:18px;height:18px}.card .balance{font-size:32px}.customer .brand small{letter-spacing:2px}dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;border-radius:20px 20px 0 0;padding:22px 18px;max-height:92dvh}.export-row{flex-wrap:wrap}.segments{gap:5px}.segments button{padding:8px 11px}.page-head .actions{width:100%}.field input[type=file]{font-size:12px;padding:12px 8px}.auth-aside h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
@media(max-width:800px){.staff[data-screen=account] .split>aside{order:-1}.staff[data-screen=account] .split>aside .actions .button{flex-basis:100%}.customer[data-screen=passbook] .split>section:first-child{display:flex;flex-direction:column}.customer[data-screen=passbook] .split>section:first-child>.card:nth-child(2){order:2}.customer[data-screen=passbook] .split>section:first-child>.card:nth-child(3){order:1}.customer[data-screen=passbook] .split>section:first-child>.actions{order:3}}

.member-strip{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;background:var(--surface-alt);border:1px solid var(--line);border-radius:10px;margin-bottom:24px;font-size:13px}.member-strip strong{font-family:Consolas,monospace}.readiness{display:flex;gap:24px;flex-wrap:wrap;margin-top:16px}.readiness>div{display:grid;gap:8px}.operator .content{background:#f6f9fc}.operator .workspace{max-width:none;grid-template-columns:244px minmax(0,1fr)}.operator .sidebar-note{display:none}@media(max-width:800px){.operator .workspace{display:block}}

.operator{font-family:Inter,'Segoe UI',Arial,sans-serif}.operator .topbar{height:72px}.operator .brand small{letter-spacing:2.5px}.operator .brand-mark{background:transparent}.operator .workspace{min-height:calc(100vh - 72px)}

/* The shop's own colours on the customer's page; GFE's where the shop has none. */
body.customer{--primary:var(--client-primary,#14213D);--on-primary:var(--client-on-primary,#fff);--accent:var(--client-accent,#14213D);--background:var(--client-bg,#fff);--surface:var(--client-surface,#fff);--surface-alt:var(--client-surface-alt,#F2F8FD);--text:var(--client-ink,#111);--muted:var(--client-muted,#6B7280);--line:var(--client-line,#E2E8F0);--control:var(--client-control,#828997);background:var(--background);color:var(--text)}
.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.brand a,.brand-link{color:inherit;text-decoration:none;display:flex;align-items:center;gap:12px}
.topbar-right a{color:var(--muted)}
.loading-line{color:var(--muted);font-size:13px;padding:24px 0}
.member-strip .copy-done{color:var(--good)}
.list-row.no-thumb{grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) auto}
.plan-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.plan-row:last-child{border:0}
.plan-row p{font-size:12px;color:var(--muted);margin-top:2px}
.screenshot-missing{padding:40px 16px;text-align:center;color:var(--muted);font-size:13px;border:1px dashed var(--line);border-radius:12px}
.not-found{max-width:560px;margin:80px auto;padding:0 16px}.not-found h1{margin-bottom:12px}
@media(max-width:500px){.list-row.no-thumb{grid-template-columns:minmax(0,1fr)}.list-row.no-thumb>.button{grid-column:1}}
/* Navigation and cards are links here (the prototype drew them as buttons). */
.nav-button,.card.stat,.segments a,.bottom-nav a{text-decoration:none}
.segments a.button{min-height:44px;padding:8px 14px;font-size:12px;color:var(--muted)}
@media(max-width:800px){.bottom-nav a{display:grid;justify-items:center;gap:2px;align-content:center;flex:1;min-width:0;font-size:10px;min-height:48px;background:var(--surface);color:var(--muted);border:0;border-radius:8px;padding:4px 2px}}

/* The Monthly Jewellery Scheme's new customer parts (HANDOVER.md §4z19), from Codex's approved
   design docs/scheme-accounts-screens/ (codex/scheme-accounts 80ffed3): the plans before sign-in,
   the statement, the receipt, the agreement and the message preview. */
.back-link{margin-bottom:24px}.back-link .button{font-size:12px;padding:9px 12px;min-height:40px}
.lead{font-size:16px;color:var(--muted);margin:-12px 0 4px}
.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.plan-grid+.card{margin-top:28px}
.plan-card{padding:26px;margin:0 0 4px;display:flex;flex-direction:column}.plan-card h2{font-size:22px}.plan-card .actions{margin-top:auto;padding-top:18px}.plan-card .actions .button{width:100%}.plan-card .field{margin-top:16px}
.plan-meta{margin-top:14px!important}
.benefit-line{font-size:17px!important;font-weight:600;color:var(--primary)!important;margin:18px 0!important;line-height:1.45!important}
.example{padding:12px 16px;border-radius:10px;background:var(--surface-alt)}.example .kv{font-size:12px}.example .kv:last-of-type{font-size:14px}
.how-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;gap:28px;font-size:13px;margin:24px 0 8px;counter-reset:how}.how-grid li{counter-increment:how;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:12px}.how-grid li::before{content:counter(how);grid-row:span 2;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:var(--on-primary);font-weight:700;font-size:13px}.how-grid span{grid-column:2}.how-grid span{display:block;color:var(--muted);font-size:12px;margin-top:8px}
.receipt-layout{max-width:600px;margin:auto}.receipt-layout>.actions>.button{flex:1}.receipt-image{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:16px}
.table-wrap{width:100%;min-width:0;overflow-x:auto}.statement table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.statement caption{text-align:left;margin:14px 0;color:var(--muted);font-size:11px}.statement th{text-align:left;color:var(--muted);font-size:11px;font-weight:550}.statement th,.statement td{padding:13px 8px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.message-preview{margin:20px 0;padding:22px;background:var(--surface-alt);border-left:3px solid var(--primary);font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.agreement-full{max-height:none}
@media(max-width:1100px){.how-grid{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.plan-grid{grid-template-columns:1fr;gap:16px}.plan-card{padding:20px}}
@media(max-width:500px){.how-grid{grid-template-columns:1fr;gap:22px}.statement table{font-size:10px}.statement th{font-size:10px}.statement th,.statement td{padding:10px 3px}}
@media print{.topbar,.bottom-nav,.back-link,.footer,.actions,.no-print,#toast,.skip,.member-strip{display:none!important}.card{box-shadow:none;border:0}.content{padding:0!important}.agreement{max-height:none;overflow:visible;border:0}}
.plan-card .badge{align-self:flex-start}

/* The staff side's new parts (HANDOVER.md §4z19), from Codex's approved design: the Owner's switches,
   the name preview, the figures, the plan editor and the counter poster. */
.setting-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start;padding:22px 0;border-bottom:1px solid var(--line)}.setting-row:last-of-type{border:0}.setting-row p{max-width:540px;font-size:13px;color:var(--muted)}.setting-row .button{min-width:62px}.setting-row h3{line-height:1.5}
.bar-preview{display:flex;gap:5px;background:var(--surface-alt);padding:8px;border-radius:12px;border:1px solid var(--line);margin:8px 0 12px}.bar-preview>span{flex:1;min-width:0;min-height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;background:#fff;font-size:11px;padding:5px;overflow-wrap:anywhere}
.source-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:18px}.source-grid div{background:var(--surface-alt);border-radius:8px;padding:12px 8px;display:grid;gap:4px}.source-grid b{font-size:24px}.source-grid small{font-size:11px;color:var(--muted)}
.figures-table{width:100%;border-collapse:collapse;font-size:12px}.figures-table th{text-align:left;color:var(--muted);font-size:11px;font-weight:550}.figures-table th,.figures-table td{padding:10px 6px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.stat:not(a){cursor:default}
.plan-editor .card h2{font-size:19px}.plan-editor aside{position:sticky;top:16px}
.plan-meta{margin-top:10px!important}.benefit-line{font-size:17px!important;font-weight:600;color:var(--primary)!important;margin:14px 0!important}
.poster{max-width:660px;margin:24px auto;padding:50px 46px 24px;border:1px solid var(--line);box-shadow:var(--shadow);border-top:10px solid var(--primary);text-align:center;background:var(--surface)}.poster-brand{font-size:22px;font-weight:650;letter-spacing:1px;margin-bottom:28px}.poster h2{font-size:36px;line-height:1.25;margin:16px 0}.poster .poster-lead{font-size:22px;line-height:1.6;font-weight:550;margin:20px 0}.poster-plans{list-style:none;padding:0;margin:0 0 8px;display:grid;gap:10px;text-align:left}.poster-plans li{padding:12px 14px;border:1px solid var(--line);border-radius:10px}.poster-plans b{display:block}.poster-plans span{font-size:12px;color:var(--muted)}.poster-qr{width:230px;height:230px;margin:24px auto 8px;display:block}.poster-url{font-size:15px;font-weight:600}.poster-foot{padding-top:22px;margin-top:26px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.poster.a5{max-width:520px;padding:32px}.poster.a5 h2{font-size:29px}.poster.a5 .poster-qr{width:180px;height:180px}
@page posterA4{size:A4;margin:12mm}@page posterA5{size:A5;margin:10mm}
/* The poster in the shop's own colours and logo (§4z19 decision 43): the share route's colours, set
   as --poster-* on the poster alone; the platform's where the shop has none. Printed as shown. */
.poster{--primary:var(--poster-primary,#14213D);--on-primary:var(--poster-on-primary,#fff);--accent:var(--poster-accent,#14213D);--surface:var(--poster-surface,#fff);--text:var(--poster-text,#111);--muted:var(--poster-muted,#6B7280);--line:var(--poster-line,#E2E8F0);color:var(--text);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.poster h2{color:var(--primary)}.poster-plans li{border-left:4px solid var(--primary)}
.poster-logo{display:block;max-width:220px;max-height:96px;margin:0 auto 14px;object-fit:contain}.poster.a5 .poster-logo{max-height:72px}
/* A confirmed payment's receipt, shared from staff's own phone (§4z19 decisions 27, 49). */
.receipt-list{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}.receipt-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--line)}.receipt-list li div{display:grid;gap:2px}.receipt-list small{color:var(--muted)}
@media print{.staff .topbar,.staff .sidebar,.staff .bottom-nav,.staff .page-head,.staff .footer,.staff .banner,.no-print{display:none!important}.staff .content{padding:0!important}body[data-paper=a4] .poster{page:posterA4;box-shadow:none;border:0;border-top:10px solid var(--primary);max-width:none;margin:0}body[data-paper=a5] .poster{page:posterA5;box-shadow:none;border:0;border-top:8px solid var(--primary);max-width:none;margin:0}}
@media(max-width:800px){.source-grid{grid-template-columns:repeat(3,1fr)}.plan-editor aside{position:static}}
@media(max-width:500px){.source-grid{grid-template-columns:repeat(2,1fr)}.setting-row{gap:12px}.setting-row h3{font-size:14px}.setting-row p{font-size:12px}.poster{padding:32px 20px 20px}.poster h2{font-size:27px}.poster .poster-lead{font-size:19px}.poster-qr{width:200px;height:200px}}

/* WhatsApp's own green on every button that goes to WhatsApp (28 Sep 2026). */
.button.whatsapp{background:#1A9E4B!important;border-color:#1A9E4B!important;color:#fff!important}

/* Inside the shop's site (28 Sep 2026): the site's header, menu and credits frame the page; the
   plan's own Passbook, History and The plans sit in a row above the content, on phones too. */
.scheme-site .workspace{display:block;max-width:1120px;min-height:0}
.scheme-site .content{padding:28px 32px 40px}
.scheme-site .site-nav{display:flex;flex-wrap:wrap;gap:8px;margin:-8px 0 22px}
.scheme-site .site-nav .nav-button{border:1px solid var(--line);flex:0 1 auto}
.scheme-app-strip{max-width:1120px;margin:16px auto 0;padding:14px 32px;display:none;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.scheme-app-strip p{font-size:14px}.scheme-app-strip p span{color:var(--muted)}
.scheme-app-strip__stores{display:flex;gap:8px;flex-wrap:wrap}
.scheme-app-strip__stores a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border-radius:9px;background:var(--primary);color:var(--on-primary);font-size:13px;font-weight:600;text-decoration:none}
body[data-screen=plans] .scheme-app-strip:not([hidden]),body[data-screen=signin] .scheme-app-strip:not([hidden]),body[data-screen=code] .scheme-app-strip:not([hidden]){display:flex}
@media(max-width:800px){.scheme-site .content{padding:22px 16px 110px}.scheme-app-strip{padding:12px 16px}.scheme-site .site-nav .nav-button{flex:1 1 0;justify-content:center}}
/* The site's header and menu keep the board's own look here (schemes.css's selected fill is for
   the scheme's controls): no underlines, and the current page marked as the board marks it. */
.scheme-site .client-header a,.scheme-site .tab-menu a{text-decoration:none}
.scheme-site .client-header .dashboard-nav a[aria-current=page]{background:none!important;color:var(--client-accent)!important;border-color:var(--client-accent)!important}
.scheme-site .client-header h1,.scheme-site .client-brand__name{font-size:inherit;letter-spacing:inherit;line-height:1.2}
/* The nominee shown masked; Show reveals the name and number (28 Sep 2026). */
.nominee .nominee__full{display:none}.nominee.is-shown .nominee__full{display:inline}.nominee.is-shown .nominee__masked{display:none}
.link-button{border:0;background:none;padding:0 0 0 6px;min-height:0;color:var(--accent);font:inherit;font-weight:650;text-decoration:underline;cursor:pointer}
.checks{display:grid;gap:4px}
/* A change of nominee: the three fields open only once "Change my nominee" is ticked (§4z19 step 3). */
.nominee-fields{display:none}.check:has(input[name=nominee]:checked)+.nominee-fields{display:block}
/* Delete my account, in three steps in the pop-up (Harshal, 28 Sep 2026). */
.steps{display:flex;gap:6px;list-style:none;margin:0 0 6px;padding:0;counter-reset:none}
.steps li{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:var(--muted);text-align:center}
.steps li span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid var(--line);font-weight:700;color:var(--muted);background:var(--surface)}
.steps li.current span{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.steps li.current{color:var(--text);font-weight:700}
.steps li.done span{background:var(--good);border-color:var(--good);color:#fff}
.step-count{text-align:center;font-size:12px;color:var(--muted);margin:0 0 16px}
.checklist{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:10px}
.checklist li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;padding:10px 12px;border:1px solid var(--line);border-radius:12px}
.checklist li>span:first-child{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:12px;font-weight:700;color:#fff}
.checklist li.ok>span:first-child{background:var(--good)}
.checklist li.no>span:first-child{background:var(--bad)}
.timeline-steps{margin:0 0 16px;padding:0 0 0 18px;display:grid;gap:10px;font-size:14px;line-height:1.45;color:var(--muted)}
.timeline-steps b{display:block;color:var(--text)}
.button[disabled]{opacity:.5;cursor:not-allowed}
/* Cash at the counter (29 Sep 2026): the lower cash limit, under the Owner's cash switch. */
.cash-cap{max-width:360px;margin-top:14px}.cash-cap .field{margin-bottom:0}.cash-cap .note{margin-top:8px}.cash-cap .actions{margin-top:10px}
