/* Barcelounoc – administrace (mobile-first, tmavé téma navazující na původní pluginy) */
:root {
    --bg: #0d0d0f;
    --panel: #141417;
    --panel-2: #1a1a1e;
    --line: #232328;
    --line-2: #2e2e35;
    --text: #e4e4e7;
    --muted: #8a8a93;
    --dim: #55555d;
    --blue: #60a5fa;
    --green: #4ade80;
    --red: #fb7185;
    --amber: #f59e0b;
    --pink: #ff3d9a;
    --cyan: #2ee6ff;
    --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }
[hidden] { display: none !important; }

/* ───── Shell ───── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px; flex-shrink: 0; background: #0a0a0c; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 800; letter-spacing: .18em; font-size: .82rem; }
.side-brand img { width: 34px; height: 34px; }
.side-brand:hover { text-decoration: none; }
.side-nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.side-nav a:hover { background: var(--panel); color: #fff; text-decoration: none; }
.side-nav a.is-active { background: var(--panel-2); color: #fff; box-shadow: inset 3px 0 0 var(--pink); }
.side-user { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.side-user-link { display: flex; align-items: center; gap: 10px; color: var(--text); }
.side-user-link:hover { text-decoration: none; }
.side-user-link b { display: block; font-size: .88rem; }
.side-user-link small { color: var(--muted); font-size: .75rem; }
.side-web { font-size: .8rem; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: .75rem; color: #111; background: var(--c, var(--cyan)); flex-shrink: 0; }
a.avatar:hover { text-decoration: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; text-align: left; }
.link-btn:hover { color: #fff; }

.main { flex: 1; min-width: 0; }
.mobile-bar { display: none; }
.content { padding: 28px clamp(14px, 3vw, 36px) 60px; max-width: 1180px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sidebar-backdrop { display: none; }
@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .22s; }
    .sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.8); }
    .sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.6); }
    .mobile-bar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(13,13,15,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
    .mobile-title { flex: 1; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .burger { background: none; border: 0; padding: 6px; cursor: pointer; }
    .burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }
    .page-head h1 { display: none; }
    .page-head:not(:has(.page-actions > *)) { display: none; }
    .content { padding-top: 16px; }
}

/* ───── Flash ───── */
.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; font-size: .9rem; }
.flash-ok { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.35); color: var(--green); }
.flash-err { background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.35); color: var(--red); }

