/* Looma Orders — mobile-first styles */
:root {
  color-scheme: light;
  --bg: #f4f3f0;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --border: #e3e1dc;
  --text: #0b1020;
  --text-2: #52514e;
  --muted: #7a7873;
  --brand: #111a33;
  --brand-ink: #ffffff;
  --accent: #2a78d6;
  --ok-bg: #e5f4ea; --ok: #17613a;
  --err-bg: #fbe7e6; --err: #a2231f;
  --warn-bg: #fdf2d9; --warn: #8a5a00;
  --st-pending: #8a5a00; --st-pending-bg: #fdf2d9;
  --st-printed: #1d4f91; --st-printed-bg: #e3edfb;
  --st-packed: #4a3aa7; --st-packed-bg: #ebe8fa;
  --st-shipped: #17613a; --st-shipped-bg: #e5f4ea;
  --st-delayed: #ffffff; --st-delayed-bg: #c62828;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --surface-2: #222220; --border: #33322f;
    --text: #f3f2ee; --text-2: #c3c2b7; --muted: #95948c;
    --brand: #0b1020; --accent: #3987e5;
    --ok-bg: #173323; --ok: #8fd6a8; --err-bg: #3a1716; --err: #f4a5a1; --warn-bg: #3a2c0e; --warn: #f1c46b;
    --st-pending: #f1c46b; --st-pending-bg: #3a2c0e;
    --st-printed: #9cc3f5; --st-printed-bg: #16273f;
    --st-packed: #bdb4f5; --st-packed-bg: #25203f;
    --st-shipped: #8fd6a8; --st-shipped-bg: #173323;
    --st-delayed-bg: #d64545;
    --series-1: #3987e5; --series-2: #d95926;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --surface-2: #222220; --border: #33322f;
  --text: #f3f2ee; --text-2: #c3c2b7; --muted: #95948c;
  --brand: #0b1020; --accent: #3987e5;
  --ok-bg: #173323; --ok: #8fd6a8; --err-bg: #3a1716; --err: #f4a5a1; --warn-bg: #3a2c0e; --warn: #f1c46b;
  --st-pending: #f1c46b; --st-pending-bg: #3a2c0e;
  --st-printed: #9cc3f5; --st-printed-bg: #16273f;
  --st-packed: #bdb4f5; --st-packed-bg: #25203f;
  --st-shipped: #8fd6a8; --st-shipped-bg: #173323;
  --st-delayed-bg: #d64545;
  --series-1: #3987e5; --series-2: #d95926;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.35rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
h2.inline { display: inline; }
h3, h4 { margin: 16px 0 8px; font-size: .95rem; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }

/* ---------- top bar (scrollable nav on phones) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--brand); color: var(--brand-ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 8px 16px;
}
.brand { color: #fff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; }
.nav { order: 3; width: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #c9cfdd; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.me { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.me a { color: #c9cfdd; }
.linkbtn { background: none; border: 0; color: #c9cfdd; font: inherit; cursor: pointer; padding: 4px; }
form.inline { display: inline; }
@media (min-width: 860px) {
  .nav { order: 0; width: auto; margin: 0; }
  .topbar { flex-wrap: nowrap; padding: 10px 24px; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 16px 16px 96px; }
@media (min-width: 860px) { .wrap { padding: 24px; } }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { font-size: .85rem; display: inline-block; margin-bottom: 4px; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn.primary { background: var(--accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--accent); border-color: var(--accent); } }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--err); border-color: var(--err); background: transparent; }
.btn.small { min-height: 36px; padding: 0 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; }

input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming into fields */
}
textarea { resize: vertical; min-height: 64px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
input[type=color] { width: 44px; padding: 3px; flex: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.w-sm { width: 140px; } .w-xs { width: 70px; }
label { display: block; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 6px; font-weight: 500; }
.hint { color: var(--muted); font-size: .85rem; margin: 8px 0 0; }

/* ---------- alerts, badges ---------- */
.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--err); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; vertical-align: middle; }
.badge.pending { color: var(--st-pending); background: var(--st-pending-bg); }
.badge.printing { color: var(--st-printed); background: var(--st-printed-bg); border: 1px dashed currentColor; }
.badge.printed { color: var(--st-printed); background: var(--st-printed-bg); }
.badge.packed { color: var(--st-packed); background: var(--st-packed-bg); }
.badge.shipped { color: var(--st-shipped); background: var(--st-shipped-bg); }
.badge.delayed { color: var(--st-delayed); background: var(--st-delayed-bg); }
.late { color: var(--err); font-weight: 600; font-size: .8rem; }

