@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&family=Playfair+Display:ital,wght@1,700&display=swap');

:root {
    /* RJN Projects brand: navy crest + white, from the company logo/signage */
    --paper: #EEF1F5;
    --surface: #FFFFFF;
    --ink: #14233B;
    --muted: #55647D;
    --faint: #8C97AC;
    --line: #CBD3E0;
    --accent: #1B3A6B;
    --accent-ink: #10233F;
    --accent-2: #3E6491;
    --good: #2E7D4F;
    --critical: #AE3A2C;
    --tag-bg: #EAF0F8;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(20, 35, 59, .07), 0 1px 1px rgba(20, 35, 59, .05);
    --shadow-md: 0 8px 24px -8px rgba(20, 35, 59, .18), 0 2px 6px rgba(20, 35, 59, .07);
    --shadow-lift: 0 14px 32px -12px rgba(20, 35, 59, .24), 0 4px 8px rgba(20, 35, 59, .09);
    --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 500px at 100% -10%, color-mix(in srgb, var(--accent-2) 5%, transparent), transparent),
        var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); }

a, .btn, .card, .nav a, input, select, button {
    transition: background-color .15s var(--ease), border-color .15s var(--ease),
        color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3 {
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 6px;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand .company { font-family: 'IBM Plex Mono'; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.brand .product { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }

.nav-icon { width: 19px; height: 19px; flex: none; }

/* ---------- Sidebar (desktop/tablet) ---------- */
.sidebar {
    width: 256px;
    flex: none;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
}
.sidebar .brand { padding: 4px 8px 20px; }

.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: var(--r-sm);
}
.side-link:hover { background: var(--tag-bg); color: var(--accent-ink); }
.side-link.active { background: var(--accent); color: #fff; }
.side-link.active .nav-icon { color: #fff; }
.side-section-label {
    font-family: 'IBM Plex Mono';
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--faint);
    padding: 18px 12px 6px;
}

.side-foot { position: relative; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    padding: 8px;
    cursor: pointer;
    text-align: left;
}
.user-chip:hover { background: var(--tag-bg); }
.avatar {
    width: 34px; height: 34px; flex: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed'; font-weight: 700; font-size: .95rem;
}
.who-text { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.who-text strong { font-size: .85rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text small { font-size: .74rem; color: var(--muted); }

.user-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lift);
    padding: 6px;
    z-index: 30;
}
.user-menu a, .user-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-decoration: none;
    background: none;
    border: none;
    font: inherit;
    font-size: .85rem;
    color: var(--ink);
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}
.user-menu a:hover, .user-menu button:hover { background: var(--tag-bg); }
.user-menu form { margin: 0; }

/* ---------- Mobile top bar ---------- */
.mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
}
.mobile-user-menu-wrap { position: relative; }
.user-menu--mobile { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; width: 220px; }
.user-menu-id { padding: 8px 10px 4px; }
.user-menu-id strong { display: block; font-size: .85rem; color: var(--ink); }
.user-menu-id small { font-size: .74rem; color: var(--muted); }
.user-chip.small { width: auto; padding: 4px; }

/* ---------- Bottom tab bar (mobile) ---------- */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px -8px rgba(20, 35, 59, .12);
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    background: none;
    border: none;
    font: inherit;
    color: var(--muted);
    padding: 8px 4px 7px;
    cursor: pointer;
}
.bottom-nav-item span { font-size: .66rem; font-weight: 500; }
.bottom-nav-item.active { color: var(--accent); }