/* ───── Panels, cards ───── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel-title { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.label { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 22px 0 10px 2px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-all { grid-column: 1 / -1; }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-4.keep, .grid-3.keep { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat small { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.stat b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.list { display: flex; flex-direction: column; gap: 6px; }
.row {
    display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line);
    border-radius: 10px; padding: 11px 14px; transition: background .15s;
}
.row:hover { background: var(--panel-2); }
.row-color { width: 3px; align-self: stretch; border-radius: 2px; flex-shrink: 0; background: var(--c, var(--dim)); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.row-title { font-weight: 700; }
.row-sub { color: var(--muted); font-size: .85rem; }
.row-end { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { display: flex; gap: 4px; flex-shrink: 0; }
.row.is-muted { opacity: .45; }
.empty { text-align: center; color: var(--dim); padding: 30px 0; font-weight: 600; font-size: .9rem; }

/* ───── Forms ───── */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.field > span em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.input, .field input:not([type=checkbox]):not([type=file]):not([type=color]), .field select, .field textarea, select.input {
    width: 100%; background: var(--panel-2); color: #fff; border: 1px solid var(--line-2); border-radius: 10px;
    padding: 10px 12px; font: 600 15px Montserrat, sans-serif; transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none; color-scheme: dark; min-height: 42px;
}
.field select, select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.field textarea { font-weight: 500; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
.field input[type=color] { width: 60px; height: 42px; padding: 2px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; }
.field .hint { font-size: .78rem; color: var(--dim); }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

/* ───── Buttons ───── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: #26262b; color: #ddd; border: 1px solid #333339; border-radius: 10px;
    padding: 10px 18px; font: 700 .78rem/1.1 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer; transition: background .15s, color .15s, transform .1s; min-height: 42px; white-space: nowrap;
}
.btn:hover { background: #303036; color: #fff; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn .ico { width: 15px; height: 15px; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-primary:hover { background: #ff5aab; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-2); }
.btn-blue { background: rgba(96,165,250,.15); border-color: transparent; color: var(--blue); }
.btn-blue:hover { background: rgba(96,165,250,.25); color: var(--blue); }
.btn-green { background: rgba(74,222,128,.15); border-color: transparent; color: var(--green); }
.btn-green:hover { background: rgba(74,222,128,.25); color: var(--green); }
.btn-red { background: rgba(251,113,133,.12); border-color: transparent; color: var(--red); }
.btn-red:hover { background: rgba(251,113,133,.22); color: var(--red); }
.btn-done { background: rgba(255,255,255,.04); border-color: transparent; color: var(--dim); cursor: default; }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: .7rem; }
.btn-block { width: 100%; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 0; display: inline-grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.06); color: #ddd; transition: filter .15s, transform .1s; padding: 0; }
.icon-btn:hover { filter: brightness(1.4); text-decoration: none; }
.icon-btn:active { transform: scale(.92); }
.icon-btn .ico { width: 15px; height: 15px; }
.icon-btn.edit { background: rgba(96,165,250,.3); color: #fff; }
.icon-btn.del { background: rgba(251,113,133,.3); color: #fff; }
.icon-btn:disabled { opacity: .25; cursor: default; }
form.inline { display: inline; margin: 0; }

.badge { display: inline-block; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--muted); white-space: nowrap; }
.badge-green { background: rgba(74,222,128,.13); color: var(--green); }
.badge-blue { background: rgba(96,165,250,.13); color: var(--blue); }
.badge-red { background: rgba(251,113,133,.13); color: var(--red); }
.badge-amber { background: rgba(245,158,11,.13); color: var(--amber); }
.badge-pink { background: rgba(255,61,154,.13); color: var(--pink); }

/* ───── Toolbar (výběr období apod.) ───── */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input { width: auto; min-width: 200px; flex: 1; max-width: 340px; }
.toolbar .grow { flex: 1; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav .input { min-width: 0; width: 170px; }

/* ───── Modal (dialog) ───── */
dialog.modal { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; width: min(400px, calc(100% - 24px)); }
dialog.modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.modal-title { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.qr-box { background: #fff; padding: 12px; border-radius: 10px; width: 220px; margin: 6px auto 12px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-amount { text-align: center; font-size: 1.6rem; font-weight: 800; }
.qr-meta { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .06em; }

/* ───── Totals (směny) ───── */
.totals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.total { flex: 1; min-width: 150px; display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.total .row-color { height: 32px; align-self: center; }
.total b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.total small { display: block; color: var(--muted); font-size: .75rem; }

/* ───── Payroll card ───── */
.pay-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.pay-top { display: flex; align-items: center; gap: 12px; }
.pay-top .row-color { height: 36px; align-self: center; width: 4px; }
.pay-name { flex: 1; font-weight: 700; font-size: 1rem; }
.pay-amount { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay-detail { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 12px 16px; color: var(--muted); font-size: .82rem; }
.pay-detail b { color: #bbb; }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: 16px; }

/* ───── Soutěž ───── */
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
@media (max-width: 600px) { .prize-grid { grid-template-columns: 1fr; } }
.prize { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; }
.prize.gold { border-color: #3a2800; }
.prize.gold::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(245,158,11,.08), transparent 55%); pointer-events: none; }
.prize-rank { font-size: .65rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.prize.gold .prize-rank { color: #9a7300; }
.prize-name { font-size: 1.2rem; font-weight: 800; margin: 6px 0 2px; }
.prize-name.empty { color: #3a3a40; font-style: italic; font-size: .95rem; }
.prize-meta { font-size: .8rem; color: var(--muted); min-height: 18px; margin-bottom: 10px; }
.prize-amount { font-size: 1.5rem; font-weight: 800; color: #888; font-variant-numeric: tabular-nums; }
.prize.gold .prize-amount { color: var(--amber); }
.prize-sub { font-size: .65rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.lb-row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid transparent; margin-bottom: 4px; }
.lb-row.first { background: #1c1400; border-color: #2e2000; }
.lb-row.ineligible { opacity: .45; }
.lb-rank { text-align: center; font-weight: 800; color: var(--dim); }
.lb-row.first .lb-rank, .lb-row.first .lb-avg { color: var(--amber); }
.lb-avg { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.lb-days { color: var(--dim); font-size: .82rem; min-width: 52px; text-align: right; }
.rules { font-size: .88rem; color: var(--muted); }
.rules summary { cursor: pointer; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rules p { margin: 10px 0; }
.rules strong { color: var(--text); display: block; }
.dot-contest { display: inline-block; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; margin-left: 4px; vertical-align: middle; }

/* ───── Rezervace ───── */
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .res-layout { grid-template-columns: 1fr; } }
.res-row .row-main { display: block; }
.res-time { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 56px; }
.res-people { font-weight: 800; white-space: nowrap; }
.res-note { color: var(--amber); font-size: .82rem; margin-top: 3px; }
.res-internal { color: var(--blue); font-size: .82rem; margin-top: 3px; }
.days-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.day-chip { flex-shrink: 0; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-align: center; font-size: .8rem; min-width: 74px; }
.day-chip b { display: block; font-size: .95rem; }
.day-chip small { color: var(--muted); }
.day-chip.is-active { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.day-chip:hover { text-decoration: none; background: var(--panel-2); }

.plan-wrap { background: #0a0a0c; border: 1px solid var(--line); border-radius: 12px; padding: 6px; overflow-x: auto; }
.plan-info { margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* Editor plánku */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.editor .floorplan { min-width: 0; max-height: 82vh; width: auto; max-width: 100%; background-image: linear-gradient(#17171b 1px, transparent 1px), linear-gradient(90deg, #17171b 1px, transparent 1px); background-size: 2% 3.333%; }
.editor .fp-item { cursor: move; }
.editor .fp-item.is-active .fp-chair { stroke: var(--pink); }
.editor .fp-item.is-active .fp-shape { stroke: var(--pink) !important; stroke-width: 3; }
.editor .fp-handle { fill: var(--pink); cursor: nwse-resize; }

/* ───── Menu admin ───── */
.menu-cat { margin-bottom: 14px; }
.menu-cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.menu-cat-head h2 { font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; flex: 1; }
.menu-cat-head h2 small { color: var(--muted); font-size: .7rem; margin-left: 6px; }
.menu-item-thumb { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #000; }
details.edit-cat > summary { list-style: none; cursor: pointer; }
details.edit-cat > summary::-webkit-details-marker { display: none; }
details.edit-cat[open] { width: 100%; }

/* ───── Galerie ───── */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gal-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.gal-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.gal-actions { display: flex; justify-content: space-between; gap: 4px; padding: 6px; }

/* ───── Tabulka ───── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }

/* ───── Přihlášení ───── */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at top, #1a0f18, var(--bg) 60%); }
.login-card { width: min(360px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login-logo { width: 86px; margin: 0 auto; filter: drop-shadow(0 0 12px rgba(46,230,255,.35)); }
.login-card h1 { text-align: center; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.login-back { text-align: center; font-size: .8rem; color: var(--dim); }

/* ───── Záložky ───── */
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.tab { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: .82rem; }
.tab span { font-size: .72rem; color: var(--dim); margin-left: 4px; }
.tab:hover { color: #fff; text-decoration: none; }
.tab.is-active { background: var(--panel-2); color: #fff; box-shadow: inset 0 -2px 0 var(--pink); }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 26px; height: 26px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { border-color: #fff; box-shadow: 0 0 0 2px var(--sw, #888); }
.swatch-default { background: var(--panel-2); color: var(--muted); font-size: .7rem; border-color: var(--line-2); }
.swatch-default.is-active { border-color: #fff; box-shadow: none; }


/* ───── Stránky pro barmany (/smeny, /kalendar) ───── */
.staff-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px clamp(12px, 3vw, 28px); padding-top: max(10px, env(safe-area-inset-top)); background: rgba(10,10,12,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.staff-bar .side-brand { padding: 0; }
.staff-bar .tabs { margin-left: auto; }
.staff-main { max-width: 1100px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 28px) 60px; }
.pin-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .5em; }
@media (max-width: 520px) { .staff-bar .side-brand { font-size: 0; gap: 0; } }

/* ───── Inventura ───── */
.inv-summary { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.inv-summary #inv-status { flex-basis: 100%; }
.inv-summary small { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.inv-summary b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.inv-filter { position: sticky; top: 0; z-index: 15; background: rgba(13,13,15,.94); backdrop-filter: blur(8px); padding: 8px 0 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { .inv-filter { top: 54px; } }
.inv-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { flex-shrink: 0; background: var(--panel); color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 14px; font: 700 .75rem Montserrat, sans-serif; cursor: pointer; }
.chip.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }
.inv-cat-sum { color: var(--text); font-size: .85rem; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.inv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; transition: background .3s; }
.inv-row:first-of-type { border-top: 0; }
.inv-row.is-saved { background: rgba(74,222,128,.06); }
.inv-name { min-width: 180px; flex: 1; }
.inv-prev { display: block; font-size: .75rem; color: var(--dim); }
.inv-inputs { display: flex; gap: 10px; align-items: flex-end; }
.inv-field { display: flex; flex-direction: column; gap: 4px; }
.inv-field > span { font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.inv-field .input { width: 120px; min-width: 0; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.stepper button { width: 38px; background: transparent; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.stepper button:active { background: rgba(255,255,255,.08); }
.stepper input { width: 46px; text-align: center; background: transparent; border: 0; color: #fff; font: 700 1rem Montserrat, sans-serif; -moz-appearance: textfield; min-height: 42px; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.inv-result { min-width: 78px; text-align: right; padding-bottom: 8px; font-variant-numeric: tabular-nums; }
.inv-result b { font-size: 1.15rem; }
.inv-warn { font-size: .7rem; color: var(--amber); max-width: 140px; }
@media (max-width: 600px) { .inv-inputs { width: 100%; justify-content: space-between; } .inv-field .input { width: 110px; } }
.inv-item-grid { display: grid; grid-template-columns: 1fr 2fr .7fr .8fr .8fr auto; gap: 8px; align-items: end; }
@media (max-width: 800px) { .inv-item-grid { grid-template-columns: 1fr 1fr; } }
.inv-item-row.is-muted { opacity: .5; }
