/*
 * Tabula's look (plan TB; mockups reji/ui/html/tb/, approved 7 November 2026), carried from reji/ui/html/tb/build-mockups.py so the pages match
 * what was approved. Its names are the mockups' (tb-*); the console's tokens (console.css) are what they read.
 */
.console { --tb-violet: #6d28d9; }
.console [style*='--pc'] { --pcd: color-mix(in srgb, var(--pc) 55%, #fff); }
[data-theme='dark'] .console { --tb-violet: #a78bfa; }
.tb-eb { font: 600 10.5px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.tb-req { color: var(--rose); }
.tb-box { padding: 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.tb-box h3 { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: var(--text-1); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-box p { margin: 0; font-size: 13px; color: var(--text-2); }
.tb-side { display: grid; gap: 16px; align-content: start; }
.tb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .tb-cols { grid-template-columns: minmax(0, 1fr); } }

/* a product as a ladder of offerings */
.tb-ladder { margin-bottom: 16px; padding: 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.tb-ladder .h { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.tb-ladder .h img { width: 40px; height: 40px; border-radius: 11px; }
.tb-ladder .h b { font-size: 16px; font-weight: 900; color: var(--text-1); }
.tb-ladder .h span { font-size: 12.5px; color: var(--text-2); }
.tb-ladder .h .end { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tb-switch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; font: 700 12px var(--font-sans); background: var(--surface-2); color: var(--text-2); }
.tb-switch i { flex: none; width: 30px; height: 18px; border-radius: 99px; position: relative; background: var(--border); }
.tb-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.tb-switch.on { color: var(--emerald); background: var(--emerald-dim); }
.tb-switch.on i { background: var(--emerald); }
.tb-switch.on i::after { left: 14px; }
/* A staircase (the mockup): equal columns, at least three, so one offering keeps a step's width; each step rises by 28px over the tallest content a lower one holds. */
.tb-rungs { display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 12px; align-items: end; }
.tb-rung { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 14px; color: inherit; text-decoration: none; min-height: 190px;
    background: linear-gradient(to top, color-mix(in srgb, var(--pc) 10%, transparent), transparent 70%), var(--surface-2); transition: transform .15s, box-shadow .15s; }
.tb-rung:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -18px rgba(0,0,0,.45); text-decoration: none; }
.tb-rung.l2 { min-height: 218px; } .tb-rung.l3 { min-height: 246px; }
@media (max-width: 760px) { .tb-rungs { grid-template-columns: minmax(0, 1fr); } .tb-rung, .tb-rung.l2, .tb-rung.l3 { min-height: 0; } }
.tb-rung.off { opacity: .6; }
.tb-rung .lv { display: flex; gap: 3px; margin-bottom: 4px; } .tb-rung .lv i { width: 14px; height: 4px; border-radius: 9px; background: var(--border); } .tb-rung .lv i.on { background: var(--pc); }
.tb-rung b { font-size: 14px; color: var(--text-1); }
.tb-rung .p { font-size: 20px; font-weight: 900; letter-spacing: -.03em; color: var(--text-1); font-variant-numeric: tabular-nums; }
.tb-rung .p small { font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.tb-rung .a { font-size: 12px; color: var(--text-2); }
.tb-rung .tag { align-self: flex-start; padding: 2px 8px; border-radius: 99px; font: 700 10.5px var(--font-sans); color: var(--text-2); background: var(--surface); }
.tb-rung .held { margin-top: auto; padding-top: 8px; display: grid; gap: 5px; font-size: 11.5px; color: var(--text-3); }
.tb-rung .held span { display: block; height: 5px; border-radius: 9px; background: var(--border); overflow: clip; } .tb-rung .held span i { display: block; height: 100%; background: var(--pc); }

/* organisations on their own terms, and agreed prices */
.tb-owns { display: grid; gap: 8px; }
.tb-own { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.tb-own b { display: block; font-size: 13.5px; color: var(--text-1); } .tb-own .s { font-size: 12px; color: var(--text-2); }
.tb-own .tag { padding: 3px 10px; border-radius: 99px; font: 700 11px var(--font-sans); white-space: nowrap; }
.tb-own .tag.charged { color: var(--emerald); background: var(--emerald-dim); }
.tb-own .tag.complimentary { color: var(--tb-violet); background: color-mix(in srgb, var(--tb-violet) 13%, transparent); }
.tb-own .tag.past { color: var(--text-3); background: var(--surface); }
@media (max-width: 620px) { .tb-own { grid-template-columns: auto minmax(0, 1fr); } .tb-own .tag, .tb-own .cn-btn { grid-column: 2; justify-self: start; } }

/* forms */
.tb-form { display: grid; gap: 18px; }
.tb-form .q > .tb-eb { display: block; margin-bottom: 8px; }
.tb-form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) { .tb-form .pair { grid-template-columns: minmax(0, 1fr); } }
.tb-help, .tb-box p.tb-help { margin-top: 7px; font-size: 12px; color: var(--text-3); }
.tb-err, .tb-box p.tb-err { margin-top: 6px; font-size: 12.5px; color: var(--rose); }
.tb-money { display: flex; align-items: stretch; border-radius: 12px; overflow: clip; box-shadow: 0 0 0 1px var(--border); background: var(--input-bg, var(--surface)); }
.tb-money:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.tb-money span { display: grid; place-items: center; padding: 0 12px; font: 700 13px var(--font-mono); color: var(--text-2); background: var(--surface-2); }
.tb-money input { flex: 1; min-width: 0; border: 0; padding: 11px 12px; font: 800 16px var(--font-sans); color: var(--text-1); background: transparent; font-variant-numeric: tabular-nums; outline: 0; }
.tb-money em { font-style: normal; display: grid; place-items: center; padding: 0 12px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.tb-toggles { display: grid; gap: 8px; }
.tb-toggle { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.tb-toggle > i { width: 18px; text-align: center; color: var(--text-3); }
.tb-toggle b { display: block; color: var(--text-1); font-size: 13px; }
.tb-toggle input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.tb-toggle .tb-switch { margin-left: auto; background: none; padding: 0; }
.tb-toggle .tb-money { margin-left: auto; width: 200px; }
.tb-toggle:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.tb-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tb-mode { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); text-align: start; color: inherit; font: inherit; cursor: pointer; }
.tb-mode input { position: absolute; opacity: 0; pointer-events: none; }
.tb-mode i.ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.tb-mode b { font-size: 13.5px; color: var(--text-1); } .tb-mode span { font-size: 12px; color: var(--text-2); }
.tb-mode.on { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent); }
.tb-mode:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb-mode .dflt { position: absolute; top: 12px; right: 12px; font: 700 9.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 760px) { .tb-modes { grid-template-columns: minmax(0, 1fr); } }
.tb-who { display: flex; gap: 12px; align-items: center; }

/* the plan card, as organisations will see it */
.tb-preview { padding: 18px; border-radius: 20px; background: repeating-linear-gradient(45deg, var(--surface-2) 0 10px, color-mix(in srgb, var(--surface-2) 55%, var(--bg)) 10px 20px); }
.tb-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px; border: 2px solid color-mix(in srgb, var(--pc) 70%, transparent); border-radius: 20px; background: var(--surface); }
.tb-step .lv { display: flex; gap: 4px; } .tb-step .lv i { width: 20px; height: 5px; border-radius: 9px; background: var(--pc); }
.tb-step h4 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.025em; color: var(--text-1); }
.tb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.tb-price b { font-size: 30px; font-weight: 900; letter-spacing: -.035em; color: var(--text-1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-price span { font-size: 13px; color: var(--text-2); }
.tb-tax { margin-top: -8px; font-size: 11.5px; color: var(--text-3); }
.tb-feat { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--text-1); }
.tb-feat li { display: flex; gap: 9px; align-items: flex-start; }
.tb-feat i { width: 16px; margin-top: 2px; text-align: center; color: color-mix(in srgb, var(--pc) 80%, var(--text-1)); }

/* against the list price */
.tb-vs { display: grid; gap: 14px; }
.tb-vs div { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.tb-vs .row { display: flex; justify-content: space-between; gap: 10px; }
.tb-vs b { color: var(--text-1); font-variant-numeric: tabular-nums; }
.tb-vs .bar { display: block; height: 14px; border-radius: 9px; background: var(--kc); }

/* when it takes effect */
.tb-when { display: grid; justify-items: center; gap: 6px; padding: 26px 20px 22px; border-radius: 22px; border: 1px solid var(--border); text-align: center;
    background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--pc) 10%, transparent), transparent 70%), var(--surface); }
.tb-when .pt { display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--text-2); max-width: 220px; }
.tb-when .pt > i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #fff; background: var(--c); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: 6px; }
.tb-when .pt b { color: var(--text-1); font-size: 13.5px; }
.tb-when .gap { position: relative; width: 3px; height: 40px; background: repeating-linear-gradient(180deg, var(--text-3) 0 6px, transparent 6px 12px); opacity: .7; }
.tb-when .gap span { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); padding: 3px 10px; border-radius: 99px; font: 700 11px var(--font-mono); color: var(--text-1); background: var(--surface-2); white-space: nowrap; opacity: 1; }

/* Nothing to work on yet: what's missing and the way to it, rather than an empty form. */
.tb-empty { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 8px auto 0; padding: 40px 28px; text-align: center; }
.tb-empty .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 22px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tb-empty h3 { margin: 6px 0 0; font-size: 18px; font-weight: 900; color: var(--text-1); }
.tb-empty p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

/* Switching billing on, and the money (TB5), from console.html */
.console .tb-rail { list-style:none; margin:0; padding:0; display:grid; }
.console .tb-rail li { position:relative; display:grid; grid-template-columns:30px minmax(0, 1fr); gap:12px; padding-bottom:18px; font-size:12.5px; color:var(--text-2); }
.console .tb-rail li:last-child { padding-bottom:0; }
.console .tb-rail li:not(:last-child)::before { content:''; position:absolute; left:14px; top:32px; bottom:2px; width:2px; background:var(--border); }
.console .tb-rail .d { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-size:12px; color:var(--text-3); background:var(--surface-2); box-shadow:0 0 0 1px var(--border); }
.console .tb-rail .ok .d { color:#fff; background:var(--emerald); box-shadow:none; } .console .tb-rail .now .d { color:#fff; background:var(--accent); box-shadow:0 0 0 5px var(--accent-dim); }
.console .tb-rail .no .d { color:#fff; background:var(--rose); box-shadow:none; } .console .tb-rail .no b { color:var(--rose); }
.console .tb-rail b { display:block; color:var(--text-1); font-size:13.5px; }
.console .tb-kpis { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; margin-bottom:20px; }
.console .tb-kpi { position:relative; overflow:clip; padding:18px; border-radius:18px; border:1px solid var(--border); background:var(--surface); }
.console .tb-kpi .ic { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; color:var(--c); background:color-mix(in srgb, var(--c) 13%, transparent); margin-bottom:12px; }
.console .tb-kpi b { display:block; font-size:24px; font-weight:900; letter-spacing:-.03em; color:var(--text-1); font-variant-numeric:tabular-nums; }
.console .tb-kpi span { font-size:12.5px; color:var(--text-2); }
.console .tb-kpi svg { position:absolute; right:14px; top:18px; width:96px; height:36px; } .console .tb-kpi svg path { fill:none; stroke:var(--c); stroke-width:2; stroke-linejoin:round; }
.console .tb-kpi svg path.a { fill:color-mix(in srgb, var(--c) 13%, transparent); stroke:none; }
@media (max-width:1100px) { .console .tb-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:520px) { .console .tb-kpis { grid-template-columns:minmax(0, 1fr); } }
.console .tb-launch { position:relative; display:grid; grid-template-columns:auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items:center; gap:12px; padding:30px 24px 24px; margin-bottom:20px;
  border-radius:22px; border:1px solid var(--border); background:radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--pc) 10%, transparent), transparent 70%), var(--surface); }
.console .tb-launch .pt { display:grid; justify-items:center; gap:4px; text-align:center; font-size:12px; color:var(--text-2); max-width:160px; }
.console .tb-launch .pt > i { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; font-size:17px; color:#fff; background:var(--c); box-shadow:0 0 0 7px color-mix(in srgb, var(--c) 15%, transparent); margin-bottom:6px; }
.console .tb-launch .pt b { color:var(--text-1); font-size:13.5px; }
.console .tb-launch .gap { position:relative; height:3px; border-radius:9px; background:repeating-linear-gradient(90deg, var(--text-3) 0 6px, transparent 6px 12px); opacity:.6; }
.console .tb-launch .gap span { position:absolute; left:50%; top:-30px; transform:translateX(-50%); padding:4px 11px; border-radius:99px; font:700 11px var(--font-mono); color:var(--text-1); background:var(--surface-2); white-space:nowrap; opacity:1; }
@media (max-width:760px) { .console .tb-launch { grid-template-columns:minmax(0, 1fr); justify-items:center; } .console .tb-launch .gap { width:3px; height:40px; background:repeating-linear-gradient(180deg, var(--text-3) 0 6px, transparent 6px 12px); }
.console .tb-launch .gap span { top:50%; left:14px; transform:translateY(-50%); } }
.console .tb-mail { border-radius:18px; overflow:clip; border:1px solid var(--border); background:var(--surface); box-shadow:0 30px 50px -36px rgba(0,0,0,.5); }
.console .tb-mail .bar { display:flex; gap:6px; padding:10px 14px; background:var(--surface-2); } .console .tb-mail .bar i { width:9px; height:9px; border-radius:50%; background:var(--border); }
.console .tb-mail .env { padding:12px 16px; border-bottom:1px solid var(--border); font-size:12px; color:var(--text-2); line-height:1.7; } .console .tb-mail .env b { color:var(--text-1); }
.console .tb-mail .hero { height:70px; background:linear-gradient(135deg, var(--pc), var(--pcd)); display:flex; align-items:center; gap:10px; padding:0 18px; color:#fff; font-weight:900; }
.console .tb-mail .hero img { width:34px; height:34px; border-radius:10px; box-shadow:0 0 0 3px rgba(255,255,255,.2); }
.console .tb-mail .msg { padding:18px 18px 20px; font-size:13px; color:var(--text-2); line-height:1.6; }
.console .tb-mail .msg h4 { margin:0 0 8px; font-size:17px; font-weight:900; color:var(--text-1); letter-spacing:-.02em; }
.console .tb-mail .msg .hl { margin:12px 0; padding:12px 14px; border-radius:12px; background:color-mix(in srgb, var(--pc) 10%, transparent); color:var(--text-1); }
.console .tb-launch-btns { display:flex; justify-content:flex-end; align-items:center; gap:12px; flex-wrap:wrap; margin-top:18px; }
.console .tb-launch-btns .why { margin-right:auto; font-size:12.5px; color:var(--rose); }
.console .tb-launch-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .console .tb-launch-cols { grid-template-columns: minmax(0, 1fr); } }
.console .tb-kpis { margin-top: 4px; }
@media (max-width: 980px) { .console .tb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .console .tb-kpis { grid-template-columns: minmax(0, 1fr); } }
.console .tb-switch.soon { color: var(--amber); }
.console .tb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin-top: 12px; }
.console .tb-check input { margin-top: 3px; }

/* Money back (plan TB §7, TB7; mockup tb/moneyback.html, approved): each refund on its way home as a track, the period as the days used and the
   days coming back, a refund's drawer. */
.dr.mb-wide { width: min(600px, 100%); }
.mb-gh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 26px 0 10px; scroll-margin-top: 80px; }
.mb-gh h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text-1); }
.mb-gh small { font: 600 11px var(--font-mono); color: var(--text-3); }
.mb-gh .end { margin-inline-start: auto; font-size: 12.5px; color: var(--text-3); }
.mb-list { display: grid; gap: 10px; }
.mb-empty { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--border); font-size: 13px; color: var(--text-2); }
.mb-empty i { color: var(--emerald); }
.mb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 1.2fr) auto; gap: 18px; align-items: center; width: 100%; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--surface); text-align: start; font: inherit; color: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.mb-row:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .5); }
.mb-row.stop { border-color: color-mix(in srgb, var(--rose) 40%, var(--border)); }
.mb-row .who, .mb-paid .who { min-width: 0; }
.mb-row .who b, .mb-paid .who b { display: block; font-size: 14px; color: var(--text-1); }
.mb-row .who > span, .mb-paid .who > span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.mb-row .who .amt { display: inline-block; margin-top: 6px; font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--text-1); font-variant-numeric: tabular-nums; }
.mb-row .acts, .mb-ask .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mb-track { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.mb-track::before, .mb-track .fill { content: ''; position: absolute; inset-inline: calc(50% / var(--n, 3)); top: 10px; height: 2px; border-radius: 2px; background: var(--border); }
.mb-track .fill { inset-inline-end: auto; width: calc((100% - 100% / var(--n, 3)) * var(--p, 0)); background: var(--emerald); }
.mb-track li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11px; line-height: 1.3; color: var(--text-3); }
.mb-track .d { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; color: var(--text-3); background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); }
.mb-track .ok .d { color: #fff; background: var(--emerald); box-shadow: none; }
.mb-track .now .d { color: var(--on-accent, #fff); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim); animation: mb-pulse 1.8s ease-in-out infinite; }
.mb-track .wait .d { color: #fff; background: var(--amber); box-shadow: none; }
.mb-track .no .d { color: #fff; background: var(--rose); box-shadow: 0 0 0 5px var(--rose-dim); }
.mb-track .ok, .mb-track .now, .mb-track .wait { color: var(--text-2); }
.mb-track .no { color: var(--rose); font-weight: 700; }
.mb-track small { display: block; font: 600 10px var(--font-mono); color: var(--text-3); }
@keyframes mb-pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .mb-track .now .d { animation: none; } }
.mb-ask { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--amber) 55%, var(--border)); background: var(--surface); }
.mb-ask.solid { border-style: solid; border-color: var(--border); }
.mb-ask b { display: block; font-size: 14px; color: var(--text-1); }
.mb-ask > div > span { font-size: 12.5px; color: var(--text-2); }
.mb-paid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  border-inline-start: 4px solid var(--pc, var(--accent)); }
.mb-paid .mono { font: 600 11px var(--font-mono); color: var(--text-3); }
.mb-paid .amt { display: grid; justify-items: end; gap: 2px; } .mb-paid .amt b { font-size: 16px; font-weight: 900; color: var(--text-1); font-variant-numeric: tabular-nums; }
.mb-paid .amt span { font-size: 11.5px; color: var(--amber); }
.mb-done { font-size: 12px; color: var(--text-3); }
.mb-find { position: relative; margin-inline-start: auto; width: min(340px, 100%); }
.mb-find i { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 12px; }
.mb-find input { padding-inline-start: 32px; }
.mb-period { padding: 16px; border-radius: 16px; background: var(--surface-2); }
.mb-period .lbl { display: flex; justify-content: space-between; font: 600 11px var(--font-mono); color: var(--text-3); margin-bottom: 8px; }
.mb-pbar { display: flex; height: 40px; border-radius: 12px; overflow: clip; gap: 3px; }
.mb-pbar i { display: flex; align-items: center; padding: 0 12px; font: 700 12px var(--font-sans); font-style: normal; white-space: nowrap; overflow: clip; min-width: 0; }
.mb-pbar .used { background: color-mix(in srgb, var(--pc) 28%, var(--surface)); color: var(--text-1); }
.mb-pbar .back { justify-content: flex-end; color: #fff; background: repeating-linear-gradient(135deg, var(--emerald) 0 7px, color-mix(in srgb, var(--emerald) 78%, #000) 7px 14px); }
.mb-period .out { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.mb-period .out b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--emerald); font-variant-numeric: tabular-nums; }
.mb-period .out span { font-size: 12.5px; color: var(--text-2); }
.dr .tb-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dr .tb-mode { padding: 12px; } .dr .tb-mode span { font-size: 11.5px; }
.tb-mode.off { opacity: .45; cursor: not-allowed; }
.mb-q > .tb-eb { display: block; margin-bottom: 8px; }
.mb-hint { margin: 7px 0 0; font-size: 12px; color: var(--text-3); } .mb-hint i { margin-inline-end: 5px; }
.mb-lines { display: grid; font-size: 12.5px; }
.mb-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.mb-lines > div b { font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-lines > .t { border: 0; padding-top: 9px; } .mb-lines > .t span, .mb-lines > .t b { font-weight: 800; color: var(--text-1); }
.mb-payout { display: grid; gap: 14px; }
.dr-note.a { background: var(--amber-dim); } .dr-note.a i { color: var(--amber); }
@media (max-width: 900px) {
  .mb-row { grid-template-columns: auto minmax(0, 1fr); } .mb-row .mb-track, .mb-row .acts { grid-column: 1 / -1; } .mb-row .acts { justify-content: flex-start; }
  .mb-ask { grid-template-columns: auto minmax(0, 1fr); } .mb-ask .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .mb-paid { grid-template-columns: auto minmax(0, 1fr); } .mb-paid .amt { justify-items: start; } .mb-paid .amt, .mb-paid > .cn-btn, .mb-paid > .mb-done { grid-column: 2; justify-self: start; }
}
@media (max-width: 520px) { .dr .tb-modes { grid-template-columns: minmax(0, 1fr); } .mb-track li { font-size: 10px; } .mb-find { width: 100%; margin-inline-start: 0; } }

/* Chargebacks (plan TB §7, TB9; mockup tb/moneyback.html, states "A chargeback to answer" and "A chargeback lost"): the clock, the drawer. */
.mb-clock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 20px; cursor: pointer; text-align: start;
  border: 1px solid color-mix(in srgb, var(--rose) 38%, var(--border)); background: linear-gradient(110deg, color-mix(in srgb, var(--rose) 9%, var(--surface)), var(--surface) 60%); }
.mb-clock h3 { margin: 0 0 4px; font-size: 16px; font-weight: 900; letter-spacing: -.02em; color: var(--text-1); }
.mb-clock p { margin: 0; font-size: 13px; color: var(--text-2); }
.mb-clock .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mb-ring { position: relative; flex: none; display: grid; place-items: center; }
.mb-ring svg { transform: rotate(-90deg); } .mb-ring circle { fill: none; stroke-width: 6; }
.mb-ring .bg { stroke: color-mix(in srgb, var(--c) 18%, transparent); } .mb-ring .fg { stroke: var(--c); stroke-linecap: round; }
.mb-ring b { position: absolute; text-align: center; font-size: 19px; font-weight: 900; line-height: 1; color: var(--text-1); }
.mb-ring b small { display: block; font: 600 8.5px var(--font-mono); letter-spacing: .05em; color: var(--text-3); margin-top: 3px; text-transform: uppercase; }
.mb-dhero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.mb-dhero h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; letter-spacing: -.02em; color: var(--text-1); }
.mb-dhero p { margin: 0; font-size: 12.5px; color: var(--text-2); }
.mb-ev { display: grid; gap: 8px; }
.mb-ev > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); }
.mb-ev .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: var(--accent-dim); font-size: 13px; }
.mb-ev b { display: block; font-size: 13px; color: var(--text-1); } .mb-ev span:not(.ic) { font-size: 12px; color: var(--text-2); }
.mb-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mb-two > div { padding: 12px 13px; border-radius: 12px; font-size: 12px; color: var(--text-2); line-height: 1.5; border: 1px solid var(--border); }
.mb-two b { display: block; font-size: 13px; color: var(--text-1); margin-bottom: 3px; }
.mb-two .a { border-color: color-mix(in srgb, var(--rose) 35%, var(--border)); } .mb-two .d { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.mb-verdict { position: relative; overflow: clip; padding: 20px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--rose) 82%, #000), color-mix(in srgb, var(--rose) 50%, #000)); }
.mb-verdict.won { background: linear-gradient(135deg, color-mix(in srgb, var(--emerald) 82%, #000), color-mix(in srgb, var(--emerald) 50%, #000)); }
.mb-verdict .tb-eb { color: rgba(255, 255, 255, .75); }
.mb-verdict h3 { margin: 4px 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; } .mb-verdict p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .88); }
.mb-rail { list-style: none; margin: 0; padding: 0; display: grid; }
.mb-rail li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; font-size: 12.5px; color: var(--text-2); }
.mb-rail li:last-child { padding-bottom: 0; }
.mb-rail li:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--border); }
.mb-rail .d { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--emerald); }
.mb-rail b { display: block; color: var(--text-1); font-size: 13.5px; }
.mb-said { margin: 0; font-size: 13px; color: var(--text-2); white-space: pre-line; }
.mb-past { width: 100%; font: inherit; color: inherit; text-align: start; cursor: pointer; }
@media (max-width: 900px) { .mb-clock { grid-template-columns: auto minmax(0, 1fr); } .mb-clock > .cn-btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 520px) { .mb-two { grid-template-columns: minmax(0, 1fr); } }