/* ---------- "More" sheet (mobile) ---------- */
.sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(16, 35, 63, .4);
    z-index: 40;
    align-items: flex-end;
}
.sheet-overlay:not([hidden]) { display: flex; }
.sheet {
    width: 100%;
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    max-height: 70vh;
    overflow-y: auto;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.sheet-head span { font-family: 'Barlow Condensed'; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.sheet-head button { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; }
.sheet-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    background: none;
    border: none;
    font: inherit;
    font-size: .92rem;
    color: var(--ink);
    padding: 12px 10px;
    border-radius: var(--r-sm);
    cursor: pointer;
    text-align: left;
}
.sheet-link:hover, .sheet-link.active { background: var(--tag-bg); }
.sheet-link form { display: contents; }
.sheet-divider { height: 1px; background: var(--line); margin: 6px 4px; }

@media (max-width: 899px) {
    .sidebar { display: none; }
    .mobile-topbar { display: flex; }
    .bottom-nav { display: flex; }
    .app-main { padding-bottom: 70px; } /* clears the fixed bottom nav */
}

/* ---------- Layout ---------- */
.wrap { max-width: 1020px; width: 100%; min-width: 0; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.page-head > div { min-width: 0; flex: 1 1 auto; }
.page-head h1 { font-size: 1.9rem; }
.page-head p { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono';
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    color: var(--accent-ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 9px 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--tag-bg); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); color: var(--muted); box-shadow: none; }
.btn.small { padding: 5px 9px; font-size: .7rem; border-radius: 6px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Cards / grids ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent-2);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.stat.warn { border-left-color: var(--critical); }
.stat .n { font-family: 'IBM Plex Mono'; font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--accent-2); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card .meta { font-size: .82rem; color: var(--muted); }

/* ---------- Table ---------- */
.twrap { overflow-x: auto; -webkit-overflow-scrolling: touch; contain: layout; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
@media (max-width: 899px) {
    table { min-width: 0; }
}
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
thead th { font-family: 'IBM Plex Mono'; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); }
tbody tr { transition: background-color .15s var(--ease); }
tbody tr:hover { background: var(--tag-bg); }
tbody tr:last-child td { border-bottom: none; }
td.num { font-family: 'IBM Plex Mono'; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-family: 'IBM Plex Mono'; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.badge.ok { color: var(--good); border-color: var(--good); background: #EAF6EE; }
.badge.low { color: var(--critical); border-color: var(--critical); background: #FBEEEC; }

/* ---------- Forms ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; max-width: 460px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.field label { font-family: 'IBM Plex Mono'; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.field input, .field select {
    font-family: 'IBM Plex Sans';
    font-size: .95rem;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: var(--accent-2); }

.error { background: #FBEEEC; border: 1px solid var(--critical); color: var(--critical); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 16px; font-size: .88rem; }
.hint { background: var(--tag-bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 16px; font-size: .85rem; color: var(--muted); }
.hint b { color: var(--ink); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 46px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--line);
}
.timeline-item { position: relative; margin-bottom: 14px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: -46px;
    top: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px var(--paper);
    z-index: 1;
}
.timeline-marker .nav-icon { width: 17px; height: 17px; }
.timeline-marker.good { background: var(--good); }
.timeline-marker.critical { background: var(--critical); }
.timeline-marker.muted { background: var(--faint); }
.timeline-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 11px 15px;
    box-shadow: var(--shadow-sm);
}
.timeline-time { font-family: 'IBM Plex Mono'; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.timeline-title { font-weight: 600; font-size: .92rem; }
.timeline-detail { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.timeline-detail a { color: var(--accent-2); }

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tag-bg);
    padding: 28px;
}

.login-frame {
    width: 100%;
    max-width: 1040px;
    background: var(--surface);
    border-radius: 28px;
    box-shadow: 0 24px 60px -20px rgba(27, 36, 43, .25);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* --- form side --- */
.login-form-side { padding: 48px 52px; display: flex; flex-direction: column; }
.login-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.login-mark .brand-mark { width: 40px; height: 40px; }
.login-mark .wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.login-mark .company { font-family: 'IBM Plex Mono'; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.login-mark .product { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.3rem; text-transform: uppercase; color: var(--ink); }

.login-tagline {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: 'IBM Plex Mono';
    font-size: .64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    margin-bottom: 32px;
}

.login-form-side h1 { font-size: 2rem; text-transform: none; letter-spacing: normal; margin-bottom: 6px; }
.login-form-side .sub { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }

.login-form-side .form { max-width: none; padding: 0; border: none; background: none; }
.login-form-side .field { margin-bottom: 16px; }
.login-form-side .field label { text-transform: none; font-family: 'IBM Plex Sans'; font-size: .82rem; font-weight: 500; color: var(--ink); letter-spacing: normal; }
.login-form-side .field input {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .98rem;
    border-color: var(--line);
}
.login-form-side .field input:focus { border-color: var(--accent-2); outline: 2px solid color-mix(in srgb, var(--accent-2) 25%, transparent); outline-offset: 0; }

.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; flex-wrap: wrap; }
.login-remember { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.login-remember input { width: auto; }
.login-row .pin-note { font-size: .82rem; color: var(--muted); }

.login-form-side .btn.primary {
    border-radius: 12px;
    padding: 12px 28px;
    font-size: .85rem;
    align-self: flex-start;
}

.login-form-side .hint { border-radius: 12px; margin-top: 24px; }
.login-footnote { margin-top: auto; padding-top: 28px; font-size: .78rem; color: var(--faint); line-height: 1.6; }

/* --- art side --- */
.login-art-side {
    position: relative;
    background: linear-gradient(155deg, #0D1B33 0%, var(--accent) 75%);
    overflow: hidden;
}
.login-art-side .dotgrid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.4px);
    background-size: 18px 18px;
}
.login-art-side .glow {
    position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%);
    top: -80px; right: -80px;
}

.tag-float {
    position: absolute;
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 16px 30px -10px rgba(0,0,0,.35);
    width: 168px;
}
.tag-float .top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tag-float .swatch { width: 22px; height: 22px; border-radius: 5px; flex: none; background:
    repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, var(--ink) 0 2px, transparent 2px 4px);
    background-blend-mode: multiply; background-color: #fff; }
.tag-float .name { font-size: .82rem; font-weight: 600; line-height: 1.2; }
.tag-float .code { font-family: 'IBM Plex Mono'; font-size: .66rem; color: var(--muted); }
.tag-float .badge { margin-top: 8px; }

.tag-float.t1 { top: 54px; left: 40px; transform: rotate(-7deg); }
.tag-float.t2 { top: 210px; right: 30px; transform: rotate(5deg); width: 150px; }
.tag-float.t3 { bottom: 96px; left: 64px; transform: rotate(4deg); width: 154px; }

.login-real-logo {
    position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
    width: 190px; height: auto;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.4));
}

.login-badge-circle {
    position: absolute; bottom: 92px; right: 44px;
    width: 52px; height: 52px; border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 26px -8px rgba(0,0,0,.4);
}
.login-badge-circle svg { width: 22px; height: 22px; stroke: var(--accent); }

.login-caption {
    position: absolute; left: 40px; bottom: 32px;
    font-family: 'IBM Plex Mono'; font-size: .72rem; letter-spacing: .04em;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    padding: 7px 12px; border-radius: 999px;
}

@media (max-width: 860px) {
    .login-frame { grid-template-columns: 1fr; max-width: 440px; }
    .login-art-side { display: none; }
    .login-form-side { padding: 40px 28px; }
}

/* ---------- Scan ---------- */
#reader { width: 100%; max-width: 420px; border: 1px solid var(--line); }
.scan-result { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; max-width: 420px; margin-top: 16px; }
.scan-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- Item detail ---------- */
.item-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 32px; }
@media (max-width: 640px) {
    .item-layout { grid-template-columns: 1fr; }
}

