:root {
  --bg: #0b0c10;
  --bg-2: #12141b;
  --card: #171a22;
  --ink: #efe8dc;
  --muted: #9a9286;
  --line: rgba(239, 232, 220, 0.08);
  --gold: #d4b483;
  --gold-2: #e8d3a8;
  --sage: #8fbea8;
  --rose: #d9897a;
  --sky: #8aa4c7;
  --on-accent: #ffffff;
  --glow-1: rgba(212, 180, 131, 0.09);
  --glow-2: rgba(138, 164, 199, 0.08);
  --panel: rgba(23, 26, 34, 0.72);
  --chrome: rgba(11, 12, 16, 0.72);
}

html[data-theme="light"] {
  --bg: #f3eee4;
  --bg-2: #e7dfd0;
  --card: #fffaf2;
  --ink: #1c1915;
  --muted: #6f675c;
  --line: rgba(28, 25, 21, 0.1);
  --gold: #9a7040;
  --gold-2: #6e4e28;
  --sage: #3f7a62;
  --rose: #b85a4c;
  --sky: #4d6f94;
  --on-accent: #ffffff;
  --glow-1: rgba(154, 112, 64, 0.14);
  --glow-2: rgba(77, 111, 148, 0.1);
  --panel: rgba(255, 250, 242, 0.86);
  --chrome: rgba(243, 238, 228, 0.82);
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
html[data-theme="light"] { color-scheme: light; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 8% -10%, var(--glow-1), transparent 50%),
    radial-gradient(900px 420px at 100% 0%, var(--glow-2), transparent 46%),
    var(--bg);
  min-height: 100dvh;
}
h1, h2, h3, p { margin: 0; }
button, input, a { font-family: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
  backdrop-filter: blur(18px) saturate(1.1);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.logo em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  padding: 0 0.12em;
}
.brand-rest {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand-sep { color: var(--gold); opacity: 0.7; font-weight: 400; }
.brand-page {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.chrome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 7px 12px;
  font: 600 11px Montserrat, sans-serif;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.theme-toggle:hover { border-color: var(--gold); }
.home-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--bg-2);
  text-decoration: none;
}
.home-link:hover { border-color: var(--gold); color: var(--gold); }
.home-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 96px;
  padding-bottom: max(96px, env(safe-area-inset-bottom));
}
body.is-list {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.is-list .site-chrome { flex-shrink: 0; }
body.is-list .page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 72px;
}
body.is-list #pane-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.is-list .intro,
body.is-list .page-tabs,
body.is-list .totals,
body.is-list .toolbar {
  flex-shrink: 0;
}
body.is-list .table-wrap {
  flex: 1;
  min-height: 0;
}
body.is-media .page {
  overflow: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.intro h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.lead {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.total-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px 18px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.total-bought { box-shadow: inset 3px 0 0 var(--gold); }
.total-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.total-card strong {
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.04em;
  font-weight: 700;
}
.total-card span {
  font-size: 12px;
  color: var(--muted);
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.page-tab {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font: 700 12px Montserrat, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.page-tab.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-accent);
}
.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}
.toolbar-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}
.reset-btn,
.danger-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 16px;
  font: 700 12px Montserrat, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.reset-btn:hover { border-color: var(--gold); color: var(--ink); }
