/* ============ VAULT ============ */
:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #101010;
  --border: #1d1d1d;
  --border-strong: #2e2e2e;
  --text: #f4f4f4;
  --muted: #8b8b8b;
  --up: #3ddc84;
  --down: #ff5f5f;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }

/* ---------- Header: logo centered ---------- */
.top {
  position: relative; z-index: 31;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 32px 8px;
}
.brand { grid-column: 1; justify-self: start; display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 52px; width: auto; display: block; }
/* Desktop: logo on the left, lined up with the page content */
@media (min-width: 821px) {
  .top { max-width: 1080px; margin: 0 auto; }
  .brand { grid-column: 1; justify-self: start; padding-left: 10px; }
  .brand-logo { height: 38px; }
  .top .nav { grid-column: 3; justify-self: end; display: flex; gap: 28px; }
}
.nav { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav a.active { color: #fff; font-weight: 700; }

/* ---------- Phone menu ---------- */
.menu-btn {
  grid-column: 3; justify-self: end; position: relative; z-index: 31;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-btn span {
  display: block; width: 24px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.25s ease;
}
.menu-open .menu-btn span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 30; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-size: 1.6rem; font-weight: 500; }
.mobile-menu a.active { color: #fff; font-weight: 700; }
@media (min-width: 821px) {
  .menu-btn, .mobile-menu { display: none; }
}


main { max-width: 1080px; margin: 0 auto; padding: 20px 32px 120px; }

/* ---------- Notice (errors only) ---------- */
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #3a1d1d;
  background: #120808;
  color: #f1b5b5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 28px;
  font-size: 0.85rem;
}
.notice[hidden] { display: none; }
.link-btn {
  background: #fff; color: #000; border: none; border-radius: var(--radius-sm);
  padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer;
}

/* ---------- Top summary ---------- */
.summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.summary[hidden] { display: none; }
.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.summary-total, .summary-best {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.summary-total { display: flex; flex-direction: column; justify-content: center; }
.total-value {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.total-change { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8rem; }
.total-change .pill { font-size: 0.8rem; padding: 4px 10px; }
.summary-total {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.total-main { display: flex; flex-direction: column; justify-content: flex-start; }
.chart-wrap { display: flex; flex-direction: column; min-width: 0; }
.section-head[hidden] { display: none; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.chart-base { stroke: var(--border); stroke-width: 1; }
.chart-cursor { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-label { fill: var(--muted); font-size: 10px; }
.chart-tip {
  position: absolute; top: 0; transform: translate(-50%, -100%); pointer-events: none;
  background: #151515; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 5px 9px; font-size: 0.72rem; white-space: nowrap; display: flex; flex-direction: column; align-items: center;
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-variant-numeric: tabular-nums; }
.chart-tip span { color: var(--muted); font-size: 0.68rem; }
.best-list { margin-top: 10px; }
.best-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
}
.best-row:hover { background: var(--surface-2); }
.best-row + .best-row { border-top: 1px solid #151515; }
.best-rank { width: 16px; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.best-logo { width: 40px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; }
.best-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.best-name { flex: 1; min-width: 0; }
.best-name strong { display: block; font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-name small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Selected category: its best cards ---------- */
.cat-panel {
  grid-column: 2 / -1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  animation: panel-up 0.35s ease both;
}
@keyframes panel-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
/* Phones: the list stays beside the tile, in a compact form */
@media (max-width: 560px) {
  .cat-panel { padding: 14px; }
  .cat-panel .best-row { gap: 6px; padding: 7px 8px; }
  .cat-panel .best-rank { display: none; }
  .cat-panel .best-name strong { font-size: 0.78rem; }
  .cat-panel .best-name small { font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cat-panel .grade { display: none; }
  .cat-panel .gain { display: none; }
  .cat-panel .pill { font-size: 0.66rem; padding: 2px 6px; }
}
@media (prefers-reduced-motion: reduce) { .cat-panel { animation: none; } }

/* ---------- Category tiles ---------- */
.cat-head.split, .section-head.split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
}
.panel-title { grid-column: 2 / -1; }
.panel-title[hidden] { display: none; }
.cat-panel .best-list { margin-top: -4px; }
.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.collection {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.collection.active { background: #161616; }
.collection { transition: filter 0.2s ease; }
/* Hovering a tile turns the other tiles black and white */
@media (hover: hover) {
  .collections:has(.collection:hover) .collection:not(:hover) { filter: grayscale(1); }
}
.list-title .title-logo { height: 22px; width: auto; max-width: 90px; object-fit: contain; margin: 0 8px; }
.list-title .title-name { margin: 0 6px; }
.logo-box {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-img { max-height: 72px; max-width: 80%; min-width: 0; object-fit: contain; }
.collection { min-width: 0; }
.logo-fallback { font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tile-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px solid #191919;
}
.collection .tile-foot { margin-top: auto; }
.value-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.collection-value { font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.collection-count { font-size: 0.75rem; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill.up { background: rgba(61, 220, 132, 0.12); }
.pill.down { background: rgba(255, 95, 95, 0.12); }

/* ---------- Card list ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }

/* Sort buttons */
.sort-bar { display: flex; gap: 4px; }
.sort-bar[hidden] { display: none; }
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 5px 10px;
  color: #6f6f6f;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.sort-btn:hover { color: #bdbdbd; }
.sort-btn.active { color: #fff; background: #141414; }
.sort-btn .arrow { display: inline-flex; width: 0; overflow: hidden; transition: width 0.15s; }
.sort-btn.active .arrow { width: 12px; }
.sort-btn .arrow svg { width: 12px; height: 12px; }
.list-title { font-size: 1rem; font-weight: 600; display: flex; align-items: center; }
.list-title .count {
  margin-left: 8px; font-size: 0.75rem; font-weight: 500; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
}
.list-title .clear { margin-left: 14px; font-size: 0.8rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.list-title .clear:hover { color: var(--text); }

.list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.list:empty { display: none; }
.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 56px 104px 116px 80px;
  cursor: pointer;
  gap: 16px;
  align-items: center;
  padding: 11px 18px;
  border-top: 1px solid #151515;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  transition: background 0.12s;
}

.list-row.head {
  border-top: none;
  background: #070707;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.list-row .title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.list-row .title .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.list-row:focus-visible { outline: 1px solid #555; outline-offset: -1px; }
.grade {
  flex: none;
  padding: 1px 6px;
  border-radius: 5px;
  background: #1a1a1a;
  color: #bdbdbd;
  font-size: 0.7rem;
  font-weight: 500;
  vertical-align: 1px;
}
.value-cell { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.stale-dot { width: 6px; height: 6px; border-radius: 50%; background: #f5b942; flex: none; }
.ext-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: -2px;
  border-radius: 6px;
  color: #6f6f6f;
  transition: color 0.15s, background 0.15s;
}
.ext-link svg { width: 13px; height: 13px; }
.ext-link:hover { color: #fff; background: #1c1c1c; }
.list-row .num { text-align: right; }
.cat-cell { display: flex; align-items: center; gap: 8px; min-width: 0; color: #cfcfcf; }
.cat-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 22px; height: 22px; object-fit: contain; flex: none; }

.empty { color: var(--muted); padding: 28px 0; font-size: 0.9rem; }

/* ---------- Floating + button ---------- */
.fab-wrap {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none; /* the empty area around the button never blocks the page */
}
.fab {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.fab svg { width: 24px; height: 24px; transition: transform 0.25s ease; }
.fab:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.08); }
.fab-wrap.open .fab svg { transform: rotate(45deg); }

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  min-width: 240px;
  background: #0e0e0e;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.fab-wrap.open .fab-menu { opacity: 1; transform: none; pointer-events: auto; }
.fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.fab-item:hover { background: #1a1a1a; }
.fab-item strong { display: block; font-size: 0.9rem; font-weight: 600; }
.fab-item small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.fab-icon {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: #1a1a1a; font-size: 1rem;
}

.fab-icon .dot { width: 8px; height: 8px; border-radius: 50%; background: #777; }
#syncStatus.unsaved .dot { background: #f5b942; }
.fab-item[hidden] { display: none; }
.fab.has-unsaved::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f5b942;
  border: 2px solid #000;
}
.fab { position: relative; }

/* ---------- Popups ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 10; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(2px); }
.modal-box {
  position: relative;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: var(--radius);
  padding: 24px;
  width: min(440px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.modal-box h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; }

form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 14px;
}
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select {
  background: #000;
  color: var(--text);
  border: 1px solid #262626;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  min-width: 0;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus { border-color: #8a8a8a; }

.file-field { cursor: pointer; }
.logo-picker { display: flex; align-items: center; gap: 12px; }
.logo-preview {
  width: 96px; height: 56px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #000; border: 1px dashed #333; border-radius: var(--radius-sm);
  color: #555; font-size: 0.7rem; overflow: hidden;
}
.logo-preview img { max-width: 88%; max-height: 80%; object-fit: contain; }

/* Card popup: link field + price check line */
.link-field { display: flex; align-items: center; gap: 8px; }
.link-field input { flex: 1; font-size: 0.8rem; color: #cfcfcf; }
.icon-btn {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px;
  border: 1px solid #262626; border-radius: var(--radius-sm);
  color: var(--muted); background: #111;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn::before {
  content: "";
  width: 15px; height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 2.5h4v4M13.5 2.5 7.5 8.5M11.5 9.5v3a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h3' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 2.5h4v4M13.5 2.5 7.5 8.5M11.5 9.5v3a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h3' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.icon-btn:hover { color: #fff; border-color: #444; }
.icon-btn.disabled { opacity: 0.35; pointer-events: none; }

.value-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: -6px 0 14px; min-height: 1em;
  font-size: 0.75rem; color: var(--muted);
}
.value-meta:empty { display: none; }
.value-meta .sep { color: #3a3a3a; }
.value-meta .warn { color: #f5b942; }
.value-meta .ok { color: var(--up); }
.value-meta a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.value-meta a:hover { color: var(--text); }
.value-meta a svg { width: 11px; height: 11px; }
.value-meta .text-btn { font-size: 0.75rem; text-decoration: underline; text-underline-offset: 2px; }

/* Backups list */
.backup-list { max-height: 340px; margin: 4px 0 8px; }
.backup-row .cat-name strong { display: block; font-size: 0.85rem; font-weight: 500; }
.backup-row .cat-name small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; white-space: normal; }

.hint { font-size: 0.78rem; color: var(--muted); margin: -4px 0 12px; min-height: 1em; }
.hint.error { color: var(--down); }

.actions { display: flex; gap: 10px; margin-top: 6px; align-items: center; }
.spacer { flex: 1; }
.btn {
  display: inline-block;
  background: #151515;
  color: var(--text);
  border: 1px solid #262626;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: #444; }
.btn.small { padding: 7px 12px; font-size: 0.8rem; }
.btn.primary { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.btn.primary:hover { background: #e6e6e6; }
.btn.danger { color: var(--down); }

/* Category list inside the category popup */
.cat-section { margin-top: 22px; border-top: 1px solid #1a1a1a; padding-top: 16px; }
.cat-section h3 { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500; margin-bottom: 6px; }
.cat-list { max-height: 260px; overflow-y: auto; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #151515; font-size: 0.875rem; }
.cat-row:last-child { border-bottom: none; }
.cat-thumb { width: 28px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.cat-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.cat-row input { padding: 6px 10px; font-size: 0.875rem; flex: 1; }
.text-btn {
  background: none; border: none; color: var(--muted);
  font: inherit; font-size: 0.75rem; cursor: pointer; padding: 2px 0; white-space: nowrap;
}
.text-btn:hover { color: var(--text); }
.text-btn.danger:hover, .text-btn.danger.confirm { color: var(--down); }
.cat-empty { color: var(--muted); font-size: 0.85rem; padding: 6px 0; }
.cat-error { color: var(--down); font-size: 0.75rem; padding: 4px 0 0; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .summary { grid-template-columns: 1fr; }
  .summary-total { gap: 16px; padding: 20px; }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-row { grid-template-columns: minmax(0, 1fr) 96px 72px; }
  .list-row .col-collection, .list-row .col-year, .list-row .col-paid { display: none; }
}
@media (max-width: 560px) {
  .top { padding: 20px 16px 4px; }
  .brand-logo { height: 34px; }
  .brand { padding-left: 6px; }
  .total-value { font-size: 1.75rem; }
  .section-head { flex-wrap: wrap; }
  main { padding: 24px 16px 100px; }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .section-head.split { column-gap: 10px; }
  .panel-title { font-size: 0.85rem; white-space: nowrap; }
  .collection { padding: 14px; }
  .value-row { gap: 6px; }
  .collection-value { font-size: 0.95rem; }
  .value-row .pill { font-size: 0.68rem; padding: 2px 6px; }
  .fab-wrap { right: 18px; bottom: 18px; }
}
