:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --text: #17171a;
  --muted: #6b6a70;
  --line: #e7e4dd;
  --brass: #b8893a;
  --brass-strong: #9a6f26;
  --brass-soft: #f5ecd9;
  --danger: #c2412d;
  --ok: #2f7d4f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 18, 12, .04), 0 8px 30px rgba(20, 18, 12, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11; --surface: #18181b; --surface-2: #1d1d21; --text: #f2f1ee; --muted: #9b9aa1;
    --line: #2a2a2f; --brass: #d4a956; --brass-strong: #e2bb6c; --brass-soft: #2a2217;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.logo { height: 24px; width: auto; display: block; }
.topbar .logo { filter: none; }
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab { white-space: nowrap; border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 500; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.me { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.me-email { color: var(--muted); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app { max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: transform .08s, opacity .15s, background .15s; }
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.brass { background: var(--brass); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); opacity: 1; }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.input, select.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 18%, transparent); }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* auth */
.auth-wrap { min-height: calc(100vh - 96px); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px; box-shadow: var(--shadow); }
.auth-card .logo { height: 30px; max-width: 100%; margin-bottom: 28px; }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.auth-card p.sub { color: var(--muted); margin: 0 0 24px; }
.auth-card form { display: grid; gap: 14px; }
.otp { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: .5em; }
.link { background: none; border: 0; color: var(--brass-strong); cursor: pointer; padding: 0; font-weight: 500; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* lookup */
.hero { text-align: center; padding: 32px 0 28px; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0; }
.search { max-width: 620px; margin: 0 auto; display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 8px; border-radius: 18px; box-shadow: var(--shadow); }
.search .input { border: 0; box-shadow: none; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; background: transparent; }
.search .input:focus, .search .input:focus-visible { box-shadow: none; outline: none; }
.search:focus-within { border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 16%, transparent), var(--shadow); }
.search .btn { white-space: nowrap; padding-inline: 26px; }
.search .input::placeholder { text-transform: none; letter-spacing: 0; }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.hint code { background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 12px; cursor: pointer; }

