:root {
  --brand: #0E5A43; --brand-ink: #fff; --accent: #F5B400;
  --bg: #F3F5F7; --card: #fff; --ink: #0F172A; --muted: #5B6676; --line: #E2E6EB;
  --ok: #0A8F4E; --bad: #D0312D; --warn: #C77700; --info: #1E63D6;
  --r: 14px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
svg { width: 20px; height: 20px; flex: none; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
#app { min-height: 100%; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #0B1220; color: #CBD5E1; padding: 16px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.side .brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; color: #fff; }
.side .brand img { width: 38px; height: 38px; border-radius: 10px; }
.side .brand b { display: block; font-size: 15px; line-height: 1.2; }
.side .brand small { color: #94A3B8; font-size: 12px; }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #CBD5E1; text-decoration: none; font-weight: 500; }
.side a.nav:hover { background: rgba(255,255,255,.06); }
.side a.nav.on { background: var(--brand); color: var(--brand-ink); }
.side a.nav .badge { margin-left: auto; }
.side .grow { flex: 1; }
.side .who { border-top: 1px solid rgba(255,255,255,.08); padding: 12px 8px 0; font-size: 13px; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.topbar h1 { font-size: 17px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .iconbtn { color: inherit; }
.page { padding: 16px; max-width: 1200px; margin: 0 auto; padding-bottom: calc(90px + var(--safe-b)); }
.bottom { display: none; }
.net { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.18); white-space: nowrap; }
.net.off { background: var(--bad); color: #fff; }

@media (max-width: 860px) {
  .shell { display: block; }
  .side { display: none; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
  .bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; color: var(--muted); text-decoration: none; font-weight: 600; position: relative; }
  .bottom a svg { width: 24px; height: 24px; }
  .bottom a.on { color: var(--brand); }
  .bottom a.on::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .bottom a.count { color: #fff; }
  .bottom a.count .fab { width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); border: 4px solid #fff; }
  .bottom a.count span { color: var(--muted); }
  .bottom a.count.on span { color: var(--brand); }
  .bottom a.count.on::before { display: none; }
  .page { padding: 12px; padding-bottom: calc(96px + var(--safe-b)); }
}
@media (min-width: 861px) { .topbar .menu-only { display: none; } }

/* ---------- elements ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card h2, .h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .sp { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .g2.stack { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 16px; font-weight: 600; cursor: pointer; background: #E9EDF1; color: var(--ink); text-decoration: none; min-height: 44px; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.accent { background: var(--accent); color: #111; }
.btn.ok { background: var(--ok); color: #fff; } .btn.bad { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.sm { padding: 6px 11px; min-height: 34px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.iconbtn { background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; }
.iconbtn svg { width: 22px; height: 22px; }

label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.inp, select.inp, textarea.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; min-height: 44px; outline: none; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.check { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #CBD5E1; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .5; cursor: not-allowed; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { white-space: nowrap; border: 1.5px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip .n { font-size: 11px; opacity: .75; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #E9EDF1; color: #334155; white-space: nowrap; }
.badge.open { background: #DCFCE7; color: #166534; } .badge.review { background: #FEF3C7; color: #92400E; }
.badge.closed { background: #E0E7FF; color: #3730A3; } .badge.cancelled { background: #F1F5F9; color: #64748B; }
.badge.short { background: #FEE2E2; color: #B91C1C; } .badge.over { background: #DBEAFE; color: #1D4ED8; }
.badge.match { background: #DCFCE7; color: #166534; } .badge.not_counted { background: #F1F5F9; color: #475569; }
.badge.unknown { background: #FDE68A; color: #92400E; } .badge.warn { background: #FFEDD5; color: #9A3412; }
.badge.admin { background: #EDE9FE; color: #5B21B6; } .badge.manager { background: #DBEAFE; color: #1E40AF; } .badge.staff { background: #F1F5F9; color: #334155; }

.kpi { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 22px; font-weight: 800; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.bad .v { color: var(--bad); } .kpi.ok .v { color: var(--ok); } .kpi.info .v { color: var(--info); } .kpi.warn .v { color: var(--warn); }
.neg { color: var(--bad); } .pos { color: var(--info); } .zero { color: var(--ok); }

.progress { height: 10px; background: #E5E9EE; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #F8FAFC; }
.tablewrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }

.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.li:last-child { border-bottom: 0; }
.li .t1 { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .t2 { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .end { text-align: right; flex: none; }
.li .end b { display: block; font-variant-numeric: tabular-nums; font-size: 16px; }
.li input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }

.sess { display: block; text-decoration: none; color: inherit; }
.sess .top { display: flex; gap: 8px; align-items: center; }
.sess .name { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess .meta { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; opacity: .4; }

.sticky-actions { position: sticky; bottom: calc(70px + var(--safe-b)); z-index: 15; background: #0B1220; color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@media (min-width: 861px) { .sticky-actions { bottom: 16px; } }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(11,18,32,.55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: #fff; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); animation: up .2s; }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 20px; } }
.modal h3 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.modal h3 .sp { flex: 1; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(30px); opacity: .6; } }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); top: max(14px, env(safe-area-inset-top)); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { background: #0B1220; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 600; font-size: 14px; animation: up .2s; pointer-events: auto; }
.toast.bad { background: var(--bad); } .toast.ok { background: var(--ok); } .toast.warn { background: var(--warn); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--brand), #0B1220 70%); }
.login .box { background: #fff; border-radius: 22px; padding: 26px 22px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login .logo { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto 12px; }
.login h1 { text-align: center; font-size: 21px; margin: 0; }
.login p.sub { text-align: center; color: var(--muted); margin: 4px 0 20px; }

/* ---------- COUNTING SCREEN (dark, high-contrast) ---------- */
.counter { position: fixed; inset: 0; background: #05080F; color: #F8FAFC; display: flex; flex-direction: column; z-index: 50; }
.counter .ctop { display: flex; align-items: center; gap: 6px; padding: 8px 8px; padding-top: max(8px, env(safe-area-inset-top)); background: #0B1220; border-bottom: 1px solid #1E293B; }
.counter .ctop .ttl { flex: 1; min-width: 0; }
.counter .ctop .ttl small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counter .ctop .ttl b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counter .ctop .ttl small { color: #94A3B8; font-size: 12px; }
.zonebtn { background: var(--accent); color: #111; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 14px; max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 40px; cursor: pointer; }
.syncpill { font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 99px; background: #14532D; color: #BBF7D0; white-space: nowrap; border: 0; cursor: pointer; }
.syncpill.pending { background: #713F12; color: #FDE68A; } .syncpill.off { background: #7F1D1D; color: #FECACA; }
.cbody { flex: 1; overflow-y: auto; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.scanbar { display: flex; gap: 8px; }
.scanbar .inp { background: #0F172A; border: 2px solid #334155; color: #fff; font-size: 18px; font-weight: 600; min-height: 54px; border-radius: 14px; }
.scanbar .inp:focus { border-color: var(--accent); box-shadow: none; }
.scanbar .inp::placeholder { color: #64748B; font-weight: 500; }
.scanbar .sbtn { width: 56px; min-height: 54px; border-radius: 14px; border: 0; background: #1E293B; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.scanbar .sbtn.camb { background: var(--accent); color: #111; }
.scanbar .sbtn svg { width: 26px; height: 26px; }
.results { background: #0F172A; border: 1px solid #334155; border-radius: 14px; overflow: hidden; }
.results .r { padding: 12px 14px; border-bottom: 1px solid #1E293B; cursor: pointer; }
.results .r:last-child { border: 0; }
.results .r b { display: block; } .results .r small { color: #94A3B8; }
.item { background: #0F172A; border: 2px solid #1E293B; border-radius: 18px; padding: 14px; }
.item.flash { animation: flash .5s; }
@keyframes flash { 0% { border-color: var(--accent); background: #1c2a12; } 100% { border-color: #1E293B; } }
.item.unknown { border-color: #B45309; }
.item.dup { border-color: #CA8A04; }
.dupbox { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: #422006; border: 1.5px dashed #CA8A04; border-radius: 14px; padding: 10px 14px; }
.dupbox .dl { flex: 1; } .dupbox .dl b { display: block; color: #FDE68A; font-size: 15px; } .dupbox .dl small { color: #FCD34D; opacity: .85; font-size: 12px; }
.dupbox .dq { font-size: 34px; font-weight: 900; color: #FDE68A; font-variant-numeric: tabular-nums; }
.qdisp.new { border-color: #22C55E; } .qdisp.new b { color: #4ADE80; }
.dupsum { text-align: center; margin-top: 10px; font-size: 15px; color: #CBD5E1; font-variant-numeric: tabular-nums; }
.dupsum span { color: #64748B; margin: 0 4px; } .dupsum b { color: #fff; font-size: 20px; }
.item .nm { font-size: 19px; font-weight: 800; line-height: 1.25; }
.item .codes { color: #94A3B8; font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.item .tag { background: #1E293B; color: #CBD5E1; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.item .tag.warn { background: #78350F; color: #FDE68A; } .item .tag.bad { background: #7F1D1D; color: #FECACA; }
.qtyrow { display: grid; grid-template-columns: 82px 1fr 82px; gap: 10px; align-items: stretch; margin-top: 14px; }
.qbtn { border: 0; border-radius: 16px; font-size: 38px; font-weight: 800; color: #fff; cursor: pointer; min-height: 82px; touch-action: manipulation; user-select: none; }
.qbtn.minus { background: #7F1D1D; } .qbtn.plus { background: #15803D; }
.qbtn:active { filter: brightness(1.25); transform: scale(.97); }
.qdisp { background: #020617; border: 2px solid #334155; border-radius: 16px; text-align: center; display: flex; flex-direction: column; justify-content: center; cursor: pointer; }
.qdisp b { font-size: 46px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.qdisp small { color: #94A3B8; font-size: 12px; margin-top: 4px; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.quick button { background: #1E293B; color: #fff; border: 0; border-radius: 12px; min-height: 46px; font-weight: 800; font-size: 16px; cursor: pointer; }
.quick button.enter { background: #334155; }
.mode { display: flex; background: #0F172A; border-radius: 12px; padding: 4px; border: 1px solid #1E293B; }
.mode button { flex: 1; border: 0; background: none; color: #94A3B8; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.mode button.on { background: #F8FAFC; color: #0B1220; }
.clist .h { display: flex; justify-content: space-between; color: #94A3B8; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 4px 2px 6px; }
.cline { display: flex; gap: 10px; align-items: center; padding: 11px 12px; background: #0B1220; border-radius: 12px; margin-bottom: 6px; cursor: pointer; border: 1px solid transparent; }
.cline.sel { border-color: var(--accent); }
.cline .nm { flex: 1; min-width: 0; } .cline .nm b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cline .nm small { color: #94A3B8; font-size: 12px; }
.cline .q { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cline .dot { width: 8px; height: 8px; border-radius: 50%; background: #FACC15; flex: none; }
.cline .dot.ok { background: #22C55E; }
.cfoot { display: flex; gap: 10px; align-items: center; padding: 10px 12px calc(10px + var(--safe-b)); background: #0B1220; border-top: 1px solid #1E293B; }
.cfoot .st { flex: 1; font-size: 13px; color: #94A3B8; } .cfoot .st b { color: #fff; font-size: 16px; }
.counter .btn { background: #1E293B; color: #fff; }
.counter .btn.accent { background: var(--accent); color: #111; }
.cbanner { background: #7F1D1D; color: #FECACA; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.cbanner.warn { background: #713F12; color: #FDE68A; }

/* camera overlay */
.cam { position: fixed; inset: 0; background: #000; z-index: 120; display: flex; flex-direction: column; }
.cam video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.cam .frame { position: absolute; left: 8%; right: 8%; top: 38%; height: 24%; border: 3px solid var(--accent); border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; }
.cam .frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #EF4444; box-shadow: 0 0 8px #EF4444; animation: scanl 1.6s infinite ease-in-out; }
@keyframes scanl { 50% { transform: translateY(-30px); } }
.cam .ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; padding: 18px 16px calc(18px + var(--safe-b)); background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.cam .msg { position: absolute; left: 0; right: 0; top: max(16px, env(safe-area-inset-top)); text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #000; padding: 0 16px; }
.cam .last { position: absolute; left: 50%; transform: translateX(-50%); top: 64%; margin-top: 14px; background: rgba(21,128,61,.95); color: #fff; padding: 8px 14px; border-radius: 12px; font-weight: 800; max-width: 86%; text-align: center; }

/* numpad */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.numpad button { min-height: 58px; border-radius: 14px; border: 0; background: #EEF1F4; font-size: 24px; font-weight: 800; cursor: pointer; }
.numpad button.go { background: var(--brand); color: #fff; font-size: 18px; }
.numdisp { font-size: 40px; font-weight: 900; text-align: center; padding: 10px; border: 2px solid var(--line); border-radius: 14px; font-variant-numeric: tabular-nums; min-height: 70px; }

.dropzone { border: 2px dashed #CBD5E1; border-radius: 14px; padding: 26px 14px; text-align: center; cursor: pointer; background: #F8FAFC; }
.dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.colorbox { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0; cursor: pointer; }
.iconprev { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.iconprev canvas { border-radius: 18%; box-shadow: var(--shadow); }
.spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.modal table.t { font-size: 12.5px; } .modal table.t td, .modal table.t th { padding: 7px 6px; }
.modal table.t td.small { white-space: nowrap; }

.net.pend { background: var(--accent); color: #111; }
.steps { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.step .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EEF1F4; font-weight: 800; flex: none; color: var(--muted); }
.step.done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); } .step.done .ic { background: var(--ok); color: #fff; }
.step.err .ic { background: var(--warn); color: #fff; }
.step .ic .spin { width: 14px; height: 14px; border-width: 2px; color: var(--brand); }

/* footer: copyright · crafted by MNM · support */
.footwrap { max-width: 1200px; margin: 0 auto; padding: 0 16px calc(84px + var(--safe-b)); }
@media (min-width: 861px) { .footwrap { padding-bottom: 18px; } }
.page { padding-bottom: 8px !important; }
.appfoot { text-align: center; font-size: 11.5px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding: 12px 8px 4px; margin-top: 8px; }
.appfoot b { color: var(--brand); font-weight: 800; letter-spacing: .03em; }
.appfoot a { color: inherit; font-weight: 600; }
.appfoot .sup { margin-top: 2px; font-weight: 600; color: #334155; }
.appfoot.dark { color: rgba(255,255,255,.75); border-top-color: rgba(255,255,255,.18); margin-top: 18px; max-width: 400px; }
.appfoot.dark b { color: var(--accent); } .appfoot.dark .sup { color: #fff; }
.login { flex-direction: column; display: flex; align-items: center; justify-content: center; }
.modal .appfoot { margin-top: 14px; }

.ochip { background: rgba(255,255,255,.18); color: inherit; border: 1.5px solid rgba(255,255,255,.35); border-radius: 99px; padding: 4px 10px; font-weight: 800; font-size: 12px; cursor: pointer; letter-spacing: .03em; white-space: nowrap; }
.ocode { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 12.5px; letter-spacing: .03em; flex: none; }
.ocode.big { min-width: 56px; height: 44px; font-size: 14px; border-radius: 12px; }
