/* Tally — dark-first, colour tiles, big numbers. */
:root {
  --bg: #0d0d10;
  --surface: #18181d;
  --surface-2: #232329;
  --line: #26262e;
  --text: #f4f4f6;
  --muted: #a4a4b0;
  --faint: #6b6b78;
  --ink: #111114;
  --bar: #4a4a55;
  --accent: #ff8a5b;
  --good: #7ee0a4;
  --bad: #ff8f8f;
  --radius: 26px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f3f6; --surface: #ffffff; --surface-2: #ececf1; --line: #e1e1e8; --text: #111114; --muted: #5d5d6b;
    --faint: #8a8a98; --bar: #c9c9d3; --good: #1d8a4e; --bad: #c43c3c; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f3f6; --surface: #ffffff; --surface-2: #ececf1; --line: #e1e1e8; --text: #111114; --muted: #5d5d6b;
  --faint: #8a8a98; --bar: #c9c9d3; --good: #1d8a4e; --bad: #c43c3c; color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; overscroll-behavior-y: none;
  min-height: 100dvh;
}
body.sheet-open { overflow: hidden; }
input, textarea { -webkit-user-select: text; user-select: text; font: inherit; color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; }
code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; word-break: break-all; -webkit-user-select: all; user-select: all; }
.icon { flex: none; display: block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 32px 16px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 2px; }

/* ---------------------------------------------------------------- page chrome */
.page { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-top) + 18px) 16px calc(var(--nav-h) + var(--safe-bottom) + 28px); display: flex; flex-direction: column; gap: 14px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 8px 4px 4px; }
.top-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.top h1 { font-size: 34px; font-weight: 800; line-height: 1.05; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-stat { display: flex; flex-direction: column; align-items: flex-end; }
.top-stat b { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; }
.top-stat span { font-size: 12px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.icon-btn:disabled { opacity: 0.35; }
.icon-btn.small { width: 36px; height: 36px; border-radius: 10px; background: transparent; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; flex: none; }
.icon-btn .sync-dot { position: absolute; top: 7px; right: 7px; }
.sync-dot.ok { background: transparent; }
.sync-dot.pending, .sync-dot.busy { background: #ffd166; }
.sync-dot.off { background: var(--bad); }
.sync-card .sync-dot.ok { background: var(--good); }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  padding: 6px 12px calc(var(--safe-bottom) + 6px); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line);
}
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; min-height: 48px; justify-content: center; font-size: 11px; font-weight: 600; color: var(--faint); border-radius: 14px; }
.nav-btn.on { color: var(--text); }