.result { max-width: 820px; margin: 32px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-head { padding: 26px 28px 22px; display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--brass-strong); font-weight: 600; }
.result-head h2 { margin: 4px 0 4px; font-size: 26px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.result-head .desc { color: var(--muted); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.featured { text-align: right; }
.featured .amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.featured .fin { color: var(--muted); font-size: 13px; }
.finishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); background: var(--surface); overflow: hidden; }
.finish { background: var(--surface); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.finish.sel { background: var(--brass-soft); }
.finish .name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); flex: none; box-shadow: inset 0 -3px 6px rgba(0,0,0,.15), inset 0 3px 5px rgba(255,255,255,.5); }
.sw-CR { background: linear-gradient(135deg, #f4f6f8, #a9b0b8); }
.sw-CO { background: linear-gradient(135deg, #d5d7da, #9ea2a7); }
.sw-NP { background: linear-gradient(135deg, #3a3a3d, #121214); }
.sw-NL { background: linear-gradient(135deg, #e9e3d3, #a99f86); }
.sw-NS { background: linear-gradient(135deg, #cfc8b6, #9b9381); }
.sw-TS { background: linear-gradient(135deg, #ead08f, #b58a35); }
.sw-IS { background: linear-gradient(135deg, #c9ccce, #8e9396); }
.sw-DS { background: linear-gradient(135deg, #9b6b45, #4e321f); }
.sw-US { background: linear-gradient(135deg, #6a6b6e, #2d2e31); }
.finish .fname { font-weight: 500; }
.finish .fcode { font-size: 12px; color: var(--muted); }
.finish .price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.result-foot { padding: 14px 28px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.empty { max-width: 620px; margin: 32px auto 0; text-align: center; color: var(--muted); padding: 28px; border: 1px dashed var(--line); border-radius: 18px; }

/* admin */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h1 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.add-form { display: grid; grid-template-columns: 2fr 1.5fr 1fr auto; gap: 12px; padding: 18px; align-items: end; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td .sub { color: var(--muted); font-size: 12px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge.admin { background: var(--brass-soft); color: var(--brass-strong); }
.badge.user { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.off { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.evt { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.evt-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: transparent; }
.evt-warn { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: transparent; }
.evt-admin { color: var(--brass-strong); background: var(--brass-soft); border-color: transparent; }
td.detail { white-space: normal; color: var(--muted); }

/* prices admin */
.toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.toolbar .input { max-width: 380px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: .02em; }
td.num, .num { font-variant-numeric: tabular-nums; }
a.btn { text-decoration: none; }
:where(.swatch) { background: linear-gradient(135deg, #e3ddd0, #9a937f); }
.modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(15, 14, 10, .45); backdrop-filter: blur(3px); }
.modal[open] { display: flex; flex-direction: column; animation: rise .2s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 20px 20px; }
.pform { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .wide { grid-column: 1 / -1; }
.fin-head { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.fin-head h3 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fin-rows { display: grid; gap: 8px; }
.fin-row { display: grid; grid-template-columns: 22px 72px 1fr 130px auto; gap: 8px; align-items: center; }
.fin-row .input { padding: 9px 11px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brass); background: var(--brass-soft); }
.choice input { margin-top: 3px; accent-color: var(--brass); }
.err-box { white-space: pre-wrap; margin: 0; padding: 12px 14px; border-radius: 10px; font: 13px/1.5 var(--font); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
p.sub { margin: 0; color: var(--muted); font-size: 13px; }
p.sub code { background: var(--surface-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 5px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); color: #fff; }

@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .tab { padding: 8px 12px; }
  .me-email { display: none; }
  .app { padding: 20px 16px 48px; }
  .add-form, .grid2, .choices { grid-template-columns: 1fr; }
  .fin-row { grid-template-columns: 60px 1fr 96px auto; }
  .fin-row .swatch { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { flex-direction: column; }
  .featured { text-align: left; }
  .auth-card { padding: 28px 22px; }
}

/* ---------- brands, live search, product media ---------- */
.search { max-width: 760px; align-items: center; }
.search .brand-select { width: auto; flex: none; max-width: 190px; border: 0; border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; background: transparent; font-weight: 600; box-shadow: none; }
.search-box { position: relative; flex: 1; min-width: 0; }
.search-box .input { width: 100%; }
.search .input:disabled { opacity: .5; }
.suggest { position: absolute; z-index: 20; left: -8px; right: -8px; top: calc(100% + 12px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18); max-height: min(60vh, 520px); overflow-y: auto; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--brass-soft); }
.suggest li.more { cursor: default; color: var(--muted); font-size: 13px; justify-content: center; }
.suggest li.more:hover { background: none; }
.sg-main { display: grid; min-width: 0; flex: 1; }
.sg-main .sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-coll { font-size: 12px; color: var(--muted); }
.thumb { flex: none; width: 64px; height: 40px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.thumb.empty { color: var(--muted); font-size: 12px; }
button.thumb { cursor: zoom-in; }
.thumbcell { width: 1%; padding-right: 0; }

.result { max-width: 920px; }
.result-head { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 28px; align-items: start; }
.result-media { display: grid; gap: 10px; }
.photo, .drawing { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: zoom-in; overflow: hidden; position: relative; }
.photo { aspect-ratio: 16 / 7; padding: 10px; }
.drawing { height: 150px; padding: 12px 12px 26px; }
.photo img, .drawing img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.photo:focus-visible, .drawing:focus-visible { outline: 3px solid var(--brass); }
.drawing .cap { position: absolute; left: 10px; bottom: 6px; font-size: 11px; color: #6b6a70; text-transform: uppercase; letter-spacing: .08em; }
.noimg { color: var(--muted); font-size: 13px; }
.result-info .featured { text-align: left; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-note { color: var(--brass-strong) !important; }
button.finish { all: unset; box-sizing: border-box; background: var(--surface); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); min-width: 0; cursor: pointer; }
button.finish:hover { background: var(--surface-2); }
button.finish.sel { background: var(--brass-soft); }
button.finish:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }

.lightbox { border: 0; padding: 16px; background: #fff; border-radius: 16px; max-width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); cursor: zoom-out; }
.lightbox::backdrop { background: rgba(10, 10, 10, .7); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); display: block; margin: auto; }
.lightbox .cap { text-align: center; color: #555; font-size: 13px; margin-top: 8px; }

/* ---------- admin ---------- */
.actions.wrap { flex-wrap: wrap; }
.brandbar { display: flex; gap: 28px; align-items: end; padding: 16px 18px; margin-bottom: 18px; flex-wrap: wrap; }
.brandbar .field { min-width: 200px; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats .stat { padding: 14px 16px; }
.stat.warn .v { color: var(--danger); }
.badge.part { color: var(--brass-strong); background: var(--brass-soft); }
.badge.ai { color: #fff; background: #6d5bd0; font-size: 11px; padding: 2px 7px; }
.badge.st.new { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.st.changed { color: var(--brass-strong); background: var(--brass-soft); }
.badge.st.removed { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.badge.st.unchanged { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
tr.st-removed td { opacity: .65; }
.imgstat { display: flex; gap: 6px; flex-wrap: wrap; }
.link.sm { font-size: 12px; }
.versions { margin-top: 22px; padding: 18px; }
.versions h3 { margin: 0 0 4px; font-size: 16px; }
.versions table { margin-top: 12px; }
.versions th, .versions td { padding: 10px 12px; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--brass-soft); color: var(--brass-strong); margin-bottom: 16px; font-weight: 500; }
.wizard { display: grid; gap: 16px; padding: 22px; max-width: 820px; }
.wizard h2 { margin: 6px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wizard .actions { justify-content: flex-start; }
.progress { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.progress li.done { color: var(--ok); }
.progress li.done::marker { content: '✓  '; }
.meta-edit { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; padding: 16px 18px; margin-bottom: 16px; }
.meta-edit p { grid-column: 1 / -1; }
.segmented { display: flex; gap: 4px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.segmented button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13px; }
.segmented button.on { background: var(--brass-soft); color: var(--brass-strong); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; }
table.preview td { vertical-align: top; }
table.preview td.num .sub { white-space: normal; max-width: 260px; }
.thumb.drw { width: 48px; height: 48px; }
.pics { padding: 18px; margin-bottom: 16px; }
.pics-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pics-head h3 { margin: 0; font-size: 16px; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.pic { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.pic.ai { border-color: #6d5bd0; }
.pic-img { all: unset; box-sizing: border-box; height: 110px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; cursor: zoom-in; overflow: hidden; }
.pic-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pic-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pic-form .input { padding: 7px 9px; font-size: 13px; }
.modal.wide { width: min(980px, calc(100vw - 32px)); }
.fin-row { grid-template-columns: 22px 80px 1fr 120px 100px auto; }
.fin-final { white-space: nowrap; font-size: 12px; color: var(--muted); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.img-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.img-frame { height: 90px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-cap { font-size: 13px; }
.img-tile .actions { justify-content: flex-start; }

@media (max-width: 720px) {
  .search { align-items: stretch; }
  .search .brand-select { max-width: none; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 10px; }
  .suggest { left: 0; right: 0; }
  .result-head { grid-template-columns: 1fr; }
  .meta-edit { grid-template-columns: 1fr; }
  .fin-row { grid-template-columns: 60px 1fr 96px auto; }
  .fin-row .fin-final { display: none; }
  .brandbar { gap: 14px; }
}
.search .brand-select { text-transform: none; letter-spacing: 0; font-size: 15px; }
div.sub, span.sub { color: var(--muted); font-size: 13px; }
.thumb { vertical-align: top; }

/* row selection, bulk actions, AI review */
th.chk, td.chk { width: 1%; padding-right: 0; }
th.chk input, td.chk input { width: 16px; height: 16px; accent-color: var(--brass, #a8864a); cursor: pointer; }
tr.picked td { background: color-mix(in srgb, var(--brass, #a8864a) 9%, transparent); }
.toolbar .btn.danger { margin-left: auto; }
.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--brass, #a8864a) 10%, transparent); }
.bulkbar[hidden] { display: none; }
.rowacts { flex-wrap: nowrap; justify-content: flex-end; }
.rowacts .btn { white-space: nowrap; }
.bulkbar { min-height: 46px; }
.bulkbar.idle { background: transparent; border: 1px dashed var(--line); }
.settings-card { padding: 22px 24px; max-width: 860px; }
.settings-card .pics-head { margin-bottom: 4px; }
