/* Kontribute themes — tokens only. The default is ledger; market and signal are selectable. */
:root, [data-theme="ledger"]{
  --bg:#F8F6F1; --paper:#FFFFFF; --ink:#111827; --mute:#5B6472; --line:#E5E1D8; --soft:#F1EEE6;
  --brand:#1B2A4A; --brand-2:#2B3F6B; --on-brand:#FFFFFF; --accent:#F2A91B; --on-accent:#1B2A4A; --ok:#1E7F5C; --warn:#B45309; --bad:#B42318;
  --font-h:"Inter Display","Inter",system-ui,sans-serif; --font-b:"Inter",system-ui,sans-serif; --r:12px; --r-lg:18px; --r-pill:999px;
}
[data-theme="market"]{
  --bg:#FBF4EA; --paper:#FFFDF9; --ink:#2B1D14; --mute:#6E5B4E; --line:#EADFCF; --soft:#F5EBDD;
  --brand:#C2491D; --brand-2:#A33A14; --on-brand:#FFFFFF; --accent:#1F6F78; --on-accent:#FFFFFF; --ok:#2E7D5B;
  --font-h:"Lora",Georgia,serif; --r:14px; --r-lg:24px;
}
[data-theme="signal"]{
  --bg:#F3F5F9; --paper:#FFFFFF; --ink:#0B1020; --mute:#5A6275; --line:#E2E6EE; --soft:#EBEFF6;
  --brand:#1D4ED8; --brand-2:#1E40AF; --on-brand:#FFFFFF; --accent:#FF6B4A; --on-accent:#FFFFFF; --ok:#15803D;
  --r:12px; --r-lg:20px;
}

/* Row actions in the admin: one icon each, the words on hover (Jones 11 Nov 2026) */
.ra{display:inline-flex;gap:6px;vertical-align:middle}
.ra-b{position:relative;width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid var(--line,#E2DCCD);border-radius:8px;background:var(--card,#fff);color:#1B2A4A;text-decoration:none}
.ra-b svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ra-b:hover,.ra-b:focus-visible{border-color:#F2A91B;background:#FFF8E8;color:#8A5A00;outline:0}
.ra-b.ra-main{background:#1B2A4A;border-color:#1B2A4A;color:#fff}.ra-b.ra-main:hover,.ra-b.ra-main:focus-visible{background:#F2A91B;border-color:#F2A91B;color:#1B2A4A}
.ra-b::after{content:attr(data-tip);position:absolute;right:0;bottom:calc(100% + 7px);background:#141C2E;color:#fff;font:600 12px/1.3 Inter,system-ui,sans-serif;padding:6px 9px;border-radius:7px;white-space:nowrap;opacity:0;pointer-events:none;transform:translateY(3px);transition:opacity .12s,transform .12s;z-index:30}
.ra-b:hover::after,.ra-b:focus-visible::after{opacity:1;transform:none}