/* ---------------------------------------------------------------- tiles */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  --c: #888; position: relative; height: 158px; border-radius: var(--radius); padding: 16px; background: var(--c); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; cursor: pointer; outline: none;
  transition: transform 220ms cubic-bezier(.3, 1.5, .5, 1), box-shadow 200ms; touch-action: manipulation;
}
.tile:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.tile.pressing { transform: scale(0.95); transition-duration: 120ms; }
.tile.bump .tile-num, .tile.bump .tile-value > .icon { animation: bump 380ms cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
.tile.over::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(17, 17, 20, 0.11) 0 9px, transparent 9px 18px);
}
.tile.met::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(17, 17, 20, 0.35); pointer-events: none; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; position: relative; }
.tile-badge { font-size: 11px; font-weight: 600; background: rgba(17, 17, 20, 0.12); padding: 4px 8px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.tile-bottom { display: flex; flex-direction: column; gap: 5px; position: relative; min-width: 0; }
.tile-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.tile-num { font-family: var(--display); font-size: 46px; font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; display: inline-block; transform-origin: left bottom; white-space: nowrap; }
.tile-num.muted { color: rgba(17, 17, 20, 0.45); }
.tile-small { font-size: 12.5px; font-weight: 600; opacity: 0.72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-bar { height: 5px; border-radius: 99px; background: rgba(17, 17, 20, 0.14); overflow: hidden; }
.tile-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width 400ms ease; }
.tile.add { background: transparent; color: var(--muted); border: 2px dashed var(--line); align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; }
.tile.add:active { background: var(--surface); }
.tile.preview { width: 140px; height: 140px; flex: none; cursor: default; }
.arranging .tile:not(.add) { animation: jiggle 260ms ease-in-out infinite alternate; }
.arranging .tile:nth-child(2n):not(.add) { animation-delay: -130ms; }
@keyframes jiggle { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.arrange { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; z-index: 2; }
.arrange button { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--c); display: flex; align-items: center; justify-content: center; }
.arranging .tile-bottom { visibility: hidden; }
.below-grid { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.hint { font-size: 12px; color: var(--faint); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 2px; min-height: 44px; }

/* ---------------------------------------------------------------- onboarding & login */
.onboard { display: flex; flex-direction: column; gap: 14px; padding: 8px 2px; }
.onboard h2 { font-size: 26px; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.template { --c: #888; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); font-weight: 600; text-align: left; transition: transform 150ms; }
.template .icon { color: var(--c); }
.template.on { background: var(--c); color: var(--ink); }
.template.on .icon { color: var(--ink); }
.template:active { transform: scale(0.96); }
.login { max-width: 380px; margin: 0 auto; min-height: 100dvh; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.login-mark { width: 72px; height: 72px; border-radius: 24px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.login h1 { font-size: 44px; font-weight: 800; }
.login p { margin: 0; color: var(--muted); }
.login input { height: 54px; border-radius: 16px; border: 0; background: var(--surface); padding: 0 16px; font-size: 17px; outline: none; }
.login-msg { color: var(--bad) !important; min-height: 20px; }

/* ---------------------------------------------------------------- buttons, fields, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 16px; background: var(--surface-2); font-weight: 650; font-size: 15px; text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; }
.btn.primary { background: var(--text); color: var(--bg); min-height: 56px; font-size: 16px; border-radius: 18px; }
.btn.primary.tinted { background: var(--c); color: var(--ink); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.danger { color: var(--bad); }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--surface-2); font-size: 16px; outline: none; }
.input.big { height: 54px; font-size: 18px; font-weight: 600; }
.input:focus, .login input:focus { box-shadow: 0 0 0 2px var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.field-label { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { --c: var(--text); display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; min-height: 40px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--c); border-color: var(--c); color: var(--ink); }
.chip .icon { color: var(--c); }
.chip.on .icon { color: var(--ink); }
.chip.static { min-height: 32px; padding: 5px 11px; cursor: default; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip-add input { width: 92px; height: 40px; border-radius: 99px; border: 1.5px dashed var(--line); background: transparent; padding: 0 13px; font-size: 14px; outline: none; }
.chip-add input:focus { width: 140px; border-style: solid; }
.chip-scroll { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex: none; }

.seg { display: flex; gap: 4px; background: var(--surface); border-radius: 14px; padding: 4px; }
.seg.wide .seg-btn { flex: 1; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.seg-btn.on { background: var(--text); color: var(--bg); }

.stepper { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 16px; padding: 4px; }
.stepper button { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface); flex: none; }
.stepper input { flex: 1; min-width: 0; width: 60px; text-align: center; border: 0; background: transparent; font-family: var(--display); font-size: 26px; font-weight: 800; outline: none; }
.stepper.big input { font-size: 34px; }
.stepper-unit { color: var(--muted); font-weight: 600; font-size: 14px; }
.stepper-unit:empty { display: none; }
.scale-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.scale-btn { height: 64px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-weight: 700; font-size: 13px; color: var(--muted); }
.scale-btn.on { background: var(--text); color: var(--bg); }
.scale-row.small .scale-btn { height: 48px; }

/* ---------------------------------------------------------------- sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 240ms; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: calc(100dvh - var(--safe-top) - 24px);
  background: var(--surface); border-radius: 30px 30px 0 0; display: flex; flex-direction: column; pointer-events: auto;
  transform: translateY(105%); transition: transform 300ms cubic-bezier(.2, .9, .25, 1); box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.35);
}
.open .sheet-backdrop { opacity: 1; }
.open .sheet { transform: translateY(0); }
.sheet-handle { padding: 10px 0 4px; display: flex; justify-content: center; touch-action: none; cursor: grab; }
.sheet-handle span { width: 40px; height: 5px; border-radius: 99px; background: var(--line); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-content { padding: 6px 20px calc(var(--safe-bottom) + 22px); display: flex; flex-direction: column; gap: 18px; }
.sheet .chip, .sheet .seg { background: var(--surface-2); }
.sheet .chip.on { background: var(--c); }
.sheet .seg-btn.on { background: var(--text); }
.sheet .input, .sheet .stepper { background: var(--surface-2); }
.sheet .stepper button, .sheet .scale-btn { background: var(--bg); }
.sheet .scale-btn.on { background: var(--text); }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 24px; font-weight: 800; }
.swatch-icon { --c: #888; width: 50px; height: 50px; border-radius: 16px; background: var(--c); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.swatch-icon.small { width: 36px; height: 36px; border-radius: 11px; }
.auto-note { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.editor-top { display: flex; gap: 14px; align-items: center; }
.sheet .chip-scroll { margin: 0 -20px; padding: 2px 20px; }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 50%; }
.swatch.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.icon-pick { height: 46px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.icon-pick.on { background: var(--text); color: var(--bg); }
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kind { padding: 11px 12px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.kind span { font-size: 12px; color: var(--muted); }
.kind.on { background: var(--text); color: var(--bg); }
.kind.on span { color: var(--bg); opacity: 0.7; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row b { font-weight: 600; font-size: 15px; }
.toggle-row input { width: 22px; height: 22px; margin-left: auto; accent-color: #34c759; flex: none; }
.place-row { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; background: var(--surface-2); border-radius: 16px; padding: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; -webkit-user-select: text; user-select: text; word-break: break-word; }

/* ---------------------------------------------------------------- toasts & confetti */
#toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.toast {
  width: 100%; max-width: 520px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px;
  background: var(--text); color: var(--bg); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); pointer-events: auto;
  transform: translateY(20px) scale(0.97); opacity: 0; transition: transform 260ms cubic-bezier(.3, 1.4, .5, 1), opacity 200ms;
}
.toast.show { transform: none; opacity: 1; }
.toast-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.toast-title { font-weight: 650; font-size: 14.5px; }
.toast-meta { font-size: 12.5px; opacity: 0.65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-btn { flex: none; min-height: 44px; padding: 0 16px; border-radius: 14px; background: var(--bg); color: var(--text); font-weight: 650; font-size: 14px; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }

/* ---------------------------------------------------------------- log */
.day-nav { display: flex; align-items: center; gap: 6px; }
.day-pick { position: relative; min-width: 64px; text-align: center; font-weight: 650; font-size: 14px; }
.day-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; }
.card { background: var(--surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 16px; font-family: var(--body); font-weight: 650; letter-spacing: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
.card.flat { flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); }
.ribbon { gap: 9px; }
.lane { display: flex; align-items: center; gap: 8px; }
.lane-name { width: 74px; font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.lane-track { flex: 1; position: relative; height: 24px; border-radius: 99px; background: var(--surface-2); }
.lane-dot { position: absolute; top: 4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.lane-dot::after { content: ''; position: absolute; inset: -12px -6px; }
.now-line { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); }
.lane-axis { display: flex; justify-content: space-between; padding-left: 82px; font-size: 10.5px; font-weight: 650; color: var(--faint); }
.summary .chip { background: var(--surface); }
.entries { display: flex; flex-direction: column; }
.entry { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.entry > .icon { color: var(--faint); }
.entry-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entry-title { font-weight: 650; font-size: 15.5px; }
.entry-title b { font-weight: 650; color: var(--muted); }
.entry-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-note { font-size: 13.5px; }

/* ---------------------------------------------------------------- insights */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat b { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.good .stat-sub { color: var(--good); }
.stat.bad .stat-sub { color: var(--bad); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { font-size: 10px; fill: var(--faint); font-family: var(--body); }
.heat { display: flex; flex-direction: column; gap: 4px; }
.heat-row { display: grid; grid-template-columns: 30px repeat(12, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat-row span { font-size: 11px; color: var(--faint); }
.heat-row i { height: 20px; border-radius: 5px; }
.heat-axis { display: grid; grid-template-columns: 30px repeat(4, minmax(0, 1fr)) 0; font-size: 10.5px; color: var(--faint); }
.map { height: 220px; border-radius: 14px; overflow: hidden; background: var(--surface-2); z-index: 0; }
.leaflet-container { font-family: var(--body); }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.6); }
.bar-row { display: grid; grid-template-columns: minmax(70px, 30%) 1fr 42px; gap: 10px; align-items: center; font-size: 14px; }
.bar-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bar-row > span:last-child { text-align: right; font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; }
.notes p { margin: 0; font-size: 14.5px; line-height: 1.45; padding-left: 14px; position: relative; }
.notes p::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.ov { --c: #888; text-align: left; gap: 10px; }
.ov-head { display: flex; align-items: center; gap: 10px; }
.ov-head .swatch-icon { background: var(--c); }
.ov-head b { flex: 1; font-size: 16px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 38px; }
.spark i { flex: 1; background: var(--c); border-radius: 2px; }
.ov-foot { display: flex; gap: 14px; }
.cal { display: flex; gap: 3px; overflow: hidden; }
.cal-col { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cal-col i { aspect-ratio: 1; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
