/* Pera — palette from the new-series peso bills: note green, ₱500 mango, ₱50 coral, ₱100 violet. */
:root {
  --paper: #FFF8EC; --surface: #FFFFFF; --sunk: #F3E9D6; --ink: #2A1A08; --muted: #7A6650; --line: #EADFCB;
  --note: #92400E; --note-2: #B45309; --mango: #F2B330; --coral: #D9342B; --violet: #6E56CF; --leaf: #15803D;
  --on-note: #FFF8EC; --brand-text: #B45309; --shadow: 0 1px 2px rgb(16 42 38 / .06), 0 8px 24px -12px rgb(16 42 38 / .18);
  --r: 20px; --ease: cubic-bezier(.2, .8, .2, 1);
  --display: 'Unbounded', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1A120A; --surface: #241A10; --sunk: #32261A; --ink: #F5EBDD; --muted: #B3A08A; --line: #3D2F20;
    --coral: #FF6B6E; --leaf: #4ADE80; --brand-text: #F2B330; --violet: #9C8CFF; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    color-scheme: dark; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* rows set display, which would beat the attribute */
html { -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 15px/1.45 var(--body);
  padding-bottom: calc(84px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 10px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.amt, .num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.wordmark { font: 700 1.35rem/1 var(--display); letter-spacing: -.02em; color: var(--brand-text); }
.wordmark::after { content: ''; display: inline-block; width: .32em; height: .32em; margin-left: .12em; border-radius: 50%; background: var(--mango); }
.month { display: flex; align-items: center; gap: 2px; background: var(--surface); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
#month-label { font-weight: 700; font-size: .88rem; min-width: 7.6em; text-align: center; }
.month-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); transition: background .2s, color .2s; }
.month-btn:hover { background: var(--sunk); color: var(--ink); }
.month-btn .ico { width: 18px; height: 18px; }

main { max-width: 640px; margin: 0 auto; padding: 6px 16px 24px; }

/* ---------- the banknote ---------- */
.note { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 20px 20px 18px; margin-bottom: 18px; color: var(--on-note);
  background: radial-gradient(120% 140% at 100% 0%, #D97706 0%, transparent 55%), linear-gradient(150deg, var(--note-2), var(--note) 60%, #5C2A06);
  box-shadow: 0 18px 40px -18px rgb(146 64 14 / .7), inset 0 0 0 1px rgb(255 255 255 / .08); }
.note::before { /* microprint frame */ content: ''; position: absolute; inset: 7px; border: 1px dashed rgb(244 251 248 / .22); border-radius: 16px; pointer-events: none; }
.note::after { /* sheen */ content: ''; position: absolute; inset: -40% -60%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .16) 50%, transparent 58%); transform: translateX(-70%); }
.enter .note::after { animation: sheen 2.4s .35s var(--ease) both; }
@keyframes sheen { to { transform: translateX(70%); } }
.rosette { position: absolute; right: -70px; top: 50%; width: 260px; height: 260px; translate: 0 -50%; z-index: -1; opacity: .55;
  animation: turn 90s linear infinite; }
.rosette path { fill: none; stroke: #FDE7B8; stroke-width: .6; }
.rosette path:nth-child(3n) { stroke: var(--mango); opacity: .7; }
@keyframes turn { to { rotate: 360deg; } }
.note-top { display: flex; justify-content: space-between; align-items: center; font: 700 .64rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.note-top .serial { color: var(--mango); font-family: var(--display); font-weight: 500; letter-spacing: .12em; }
.note-label { margin: 18px 0 2px; font-size: .86rem; color: rgb(244 251 248 / .78); }
.note-amount { display: block; font: 700 2.35rem/1.05 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.note-amount small { font-size: .5em; font-weight: 500; opacity: .75; letter-spacing: 0; }
.note-amount .peso { font-size: .62em; margin-right: .08em; color: var(--mango); vertical-align: .18em; }
.note-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(244 251 248 / .16); }
.note-stats span { display: block; font-size: .7rem; color: rgb(244 251 248 / .7); }
.note-stats b { font-size: .93rem; font-weight: 700; }
.budget-left { margin-top: 10px; font-size: .78rem; color: rgb(244 251 248 / .8); }
.budget-left b { color: var(--mango); }

/* ---------- cards + rows ---------- */
.card { background: var(--surface); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card h2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px;
  font: 700 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card h2 .amt { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .right { flex: none; min-width: 92px; text-align: right; }
.row .title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--muted); font-size: .8rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; border-radius: 0; transition: background .15s; }
button.row:active { background: var(--sunk); }
.tile { --c: var(--muted); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; flex: none;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.tile .ico { width: 20px; height: 20px; }
.amt { font-weight: 750; white-space: nowrap; }
.amt.out { color: var(--coral); } .amt.in { color: var(--leaf); } .amt.move { color: var(--violet); }
.muted { color: var(--muted); } .center { text-align: center; }

.bar { height: 7px; background: var(--sunk); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--note-2), var(--leaf));
  transform-origin: left; }
.enter .bar i { animation: grow .9s .15s var(--ease) both; }
.bar.warn i { background: linear-gradient(90deg, #E99A1A, var(--mango)); } .bar.over i { background: linear-gradient(90deg, #C93439, var(--coral)); }
@keyframes grow { from { transform: scaleX(0); } }

/* accounts strip */
.strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.acct { flex: none; width: 148px; scroll-snap-align: start; background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.acct .tile { width: 34px; height: 34px; border-radius: 11px; margin-bottom: 14px; --c: var(--note-2); }
.acct .sub { color: var(--muted); font-size: .78rem; } .acct .amt { display: block; font-size: 1.02rem; margin-top: 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; border: 0; background: var(--surface); border-radius: 999px; padding: 6px 14px 6px 6px;
  box-shadow: var(--shadow); font-weight: 650; font-size: .86rem; transition: transform .15s var(--ease); }
.chip .tile { width: 30px; height: 30px; border-radius: 50%; } .chip .tile .ico { width: 16px; height: 16px; }
.chip:active { transform: scale(.96); }
.label { margin: 18px 4px 8px; font: 700 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* bills: calendar leaf */
.leaf { width: 44px; flex: none; text-align: center; border-radius: 12px; overflow: hidden; background: var(--sunk); }
.leaf span { display: block; font: 800 .58rem/1 var(--body); letter-spacing: .1em; padding: 4px 0 3px; background: var(--note-2); color: var(--on-note); }
.leaf b { display: block; font: 700 1.05rem/1 var(--display); padding: 6px 0 7px; }
.leaf.late span { background: var(--coral); }

/* goals: ring */
.ring { width: 52px; height: 52px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--sunk); } .ring .fill { stroke: var(--mango); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }

.day { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 1; margin: 10px -4px 0; padding: 8px 4px 6px;
  font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--surface); display: flex; justify-content: space-between; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; color: var(--muted); text-align: center; font-size: .9rem; }
.empty .ico { width: 30px; height: 30px; color: var(--note-2); opacity: .7; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 11px 18px;
  background: var(--note-2); color: var(--on-note); font-weight: 700; transition: transform .15s var(--ease), filter .15s; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.ghost { background: var(--sunk); color: var(--ink); }
.btn.danger { background: transparent; color: var(--coral); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--coral) 40%, transparent); }
.btn.small { padding: 7px 13px; font-size: .84rem; border-radius: 11px; }
.btn .ico { width: 17px; height: 17px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.filters select { flex: 1 0 auto; width: auto; min-width: 118px; border-radius: 999px; padding: 8px 14px; background: var(--surface); box-shadow: var(--shadow); border: 0; font-size: .85rem; font-weight: 650; }
select, input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .15s; }
input:focus, select:focus { border-color: var(--note-2); outline: none; }
input[type="color"] { height: 48px; padding: 4px; }

.fab { position: fixed; right: 18px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 5; display: grid; place-items: center;
  width: 60px; height: 60px; border: 0; border-radius: 20px; color: #1d1400; background: var(--mango);
  box-shadow: 0 12px 26px -10px rgb(242 179 48 / .9), inset 0 -3px 0 rgb(0 0 0 / .12); transition: transform .2s var(--ease), border-radius .2s; }
.fab .ico { width: 28px; height: 28px; stroke-width: 2.4; }
.fab:hover { transform: rotate(90deg); border-radius: 50%; } .fab:active { transform: scale(.92); }

.tabs { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 4; display: flex; max-width: 620px; margin: 0 auto;
  padding: 6px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .35), inset 0 0 0 1px var(--line); }
.tabs a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 0 5px; border-radius: 18px; color: var(--muted); text-decoration: none;
  font-size: .64rem; font-weight: 700; transition: color .2s, background .25s var(--ease); }
.tabs a .ico { width: 21px; height: 21px; transition: transform .25s var(--ease); }
.tabs a[aria-current="page"] { color: var(--brand-text); background: color-mix(in srgb, var(--note-2) 13%, transparent); }
.tabs a[aria-current="page"] .ico { transform: translateY(-1px) scale(1.08); }
.signed-out .fab, .signed-out .tabs, .signed-out .month { display: none; }

/* ---------- dialog = bottom sheet ---------- */
dialog { border: 0; padding: 0; width: 100%; max-width: 520px; max-height: 92dvh; margin: auto auto 0; border-radius: 26px 26px 0 0;
  background: var(--surface); color: var(--ink); box-shadow: 0 -10px 40px -10px rgb(0 0 0 / .35); }
dialog[open] { animation: sheet .38s var(--ease); }
dialog::backdrop { background: rgb(8 20 18 / .5); backdrop-filter: blur(3px); animation: fade .3s ease; }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 640px) { dialog { margin: auto; border-radius: 26px; } dialog[open] { animation: pop .3s var(--ease); } }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
dialog form { padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
dialog form::before { content: ''; justify-self: center; width: 40px; height: 4px; border-radius: 9px; background: var(--line); margin-bottom: 4px; }
dialog h3 { margin: 0; font: 700 1.15rem/1.2 var(--display); letter-spacing: -.02em; }
dialog label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
dialog input[name="amount"] { font: 700 1.6rem/1.2 var(--display); letter-spacing: -.02em; padding: 10px 14px; }
.seg { position: relative; display: flex; padding: 4px; border-radius: 16px; background: var(--sunk); }
.seg button { flex: 1; border: 0; padding: 10px 6px; border-radius: 12px; background: none; font-weight: 700; color: var(--muted); transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button[data-v="expense"][aria-pressed="true"] { color: var(--coral); }
.seg button[data-v="income"][aria-pressed="true"] { color: var(--leaf); }
.seg button[data-v="transfer"][aria-pressed="true"] { color: var(--violet); }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.actions .left { margin-right: auto; }
.error { color: var(--coral); font-size: .86rem; font-weight: 600; margin: 0; }
.error:empty { display: none; }

#toast { position: fixed; left: 50%; bottom: calc(164px + env(safe-area-inset-bottom)); z-index: 9; translate: -50% 0; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-weight: 650; font-size: .88rem;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5); animation: toast .35s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- sign-in + boot ---------- */
.boot { display: grid; place-items: center; min-height: 60dvh; } .boot .wordmark { font-size: 2rem; animation: pulse 1.4s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
.signin { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 4vh; }
.signin .note { width: 100%; min-height: 210px; display: grid; align-content: space-between; text-align: left; }
.signin .note .note-amount { font-size: 2.9rem; }
.signin h1 { margin: 10px 0 0; font: 700 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.signin p { margin: 0 0 12px; color: var(--muted); max-width: 30ch; }
.signin .gbtn { min-height: 44px; }
.signed-out .top .wordmark { visibility: hidden; }

/* view entrance: stagger the top-level blocks */
.enter > * { animation: rise .5s var(--ease) both; }
.enter > :nth-child(2) { animation-delay: .05s; } .enter > :nth-child(3) { animation-delay: .1s; } .enter > :nth-child(4) { animation-delay: .15s; }
.enter > :nth-child(5) { animation-delay: .2s; } .enter > :nth-child(n+6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rosette { animation: none; }
}
@media (max-width: 370px) { .note-amount { font-size: 2rem; } .tabs a { font-size: .58rem; } }

/* ---------- Happy Yolks: tables, day editor, reports ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: right; font: 700 .68rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 6px 8px; }
.tbl td { text-align: right; padding: 7px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl.eggs th, .tbl.eggs td { padding-left: 3px; padding-right: 3px; }
.tbl.eggs td:first-child { padding-left: 0; }
.amt.plain { color: var(--ink); font-weight: 650; }
.cell { width: 3.2em; padding: 7px 4px; text-align: right; border-radius: 9px; font-weight: 650; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.pagehead { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.pagehead h1 { flex: 1; margin: 0; font: 700 1.15rem/1.2 var(--display); letter-spacing: -.02em; }
.pagehead .btn { padding: 8px; }
.pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--sunk); color: var(--muted); }
.pill.in { background: color-mix(in srgb, var(--leaf) 16%, transparent); color: var(--leaf); }
.pill.out { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); }
.row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.denoms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.denoms label { display: grid; gap: 2px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.denoms input { padding: 8px 6px; border-radius: 10px; font-weight: 700; text-align: center; }
.denoms small { font-size: .7rem; font-weight: 600; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.line:first-of-type { border-top: 0; }
.line.total { font-weight: 800; border-top: 2px solid var(--ink); }
.line.in b { color: var(--leaf); } .line.out b { color: var(--coral); }
.notefield { display: grid; gap: 6px; margin-top: 12px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.check { display: flex !important; align-items: center; gap: 10px; }
.check input { width: 22px; height: 22px; padding: 0; margin: 0; accent-color: var(--note-2); }
.stat span { display: block; font-size: .7rem; color: rgb(255 248 236 / .7); } .stat b { font-size: .93rem; }
.note .note-amount { margin-top: 14px; }
.seg { margin-bottom: 14px; }
.seg button[aria-pressed="true"] { color: var(--brand-text); }
.signed-out .fab, .signed-out .tabs { display: none; }
.suggest { display: grid; gap: 2px; margin-top: 2px; padding: 4px; border-radius: 12px; background: var(--sunk); }
.suggest button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 9px; font-weight: 650; color: var(--ink); }
.suggest button:hover, .suggest button:focus-visible { background: var(--surface); }
.hint.info { margin: -4px 0 0; font-weight: 650; color: var(--brand-text); } .hint.info:empty { display: none; }
.row .title .pill { margin-left: 8px; vertical-align: middle; }
.field { display: grid; gap: 6px; } .flabel { font-size: .8rem; font-weight: 700; color: var(--muted); }
.items { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; }
.item b { width: 2.2em; font-size: 1rem; } .item input { width: 5.5em; padding: 9px 12px; text-align: right; font-weight: 700; } .item .muted { flex: 1; font-size: .85rem; }
.item .x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--sunk); color: var(--muted); font-size: 1.1rem; line-height: 1; }
.addsize { display: flex; flex-wrap: wrap; gap: 6px; }
.addsize button { border: 1.5px dashed var(--line); background: none; border-radius: 999px; padding: 6px 12px; font-weight: 700; color: var(--brand-text); }
.addsize:empty { display: none; }
/* fixed columns: the table re-renders on every keystroke and must not shift */
.tbl.eggs { table-layout: fixed; }
.tbl.eggs th { font-size: .6rem; letter-spacing: .04em; padding: 4px 2px 8px; }
.tbl.eggs th:nth-child(1) { width: 2.2rem; } .tbl.eggs th:nth-child(n+2):nth-child(-n+4) { width: 3.2rem; }
.tbl.eggs td { padding: 5px 2px; font-size: .95rem; }
.tbl.eggs tr:last-child td { border-top: 2px solid var(--ink); font-weight: 700; color: var(--muted); }
.tbl.eggs .cell { padding: 7px 3px; }
.tbl.eggs .cell { width: 100%; }
.tbl.eggs td:last-child { overflow: hidden; text-overflow: ellipsis; }
.info.big { font: 700 1.6rem/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); margin: 0; }
.scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.scroll .tbl { min-width: 100%; }
.stock { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; }
.stock div { background: var(--sunk); border-radius: 12px; padding: 8px 6px; text-align: center; }
.stock span { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); }
.stock b { font-size: 1.15rem; } .stock .neg b { color: var(--coral); }
.btn:disabled { opacity: .5; }
