/* OML Send. Colours, type and shapes from the approved prototype (docs/prototype.html, version 4: blue).
   Light and dark follow the device. No inline styles anywhere: the Content-Security-Policy allows only this
   file, so widths and heights that depend on data use the w-N / h-N classes at the end. Fonts are local
   (static/fonts, SIL Open Font License: static/fonts/OFL.txt). */
@font-face{font-family:'Lexend';font-style:normal;font-weight:500 700;font-display:swap;
  src:url('/static/fonts/lexend-latin-wght.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lexend';font-style:normal;font-weight:500 700;font-display:swap;
  src:url('/static/fonts/lexend-latin-ext-wght.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 700;font-display:swap;
  src:url('/static/fonts/figtree-latin-wght.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 700;font-display:swap;
  src:url('/static/fonts/figtree-latin-ext-wght.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url('/static/fonts/ibm-plex-mono-latin-400.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;
  src:url('/static/fonts/ibm-plex-mono-latin-500.woff2') format('woff2')}

:root{
  --bg:#F3F5FA; --surface:#FFFFFF; --surface2:#F7F9FC; --ink:#18213A; --muted:#5B6782; --line:#DDE3EE;
  --brand:#2456D3; --brand-ink:#FFFFFF; --brand-soft:#E8EEFD; --brand-deep:#163C9C;
  --sun:#F4A62A; --sun-soft:#FEF3DF;
  --ok:#12804E; --ok-soft:#E2F4EA; --warn:#9C5800; --warn-soft:#FDF0DA; --bad:#C1352B; --bad-soft:#FCE6E3; --on-bad:#FFFFFF;
  --read:#1A93DC; --chat:#EAE3DA; --bubble:#D9FAD0; --bubble-ink:#16202A; --code:#EEF1F7;
  --shadow:0 1px 2px rgba(24,33,58,.06),0 6px 20px rgba(24,33,58,.06);
  --f-display:'Lexend','Segoe UI',system-ui,sans-serif;
  --f-body:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-mono:'IBM Plex Mono',ui-monospace,'Cascadia Mono',Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0E1320; --surface:#161D2D; --surface2:#1B2336; --ink:#E7EBF4; --muted:#9BA7BF; --line:#2A3449;
  --brand:#7299FF; --brand-ink:#0A1431; --brand-soft:#1D2A4E; --brand-deep:#B4C7FF;
  --sun:#F6B649; --sun-soft:#3A2C12;
  --ok:#4FCB8A; --ok-soft:#163224; --warn:#F0B454; --warn-soft:#3A2D14; --bad:#F27B6F; --bad-soft:#3F201C; --on-bad:#FFFFFF;
  --read:#53BDF5; --chat:#0B141A; --bubble:#005C4B; --bubble-ink:#E9EDEF; --code:#222B3F;
  --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.25); color-scheme:dark } }
:root[data-theme="dark"]{
  --bg:#0E1320; --surface:#161D2D; --surface2:#1B2336; --ink:#E7EBF4; --muted:#9BA7BF; --line:#2A3449;
  --brand:#7299FF; --brand-ink:#0A1431; --brand-soft:#1D2A4E; --brand-deep:#B4C7FF;
  --sun:#F6B649; --sun-soft:#3A2C12;
  --ok:#4FCB8A; --ok-soft:#163224; --warn:#F0B454; --warn-soft:#3A2D14; --bad:#F27B6F; --bad-soft:#3F201C; --on-bad:#FFFFFF;
  --read:#53BDF5; --chat:#0B141A; --bubble:#005C4B; --bubble-ink:#E9EDEF; --code:#222B3F;
  --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.25); color-scheme:dark }

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.5;
  min-height:100vh;display:flex;flex-direction:column}
.wrap{width:100%;max-width:1040px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));
  padding-right:max(16px,env(safe-area-inset-right,0px))}
