/* Ruang: staff console. System fonts only (readability first). One file, no framework. */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --surface-3: #f1f0ec;
  --ink: #15181a;
  --ink-2: #3d4347;
  --muted: #6b7176;
  --faint: #9aa0a4;
  --line: #e8e6e1;
  --line-strong: #d6d3cc;
  --accent: #e8a657;
  --accent-hover: #dd9540;
  --accent-soft: #fbf1e3;
  --accent-ink: #8a4f0e;
  --blue: #0a7fae;
  --blue-soft: #e7f3f8;
  --ok: #1d7a4b;
  --ok-soft: #e8f4ed;
  --warn: #9a5a12;
  --warn-soft: #fdf3e4;
  --danger: #b8392c;
  --danger-soft: #fbecea;
  --side: #0b0e10;
  --side-ink: #f3f1ec;
  --side-muted: rgba(243, 241, 236, 0.56);
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 48px -12px rgba(16, 24, 40, 0.28);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --focus: 0 0 0 3px rgba(10, 127, 174, 0.28);
  --side-w: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1 { font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 650; }
code { font-family: var(--mono); font-size: 12.5px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
[hidden] { display: none !important; }
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- layout ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--side-w);
  display: flex; flex-direction: column; gap: 4px; padding: 18px 12px 14px;
  background: linear-gradient(180deg, var(--side) 0%, #0e1215 100%); color: var(--side-ink); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 12px; color: var(--side-ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 72px; height: auto; }
.brand b { font-size: 14px; font-weight: 650; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.env { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #2bb8ea; color: #04202b; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.side__menu { display: grid; gap: 2px; }
.nav-group--top { padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
/* Titled groups are accordions (details name="ruang-nav"): one open at a time. */
details.nav-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 9px;
  list-style: none; cursor: pointer; user-select: none;
  font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 241, 236, 0.5);
}
details.nav-group > summary::-webkit-details-marker { display: none; }
details.nav-group > summary:hover { color: var(--side-ink); background: rgba(255, 255, 255, 0.04); }
details.nav-group > summary .i { transition: transform 0.18s ease; opacity: 0.7; }
details.nav-group[open] > summary { color: var(--side-ink); }
details.nav-group[open] > summary .i { transform: rotate(90deg); }
details.nav-group > .nav { padding: 2px 0 8px; }
details.nav-group:has([aria-current='page']) > summary { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { details.nav-group > summary .i { transition: none; } }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--side-muted); font-weight: 500; }
.nav a:hover { color: var(--side-ink); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--side-ink); background: rgba(232, 166, 87, 0.14); box-shadow: inset 2px 0 0 var(--accent); }
.nav a[aria-current='page'] .i { color: var(--accent); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(232, 166, 87, 0.18); color: var(--accent); font-size: 12px; font-weight: 700; }
.avatar--lg { width: 52px; height: 52px; font-size: 17px; background: var(--accent-soft); color: var(--accent-ink); }
.me__text { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.me__text a { color: var(--side-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__text small { color: var(--side-muted); }
.me .icon-btn { color: var(--side-muted); }
.me .icon-btn:hover { color: var(--side-ink); background: rgba(255, 255, 255, 0.06); }
.main { margin-left: var(--side-w); min-width: 0; }
.topbar-m, .scrim { display: none; }
.page { max-width: 1200px; margin: 0 auto; padding: 28px clamp(16px, 3.5vw, 40px) 64px; }

@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(11, 14, 16, 0.45); }
  .main { margin-left: 0; }
  .topbar-m { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--side); color: var(--side-ink); }
  .topbar-m img { width: 60px; height: auto; }
  .topbar-m b { font-size: 14px; }
  .topbar-m .icon-btn { color: var(--side-ink); margin-left: auto; }
  .topbar-m .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
  .page { padding-top: 20px; }
}

