/*
 * DISCO dashboard. Builds on the landing page's styles.css (fonts, ink,
 * buttons). Same principles as the panel: black and white chrome, colour only
 * on data (price moves, risk levels) and always paired with a sign or icon,
 * generous rounding, skeletons while loading, 44px tap targets.
 */

:root {
  --surface: #f6f6f4;
  --line: #e7e7e4;
  --muted: #6b6b6b;
  --up: #157a3c;
  --down: #b3261e;
  --danger: #a8201a;
  --danger-bg: #fdecea;
  --caution: #7a4f00;
  --caution-bg: #fff4d6;
  --radius-card: 24px;
}

.dash {
  min-height: 100vh;
  background: var(--bg);
}

/* ---------- Frame ---------- */

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.dash-mark img {
  display: block;
  width: 104px;
  height: auto;
}

.dash-account {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.dash-shell {
  min-width: 0;
}

.dash-main {
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px) 80px;
  outline: none;
}

.dash-note {
  color: var(--muted);
}

/* ---------- Shared pieces ---------- */

.dash-h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}

.dash-lead {
  max-width: 42rem;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.card-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.change.is-up {
  color: var(--up);
}

.change.is-down {
  color: var(--down);
}

.change.is-flat {
  color: var(--muted);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.coin-logo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface);
  object-fit: cover;
}

.coin-logo-letter {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--ink-soft);
}

/* Shimmering placeholders while data loads. */
.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--surface) 25%, #ececea 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

