/* Cellarbook. Change tokens, not individual rules. */
:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --surface: #fcfcfb;
  --surface-2: #efede7;
  --line: #dedbd2;
  --ink: #1b1b19;
  --ink-2: #52514e;
  --muted: #7a7872;
  --accent: #2f5d50;        /* bottle-glass green */
  --accent-ink: #ffffff;
  --accent-wash: #e3ece8;
  --danger: #b3261e;
  --done: #3c7a3c;
  --ph-ink: #8a5a00;        /* placeholder */
  --ph-wash: #fdf3dc;
  --ph-line: #d9a53f;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #4a3aa7; --series-8: #e34948;
  --grid: #e6e4de;

  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --gap: 16px;
  --tap: 44px;
  --fs-xs: 12px; --fs-sm: 14px; --fs: 16px; --fs-lg: 19px; --fs-xl: 24px; --fs-2xl: 30px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --line: #33332f;
    --ink: #f3f2ee; --ink-2: #c3c2b7; --muted: #94938b;
    --accent: #7fb8a4; --accent-ink: #0f1a16; --accent-wash: #1f2b27;
    --danger: #f08b82; --done: #8cc98c;
    --ph-ink: #f2c46b; --ph-wash: #2b2416; --ph-line: #9c7a2e;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
    --grid: #2c2c29;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --surface-2: #232321; --line: #33332f;
  --ink: #f3f2ee; --ink-2: #c3c2b7; --muted: #94938b;
  --accent: #7fb8a4; --accent-ink: #0f1a16; --accent-wash: #1f2b27;
  --danger: #f08b82; --done: #8cc98c;
  --ph-ink: #f2c46b; --ph-wash: #2b2416; --ph-line: #9c7a2e;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
  --grid: #2c2c29;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: var(--fs)/1.45 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font: 600 var(--fs-2xl)/1.15 var(--serif); }