.danger-btn { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 40%, var(--line)); }
.danger-btn:hover { background: color-mix(in srgb, var(--rose) 12%, transparent); }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font: 600 11px Montserrat, sans-serif;
  cursor: pointer;
}
.filter-chip.on {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--on-accent);
}
.add-btn {
  border: 0;
  background: var(--gold);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 10px 16px;
  font: 700 12px Montserrat, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
label.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.table-wrap {
  margin-top: 14px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.check-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 1100px;
}
.check-table th,
.check-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.check-table th {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 14px 10px;
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1;
}
.check-table th:last-child,
.check-table td:last-child { padding-right: 14px; }
.check-table tr:last-child td { border-bottom: 0; }
.check-table tr.bought-row td { opacity: 0.72; }
.col-room { width: 13%; }
.col-name { width: 20%; }
.col-qty { width: 8%; }
.col-unit { width: 8%; }
.col-link { width: 14%; }
.col-unit-price { width: 11%; }
.col-price { width: 12%; }
.col-bought { width: 7%; text-align: center; }
.col-del { width: 48px; text-align: center; }
.cell-sum {
  display: block;
  padding: 8px 8px;
  font: 700 13px Montserrat, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cell-input {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 8px;
  font: 500 13px Montserrat, sans-serif;
  outline: none;
}
.cell-input:hover { border-color: var(--line); background: var(--bg); }
.cell-input:focus {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: var(--bg);
}
.cell-name { font-weight: 600; }
.bought-box {
  text-align: center;
}
.bought-box input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border: 1.5px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  display: block;
  position: relative;
}
.bought-box input:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.bought-box input:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.del-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.del-btn:hover { color: var(--rose); background: color-mix(in srgb, var(--rose) 12%, transparent); }

.theme-toggle:focus-visible,
.home-link:focus-visible,
.add-btn:focus-visible,
.reset-btn:focus-visible,
.page-tab:focus-visible,
.filter-chip:focus-visible,
.cell-input:focus-visible,
.del-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}
.moodboard,
.files-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(16px);
}
.files-panel { position: sticky; top: 72px; }
.media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.moodboard h2,
.files-panel h2,
.sheet-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.04em;
  margin-top: 4px;
}
.mood-reset { margin: 10px 0 14px; align-items: flex-start; }
.drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 16px;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--gold) 6%, var(--bg));
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}
.file-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 80px;
}
.drop-zone strong { color: var(--ink); font-size: 14px; }
.drop-zone span { font-size: 12px; line-height: 1.4; }
.drop-zone.on {
  border-style: solid;
  background: color-mix(in srgb, var(--gold) 14%, var(--bg));
}
.drop-zone-compact { min-height: 76px; margin-bottom: 12px; }
.media-empty,
.media-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.masonry {
  column-count: 3;
  column-gap: 12px;
  margin-top: 16px;
}
.pin {
  break-inside: avoid;
  margin: 0 0 12px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.pin img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.pin-meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 52px);
}
.pin-tag,
.lightbox-card figcaption span:first-child {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--gold) 88%, #000);
  color: var(--on-accent);
  font: 700 10px Montserrat, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pin-cap {
  display: block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink);
  font-size: 12px;
}
.pin-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.pin-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.file-row strong { display: block; font-size: 13px; word-break: break-word; }
.file-row small { color: var(--muted); font-size: 11px; }
.file-row-actions { display: flex; flex-direction: column; gap: 6px; }
.file-row-actions .add-btn,
.file-row-actions .reset-btn,
.file-row-actions .danger-btn {
  padding: 7px 10px;
  font-size: 10px;
  min-height: 0;
  width: auto;
}

