/* SM Registers mockup — senior-first design tokens (see docs/ARCHITECTURE.md §2) */
:root{
  --scale:1;
  --bg:#F0F3F8; --surface:#FFFFFF; --surface2:#F6F8FB; --text:#101418; --muted:#3A4350;
  --line:#9AA5B4; --primary:#0B3D91; --primary-text:#FFFFFF; --primary-soft:#E3ECFA;
  --ok:#0B6B2B; --ok-soft:#DFF3E6; --warn:#7A4100; --warn-soft:#FFF0CC; --bad:#A4161A; --bad-soft:#FCE4E4;
  --info:#0B3D91; --info-soft:#E3ECFA; --focus:#FFB000; --banner:#5B2A86;
  --line-soft:#D3DAE4; --shadow:0 1px 2px rgba(16,24,40,.05),0 3px 10px rgba(16,24,40,.06);
}
:root[data-theme="night"]{
  --bg:#0B0E13; --surface:#161B22; --surface2:#1E242D; --text:#F3F5F8; --muted:#C9D1DB;
  --line:#5B6676; --primary:#1F5FD1; --primary-text:#FFFFFF; --primary-soft:#1B2B4A;
  --ok:#6BE38F; --ok-soft:#12301D; --warn:#FFC857; --warn-soft:#3A2C0B; --bad:#FF8A8A; --bad-soft:#3B1517;
  --info:#9CC0FF; --info-soft:#14223B; --focus:#FFC857; --banner:#B58BE0;
  --line-soft:#2C3542; --shadow:0 1px 2px rgba(0,0,0,.3),0 3px 10px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{font-size:calc(14.5px * var(--scale))}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Segoe UI Variable Text","Segoe UI","Noto Sans","Nirmala UI",Arial,sans-serif;line-height:1.45}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:4px solid var(--focus);outline-offset:2px}
h1{font-size:1.75rem;margin:.3rem 0 1rem} h1.xl{font-size:2.2rem;margin:.2rem 0}
h2{font-size:1.35rem;margin:1rem 0 .6rem} h3{font-size:1.1rem;margin:.9rem 0 .4rem}
.muted{color:var(--muted)} .small{font-size:.85rem} .big{font-size:1.1rem} .center{text-align:center}
.grow{flex:1} .row{display:flex;gap:1rem;flex-wrap:wrap}
code{font-size:.9em}

/* bars */
#topbar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;padding:.55rem 1.25rem;color:var(--primary-text);
  background:linear-gradient(100deg,#0D4BB0,#0B3D91 40%,#072E6E);box-shadow:0 2px 12px rgba(11,30,70,.22)}
.tb-id{display:flex;align-items:center;gap:.75rem}
.tb-logo{width:2.6rem;height:2.6rem;border-radius:10px;background:#fff;padding:3px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
#topbar .stn{font-size:1.3rem;font-weight:800;letter-spacing:.3px;line-height:1.2}
#topbar .who{font-size:.92rem;opacity:.85}
.ctl{display:flex;gap:.35rem;align-items:center}
.ctl .lbl{font-size:.8rem;opacity:.9;margin-right:.2rem}
.tb-tools{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.seg{display:inline-flex;padding:3px;border-radius:12px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.22)}
.tbtn{min-height:44px;min-width:44px;padding:.2rem .8rem;border-radius:9px;border:0;background:transparent;color:var(--primary-text);font-weight:700;cursor:pointer;transition:background .12s}
.tbtn:hover{background:rgba(255,255,255,.14)}
.tbtn[aria-pressed="true"]{background:#fff;color:#0B3D91;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.tbtn.solo{border:1px solid rgba(255,255,255,.35);border-radius:12px;min-height:50px}
.tbtn.out{background:rgba(255,255,255,.12)}
.sync{display:inline-flex;align-items:center;gap:.55rem;min-height:40px;padding:.3rem .9rem;border-radius:999px;font-weight:700;font-size:.9rem;max-width:34rem;line-height:1.25}
.sync i{flex:none;width:.65rem;height:.65rem;border-radius:50%}
.sync.on{background:rgba(107,227,143,.16);color:#DFF7E7;border:1px solid rgba(107,227,143,.45)} .sync.on i{background:#6BE38F;box-shadow:0 0 0 3px rgba(107,227,143,.25)}
.sync.off{background:#FFF0CC;color:#5A3000;border:2px solid #FFC857} .sync.off i{background:#B86E00}
#opennow{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;background:var(--warn-soft);border-bottom:1px solid color-mix(in srgb,var(--warn) 35%,transparent);border-left:6px solid var(--warn);padding:.55rem 1.25rem}
#opennow.calm{background:var(--surface);border-left-color:var(--ok);border-bottom-color:var(--line-soft)}
#opennow .title{font-weight:800;color:var(--warn);font-size:.95rem;letter-spacing:.5px}
#opennow.calm .title{color:var(--muted)}
.chip{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:.2rem 1rem;border-radius:999px;border:1px solid var(--warn);background:var(--surface);color:var(--text);font-weight:700;cursor:pointer;box-shadow:var(--shadow);transition:transform .1s}
.chip:hover{transform:translateY(-1px)}
.chip b{background:var(--warn);color:#fff;border-radius:999px;padding:0 .5rem;margin-left:.2rem}
:root[data-theme="night"] .chip b{color:#000}
.chip.calm{border-color:color-mix(in srgb,var(--ok) 40%,transparent);background:var(--ok-soft);color:var(--ok);cursor:default;box-shadow:none}
#opennow.calm .chip:not(.calm){border-color:var(--line-soft)}
#rolenav{display:flex;flex-wrap:wrap;gap:.3rem;padding:.5rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--line-soft);box-shadow:var(--shadow)}
.navb{min-height:46px;padding:.3rem 1rem;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--muted);font-weight:700;cursor:pointer;transition:background .12s,color .12s}
.navb:hover{background:var(--primary-soft);color:var(--primary)}
:root[data-theme="night"] .navb:hover{color:var(--text)}
.navb[aria-pressed="true"]{background:var(--primary);color:var(--primary-text);box-shadow:0 2px 8px rgba(11,61,145,.25)}

main{max-width:1800px;margin:0 auto;padding:1.25rem}
.card{background:var(--surface);border:1px solid var(--line-soft);box-shadow:var(--shadow);border-radius:16px;padding:1.25rem;margin-bottom:1rem}
.navrow{display:flex;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap;align-items:center}
.btn.backbtn{min-height:48px;border:1px solid var(--line-soft);background:var(--surface);color:var(--primary);font-size:.95rem;padding:.3rem 1rem;box-shadow:var(--shadow)}
.btn.backbtn:hover{border-color:var(--primary)}
.banner{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;border-radius:10px;padding:.7rem 1rem;margin:0 0 1rem;font-weight:600}
.banner.info{background:var(--info-soft);border-left:6px solid var(--info)}
.banner.warn{background:var(--warn-soft);border-left:6px solid var(--warn)}
.banner.bad{background:var(--bad-soft);border-left:6px solid var(--bad);color:var(--bad)}

/* buttons */
.btn{min-height:56px;padding:.5rem 1.3rem;border-radius:12px;transition:filter .12s,box-shadow .12s;border:2px solid var(--primary);background:var(--surface);color:var(--primary);font-weight:800;font-size:1.05rem;cursor:pointer;display:inline-flex;align-items:center;gap:.5rem}
:root[data-theme="night"] .btn{color:var(--text)}
.btn.primary,.btn[aria-pressed="true"]{background:var(--primary);color:var(--primary-text);box-shadow:0 3px 10px rgba(11,61,145,.25)}
.btn:hover:not(:disabled){filter:brightness(1.08)}
.btn.big{min-height:68px;font-size:1.2rem;padding:.6rem 1.8rem}
.btn.xl{min-height:80px;font-size:1.35rem}
.btn.ok{background:var(--ok);border-color:var(--ok);color:#fff}
:root[data-theme="night"] .btn.ok{color:#000}
.btn.danger{border-color:var(--bad);color:var(--bad)}
.btn:disabled{opacity:.45;cursor:not-allowed}

/* home tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:1rem}
.tile{position:relative;text-align:left;min-height:7.5rem;padding:1rem 1.2rem;border-radius:16px;border:1px solid var(--line-soft);box-shadow:var(--shadow);transition:transform .12s,box-shadow .12s,border-color .12s;background:var(--surface);cursor:pointer;display:flex;gap:1rem;align-items:center}
.tile:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 8px 22px rgba(11,61,145,.14)}
.tile .ico{flex:none;width:4rem;height:4rem;border-radius:16px;background:var(--surface2);border:1px solid var(--line-soft);display:flex;align-items:center;justify-content:center;font-size:2.1rem;line-height:1;transition:background .12s}
.tile:hover .ico{background:var(--primary-soft)}
.tile .name{font-size:1.2rem;font-weight:800}
.tile .sub{font-size:.85rem;color:var(--muted)}
.tile .badge{position:absolute;top:.6rem;right:.7rem;background:var(--warn-soft);color:var(--warn);border:2px solid var(--warn);border-radius:999px;padding:0 .6rem;font-weight:800;font-size:.85rem}
.hoto-cta{margin-top:1.75rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem 2rem;padding:1.4rem 1.75rem;border-radius:18px;color:#fff;
  background:radial-gradient(90% 140% at 100% 0%,rgba(255,255,255,.14),transparent 60%),linear-gradient(110deg,#0D4BB0,#0B3D91 50%,#06275E);box-shadow:0 8px 24px rgba(11,61,145,.25)}
.hoto-cta .txt{display:flex;flex-direction:column;gap:.2rem;max-width:40rem}
.hoto-cta .txt b{font-size:1.35rem}
.hoto-cta .txt span{opacity:.85}
.hoto-cta .btn{background:#fff;color:#0B3D91;border-color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.homehead{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:1rem 2rem;margin:.3rem 0 1.4rem}
.homehead h1{font-size:2rem;margin:.1rem 0 .2rem;letter-spacing:-.2px}
.homehead .lsub{margin:0}
.hdate{color:var(--muted);font-weight:700;font-size:.9rem;text-transform:uppercase;letter-spacing:.8px}
.hstats{display:flex;gap:.75rem;flex-wrap:wrap}
.hstat{display:flex;flex-direction:column;align-items:flex-start;min-width:9.5rem;padding:.7rem 1.1rem;border-radius:14px;border:1px solid var(--line-soft);background:var(--surface);box-shadow:var(--shadow);text-align:left;border-left:5px solid var(--ok)}
.hstat:not(:disabled){cursor:pointer} .hstat:disabled{cursor:default;color:inherit}
.hstat b{font-size:1.8rem;line-height:1.1}
.hstat span{color:var(--muted);font-size:.9rem;font-weight:600}
.hstat.warn{border-left-color:var(--warn)} .hstat.warn b{color:var(--warn)}
.hstat.info{border-left-color:var(--info)} .hstat.info b{color:var(--info)}

/* login — split screen: brand panel (left) + two-step sign-in (right) */
.login{display:grid;grid-template-columns:minmax(21rem,34%) minmax(0,1fr);min-height:calc(100vh - 2.5rem);max-width:1500px;margin:0 auto;background:var(--surface);border-radius:22px;overflow:hidden;box-shadow:0 10px 40px rgba(11,30,70,.12),0 2px 6px rgba(11,30,70,.06)}
.lbrand{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:2rem;padding:2.2rem 2.2rem 4.5rem;color:#fff;overflow:hidden;
  background:radial-gradient(120% 80% at 0% 0%,rgba(255,255,255,.14),transparent 55%),linear-gradient(160deg,#0D4BB0 0%,#0B3D91 45%,#06275E 100%)}
.lbrand::before{content:"";position:absolute;right:-7rem;top:38%;width:18rem;height:18rem;border-radius:50%;border:2px solid rgba(255,255,255,.10);box-shadow:0 0 0 2.5rem rgba(255,255,255,.04),0 0 0 5rem rgba(255,255,255,.03)}
.lbrand::after{content:"";position:absolute;left:0;right:0;bottom:1.4rem;height:1.6rem;opacity:.55;
  background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.55)) top/100% 3px no-repeat,linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.55)) bottom/100% 3px no-repeat,repeating-linear-gradient(90deg,rgba(255,255,255,.28) 0 7px,transparent 7px 30px)}
.lbrand>*{position:relative;z-index:1}
.lbrand .logo{width:3.6rem;height:3.6rem;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;margin-bottom:1.4rem}
.lbrand .logo img{width:2.4rem;height:2.4rem;border-radius:8px}
.lbrand .org{font-size:.9rem;letter-spacing:.4px;opacity:.85}
.lbrand h1{font-size:2.1rem;line-height:1.15;margin:.35rem 0 .6rem;font-weight:800}
.lbrand .tag{margin:0;opacity:.8;font-size:1rem}
.lstation{padding:1.3rem 1.4rem;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(4px)}
.lstation .lbl{font-size:.75rem;letter-spacing:1.5px;text-transform:uppercase;opacity:.75}
.lstation .name{font-size:1.7rem;font-weight:800;letter-spacing:.5px}
.lstation .clock{font-size:2.6rem;font-weight:300;letter-spacing:2px;font-variant-numeric:tabular-nums;margin-top:.6rem;line-height:1.1}
.lstation .date{opacity:.85}
.net{display:inline-flex;align-items:center;gap:.5rem;margin-top:.9rem;padding:.2rem .8rem;border-radius:999px;font-size:.85rem;font-weight:700;background:rgba(255,255,255,.12)}
.net i{width:.6rem;height:.6rem;border-radius:50%;background:#6BE38F;box-shadow:0 0 0 3px rgba(107,227,143,.25)}
.net.off i{background:#FFC857;box-shadow:0 0 0 3px rgba(255,200,87,.25)}
.lbot{display:flex;flex-direction:column;gap:.8rem}
.lang{display:inline-flex;align-self:flex-start;padding:4px;border-radius:999px;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.25)}
.lang button{min-height:44px;min-width:6rem;padding:0 1.1rem;border:0;border-radius:999px;background:transparent;color:#fff;font-weight:700;cursor:pointer}
.lang button[aria-pressed="true"]{background:#fff;color:#0B3D91;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.lbot .dev{font-size:.8rem;opacity:.75}

.lmain{padding:2.4rem 3rem;overflow:auto;display:flex;flex-direction:column}
.lsteps{display:flex;align-items:center;gap:.5rem;margin-bottom:1.2rem}
.lsteps span{width:2rem;height:2rem;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.95rem;border:2px solid var(--line-soft);color:var(--muted)}
.lsteps span.cur{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}
.lsteps span.done{background:var(--ok);border-color:var(--ok);color:#fff}
.lsteps i{width:2.5rem;height:2px;background:var(--line-soft)}
.lsteps em{font-style:normal;color:var(--muted);font-weight:600;font-size:.9rem;margin-left:.4rem}
.lh{font-size:1.9rem;margin:0 0 .2rem;font-weight:800;letter-spacing:-.2px}
.lsub{color:var(--muted);margin:0 0 1.2rem;font-size:1.05rem}
.lnotice{border-radius:14px;padding:.9rem 1.1rem;margin-bottom:1rem;background:var(--info-soft);border:1px solid color-mix(in srgb,var(--info) 25%,transparent);font-size:.95rem}
.lnotice p{margin:.35rem 0 0;color:var(--muted)}
.lnotice.warn{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 30%,transparent);color:var(--warn);font-weight:700}
h3.grp{font-size:.8rem;text-transform:uppercase;letter-spacing:1.2px;color:var(--muted);margin:1.2rem 0 .6rem;font-weight:800}
.staffgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:.8rem}
.staff{display:flex;align-items:center;gap:1rem;min-height:5.2rem;text-align:left;padding:.8rem 1rem;border-radius:16px;border:1px solid var(--line-soft);background:var(--surface);cursor:pointer;box-shadow:var(--shadow);transition:transform .12s,box-shadow .12s,border-color .12s}
.staff:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 8px 22px rgba(11,61,145,.14)}
.staff .sinfo,.lwho .sinfo{display:flex;flex-direction:column;align-items:flex-start;gap:.1rem;flex:1;min-width:0}
.staff .sinfo>span:not(.state),.lwho .sinfo>span:not(.state){color:var(--muted);font-size:.95rem}
.staff b,.lwho b{font-size:1.15rem}
.staff .go{font-size:1.8rem;color:var(--primary);opacity:.5;line-height:1}
.staff:hover .go{opacity:1}
.av{flex:none;width:3.2rem;height:3.2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.1rem;color:#fff;background:linear-gradient(135deg,#2F6FD6,#0B3D91);box-shadow:0 3px 8px rgba(11,61,145,.25)}
.av.lg{width:4rem;height:4rem;font-size:1.35rem}
.lwho{display:flex;align-items:center;gap:1rem;padding:.9rem 1rem;margin:1rem 0 1.4rem;border-radius:16px;background:var(--primary-soft);border:1px solid color-mix(in srgb,var(--primary) 25%,transparent);max-width:30rem}
.btn.ghost{min-height:48px;border:1px solid var(--primary);background:var(--surface);font-size:.95rem;padding:.3rem .9rem}
.lmain .pinwrap{align-items:flex-start;max-width:30rem}
.lmain .pindots,.lmain .pinmsg{align-self:center}
.lmain .pad{align-self:center}
.lfoot{color:var(--muted);font-size:.85rem;margin:1rem 0 0}
.lmain .hint{margin-top:1.2rem}

/* pin pad (login + PIN dialogs) */
.pinwrap{display:flex;flex-direction:column;align-items:center;gap:1rem}
.pindots{display:flex;gap:.9rem}
.pindots span{width:1.25rem;height:1.25rem;border-radius:50%;border:2px solid var(--line);transition:background .1s,transform .1s}
.pindots span.f{background:var(--primary);border-color:var(--primary);transform:scale(1.1)}
.pad{display:grid;grid-template-columns:repeat(3,5.2rem);gap:.7rem}
.pad button{height:4.3rem;border-radius:16px;border:1px solid var(--line-soft);background:var(--surface);font-size:1.7rem;font-weight:700;cursor:pointer;box-shadow:0 1px 0 rgba(16,24,40,.05),0 2px 6px rgba(16,24,40,.06);transition:background .1s,transform .06s}
.pad button:hover{background:var(--primary-soft);border-color:var(--primary)}
.pad button:active{transform:scale(.96)}
.pad .okk{background:var(--ok);color:#fff;border-color:var(--ok);font-size:1.3rem;letter-spacing:1px}
.pad .okk:hover{background:var(--ok);filter:brightness(1.1)}
:root[data-theme="night"] .pad .okk{color:#000}

@media (max-width:900px){
  .login{grid-template-columns:1fr;min-height:0;border-radius:16px}
  .lbrand{padding:1.4rem 1.4rem 3.4rem;gap:1rem}
  .lbrand .logo,.lbrand .tag{display:none}
  .lbrand h1{font-size:1.6rem}
  .lstation .clock{font-size:1.8rem}
  .lmain{padding:1.5rem}
}

/* wizard */
.steps{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1.25rem}
.steps .st{flex:1;min-width:9rem;text-align:left;padding:.6rem .8rem;border-radius:12px;border:1px solid var(--line-soft);box-shadow:var(--shadow);background:var(--surface);font-weight:700;color:var(--muted)}
.steps .st.cur{border-color:var(--primary);background:var(--primary);color:var(--primary-text)}
.steps .st.done{border-color:var(--ok);background:var(--ok-soft);color:var(--ok);cursor:pointer}
.steps .st small{display:block;font-weight:600;font-size:.75rem}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.25rem 2rem}
.field.wide{grid-column:1/-1}
.field label.l{display:block;font-weight:800;font-size:1.05rem;margin-bottom:.35rem}
.colno{font-weight:600;color:var(--muted);font-size:.85em}
.opt-l{font-weight:600;color:var(--muted);font-size:.85em}
.field .help{font-size:.85rem;color:var(--muted);margin-top:.3rem}
.field input,.field select,.field textarea,input.search{width:100%;min-height:56px;padding:.5rem .8rem;border-radius:10px;border:2px solid var(--line);background:var(--surface);font-size:1.1rem}
.field textarea{min-height:6rem}
.inrow{display:flex;align-items:center;gap:.5rem}
.inrow .pre{font-size:1.3rem;font-weight:800}
.field input.short{width:8rem}
.auto{font-size:.72rem;font-weight:800;color:var(--ok);background:var(--ok-soft);border-radius:6px;padding:0 .4rem;margin-left:.5rem;vertical-align:middle}
.autoval{min-height:56px;display:flex;align-items:center;padding:.4rem .8rem;border-radius:10px;border:2px dashed var(--line);background:var(--surface2);font-size:1.2rem;font-weight:800}
.dt{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.dt .val{min-width:7.5rem;text-align:center;font-size:1.5rem;font-weight:800;border:2px solid var(--line);border-radius:10px;padding:.35rem .6rem;background:var(--surface)}
.dt button{min-width:56px;min-height:56px;border-radius:10px;border:2px solid var(--line);background:var(--surface2);font-size:1.3rem;font-weight:800;cursor:pointer}
.dt button.word{font-size:1rem;padding:0 .8rem}
.opts{display:flex;flex-wrap:wrap;gap:.6rem}
.opts.col{flex-direction:column;align-items:stretch}
.opt{min-height:56px;min-width:5rem;padding:.4rem 1.1rem;border-radius:10px;border:2px solid var(--line);background:var(--surface);font-weight:800;font-size:1.1rem;cursor:pointer;text-align:left}
.opt.sm{min-height:48px;font-size:1rem}
.opt[aria-pressed="true"]{border:4px solid var(--primary);background:var(--primary-soft)}
.opt .cnt{background:var(--warn-soft);color:var(--warn);border:2px solid var(--warn);border-radius:999px;padding:0 .5rem;font-size:.85rem}
.multi{display:flex;flex-direction:column;gap:.5rem}
.counter{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.counter input{max-width:10rem}
.counter .prev{font-size:1rem}
.inc{display:inline-block;background:var(--warn-soft);color:var(--warn);border:2px solid var(--warn);border-radius:999px;padding:0 .5rem;font-weight:800}
.attach{display:flex;align-items:center;gap:1rem;font-weight:700;font-size:1.1rem}
.err{display:none;margin-top:.4rem;color:var(--bad);background:var(--bad-soft);border-left:5px solid var(--bad);padding:.4rem .7rem;font-weight:700;border-radius:6px}
.err.show{display:block}
.wizfoot{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.5rem;flex-wrap:wrap}
.saved{color:var(--ok);font-weight:800}
.readback{border:3px dashed var(--primary);border-radius:12px;padding:1rem;background:var(--primary-soft)}
.readback dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:.6rem 1.5rem;margin:0}
.readback dt{font-size:.85rem;color:var(--muted);font-weight:700}
.readback dd{margin:0;font-size:1.15rem;font-weight:800}
.decltext{font-size:1.2rem;line-height:1.7;border:2px solid var(--line);border-left:8px solid var(--primary);background:var(--surface);padding:1rem 1.25rem;border-radius:10px;margin-top:.6rem}

/* register table */
.regtitle{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.5rem}
.formno{font-size:.85rem;color:var(--muted)}
.tabs{display:flex;gap:.3rem;margin:.5rem 0 1rem;flex-wrap:wrap;border-bottom:2px solid var(--line-soft)}
.tabs .opt{border:0;border-bottom:4px solid transparent;border-radius:10px 10px 0 0;margin-bottom:-2px;background:transparent;color:var(--muted)}
.tabs .opt:hover{background:var(--surface2);color:var(--text)}
.tabs .opt[aria-pressed="true"]{border:0;border-bottom:4px solid var(--primary);background:var(--primary-soft);color:var(--primary)}
:root[data-theme="night"] .tabs .opt[aria-pressed="true"]{color:var(--text)}
.filters{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-bottom:.8rem}
.filters input.search{max-width:32rem;min-height:48px}
.tablewrap{overflow-x:auto;border-radius:12px;box-shadow:var(--shadow)}
table.reg{width:100%;border-collapse:collapse;background:var(--surface);font-size:.95rem}
table.reg th,table.reg td{border:2px solid var(--line);padding:.45rem .5rem;vertical-align:top}
table.reg th{background:var(--surface2);font-weight:700;text-align:center}
table.reg .hi{display:block;font-weight:600;font-size:.85rem}
table.reg tr.colno th{font-size:.8rem;padding:.15rem}
table.reg tbody tr{cursor:pointer}
table.reg tbody tr:hover td{background:var(--primary-soft)}
table.reg tr.new td{background:var(--ok-soft)}
table.reg tr.void td{text-decoration:line-through;opacity:.7}
table.reg td.empty{text-align:center;color:var(--muted);padding:1.5rem}
.state{display:inline-block;font-weight:800;border-radius:999px;padding:0 .6rem;border:2px solid;white-space:nowrap;font-size:.9rem;text-decoration:none}
.state.open{color:var(--warn);border-color:var(--warn);background:var(--warn-soft)}
.state.closed{color:var(--ok);border-color:var(--ok);background:var(--ok-soft)}
.state.bad{color:var(--bad);border-color:var(--bad);background:var(--bad-soft)}
.state.wait{color:var(--info);border-color:var(--info);background:var(--info-soft)}
.printonly{display:none}
table.kv{width:100%;border-collapse:collapse;font-size:1rem}
table.kv th,table.kv td{border-bottom:1px solid var(--line);padding:.4rem .5rem;text-align:left;vertical-align:top}
table.kv th{width:40%;color:var(--muted);font-weight:700}
ul.plain{list-style:none;padding:0;margin:.3rem 0}
ul.plain li{padding:.2rem 0}

/* picking, hoto, alerts */
.pickgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(22rem,1fr));gap:.8rem}
.pick{text-align:left;min-height:5rem;padding:.9rem 1.1rem;border-radius:14px;border:1px solid var(--line-soft);box-shadow:var(--shadow);background:var(--surface);cursor:pointer}
.pick b{display:block;font-size:1.15rem}
.pick small{color:var(--muted)}
.pick:hover{border-color:var(--primary)}
.cols2{display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1.25rem}
.hsec h2{margin-top:0}
.hitem{display:flex;width:100%;text-align:left;align-items:center;gap:1rem;justify-content:space-between;padding:.7rem 1rem;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface);margin-bottom:.5rem}
.hitem.link{cursor:pointer} .hitem.link:hover{border-color:var(--primary)}
.hitem .txt{font-size:1.05rem}
.check{display:flex;align-items:center;gap:.6rem;min-height:56px;padding:.3rem 1rem;border-radius:10px;border:2px solid var(--line);background:var(--surface2);font-weight:800;cursor:pointer;white-space:nowrap}
.check input{width:1.8rem;height:1.8rem}
.check.on{border-color:var(--ok);background:var(--ok-soft);color:var(--ok)}
.hhead{display:flex;gap:2rem;flex-wrap:wrap;align-items:center}
.hhead .field{min-width:20rem}
.bigname{font-size:1.3rem;font-weight:800} .arrow{font-size:2rem}
.progress{font-weight:800;font-size:1.15rem}
.progress.all b{color:var(--ok)}

/* timeline */
.timeline{display:flex;flex-direction:column;gap:.4rem}
.tday{margin:1rem 0 .3rem;border-bottom:2px solid var(--line);padding-bottom:.2rem}
.tev{display:flex;gap:1rem;align-items:flex-start;text-align:left;width:100%;padding:.6rem .9rem;border-radius:12px;border:1px solid var(--line-soft);background:var(--surface);cursor:pointer}
.tev:hover{border-color:var(--primary)}
.ttime{font-size:1.25rem;font-weight:800;min-width:4.2rem}
.tico{font-size:1.6rem;line-height:1}
.ttxt{font-size:1.05rem}

/* supervisor/admin */
.scard .kpis{display:flex;gap:2rem}
.scard .kpis div{display:flex;flex-direction:column}
.scard .kpis b{font-size:2.2rem}
.vbox{border:2px solid var(--line);border-radius:10px;padding:1rem;background:var(--surface2)}
.perm{display:inline-block;border-radius:6px;padding:0 .5rem;font-weight:700;font-size:.9rem;border:2px solid var(--line)}
.perm.write{border-color:var(--ok);color:var(--ok)} .perm.approve{border-color:var(--warn);color:var(--warn)}
.perm.admin{border-color:var(--bad);color:var(--bad)} .perm.none{opacity:.5}
pre.json{background:var(--surface2);border:2px solid var(--line);border-radius:10px;padding:1rem;max-height:30rem;overflow:auto;font-size:.8rem}

/* modal */
#modal{position:fixed;inset:0;background:rgba(8,18,40,.55);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;z-index:50;padding:1rem}
#modal.show{display:flex}
#modalBox{background:var(--surface);border-radius:20px;border:1px solid var(--line-soft);box-shadow:0 24px 60px rgba(0,0,0,.3);padding:1.5rem 2rem;max-width:56rem;width:100%;max-height:94vh;overflow:auto}
#modalBox h2{margin-top:0}
.mfoot{display:flex;justify-content:flex-end;gap:.8rem;margin-top:1.25rem;flex-wrap:wrap}
.msg-ok{font-size:1.3rem;font-weight:800;color:var(--ok)}
.msg-bad{font-size:1.3rem;font-weight:800;color:var(--bad)}
.jserr{background:#111;color:#0f0;padding:1rem;margin:0;font-size:12px;white-space:pre-wrap}
.jserr{color:#f66}

@media print{
  .tablewrap{max-height:none!important;overflow:visible!important;box-shadow:none!important}
  table.reg thead{position:static!important}
  .wizfoot{position:static!important;box-shadow:none!important}
  #topbar,#opennow,#rolenav,.navrow,.tabs,.filters,.noprint,.banner{display:none!important}
  body{background:#fff;color:#000}
  main{padding:0}
  .printonly{display:block!important}
  .regside{display:block!important;page-break-after:always}
  .sidehead{font-weight:800;margin:.3rem 0}
  table.reg{font-size:10pt}
  @page{size:A4 landscape;margin:10mm}
}

/* ---- additions for the live application ---- */
.pinmsg{min-height:1.6rem;font-weight:700;color:var(--bad);text-align:center}
.pinmsg.ok{color:var(--ok)}
.hint{background:var(--info-soft,#e8f0ff);border:2px dashed var(--line);padding:.5rem .8rem;border-radius:8px;font-weight:700}
textarea.code{font-family:Consolas,monospace;font-size:.85rem;min-height:28rem;width:100%}
.problems{color:var(--bad);font-weight:700}
.stsel{font-size:1rem;padding:.3rem .5rem;border-radius:8px;color:#111;background:#fff;min-width:14rem}
.loading{padding:2rem;text-align:center;font-size:1.2rem;color:var(--muted)}
.lockbox{text-align:center}
.formgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));gap:.8rem 1.2rem}
.formgrid input,.formgrid select{width:100%}
tr.conflict td{background:var(--warn-soft,#fff4d6)}
.state.conf{background:#ffe1b3;color:#6b3b00;border-color:#c77700}
.small{font-size:.85rem}
.enrolbox{max-width:46rem;margin:1rem auto}
.rowbtns{display:flex;gap:.4rem;flex-wrap:wrap}

/* ---- fit-to-screen: keep daily screens within one window ---- */
main{padding-top:1rem;padding-bottom:1rem}
h1{margin:.2rem 0 .8rem}
/* home */
.homehead{margin:0 0 1rem}
.homehead h1{font-size:1.75rem;margin:0}
.tiles{grid-template-columns:repeat(auto-fill,minmax(17.5rem,1fr));gap:.85rem}
.tile{min-height:5.8rem;padding:.75rem 1rem;gap:.9rem}
.tile .ico{width:3.4rem;height:3.4rem;font-size:1.8rem;border-radius:14px}
.tile .name{font-size:1.12rem;line-height:1.25}
.hoto-cta{margin-top:1.1rem;padding:.9rem 1.5rem}
.hoto-cta .txt b{font-size:1.2rem}
/* page header row: back · title · actions */
.navrow.pagehead{margin-bottom:.8rem}
.navrow.pagehead h1{margin:0;font-size:1.6rem}
/* register tables scroll inside their own box, header stays visible */
.tablewrap{max-height:calc(100vh - 7rem);overflow:auto}
table.reg thead{position:sticky;top:0;z-index:2}
table.reg thead th{box-shadow:inset 0 -2px 0 var(--line)}
/* wizard & hand-over footers stay at the bottom of the window */
.wizfoot{position:sticky;bottom:0;z-index:5;background:var(--surface);padding:.8rem 0 .4rem;margin-top:1rem;box-shadow:0 -10px 12px -10px rgba(16,24,40,.18)}
/* hand-over */
.hhead{gap:.8rem 2rem;padding:.9rem 1.25rem}
.hhead .field{min-width:16rem}
.hhead .field select{min-height:50px}
.hnote{flex:1;min-width:18rem;margin:0;color:var(--muted);font-size:.95rem}
.progress{display:flex;flex-direction:column;align-items:flex-end;gap:.3rem;white-space:nowrap}
.progress .bar{display:block;width:10rem;height:.5rem;border-radius:999px;background:var(--surface2);border:1px solid var(--line-soft);overflow:hidden}
.progress .bar i{display:block;height:100%;background:var(--ok);border-radius:999px;transition:width .2s}
.hgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(16.5rem,1fr));gap:1rem;align-items:start}
.hgrid .card{margin:0;padding:1rem}
.hgrid .hsec h2{font-size:1.15rem;margin:0 0 .6rem}
.hgrid .hitem{flex-direction:column;align-items:stretch;gap:.6rem;padding:.7rem .8rem}
.hgrid .hitem .txt{font-size:1rem}
.hgrid .hitem .check{justify-content:center;min-height:52px}
.hgrid textarea{width:100%;min-height:3.2rem;border-radius:10px;border:2px solid var(--line);padding:.4rem .6rem}
.hfoot{background:var(--bg);align-items:flex-end;gap:1rem 2rem;flex-wrap:wrap}
.hfoot .field{min-width:20rem}
.hfoot .field label.l{font-size:.95rem;margin-bottom:.25rem}
.hfoot textarea{min-height:56px!important;height:56px;resize:vertical}
.hact{display:flex;flex-direction:column;align-items:flex-end;gap:.3rem}
/* short screens (e.g. 1366x768) — tighten further */
@media (max-height:820px){
  .homehead .lsub,.hdate{display:none}
  .tile{min-height:5rem;padding:.6rem .9rem}
  .tile .ico{width:3rem;height:3rem;font-size:1.6rem}
  .hstat{padding:.45rem .9rem} .hstat b{font-size:1.4rem}
  .hoto-cta .txt span{display:none}
  .btn.big{min-height:60px}
}
.btn.backbtn.danger{color:var(--bad)} .btn.backbtn.danger:hover{border-color:var(--bad)}
.steps{margin-bottom:.9rem}
.steps .st{padding:.45rem .8rem}
.sync .short{display:none}
@media (max-width:1600px){ .sync.on .long{display:none} .sync.on .short{display:inline} #topbar{gap:.5rem .8rem} .tb-tools{gap:.35rem} .tbtn.solo{padding:.2rem .65rem} }
.tile>span:last-child{min-width:0}
.tile .sub{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- hand-over: T.10/T.47 items ---- */
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(21rem,1fr));gap:.45rem .6rem}
.titem{display:grid;grid-template-columns:2.3rem minmax(0,1fr) auto;gap:.5rem;align-items:center;padding:.35rem .5rem;border-radius:12px;border:1px solid var(--line-soft);background:var(--surface);box-shadow:var(--shadow);border-left:5px solid var(--line-soft)}
.titem.ok{border-left-color:var(--ok);background:color-mix(in srgb,var(--ok-soft) 45%,var(--surface))}
.tno{font-weight:800;color:var(--primary);font-size:1rem;text-align:center}
:root[data-theme="night"] .tno{color:var(--info)}
.tbody{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.tl{font-size:.88rem;font-weight:700;color:var(--muted);line-height:1.25}
.tval{font-size:1rem;color:var(--info)}
.tin{width:100%;min-height:44px;padding:.3rem .6rem;border-radius:8px;border:2px solid var(--line);background:var(--surface);font-size:1rem;color:var(--info);font-weight:600}
textarea.tin{min-height:44px;resize:vertical}
.tchips{display:flex;flex-wrap:wrap;gap:.3rem}
.tchip{min-height:40px;padding:.15rem .7rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:700;font-size:.9rem;cursor:pointer}
.tchip.on{border-color:color-mix(in srgb,var(--ok) 50%,transparent);background:var(--ok-soft);color:var(--ok)}
.tchip.bad{border-color:var(--bad);background:var(--bad-soft);color:var(--bad)}
.tchip.sel{border:2px solid var(--primary);background:var(--primary-soft);color:var(--primary)}
:root[data-theme="night"] .tchip.sel{color:var(--text)}
.check.sm{min-height:48px;padding:.2rem .8rem;font-size:.95rem}
.check.sm input{width:1.5rem;height:1.5rem}

/* ---- Station Diary daily certificate ---- */
.certdate{font-size:1.4rem;font-weight:800;min-width:9rem;text-align:center}
.certhead{margin:.2rem 0 .6rem;font-size:1.05rem;display:flex;gap:.4rem 1rem;flex-wrap:wrap;align-items:baseline}
.certhead .formno{margin-left:auto}
table.cert th.ci{text-align:left;font-weight:600;width:30%;background:var(--surface2)}
table.cert td{min-width:12rem}
table.cert th .hi{font-weight:600}
.certsec{text-align:left!important;background:var(--primary-soft)!important;color:var(--primary)}
.certfoot{font-size:.95rem}
.certsign{margin-top:.5rem;font-weight:700}
@media print{ table.cert{font-size:9pt} table.cert td{min-width:0} .certhead{font-size:10pt} }
.tick{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:12px;border:2px solid var(--line);background:var(--surface2);cursor:pointer;flex:none}
.tick input{width:1.7rem;height:1.7rem;cursor:pointer;accent-color:var(--ok)}
.tick.on{border-color:var(--ok);background:var(--ok-soft)}
.tl{font-size:.82rem}
.tchip{min-height:36px;font-size:.85rem;padding:.1rem .6rem}
.tin{min-height:40px}
.hhead .hnote{font-size:.9rem}

/* ---- access rights matrix ---- */
.lvtabs .opt{min-height:44px;font-size:.95rem}
.legend-row{display:flex;flex-wrap:wrap;gap:.3rem .6rem;align-items:center;font-size:.9rem;color:var(--muted)}
table.acc th.rl{text-align:left;font-weight:600;white-space:nowrap;background:var(--surface)}
table.acc tr.subrow th.rl{font-weight:500;padding-left:1.6rem;color:var(--muted)}
table.acc tr.allrow th,table.acc tr.allrow td{background:var(--primary-soft)}
td.acell{min-width:7rem;vertical-align:middle;padding:.3rem .35rem}
td.acell select{display:block;width:100%;min-height:40px;border-radius:8px;border:2px solid var(--line);background:var(--surface);font-size:.88rem;font-weight:700;cursor:pointer}
td.acell.inh select{border-style:dashed;font-weight:500;color:var(--muted);background:var(--surface2)}
td.acell select.lv-write,td.acell select.lv-admin{border-color:var(--ok)} td.acell.own select.lv-write{color:var(--ok)}
td.acell.own select.lv-admin{color:var(--bad);border-color:var(--bad)} td.acell.own select.lv-none{color:var(--bad)}
td.acell.own select.lv-read,td.acell.own select.lv-remark{color:var(--info);border-color:var(--info)}
td.acell.inh .perm{opacity:.6;border-style:dashed}
td.acell.chg{background:var(--warn-soft)}
td.acell small{display:block;font-size:.72rem;margin-top:.15rem}
.perm.remark{border-color:var(--info);color:var(--info)} .perm.cosign{border-color:var(--muted);color:var(--muted)}
.accwrap{max-height:calc(100vh - 20rem)}

/* ---- authenticator set-up ---- */
.totp-setup{display:grid;grid-template-columns:auto 1fr;gap:1rem 1.5rem;align-items:start;margin:.5rem 0 .5rem}
.tright{display:flex;flex-direction:column;gap:1rem}
.tright .pad{grid-template-columns:repeat(3,4.4rem)} .tright .pad button{height:3.6rem;font-size:1.5rem}
.qrbox{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.qrbox img{width:13rem;height:13rem;background:#fff;border-radius:12px;border:1px solid var(--line-soft);padding:.4rem}
.keybox{display:flex;flex-direction:column;align-items:center;gap:.2rem;text-align:center}
.keybox code{font-size:1rem;font-weight:700;letter-spacing:1px;background:var(--surface2);padding:.25rem .5rem;border-radius:6px;word-break:break-all;max-width:15rem}
ol.tsteps{margin:0;padding-left:1.4rem;display:flex;flex-direction:column;gap:.7rem;font-size:1.05rem}
@media (max-width:760px){.totp-setup{grid-template-columns:1fr}}

/* ---- recovery codes, lost phone ---- */
.reccodes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1rem;max-width:28rem;margin:.8rem 0}
.reccodes code{font:700 1.3rem Consolas,ui-monospace,monospace;letter-spacing:2px;text-align:center;padding:.45rem;border:2px dashed var(--line);border-radius:10px;background:var(--surface2)}
details.lostphone{margin:.4rem 0 .6rem;border:1px solid var(--line-soft);border-radius:10px;padding:.5rem .8rem;background:var(--surface2)}
details.lostphone summary{cursor:pointer;font-weight:700;color:var(--primary)}
details.lostphone p{margin:.5rem 0}

/* ---- proposals from other systems, API client form ---- */
.prop{display:flex;flex-direction:column;gap:.6rem}
.prophead{display:flex;gap:.8rem;align-items:center}
.propdata{display:grid;grid-template-columns:max-content 1fr;gap:.3rem 1.2rem;margin:0;padding:.6rem .8rem;border-radius:10px;background:var(--surface2)}
.propdata dt{color:var(--muted);font-weight:700} .propdata dd{margin:0;font-weight:700}
.scopelist{display:flex;flex-direction:column;gap:.25rem;max-height:16rem;overflow:auto;padding:.3rem;border:1px solid var(--line-soft);border-radius:10px}
.scopelist .check.sm{min-height:38px;font-size:.9rem;font-weight:600}

/* register format editor */
.de .de-head{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;margin:.6rem 0}
.de .de-head label{display:flex;flex-direction:column;gap:.2rem;font-weight:600}
.de-bil{display:inline-flex;gap:.3rem;min-width:16rem}.de-bil.wide{min-width:24rem}.de-bil input{flex:1;min-width:6rem}
.de-table td{vertical-align:middle}.de-table input:not([type=checkbox]),.de-table select{max-width:100%}
.de-table input.short,.de input.short{width:5.5rem}
.de-tabs{display:flex;flex-wrap:wrap;gap:.3rem;margin:.6rem 0;border-bottom:2px solid var(--line,#ccd)}
.de-tabs button{font:inherit;font-weight:600;padding:.45rem .9rem;border:1px solid var(--line,#ccd);border-bottom:0;border-radius:8px 8px 0 0;background:var(--card,#fff);color:inherit;cursor:pointer}
.de-tabs button.on{background:var(--brand,#0b3d91);color:#fff;border-color:var(--brand,#0b3d91)}
.de-step{margin:.6rem 0;border-left:4px solid var(--brand,#0b3d91)}
.de-detail td{background:rgba(11,61,145,.05)}
.de-moregrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(20rem,1fr));gap:.6rem 1rem}
.de-more{display:flex;flex-direction:column;gap:.25rem}.de-more label{font-weight:600}
.de-f{display:inline-flex;align-items:center;gap:.4rem;width:100%}.de-f input{flex:1;min-width:14rem}
.de-ok{color:var(--ok,#1e7a3c);font-weight:700}.de-bad{color:var(--bad,#b3261e);font-weight:700;font-size:.9rem}
input.mono{font-family:Consolas,monospace}
.de-foot{position:sticky;bottom:0;background:var(--card,#fff);padding:.6rem 0;border-top:1px solid var(--line,#ccd);margin-top:.8rem}
td.nowrap{white-space:nowrap}
/* worked example shown beside an empty list or field */
.exbox{border:2px dashed var(--line);border-radius:8px;padding:.5rem .8rem;margin:.6rem 0 1rem;background:var(--info-soft,#e8f0ff)}
.exbox b{display:block;margin-bottom:.2rem}
.exbox div{font-family:ui-monospace,Consolas,monospace}
textarea::placeholder,input::placeholder{color:var(--muted,#777);opacity:.8;font-style:italic}
/* one-page entry form: a heading for each step's boxes */
.wsec{margin:1.4rem 0 .6rem;padding-bottom:.3rem;border-bottom:2px solid var(--line-soft);color:var(--primary)}
.wsec:first-child{margin-top:0}
/* one-page form: the same columns in every section, so the boxes line up from section to section */
.onepage .fields{grid-template-columns:repeat(auto-fill,minmax(min(22rem,100%),1fr));align-items:start}
/* reports: all filters on one row on a wide screen, dates kept narrow, actions on their own row */
.rpfilters{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(14rem,1.4fr) minmax(14rem,1.4fr) 11rem 11rem;gap:1rem 1.25rem;align-items:end}
.rpfilters .field{margin:0}
.rpfilters select,.rpfilters input{width:100%}
.rpquick{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:1rem 0 0}
.rpquick .opt{min-height:40px;padding:.3rem .9rem}
.rpactions{margin:1.1rem 0 0;padding-top:1rem;border-top:1px solid var(--line-soft)}
.rpcount{font-size:1.1rem}
@media (max-width:1200px){ .rpfilters{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:700px){ .rpfilters{grid-template-columns:1fr 1fr} .rpfilters .field:not(.rpdate){grid-column:1/-1} }
/* register page (grid) — e.g. Train Signal Register T.1407/SL: columns as on the paper form */
table.reg tr.grp th{background:var(--surface2);color:var(--primary);font-size:.85rem;border-bottom:2px solid var(--line)}
.gridbar{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;margin:0 0 .8rem}
.gridbar input.gd{width:8.5rem;font-weight:700}
.gridwrap{max-height:none}
table.grid{font-size:.88rem}
table.grid th{font-size:.78rem;line-height:1.2;padding:.35rem .3rem;vertical-align:bottom;min-width:4.6rem}
table.grid th .hi{font-size:.72rem}
table.grid td{padding:.25rem .3rem;vertical-align:middle;white-space:nowrap}
table.grid td.gro{cursor:pointer}
table.grid .gin{font-size:.9rem;padding:.25rem .35rem;min-height:2.2rem;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);width:4.6rem}
table.grid .gin.gtrain{width:9rem}
table.grid .gin.gd{width:6.6rem}
table.grid select.gin{width:auto;max-width:10rem}
table.grid .gnow{min-height:2.2rem;padding:.2rem .45rem;border:1px dashed var(--primary);border-radius:6px;background:var(--surface);color:var(--primary);font-weight:700;cursor:pointer;white-space:nowrap}
table.grid .gnow:hover{background:var(--info-soft,#e8f0ff)}
table.grid .gbad{outline:3px solid var(--bad);outline-offset:1px}
table.grid tr.gdraft td{background:var(--warn-soft)}
table.grid tr.gopen td.ged{background:var(--info-soft,#e8f0ff)}
table.grid td.gnot{background:repeating-linear-gradient(45deg,transparent 0 6px,rgba(127,127,127,.08) 6px 12px)}
table.grid td.gact{white-space:nowrap}
table.grid .gpn{font-size:1rem}
table.grid tr.gbandhead th{background:var(--primary);color:var(--primary-text);text-align:left;padding:.45rem .7rem;position:sticky;left:0}
.gbandbar{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;font-size:1.05rem}
.gbandbar select{font-size:.95rem;padding:.2rem .4rem;border-radius:6px;color:#111;background:#fff}
.gband-st{font-weight:600;font-size:.9rem}
/* compact so the 20 columns of T.1407/SL fit a 1920 px screen; the Sign column always stays in view */
table.grid th{min-width:0;padding:.3rem .22rem;font-size:.74rem}
table.grid td{padding:.2rem .22rem}
table.grid .gin{width:3.9rem;font-size:.85rem;padding:.2rem .25rem;min-height:2rem}
table.grid .gin.gtrain{width:7.2rem}
table.grid .gin.gd{width:5.9rem}
table.grid .gnow{font-size:.78rem;padding:.15rem .3rem;min-height:2rem}
table.grid td.gact,table.grid thead th:last-child{position:sticky;right:0;z-index:2;background:var(--surface);box-shadow:-6px 0 8px -6px rgba(16,24,40,.25)}
table.grid tr.gdraft td.gact{background:var(--warn-soft)}
table.grid .gsign{min-height:2.1rem;padding:.2rem .55rem;font-size:.85rem}
table.grid td.gact{padding:.2rem .3rem}
table.grid th{font-size:.72rem}
table.grid .gin{width:3.7rem}
/* clock in the top bar, beside Sync now: a station-style digital clock (dark panel, amber time), always in view */
.tbclock{display:flex;align-items:center;gap:0;white-space:nowrap;border-radius:10px;overflow:hidden;background:#0A0F1A;border:1px solid rgba(255,201,64,.45);box-shadow:inset 0 0 10px rgba(0,0,0,.6),0 1px 4px rgba(0,0,0,.25);font-variant-numeric:tabular-nums}
.tbclock b{font-family:"Cascadia Mono",Consolas,"Roboto Mono",ui-monospace,monospace;font-size:1.85rem;line-height:1;letter-spacing:1px;color:#FFC940;text-shadow:0 0 8px rgba(255,201,64,.45);padding:.35rem .75rem}
.tbclock span{font-size:1.05rem;font-weight:700;color:#E8EDF5;padding:.35rem .75rem;align-self:stretch;display:flex;align-items:center;background:rgba(255,255,255,.08);border-left:1px solid rgba(255,201,64,.35)}
@media (max-width:1600px){ .tbclock b{font-size:1.55rem} .tbclock span{font-size:.95rem} }
/* register screens: Home, title and form number on one row (less space above the register) */
.reghead{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap;margin:0 0 .4rem}
.reghead h1{margin:0;font-size:1.6rem}
.reghead .formno{margin-left:auto}
.reghead .backbtn{min-height:40px}
.gtabs{align-items:center;margin:.2rem 0 .6rem}
.gtabs .gdate{display:flex;align-items:center;gap:.5rem;margin-left:1rem;flex-wrap:wrap}
.gtabs .gdate input.gd{width:7.5rem;font-weight:700;padding:.25rem .4rem}
.gtabs .gdate .btn,.gtabs > .btn{min-height:38px;padding:.2rem .8rem}
.ghelp{color:var(--muted);font-size:.85rem;cursor:help}
table.grid tr.gbandhead th{padding:.3rem .7rem}
.gbandbar{font-size:1rem}
/* the book-page register: one bar with page date, search and print */
div.gtabs{display:flex;flex-wrap:wrap;gap:.5rem .8rem;align-items:center;margin:.2rem 0 .6rem;padding-bottom:.5rem;border-bottom:2px solid var(--line-soft)}
div.gtabs .gdate{margin-left:0}
div.gtabs .gsearch{flex:0 1 26rem;min-height:38px;padding:.25rem .6rem;font-size:.95rem}
div.gtabs .btn{min-height:38px;padding:.2rem .8rem}
div.gtabs .gold{flex-basis:100%;margin:.3rem 0 0}
/* portrait register page: headings down the left, one train per column */
.gorient{display:inline-flex;gap:.3rem}
.gorient .opt.sm{min-height:36px;padding:.2rem .7rem;font-size:.9rem}
table.gport{width:auto;min-width:40rem}
table.gport th.gpl{text-align:left;font-size:.8rem;line-height:1.2;min-width:15rem;max-width:19rem;white-space:normal;position:sticky;left:0;z-index:2;background:var(--surface2);border-right:2px solid var(--line)}
table.gport th.gpl .hi{display:inline;margin-left:.35rem;font-weight:500;color:var(--muted)}
table.gport .gpno{display:inline-block;min-width:2.1rem;color:var(--primary);font-weight:800}
table.gport th.gpg{width:2.2rem;min-width:2.2rem;padding:0;position:sticky;left:0;z-index:2;background:var(--surface2);color:var(--primary);font-size:.78rem;vertical-align:middle}
table.gport th.gpg span{writing-mode:vertical-rl;transform:rotate(180deg);display:inline-block;padding:.3rem 0;white-space:nowrap}
table.gport th.gpcorner{position:sticky;left:0;z-index:3;background:var(--surface)}
table.gport td{min-width:8.5rem;text-align:left}
table.gport .gin,table.gport .gin.gtrain,table.gport .gin.gd{width:100%;box-sizing:border-box}
table.gport tr.gbandhead th,table.gport thead th.gbandhead{background:var(--primary);color:var(--primary-text);text-align:left;vertical-align:top;padding:.4rem .5rem;position:static}
.gbandbar.gcompact{flex-direction:column;align-items:flex-start;gap:.35rem;font-size:.95rem}
.gbandbar.gcompact .btn{min-height:34px;padding:.15rem .6rem}
table.gport td.gpempty{vertical-align:middle;text-align:center;min-width:12rem}
table.gport td.gdraft{background:var(--warn-soft)}
table.gport td.gopen.ged{background:var(--info-soft,#e8f0ff)}
table.gport tr.gpact td{position:static;box-shadow:none;text-align:center}
table.gport thead th:last-child{position:static;box-shadow:none;background:var(--primary)}
table.gport tr.gpgrp th{text-align:left;background:var(--surface2);color:var(--primary);font-size:.82rem;padding:.25rem .5rem;border-top:2px solid var(--line)}
table.gport tr.gpgap th{padding:0;height:4px}
table.gport td.gpempty{border-top:0;border-bottom:0;color:var(--muted)}
table.gport th.gpl,table.gport td{vertical-align:middle;padding-top:.2rem;padding-bottom:.2rem}
/* portrait v2: thin coloured block headers, add-train column, wider train columns */
table.gport{border-collapse:separate;border-spacing:0}
table.gport thead th.gbh{background:var(--primary);color:var(--primary-text);text-align:left;vertical-align:top;padding:.35rem .5rem;font-size:.95rem;white-space:nowrap;position:static;box-shadow:none}
table.gport thead th.gb-DN{background:#0F6B5C}
table.gport .gpcount{display:inline-block;min-width:1.4rem;text-align:center;border-radius:999px;background:rgba(255,255,255,.22);font-size:.8rem;padding:0 .35rem;margin-left:.3rem}
table.gport .gpst{display:flex;align-items:center;gap:.3rem;margin-top:.25rem;font-weight:600;font-size:.8rem}
table.gport .gpst select{font-size:.8rem;padding:.1rem .25rem;border-radius:5px;color:#111;background:#fff;max-width:8.5rem}
table.gport th.gpaddh{min-width:9rem}
table.gport .btn.gpadd{display:block;width:100%;margin-top:.3rem;min-height:2.1rem;padding:.2rem .5rem;font-size:.85rem;background:#fff;color:var(--primary);border:0;font-weight:800}
table.gport thead th.gb-DN .btn.gpadd{color:#0F6B5C}
table.gport td.gpaddc{background:repeating-linear-gradient(135deg,transparent 0 8px,rgba(127,127,127,.07) 8px 16px);border-left:2px dashed var(--line);min-width:9rem}
table.gport td{min-width:10.5rem;font-weight:600}
table.gport td.gb-DN{border-left-color:#0F6B5C}
table.gport th.gpl{min-width:17rem}
table.gport th.gpl .gpen{font-weight:700}
table.gport th.gpl .hi{display:block;margin:0 0 0 2.1rem;font-size:.75rem}
table.gport .gpno{float:left}
.gpnone{margin:.2rem 0 .6rem}
/* Train Signal Register: Entry and Register tabs on the page bar */
div.gtabs .gtabs2{margin:0 .6rem 0 0;border-bottom:0}
div.gtabs .gtabs2 .opt{min-height:40px;font-size:1rem}
div.gtabs .gtabs2 .cnt{display:inline-block;min-width:1.4rem;text-align:center;border-radius:999px;background:var(--warn);color:#fff;font-size:.8rem;padding:0 .35rem;margin-left:.2rem}
div.gtabs .gsearch{flex:1 1 12rem;max-width:22rem}
div.gtabs .gorient .opt.sm{padding:.2rem .55rem}
table.gport td.gpempty{text-align:center;color:var(--muted);min-width:8rem}
/* entry tab: history of today below the entry area */
.ghist{margin-top:1.4rem;padding-top:.8rem;border-top:3px solid var(--line-soft)}
.ghisthead{display:flex;align-items:center;gap:1rem;margin-bottom:.4rem}
.ghisthead h3{margin:0;font-size:1.1rem}
table.ghtab th{font-size:.72rem;vertical-align:bottom}
table.ghtab td{font-size:.85rem;cursor:pointer}
table.ghtab tbody tr:hover td{background:var(--surface2)}
.gdir{display:inline-block;padding:.05rem .45rem;border-radius:6px;background:var(--primary);color:var(--primary-text);font-size:.8rem}
.gdir.gb-DN{background:#0F6B5C}
/* one list of trains: the ＋ buttons and the UP/DN tags */
.gbandbar .btn.gaddm{margin-left:.5rem}
.gbandbar .btn.gaddm.gb-DN,table.gport .btn.gpadd.gb-DN{background:#0F6B5C;color:#fff;border-color:#0F6B5C}
table.gport .btn.gpadd + .btn.gpadd{margin-top:.3rem}
table.grid .gdir{margin-right:.25rem;vertical-align:middle}
.gbandbar .btn.gaddm{background:#fff;color:var(--primary);border:0;font-weight:800}
.gbandbar .btn.gaddm.gb-DN{background:#0F6B5C;color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.7)}
table.gport td .gdir + .gin{width:calc(100% - 3rem)}
/* field help card (right-click / long-press) */
#fhelp{position:fixed;z-index:60;display:none;width:min(24rem,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;background:var(--surface);color:var(--text);border:2px solid var(--primary);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.3);padding:.7rem .9rem;font-size:.92rem;line-height:1.4}
#fhelp.show{display:block}
#fhelp .fh-head{position:relative;padding-right:1.8rem;margin-bottom:.4rem}
#fhelp .fh-head b{font-size:1rem}
#fhelp .fh-x{position:absolute;right:-.3rem;top:-.3rem;border:0;background:none;color:var(--text);font-size:1.1rem;cursor:pointer;padding:.2rem .4rem}
#fhelp p{margin:.35rem 0}
#fhelp .fh-what{font-weight:600}
#fhelp ul.fh-rules{margin:.35rem 0;padding-left:0;list-style:none}
#fhelp ul.fh-rules li{margin:.15rem 0}
#fhelp .fh-src{background:var(--surface2);border-radius:8px;padding:.35rem .5rem}
#fhelp .fh-nav{display:flex;flex-direction:column;gap:.35rem;margin-top:.5rem}
#fhelp .fh-nav .btn{text-align:left}
#fhelp .fh-tip{border-top:1px solid var(--line-soft);padding-top:.35rem;margin-top:.5rem}
#fhelp .err-t{color:var(--danger,#B3261E);font-weight:600}
[data-help]{cursor:context-menu}
input[data-help],[data-help] input,[data-help] select,[data-help] button,[data-help] textarea{cursor:auto}
[data-help] button{cursor:pointer}
.fhhint{margin:.6rem 0 0}
.tbtn.tsz{min-width:2.6rem;font-weight:700;font-size:.95rem}
.tbtn.tsz:disabled{opacity:.4;cursor:default}
.sgn{display:block;white-space:nowrap}.sgn + .sgn{margin-top:.15rem}.sgnat{margin-left:.4rem;color:var(--muted,#5b6475);font-variant-numeric:tabular-nums}
/* pop-up windows: the buttons stay at the bottom, only the content above them scrolls */
#modalBox > .mfoot{position:sticky;bottom:-1.5rem;z-index:3;background:var(--surface);margin:1.25rem -2rem -1.5rem;padding:.9rem 2rem 1.2rem;border-top:1px solid var(--line-soft);box-shadow:0 -8px 16px -10px rgba(0,0,0,.25)}
/* register-page entry for every grid register: several boxes in one cell, staff ticks, long text, amounts */
table.grid .gmf{display:flex;flex-direction:column;gap:.1rem;margin:.1rem 0}
table.grid .gmf + .gmf{margin-top:.3rem;padding-top:.3rem;border-top:1px dashed var(--line-soft)}
table.grid .gml{font-size:.68rem;color:var(--muted,#5b6475);line-height:1.1}
table.grid textarea.gta{min-width:11rem;width:100%;resize:vertical;font:inherit;font-size:.85rem}
table.grid input.gnum{text-align:right;min-width:5rem}
table.grid .gmulti{display:flex;flex-direction:column;gap:.1rem;font-size:.82rem;text-align:left;white-space:nowrap}
table.grid .gmulti.gbad{outline:2px solid var(--danger,#B3261E)}
h3.ginprog{margin:1rem 0 .3rem}
/* Home: a solid, easy-to-find button at the top left of every page */
.btn.homebtn{min-height:44px;padding:.3rem 1.1rem .3rem .8rem;background:var(--primary);color:var(--primary-text,#fff);border:2px solid var(--primary);font-size:1rem;font-weight:800;box-shadow:var(--shadow);gap:.45rem}
.btn.homebtn .hico{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:50%;background:rgba(255,255,255,.2);font-size:1.15rem;line-height:1}
.btn.homebtn:hover{filter:brightness(1.12)}
.btn.homebtn:focus-visible{outline:3px solid var(--accent,#F5B400);outline-offset:2px}
@media print{.btn.homebtn{display:none}}
#opennow .homebtn{min-height:40px}
#opennow .obsep{width:1px;align-self:stretch;margin:.2rem .2rem;background:var(--line-soft)}
.navrow:empty{display:none}
/* profile menu (sync, colours, PIN) */
.prof{position:relative}
.profbtn{position:relative;gap:.35rem}
.profbtn .caret{font-size:.75rem;opacity:.8}
.profbtn .pbadge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--warn,#B26B00);color:#fff;font-size:.72rem;display:inline-flex;align-items:center;justify-content:center}
.profmenu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:19rem;background:var(--surface);color:var(--text);border:1px solid var(--line-soft);border-radius:14px;box-shadow:0 14px 36px rgba(0,0,0,.28);padding:.4rem;display:flex;flex-direction:column}
.profmenu .pmhead{display:flex;flex-direction:column;padding:.5rem .7rem .6rem;border-bottom:1px solid var(--line-soft);margin-bottom:.3rem}
.profmenu .pmhead span{font-size:.82rem;color:var(--muted,#5b6475)}
.profmenu button{display:flex;flex-direction:column;align-items:flex-start;gap:.1rem;text-align:left;background:none;border:0;border-radius:10px;padding:.6rem .7rem;font:inherit;font-weight:700;font-size:.98rem;color:var(--text);cursor:pointer;min-height:48px}
.profmenu button small{font-weight:400;font-size:.78rem;color:var(--muted,#5b6475)}
.profmenu button:hover,.profmenu button:focus-visible{background:var(--primary-soft)}
.profmenu button.pmout{margin-top:.3rem;border-top:1px solid var(--line-soft);border-radius:0 0 10px 10px;color:var(--bad,#B3261E)}
.profmenu button.pmout:hover{background:color-mix(in srgb,var(--bad,#B3261E) 10%,transparent)}
.sync .syncgo{margin-left:.3rem;padding:.15rem .6rem;border-radius:999px;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.45);white-space:nowrap;font-size:.85rem}
.sync:hover .syncgo{background:rgba(255,255,255,.35)}
/* top bar in three parts: who and sync (left) · the clock in the centre · tools (right) */
#topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
#topbar .tb-left{display:flex;align-items:center;gap:.6rem 1rem;min-width:0;flex-wrap:wrap}
#topbar .tb-right{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap;min-width:0}
#topbar .tbclock{justify-self:center}
/* the clock stands out: larger digits, amber glow and ring */
.tbclock{border:2px solid #FFC940;box-shadow:0 0 0 3px rgba(255,201,64,.18),0 0 18px rgba(255,201,64,.35),inset 0 0 12px rgba(0,0,0,.65)}
.tbclock b{font-size:2.35rem;padding:.3rem .95rem;text-shadow:0 0 10px rgba(255,201,64,.7),0 0 2px rgba(255,201,64,.9)}
.tbclock span{font-size:1.15rem;padding:.3rem .9rem}
@media (max-width:1600px){ .tbclock b{font-size:2rem} .tbclock span{font-size:1rem} }
@media (max-width:1150px){ #topbar{display:flex;flex-wrap:wrap} #topbar .tbclock{order:-1;width:100%;justify-content:center} }
/* keep the bar on one line: short sync label, name line shortened with … if space runs out */
#topbar .tb-left{flex-wrap:nowrap}
#topbar .tb-id{min-width:0}
#topbar .tb-id > div{min-width:0}
#topbar .stn,#topbar .who{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#topbar .sync{flex-shrink:0}
#topbar .sync.on .long{display:none} #topbar .sync.on .short{display:inline}
/* correction row on a book-style register */
table.grid tr.gfix td,table.gport td.gfix{background:var(--primary-soft)}
table.grid tr.gfix td.gchg,table.gport td.gfix.gchg{background:var(--warn-soft);box-shadow:inset 0 0 0 3px var(--warn,#B26B00)}
.gfixnote{display:flex;flex-direction:column;font-size:.85rem;margin-bottom:.3rem;text-align:left}
.gfixnote small{color:var(--muted,#5b6475);max-width:14rem;white-space:normal}
.gfixnote span{white-space:nowrap}
/* entry form: tighter, calmer (buttons still 46px+ for touch) */
.steps .st{min-height:0;padding:.35rem .9rem;display:flex;align-items:baseline;gap:.5rem;box-shadow:none}
.steps .st small{display:inline;opacity:.85}
.wizcard{padding-top:.6rem}
.wizcard .field label.l{font-size:.98rem;margin-bottom:.3rem}
.wizcard .field input,.wizcard .field select{min-height:48px;font-size:1.05rem}
.wizcard .field textarea{min-height:4.2rem;font-size:1.05rem}
.wizcard .autoval{min-height:48px;font-size:1.1rem}
.wizcard .dt{gap:.35rem;flex-wrap:nowrap}
.wizcard .dt button{min-width:46px;min-height:48px;font-size:1.1rem}
.wizcard .dt .val{min-width:6.4rem;font-size:1.25rem;padding:.4rem .5rem}
.wizcard .opts{gap:.45rem}
.wizcard .opt{min-height:48px;min-width:3.6rem;padding:.3rem .9rem;font-size:1rem}
.wizcard .opt[aria-pressed="true"]{border-width:3px;box-shadow:0 0 0 2px var(--primary-soft)}
.wizcard .opt[aria-pressed="true"]::before{content:"✔ ";color:var(--primary)}
.wizcard .help.listnote{color:var(--warn,#B26B00);background:var(--warn-soft);border-left:4px solid var(--warn,#B26B00);padding:.3rem .6rem;border-radius:6px;margin-top:.4rem}
.onepage .fields{grid-template-columns:repeat(auto-fill,minmax(min(18rem,100%),1fr));gap:1rem 1.6rem}
.wsecb{padding:.9rem 0 1rem;border-top:1px solid var(--line-soft)}
.wsecb:first-child{border-top:0;padding-top:.3rem}
.wsecb .wsec{display:flex;align-items:center;gap:.55rem;margin:0 0 .7rem;padding:0;border:0;font-size:1.05rem}
.wsn{display:inline-flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;border-radius:50%;background:var(--primary);color:var(--primary-text);font-size:.9rem;flex-shrink:0}
@media(min-width:1280px){
  .wsecb{display:grid;grid-template-columns:11.5rem minmax(0,1fr);gap:1.5rem;align-items:start}
  .wsecb .wsec{margin:0;padding-top:1.7rem;align-items:flex-start}
}
.wizcard .wizfoot{padding:.55rem 0 .35rem;margin-top:.6rem}
.wizcard .opt{padding:.3rem .7rem;min-width:3rem}
/* date/time value never squeezed; short numeric choices (speeds, marks) as one joined strip */
.dt .val{flex-shrink:0;white-space:nowrap}
.wizcard .dt .val{min-width:0;padding:.4rem .6rem}
.opts.segs{gap:0;flex-wrap:nowrap}
.opts.segs .opt{border-radius:0;margin-left:-2px;min-width:2.9rem;padding:.3rem .55rem;text-align:center;border-width:2px}
.opts.segs .opt:first-child{border-radius:10px 0 0 10px;margin-left:0}
.opts.segs .opt:last-child{border-radius:0 10px 10px 0}
.opts.segs .opt[aria-pressed="true"]{position:relative;z-index:1;background:var(--primary);color:var(--primary-text);border:2px solid var(--primary);box-shadow:none}
.wizcard .opts.segs .opt[aria-pressed="true"]::before{content:none}
@media(max-width:600px){.opts.segs{flex-wrap:wrap}}
.wizcard .wizfoot .btn.big{min-height:50px;padding:.4rem 1.4rem}
/* setup export / import */
table.sio td{vertical-align:middle}
table.sio td.sio-ck{width:2.6rem;text-align:center} table.sio td.sio-ck input{width:20px;height:20px}
table.sio td.sio-st{width:7.5rem}
table.sio tr.sio-off td{opacity:.6}
.sio-grp{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.sio-grp h3{margin:0}
.sio-h2{margin-top:1.4rem}
.sio-foot{position:sticky;bottom:0;background:var(--surface);padding:.6rem 0;margin-top:.8rem;border-top:1px solid var(--line-soft)}
.siobar{display:inline-flex;gap:.5rem;flex-wrap:wrap}
.banner.nolist p{margin:.35rem 0 .5rem;font-weight:400}
.lockswitch{text-align:center;margin:1rem 0 0}
.linkbtn{background:none;border:0;padding:.3rem .5rem;color:var(--muted,#5b6475);font:inherit;font-size:.9rem;text-decoration:underline;cursor:pointer}
.linkbtn:hover,.linkbtn:focus-visible{color:var(--primary)}
/* vendor logo: login screen and profile menu (not on registers or prints) */
.lvendor{display:flex;align-items:center;gap:.6rem;margin-top:1rem;opacity:.9}
.lvendor span{font-size:.8rem;color:rgba(255,255,255,.75)}
.lvendor img{height:34px;width:auto}
.pmvendor{display:flex;align-items:center;justify-content:center;gap:.5rem;border-top:1px solid var(--line-soft);margin-top:.3rem;padding:.55rem .7rem .3rem}
.pmvendor span{font-size:.75rem;color:var(--muted,#5b6475)}
.pmvendor img{height:24px;width:auto}
.pmvendor .vlogo-night{display:none}
:root[data-theme="night"] .pmvendor .vlogo-day{display:none}
:root[data-theme="night"] .pmvendor .vlogo-night{display:inline}
/* login: vendor mark as a quiet footer of the white panel, logo in its own colours */
.lfoot{margin-top:auto;padding-top:2rem;display:flex;align-items:center;justify-content:flex-end;gap:.7rem}
.lfoot span{font-size:.8rem;letter-spacing:.02em;color:var(--muted,#5b6475)}
.lfoot img{height:40px;width:auto;display:block}
.lfoot .vlogo-night{display:none}
:root[data-theme="night"] .lfoot .vlogo-day{display:none}
:root[data-theme="night"] .lfoot .vlogo-night{display:block}
