/* The catalog / app shell: sidebar, prompt-style search bar, image grids. Builds on site.css tokens. */
:root { --side: #f4f3ef; --tile: #ecebe6; --hover: rgba(0,0,0,0.05); --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --card: #ffffff; --card-line: #e7e4dd; --field: #fdfcfa; --field-line: #dcd8cf; --label: #3a3732; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --side: #1b1b1a; --tile: #232321; --hover: rgba(255,255,255,0.06); --shadow: 0 1px 2px rgba(0,0,0,.4);
  --card: #1d1d1b; --card-line: #2e2d2a; --field: #181817; --field-line: #3a3935; --label: #d6d4ce; } }
:root[data-theme="dark"] { --alert: #f87171; --notice: #4ade80; --card: #1d1d1b; --card-line: #2e2d2a; --field: #181817; --field-line: #3a3935; --label: #d6d4ce; --bg: #151514; --fg: #ecebe7; --muted: #a3a19b; --line: #2e2d2a; --accent: #fb923c; --accent-fg: #1d1d1b;
  --code-bg: #22211f; --callout: #2a1d12; --side: #1b1b1a; --tile: #232321; --hover: rgba(255,255,255,0.06); --shadow: 0 1px 2px rgba(0,0,0,.4); }
:root[data-theme="light"] { --alert: #b91c1c; --notice: #166534; --card: #ffffff; --card-line: #e7e4dd; --field: #fdfcfa; --field-line: #dcd8cf; --label: #3a3732; --bg: #fbfaf7; --fg: #1d1d1b; --muted: #6b6a66; --line: #e4e1da; --accent: #c2410c; --accent-fg: #fff;
  --code-bg: #f1eee7; --callout: #fff7ed; --side: #f4f3ef; --tile: #ecebe6; --hover: rgba(0,0,0,0.05); }

body.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.menu-toggle, .menu-button, .menu-close, .menu-scrim { display: none; }

.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); padding: 1.25rem 0.75rem; display: flex; flex-direction: column; gap: 1rem; }
.side .brand { display: flex; align-items: center; color: var(--fg); text-decoration: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 0.95rem; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.nav-item:hover { background: var(--hover); }
.nav-item.current { background: var(--hover); color: var(--accent); font-weight: 600; }
.nav-item.soon { color: var(--muted); cursor: default; }
.nav-item.soon:hover { background: none; }
.nav-icon { display: inline-grid; place-items: center; width: 1.25rem; opacity: 0.85; }
.icon { width: 1.2rem; height: 1.2rem; display: block; }
.side .nav-heading { margin: 1rem 0.6rem 0.25rem; }
.side-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); }

.stage { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.stage > main { flex: 1; } /* the footer sits at the bottom, not mid-page */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 0.75rem; padding: 1rem var(--gutter); background: var(--bg); }
.prompt { flex: 1; max-width: 760px; }
.prompt input { width: 100%; font: inherit; font-size: 1rem; padding: 0.8rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); box-shadow: var(--shadow); }
.prompt input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* One centred content column; the bar and footer line up with it on wide screens. */
.stage { --gutter: max(1.5rem, calc((100% - 1400px) / 2 + 1.5rem)); }
.page { padding: 0.5rem 1.5rem 3rem; max-width: 1400px; width: 100%; margin: 0 auto; }
.page h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.5rem 0; letter-spacing: -0.01em; }
.page h2 { font-size: 1.15rem; margin: 1.75rem 0 0.75rem; }
.intro { max-width: 760px; margin-bottom: 1rem; }
.intro .lede { font-size: 1.05rem; }

