/* The portfolio as a brokerage window: change chips, the holdings table, the card ticker.
   Up/down always carry a glyph (▲ ▼) and a sign, never color alone. */

/* === change chips === */
.dl { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl small { font-size: .78em; font-weight: 500; opacity: .85; margin-left: 2px; }
.dl-up { color: #1f6b3a; }
.dl-down { color: #b23a22; }
.dl-flat, .dl-none { color: var(--ink-3); font-weight: 500; }
[data-theme="dark"] .dl-up { color: #6fd08f; }
[data-theme="dark"] .dl-down { color: #ff8a70; }
.dl-label { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* === hero === */
.band .port-sub { color: var(--band-ink-2); }
.band .port-value #port-total { color: var(--band-ink); }
.band .port-trend .dl-up { color: var(--up); }
.band .port-trend .dl-down { color: var(--down); }
.band .port-trend { font-size: 1.05rem; }
.port-windows { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; margin-top: 14px; }   /* one full row, never 3 + 1 */
.port-win { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); }
.band .port-win .dl-up { color: var(--up); }
.band .port-win .dl-down { color: var(--down); }
.band .port-win .dl-flat { color: var(--band-ink-2); }
.band .port-win .dl-label { color: var(--band-ink-3); }
.port-gap { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); font-size: .9rem; }

/* === showcase row === */
.wall-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wall-meta .dl { font-size: .74rem; margin-top: 2px; }

/* === graded slabs === */
.slab-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.slab-grade { background: var(--ink); color: var(--paper); }
.slab-seen { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); }

/* === holdings === */
.hold { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.hold-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.hold-search { display: flex; gap: 8px; flex: 1 1 280px; }
.hold-search input { flex: 1; min-width: 0; padding: 10px 16px; font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.hold-search input:focus { outline: none; border-color: var(--sun); box-shadow: var(--focus-ring); }
.hold-search .btn { padding: 9px 18px; }
.hold-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 600; background: var(--surface); }
.pill:hover { border-color: var(--sun); text-decoration: none; color: var(--ink); }
.pill-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill-on:hover { color: var(--paper); }
.hold-focus { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 12px 16px; background: var(--sun-soft); border-bottom: 1px solid var(--line-2); }
.hold-focus b { font-family: var(--serif); font-size: 1.15rem; }
.hold-scroll { overflow-x: auto; }
.hold-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hold-table th { position: sticky; top: 0; background: var(--surface); text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hold-table th.th-card { text-align: left; }
.th-sort { color: var(--ink-3); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.th-sort:hover { color: var(--ink); text-decoration: none; }
.th-on { color: var(--ink); }
.hold-table td { padding: 8px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
/* The card cell takes the slack and truncates, so long parallel names never push the numbers off-screen. */
.td-card { width: 46%; max-width: 0; }
.hold-table tbody tr:hover { background: var(--paper-2); }
.td-num { text-align: right; white-space: nowrap; color: var(--ink); }
.td-val { font-weight: 700; }
.hold-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hold-open img, .hold-noimg { width: 34px; height: 48px; flex: none; border-radius: 4px; object-fit: cover; background: var(--line-2); }
.hold-name { display: flex; flex-direction: column; min-width: 0; }
.hold-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hold-open:hover b { color: var(--sun-text); }
.hold-name em { font-style: normal; color: var(--ink-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hold-tags { display: flex; gap: 4px; margin-top: 2px; }
.tag { font-style: normal; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-2); }
.tag-grade { border-color: var(--sun); color: var(--sun-text); }
.tag-chain { background: var(--sun); border-color: var(--sun); color: var(--text-inv); }
.hold-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.hold-pages { display: flex; gap: 8px; }
.hold.is-loading { opacity: .55; transition: opacity .15s; }

/* === breakdowns === */
.breakdowns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bar-name em { font-style: normal; color: var(--ink-3); font-size: .74rem; margin-left: 6px; }

/* === card ticker (the modal's top) === */
.ticker { margin: 14px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.ticker-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.ticker-label { width: 100%; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ticker-price { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticker-wins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ticker-win { display: inline-flex; flex-direction: column; gap: 1px; min-width: 72px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ticker-line { display: block; width: 100%; height: 100px; margin-top: 12px; }
.ticker-axis { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 0; color: var(--ink-3); font-size: .72rem; }
.ticker-src { margin: 8px 0 0; }

@media (max-width: 760px) {
  .wall-row, .slab-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .breakdowns-3 { grid-template-columns: 1fr; }
  .hold-table th:nth-child(2), .hold-table td:nth-child(2),
  .hold-table th:nth-child(3), .hold-table td:nth-child(3),
  .hold-table th:nth-child(5), .hold-table td:nth-child(5),
  .hold-table th:nth-child(7), .hold-table td:nth-child(7) { display: none; }   /* phone: card, value, 30d */
  .hold-tags { display: none; }
  .hold-table td, .hold-table th { padding: 8px; }
  .td-card { width: 58%; }
  .hold-open { gap: 8px; }
  .hold-open img, .hold-noimg { width: 26px; height: 37px; }
  .dl small { display: none; }
  .ticker-price { font-size: 1.9rem; }
}

/* === estimate receipts === */
.est-hits { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.est-hits li { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: .85rem; }
.est-hits .mono { font-weight: 700; color: var(--ink); min-width: 74px; }
.est-hits a { white-space: nowrap; font-weight: 600; }
.est-hit-title { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.oc-view { padding: 0; border: 0; background: none; color: var(--sun-text); font: inherit; font-weight: 700; cursor: pointer; }
.oc-view:hover { text-decoration: underline; }
.est-mid { margin: 4px 0 0; font-size: .95rem; color: var(--ink); }
.port-found { margin: 10px 0 0; color: var(--band-ink-2); font-size: .95rem; max-width: 60ch; }
.band .port-found b { color: var(--ink); }
.est-crawl { margin-top: 10px; font-size: .85rem; padding: 7px 14px; }
/* A card panel's buttons span the panel, stacked, primary first (house rule, 2026-10-18). */
.est-crawl, .find-photo .btn-ghost, #lore-more, .deglare-offer .home-cta .btn, .deglare-offer .home-cta .btn-ghost { width: 100%; justify-content: center; }
.deglare-offer .home-cta { display: grid; gap: 8px; }
.upload-photo button { flex-basis: 100%; justify-content: center; }
.sample-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--sun-soft); border: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.sample-note a { font-weight: 700; }
.hold-types { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.pill-type { font-size: .8rem; }

/* === header: main numbers left, at-a-glance grid right === */
.port-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.port-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.ps { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.ps-k { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--band-ink-3); }
.ps-v { display: block; margin: 4px 0 2px; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-v.dl-up { color: var(--up); font-family: var(--mono); font-size: 1.15rem; }
.ps span { display: block; font-size: .76rem; color: var(--band-ink-2); }
@media (max-width: 860px) { .port-grid { grid-template-columns: 1fr; } }
.breakdowns-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* === chart controls (#425): one bar on every value line; spans its column, pressed = inverted (luminance, not hue) === */
.chart-bar { display: grid; gap: 8px; margin: 0 0 10px; }
.chart-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.chart-seg button { font: 600 .85rem/1 var(--sans); padding: 9px 4px; background: var(--surface); color: var(--ink-2); border: 0; border-left: 1px solid var(--line); cursor: pointer; }
.chart-seg button:first-child { border-left: 0; }
.chart-seg button[aria-pressed="true"], .chart-seg button[aria-expanded="true"] { background: var(--ink); color: var(--surface); font-weight: 700; }
.chart-seg button:disabled { color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; }
.chart-seg button:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.chart-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chart-dates[hidden] { display: none; }
.chart-dates label { display: grid; gap: 4px; font-size: .8rem; color: var(--ink-3); }
.chart-dates input { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.chart-span { margin: 0; font-size: .78rem; color: var(--ink-3); }
.chart-thin svg { opacity: .35; }
.has-chart-bar .trend-now, .has-chart-bar > .ticker-axis, .has-chart-bar > .ph-scale { display: none; }

/* === scrubbable value lines === */
[data-scrub] { position: relative; cursor: crosshair; touch-action: pan-y; }
.scrub-rule, .scrub-dot, .scrub-tip { position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s; }
[data-scrub].scrubbing .scrub-rule, [data-scrub].scrubbing .scrub-dot, [data-scrub].scrubbing .scrub-tip { opacity: 1; }
.scrub-rule { top: 0; bottom: 0; width: 1px; background: var(--line); }
.scrub-dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: var(--sun-deep); border: 2px solid var(--surface); box-shadow: var(--shadow); }
.scrub-tip { top: -8px; transform: translate(-50%, -100%); display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 10px;
  background: #1b1b1a; color: #f5f5f4; font: 500 .75rem/1.3 var(--sans); white-space: nowrap; box-shadow: var(--shadow-lg); }   /* dark in both themes so the up/down colors read */
.scrub-tip b { font: 700 .95rem/1.2 var(--mono); }
.scrub-tip .dl-up { color: var(--up); } .scrub-tip .dl-down { color: var(--down); }
.spark { overflow: visible; }

/* === crawl page === */
.crawl-meter { height: 10px; margin: 18px 0 4px; border-radius: 999px; background: var(--line); overflow: hidden; max-width: 560px; }
.crawl-meter span { display: block; height: 100%; background: var(--sun); border-radius: 999px; }
.crawl-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.crawl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 6px 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.crawl-card { display: flex; gap: 12px; align-items: center; min-width: 0; }
.crawl-card img { border-radius: 4px; object-fit: cover; flex: none; }
.crawl-card b { display: block; } .crawl-card em { font-style: normal; color: var(--ink-3); font-size: .8rem; }
.crawl-state { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tag-found { border-color: #1f6b3a; color: #1f6b3a; } [data-theme="dark"] .tag-found { border-color: #6fd08f; color: #6fd08f; }
.tag-run { border-color: var(--sun); color: var(--sun-text); }
.crawl-src { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; }
@media (max-width: 700px) { .crawl-row { grid-template-columns: 1fr; } .crawl-state { justify-content: flex-start; } }

/* === depth: the big numbers glow, panels lift (2026-10-15 palette refresh) === */

.ps { background: var(--band-fill); border-color: var(--band-line); }
/* A box that takes you somewhere: the arrow says so, and it lifts on hover (never hue alone). */
a.ps, a.number { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.ps:hover, a.ps:focus-visible { border-color: var(--band-ink-2); transform: translateY(-1px); }
a.number:hover, a.number:focus-visible { border-color: var(--ink-3); transform: translateY(-1px); }
.ps .go, .number .go { display: inline; margin: 0; color: var(--link-inv); font-weight: 700; }
.number .go { color: var(--link); }
@media (prefers-reduced-motion: reduce) { a.ps, a.number { transition: none; } a.ps:hover, a.number:hover { transform: none; } }
.ps-v { color: var(--band-ink); }
.panel, .hold, .spark, .ticker { border-color: var(--line); }
.spark { background: linear-gradient(180deg, var(--surface), var(--paper-2)); }
.wall-card img { box-shadow: var(--shadow); }
.hold-table th { background: var(--paper-2); }
.illus { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--sun); color: var(--sun-text);
  font: 700 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.band .illus { color: var(--sun-text); border-color: var(--sun-text); }
.illus-note { margin: 10px 0 0; color: var(--band-ink-2); font-size: .85rem; }
.illus-note .illus { margin: 0 6px 0 0; }
.arb-flag { border-color: #1f6b3a; box-shadow: 0 0 0 1px #1f6b3a inset; }
[data-theme="dark"] .arb-flag { border-color: #6fd08f; box-shadow: 0 0 0 1px #6fd08f inset; }

/* === the range across sources (#355) === */
.port-range { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--band-line); }
.pr-label { font: 700 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--band-ink-3); }
.pr-vals { font-size: 1.15rem; color: var(--band-ink); } .pr-vals b { font-family: var(--serif); font-weight: 600; }
.pr-note { font-size: .8rem; color: var(--band-ink-2); }

/* === splits by type (#337) === */
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.split { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--sun);
  border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); }
.split:hover { text-decoration: none; border-color: var(--sun); }
.split-name { font-weight: 700; } .split-name em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: .8rem; margin-left: 6px; }
.split-val { font-family: var(--serif); font-size: 1.5rem; color: var(--sun-text); line-height: 1.1; }
.split svg { width: 100%; height: 50px; }
.split-chg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; }
.split-share { font-size: .76rem; color: var(--ink-3); }

/* Prices left out of a card's range, each with why (#324). Muted, never hue alone: the reason is in words. */
.est-out { margin-top: 10px; }
.est-out summary { cursor: pointer; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.est-out .est-hits .mono { color: var(--ink-2); font-weight: 600; text-decoration: line-through; }
.est-why { font-family: var(--mono); font-size: 11px; white-space: nowrap; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }

/* Movement page (#326): window tabs are links; the chosen one is outlined, never told by color alone. */
.mv-windows .port-win { text-decoration: none; color: inherit; border: 2px solid transparent; border-radius: 10px; padding: 4px 8px; }
.mv-windows .mv-on { border-color: var(--sun); }
.mv-windows .mv-on .dl-label { text-decoration: underline; text-underline-offset: 3px; }
.mv-rematch { font-family: var(--mono); font-size: 10px; text-decoration: none; border: 1px solid currentColor; border-radius: 5px; padding: 0 4px; cursor: help; }
.mv-span { margin: 18px 0 6px; }
.movers-list a.mv-name { color: inherit; text-decoration: none; }
.movers-list a.mv-name:hover { text-decoration: underline; }
.mv-set { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 6px 0 14px; }

/* A card with no photo, drawn as itself (_macros.blank_tile): a slab shows its grading label like the real one. */
.tile-blank { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 12px 10px;
  text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.tile-slab { justify-content: flex-start; border-width: 2px; padding: 8px; }
.tb-label { display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 6px; background: var(--sun-soft);
  border: 1px solid var(--sun); font-family: var(--mono); font-size: 10.5px; color: var(--sun-text); line-height: 1.25; }
.tb-label b { font-size: 13px; letter-spacing: .04em; }
.tb-name { font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.15; margin-top: 10px; }
.tb-set { font-size: .72rem; color: var(--ink-2); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tb-note { margin-top: 6px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: .03em; }
.wall-copy { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.oc-thumb { width: 28px; height: 40px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; border: 1px solid var(--line); }
.hold-export { font-size: .82rem; padding: 6px 12px; margin-left: auto; }

/* Watch list (#340). */
.watch-form { margin: 22px 0; }
.watch-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; margin: 10px 0 14px; }
.watch-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--ink-2); }
.watch-fields input, .watch-fields select { font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.watch-item { margin: 0 0 14px; }
.watch-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; margin-bottom: 10px; }
.watch-target { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.watch-remove { margin: 0; }
.watch-remove .btn-ghost { font-size: .78rem; padding: 4px 10px; }
.more-player { margin: 22px 0 4px; font-size: 1.1rem; }
.more-of .wall-meta b { font-size: .8rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Full rows, never a hanging box (2026-10-16): four panels sit 2 x 2, and the on-chain wall fills whole rows. */
.breakdowns-3 { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.wall-fill { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
@media (max-width: 900px) { .wall-fill { grid-template-columns: repeat(var(--nt, 3), minmax(0, 1fr)); } }
@media (max-width: 720px) { .breakdowns-3 { grid-template-columns: 1fr; } .wall-fill { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The facts beside a card's value (2026-10-16): a grid of what we know, in full rows. */
.card-facts-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cfact { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cfact-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.cfact-value { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.15; }
.cfact-value a { color: var(--sun-text); }
.cfact-sub { font-size: .78rem; color: var(--ink-2); }
.cfact-bar { position: relative; display: block; height: 6px; margin: 4px 0 2px; border-radius: 3px; background: var(--line); }
.cfact-bar span { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
@media (max-width: 600px) { .card-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-facts-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }   /* 3 facts on a phone: 2 + 1 wide, never one stranded */
.sold-rows .copies-head, .sold-rows .copy-row { grid-template-columns: 1.2fr 1fr 1fr auto; cursor: default; }


/* Your style (#415, #416): favorites with PC marks; PC reads by its ★ and the filled pill, never by hue alone. */
.style-panel { margin: 28px 0; }
.style-line { font-size: 1.15rem; margin: 6px 0 14px; color: var(--ink); }
.style-src { display: block; margin-top: 4px; font-size: .78rem; color: var(--ink-3); }
.style-panel h3 { margin-top: 20px; }
.style-panel h3 small, .style-panel h2 small { font-weight: 400; }
.fav-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fav-pc { border-color: var(--sun); }
.fav-name { font-weight: 700; color: var(--ink); flex: 1 1 100%; }
.fav-sub { font-size: .8rem; color: var(--ink-2); flex: 1 1 auto; }
.fav form, .inline-form { display: inline; margin: 0; }
.fav .pill { cursor: pointer; padding: 3px 10px; }
.fav-add { display: flex; gap: 8px; max-width: 420px; margin: 0 0 14px; }
.fav-add input { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--sun-text); cursor: pointer; text-decoration: underline; }
.style-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.style-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.style-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.style-facts small { font-weight: 400; color: var(--ink-2); }

/* Next steps (#413): a short list of things worth doing, each to its card. */
.next-steps { margin: 22px 0; }
.steps-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.next-step { display: grid; grid-template-columns: 1.6rem 1fr; gap: 2px 8px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.next-step-glyph { grid-row: span 2; }
.next-step a { color: var(--ink); }
.next-step-sub { font-size: .85rem; color: var(--ink-2); }

/* The hero says how far the price search has got (a bar and the count, never color alone) and that it's an estimate. */
.cover-bar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; max-width: 360px; margin-bottom: 8px; }
.cover-bar span { display: block; height: 100%; background: var(--sun); }
.port-first { margin-top: 8px; }
.paid-form { display: flex; gap: 6px; margin-top: 4px; }
.paid-form input { width: 9rem; font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }

/* News on your players (#417). */
.hold-news { margin: 22px 0; }
.news-list { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 10px; }
.news-list a { color: var(--ink); }
.news-sub { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
/* Ideas for your next card (#418) */
.idea-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.idea { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.idea img, .idea-noimg { flex: none; width: 64px; height: 90px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.idea-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: .9rem; }
.idea-sub { color: var(--ink-3); font-size: .8rem; }
.idea-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; margin-top: auto; }
.idea-stretch { border-style: dashed; border-color: var(--ink-3); }
.idea-tag { font: 700 .7rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

.ideas-like { margin: 22px 0 10px; font-size: 1.05rem; }   /* 'Cards like yours' (#418, 2026-10-19) */
.ideas-like small { font-weight: 400; color: var(--ink-3); font-size: .85rem; margin-left: 6px; }
.fav-trend { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }   /* #412: glyph + words, never hue alone */
.fav-trend small { font-weight: 400; color: var(--ink-3); }