/* ---------- Labels ---------- */
/* Label printing: one label per page, every size set inline in mm from the admin setting */
.label-toolbar { padding: 16px 20px; }
.label-toolbar .label-help { margin-top: 10px; font-size: .85rem; color: var(--muted); max-width: 560px; }
.label-roll { display: flex; flex-wrap: wrap; gap: 6mm; padding: 0 20px 20px; }
.label-tag { box-sizing: border-box; background: #fff; color: #000; outline: 1px dashed #999; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; break-inside: avoid; }
.label-tag > * { flex: 0 0 auto; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #000; }
.label-tag .item-name { font-family: 'IBM Plex Sans', Arial, sans-serif; font-weight: 700; }
.label-tag .item-spec { font-family: 'IBM Plex Mono', monospace; }
.label-tag .item-code { font-family: 'IBM Plex Mono', monospace; font-weight: 700; }
.label-tag .company { font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }
.label-tag .qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.label-qty { width: 72px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.label-total { margin-top: 12px; font-size: .9rem; color: var(--muted); }

@media print {
    .no-print { display: none !important; }
    html, body, body.label-print { background: #fff; margin: 0; padding: 0; }
    .label-roll { display: block; padding: 0; gap: 0; }
    .label-tag { outline: none; break-after: page; page-break-after: always; }
    .label-tag:last-child { break-after: auto; page-break-after: auto; }
}

@media (max-width: 640px) {
    .wrap { padding: 20px 14px 50px; }
    .mobile-topbar { padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; }
}

/* ---------- Scan list (scan several, then one action for all) ---------- */
.scan-list { max-width: 520px; }
.scan-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.scan-list-head h3 { margin: 0; }
.scan-count { font-family: 'IBM Plex Mono'; font-size: .75rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.scan-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.scan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scan-row.has-error { background: #FBEEEC; padding-left: 8px; padding-right: 8px; }
.scan-row-main { min-width: 0; flex: 1; }
.scan-row-name { font-weight: 600; overflow-wrap: anywhere; }
.scan-row-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.scan-row-error { font-size: .8rem; color: var(--critical); margin-top: 4px; }
.scan-row-qty { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink); }
.qty-btn.remove { color: var(--critical); margin-left: 4px; }
.qty-input { width: 56px; height: 40px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-family: 'IBM Plex Mono'; font-size: .95rem; }
.inline-label { display: flex; align-items: center; gap: 6px; font-size: .85rem; text-transform: none; }
.scan-list .scan-actions .btn { min-height: 44px; }