h2 { font-size: var(--fs-lg); font-weight: 650; }
h3 { font-size: var(--fs); font-weight: 650; }
p { margin: 0; }
small, .muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- shell */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font: 600 20px var(--serif); color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 550; }
.topnav a.on { background: var(--accent-wash); color: var(--accent); }
.topnav a:hover { text-decoration: none; background: var(--surface-2); }
main { max-width: 1040px; margin: 0 auto; padding: 20px 16px 110px; }
.tabbar { display: none; }
@media (max-width: 720px) {
  .topnav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; color: var(--muted);
    font-size: 11px; font-weight: 600; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.log span.dot { display: grid; place-items: center; width: 42px; height: 42px; margin-top: -18px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
  h1 { font-size: var(--fs-xl); }
}

/* ---------- layout pieces */
.stack > * + * { margin-top: var(--gap); }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.card.flat { box-shadow: none; }
.hero { padding: 6px 0 4px; }
.slogan { font: italic 400 var(--fs-lg) var(--serif); color: var(--ink-2); margin-top: 4px; }
.slogan::before { content: "“"; } .slogan::after { content: "”"; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.stat b { display: block; font-size: var(--fs-xl); font-weight: 650; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-xs);
  font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.accent { background: var(--accent-wash); color: var(--accent); }
.chip.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.chip.done { background: color-mix(in srgb, var(--done) 15%, transparent); color: var(--done); }
.ph { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; border: 1px dashed var(--ph-line);
  background: var(--ph-wash); color: var(--ph-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; vertical-align: 1px; }
.is-ph { border-style: dashed; border-color: var(--ph-line); }
mark.ph-text { background: var(--ph-wash); color: var(--ph-ink); border-bottom: 1px dashed var(--ph-line); padding: 0 2px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

/* ---------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: var(--fs-sm); }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
label.f { display: block; }
label.f > span { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
label.f > small { display: block; margin-top: 4px; }
input[type=text], input[type=number], input[type=date], input[type=datetime-local], input[type=email], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fields .wide { grid-column: 1 / -1; }
.fields.log-meta { grid-template-columns: minmax(200px, 240px) 1fr; }
@media (max-width: 520px) { .fields.log-meta { grid-template-columns: 1fr; } }

/* quick log: big number pads */
.metrics { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.metric-in { background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; }
.metric-in span { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.metric-in input { font-size: 24px; font-weight: 600; min-height: 48px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.metric-in small { display: block; min-height: 17px; margin-top: 3px; font-size: var(--fs-xs); }

/* ---------- lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.step-check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: transparent; cursor: pointer;
  display: grid; place-items: center; color: transparent; margin-top: 1px; }
.step-check:hover { border-color: var(--accent); }
.step-check.on { background: var(--done); border-color: var(--done); color: #fff; }
.step-check svg { width: 15px; height: 15px; }
.step-body { flex: 1; min-width: 0; }
.step-title { font-weight: 600; }
li.done .step-title { color: var(--muted); text-decoration: line-through; }
.when { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.when.overdue { color: var(--danger); font-weight: 600; }
.datebox { flex: none; width: 50px; text-align: center; border-radius: var(--r-sm); background: var(--surface-2); padding: 4px 0; }
.datebox b { display: block; font-size: 18px; line-height: 1.1; }
.datebox span { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.group-label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 18px 0 2px; }

/* batch cards */
.batch-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.batch-card h3 { font-size: var(--fs-lg); }
.batch-card .sub { font-size: var(--fs-sm); color: var(--muted); }
.batch-card .latest { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.batch-card .latest div b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.batch-card .latest div span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.batch-card .next { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.spark { display: block; width: 100%; height: 34px; margin-top: 8px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* notes */
.note { padding: 12px 0; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note .meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.note .body { white-space: pre-wrap; margin-top: 4px; overflow-wrap: anywhere; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); cursor: zoom-in; background: var(--surface-2); }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
td.num, th.num { text-align: right; }

/* ---------- charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .series path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series circle { stroke: var(--surface); stroke-width: 2; }
.chart .label text { font-size: 12px; font-weight: 600; fill: var(--ink-2); }
.chart .xhair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 10px; font-size: var(--fs-sm); box-shadow: 0 4px 16px rgba(0,0,0,.14); min-width: 140px; z-index: 5; }
.tip .t { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 3px; }
.tip .r { display: flex; align-items: center; gap: 7px; }
.tip .r b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- sheet / modal */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sheet .actions .left { margin-right: auto; }
@media (max-width: 720px) {
  .scrim { align-items: flex-end; padding: 0; }
  .sheet { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
.lightbox img { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; border-radius: var(--r-sm); }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast.bad { background: var(--danger); color: #fff; }

/* sign in */
.signin { max-width: 380px; margin: 12vh auto 0; text-align: center; }
.signin .mark svg { width: 64px; height: 64px; color: var(--accent); }
.signin h1 { margin: 10px 0 6px; }
.signin #gbtn { display: flex; justify-content: center; margin: 26px 0 14px; min-height: 44px; }
code.copy { display: block; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 12px; overflow-wrap: anywhere; user-select: all; }

@media (max-width: 520px) {
  .hide-sm { display: none; }
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .metric-in { padding: 8px; }
  .metric-in input { font-size: 19px; padding: 6px 8px; }
}

/* ---------- part two: starters, money, cellar, gear, search */
.type-icon { width: 18px; height: 18px; flex: none; color: var(--accent); vertical-align: -3px; }
.chip .type-icon { width: 14px; height: 14px; }
.starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.starter { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; cursor: pointer; text-align: left; }
.starter:hover { border-color: var(--accent); background: var(--accent-wash); }
.starter .type-icon { width: 22px; height: 22px; }
.callout { background: var(--accent-wash); border-radius: var(--r); padding: 12px 16px; color: var(--ink); }
.callout ul { margin: 6px 0 0; padding-left: 20px; }
.callout li + li { margin-top: 4px; }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 2px; }
table.matrix td, table.matrix th { padding: 4px 8px; }
tr.tot td { color: var(--muted); font-size: var(--fs-xs); border-bottom: 0; }
.cellbtn { min-width: 44px; min-height: 36px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 650;
  font-variant-numeric: tabular-nums; cursor: pointer; }
.cellbtn:hover:not(:disabled) { border-color: var(--accent); }
.cellbtn.is-ph { border: 1px dashed var(--ph-line); background: var(--ph-wash); color: var(--ph-ink); }
.rating { display: inline-flex; gap: 4px; align-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); letter-spacing: .02em; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile svg { width: 24px; height: 24px; color: var(--accent); }
.tile b { font-size: var(--fs); }
.tile small { color: var(--muted); }
.search-sm { display: none; margin-left: auto; }
.topnav a svg { width: 18px; height: 18px; vertical-align: -4px; }
mark { background: var(--ph-wash); color: inherit; border-radius: 3px; padding: 0 1px; }
input[type=search] { width: 100%; min-height: var(--tap); padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 720px) { .search-sm { display: inline-grid; } }
@media (max-width: 720px) {
  .starters { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .starter { flex: none; min-height: 42px; padding: 0 12px; }
  .starter span { white-space: nowrap; }
}

/* active-project cards on Home */
.grid.wide-cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 720px) { .grid.wide-cards { grid-template-columns: 1fr; } }
.pcard .phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: inherit; }
.pcard .phead:hover { text-decoration: none; }
.pcard .phead:hover h3 { color: var(--accent); }
.pcard h3 { font-size: var(--fs-lg); }
.brows { margin-top: 8px; }
.brow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "sw name vals" "sw name ago"; column-gap: 10px;
  align-items: center; padding: 9px 8px; margin: 0 -8px; border-radius: var(--r-sm); color: inherit; min-height: var(--tap); }
.brow:hover { background: var(--surface-2); text-decoration: none; }
.brow + .brow { border-top: 1px solid var(--line); }
.brow .swatch { grid-area: sw; }
.brow .bname { grid-area: name; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bvals { grid-area: vals; text-align: right; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); font-weight: 600; }
.brow .bago { grid-area: ago; text-align: right; font-size: var(--fs-xs); }
.planned-line { display: block; font-size: var(--fs-sm); margin-top: 6px; }

/* theme picker */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; color: var(--ink); }
.theme-card:hover { border-color: var(--ink-2); }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.theme-card small { color: var(--muted); font-size: var(--fs-xs); line-height: 1.3; }
.theme-prev { display: flex; align-items: center; gap: 8px; height: 58px; border-radius: 6px; padding: 8px; margin-bottom: 6px; border: 1px solid rgba(0,0,0,.08); }
.tp-card { position: relative; display: grid; place-items: center; width: 48px; height: 40px; border-radius: 4px; font-size: 20px; font-weight: 700;
  border: 1px solid rgba(0,0,0,.1); }
.tp-card i { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; }
.tp-hand { font-family: "Caveat", cursive; font-size: 20px; font-weight: 600; }