.wide .wrap{max-width:1180px}
h1,h2,h3{font-family:var(--f-display);text-wrap:balance;margin:0;line-height:1.2;letter-spacing:-.01em}
h1{font-size:1.9rem;font-weight:600}
h2{font-size:1.45rem;font-weight:600}
h3{font-size:1.05rem;font-weight:600}
p{margin:0}
a{color:var(--brand)}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:6px}
h2[tabindex="-1"]:focus,h2[tabindex="-1"]:focus-visible{outline:none}
[hidden]{display:none!important}
.small{font-size:.86rem}
.muted{color:var(--muted)}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip{position:absolute;left:-9999px;top:8px;background:var(--surface);padding:8px 12px;border-radius:8px;z-index:20}
.skip:focus{left:8px}
.js .nojs-only{display:none!important}

/* the top bar */
.top{background:var(--surface);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-block:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.logo{width:34px;height:34px;border-radius:10px;background:var(--brand);color:var(--brand-ink);display:grid;place-items:center;
  font-family:var(--f-display);font-weight:700;font-size:.95rem;flex:none}
.brand-name{font-family:var(--f-display);font-size:1.3rem;font-weight:700}
.spacer{flex:1}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.nav a{text-decoration:none;color:var(--ink);font-weight:600;padding:4px 2px;border-bottom:2px solid transparent}
.nav a[aria-current="page"]{border-bottom-color:var(--brand);color:var(--brand)}
.menu-toggle{display:none}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:4px 11px;
  font-size:.84rem;background:var(--surface2);white-space:nowrap;color:var(--ink);text-decoration:none}
.chip .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none}
.chip .dot.off,.chip.off .dot{background:var(--warn)}
.switcher{display:flex;gap:6px;align-items:center}
.switcher select{max-width:220px}
@media (max-width:760px){
  .js .menu-toggle{display:inline-flex}
  .js .nav{display:none;flex-basis:100%;flex-direction:column;align-items:flex-start}
  .js .nav.open{display:flex}
}

.banner{padding:10px 0;font-size:.92rem}
.banner-warn{background:var(--warn-soft);color:var(--warn)}
.banner-bad{background:var(--bad-soft);color:var(--bad)}

main{flex:1}
main>.wrap{display:flex;flex-direction:column;gap:24px;padding-block:24px 56px}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px;
  border-bottom:1px solid var(--line);padding-bottom:12px}
.page-head .lead{color:var(--muted);max-width:72ch;margin-top:6px}
.narrow{max-width:560px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:clamp(16px,2.4vw,24px);box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:12px;min-width:0}
.panel>h2,.panel>h3{margin-bottom:2px}
.stack{display:flex;flex-direction:column;gap:10px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.row.between{justify-content:space-between}
.row.end{align-items:flex-end}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:860px){.grid2,.grid3{grid-template-columns:minmax(0,1fr)}}

/* forms */
.form{display:flex;flex-direction:column;gap:12px}
label{display:flex;flex-direction:column;gap:5px;font-size:.86rem;color:var(--muted);font-weight:600}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=tel],
input[type=time],input[type=datetime-local],select,textarea{
  font:inherit;font-size:1rem;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:10px;
  padding:9px 12px;min-width:0;width:100%}
input:focus,select:focus,textarea:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 4px var(--brand-soft)}
input[type=checkbox],input[type=radio]{accent-color:var(--brand);width:18px;height:18px;flex:none;margin:0}
textarea{min-height:140px;resize:vertical;line-height:1.55}
.input-bad{border-color:var(--bad)!important}
.input-hint{font-size:.8rem}
.input-hint.bad{color:var(--bad)}
label.choice,label.opt{flex-direction:row;align-items:flex-start;gap:10px;color:var(--ink);font-weight:500;font-size:.94rem}
label.choice input,label.opt input{margin-top:3px}
label.inline-check{flex-direction:row;align-items:center;gap:8px;color:var(--ink);font-weight:500}
fieldset{border:1px solid var(--line);border-radius:12px;padding:10px 14px;display:flex;flex-direction:column;gap:8px;margin:0}
legend{font-weight:600;padding:0 6px}
.inline{display:inline-flex;gap:6px;align-items:center;margin:0}
.small-input{width:110px!important}

.btn{font:inherit;font-size:.95rem;font-weight:600;border-radius:10px;padding:9px 16px;border:1.5px solid var(--line);
  background:var(--surface);color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  white-space:nowrap;text-decoration:none;line-height:1.3}