.sheet,
.lightbox {
  border: 0;
  padding: 0;
  background: color-mix(in srgb, #000 46%, transparent);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
}
.sheet[open],
.lightbox[open] {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 10px max(16px, env(safe-area-inset-bottom));
}
.lightbox[open] {
  align-items: center;
}
html:has(.lightbox[open]) .assist-dock,
html:has(.sheet[open]) .assist-dock {
  display: none;
}
.sheet::backdrop,
.lightbox::backdrop { background: color-mix(in srgb, #000 46%, transparent); }
.sheet-card,
.lightbox-card {
  width: min(560px, calc(100% - 24px));
  margin: 8vh auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}
.sheet-lead { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sheet-note { display: grid; gap: 6px; margin: 14px 0; font-size: 12px; color: var(--muted); }
.sheet-note input {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font: 500 14px Montserrat, sans-serif;
}
.sheet-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.sheet-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
.sheet-error { color: var(--rose); font-size: 13px; margin: 0 0 10px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.lightbox-card { width: min(880px, calc(100% - 24px)); margin: 0; text-align: center; }
.lightbox-frame {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
}
.lightbox-card img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 16px;
  background: var(--bg);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-nav {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav.is-hidden { visibility: hidden; pointer-events: none; }
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-card figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.lightbox-count { color: var(--muted); font-size: 12px; }
.lightbox-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

@media (max-width: 960px) {
  .media-layout { grid-template-columns: 1fr; }
  .files-panel { position: static; }
  .masonry { column-count: 2; }
}
@media (max-width: 720px) {
  .moodboard, .files-panel { padding: 14px; border-radius: 18px; }
  .media-head { flex-direction: column; }
  .media-head .add-btn { width: 100%; min-height: 46px; }
  .masonry { column-count: 2; }
  .sheet-card { margin: 12px auto; width: calc(100% - 16px); }
  .lightbox[open] {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 26svh 10px max(16px, env(safe-area-inset-bottom));
  }
  .lightbox-card { margin: 0 auto; width: min(100%, 560px); padding: 14px; }
  .lightbox-frame {
    grid-template-columns: 52px 1fr 52px;
    grid-template-areas:
      "img img img"
      "prev . next";
    gap: 10px;
  }
  .lightbox-card img { grid-area: img; max-height: 46svh; }
  .lightbox-frame #lightbox-prev { grid-area: prev; }
  .lightbox-frame #lightbox-next { grid-area: next; }
  .lightbox-nav { width: 52px; height: 52px; }
  .sheet-actions, .lightbox-actions { flex-direction: column; }
  .pin-del { width: 40px; height: 40px; }
  .file-row { grid-template-columns: 1fr; }
  .file-row-actions { flex-direction: row; }
  .file-row-actions .add-btn,
  .file-row-actions .danger-btn { flex: 1; min-height: 44px; }
}
@media (max-width: 420px) {
  .masonry { column-count: 1; }
}

@media (max-width: 720px) {
  body.is-list {
    height: auto;
    overflow: visible;
    display: block;
  }
  body.is-list .page {
    flex: none;
    min-height: 0;
    display: block;
    overflow: visible;
    padding-bottom: max(96px, env(safe-area-inset-bottom));
  }
  body.is-list #pane-list {
    flex: none;
    min-height: 0;
    display: block;
  }
  body.is-list .table-wrap {
    flex: none;
    min-height: 0;
    overflow: visible;
  }
  body.is-list .page-tabs {
    position: sticky;
    top: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 12;
    background: var(--bg);
    padding: 8px 0 10px;
    margin-top: 12px;
  }
  body.is-list .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  body.is-list .filters::-webkit-scrollbar { display: none; }
  body.is-list .filter-chip { flex: 0 0 auto; }
  .site-chrome { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
  .logo { font-size: 16px; }
  .brand-page { font-size: 14px; }
  .theme-toggle { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .home-link { width: 40px; height: 40px; }
  .page { width: min(100% - 20px, 1240px); padding-top: 18px; }
  body.is-list .lead { display: none; }
  body.is-list .intro { margin-bottom: 0; }
  body.is-list .intro h1 { font-size: 28px; }
  body.is-list .toolbar { margin-top: 10px; }
  .totals { grid-template-columns: 1fr; }
  body.is-list .totals { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  body.is-list .total-card { padding: 8px 10px; border-radius: 14px; gap: 2px; }
  body.is-list .total-card strong { font-size: 13px; }
  body.is-list .total-card span { font-size: 10px; }
  .toolbar { flex-direction: column; }
  .toolbar-actions { width: 100%; }
  .add-btn, .reset-btn { width: 100%; min-height: 46px; }
  .page-tab { flex: 1; text-align: center; font-size: 11px; padding: 10px 8px; letter-spacing: 0.03em; }
  .table-wrap { border-radius: 18px; }
  .check-table { min-width: 0; display: block; }
  .check-table thead { display: none; }
  .check-table tbody { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
  .check-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    grid-template-areas:
      "room room bought del"
      "name name name name"
      "qty qty unit unit"
      "unitPrice unitPrice total total"
      "link link link link";
    gap: 8px 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
  }
  .check-table td { border: 0; padding: 0; }
  .cell-room { grid-area: room; }
  .cell-name-wrap { grid-area: name; }
  .cell-qty { grid-area: qty; }
  .cell-unit { grid-area: unit; }
  .cell-link { grid-area: link; }
  .cell-unit-price { grid-area: unitPrice; }
  .cell-total { grid-area: total; }
  .bought-box { grid-area: bought; }
  .cell-del { grid-area: del; justify-self: end; }
  .check-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .cell-input { background: var(--card); border-color: var(--line); }
}