/* Withholding certificates (plan TB §8, TB10; mockup tb/withholding.html). */
.wh-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; width: 100%; padding: 14px 18px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface); font: inherit; color: inherit; text-align: start; cursor: pointer; }
.wh-row .who b { display: block; font-size: 14px; color: var(--text-1); } .wh-row .who > span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.wh-row .amt { font-size: 16px; font-weight: 900; color: var(--text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wh-row.due { border-color: color-mix(in srgb, var(--rose) 40%, var(--border)); }
.wh-doc { position: relative; aspect-ratio: 1.4; border-radius: 12px; border: 1px solid var(--border); overflow: clip; display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(0deg, var(--surface-2) 0 14px, var(--surface) 14px 15px); }
.wh-doc b { font: 700 13px var(--font-mono); color: var(--text-2); }
.wh-doc .seal { position: absolute; inset-inline-end: 14px; bottom: 12px; width: 54px; height: 54px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.wh-match { display: grid; gap: 6px; }
.wh-match > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); padding: 7px 10px; border-radius: 10px; background: var(--surface-2); }
.wh-match i { color: var(--emerald); } .wh-match b { color: var(--text-1); font-variant-numeric: tabular-nums; text-align: end; }
@media (max-width: 760px) { .wh-row { grid-template-columns: auto minmax(0, 1fr); } .wh-row .amt, .wh-row .hd-chip { grid-column: 2; justify-self: start; } }

/* The money as a bar, the withheld part hatched (as at id, billing-id.css): a withholding certificate's drawer. */
.console .tb-bar { display: flex; height: 16px; border-radius: 9px; overflow: clip; gap: 2px; }
.console .tb-bar i { display: block; height: 100%; background: var(--kc); }
.console .tb-bar i.hatch { background: repeating-linear-gradient(135deg, var(--kc) 0 5px, color-mix(in srgb, var(--kc) 35%, transparent) 5px 10px); }
.console .tb-barkey { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.console .tb-barkey span { display: inline-flex; align-items: center; gap: 7px; }
.console .tb-barkey span::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--kc); }
.console .tb-barkey b { color: var(--text-1); }