.btn:hover{border-color:var(--brand);color:var(--brand)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.btn-primary:hover{background:var(--brand-deep);border-color:var(--brand-deep);color:var(--brand-ink)}
.btn-ghost{border-color:transparent;background:transparent}
.btn-small{padding:6px 12px;font-size:.86rem;border-radius:8px}
.btn-danger{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 40%,var(--line))}
.btn-danger:hover{color:var(--bad);border-color:var(--bad)}
.btn-danger.solid{background:var(--bad);color:var(--on-bad);border-color:var(--bad)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
a.btn[aria-disabled="true"]{pointer-events:none}
.btn:disabled:hover{border-color:var(--line);color:inherit}
.btn-primary:disabled:hover,.btn-primary[aria-disabled="true"]:hover{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.btn-big{padding:12px 22px;font-size:1.02rem}
.linkish{background:none;border:none;color:var(--brand);font:inherit;cursor:pointer;padding:4px 2px;font-weight:600}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:.8rem;font-weight:600;
  white-space:nowrap;background:var(--code);color:var(--muted)}
.pill-ok{background:var(--ok-soft);color:var(--ok)} .pill-warn{background:var(--warn-soft);color:var(--warn)}
.pill-bad{background:var(--bad-soft);color:var(--bad)} .pill-idle{background:var(--code);color:var(--muted)}
.pill-info{background:var(--brand-soft);color:var(--brand)}

.alert{border-radius:12px;padding:12px 14px;border:1.5px solid var(--line);background:var(--surface)}
.alert-ok{border-color:var(--ok);background:var(--ok-soft)}
.alert-info{border-color:var(--brand);background:var(--brand-soft)}
.alert-warn{border-color:var(--warn);background:var(--warn-soft)}
.alert-error{border-color:var(--bad);background:var(--bad-soft);color:var(--ink)}

/* the ban-risk notice and other things a person must read before going on */
.notice{border:2px solid var(--sun);background:var(--sun-soft);border-radius:14px;padding:14px 16px;
  display:flex;flex-direction:column;gap:10px}
.notice p{font-size:.94rem}
.danger-zone{border:2px solid var(--bad);background:var(--bad-soft);border-radius:14px;padding:14px 16px;
  display:flex;flex-direction:column;gap:10px}

/* numbers */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:760px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.stat .v{font-family:var(--f-display);font-size:1.8rem;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1;overflow-wrap:anywhere}
.stat .k{font-size:.82rem;color:var(--muted);font-weight:600}
.stat.warn .v{color:var(--warn)}

/* tables scroll inside their own frame */
.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
table{border-collapse:collapse;width:100%;font-size:.9rem}
th{text-align:left;font-weight:700;color:var(--muted);font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;
  padding:10px;border-bottom:1px solid var(--line);background:var(--surface2);white-space:nowrap}
td{padding:7px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:none}
.num-col{text-align:right;font-variant-numeric:tabular-nums}
.empty-row td{color:var(--muted);text-align:center;padding:16px}
.admin-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.matrix td{text-align:center}
.matrix td:first-child{text-align:left}

/* the shop */
.pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.pack-card{border:1.5px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px;background:var(--surface)}
.pack-card.pack-test{border-style:dashed}
.pack-name{font-family:var(--f-display);font-weight:600;font-size:1.08rem}
.pack-price{font-family:var(--f-display);font-weight:700;font-size:1.5rem}
.price-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.order-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin:0}
.order-facts div{background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.order-facts dt{font-size:.75rem;color:var(--muted)} .order-facts dd{margin:0;font-weight:600}
.qr-box{display:flex;justify-content:center;padding:12px;background:#fff;border-radius:14px;max-width:300px}
.qr-box img{width:264px;height:264px;image-rendering:pixelated}
.pay-timer{font-family:var(--f-display);font-size:1.4rem;font-weight:700}
.plain-list{margin:0;padding-left:18px}

/* the public pages */
.hero{display:flex;flex-direction:column;gap:14px;padding-block:24px 8px;max-width:760px}
.hero h1{font-size:2.5rem;font-weight:700}
.hero .lead{font-size:1.1rem;color:var(--muted)}
.feature b{display:block;font-family:var(--f-display);font-size:1.1rem;font-weight:600;margin-bottom:4px}
.prose{display:flex;flex-direction:column;gap:12px;max-width:760px}
.prose h2{margin-top:12px}
.prose ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.quote{border-left:3px solid var(--brand);padding-left:12px;color:var(--ink)}

footer{border-top:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:.86rem}
footer .wrap{padding-block:18px 28px;display:flex;flex-direction:column;gap:6px}
footer a{color:var(--muted)}

/* ===================== the campaign wizard (docs/prototype.html) ===================== */
.wiz{display:flex;flex-direction:column;gap:12px}
main>.wrap.wiz-wrap{gap:12px;padding-bottom:0}
.stepper{list-style:none;margin:0;padding:10px 0 6px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.stepper li{position:relative}
.stepper li:not(:last-child)::after{content:"";position:absolute;top:19px;left:calc(50% + 24px);right:calc(-50% + 24px);height:2px;background:var(--line);border-radius:2px}
.stepper li.done:not(:last-child)::after{background:var(--brand)}
.stepper a,.stepper span.st{box-sizing:border-box;width:100%;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;
  padding:0 2px;text-decoration:none;color:inherit}
.stepper span.st{cursor:default}
.stepper .dotn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-family:var(--f-display);
  border:2px solid var(--line);background:var(--surface);color:var(--muted);transition:all .2s}
.stepper li.done .dotn{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.stepper li.current .dotn{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 5px var(--brand-soft)}
.stepper .lbl{font-size:.84rem;font-weight:600;color:var(--muted)}
.stepper li.current .lbl,.stepper li.done .lbl{color:var(--ink)}
.stepper a:focus-visible .dotn{outline:3px solid var(--brand);outline-offset:2px}
.mprog{display:none}
@media (max-width:680px){
  .stepper .lbl{display:none}
  .stepper .dotn{width:30px;height:30px;font-size:.85rem}
  .stepper li:not(:last-child)::after{top:15px;left:calc(50% + 19px);right:calc(-50% + 19px)}
  .mprog{display:block;font-size:.9rem;color:var(--muted);text-align:center;padding-bottom:4px}
  .mprog b{color:var(--ink)}
}
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:clamp(18px,3vw,32px);
  display:flex;flex-direction:column;gap:20px;min-width:0}
.card-head{display:flex;flex-direction:column;gap:6px}
.card-head .eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.card-head p{color:var(--muted);max-width:68ch}
.box{border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--surface2);display:flex;flex-direction:column;gap:12px;min-width:0}
.split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;align-items:start}
@media (max-width:860px){.split{grid-template-columns:minmax(0,1fr)}}
.f-grow{flex:1 1 180px}
.f-mid{flex:1 1 120px}
.f-max{max-width:480px}
.f-max-s{max-width:360px}