/* ---------- page head ---------- */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.head__text { min-width: 0; display: grid; gap: 4px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.identity p { color: var(--muted); overflow-wrap: anywhere; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04); transition: background-color 0.15s, border-color 0.15s; }
.btn:hover { border-color: var(--faint); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #16191b; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #9e2e22; border-color: #9e2e22; }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn--sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; }
.htmx-request .btn[type=submit], .btn.htmx-request { opacity: 0.7; pointer-events: none; }

/* ---------- cards & stats ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.card__head p { color: var(--muted); font-size: 13px; }
.card__body { padding: 14px 18px 18px; }
.card--flush .card__body { padding: 0; }
.card--danger { border-color: #f0cdc8; }
.card + .card, .grid + .card, .card + .grid, .grid + .grid { margin-top: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); margin-bottom: 16px; }
.stat { display: grid; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); }
a.stat:hover { border-color: var(--line-strong); text-decoration: none; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat strong { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 10px 18px; }
.facts dt { color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }
.todo { list-style: none; padding: 0; display: grid; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.todo li .i { flex: none; color: var(--warn); }
.todo li > span { flex: 1; min-width: 0; }
.todo li.ok .i { color: var(--ok); }
.todo a { margin-left: auto; font-weight: 600; white-space: nowrap; }
.feed { list-style: none; padding: 0; display: grid; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.rule-list { list-style: none; padding: 0; display: grid; }
.rule-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li > div { display: grid; gap: 2px; min-width: 0; }
.rule-list small { font-size: 12px; }
.rule-list__value { font-weight: 600; text-align: right; white-space: nowrap; }
.feed time { color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.action-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.action-list button, .action-list a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.action-list button:hover, .action-list a:hover { background: var(--surface-3); text-decoration: none; }
.action-list .danger { color: var(--danger); }
.action-list small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- toolbar & tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 240px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { padding-left: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 500; background: var(--surface); }
.chip:hover { text-decoration: none; border-color: var(--faint); }
.chip[aria-current='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.table-wrap { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.th-sort:hover { color: var(--ink); text-decoration: none; }
.th-sort.is-active { color: var(--ink); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .end { text-align: right; white-space: nowrap; }
.cell-main { display: grid; line-height: 1.35; min-width: 0; }
.cell-main a, .cell-main strong { color: var(--ink); font-weight: 600; }
.cell-main small { color: var(--muted); overflow-wrap: anywhere; }
.table .empty { padding: 40px 16px; text-align: center; color: var(--muted); cursor: default; }
tr.is-new td { animation: flash-row 2.4s ease-out; }
@keyframes flash-row { 0%, 35% { background: var(--accent-soft); } }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pager div { display: flex; gap: 6px; }

@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { padding: 2px 0; border: 0; }
  .table td[data-hide-sm] { display: none; }
  .table .end, .table .num { text-align: left; }
  .table tbody tr:hover td { background: transparent; }
}

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--danger { background: var(--danger-soft); color: var(--danger); }
.pill--plain::before { display: none; }

/* ---------- forms ---------- */
.stack { display: grid; gap: 14px; }
.row2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .legend { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12.5px; }
.field small.error { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select {
  width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.field--error input, .field--error select { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-hover); flex: none; }
.check small { display: block; color: var(--muted); font-weight: 400; }
.options { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { margin-top: 2px; accent-color: var(--accent-hover); flex: none; }
.option b { display: block; }
.option small { color: var(--muted); }
.code-input { font-family: var(--mono) !important; font-size: 20px !important; letter-spacing: 0.3em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; background: var(--ok-soft); color: #174f33; border: 1px solid #c8e5d3; }
.flash--error { background: var(--danger-soft); color: #7d2219; border-color: #f0cdc8; }
.flash--info { background: var(--blue-soft); color: #064a66; border-color: #cbe5ef; }
.flash + .stack, .flash + form, .stack + .flash { margin-top: 12px; }
.secret { font-family: var(--mono); font-size: 17px; padding: 12px 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 10px; overflow-wrap: anywhere; user-select: all; }
.qr { width: 184px; max-width: 100%; }
.qr svg { width: 100%; height: auto; display: block; }

/* ---------- permission matrix ---------- */
.perm-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.perm-group:first-child { padding-top: 0; }
.perm-group:last-child { border-bottom: 0; }
.perm-group h3 { margin-bottom: 8px; }
.perm-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.perm-yes { color: var(--ok); }
.perm-no { color: var(--faint); }

/* ---------- modal ---------- */
dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.modal::backdrop { background: rgba(11, 14, 16, 0.5); }
dialog.modal[open] { animation: pop 0.18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.modal__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 20px 12px; background: var(--surface); }
.modal__head p { color: var(--muted); margin-top: 2px; }
.modal__body { padding: 4px 20px 20px; }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  dialog.modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92vh; }
}
.page-modal { max-width: 580px; }

/* ---------- step-by-step ---------- */
.stepper { list-style: none; display: flex; gap: 6px; padding: 0 0 16px; margin: 0; overflow-x: auto; }
.stepper li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.stepper li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 11.5px; }
.stepper li.is-current { color: var(--ink); }
.stepper li.is-current span { background: var(--ink); color: #fff; }
.stepper li.is-done span { background: var(--ok-soft); color: var(--ok); }
.stepper li + li::before { content: ''; width: 14px; height: 1px; background: var(--line-strong); }
form:not(.is-wizard) [data-next], form:not(.is-wizard) [data-back], form:not(.is-wizard) [data-summary] { display: none; }
[data-step] { display: grid; gap: 14px; min-width: 0; }
.summary { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 8px 16px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.summary dt { color: var(--muted); max-width: 18ch; }
.summary dd { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: grid; gap: 8px; }
.toast { max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.toast.is-shown { opacity: 1; transform: none; }
.toast--error { background: var(--danger); }

/* ---------- sign-in pages ---------- */
.auth-page { background: radial-gradient(120% 80% at 50% 0%, #161c20 0%, var(--side) 60%); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth__card { width: 100%; max-width: 400px; padding: 30px 28px; background: rgba(21, 26, 30, 0.92); color: var(--side-ink); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; box-shadow: var(--shadow-lg); }
.auth__logo { width: 96px; height: auto; margin-bottom: 18px; }
.auth h1 { margin-bottom: 4px; }
.auth .muted { color: var(--side-muted); margin-bottom: 18px; }
.auth .field > label { color: var(--side-muted); }
.auth input { background: #0b0e10; color: var(--side-ink); border-color: rgba(255, 255, 255, 0.16); }
.auth a:not(.btn) { color: var(--accent); }
.auth .flash { margin-bottom: 14px; }
.auth .small { margin-top: 14px; }
.env--inline { margin-left: 6px; vertical-align: 2px; }
.inline-form { display: inline; }
.perm-compact { list-style: none; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.perm-compact li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.perm-compact li.is-on { color: var(--ink); background: var(--ok-soft); border-color: #cfe7d8; }

/* SIM review: photos side by side, big enough to read the card */
.photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.photos figure { margin: 0; display: grid; gap: 6px; }
.photos img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.photos figure.wide { grid-column: 1 / -1; }
.photos figcaption { font-size: 12.5px; color: var(--muted); }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter b { font-variant-numeric: tabular-nums; }
/* Shop */
.thumb-col { width: 60px; }
.thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.select-inline select { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; max-width: 220px; }
.photos--grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photos--grid img { aspect-ratio: 1; object-fit: contain; }
.photos--grid figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.photo-actions { display: inline-flex; gap: 2px; margin-left: auto; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.upload__pick { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 600; }
.upload__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload [data-upload-status] { flex-basis: 100%; }
.upload.is-busy { opacity: 0.6; pointer-events: none; }
.check-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.table tr.is-muted td { opacity: 0.55; }
.table tfoot td { padding: 12px 14px; border-top: 1px solid var(--line); }
.strike { text-decoration: line-through; }
.prewrap { white-space: pre-line; font-size: 14px; line-height: 1.55; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; font-weight: 600; }
.more > *:not(summary) { margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { padding-left: 14px; border-left: 2px solid var(--line-strong); }
.card__foot { padding: 12px 16px; margin: 0; border-top: 1px solid var(--line); }
.nowrap { white-space: nowrap; }