.tabs { display: flex; gap: 0.35rem; margin: 0.75rem 0 1rem; }
.tabs.wrap { flex-wrap: wrap; }
.tabs a { padding: 0.35rem 0.8rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.tabs a:hover { background: var(--hover); color: var(--fg); }
.tabs a.current { background: var(--fg); color: var(--bg); }

.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 14px; }
.tile { display: block; position: relative; border-radius: 12px; overflow: hidden; background: var(--tile); aspect-ratio: 63 / 88; color: var(--fg); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.tile:hover img { transform: scale(1.03); }
.tile-caption { position: absolute; inset: auto 0 0 0; padding: 1.5rem 0.6rem 0.5rem; font-size: 0.8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .15s; }
.tile-caption .muted { color: #ddd; }
.tile:hover .tile-caption, .tile:focus .tile-caption { opacity: 1; }
.no-image { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 0.75rem; color: var(--muted); font-size: 0.85rem; background: var(--tile); border-radius: 12px; }

.detail { display: grid; grid-template-columns: minmax(260px, 460px) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.detail-media { position: sticky; top: 5.5rem; }
.detail-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.detail-panel { max-width: 640px; }
.detail-panel section { border-top: 1px solid var(--line); padding-top: 0.25rem; margin-top: 1.25rem; }
.crumbs { margin: 0; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { background: var(--tile); border-radius: 8px; padding: 0.15rem 0.55rem; font-size: 0.85rem; }
.dmg { font-weight: 700; float: right; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0.75rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts code { margin-right: 0.3rem; }
.related { margin-top: 3rem; }
.panel { background: var(--side); border-radius: 14px; padding: 0.25rem 1.25rem 1rem; margin: 1.25rem 0; }
.ev .big { font-size: 1.6rem; font-weight: 700; }
.grid.plans { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.grid.plans .panel { margin: 0; }
.grid.plans .big { font-size: 1.3rem; }

.dev-box { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 1rem; }
.dev-box summary { cursor: pointer; font-weight: 600; }
.dev-box .label { margin: 0.75rem 0 0.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dev-box pre { margin: 0; white-space: pre-wrap; }

.set-head { display: flex; align-items: center; gap: 1rem; }
.set-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 1rem; }
.set-list a { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem; border-radius: 8px; color: var(--fg); text-decoration: none; }
.set-list a:hover { background: var(--hover); }
.set-list img { width: 24px; height: 24px; object-fit: contain; }
.species-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.species-grid a { display: flex; flex-direction: column; gap: 0.3rem; color: var(--fg); text-decoration: none; font-size: 0.9rem; }
.species-grid img, .species-grid .no-image { width: 100%; height: auto; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 10px; background: var(--tile); }
.pager { display: flex; gap: 1rem; }

@media (max-width: 860px) {
  body.app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .menu-toggle:checked ~ .side { transform: none; }
  .menu-toggle:checked ~ .menu-scrim { display: block; position: fixed; inset: 0; z-index: 19; background: rgb(0 0 0 / 0.35); }
  .menu-close { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); cursor: pointer; }
  .menu-close:hover { background: var(--hover); color: var(--fg); }
  .menu-close svg { width: 18px; height: 18px; }
  .menu-button { display: block; font-size: 1.4rem; cursor: pointer; padding: 0.25rem; }
  .bar { padding: 0.75rem 1rem; }
  .page { padding: 0.5rem 1rem 2rem; }
  .detail { grid-template-columns: 1fr; gap: 1.25rem; }
  .detail-media { position: static; max-width: 360px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
}

/* Studio */
.composer { border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow); background: var(--bg); max-width: 920px; }
.modes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.modes label { white-space: nowrap; padding: 0.35rem 0.85rem; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 0.92rem; }
.modes label:has(input:checked) { background: var(--fg); color: var(--bg); }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.drops { display: grid; grid-template-columns: 2fr 1fr; gap: 0.8rem; }
.drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 170px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; padding: 0.75rem; color: var(--muted); font-size: 0.9rem; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--hover); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-height: 220px; max-width: 100%; border-radius: 8px; }
.drop strong { color: var(--fg); }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.8rem; }
.composer-foot p { margin: 0; }
.composer-foot p:first-child { flex: 1 0 100%; } /* the tips get their own line, so they never squeeze into a column */
.composer-error { color: var(--alert); margin: 0.5rem 0 0; }
.empty { margin-top: 2rem; }
.day { margin: 2rem 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.job-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; max-width: 920px; }
.job-row { display: flex; gap: 1rem; align-items: center; padding: 0.6rem; border-radius: 14px; color: var(--fg); text-decoration: none; }
.job-row:hover { background: var(--hover); }
.job-thumbs { display: flex; gap: 0.4rem; flex-shrink: 0; }
.job-thumbs img { width: 64px; height: 88px; object-fit: cover; border-radius: 8px; background: var(--tile); }
.job-summary { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.job-summary .chip { align-self: flex-start; font-size: 0.75rem; }
.pending { color: var(--muted); animation: pulse 1.4s ease-in-out infinite; }
.failed { color: var(--alert); }
@keyframes pulse { 50% { opacity: 0.45; } }
.detail-media img.second { margin-top: 0.4rem; max-width: 60%; }
.match { display: flex; gap: 1rem; align-items: flex-start; }
.match img { border-radius: 10px; box-shadow: var(--shadow); }
.match h1 { margin-top: 0; }
.hints { padding-left: 1.1rem; color: var(--muted); }
.chip.status-match { background: color-mix(in srgb, var(--notice) 16%, var(--bg)); color: var(--notice); }
.chip.status-ambiguous { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); color: color-mix(in srgb, var(--accent) 70%, var(--fg)); }
.chip.status-no_match { background: color-mix(in srgb, var(--alert) 16%, var(--bg)); color: var(--alert); }
.job-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.job-actions form { margin: 0; }
.button.danger { color: var(--alert); }
.share-link { flex: 1; min-width: 240px; font: inherit; font-size: 0.85rem; padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--code-bg); color: var(--fg); }
.tile.photo { aspect-ratio: 3 / 4; }
.tile.photo .tile-caption { opacity: 1; }
@media (max-width: 860px) { .drops { grid-template-columns: 1fr; } }

/* Sealed product photos, hotlinked from TCGplayer */
.thumb-cell { width: 64px; }
.sealed-thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; display: block; }
.sealed-image { margin: 0; }
.sealed-image img { width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: block; }
.sealed-image figcaption { margin-top: 0.4rem; }
.sealed-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sealed-grid a { display: flex; flex-direction: column; gap: 0.4rem; color: var(--fg); text-decoration: none; font-size: 0.85rem; }
.sealed-grid .sealed-thumb { width: 100%; height: auto; aspect-ratio: 1; padding: 0.5rem; }