/* big choices (step 2) */
.bigchoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:640px){.bigchoices{grid-template-columns:minmax(0,1fr)}}
.bigchoice{position:relative;display:flex;flex-direction:column;gap:10px;padding:20px;border:2px solid var(--line);border-radius:16px;
  background:var(--surface);cursor:pointer;transition:border-color .15s,background .15s;color:var(--ink);font-weight:400;font-size:1rem}
.bigchoice:hover{border-color:color-mix(in srgb,var(--brand) 50%,var(--line))}
.bigchoice input{position:absolute;top:18px;right:18px}
.bigchoice:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.bigchoice .ico{width:52px;height:52px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.bigchoice:has(input:checked) .ico{background:var(--brand);color:var(--brand-ink)}
.bigchoice b{font-family:var(--f-display);font-size:1.12rem;font-weight:600}
.bigchoice span{color:var(--muted);font-size:.93rem}
.bigchoice .ex{font-size:.82rem;color:var(--muted);border-top:1px dashed var(--line);padding-top:8px}
.bigchoices:has(input[value="one2many"]:checked)~.health-hint{display:none}

/* segmented buttons (links or buttons) */
.seg{display:inline-flex;background:var(--code);border-radius:12px;padding:4px;gap:4px;flex-wrap:wrap;align-self:flex-start}
.seg a,.seg button{font:inherit;font-weight:600;font-size:.92rem;border:none;background:transparent;color:var(--muted);padding:8px 16px;
  border-radius:9px;cursor:pointer;text-decoration:none}
.seg [aria-current="true"],.seg [aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* file controls: the <input type=file> is INSIDE its <label> and covers it, so a click or a drop lands on the real
   input (no script needed); the script only shows the name, size and the result line. */
.filebtn{position:relative;overflow:hidden}
.filebtn input[type=file],.drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
.filebtn:focus-within,.drop:focus-within{outline:3px solid var(--brand);outline-offset:2px}
.drop{border:2px dashed color-mix(in srgb,var(--brand) 45%,var(--line));border-radius:14px;padding:22px;text-align:center;
  background:var(--surface);display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;position:relative;color:var(--ink);font-weight:400;font-size:1rem}
.drop.over{background:var(--brand-soft);border-color:var(--brand)}
.drop .big{font-weight:700}
.drop .muted{position:relative}
.file-line{min-height:1.5em;font-size:.9rem;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.file-line .fn{font-family:var(--f-mono);font-size:.84rem;overflow-wrap:anywhere}
.file-line.ok{color:var(--ok)} .file-line.bad{color:var(--bad)} .file-line.busy{color:var(--muted)}
.cols{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.cols span{font-family:var(--f-mono);font-size:.78rem;background:var(--code);border-radius:6px;padding:2px 8px;color:var(--ink)}
.check-line{min-height:1.7em;font-size:.92rem;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.note{display:flex;gap:10px;align-items:flex-start;font-size:.9rem;color:var(--muted);background:var(--surface2);border-radius:12px;padding:10px 14px}
.note b{color:var(--ink)}
.empty{border:2px dashed var(--line);border-radius:14px;padding:22px;text-align:center;color:var(--muted)}

/* the people and files tables */
tr.bad td:first-child{box-shadow:inset 4px 0 var(--bad)} tr.warn td:first-child{box-shadow:inset 4px 0 var(--warn)} tr.off td{color:var(--muted)}
.t-people{min-width:960px} .t-files{min-width:940px}
.cell-in{width:100%;min-width:70px;border:1.5px solid transparent!important;background:transparent!important;padding:5px 7px!important;border-radius:8px!important;
  font:inherit;font-size:.9rem!important;color:inherit}
.cell-in:hover{border-color:var(--line)!important}
.cell-in:focus{border-color:var(--brand)!important;background:var(--surface)!important;box-shadow:none!important}
.cell-in.cc{width:64px;min-width:64px;text-transform:uppercase;font-family:var(--f-mono)}
.cell-in.saving{border-color:var(--sun)!important}
.idx{font-family:var(--f-mono);color:var(--muted);font-size:.8rem}
.intl{font-family:var(--f-mono);font-size:.86rem;white-space:nowrap}
.why{font-size:.8rem;color:var(--muted)}
.more{display:flex;justify-content:center;padding:8px}
.fname{font-family:var(--f-mono);font-size:.82rem;overflow-wrap:anywhere}
.eye{flex-direction:row;display:flex;gap:8px;align-items:center;font-size:.84rem;color:var(--ink);font-weight:500}
.mark{margin-top:4px}
.rowform{display:inline}

/* the message editor */
.editor{border:1.5px solid var(--line);border-radius:14px;background:var(--surface);position:relative;display:flex;flex-direction:column;min-width:0}
.editor:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid var(--line);background:var(--surface2);border-radius:14px 14px 0 0}
.tb{font:inherit;min-width:36px;height:34px;padding:0 9px;border:1px solid transparent;background:transparent;color:var(--ink);border-radius:8px;cursor:pointer;font-size:.9rem}
.tb:hover{background:var(--surface);border-color:var(--line)}
.tb.sep{width:1px;min-width:1px;padding:0;margin:5px 3px;background:var(--line);height:24px;cursor:default}
.tb.monofont{font-family:var(--f-mono)}
.editor textarea{border:none;border-radius:0;min-height:240px;resize:vertical;line-height:1.6;padding:14px;box-shadow:none;background:transparent}
.editor textarea:focus{box-shadow:none}
.vlabel{font-size:.78rem;font-weight:700;color:var(--muted);padding:8px 14px 0;text-transform:uppercase;letter-spacing:.06em}
.js .vlabel{display:none}
.versions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.vtab{font:inherit;font-size:.86rem;font-weight:600;padding:5px 12px;border:1.5px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);cursor:pointer}
.vtab[aria-pressed="true"]{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.counter{display:flex;justify-content:space-between;gap:8px;padding:7px 14px;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}
.counter .over{color:var(--bad);font-weight:700}
.emoji-pop{position:absolute;top:48px;left:6px;right:6px;z-index:4;background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.18);padding:10px;max-width:460px}
.emoji-cats{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}
.emoji-cats button{font:inherit;font-size:.8rem;font-weight:600;border:1px solid var(--line);background:var(--surface2);color:var(--ink);border-radius:999px;padding:3px 10px;cursor:pointer}
.emoji-cats button[aria-pressed="true"]{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}
.emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:2px;max-height:200px;overflow:auto}
.emoji-grid button{font-size:1.3rem;height:38px;border:none;background:transparent;border-radius:8px;cursor:pointer}
.emoji-grid button:hover{background:var(--brand-soft)}
.hints{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none}
.hints li{display:flex;gap:8px;align-items:flex-start;font-size:.9rem;flex-wrap:wrap}
.hints .pill{flex:none;margin-top:1px}
.meter{height:8px;background:var(--code);border-radius:999px;overflow:hidden}
.meter div{height:100%;border-radius:999px;background:var(--ok)}
.meter.warn div{background:var(--warn)} .meter.bad div{background:var(--bad)}
details.more-box{border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
details.more-box summary{cursor:pointer;padding:12px 14px;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:10px;align-items:center}
details.more-box summary::-webkit-details-marker{display:none}
details.more-box summary::after{content:"Show";font-weight:600;font-size:.86rem;color:var(--brand)}
details.more-box[open] summary::after{content:"Hide"}
details.more-box summary .pill{margin-left:auto}
details.more-box .inner{padding:0 14px 14px;display:flex;flex-direction:column;gap:12px}
.attachbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;border-top:1px solid var(--line);font-size:.88rem}
.attachbar .doc{margin:0;flex:1;min-width:200px;background:var(--surface2)}
.attachbar .file-line{flex-basis:100%}

/* the phone preview */
.phone{position:sticky;top:12px;background:var(--surface2);border:1px solid var(--line);border-radius:26px;padding:10px;box-shadow:var(--shadow);min-width:0}
.phone-bar{display:flex;align-items:center;gap:10px;padding:8px 10px 10px}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:700;font-size:.85rem;flex:none}
.phone-bar select{font-size:.88rem;padding:5px 8px;flex:1;min-width:0}
.chat{background:var(--chat);border-radius:18px;padding:14px 12px;min-height:280px;display:flex;flex-direction:column;gap:8px}
.bubble{align-self:flex-end;background:var(--bubble);color:var(--bubble-ink);border-radius:12px 3px 12px 12px;max-width:94%;padding:6px 9px 4px;
  box-shadow:0 1px 1px rgba(0,0,0,.12);font-size:.93rem;overflow-wrap:anywhere;min-width:130px}
.bubble p{margin:0;min-height:1.2em;white-space:pre-wrap}
.bubble ul,.bubble ol{margin:2px 0;padding-left:20px}
.bubble blockquote{margin:2px 0;padding-left:8px;border-left:3px solid currentColor;opacity:.75}
.bubble code{font-family:var(--f-mono);font-size:.84em;background:rgba(0,0,0,.08);padding:0 4px;border-radius:4px}
.bubble pre{font-family:var(--f-mono);font-size:.84em;white-space:pre-wrap;margin:2px 0}
.bubble .meta{display:flex;justify-content:flex-end;gap:4px;font-size:.7rem;opacity:.7;margin-top:2px}
.bubble .meta .ticks{color:var(--read);letter-spacing:-.25em;padding-right:.25em;opacity:1}
.bubble .var-miss{background:var(--bad-soft);color:var(--bad);border-radius:3px}
.doc{display:flex;gap:10px;align-items:center;background:rgba(0,0,0,.06);border-radius:8px;padding:8px;margin-bottom:6px}
.doc .dico{flex:none;width:30px;height:36px;border-radius:5px;background:var(--bad);color:var(--on-bad);font-size:.6rem;font-weight:700;display:grid;place-items:center;font-family:var(--f-mono)}
.doc .dico.img{background:var(--read)}
.doc .dn{font-size:.84rem;font-weight:600;overflow-wrap:anywhere}
.doc .ds{font-size:.74rem;opacity:.75}
.ph{display:block;max-width:100%;max-height:240px;object-fit:cover;border-radius:8px;margin-bottom:6px}
.phone-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 6px 2px;font-size:.82rem;color:var(--muted)}

