:root {
  --navy: #1B2235;
  --navy-2: #3A4A78;
  --ink: #141A2B;
  --muted: #5B6475;
  --line: #E6E9EF;
  --line-2: #CBD2DD;
  --bg: #EEF1F5;
  --card: #FFFFFF;
  --soft: #F6F7FA;
  --green: #2F6B4F;
  --green-bg: #E3F1E8;
  --red: #B42318;
  --red-bg: #FFF6F5;
  --amber: #8A4B08;
  --amber-bg: #FFF1DC;
  --r: 16px;
  --shadow: 0 1px 2px rgba(20, 26, 43, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 18px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.c { text-align: center; }
.b { font-weight: 800; }
.t-red { color: var(--red); }
.t-green { color: var(--green); }

.top { background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.brand b { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand span { font-size: 13px; color: #C9D0DE; }
.brand img { align-self: center; flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { color: #fff; text-decoration: none; border-radius: 9px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.top nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.top nav a.on { background: #fff; color: var(--navy); font-weight: 700; }
.top .sp { flex: 1 1 0; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #C9D0DE; }
.who b { color: #fff; }
.store-chip { background: rgba(255,255,255,.1); border-radius: 9px; padding: 6px 10px; color: #fff; font-weight: 700; font-size: 13px; }
.top form { margin: 0; }
.top .out { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 9px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

.page { max-width: 1440px; margin: 0 auto; padding: 22px 24px 40px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin-bottom: 16px; }
.head .sp { flex: 1 1 0; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .page { padding: 16px; } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row .sp { flex: 1 1 0; }

.stat { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-weight: 800; font-size: 28px; margin-top: 2px; }
.stat.dark { background: var(--navy); color: #fff; }
.stat.dark .k { color: #C9D0DE; }

label.f { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input:not([type]), input[type=text], input[type=tel], input[type=search], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; color: var(--ink);
}
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { color: #fff; background: var(--navy-2); }
.btn.sec { background: #fff; color: var(--navy); border: 1px solid var(--line-2); }
.btn.sec:hover { border-color: var(--navy); color: var(--navy); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.big { height: 60px; font-size: 18px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; background: var(--soft); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding: 11px 12px; font-weight: 700; white-space: nowrap; }
table.t td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr.hl td { background: #F7FBF8; }
table.t tr.warn td { background: var(--red-bg); }
table.t tr.tot td { border-top: 2px solid var(--ink); background: var(--soft); font-weight: 800; }

.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.badge.err { background: var(--red-bg); color: var(--red); }
.badge.dark { background: var(--navy); color: #fff; }
.size { display: inline-block; min-width: 34px; padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 7px; font-weight: 800; text-align: center; }

.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-weight: 600; }
.flash.ok { background: var(--green-bg); color: var(--green); }
.flash.err { background: var(--red-bg); color: var(--red); }
.flash.info { background: #E6EDF7; color: var(--navy); }

.log { background: #0F1424; color: #CFE3D6; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; border-radius: 12px; padding: 12px 14px; max-height: 320px; overflow: auto; white-space: pre-wrap; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login .card { width: 100%; max-width: 380px; }
.login .brand { color: var(--navy); justify-content: center; margin-bottom: 18px; }
.login .brand span { color: var(--muted); }
[hidden] { display: none !important; }
.subbar { padding: 10px 24px; font-size: 14px; }
.subbar.warn { background: #FFF4E5; color: #8A5300; border-bottom: 1px solid #F5D9A8; }
.subbar.err { background: #FDECEA; color: var(--red, #B42318); border-bottom: 1px solid #F4C7C3; }
.t td a.b, .t td.b { overflow-wrap: anywhere; }
.card h1 { overflow-wrap: anywhere; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bars .bar i { display: block; width: 100%; background: var(--navy, #1B2235); border-radius: 4px 4px 0 0; min-height: 0; }
.bars .bar span { font-size: 11px; color: var(--muted); margin-top: 4px; }
.sizebox { border: 1px solid var(--line, #E3E7EE); border-radius: 12px; padding: 10px 12px; }
.size.top { background: var(--navy, #1B2235); color: #fff; border-color: var(--navy, #1B2235); }
.btn.wa { background: #1F8F4E; color: #fff; text-decoration: none; }
.btn.wa:hover { background: #17733e; }
details > summary { list-style: none; cursor: pointer; } details > summary::-webkit-details-marker { display: none; }
.tabs { display: inline-flex; gap: 4px; background: #E3E7EE; padding: 4px; border-radius: 10px; }
.tabs a { padding: 7px 14px; border-radius: 7px; font-weight: 700; font-size: 14px; color: #4A5468; text-decoration: none; }
.tabs a.on { background: #1B2235; color: #fff; }

.top { position: relative; }
.top nav { align-items: center; }
.nav-sep { width: 1px; height: 20px; background: rgba(255,255,255,.18); margin: 0 6px; }
details.dd { position: relative; }
details.dd > summary { list-style: none; cursor: pointer; color: #fff; border-radius: 9px; padding: 8px 12px; font-weight: 600; font-size: 14px; user-select: none; }
details.dd > summary::-webkit-details-marker { display: none; }
details.dd > summary::after { content: "▾"; margin-left: 6px; font-size: 11px; opacity: .7; }
details.dd > summary:hover, details.dd[open] > summary { background: rgba(255,255,255,.08); }
details.dd.on > summary { background: #fff; color: var(--navy); font-weight: 700; }
.dd-menu { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; min-width: 210px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(20,26,43,.22); padding: 6px; display: grid; }
.top nav .dd-menu a { color: var(--ink); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.top nav .dd-menu a:hover { background: var(--soft); color: var(--ink); }
.top nav .dd-menu a.on { background: var(--navy); color: #fff; }
.dd-menu.cols { grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 2px 12px; min-width: 480px; padding: 10px; }
.dd-g { display: grid; align-content: start; }
.dd-h { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 12px 3px; }
.top nav .dd-menu a { display: flex; align-items: center; gap: 8px; }
.nb { margin-left: auto; background: #E5484D; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; line-height: 18px; padding: 0 6px; min-width: 18px; text-align: center; font-style: normal; }
.top nav .dd-menu a.on .nb { background: #fff; color: #B42318; }
.nb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #FF8A3D; margin-left: 6px; vertical-align: 2px; font-style: normal; }
.top nav > a .nb { margin-left: 6px; vertical-align: 1px; display: inline-block; }
.dd-more { appearance: none; border: 0; background: none; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; margin-top: 4px; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; border-radius: 0 0 8px 8px; }
.dd-more::after { content: "▾"; font-size: 11px; margin-left: auto; transition: transform .15s; }
.dd-more[aria-expanded="true"]::after { transform: rotate(180deg); }
.dd-more:hover { color: var(--ink); background: var(--soft); }
.dd-more:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.dd-extra { display: grid; }
.dd-extra[hidden] { display: none; }
.top nav .dd-extra a { font-weight: 500; }
.burger { display: none; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 9px; width: 42px; height: 38px; font-size: 18px; cursor: pointer; }
@media (max-width: 860px) {
  .top { padding: 10px 14px; gap: 8px 10px; }
  .burger { display: inline-block; order: 2; margin-left: auto; }
  .brand { order: 1; }
  .top .sp { display: none; }
  .who { order: 3; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .top nav { order: 4; display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; }
  .top nav.open { display: flex; }
  .top nav a, details.dd > summary { padding: 11px 12px; }
  .nav-sep { display: none; }
  .dd-menu { position: static; box-shadow: none; background: rgba(255,255,255,.06); min-width: 0; margin: 2px 0 6px; }
  .top nav .dd-menu a { color: #fff; }
  .top nav .dd-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .top nav .dd-menu a.on { background: #fff; color: var(--navy); }
  .dd-menu.cols { grid-template-columns: 1fr; min-width: 0; padding: 6px; }
  .dd-h { color: rgba(255,255,255,.5); }
  .dd-more { color: rgba(255,255,255,.7); border-top-color: rgba(255,255,255,.12); }
  .dd-more:hover { color: #fff; background: rgba(255,255,255,.08); }
}
.stat .d { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.stat.dark .d { color: #C9D0DE; }
.stat .d b { color: var(--ink); }
.stat .up { color: #1F8F4E; font-weight: 800; }
.stat .down { color: #D0432F; font-weight: 800; }
.stat.dark .up { color: #7FE0A6; }
.stat.dark .down { color: #FFA69A; }
.kpis .stat .v { font-size: 26px; white-space: nowrap; }
.bars.chart .bar { position: relative; min-width: 0; }
.bars.chart .bar em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.bars.chart .bar i { background: #C5CCDA; }
.bars.chart .bar.we i { background: #9AA5BD; }
.bars.chart .bar.now i { background: var(--green); }
.bars.chart .bar span { text-align: center; line-height: 1.2; }
.alert-list { display: grid; gap: 8px; margin-top: 12px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; background: var(--soft); color: var(--ink); }
.alert i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-2); flex: none; }
.alert span { flex: 1; }
.alert.warn { background: var(--amber-bg); color: #5E3405; } .alert.warn i { background: #D58512; }
.alert.err { background: var(--red-bg); color: #7A1810; } .alert.err i { background: var(--red); }
.alert:hover { filter: brightness(.97); color: inherit; }
.meter { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--navy-2); border-radius: 99px; }
.split { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--soft); }
.split i, .dot { display: block; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.cash { background: var(--green); } .cardp { background: var(--navy-2); } .bonus { background: #D58512; }
.tabs.wrap { display: flex; flex-wrap: wrap; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; margin-left: auto; font-weight: 800; font-size: 20px; color: var(--muted); }
details.fold[open] > summary::after { content: "−"; }
.grid > .card + .card, .grid > .stat + .stat { margin-top: 0; }
details.dd-inline { position: relative; }
details.dd-inline > summary { list-style: none; }
details.dd-inline > summary::-webkit-details-marker { display: none; }
.dd-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(20,26,43,.18); padding: 6px; display: grid; min-width: 240px; max-height: 360px; overflow: auto; }
.dd-pop a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.dd-pop a:hover { background: var(--soft); }
.meter.ok i { background: var(--green); }
.meter.warn i { background: #E0A100; }
.meter.err i { background: #D64545; }
.plan-mini { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.plan-mini.ok { color: var(--green); }
.alert.info { background: var(--soft); color: var(--ink); } .alert.info i { background: var(--navy-2); }

.dlg { max-height: 88vh; overflow: auto; border: 0; border-radius: 18px; padding: 0; width: min(920px, 94vw); box-shadow: 0 24px 70px rgba(15, 20, 35, .32); color: var(--ink); font: inherit; }
.dlg::backdrop { background: rgba(20, 26, 43, .5); backdrop-filter: blur(2px); }
.dlg form { padding: 18px; margin: 0; }
.dlg-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.small-dlg { width: min(420px, 94vw); }
.small-dlg input { margin-top: 10px; }
.msg-dlg { width: min(430px, 92vw); }
.msg-dlg[open] { animation: dlg-in .16s ease-out; }
@keyframes dlg-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg form.msg { padding: 26px 24px 20px; text-align: center; }
.msg-ic { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 26px; font-weight: 800; background: var(--soft); color: var(--navy); }
.msg-ic.danger { background: var(--red-bg); color: var(--red); } .msg-ic.warn { background: var(--amber-bg); color: var(--amber); }
.msg-text { font-size: 16px; font-weight: 600; line-height: 1.45; white-space: pre-line; }
.msg-in { margin-top: 14px; height: 48px; font-size: 17px; font-weight: 700; }
.msg-btns { display: flex; gap: 10px; margin-top: 20px; }
.msg-btns .btn { flex: 1; height: 46px; justify-content: center; }
.zoom-dlg { width: auto; max-width: 94vw; }
.dlg form.zoom { padding: 12px; }
.zoom img { display: block; max-width: min(86vw, 760px); max-height: 72vh; border-radius: 12px; margin: 0 auto; }
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 1000; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 26px rgba(15, 20, 35, .28); animation: dlg-in .18s ease-out; transition: opacity .3s; }
.toast.ok { background: var(--green); } .toast.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .msg-dlg[open], .toast { animation: none; } }

.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--soft); flex: none; display: inline-block; vertical-align: middle; border: 1px solid var(--line); }
img.thumb { cursor: zoom-in; }
.thumb.none { background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B6BECC' stroke-width='1.6'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m5 17 4.5-4 3 2.5L16 12l3 3'/%3E%3C/svg%3E") center / 22px no-repeat; }
button.thumb.add { border: 1.5px dashed var(--line-2); color: var(--muted); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; padding: 0; background: #fff; }
button.thumb.add:hover { border-color: var(--navy); color: var(--navy); }
.thumb.big { width: 132px; height: 132px; border-radius: 14px; font-size: 34px; }
.with-thumb { display: flex; align-items: center; gap: 10px; }
.photo-pick { width: 92px; height: 92px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: #fff center / cover no-repeat; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); display: grid; place-items: center; text-align: center; padding: 6px; flex: none; }
.photo-pick:hover { border-color: var(--navy); color: var(--navy); }
.photo-pick.has { border-style: solid; color: transparent; }

.top .ico { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 9px; height: 34px; min-width: 36px; padding: 0 9px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.top .ico:hover { background: rgba(255,255,255,.08); }
details.bell { position: relative; } details.bell > summary { list-style: none; } details.bell > summary::-webkit-details-marker { display: none; }
.bell-n { background: #E5484D; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 1px 6px; min-width: 18px; text-align: center; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(400px, 92vw); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 16px 44px rgba(15, 20, 35, .28); padding: 14px; z-index: 60; }
.bell-pop h3 { margin: 0 0 4px; font-size: 15px; }
.bell-pop .alert { font-size: 13.5px; padding: 9px 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips label { cursor: pointer; } .chips label[hidden] { display: none; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 13px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--muted); user-select: none; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
details.pair > summary { list-style: none; } details.pair > summary::-webkit-details-marker { display: none; }
details.pair > summary h2::after { content: " ▾"; color: var(--muted); font-size: 13px; } details.pair:not([open]) > summary h2::after { content: " ▸"; }
tr.cont td { border-top-color: transparent; }
.stickybar { position: sticky; bottom: 12px; margin-top: 16px; background: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(15, 20, 35, .22); padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 20; border: 1px solid var(--line); }
.with-thumb > span:not(.thumb), .with-thumb > a { min-width: 130px; }
.dlg::backdrop { backdrop-filter: blur(1px); }
@media (max-width: 600px) {
  .g4:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #toprow { grid-template-columns: auto minmax(0, 1fr) !important; } #toprow .newonly { grid-column: 1 / -1; }
  .stickybar { flex-wrap: wrap; } .stickybar .btn { flex: 1 1 100%; justify-content: center; }
  .msg-btns { flex-direction: column-reverse; }
}
.who .me i { font-style: normal; } @media (max-width: 1420px) and (min-width: 861px) { .brand span, .who .me i { display: none; } .top { gap: 12px 14px; } }

.cam-btn { height: 48px; min-width: 52px; padding: 0 12px; flex: none; }
.scan-dlg { width: min(520px, 96vw); }
.dlg form.scan-box { padding: 12px; }
.scan-view { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-view i { position: absolute; left: 8%; right: 8%; top: 36%; bottom: 36%; border: 2px solid #48BB78; border-radius: 10px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); }
.scan-last { text-align: center; margin-top: 10px; font-size: 14px; }

.top .qs-btn { gap: 8px; color: #C9D0DE; min-width: 0; }
.top .qs-btn kbd { font: inherit; font-size: 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; padding: 0 5px; color: #9AA4B8; }
@media (max-width: 1500px) { .top .qs-btn kbd, .top .qs-btn .qs-l { display: none; } }
.top .store-chip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1500px) and (min-width: 861px) { .who .me i { display: none; } .top { gap: 12px 16px; } }
@media (max-width: 1280px) and (min-width: 861px) {
  .top { padding: 10px 14px; gap: 8px 10px; }
  .top nav { gap: 1px; }
  .top nav a, details.dd > summary { padding: 8px 8px; font-size: 13.5px; }
  details.dd > summary::after { margin-left: 3px; }
  .nav-sep { margin: 0 2px; }
  .who { gap: 6px; }
  .top .out { padding: 7px 10px; }
}
.qs-dlg { width: min(640px, 94vw); margin-top: 10vh; padding: 0; }
.qs-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.qs-in input { flex: 1; border: 0; outline: none; font: inherit; font-size: 17px; color: var(--ink); background: transparent; height: 32px; padding: 0; }
.qs-in kbd { font: inherit; font-size: 11px; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.qs-list { max-height: 56vh; overflow: auto; padding: 6px 8px 10px; }
.qs-g { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 8px 4px; }
.qs-i { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.qs-i b { font-weight: 700; } .qs-i.on, .qs-i:hover { background: var(--soft); }
.qs-i.on { box-shadow: inset 3px 0 0 var(--navy); }
.qs-empty { padding: 22px 10px; text-align: center; }
.qs-foot { padding: 8px 16px; border-top: 1px solid var(--line); }

th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--ink); }
th.sortable::after { content: "↕"; opacity: .25; margin-left: 4px; font-size: 11px; }
th.sortable[data-dir="asc"]::after { content: "↑"; opacity: .9; }
th.sortable[data-dir="desc"]::after { content: "↓"; opacity: .9; }
td.num, th.num { font-variant-numeric: tabular-nums; }

.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; animation: spin .7s linear infinite; }
.btn.sec.busy::after { border-color: var(--navy) var(--navy) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled:not(.busy) { opacity: .55; cursor: not-allowed; }

.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 900px; }
.clamp.open { display: block; -webkit-line-clamp: unset; }
.more-btn { border: 0; background: transparent; padding: 0; margin-top: 2px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
  .who { flex-wrap: nowrap; gap: 8px; }
  .who .me { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
  .who .me i { display: none; }
  .store-chip { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.todo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.todo a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; border-left: 4px solid var(--amber, #C98A00); }
.todo a b { font-size: 16px; font-variant-numeric: tabular-nums; }
.todo a:hover { box-shadow: 0 0 0 2px var(--navy); }
.todo a.err { border-left-color: var(--red); }
.empty-act { padding: 26px 16px; text-align: center; color: var(--muted); }
.empty-act .btn { margin-top: 10px; }
.setup .row { gap: 10px; }
.setup-bar { height: 6px; border-radius: 99px; background: var(--soft); margin: 12px 0 6px; overflow: hidden; } .setup-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.setup-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.setup-list a:hover { border-color: var(--navy); }
.setup-list b { display: block; } .setup-list .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.setup-list li.done .ck { background: var(--green); border-color: var(--green); }
.setup-list li.done b { color: var(--muted); text-decoration: line-through; }
.qs-i > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qs-i b { flex: none; max-width: 70%; }
@media (max-width: 600px) {
  table.t.m-cards, table.t.m-cards tbody { display: block; min-width: 0 !important; }
  table.t.m-cards thead { display: none; }
  table.t.m-cards tbody tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.t.m-cards tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 !important; border: 0 !important; text-align: right; min-height: 0; }
  table.t.m-cards tbody td:first-child { font-weight: 700; text-align: left; justify-content: flex-start; font-size: 15px; }
  table.t.m-cards tbody td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-align: left; flex: none; }
  table.t.m-cards tbody td:empty { display: none; }
  .tbl-wrap:has(table.m-cards) { overflow: visible; }
}
.mode-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--soft); padding: 5px; border-radius: 12px; }
.mode-seg label { display: grid; place-items: center; height: 42px; border-radius: 9px; font-weight: 800; color: var(--muted); cursor: pointer; text-align: center; padding: 0 10px; }
.mode-seg label.on { background: var(--navy); color: #fff; }
.mode-seg label:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.live-wait { opacity: .55; transition: opacity .15s; }

.mc-h { display: none !important; }
.cols-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }

.rep-tabs { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin-bottom: 12px; }
.rep-tabs > div { display: flex; flex-direction: column; gap: 4px; }
.rep-tabs .lbl { font-size: 12px; font-weight: 700; color: #6B7488; text-transform: uppercase; letter-spacing: .04em; padding-left: 4px; }

.store-sw { position: relative; }
.store-sw > summary { list-style: none; cursor: pointer; display: inline-block; }
.store-sw > summary::-webkit-details-marker { display: none; }
.store-sw > summary::after { content: " ▾"; font-size: 10px; opacity: .8; }
.store-sw > summary:hover, .store-sw[open] > summary { background: rgba(255,255,255,.2); }
.store-sw .sw-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: #1B2235; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.2); padding: 6px; min-width: 230px; max-height: 70vh; overflow: auto; z-index: 70; }
.store-sw .sw-menu a { display: block; padding: 9px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.store-sw .sw-menu a:hover { background: #EEF1F6; }
.store-sw .sw-menu a.on { background: #1B2235; color: #fff; }
@media (max-width: 720px) { .store-sw .sw-menu { position: fixed; left: 10px; right: 10px; top: 64px; min-width: 0; } }