.error-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.error-box p {
  margin: 0 0 12px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pill-btn.is-primary {
  background: var(--ink);
  color: var(--bg);
}

.pill-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

/* ---------- Verified list ---------- */

.how {
  max-width: 46rem;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.how summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.how summary::-webkit-details-marker {
  display: none;
}

.how summary::after {
  content: "+";
  font-size: 20px;
}

.how[open] summary::after {
  content: "\2212";
}

.how-body {
  padding: 0 16px 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.how-body ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.how-body p {
  margin: 8px 0 0;
  font-size: 14px;
}

.list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
}

.search {
  flex: 1 1 240px;
  max-width: 360px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.search:focus {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.list-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.coin-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.coin-row,
.coin-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 2.2fr) 1.1fr 0.9fr 1.1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.coin-head {
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coin-head span:nth-child(n + 3),
.coin-row .num {
  text-align: right;
}

.coin-row {
  min-height: 64px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.coin-row:hover,
.coin-row:focus-visible {
  background: var(--surface);
}

.coin-row:focus-visible {
  outline-offset: -3px;
}

.coin-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coin-symbol {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coin-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.num {
  font-weight: 700;
}

/* The price cell carries its 24h move only on phones, where the 24h column is hidden. */
.num-stack .phone-only {
  display: none;
}

.empty {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Coin page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -8px 0 8px;
  font-weight: 800;
}

.coin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.coin-hero-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.coin-hero .coin-logo {
  width: 56px;
  height: 56px;
}

.coin-hero-text {
  min-width: 0;
}

.coin-hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 8px;
}

.coin-hero-title h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.coin-hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--surface);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 24px 0 16px;
}

.price {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.price-row .change {
  font-size: 18px;
}

.price-row small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.coin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.coin-col {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* Chart */

.range {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}

.range button {
  min-width: 52px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.range button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.range button:disabled {
  cursor: default;
  opacity: 0.4;
}

.range button[data-measure] {
  padding: 0 16px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.chart {
  position: relative;
  height: 280px;
  transition: opacity 160ms ease;
}

.chart.is-loading {
  opacity: 0.45;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: pan-y;
}

.chart:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
  border-radius: 8px;
}

.chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart .axis-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart .line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart .area {
  fill: var(--ink);
  opacity: 0.06;
}

.chart .cross {
  stroke: var(--ink-soft);
  stroke-width: 1;
}

.chart .dot {
  fill: var(--ink);
  stroke: var(--bg);
  stroke-width: 2;
}

.chart-tip {
  position: absolute;
  top: 0;
  z-index: 2;
  padding: 8px 8px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
  white-space: nowrap;
}

.chart-tip strong {
  display: block;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.chart-tip span {
  color: #cfcfcf;
}

.chart-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  text-align: center;
}

.chart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
}

.stats div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.stats div {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.stats dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* DISCO check */

.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.check-badge.is-caution {
  background: var(--caution-bg);
  color: var(--caution);
}

.check-badge.is-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.check-badge.is-no_red_flags {
  border: 1px solid var(--line);
}

.check-headline {
  margin: 12px 0 0;
  line-height: 1.5;
}

.check-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.check-meta a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}

/* Criteria */

.criteria {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.criteria svg {
  margin-top: 2px;
}

.criteria small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Trade dialog ---------- */

.trade {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.trade::backdrop {
  background: rgba(11, 11, 11, 0.45);
}

.trade-inner {
  padding: 24px;
}

.trade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trade-head h2 {
  margin: 0;
  font-size: 22px;
}

.trade-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.trade-lead {
  margin: 8px 0 16px;
  color: var(--ink-soft);
}

.trade-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trade-option {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

a.trade-option:hover,
a.trade-option:focus-visible {
  border-color: var(--ink);
}

.trade-option img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.trade-option strong {
  display: block;
  font-size: 17px;
}

.trade-option span {
  color: var(--muted);
  font-size: 14px;
}

.trade-option.is-off {
  opacity: 0.5;
}

.trade-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {

  .coin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .coin-row,
  .coin-head {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 12px 16px;
  }

  /* Phones keep logo, name, price and its move; the rest is on the coin's page. */
  .coin-head span:nth-child(n + 4),
  .coin-row > :nth-child(n + 4) {
    display: none;
  }

  .coin-row .num-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .num-stack .phone-only {
    display: inline-flex;
  }

  .chart {
    height: 220px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats div:nth-last-child(3) {
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Previews (example data) ---------- */

.preview-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px dashed #c9c9c5;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.check-badge.is-small {
  gap: 8px;
  padding: 4px 8px;
  font-size: 13px;
}

.site-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.site-tag img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.callout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 42rem;
  margin-top: 20px;
  padding: 16px 16px;
  border-radius: 14px;
  background: var(--caution-bg);
  color: var(--caution);
}

.callout svg {
  flex: none;
  margin-top: 2px;
}

.callout p {
  margin: 0;
  font-weight: 700;
}

/* Check a coin */

.works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.works-with .site-tag {
  color: var(--ink);
}

.check-result {
  max-width: 820px;
  padding: 24px;
}

.check-result-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.check-result-head .coin-logo {
  width: 44px;
  height: 44px;
}

.check-result-id {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.check-result-symbol {
  font-size: 22px;
  font-weight: 800;
}

.check-result-sub {
  color: var(--muted);
  font-size: 14px;
}

.check-result-verdict {
  margin: 20px 0 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.check-result-verdict .check-headline {
  font-size: 19px;
}

.check-groups {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.check-group h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.check-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-group li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.check-group li + li {
  border-top: 1px solid var(--line);
}

.check-group li > svg {
  flex: none;
  margin-top: 2px;
}

.check-group li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-group li span {
  color: var(--ink-soft);
  font-size: 15px;
}

.check-group li.is-danger > svg {
  color: var(--danger);
}

.check-group li.is-caution > svg {
  color: var(--caution);
}

.check-group li.is-unknown > svg {
  color: var(--muted);
}

/* My checks and Moving now */

.star-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #b5b5b2;
  cursor: pointer;
}

.star-btn[aria-pressed="true"] {
  color: var(--ink);
}

.star-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

/* Track record */

.bars-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.bars-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.key.is-flagged,
.bar.is-flagged {
  background: var(--ink);
}

.key.is-fine,
.bar.is-fine {
  background: #c9c9c5;
}

.bars-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.bars-row + .bars-row {
  border-top: 1px solid var(--line);
}

.bars-name {
  font-weight: 800;
}

.bars-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bars end square on the label side and round at the data end. */
.bar {
  height: 12px;
  border-radius: 0 4px 4px 0;
}

.bar-line b {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {

  .check-result {
    padding: 16px;
  }

  .check-result-head .pill-btn {
    display: none;
  }

  /* The verdict moves under the coin; the move stays on the right. */

  .bars-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- Board: columns side by side ---------- */
/*
 * Same language as the landing page: Nunito 800 headings, black pills,
 * 24px cards with a hairline and a soft shadow, round black badges, and the
 * warm off-white surface behind the cards.
 */

.dash {
  background: var(--surface);
}

/* The top bar: wordmark, Check a coin, account. */
.dash-top {
  display: grid;
  grid-template-columns: auto minmax(0, 560px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(16px, 2vw, 24px);
  border-bottom: 0;
}

.dash-account {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.top-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 4px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.top-check:focus-within {
  border-color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.1);
}

.top-check svg {
  flex: none;
}

.top-check input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.top-check button {
  flex: none;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease;
}

.top-check button:hover {
  transform: translateY(-1px);
}

/* The board fills the screen below the top bar; each column scrolls on its own. */
.dash.is-board {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.is-board .dash-shell {
  flex: 1;
  min-height: 0;
}

.is-board .dash-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.dash-page {
  max-width: 1160px;
  margin: 0 auto;
}

.dash-page .preview-note {
  display: flex;
  width: fit-content;
}

.dash-page .check-result {
  margin-top: 24px;
}

.board {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 1fr);
  gap: 16px;
  padding: 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
  overflow-x: auto;
}

.board-switch {
  display: none;
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(0, 0, 0, 0.04);
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* The landing page's round black badge, holding the column's icon. */
.panel-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

.panel-preview {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* One row of controls under every title, the same height in every column,
   so the lists all start on the same line. */
.panel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  min-width: 0;
}

.panel-controls > .chips {
  flex: 1;
  min-width: 0;
}

.panel-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.panel-chips .chip {
  flex: none;
  min-height: 36px;
  padding: 0 16px;
  border-color: transparent;
  background: var(--surface);
  font-size: 14px;
  transition: background-color 160ms ease;
}

.panel-chips .chip:hover {
  background: var(--line);
}

.panel-chips .chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
}

.panel-search {
  flex: 1;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 36px;
  min-height: 0;
  padding: 0 16px;
  border-color: transparent;
  font-size: 14px;
}

.panel-search:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  background: var(--bg);
}

.kind-select {
  flex: none;
  height: 36px;
  padding: 0 32px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
}

.kind-select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.panel-caption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.panel-body {
  flex: 1;
  min-height: 0;
  padding: 0 8px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}

.panel-note {
  margin: 16px 12px 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.panel-callout {
  max-width: none;
  margin: 8px 12px 12px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
}

.panel-callout p {
  font-weight: 700;
  line-height: 1.4;
}

.panel-meta {
  margin: 12px 12px 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-sub {
  margin: 24px 12px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-how {
  margin: 8px 12px 12px;
}

/* Rows: logo, name, numbers; a coin's check on a second line where it has one.
   Rounded tiles inside the card, divided by inset hairlines. */
.prows {
  display: flex;
  flex-direction: column;
}

.prow {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border-radius: 16px;
  transition: background-color 160ms ease;
}

.prow + .prow::before {
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  border-top: 1px solid var(--line);
  content: '';
}

.prow:hover,
.prow:hover + .prow::before,
.prow:hover::before {
  border-color: transparent;
}

.prow:hover {
  background: var(--surface);
}

.prow.has-star {
  grid-template-columns: 40px minmax(0, 1fr) auto 32px;
}

a.prow:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.prow .coin-logo {
  width: 40px;
  height: 40px;
}

.prow .coin-logo-letter {
  background: var(--surface);
  font-size: 16px;
}

.prow:hover .coin-logo-letter {
  background: var(--bg);
}

.prow-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.prow-id .coin-symbol {
  font-size: 16px;
}

.prow-id .coin-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  font-size: 13px;
}

.prow-num {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.prow-num strong {
  font-size: 16px;
  font-weight: 800;
}

.prow-num .change {
  font-size: 14px;
}

.prow-since {
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.prow-check {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2 / -1;
  align-items: center;
  gap: 4px 8px;
}

.prow-check small {
  color: var(--ink-soft);
  font-size: 13px;
}

.prow .star-btn {
  width: 32px;
  height: 32px;
}

.prow .star-btn:hover {
  background: var(--bg);
}

.site-icon {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Small headline numbers, in soft tiles like the landing page's facts. */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 12px 8px;
}

.mini-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
}

.mini-stats strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mini-stats span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.3;
}

.panel .bars {
  padding: 0 12px;
}

.panel .bars-row {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 0;
}

.panel .bar {
  height: 10px;
  border-radius: 999px;
}

.panel .bars-name {
  font-size: 15px;
}

/* Phones: the top bar's search drops to its own row, and one column shows at a time. */
@media (max-width: 760px) {
  .dash-top {
    grid-template-columns: auto auto;
    row-gap: 12px;
  }

  .dash-account {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .top-check {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 48px;
    padding-left: 16px;
  }

  .top-check button {
    height: 40px;
    padding: 0 16px;
  }

  .board-switch {
    display: flex;
    flex: none;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .board-switch button {
    flex: none;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }

  .board-switch button[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
  }

  .board {
    display: block;
    padding: 0 12px 12px;
    overflow: hidden;
  }

  .board > .panel {
    display: none;
    height: 100%;
  }

  .board[data-show="moving"] > #panel-moving,
  .board[data-show="history"] > #panel-history,
  .board[data-show="verified"] > #panel-verified,
  .board[data-show="track"] > #panel-track {
    display: flex;
  }

  .panel-head {
    padding: 16px 16px 12px;
  }
}

/* ---------- Two-line rows (Moving now, My checks) ---------- */
/*
 * Line one: the coin and its move. Line two: DISCO's verdict as a dot and a
 * few words, with one quiet fact on the right. No pills, no arrows: the
 * sign and colour of the move say enough.
 */
.prow.is-two-line {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 16px 12px;
}

/* Every part pinned to its cell: logo | coin, move | verdict. */
.prow.is-two-line > .coin-logo {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.prow.is-two-line > .prow-top {
  grid-column: 2;
  grid-row: 1;
}

.prow.is-two-line > .prow-move {
  grid-column: 3;
  grid-row: 1;
}

.prow.is-two-line > .prow-check {
  grid-row: 2;
}

.prow-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prow-top .coin-symbol {
  flex: none;
  max-width: 9em;
  font-size: 16px;
}

.prow-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prow-move {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-self: end;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.prow-move .prow-since {
  font-size: 12px;
  font-weight: 700;
}

.prow-move .change {
  font-size: 16px;
}

.prow.is-two-line .change svg,
.prow-num .change svg {
  display: none;
}

/* The verdict line has the row's full width and wraps rather than hide evidence. */
.prow.is-two-line .prow-check {
  grid-column: 2 / 4;
  min-width: 0;
}

/* What happened since sits under the move, so the first line keeps its time. */
.prow.is-two-line.has-since > .prow-move {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  grid-row: 1 / 3;
  align-self: center;
}

.prow.is-two-line.has-since > .prow-check {
  grid-column: 2;
}

.level-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.level-line i {
  flex: none;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.level-line strong {
  flex: none;
  font-weight: 800;
}

.level-line span {
  min-width: 0;
  line-height: 1.4;
}

.level-line.is-danger i {
  background: var(--danger);
}

.level-line.is-danger strong {
  color: var(--danger);
}

.level-line.is-caution i {
  background: #e0a100;
}

.level-line.is-caution strong {
  color: var(--caution);
}

/* No red flags is not a promise, so it stays neutral: a hollow dot. */
.level-line.is-no_red_flags i {
  border: 2px solid var(--muted);
  background: none;
}

.level-line.is-no_red_flags strong {
  color: var(--ink);
}

/* The star shows on hover, on focus, or once a coin is starred. */
.prow-top .star-btn {
  width: 24px;
  height: 24px;
  margin-left: -4px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.prow:hover .star-btn,
.prow-top .star-btn:focus-visible,
.prow-top .star-btn[aria-pressed="true"] {
  opacity: 1;
}

@media (hover: none) {
  .prow-top .star-btn {
    opacity: 1;
  }
}

/* ---------- Check a coin ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.check-page {
  max-width: 820px;
}

.check-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 4px 4px 4px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.check-form:focus-within {
  border-color: var(--ink);
}

.check-form > svg {
  flex: none;
}

.check-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.check-page .back-link + .check-form {
  margin-top: 16px;
}

.try-line {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.try-line a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check-slot {
  margin-top: 32px;
}

.check-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-result .coin-hero {
  margin: 0;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

a.verified-pill:hover {
  opacity: 0.85;
}

/* The copycat warning: above the verdict, in the caution colours. */
.copycat {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--caution);
  border-radius: var(--radius-card);
  background: var(--caution-bg);
  color: var(--caution);
}

.copycat > svg {
  flex: none;
  margin-top: 4px;
}

.copycat-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.copycat-body {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.copycat-link {
  display: inline-block;
  margin-top: 8px;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The first layer: the overall verdict, why, and how every check weighed in. */
.verdict-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.verdict-card.is-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.verdict-card.is-caution {
  background: var(--caution-bg);
  color: var(--caution);
}

.verdict-card.is-no_red_flags {
  border: 1px solid var(--line);
  background: var(--bg);
}

.verdict-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.verdict-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.verdict-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.verdict-lead {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.tally {
  margin-top: 16px;
}

.tally-bar {
  display: flex;
  gap: 4px;
  height: 8px;
}

.tally-bar span {
  border-radius: 999px;
}

.tally-danger {
  background: var(--danger);
}

.tally-caution {
  background: #e0a100;
}

.tally-unknown {
  background: #a3a39f;
}

.tally-pass {
  background: #c9c9c5;
}

.tally-words {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.tally-words strong {
  color: var(--ink);
}

.relative {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.draft-tag {
  flex: none;
  padding: 0 8px;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

/* The second and third layers: each finding, and the data behind it. */
.finding-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.finding-group .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.group-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.group-note {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.findings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finding {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.finding.is-danger {
  border-color: transparent;
  background: var(--danger-bg);
}

.finding.is-caution {
  border-color: transparent;
  background: var(--caution-bg);
}

.finding summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  cursor: pointer;
  list-style: none;
}

.finding summary::-webkit-details-marker {
  display: none;
}

.finding summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 16px;
}

.finding-icon {
  display: grid;
  flex: none;
}

.finding.is-danger .finding-icon {
  color: var(--danger);
}

.finding.is-caution .finding-icon {
  color: var(--caution);
}

.finding.is-unknown .finding-icon {
  color: var(--muted);
}

.finding.is-pass .finding-icon {
  color: var(--up);
}

.finding-title {
  flex: 1;
  min-width: 0;
  font-weight: 800;
}

.finding-figure {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.finding-chevron {
  display: grid;
  flex: none;
  color: var(--muted);
  transition: transform 160ms ease;
}

.finding[open] .finding-chevron {
  transform: rotate(180deg);
}

.finding-body {
  padding: 0 16px 16px 46px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.finding-body > p {
  margin: 0 0 12px;
}

.evidence-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.raw {
  margin: 0 0 12px;
  border-radius: 12px;
  background: var(--bg);
}

.finding.is-pass .raw,
.finding.is-unknown .raw {
  background: var(--surface);
}

.raw div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
}

.raw div + div {
  border-top: 1px solid var(--line);
}

.raw dt {
  min-width: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.raw dt a {
  color: var(--ink);
}

.raw dd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  text-align: right;
}

.raw-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.raw-meta {
  color: var(--muted);
  font-size: 12px;
}

.evidence-source {
  color: var(--muted);
  font-size: 13px;
}

.not-checked {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.check-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.check-foot a,
.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .check-form {
    padding-left: 16px;
  }

  .check-input {
    height: 44px;
    font-size: 16px;
  }

  .check-result .coin-hero {
    flex-wrap: wrap;
  }

  .verdict-card {
    padding: 20px;
  }

  .finding-body {
    padding-left: 16px;
  }

  .raw div {
    flex-direction: column;
    gap: 4px;
  }

  .raw dd {
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- Check a coin: the empty page ---------- */
/*
 * One task, centred: a large heading, one big search box, then quiet help.
 * The extension card comes after, as a white card with the product in it,
 * so it never competes with the search.
 */
.is-check-home .top-check {
  visibility: hidden;
}

.dash-page.is-home {
  max-width: 960px;
}

.check-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(16px, 4vh, 48px) 0 0;
  text-align: center;
}

.check-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.check-hero-lead {
  max-width: 32rem;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.5;
}

.check-hero .check-form {
  width: 100%;
  margin-top: 32px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.08);
}

.check-hero .check-input {
  height: 52px;
  font-size: 17px;
}

.check-hero .check-form .pill-btn {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.check-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 20px;
}

.check-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.check-hint-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.try-chip {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: border-color 160ms ease;
}

.try-chip:hover,
.try-chip:focus-visible {
  border-color: var(--ink);
}

.check-promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.check-promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-promises svg {
  color: var(--muted);
}

/* The extension: one slim banner, icon, two lines and a button, so the page fits one screen. */
.ext-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.ext-card-icon {
  display: block;
  width: 48px;
  height: 48px;
}

.ext-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.ext-card-text p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.ext-card-button {
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  /* On a phone the page's own box is the only search, and Chrome extensions
     don't run there, so the extension card would sell something unusable. */
  .is-check-home .top-check,
  .dash-page.is-home .ext-card {
    display: none;
  }

  .check-hero h1 {
    font-size: 34px;
  }

  .check-hero .check-form {
    padding-left: 16px;
  }

  .check-hero .check-input {
    height: 44px;
    font-size: 16px;
  }

  .check-hero .check-form .pill-btn {
    min-height: 44px;
    padding: 0 20px;
  }

  .check-promises {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
  }

}

.ext-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 15px;
  transition: border-color 160ms ease;
}

.ext-strip strong {
  color: var(--ink);
}

.ext-strip:hover {
  border-color: var(--ink);
}

.ext-strip-go {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 760px) {
  .ext-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* Track record (live): verdict bars in the verdict colours, and notes on checks that point the wrong way. */
.bar.is-level-danger {
  background: var(--danger);
}

.bar.is-level-caution {
  background: #e0a100;
}

.bar.is-level-no_red_flags {
  background: #a3a39f;
}

.bars-name small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.track-flag {
  margin: 0;
  color: var(--caution);
  font-size: 12px;
  font-weight: 700;
}

.track-score-note {
  margin-top: 0;
}


/* Moving now (live): a copycat gets a small tag beside its verdict. */
.copycat-tag {
  padding: 0 8px;
  border: 1px solid var(--caution);
  border-radius: 999px;
  background: var(--caution-bg);
  color: var(--caution);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.prow.is-two-line .prow-check {
  flex-wrap: wrap;
  gap: 4px 8px;
}


/* My checks (live): the coin name opens a fresh check; an empty list explains how to fill it. */
.prow-link {
  color: inherit;
}

.prow-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-state {
  padding: 24px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.empty-state p {
  margin: 0 0 8px;
}

.empty-state a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Accounts ---------- */

.account-slot {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.signin-btn {
  min-height: 44px;
  border-width: 2px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 4px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.account-btn:hover,
.account-btn[aria-expanded="true"] {
  border-color: var(--ink);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.account-menu-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px 12px 4px;
  overflow-wrap: anywhere;
}

.account-menu-who span {
  color: var(--muted);
  font-size: 13px;
}

.account-menu-plan {
  margin: 0 12px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.account-menu-item {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: var(--surface);
}

.account-menu-item.is-danger {
  color: var(--danger);
}

/* The sign-in dialog shares the Trade dialog's frame. */
.signin-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #ffffff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 800;
}

.google-btn:hover {
  background: #f8f9fa;
}

.signin-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.signin-or::before,
.signin-or::after {
  flex: 1;
  border-top: 1px solid var(--line);
  content: '';
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signin-input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.signin-input:focus {
  border-color: var(--ink);
  outline: none;
  background: var(--bg);
}

.signin-form .pill-btn {
  justify-content: center;
  min-height: 48px;
}

.signin-status:empty {
  display: none;
}

.signin-status,
.signin-error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.signin-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  text-align: center;
}

.signin-done h3 {
  margin: 0;
  font-size: 20px;
}

.signin-done p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.signin-small {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signin-small a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .account-label {
    display: none;
  }

  .account-btn {
    padding-right: 4px;
  }

  .signin-btn {
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
  }
}

/* ---------- Scrollbars ---------- */
/*
 * A slim rounded thumb with no arrows and no track, floating inside the
 * column cards. Faint at rest, darker while you're over a column, darkest
 * while dragging. Chrome and Safari draw these; Chrome ignores them if
 * scrollbar-width or scrollbar-color is set, so those are only for Firefox.
 */
/* The page behind the page scrollbar matches the board, so the thumb floats on it. */
html:has(.dash) {
  background: var(--surface);
}

.dash ::-webkit-scrollbar,
html:has(.dash)::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.dash ::-webkit-scrollbar-track,
.dash ::-webkit-scrollbar-corner,
html:has(.dash)::-webkit-scrollbar-track {
  background: transparent;
}

/* The 4px clear border around the thumb makes it 4px wide, away from the edge. */
.dash ::-webkit-scrollbar-thumb,
html:has(.dash)::-webkit-scrollbar-thumb {
  min-height: 40px;
  border: 4px solid transparent;
  border-radius: 999px;
  background: #d4d4d0 padding-box;
}

.dash ::-webkit-scrollbar-thumb:hover,
html:has(.dash)::-webkit-scrollbar-thumb:hover {
  background-color: #a3a39f;
}

.dash ::-webkit-scrollbar-thumb:active,
html:has(.dash)::-webkit-scrollbar-thumb:active {
  background-color: var(--muted);
}

.dash ::-webkit-scrollbar-button {
  display: none;
}

/* Inside a column, the thumb stays clear of the card's rounded corners and
   only darkens while you're over that column. */
.panel-body::-webkit-scrollbar-track {
  margin: 8px 0;
}

.panel-body::-webkit-scrollbar-thumb {
  background-color: var(--line);
}

.panel:hover .panel-body::-webkit-scrollbar-thumb {
  background-color: #c9c9c5;
}

.panel:hover .panel-body::-webkit-scrollbar-thumb:hover {
  background-color: #a3a39f;
}

@supports not selector(::-webkit-scrollbar) {
  .panel-body,
  .board {
    scrollbar-width: thin;
    scrollbar-color: #d4d4d0 transparent;
  }
}

/* ======================================================================
 * The shared look (2026-11-19): the dashboard in the landing page's
 * language. Tight, confident headings; the logo's sparkle as the one
 * accent; soft tinted tiles instead of black blobs; the panel's own
 * verdict bar and grouped checks. Later rules here win over the above.
 * ====================================================================== */

/* The wordmark, inline so its sparkle animates (see styles.css). */
.dash-mark .wordmark-svg {
  display: block;
  width: 104px;
  height: auto;
}

/* Column headers: a tinted tile for the icon, a tighter title. */
.panel-title {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.panel-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

/* Moving now's live marker: a blue dot that breathes. */
.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-blue);
}

@media (prefers-reduced-motion: no-preference) {
  .panel-live::before {
    animation: live-pulse 2s ease-out infinite;
  }
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 163, 255, 0.45);
  }

  100% {
    box-shadow: 0 0 0 8px rgba(26, 163, 255, 0);
  }
}

/* Check a coin: the landing page's headline type. */
.check-hero .eyebrow {
  margin-bottom: 16px;
}

.check-hero h1,
.coin-hero h1 {
  letter-spacing: -0.03em;
}

/* The verdict: the panel's card, with one bar segment per check. */
.verdict-card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 28px;
}

.verdict-head h2 {
  letter-spacing: -0.025em;
}

.tally {
  margin-top: 20px;
}

.tally-bar span {
  flex: 1 1 0;
}

.tally-caution {
  background: #d99a00;
}

.tally-pass {
  background: var(--pass);
}

/* Risks stay as tinted cards; the checks that passed read as one list. */
.finding-group.is-fine .findings {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.finding-group.is-fine .finding {
  border: 0;
  border-radius: 0;
}

.finding-group.is-fine .finding + .finding {
  border-top: 1px solid var(--line);
}

.finding-group.is-fine .finding-icon {
  color: #6fae22;
}

.finding.is-danger,
.finding.is-caution,
.finding-group.is-gaps .finding {
  border-radius: 20px;
}

/* "Couldn't check" also reads as one list, in the panel's grey. */
.finding-group.is-gaps .findings {
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg);
  border: 1px dashed #c9c9c5;
}

.finding-group.is-gaps .finding {
  border: 0;
  border-radius: 0;
  background: none;
}

.finding-group.is-gaps .finding + .finding {
  border-top: 1px dashed #dcdcd8;
}

/* Things rise gently into place as they arrive, as on the landing page. */
@media (prefers-reduced-motion: no-preference) {
  .panel,
  .check-result > *,
  .check-hero > *,
  .coin-page > * {
    animation: dash-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .panel:nth-child(2) { animation-delay: 60ms; }
  .panel:nth-child(3) { animation-delay: 120ms; }
  .panel:nth-child(4) { animation-delay: 180ms; }

  .check-result > :nth-child(2),
  .check-hero > :nth-child(2) { animation-delay: 50ms; }

  .check-result > :nth-child(3),
  .check-hero > :nth-child(3) { animation-delay: 100ms; }

  .check-result > :nth-child(n + 4),
  .check-hero > :nth-child(n + 4) { animation-delay: 150ms; }
}

@keyframes dash-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
