/* Imperium Kart — aplikacja (po zalogowaniu). Te same tokeny co landing. */

:root {
  --bg: #090c14;
  --bg-2: #0b0f1c;
  --panel: #12172a;
  --panel-2: #171d33;
  --lime: #d9f93b;
  --lime-ink: #0b0d12;
  --text: #ffffff;
  --muted: #c3c8d8;
  --dim: #8a90a6;
  --line: rgba(255, 255, 255, .10);
  --danger: #ff4757;
  --warn: #ffa502;
  --ok: #2ed573;
  --font-head: "Sofia Sans Extra Condensed", "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.5; min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; }
.muted { color: var(--dim); }
.small { font-size: 12px; }
.link { color: var(--lime); font-weight: 500; }
.link:hover { text-decoration: underline; }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 28, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 58px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.tabs { display: flex; gap: 2px; }
.tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.tab svg { width: 17px; height: 17px; flex-shrink: 0; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tab.active { color: var(--lime); background: rgba(217, 249, 59, .12); }
.tab .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.user { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.ver { font-size: 10px; color: rgba(255, 255, 255, .3); letter-spacing: .5px; white-space: nowrap; }
.auth-box .ver { text-align: center; margin-top: 10px; }
.view { max-width: 1180px; width: 100%; margin: 0 auto; padding: 28px 24px 80px; flex: 1; }

/* ---------- page bits ---------- */
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-head); font-weight: 900; font-size: 42px; line-height: 1; }
.page-head .count { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--dim); }
.page-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.panel + .panel { margin-top: 14px; }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 14px; }
.back { display: inline-block; color: var(--dim); margin-bottom: 14px; }
.back:hover { color: #fff; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input, .toolbar select { height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: #fff; font: inherit; font-size: 13px; }
.toolbar input { min-width: 240px; flex: 1; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--lime); }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }
.chip:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.chip.active { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover:not(:disabled) { background: #e4ff5a; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: rgba(255, 71, 87, .1); border-color: rgba(255, 71, 87, .35); color: #ff8b95; }
.btn-danger-ghost:hover:not(:disabled) { background: rgba(255, 71, 87, .2); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; font-size: 22px; line-height: 1; color: var(--dim); }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap; }
.badge-link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.badge-warn, .st-needs_review, .st-rate_limited { background: rgba(255, 165, 2, .18); color: #ffb84d; }
.badge-danger, .st-failed, .st-error { background: rgba(255, 71, 87, .18); color: #ff8b95; }
.badge-ok, .st-confirmed { background: rgba(46, 213, 115, .16); color: #5ce38f; }
.st-processing, .st-queued, .st-uploading, .st-created, .st-prep, .st-upload { background: rgba(108, 99, 255, .2); color: #b3aeff; }
.st-cancelled { background: rgba(255, 255, 255, .06); color: var(--dim); }
.conf { font-size: 12px; font-weight: 600; }
.conf-hi { color: #5ce38f; } .conf-mid { color: #ffb84d; } .conf-lo { color: #ff8b95; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; background: var(--lime); border-radius: 3px; }

/* ---------- stats / tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: rgba(217, 249, 59, .5); transform: translateY(-2px); }
.stat-hot { border-color: rgba(255, 165, 2, .5); }
.stat .val { font-family: var(--font-head); font-weight: 900; font-size: 40px; line-height: 1; }
.stat .val-sm { font-size: 26px; line-height: 1.1; padding-top: 6px; }
.stat .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-top: 8px; }

/* ---------- grids / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: rgba(217, 249, 59, .5); }
.tile-img { aspect-ratio: 3 / 4; background: #0a0c14; display: grid; place-items: center; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.ph { font-family: var(--font-head); font-weight: 900; font-size: 56px; color: #2a2f45; }
.tile-body { padding: 12px 14px; }
.tile h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile p { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.price { color: var(--lime); font-weight: 700; white-space: nowrap; }
.price.none { color: var(--dim); font-weight: 500; font-size: 12px; }
.is-dim { opacity: .3; }
.mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini { display: block; }
.mini .tile-img { border-radius: 10px; }
.mini p { font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* scans list */
.scan-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; gap: 6px; }
.scan-tile:hover { transform: translateY(-2px); border-color: rgba(217, 249, 59, .5); }
.scan-tile-top { display: flex; justify-content: space-between; align-items: center; }
.initial { width: 40px; height: 40px; border-radius: 10px; background: #0a0c14; display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 22px; color: #3a4060; }
.scan-tile h3 { font-size: 15px; margin-top: 4px; }
.scan-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scan-tile time { font-size: 11px; }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.row-link { cursor: pointer; }
.table tr.row-link:hover td { background: rgba(255, 255, 255, .03); }
.table td.r { text-align: right; white-space: nowrap; }

/* ---------- forms ---------- */
.form label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; font: inherit; font-size: 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lime); }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-err { color: #ff8b95; font-size: 13px; margin: -4px 0 12px; }
.form h4 { font-size: 13px; font-weight: 600; margin: 4px 0 10px; color: var(--muted); }
.seg { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13px; }
.seg:has(input:checked) { background: rgba(217, 249, 59, .12); border-color: var(--lime); color: var(--lime); }
.seg input { accent-color: var(--lime); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(60% 80% at 70% 30%, rgba(70, 90, 200, .22), transparent 60%), radial-gradient(40% 60% at 20% 90%, rgba(217, 249, 59, .08), transparent 60%), var(--bg); }
.auth-box { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.auth-brand svg { width: 24px; height: 24px; }
.auth h1 { font-family: var(--font-head); font-weight: 900; font-size: 40px; line-height: 1; }
.auth-sub { color: var(--dim); margin: 8px 0 22px; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--dim); font-size: 13px; }

/* ---------- modal / toast ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; display: flex; flex-direction: column; }
.modal--wide { max-width: 1000px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 20px; font-weight: 700; }
.modal-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { background: #1b2136; border: 1px solid var(--line); border-left: 3px solid var(--lime); padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); animation: toast-in .2s ease-out; }
.toast-error { border-left-color: var(--danger); }
.toast-warn { border-left-color: var(--warn); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- states ---------- */
.loading { display: flex; align-items: center; gap: 10px; color: var(--dim); padding: 30px 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--lime); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 50px 20px; color: var(--dim); border: 1px dashed var(--line); border-radius: 14px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.error-box { background: rgba(255, 71, 87, .1); border: 1px solid rgba(255, 71, 87, .35); color: #ff8b95; padding: 12px 14px; border-radius: 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.callout { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; border: 1px solid; }
.callout-warn { background: rgba(255, 165, 2, .1); border-color: rgba(255, 165, 2, .35); color: #ffd28a; }
.callout-danger { background: rgba(255, 71, 87, .1); border-color: rgba(255, 71, 87, .35); color: #ff8b95; }
.callout-ok { background: rgba(46, 213, 115, .08); border-color: rgba(46, 213, 115, .3); color: #8ef0b3; }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px; }
.figs { display: flex; gap: 12px; flex-wrap: wrap; }
.figs figure { flex: 1 1 150px; max-width: 260px; }
.figs img { width: 100%; border-radius: 10px; background: #0a0c14; aspect-ratio: 3 / 4; object-fit: contain; }
.figs figcaption { font-size: 11px; color: var(--dim); margin-top: 6px; text-align: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--dim); }
.kv dd { font-weight: 500; }
.big-price { font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--lime); line-height: 1; }
.auth-sig { border-radius: 10px; padding: 10px 14px; border: 1px solid; font-size: 13px; margin: 10px 0; }
.auth-sig.is-ok { border-color: rgba(46, 213, 115, .3); background: rgba(46, 213, 115, .06); }
.auth-sig.is-fake { border-color: rgba(255, 71, 87, .4); background: rgba(255, 71, 87, .08); }
.auth-sig ul { margin: 6px 0 0 18px; }
.confirm-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ident { margin-bottom: 12px; }
.ident-main { font-size: 18px; line-height: 1.3; }
.ai-note { color: #ffb84d; }
.pricebox { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.pricebox-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.callout-info { background: rgba(108, 99, 255, .1); border-color: rgba(108, 99, 255, .35); color: #c9c6ff; }
.seg-group { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.seg-group .seg { height: 36px; padding: 0 12px; }

/* ---------- scan page ---------- */
.scan-target { display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; align-items: center; margin-bottom: 16px; }
.scan-target .lbl { font-size: 12px; font-weight: 500; color: var(--dim); }
.scan-target select { height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; font: inherit; font-size: 13px; max-width: 320px; }
.scan-target select:focus { outline: none; border-color: var(--lime); }
.scan-target .hint { margin-left: 12px; }
.user-name:hover { color: #fff; }
.btn.active { color: var(--lime); border-color: rgba(217, 249, 59, .4); }
.dropzone { border: 2px dashed rgba(255, 255, 255, .2); border-radius: 16px; padding: 34px 20px; text-align: center; background: rgba(255, 255, 255, .02); transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--lime); background: rgba(217, 249, 59, .06); }
.dropzone p { color: var(--dim); margin: 8px 0 16px; }
.dropzone .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.jobs { list-style: none; }
.jobs li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jobs li:last-child { border-bottom: 0; }
.jobs img { width: 56px; height: 72px; object-fit: cover; border-radius: 6px; background: #0a0c14; }
.jobs b { font-size: 13px; font-weight: 600; word-break: break-all; }
.job-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; flex-wrap: wrap; }
.job-actions { display: flex; gap: 6px; }
.jobs-empty { display: block; padding: 10px 0; }
.qlist { list-style: none; }
.qlist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.qlist li:last-child { border-bottom: 0; }
.qlist time { margin-left: auto; font-size: 12px; }
.file-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-name { font-size: 12px; color: var(--dim); }

/* ---------- modal: nawigacja po kolei ---------- */
.modal-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.modal-nav .pos { font-size: 12px; color: var(--dim); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.modal-nav .icon-btn:disabled { opacity: .3; }
.figs figure[data-zoom] { cursor: zoom-in; }
.figs figure[data-zoom]:hover img { outline: 2px solid rgba(217, 249, 59, .6); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(4, 6, 12, .96); display: flex; flex-direction: column; color: #fff; }
.lb-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.lb-cap { font-weight: 600; color: #fff; }
.lb-btn { min-width: 36px; height: 34px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-zoom { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; }
.lb-stage.dragging { cursor: grabbing; }
.lb-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 50% 50%; will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lb-thumbs { display: flex; gap: 8px; padding: 8px 14px; overflow-x: auto; }
.lb-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; border: 2px solid transparent; font-size: 11px; color: var(--dim); }
.lb-thumb img { width: 56px; height: 74px; object-fit: cover; border-radius: 4px; background: #0a0c14; }
.lb-thumb.active { border-color: var(--lime); color: #fff; }
.lb-hint { text-align: center; padding: 0 14px 10px; }
body.lb-open { overflow: hidden; }
@media (max-width: 720px) {
  .lb-hint { display: none; }
  .lb-top { flex-wrap: wrap; row-gap: 6px; }
  .lb-cap { width: 100%; }
}

/* ---------- albums ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.album { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.album h3 { font-size: 16px; }
.album-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .mini-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .topbar-in { height: 54px; gap: 12px; padding: 0 16px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(11, 15, 28, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tab { flex-direction: column; gap: 3px; font-size: 10px; padding: 6px 8px; }
  .tab .count { position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; font-size: 10px; }
  .user-name { display: none; }
  .scan-target { grid-template-columns: 1fr; gap: 6px; }
  .scan-target .lbl { margin-top: 6px; }
  .scan-target select { max-width: none; width: 100%; }
  .scan-target .hint { display: block; margin: 6px 0 0; }
  .view { padding: 20px 16px 100px; }
  .page-head h1 { font-size: 32px; }
  .page-actions { margin-left: 0; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .toolbar input { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mini-row { grid-template-columns: repeat(2, 1fr); }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 96vh; border-radius: 16px 16px 0 0; }
  .jobs li { grid-template-columns: 48px 1fr; }
  .job-actions { grid-column: 2; }
}