/* check and start */
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:820px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tile{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--surface2);display:flex;flex-direction:column;gap:3px;min-width:0}
.tile .k{font-size:.8rem;color:var(--muted);font-weight:600}
.tile .v{font-family:var(--f-display);font-size:1.45rem;font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tile .v.sm{font-size:1.15rem}
.tile .s{font-size:.82rem;color:var(--muted)}
.tile.okb{border-color:color-mix(in srgb,var(--ok) 35%,var(--line))} .tile.badb{border-color:color-mix(in srgb,var(--bad) 45%,var(--line))}
.days{display:flex;gap:5px;flex-wrap:wrap;border:none;padding:0}
label.day{flex-direction:row;font:inherit;font-size:.86rem;font-weight:600;padding:6px 11px;border:1.5px solid var(--line);border-radius:9px;background:var(--surface);
  color:var(--ink);cursor:pointer;align-items:center;gap:6px}
label.day:has(input:checked){background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.js label.day input{position:absolute;opacity:0;width:1px;height:1px}
label.day:focus-within{outline:3px solid var(--brand);outline-offset:2px}
.bars{display:flex;align-items:flex-end;gap:6px;height:128px;padding-top:18px;overflow-x:auto}
.barcol{flex:1 0 36px;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}
.bar{width:100%;max-width:48px;background:var(--brand);border-radius:6px 6px 0 0;position:relative;min-height:2px}
.bar span{position:absolute;top:-18px;left:50%;transform:translateX(-50%);font-family:var(--f-mono);font-size:.7rem;color:var(--ink)}
.barlbl{font-size:.72rem;color:var(--muted);white-space:nowrap}
.gaps{display:flex;flex-wrap:wrap;gap:4px 10px;font-family:var(--f-mono);font-size:.8rem;color:var(--muted)}
.gaps b{color:var(--ink);font-weight:500}
.radios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:640px){.radios{grid-template-columns:minmax(0,1fr)}}
label.radio{flex-direction:row;display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);
  cursor:pointer;font-size:.92rem;color:var(--ink);font-weight:400}