/* ---------- panels, grids ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel.narrow { max-width: 480px; }
.panel-alert { border-color: var(--st-delayed-bg); }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field.check { flex-direction: row; align-self: end; }
.lbl { font-size: .8rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.val { font-size: 1rem; word-break: break-word; display: flex; align-items: center; gap: 8px; }
.val.strong { font-size: 1.15rem; font-weight: 700; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); flex: none; }
.two-col { display: grid; gap: 14px; }
.two-col .panel { margin: 0; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; margin-bottom: 14px; } }

/* ---------- tabs & filters ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); white-space: nowrap; font-weight: 500; font-size: .9rem; }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs a.warn:not(.on) { border-color: var(--st-delayed-bg); color: var(--err); }
.tabs .count { font-size: .75rem; background: rgba(127,127,127,.18); padding: 1px 7px; border-radius: 999px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.filters input[type=search] { flex: 1 1 220px; }
.filters details { flex: 1 1 100%; order: 3; }
.filters summary { cursor: pointer; color: var(--accent); font-size: .9rem; padding: 4px 0; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.filter-grid label { font-size: .8rem; color: var(--text-2); display: grid; gap: 4px; }

/* ---------- order cards ---------- */
.cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); color: var(--text); display: block; }
.card.is-delayed { border-left: 4px solid var(--st-delayed-bg); }
.card.inactive, .inactive { opacity: .55; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-top { display: flex; gap: 12px; }
.thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.swatch-thumb { display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--sw) 70%, var(--surface-2)); }
.card-main { flex: 1; min-width: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cust { margin-top: 2px; }
.spec { color: var(--text-2); font-size: .9rem; margin-top: 2px; }
.qty { font-weight: 700; color: var(--text); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.ticks { display: flex; gap: 6px; margin-top: 10px; position: relative; z-index: 2; }
.tick {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.tick .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid currentColor; display: inline-grid; place-items: center; font-size: 13px; line-height: 1; }
.tick.done { background: var(--st-shipped-bg); color: var(--st-shipped); border-color: transparent; }
.tick.done .box { background: var(--st-shipped); border-color: var(--st-shipped); color: var(--surface); }
.tick:disabled { cursor: default; opacity: .75; }
.tick.busy { opacity: .5; pointer-events: none; }
.ticks-panel { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .ticks-panel { grid-template-columns: repeat(3, 1fr); } }
.tick.big { min-height: 64px; justify-content: flex-start; padding: 10px 14px; font-size: 1rem; text-align: left; }
.tick.big .box { width: 28px; height: 28px; font-size: 18px; flex: none; }
.tick.big small { display: block; font-weight: 400; font-size: .78rem; opacity: .85; }
.user-card { display: grid; gap: 4px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }

/* ---------- mock-up gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (min-width: 700px) { .gallery:not(.edit) { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.gal-item { display: block; position: relative; }
.gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: block; }
.gal-item .del { display: flex; gap: 6px; align-items: center; font-size: .85rem; padding: 6px 0; }
.file-input { padding: 10px; background: var(--surface-2); }
.preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: grid; place-items: center; overflow: auto; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; cursor: zoom-in; }
.lightbox img.zoom { max-width: none; max-height: none; width: 200vw; cursor: zoom-out; }
.lb-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; cursor: pointer; }

.sticky-actions {
  position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); margin: 0 -16px;
  border-top: 1px solid var(--border);
}
.sticky-actions .btn.primary { flex: 1 1 160px; }
.danger-zone { margin: 24px 0; text-align: right; }
.history { list-style: none; padding: 0; margin: 8px 0 0; font-size: .85rem; display: grid; gap: 6px; }
summary { cursor: pointer; }

/* ---------- dashboard ---------- */
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats.pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stats.pipeline { grid-template-columns: repeat(6, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 2px; color: var(--text); box-shadow: var(--shadow); }
.stat-label { font-size: .8rem; color: var(--text-2); font-weight: 600; }
.stat-num { font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.stat-sub { font-size: .8rem; color: var(--muted); }
.stat-alert { border-color: var(--st-delayed-bg); background: var(--err-bg); }
.stat-alert .stat-label, .stat-alert .stat-num { color: var(--err); }
.stat-warn { border-color: var(--warn); }
.day-pick { display: flex; gap: 6px; align-items: center; }
.day-pick input { width: auto; }
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: var(--surface-2); }
.table.compact td, .table.compact th { padding: 7px 8px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }

.legend { display: flex; gap: 16px; font-size: .85rem; color: var(--text-2); margin-bottom: 8px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.key.k1, .bar.b1 { background: var(--series-1); }
.key.k2, .bar.b2 { background: var(--series-2); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; height: 180px; align-items: end; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.bar-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; outline: none; }
.bar-pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; padding: 0 1px; }
.bar { flex: 1; min-height: 0; border-radius: 4px 4px 0 0; }
.bar-col.sel .bar-x { color: var(--text); font-weight: 700; }
.bar-x { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--muted); padding-top: 4px; line-height: 1.1; }
.bar-col:hover, .bar-col:focus { background: rgba(127,127,127,.08); }
.bar-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: .78rem; white-space: nowrap; z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.bar-col:hover .bar-tip, .bar-col:focus .bar-tip { display: block; }
.bar-col:nth-child(-n+3) .bar-tip { left: 0; transform: none; }
.bar-col:nth-last-child(-n+3) .bar-tip { left: auto; right: 0; transform: none; }

/* ---------- admin ---------- */
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.perm-group { border-top: 1px solid var(--border); padding-top: 12px; color: var(--text-2); }
.perm-table { display: grid; gap: 4px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.perm-name { font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex: none; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 12px; font-size: .85rem; cursor: pointer; min-width: 58px; text-align: center; }
.seg label + label span { border-left: 1px solid var(--border); }
.seg-none input:checked + span { background: var(--surface-2); color: var(--muted); font-weight: 700; }
.seg-view input:checked + span { background: var(--st-printed-bg); color: var(--st-printed); font-weight: 700; }
.seg-edit input:checked + span { background: var(--st-shipped-bg); color: var(--st-shipped); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.chip-list { display: grid; gap: 6px; margin-bottom: 10px; }
.chip-form, .color-row, .inline-add { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.color-row input[name=name] { flex: 1 1 140px; width: auto; }
.inline-add { margin-top: 10px; }
.inline-add input[name=name] { flex: 1 1 180px; width: auto; }
.color-rows { display: grid; gap: 6px; }
details.product { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface-2); }
details.product[open] { background: var(--surface); }
details.product summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.swatches { display: inline-flex; gap: 3px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border); display: inline-block; }
.field-row { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }

/* ---------- login ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--brand); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 16px; padding: 28px 24px; }
.brand-lg { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 1.4rem; }

/* ---------- order items ---------- */
.items-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0 8px; }
.items-head h2 { margin: 0; }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.item-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .9rem; }
.item-tools { display: flex; gap: 6px; }
.remove-toggle { gap: 6px; }
.remove-toggle input { width: 16px; height: 16px; }
.item-card { border-left: 4px solid var(--brand); }
.item-card.removing { opacity: .45; }
.item-card.removing .grid, .item-card.removing .mockup-field { pointer-events: none; }
.item-card .mockup-field { margin-top: 12px; }
.item-view { display: grid; gap: 12px; }
.item-view.is-printed { border-left: 4px solid var(--st-shipped); }
.item-view .grid { margin-top: 0; }
.printed-note { color: var(--st-shipped); margin: -4px 0 8px; }
.add-item { width: 100%; border-style: dashed; margin-bottom: 14px; min-height: 52px; }
.tick.info { cursor: default; }
.total-pcs { align-self: center; font-weight: 600; color: var(--text-2); font-size: .9rem; flex: 1 1 100%; }
@media (min-width: 600px) { .total-pcs { flex: 0 0 auto; margin-right: auto; } }
.item-lines { list-style: none; margin: 6px 0 0; padding: 0; font-size: .85rem; color: var(--text-2); display: grid; gap: 2px; }
.item-lines li { display: flex; gap: 6px; align-items: baseline; }
.item-lines .pdot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; transform: translateY(-1px); }
.item-lines .pdot.on { background: var(--st-shipped); border-color: var(--st-shipped); }
.item-lines .more { color: var(--muted); }
.table td.wrap-cell { white-space: normal; min-width: 220px; }
.print-details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.print-details > summary { font-weight: 600; min-height: 36px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.print-details[open] > summary { margin-bottom: 10px; }