/* Set tiles: booster pack photo (TCGplayer) or the set's chase card */
.set-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.set-grid a { display: flex; flex-direction: column; gap: 0.3rem; color: var(--fg); text-decoration: none; font-size: 0.9rem; }
.set-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 12px; background: var(--tile); overflow: hidden; }
.set-cover img.pack { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 0.4rem; }
/* Fan of the set's top three scans: the most valuable in front, the next two tilted behind it. */
.set-fan { position: relative; width: 100%; height: 100%; }
.set-fan img { position: absolute; left: 50%; top: 50%; height: 66%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transform: translate(-50%, -50%); transition: transform .2s ease; }
.set-fan img:first-child { z-index: 2; }
.set-fan img:nth-child(2) { transform: translate(-50%, -50%) translateX(-30%) rotate(-9deg); }
.set-fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(30%) rotate(9deg); }
.set-grid a:hover .set-fan img:nth-child(2) { transform: translate(-50%, -50%) translateX(-38%) rotate(-12deg); }
.set-grid a:hover .set-fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(38%) rotate(12deg); }
.set-grid a:hover .set-cover { outline: 2px solid var(--accent); }
.set-name { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.set-name img { width: 18px; height: 18px; object-fit: contain; }
.set-pack .sealed-thumb { width: 72px; height: 72px; }
.feedback-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.english-name { font-size: 1.15rem; margin: -0.25rem 0 0.25rem; }
.card-photo { margin: 0; }
.card-photo img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.card-photo figcaption { margin-top: 0.4rem; }

/* Data card: our own card-shaped stand-in when there's no scan. Sized by container units so it scales from grid tile to card page. */
.tile, .detail-media { container-type: inline-size; }
.data-card { --b: #c9c5ba; display: grid; grid-template-rows: auto 1fr auto; width: 100%; aspect-ratio: 63 / 88; max-width: 100%; padding: 6cqw;
  border-radius: 12px; border: 1px solid var(--line); background: var(--tile); color: var(--fg); overflow: hidden; font-size: 6cqw; line-height: 1.25; text-align: center; }
.data-card[hidden] { display: none; }
.detail-media .data-card { border-radius: 16px; }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 3cqw; }
.dc-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 6cqw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-dot { flex: none; width: 5cqw; height: 5cqw; border-radius: 50%; background: var(--b); }
.dc-body { display: flex; flex-direction: column; justify-content: center; gap: 1.5cqw; min-width: 0; }
.dc-body p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-name { font-weight: 600; font-size: 9cqw; }
.dc-rarity { font-size: 6.5cqw; color: var(--muted); }
.dc-empty { font-size: 6cqw; color: var(--muted); opacity: .8; }
.dc-grass { --a: #dcefc4; --b: #8cc66a; } .dc-fire { --a: #ffd9bd; --b: #f2804a; } .dc-water { --a: #d3e9ff; --b: #6aaee8; }
.dc-lightning { --a: #fff6c2; --b: #f2cf3a; } .dc-psychic { --a: #f5daf2; --b: #b97ad0; } .dc-fighting { --a: #f3dcc6; --b: #c27c4a; }
.dc-darkness { --a: #d5d3dc; --b: #8e8aa0; } .dc-metal { --a: #eceef1; --b: #9aa1ab; } .dc-dragon { --a: #f0e4b2; --b: #a99448; }
.dc-fairy { --a: #ffe0ec; --b: #ec8bb5; } .dc-colorless { --a: #f4f2ec; --b: #c9c5ba; }
.dc-trainer { --a: #eef1f5; --b: #9aa6b6; } .dc-energy { --a: #fbf3dc; --b: #dcbc62; }

/* Set mark: no photo and no scans, so the set code becomes the logo; the caption below already gives the name. */
.set-cover { container-type: inline-size; }
.set-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; width: 100%; height: 100%; padding: 0 8cqw; text-align: center; }
.set-mark[hidden] { display: none; }
.sm-code { font-weight: 800; font-size: min(22cqw, calc(130cqw / var(--len))); line-height: 1; letter-spacing: -0.02em; color: var(--fg); opacity: .85; white-space: nowrap; }
.sm-label { display: flex; flex-direction: column; align-items: center; gap: 3cqw; font-size: 6.5cqw; color: var(--muted); }
.sm-label::before { content: ""; width: 12cqw; height: 1px; background: currentColor; opacity: .6; }

/* A page with its own sub-navigation (the docs): a second, narrower column inside the page. */
.page.with-subnav { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2.5rem; }
.page-body { min-width: 0; }
.side-foot form { margin: 0; }
/* On a phone the sub-navigation is one row of pills that scrolls sideways, not a column above the page. */
@media (max-width: 760px) {
  .page.with-subnav { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .subnav { border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; min-width: 0; }
  .subnav .docs-nav { position: static; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0.4rem; overflow-x: auto; scrollbar-width: none;
    padding: 3px 3.5rem 3px 3px; scroll-padding-inline: 1rem 4rem; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .subnav .docs-nav::-webkit-scrollbar { display: none; }
  .subnav .docs-nav .nav-heading { display: none; }
  .subnav .docs-nav a { flex: none; white-space: nowrap; padding: 0.25rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }
  .subnav .docs-nav a.current { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  .subnav .docs-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
}
/* On a phone a wide table scrolls by itself instead of the page; a table.stack becomes one card per row. */
@media (max-width: 760px) {
  .page-body table:not(.stack) { display: block; overflow-x: auto; }
  .page-body table.stack thead { display: none; }
  .page-body table.stack, .page-body table.stack tbody, .page-body table.stack tr, .page-body table.stack td { display: block; width: auto; }
  .page-body table.stack tr { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
  .page-body table.stack td { border: 0; padding: 0.15rem 0; }
  .page-body table.stack form.inline { flex-wrap: wrap; }
}

/* Account: one button at the foot of the sidebar opening a menu (native popover, no script). */
.account-button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.45rem 0.5rem; border: 0; border-radius: 10px;
  background: none; color: var(--fg); font: inherit; font-size: 0.875rem; cursor: pointer; text-align: left; }
.account-button:hover, .account-button:focus-visible { background: var(--hover); }
.account-email { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: var(--muted); font-size: 0.8rem; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.85rem; }
.account-menu { position: fixed; inset: auto auto calc(4.25rem + env(safe-area-inset-bottom, 0px)) 0.75rem; margin: 0; width: 248px;
  padding: 0.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.account-menu:popover-open { display: flex; flex-direction: column; gap: 2px; }
.account-menu form { margin: 0; }
.account-menu hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0.3rem 0; }
.menu-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem 0.6rem; border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; }
.menu-head div { display: flex; flex-direction: column; min-width: 0; font-size: 0.875rem; }
.menu-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed-out { display: flex; align-items: center; gap: 0.5rem; }
.signed-out .sign-in { flex: 1; text-align: center; }
.icon-button { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--fg); cursor: pointer; font-size: 1rem; }
.icon-button:hover { background: var(--hover); }

/* Logo, and a sidebar that collapses to an icon rail (desktop only); collapsed items show their name as a tooltip. */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-left: 0.5rem; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand-mark { display: none; width: 36px; height: 36px; }
.collapse-toggle { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.collapse-toggle:hover, .collapse-toggle:focus-visible { background: var(--hover); color: var(--fg); }
.collapse-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.sign-in-icon { display: none; }
.side [data-tooltip] { position: relative; }
@media (max-width: 860px) { .collapse-toggle { display: none; } }
@media (min-width: 861px) {
  /* sticky makes the sidebar its own layer; above the page, so its tooltips aren't painted under the content */
  .side { z-index: 30; }
  body.app { transition: grid-template-columns .2s; }
  [data-sidebar="collapsed"] body.app { grid-template-columns: 68px minmax(0, 1fr); }
  [data-sidebar="collapsed"] .side { padding: 1.25rem 0.5rem; overflow: visible; }
  [data-sidebar="collapsed"] .side-head { flex-direction: column; padding: 0; gap: 0.6rem; }
  [data-sidebar="collapsed"] .brand-logo { display: none; }
  [data-sidebar="collapsed"] .brand-mark { display: block; }
  [data-sidebar="collapsed"] .collapse-toggle svg { transform: rotate(180deg); }
  [data-sidebar="collapsed"] .side nav .nav-item, [data-sidebar="collapsed"] .account-button { justify-content: center; padding-left: 0; padding-right: 0; }
  [data-sidebar="collapsed"] .nav-label, [data-sidebar="collapsed"] .account-email, [data-sidebar="collapsed"] .chevron {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* hidden, still read aloud */
  [data-sidebar="collapsed"] .nav-heading { height: 1px; margin: 0.6rem 0.4rem; overflow: hidden; color: transparent; background: var(--line); }
  [data-sidebar="collapsed"] .signed-out { flex-direction: column; }
  [data-sidebar="collapsed"] .signed-out .sign-in { display: grid; place-items: center; width: 2.4rem; padding: 0.45rem 0; }
  [data-sidebar="collapsed"] .sign-in-icon { display: inline; }
  [data-sidebar="collapsed"] .side [data-tooltip]:hover::after, [data-sidebar="collapsed"] .side [data-tooltip]:focus-visible::after {
    content: attr(data-tooltip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 50;
    padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: 0.8rem; font-weight: 500;
    line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
}

/* Studio: binder page results and corrections */
.binder-grid { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0.5rem; }
.pocket { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.pocket.match { border-color: color-mix(in srgb, var(--notice) 50%, var(--line)); }
.pocket.ambiguous, .pocket.no_match, .pocket.error { border-style: dashed; }
.grid-pick { display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 14px; font-size: 0.9rem; }
.grid-pick select { font: inherit; padding: 0.4rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.composer-foot .consent { display: flex; align-items: center; gap: 0.35rem; margin-right: auto; }
.composer-foot .consent + p { margin-left: auto; } /* the count stays beside Run when the row wraps */
.correction-form { display: flex; flex-direction: column; gap: 0.5rem; max-width: 520px; }
.correction-form input[type=text], .correction-form textarea { width: 100%; font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.drop[hidden], .grid-pick[hidden] { display: none; }
.correction-form .button { align-self: flex-start; }
.consent-brand { display: inline-flex; margin-bottom: 1.5rem; color: var(--fg); }
.consent-brand .brand-logo { height: 34px; width: auto; }
.error-page { padding-block: 3rem; }

/* Hovering the logo: the sparkles twinkle, a band of light sweeps across the gem, and the gem lifts a little. */
.brand svg .rdb-gem, .brand svg .rdb-sparkle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .rdb-gem, .brand:focus-visible .rdb-gem { animation: rdb-lift .7s cubic-bezier(.3, 1.4, .5, 1); }
  .brand:hover .rdb-shine, .brand:focus-visible .rdb-shine { animation: rdb-shine .8s ease-in-out .05s; }
  .brand:hover .rdb-sparkle-1, .brand:focus-visible .rdb-sparkle-1 { animation: rdb-twinkle .8s ease-in-out; }
  .brand:hover .rdb-sparkle-2, .brand:focus-visible .rdb-sparkle-2 { animation: rdb-twinkle .8s ease-in-out .18s; }
}
@keyframes rdb-lift { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-5%) rotate(-5deg); } }
@keyframes rdb-shine { from { transform: translateX(0); } to { transform: translateX(460px); } }
@keyframes rdb-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.55) rotate(45deg); } 70% { transform: scale(.8) rotate(80deg); } }

/* Slim footer: the full trademark notice and credits live on Data sources. */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--gutter); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: left; }
.foot p { margin: 0; max-width: none; text-wrap: pretty; }
.foot nav { display: flex; gap: 18px; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; flex: none; } /* the links, then the copyright behind a hairline */
.foot-copy { padding-left: 18px; border-left: 1px solid var(--line); white-space: nowrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }
.foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 720px) { .foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .foot-legal { justify-content: space-between; } .foot-copy { padding-left: 0; border-left: 0; } }

/* Focused pages: one short task (sign in, confirm, approve, an error) in a card centred in the space. */
.page.focused { max-width: none; display: flex; align-items: center; justify-content: center; padding: 32px max(16px, 4vw); }
.focus-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; padding: 36px; background: var(--card);
  border: 1px solid var(--card-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 28px rgba(60,40,20,.05); }
.focus-card header { display: flex; flex-direction: column; gap: 10px; }
.focus-card h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.focus-card header p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.focus-card p { margin: 0; }
.focus-form { display: flex; flex-direction: column; gap: 12px; }
.focus-form label { font-size: 13px; font-weight: 600; color: var(--label); }
.focus-form input[type=email] { height: 46px; padding: 0 14px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--field);
  color: var(--fg); font: inherit; font-size: 15px; }
.focus-form input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.focus-form input[aria-invalid=true] { border-color: var(--alert); }
.focus-form .field-error { margin: -4px 0 0; font-size: 13px; color: var(--alert); }
.focus-card .button, .focus-card form.button_to button { width: 100%; height: 46px; border-radius: 10px; font-size: 15px; }
.focus-card form.button_to { margin: 0; }
.focus-card .button:hover { filter: brightness(.88); }
.focus-card .button[disabled] { opacity: .7; cursor: progress; }
.focus-card .legal { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.focus-card .legal a { color: var(--fg); opacity: .75; }

/* Sealed products: filter chips, set headers and a product grid (design 3a). */
.sealed-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sealed-picks { display: flex; gap: 0.5rem; }
.pick { position: relative; }
.pick summary { list-style: none; cursor: pointer; font-size: 0.85rem; padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.pick summary::-webkit-details-marker { display: none; }
.pick[open] summary { border-color: var(--muted); }
.pick-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; min-width: 100%; display: flex; flex-direction: column; padding: 4px;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 10px; box-shadow: var(--shadow); }
.pick-menu a { padding: 0.4rem 0.65rem; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
.pick-menu a:hover { background: var(--hover); }
.pick-menu a.current { font-weight: 600; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0.5rem; }
.filter-chips a { display: inline-flex; gap: 0.4em; align-items: baseline; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--fg); text-decoration: none; font-size: 0.85rem; }
.filter-chips a span { color: var(--muted); font-size: 0.8em; }
.filter-chips a:hover { border-color: var(--muted); }
.filter-chips a.current { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.filter-chips a.current span { color: inherit; opacity: .7; }
.filter-chips.sub { margin-top: 0; }
.filter-chips.sub a { font-size: 0.8rem; padding: 0.25rem 0.65rem; }
.sealed-section { margin-top: 1.75rem; }
.sealed-set { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.sealed-set > div { flex: 1; min-width: 0; }
.sealed-set h2 { margin: 0; font-size: 1.15rem; }
.sealed-set p { margin: 0.1rem 0 0; }
.sealed-set-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--tile); }
.sealed-set-mark img { width: 24px; height: 24px; object-fit: contain; }
.sealed-set-link { flex: none; font-size: 0.85rem; color: var(--fg); text-decoration: none; }
.sealed-set-link:hover { text-decoration: underline; }
.sealed-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.sealed-tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--card-line); border-radius: 12px; overflow: hidden; background: var(--card); }
.sealed-tile:hover { border-color: var(--muted); }
.st-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #fff; }
.st-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; }
.st-blank { display: grid; place-items: center; width: 100%; height: 100%; background: var(--tile); color: var(--muted); font-size: 0.85rem; text-align: center; padding: 1rem; }
.st-blank[hidden] { display: none; }
.st-badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 0.1rem 0.45rem; border-radius: 5px; font-size: 0.72rem; font-weight: 600; background: var(--callout); color: var(--accent); }
.st-body { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.7rem 0.8rem 0.75rem; border-top: 1px solid var(--card-line); }
.st-title { font-weight: 600; font-size: 0.9rem; line-height: 1.3; color: var(--fg); text-decoration: none; }
.st-title::after { content: ""; position: absolute; inset: 0; } /* the whole tile opens the product; variant links sit above it */
.st-title:focus-visible { outline: none; }
.sealed-tile:has(.st-title:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-foot { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }
.st-variants { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 0.5rem; }
.st-variants a { position: relative; z-index: 1; color: var(--muted); font-size: 0.75rem; text-decoration: none; }
.st-variants a:hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 560px) { .sealed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Pullbook: money-first pages. Bars and meters take their size from --h / --w set inline. */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.page-head .intro { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.section-head h2 { margin: 0; }
.eyebrow { margin: 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gain { color: var(--notice); }
.loss { color: var(--alert); }
.table-scroll { overflow-x: auto; position: relative; }
.summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; }
.summary-hero, .stat-list, .panel-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 1.25rem 1.5rem; min-width: 0; }
.summary-hero > p { margin: 0.25rem 0 0; }
.profit-figure { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--notice); font-variant-numeric: tabular-nums; }
.profit-figure.loss { color: var(--alert); }
.day-bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; margin-top: 1.25rem; }
.day-bars span { flex: 1; max-width: 40px; height: var(--h); background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 4px 4px 0 0; }
.day-bars span.best { background: var(--accent); }
.day-bars span.loss { background: var(--alert); opacity: 0.6; }
.day-bars-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-top: 0.4rem !important; }
.stat-list { display: flex; flex-direction: column; gap: 0.9rem; }
.stat-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.stat-list > div:first-child { border-top: 0; padding-top: 0; }
.stat-list strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.meter { display: block; flex-basis: 100%; height: 8px; background: var(--tile); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; width: var(--w); height: 100%; background: var(--accent); border-radius: inherit; }
.meter.paid > span { background: var(--notice); }
.attention { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; background: var(--callout); color: var(--fg); border-radius: 12px; padding: 0.9rem 1.2rem; text-decoration: none; }
.attention:hover { color: var(--fg); }
.attention-go { color: var(--accent); font-weight: 600; white-space: nowrap; }
.purchase-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0.9rem; }
.purchase-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1rem; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 1rem 1.2rem; color: var(--fg); text-decoration: none; }
.purchase-card:hover { color: var(--fg); border-color: var(--field-line); }
.purchase-card > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.purchase-card-profit { display: flex; flex-direction: column; text-align: right; }
.purchase-card-profit strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.purchase-card .meter, .purchase-card-foot { grid-column: 1 / -1; }
.purchase-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
@media (max-width: 760px) { .summary { grid-template-columns: minmax(0, 1fr); } }
.back-link { margin: 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 0.75rem; }
.stat-tiles > div, .stat-tiles > a { display: flex; flex-direction: column; gap: 0.1rem; background: var(--side); border-radius: 14px; padding: 0.9rem 1.1rem; min-width: 0; color: var(--fg); text-decoration: none; }
.stat-tiles > a { background: var(--callout); }
.stat-tiles strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.split-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 0.75rem 0; }
.split-bar span { width: var(--w); min-width: 3px; }
:is(.split-bar, .split-legend) .sold { background: var(--muted); }
:is(.split-bar, .split-legend) .stock-0 { background: var(--accent); }
:is(.split-bar, .split-legend) .stock-1 { background: color-mix(in srgb, var(--accent) 45%, var(--bg)); }
:is(.split-bar, .split-legend) .bulk { background: color-mix(in srgb, var(--muted) 30%, var(--bg)); }
:is(.split-bar, .split-legend) .rest { background: color-mix(in srgb, var(--muted) 60%, var(--bg)); }
.split-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; list-style: none; padding: 0; margin: 0 0 0.5rem; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.4rem; }
.chip.sold { background: var(--tile); color: var(--muted); }
.chip.stock { background: var(--callout); }
.add-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0.9rem; margin: 0.75rem 0; }
.add-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 1rem 1.2rem; min-width: 0; }
.add-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.add-card form.stack { max-width: none; }
.add-card.photo { background: var(--callout); border-style: dashed; border-color: var(--field-line); }
.report-rows { display: flex; flex-direction: column; }
.report-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 0.8fr); gap: 0.5rem 1.25rem; align-items: center; border-top: 1px solid var(--line); padding: 0.9rem 0.25rem; }
.report-row > div:first-child, .report-row > .num { display: flex; flex-direction: column; min-width: 0; }
.report-row > .num strong { font-size: 1.2rem; }
.report-bars { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 6.5rem; gap: 0.3rem 0.6rem; align-items: center; }
.meter-bar { height: 10px; background: var(--tile); border-radius: 999px; overflow: hidden; }
.meter-bar > span { display: block; width: var(--w); height: 100%; background: var(--notice); }
.meter-bar.paid > span { background: var(--muted); }
.tax-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 1.25rem 1.5rem; }
.tax-card h2 { margin: 0; }
.tax-card p { margin: 0.4rem 0 0; }
.tax-card-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.tax-card-actions .callout { margin: 0; }
.tax-card-actions .button { text-align: center; }
@media (max-width: 760px) { .report-row, .tax-card { grid-template-columns: minmax(0, 1fr); } .report-row > .num { text-align: left; } }
.summary, .attention, .stat-tiles, .purchase-cards, .report-rows, .tax-card, .add-cards { margin-block: 1.25rem; }
.section-head { margin-top: 2rem; }
@media (max-width: 560px) { .day-bars { gap: 3px; } }
.sales-table .day-row th { padding-top: 1.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 0; }
.review-list { display: flex; flex-direction: column; gap: 0.9rem; margin-block: 1.25rem; }
.review-card { display: flex; flex-direction: column; gap: 1rem; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 1.1rem 1.4rem; }
.review-what { display: flex; gap: 1rem; min-width: 0; }
.review-what h2 { margin: 0; font-size: 1.05rem; }
.review-what p { margin: 0.2rem 0 0; }
.review-thumb { align-self: flex-start; width: 56px; aspect-ratio: 63 / 88; border-radius: 6px; object-fit: cover; flex: none; background: var(--tile); }
.review-thumb.blank { display: flex; align-items: flex-start; padding: 6px; font-size: 0.7rem; color: var(--muted); }
.fg { color: var(--fg); }
.review-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.review-option { border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; min-width: 0; }
.review-option form.stack { max-width: none; gap: 0.45rem; }
.review-option label, .review-option-title { font-size: 0.85rem; font-weight: 700; margin: 0; }
.review-option select, .review-option input { width: 100%; min-width: 0; }
@media (max-width: 640px) { .review-options { grid-template-columns: minmax(0, 1fr); } }
.counter-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.counter-show { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); min-width: 0; }
.counter-show select { border-radius: 999px; font-weight: 600; min-width: 0; max-width: 14rem; }
.counter .eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; }
.counter-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.counter-total strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.counter-total span { font-weight: 700; }
.counter-form input { font-size: 1.15rem; }
.counter-pair { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0.6rem; }
.counter-pair > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.counter-pair input { font-size: 1.5rem; font-weight: 700; width: 100%; }
.focus-card .counter-sold { min-height: 56px; font-size: 1.15rem; }
.just-sold { display: flex; flex-direction: column; gap: 0.4rem; }
.just-sold h2 { margin: 0; font-size: 0.95rem; }
.just-sold p { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.review-option form.inline { margin: 0.35rem 0 0; }
.review-option button.link { text-align: left; font-size: 0.85rem; }
.counter-show .button { width: auto; height: auto; }
.review-what > div { min-width: 0; overflow-wrap: anywhere; }
.counter-top > a { white-space: nowrap; }
.focus-card header .counter-total { color: var(--fg); }

/* Catalog: browse pages. */
.explore-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.explore-hero .intro { margin: 0; }
.explore-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.fact-tiles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact-tiles > div { background: var(--side); border-radius: 14px; padding: 0.8rem 1.1rem; }
.fact-tiles dt { font-size: 0.85rem; color: var(--muted); }
.fact-tiles dd { margin: 0; font-size: 1.5rem; font-weight: 700; }
.section-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; margin-block: 1.5rem 1rem; }
.section-bar .filter-chips { margin: 0; }
.card-tile { aspect-ratio: auto; background: none; overflow: visible; display: flex; flex-direction: column; gap: 0.5rem; border-radius: 0; }
.card-tile .tile-media { display: block; position: relative; aspect-ratio: 63 / 88; border-radius: 10px; overflow: hidden; background: var(--tile); container-type: inline-size; }
.card-tile:hover .tile-media, .card-tile:focus-visible .tile-media { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-tile:focus-visible { outline: none; }
.card-caption { display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.35; min-width: 0; }
.card-caption strong { font-weight: 600; overflow-wrap: anywhere; }
.chip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); color: var(--fg); text-decoration: none; }
.chip-links a:hover { border-color: var(--muted); }
.result-group { display: flex; flex-direction: column; gap: 0.6rem; margin-block: 1.5rem; }
.result-group h2, .catalog-group h2 { margin: 0; font-size: 1.15rem; }
.catalog-group { display: flex; flex-direction: column; gap: 0.9rem; margin-block: 2rem; scroll-margin-top: 5rem; }
.section-rule { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.set-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 0.5rem; }
.set-head .set-pack .sealed-thumb { width: 96px; height: 96px; }
.set-title { display: flex; align-items: center; gap: 0.75rem; }
.set-title h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.set-head p { margin: 0.35rem 0 0; }
.pull-rates { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; margin-block: 1.25rem; }
.pull-rates h2, .pack-value h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.odds-list { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.odds-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 4.5rem; gap: 0.9rem; align-items: center; }
.odds-list .meter { flex-basis: auto; }
.odds-list strong { text-align: right; font-variant-numeric: tabular-nums; }
.pack-value { border-left: 1px solid var(--line); padding-left: 1.75rem; min-width: 0; }
.pack-value .ev { margin: 0 0 0.5rem; }
.pack-value .ev .big { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.species-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.species-head h1 .muted { font-weight: 400; font-size: 0.6em; }
.trait-chips { list-style: none; margin: 0.75rem 0 0.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trait-chips li { padding: 0.15rem 0.75rem; border-radius: 999px; background: var(--tile); font-size: 0.85rem; }
.evolution { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-block: 1.25rem; }
.evolution h2 { margin: 0; font-size: 0.95rem; color: var(--muted); }
.evo-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.evo-line li { display: flex; align-items: center; gap: 0.5rem; }
.evo-line li + li::before { content: "→"; color: var(--muted); }
.evo-line a, .evo-line strong { padding: 0.3rem 0.9rem; border-radius: 999px; border: 1px solid var(--card-line); color: var(--fg); text-decoration: none; }
.evo-line strong { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.species-grid { gap: 18px 12px; }
.species-grid strong { display: block; font-weight: 600; }
.dev-box { background: var(--card); border-color: var(--card-line); border-radius: 14px; padding: 1rem 1.4rem; }
.dev-box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.dev-box-grid pre { background: var(--code-bg); border-radius: 10px; padding: 0.75rem; font-size: 0.8rem; }
@media (max-width: 860px) { .explore-hero, .pull-rates { grid-template-columns: minmax(0, 1fr); } .pack-value { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; } }
.pack-value details { overflow-x: auto; }
.search-query { overflow-wrap: anywhere; }
.focus-form input[type=search] { height: 46px; }
@media (max-width: 480px) { .odds-list li { grid-template-columns: minmax(0, 1fr) auto; } .odds-list .meter { grid-column: 1 / -1; grid-row: 2; } }
.pull-rates:has(.pack-value details[open]) { grid-template-columns: minmax(0, 1fr); }
.pull-rates:has(.pack-value details[open]) .pack-value { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }

/* Catalog: card and sealed detail pages. */
.crumbs + .detail { margin-top: 1rem; }
:is(.card-detail, .sealed-detail, .job-detail) .detail-panel { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
:is(.card-detail, .sealed-detail, .job-detail) .detail-panel > *, :is(.card-detail, .sealed-detail, .job-detail) .detail-panel section { margin-block: 0; }
:is(.card-detail, .sealed-detail, .job-detail) .detail-panel h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; }
:is(.card-detail, .sealed-detail, .job-detail) .detail-panel section h2 { font-size: 1.15rem; margin: 0.5rem 0; }
.media-note { text-align: center; margin: 0.6rem 0 0; }
.detail-panel .price-card, .detail-panel .ev-card { border: 1px solid var(--card-line); background: var(--card); border-radius: 16px; padding: 1.1rem 1.4rem; margin: 0; }
.price-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
:is(.card-detail, .sealed-detail, .job-detail) .detail-panel .price-head h2 { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.price-big { margin: 0; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-head p { margin: 0; }
.link-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.link-buttons a { padding: 0.3rem 0.75rem; border-radius: 8px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.link-buttons a:hover { border-color: var(--muted); }
.price-card table { width: 100%; margin: 0.75rem 0 0.5rem; }
.detail-panel .pull-strip { border: 0; margin: 0; padding: 0.8rem 1.2rem; border-radius: 14px; background: var(--side); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.pull-strip strong { font-size: 1.3rem; margin-left: 0.3rem; }
.moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.moves li { border: 1px solid var(--card-line); background: var(--card); border-radius: 12px; padding: 0.7rem 1rem; }
.moves p { margin: 0; }
.move-head { display: flex; justify-content: space-between; gap: 1rem; }
.move-head .dmg { float: none; }
.move-head .muted { font-weight: 400; font-size: 0.85rem; }
.detail-panel .stat-tiles { border: 0; padding: 0; margin: 0; }
.detail-panel .stat-tiles .ev-tile { background: var(--callout); }
.contents-list { list-style: none; margin: 0; padding: 0; }
.contents-list li { display: flex; align-items: center; gap: 0.9rem; border-top: 1px solid var(--line); padding: 0.6rem 0; }
.contents-list li:last-child { border-bottom: 1px solid var(--line); }
.qty { min-width: 2.75rem; text-align: center; padding: 0.1rem 0.5rem; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-card .ev .big { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.ev-card details { overflow-x: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(.card-detail, .sealed-detail, .job-detail) .detail-panel .pull-strip h2 { display: inline; font-size: inherit; font-weight: 400; margin: 0; color: var(--muted); }

/* Studio. */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 10px; margin-bottom: 1rem; }
.modes label { position: relative; white-space: normal; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 0.95rem; }
.modes label span { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.modes label:has(input:checked) { background: var(--callout); color: var(--fg); border: 2px solid var(--accent); padding: calc(0.75rem - 1px) calc(0.9rem - 1px); }
.modes label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.composer { background: var(--card); border-color: var(--card-line); box-shadow: none; padding: 1.25rem; }
.drop { background: var(--field); }
.tip { flex: 1 0 100%; padding: 0.6rem 0.9rem; border-radius: 10px; background: var(--side); color: var(--label); }
.page .runs-heading { margin: 2rem 0 0; font-size: 1.15rem; }
.job-list { gap: 0.6rem; }
.job-row { background: var(--card); border: 1px solid var(--card-line); padding: 0.7rem 0.9rem; }
.job-row:hover { background: var(--card); border-color: var(--accent); }
.result-card { border: 1px solid var(--card-line); background: var(--card); border-radius: 18px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.result-card > * { margin: 0; }
.result-card .match h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.result-card .match p { margin: 0.25rem 0 0; }
.verdict-likely_fake { background: color-mix(in srgb, var(--alert) 9%, var(--card)); border-color: color-mix(in srgb, var(--alert) 30%, var(--card-line)); }
.verdict-no_red_flags { background: color-mix(in srgb, var(--notice) 8%, var(--card)); }
.verdict-cant_tell { background: var(--callout); }
.candidates { list-style: none; margin: 0; padding: 0; }
.candidates li { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: 0.2rem 1rem; border-top: 1px solid var(--line); padding: 0.6rem 0; }
.candidates .score { display: flex; align-items: center; gap: 0.5rem; }
.candidates .score .meter { flex: 1; }
.candidates .score .meter > span { background: var(--muted); }
.candidates .score strong { width: 2.6rem; text-align: right; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.candidates .why { grid-column: 1 / -1; }
.note-box { padding: 0.6rem 0.9rem; border-radius: 10px; background: var(--side); color: var(--label); }
.job-detail .detail-panel .grade-card h1 { font-size: clamp(2.6rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.grade-card .limits li { background: var(--callout); }
.centering-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-bottom: 0.5rem; }
.centering-tiles > div { background: var(--side); border-radius: 14px; padding: 0.8rem 1rem; }
.flag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.flag-list li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.15rem 0.9rem; border: 1px solid var(--card-line); background: var(--card); border-radius: 12px; padding: 0.7rem 1rem; }
.flag-severity { grid-row: span 2; align-self: start; text-align: center; padding: 0.05rem 0.5rem; border-radius: 8px; background: var(--tile); font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.severity-strong .flag-severity { background: color-mix(in srgb, var(--alert) 22%, var(--bg)); }
.severity-medium .flag-severity { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.check-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.job-detail .check-columns section { background: var(--side); border-radius: 14px; padding: 0.8rem 1rem; border: 0; }
.job-detail .detail-panel .check-columns h2 { font-size: 0.95rem; margin: 0 0 0.25rem; }
.job-detail .feedback { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; }
.job-detail .detail-panel .feedback h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.job-detail .pocket { background: var(--card); border-radius: 12px; }
.centering-tiles > div > span:first-child { display: block; }
.job-detail .studio-result { display: flex; flex-direction: column; gap: 1.25rem; }
.detail-panel .result-card { border-top: 1px solid var(--card-line); padding-top: 1.25rem; }
.detail-panel .verdict-likely_fake { border-top-color: color-mix(in srgb, var(--alert) 30%, var(--card-line)); }
.job-detail .detail-panel .studio-result .panel { margin: 0; }
@media (max-width: 480px) { .candidates li { grid-template-columns: minmax(0, 1fr) 6rem; } }
.job-detail .studio-result > * { margin-block: 0; }
.page h3.day { margin: 1.5rem 0 0.5rem; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* Developers: account, docs, legal, connecting apps. */
.account-section { margin-block: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.page .account-section h2 { margin: 0; }
.account-section .section-head { margin-top: 0; }
.account-section form.inline { margin: 0; }
.account-section table { margin: 0; }
.usage-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.usage-bars span { flex: 1; height: var(--h); background: color-mix(in srgb, var(--accent) 35%, var(--tile)); border-radius: 3px 3px 0 0; }
.pager-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 2.5rem 0 1rem; }
.pager-cards a { display: flex; flex-direction: column; border: 1px solid var(--card-line); background: var(--card); border-radius: 12px; padding: 0.75rem 1rem; color: var(--fg); text-decoration: none; }
.pager-cards a:hover { border-color: var(--accent); }
.pager-cards .next { text-align: right; grid-column: 2; }
.docs-nav a { padding: 0.2rem 0.6rem; border-radius: 8px; }
.docs-nav a.current { background: var(--side); }
.docs-nav a:hover { background: var(--hover); }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0 1.5rem; }
.type-chips a { padding: 0.1rem 0.6rem; border-radius: 8px; border: 1px solid var(--card-line); background: var(--card); color: var(--fg); text-decoration: none; font-family: var(--mono); font-size: 0.8rem; }
.type-card { border: 1px solid var(--card-line); background: var(--card); border-radius: 16px; padding: 0.25rem 1.4rem 1rem; margin-block: 1.25rem; }
.prose .type-card h2 { border-top: 0; padding-top: 0.75rem; margin-top: 0.5rem; font-family: var(--mono); }
.explorer-head { margin-bottom: 1rem; }
.explorer-bar { margin: 0; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 0.6rem 0.9rem; }
.explorer-bar input { width: 240px; }
#graphiql { border-radius: 16px; overflow: hidden; border: 1px solid var(--card-line); }
.prose.legal { max-width: 760px; background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 2rem 2.5rem; margin-inline: auto; box-sizing: border-box; }
main.consent > :not(.consent-brand) { margin-block: 0 0.9rem; }
main.consent { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 2rem; margin: 3rem auto; box-sizing: border-box; }
main.consent .consent-brand { align-self: center; }
.consent-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.consent-list li { position: relative; padding-left: 1.75rem; }
.consent-list li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0.2rem; color: var(--notice); font-weight: 700; }
.consent-no { position: relative; padding-left: 1.75rem; color: var(--muted); }
.consent-no::before { content: "✕"; content: "✕" / ""; position: absolute; left: 0.25rem; }
.consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.consent-actions input[type=submit] { width: 100%; min-height: 46px; }
@media (max-width: 560px) { .prose.legal { padding: 1.25rem; } .pager-cards { grid-template-columns: minmax(0, 1fr); } .pager-cards .next { grid-column: auto; } }
main.consent h1 { font-size: 1.6rem; line-height: 1.25; }
.account-section .section-head form.inline { flex: 1 1 14rem; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; }
.account-section .section-head form.inline input[type=text] { flex: 1 1 12rem; min-width: 0; max-width: 22rem; }
@media (max-width: 560px) { main.consent { margin: 1.5rem 1rem; padding: 1.5rem 1.25rem; } .pager-cards > span:empty { display: none; } }
.docs-nav .nav-heading { padding-inline: 0.6rem; }
.type-card h2[id], .prose h2[id], .prose h3[id] { scroll-margin-top: 5rem; }

/* Converted prices: the note under price lists. */
.price-note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.75rem; }
.price-note summary { cursor: pointer; }
.price-note p { margin: 0.5rem 0 0; color: var(--label); max-width: 68ch; }

/* Pullbook: what you paid, or "cost unknown". */
.cost-fields { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.cost-fields legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.cost-unknown { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 400; }
.cost-unknown:has(input:checked) { border: 2px solid var(--accent); background: var(--callout); padding: calc(0.7rem - 1px) calc(0.9rem - 1px); }
.cost-unknown input { margin-top: 0.3rem; }
.cost-unknown .muted { display: block; }
.cost-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.cost-amounts > div { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.cost-fields:has(.cost-unknown input:checked) .cost-amounts { opacity: 0.45; }
@media (max-width: 480px) { .cost-amounts { grid-template-columns: minmax(0, 1fr); } }

/* Pullbook holdings. */
.holdings-summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.5rem; }
.holdings-hero { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.holdings-hero p { margin: 0; }
.holdings-value { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.holdings-chart { height: 140px; margin-top: 0.9rem; border-bottom: 1px solid var(--line); }
.holdings-chart svg { display: block; width: 100%; height: 140px; }
.holdings-chart .area { fill: var(--accent); fill-opacity: 0.08; stroke: none; }
.holdings-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.holdings-chart .paid { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.holdings-chart-key { display: flex; justify-content: space-between; gap: 0.5rem; }
.holdings-chart-key .dash { display: inline-block; width: 14px; border-top: 2px dashed var(--muted); vertical-align: middle; }
.holdings-side { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.holdings-side p { margin: 0; }
.holdings-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.holdings-tile { background: var(--tile); border-radius: 14px; padding: 0.85rem 1.1rem; display: flex; flex-direction: column; min-width: 0; }
.holdings-tile strong { font-size: 1.5rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.holdings-groups .holdings-tile strong { font-size: 1.25rem; }
.holdings-table { font-variant-numeric: tabular-nums; }
.holdings-table .holding-kind { display: block; }
@media (max-width: 760px) { .holdings-summary { grid-template-columns: minmax(0, 1fr); } .holdings-value { font-size: 2.4rem; } }
h1 .chip { font-size: 0.8rem; font-weight: 400; vertical-align: middle; }

/* Pullbook landing page. The hero is the product's own output: one box, printed like a receipt. */
.pitch { max-width: 1040px; margin: 0 auto; }
.pitch section { margin: 3.5rem 0; }
.pitch h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
.pitch h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.page .pitch-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; margin-top: 2rem; }
.pitch-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 1rem; }
.pitch-hero .lede { font-size: 1.15rem; max-width: 34em; }
.receipt { margin: 0; padding: 1.5rem 1.5rem 1.75rem; background: var(--card); border: 1px solid var(--card-line); border-bottom: 0; font-family: var(--mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; transform: rotate(0.6deg);
  --tooth: 10px; clip-path: polygon(0 0, 100% 0, 100% 100%, 95% calc(100% - var(--tooth)), 90% 100%, 85% calc(100% - var(--tooth)), 80% 100%, 75% calc(100% - var(--tooth)), 70% 100%, 65% calc(100% - var(--tooth)), 60% 100%, 55% calc(100% - var(--tooth)), 50% 100%, 45% calc(100% - var(--tooth)), 40% 100%, 35% calc(100% - var(--tooth)), 30% 100%, 25% calc(100% - var(--tooth)), 20% 100%, 15% calc(100% - var(--tooth)), 10% 100%, 5% calc(100% - var(--tooth)), 0 100%); }
.receipt figcaption { color: var(--muted); padding-bottom: 0.75rem; border-bottom: 1px dashed var(--card-line); }
.receipt-line, .receipt-total { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.75rem 0; }
.receipt table { width: 100%; border-collapse: collapse; border-block: 1px dashed var(--card-line); }
.receipt th, .receipt td { padding: 0.45rem 0 0.45rem 0.6rem; text-align: right; font-weight: 400; vertical-align: top; }
.receipt th:first-child { padding-left: 0; text-align: left; }
.receipt thead th { color: var(--muted); }
.receipt tbody th span { display: block; color: var(--muted); font-size: 0.74rem; }
.receipt-total { padding-bottom: 0.25rem; font-size: 1rem; }
.receipt-total strong { font-size: 1.5rem; color: var(--notice); }
.pitch-steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; }
.pitch-steps li { counter-increment: step; }
.pitch-steps li::before { content: counter(step); display: block; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.pitch-steps p, .pitch-why dd { margin: 0; color: var(--muted); }
.pitch-why dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin: 0; }
.pitch-why dt { font-weight: 600; }
.pitch-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.pitch-plan { padding: 1rem 1.1rem; border: 1px solid var(--card-line); border-radius: 12px; background: var(--card); }
.pitch-plan.featured { border-color: var(--accent); }
.pitch-price { font-weight: 700; margin: 0 0 0.5rem; }
.pitch-faq { max-width: 44rem; }
.pitch-faq details { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.pitch-faq summary { cursor: pointer; font-weight: 600; }
.pitch-faq details p { margin: 0.5rem 0 0; color: var(--muted); }
@media (max-width: 900px) {
  .page .pitch-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .receipt { transform: none; }
  .pitch-steps ol, .pitch-why dl { grid-template-columns: minmax(0, 1fr); }
  .pitch-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .pitch-plan-grid { grid-template-columns: minmax(0, 1fr); } .receipt { padding-inline: 1rem; font-size: 0.76rem; } }