label.radio:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
label.radio input{margin-top:2px}
.issues{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none}
.issues li{display:flex;gap:8px;align-items:baseline;font-size:.94rem;flex-wrap:wrap}
.disclaimer{border:2px solid var(--sun);background:var(--sun-soft);border-radius:14px;padding:14px 16px}
.disclaimer label{flex-direction:row;display:flex;gap:12px;align-items:flex-start;font-size:.94rem;color:var(--ink);font-weight:400}
.disclaimer input{margin-top:3px;width:20px;height:20px}
.speed{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
.speed input{width:120px}
.risk{border:2px solid var(--bad);background:var(--bad-soft);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.risk label{flex-direction:row;display:flex;gap:10px;align-items:flex-start;font-weight:700;color:var(--ink);font-size:.94rem}
.risk input{margin-top:2px}

/* sending */
.wstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:760px){.wstats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.wstats .stat{background:var(--surface2)}
.wstats .stat .v{font-size:1.9rem}
.stat.read .v{color:var(--read)} .stat.skip .v{color:var(--warn)} .stat.fail .v{color:var(--bad)}
progress.progress{appearance:none;-webkit-appearance:none;width:100%;height:12px;border:none;border-radius:999px;background:var(--code);overflow:hidden;display:block}
progress.progress::-webkit-progress-bar{background:var(--code);border-radius:999px}
progress.progress::-webkit-progress-value{background:var(--brand);border-radius:999px}
progress.progress::-moz-progress-bar{background:var(--brand);border-radius:999px}
.log{display:flex;flex-direction:column;max-height:300px;overflow:auto;font-size:.88rem}
.log div{display:flex;gap:10px;padding:6px 2px;border-bottom:1px solid var(--line);align-items:baseline;flex-wrap:wrap}
.log .tm{font-family:var(--f-mono);color:var(--muted);font-size:.78rem;flex:none;width:72px}
.confirm{border:2px solid var(--bad);background:var(--bad-soft);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}

/* step 1: connect */
.pair{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:700px){.pair{grid-template-columns:minmax(0,1fr)}}
.qrwrap{position:relative;width:236px;max-width:100%}
.qrplate{background:#FFFFFF;border-radius:16px;padding:14px;border:1px solid var(--line);box-shadow:var(--shadow);aspect-ratio:1/1;max-width:100%;
  display:grid;place-items:center;color:#18213A;text-align:center;font-weight:600;font-size:.92rem}
.qrplate img{width:100%;height:auto;display:block;image-rendering:pixelated}
.qrplate.locked{background:repeating-linear-gradient(45deg,#F3F5FA,#F3F5FA 8px,#FFFFFF 8px,#FFFFFF 16px)}
.qrmeta{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:.84rem;color:var(--muted);gap:8px}
.howto{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.howto li{padding-left:4px}
.howto b{color:var(--ink)}
.code{font-family:var(--f-mono);font-size:2rem;font-weight:500;letter-spacing:.12em;background:var(--surface);border:1.5px dashed var(--brand);border-radius:12px;
  padding:12px 18px;display:inline-block;color:var(--brand-deep)}
.connected{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.connected .big-ok{width:56px;height:56px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center;font-size:1.6rem;font-weight:700;flex:none}
.connected .num{font-family:var(--f-mono);font-size:1.25rem}
.spin{width:18px;height:18px;border-radius:50%;border:3px solid var(--brand-soft);border-top-color:var(--brand);animation:spin 1s linear infinite;display:inline-block;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}

/* the bar with Back / Next, stuck to the bottom */
.navbar{position:sticky;bottom:0;z-index:5;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(8px);
  border-top:1px solid var(--line);margin-top:8px}
.navbar .wrap{display:flex;align-items:center;gap:12px;padding-block:12px calc(12px + env(safe-area-inset-bottom,0px))}
.navbar .why{flex:1;font-size:.9rem;text-align:right;color:var(--muted);min-width:0}
.navbar .why.bad{color:var(--bad)}
.navbar form{margin:0}

/* data-driven sizes (no inline styles): w-0 .. w-20 = 0% .. 100% wide, h-0 .. h-20 = 0% .. 100% high */
.w-0{width:0}.w-1{width:5%}.w-2{width:10%}.w-3{width:15%}.w-4{width:20%}.w-5{width:25%}.w-6{width:30%}.w-7{width:35%}.w-8{width:40%}.w-9{width:45%}.w-10{width:50%}
.w-11{width:55%}.w-12{width:60%}.w-13{width:65%}.w-14{width:70%}.w-15{width:75%}.w-16{width:80%}.w-17{width:85%}.w-18{width:90%}.w-19{width:95%}.w-20{width:100%}
.h-0{height:2px}.h-1{height:5%}.h-2{height:10%}.h-3{height:15%}.h-4{height:20%}.h-5{height:25%}.h-6{height:30%}.h-7{height:35%}.h-8{height:40%}.h-9{height:45%}.h-10{height:50%}
.h-11{height:55%}.h-12{height:60%}.h-13{height:65%}.h-14{height:70%}.h-15{height:75%}.h-16{height:80%}.h-17{height:85%}.h-18{height:90%}.h-19{height:95%}.h-20{height:100%}

@media (prefers-reduced-motion: reduce){*{transition:none!important;scroll-behavior:auto!important;animation:none!important}}
@media (max-width:560px){
  h1{font-size:1.5rem}.hero h1{font-size:1.9rem}h2{font-size:1.32rem}.btn-big{padding:12px 16px}
  .navbar .wrap{flex-wrap:wrap;gap:8px}.navbar .why{order:-1;flex-basis:100%;text-align:left;font-size:.84rem}.navbar .why:empty{display:none}
  .navbar .next{flex:1}
}
