/* Tidewatcher — "Modern Tool / Builder SaaS" style, Linear recipe
   (.claude/skills/web-design-engineer/references/style-recipes/linear.md)
   Warm near-black, hairline borders everywhere, one accent (#5E6AD2) on <5% of pixels.
   Green/red are reserved for meaning: price up/down and safety. */

:root {
  /* ground + surfaces */
  --bg: #08090a;
  --surface-1: #101114;
  --panel: #16171c;
  --panel-2: #1e1f25;
  --surface-3: #26272e;
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.1);
  --border: var(--hairline);

  /* text */
  --text: #f7f8f8;
  --text-2: #9ca3af;
  --muted: #6b7280;

  /* the one accent */
  --accent: #5e6ad2;
  --accent-hover: #6e7ae0;
  --accent-soft: rgba(94, 106, 210, 0.14);
  --accent-text: #a78bfa; /* inline code / cashtags, per recipe */
  --accent-ink: #ffffff;

  /* semantic only */
  --up: #4cc38a;
  --down: #eb5757;
  --warn: #e2a336;
  --link: var(--text);

  /* type */
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* shape + motion */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --radius: var(--r-md);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 150ms;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { /* controlled ambient light at the top edge, < 8% opacity */
  content: ""; position: fixed; inset: 0 0 auto 0; height: 320px; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(94, 106, 210, 0.07), transparent 70%);
}
a { color: inherit; text-decoration: none; }
img { display: block; }
p, li, h1, h2 { text-wrap: pretty; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.95em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.up { color: var(--up); }
.down { color: var(--down); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- shell ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { min-width: 0; position: sticky; top: 0; height: 100vh; padding: 14px 10px; display: flex; flex-direction: column; border-right: 1px solid var(--hairline); background: var(--surface-1); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font: 600 15px var(--display); letter-spacing: -0.02em; }
.brand b { font-weight: 600; color: var(--text-2); }
.logo { width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--accent); display: grid; place-items: center; color: #fff; font: 700 12px var(--display); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.nav-label { padding: 14px 10px 6px; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
#nav { display: flex; flex-direction: column; gap: 1px; }
#nav a { display: flex; gap: 10px; align-items: center; height: 30px; padding: 0 8px 0 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: 13px; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
#nav a svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
#nav a .kbd { margin-left: auto; opacity: 0; transition: opacity var(--fast) var(--ease); }
#nav:hover a .kbd { opacity: 1; }
#nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
#nav a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
#nav a.active svg { color: var(--accent); opacity: 1; }
.kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; border: 1px solid var(--hairline-strong); background: var(--panel); color: var(--muted); font: 500 10.5px var(--mono); line-height: 1; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--hairline); }
.sidebar-foot p { margin: 8px 0 0; line-height: 1.5; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-right: 6px; box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.15); }

main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 0; overflow-x: auto; white-space: nowrap; height: 40px; align-items: stretch; border-bottom: 1px solid var(--hairline); background: rgba(8, 9, 10, 0.82); backdrop-filter: blur(12px) saturate(140%); scrollbar-width: none; }
.topbar::-webkit-scrollbar { display: none; }
.tick { display: inline-flex; gap: 8px; align-items: center; padding: 0 16px; font-size: 12.5px; border-right: 1px solid var(--hairline); }
.tick b { font-weight: 500; color: var(--text-2); }
.tick .mono { color: var(--text); }
.view { padding: 28px 32px 72px; max-width: 1480px; }

/* ---------- page heads ---------- */
h1 { font: 600 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
h2 { font: 600 13.5px/1.3 var(--sans); letter-spacing: -0.005em; margin: 0; color: var(--text); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--text-2); max-width: 760px; font-size: 14px; }
.page-head p b { color: var(--text); font-weight: 500; }

/* ---------- grid ---------- */
.grid { display: grid; gap: 12px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1200px) { .cols-4, .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 6; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--hairline); overflow: visible; }
  .brand { padding: 0 6px 0 0; }
  .brand > span:last-child, .nav-label, .sidebar-foot, #nav a .kbd { display: none; }
  #nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
  #nav a { white-space: nowrap; }
  .topbar { top: 47px; }
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .view { padding: 20px 16px 56px; }
}

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-md); min-width: 0; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); min-height: 44px; }
.panel-head .muted, .panel-head a.muted { font-size: 12px; }
.panel-head a.muted:hover { color: var(--text); }
.panel-body { padding: 14px 16px 16px; }
.panel-body.flush { padding: 0; }
.stat { padding: 16px; }
.stat .label { color: var(--text-2); font-size: 12px; font-weight: 500; }
.stat .value { font: 600 26px/1.15 var(--display); letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .value.mono { font-family: var(--display); font-size: 26px; }
.stat .sub { font-size: 12px; margin-top: 4px; color: var(--text-2); }
.stat-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.coin-stat { display: flex; align-items: center; gap: 8px; }
.coin-stat img { width: 18px; height: 18px; border-radius: 50%; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: right; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 9px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
td { text-align: right; padding: 9px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; font: 400 12.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
tr td { transition: background var(--fast) var(--ease); }
tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
tr.clickable { cursor: pointer; }
.tok { display: flex; align-items: center; gap: 10px; font-family: var(--sans); }
.tok img, .tok .ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; box-shadow: 0 0 0 1px var(--hairline); }
.tok .ph { display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.tok b { font-weight: 500; font-size: 13px; }
.tok .nm { color: var(--muted); font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: var(--r-sm); font: 500 11px var(--mono); background: var(--panel-2); border: 1px solid var(--hairline); color: var(--text-2); }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.chip.pick::before { display: none; }
.heat { display: inline-flex; align-items: center; gap: 8px; }
.heat-bar { width: 48px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.heat-bar i { display: block; height: 100%; border-radius: 2px; }
.heat b { font-weight: 500; min-width: 22px; text-align: right; }

/* ---------- controls ---------- */
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text-2); height: 26px; padding: 0 10px; border-radius: 4px; font: 500 12.5px var(--sans); cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--hairline-strong); }
input[type="text"], input[type="search"], input[type="number"], input[type="password"], select {
  height: 32px; background: var(--surface-1); border: 1px solid var(--hairline-strong); color: var(--text); padding: 0 10px; border-radius: var(--r-sm);
  font: 400 13px var(--sans); outline: none; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
input::placeholder { color: var(--muted); }
input:hover, select:hover { border-color: rgba(255, 255, 255, 0.16); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 14px, calc(100% - 10px) 14px; background-size: 4px 4px; background-repeat: no-repeat; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; border: 1px solid var(--hairline-strong); background: var(--panel-2); color: var(--text); padding: 0 12px; border-radius: var(--r-sm); font: 500 13px var(--sans); cursor: pointer; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.on-btn { color: var(--up); }
.btn.on-btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; width: 24px; height: 24px; border-radius: 4px; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

/* ---------- X feed ---------- */
.tweet { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.tweet:last-child { border-bottom: 0; }
.tweet .av { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); box-shadow: 0 0 0 1px var(--hairline); }
.tweet .who { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.tweet .who b { font-weight: 500; }
.tweet .who a:hover { color: var(--text); }
.tweet .txt { margin-top: 3px; white-space: pre-wrap; word-break: break-word; color: #d9dce1; font-size: 13.5px; }
.cash, .tweet .txt .cash { font-family: var(--mono); font-size: 0.92em; color: var(--accent-text); background: var(--panel-2); padding: 0 4px; border-radius: 4px; }
.tweet .media { margin-top: 10px; max-height: 280px; max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--hairline); object-fit: cover; }
.tweet .meta { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); font: 400 11.5px var(--mono); }
.tweet .meta a:hover { color: var(--text); }
.feed { max-height: 78vh; overflow-y: auto; }

.follow-group { margin-bottom: 16px; }
.follow-group h3 { font-size: 11.5px; color: var(--muted); margin: 0 0 4px; font-weight: 500; }
.follow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.follow:last-child { border-bottom: 0; }
.follow b { font-weight: 500; font-size: 13px; }
.follow .why { font-size: 12px; color: var(--muted); }
.follow a:hover b { color: var(--accent-text); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--surface-3); flex: none; }
.dot.ok { background: var(--up); } .dot.err { background: var(--down); padding: 0; } /* .err is also the error-message class */

.ticker-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ticker-pill { display: inline-flex; gap: 8px; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-sm); background: var(--surface-1); border: 1px solid var(--hairline-strong); font: 400 12px var(--mono); transition: border-color var(--fast) var(--ease); }
.ticker-pill:hover { border-color: var(--accent); }
.ticker-pill b { color: var(--text); font-weight: 600; }

/* ---------- memes ---------- */
.meme-grid { columns: 4 240px; column-gap: 12px; }
.meme { break-inside: avoid; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; display: block; transition: border-color var(--fast) var(--ease); }
.meme:hover { border-color: var(--hairline-strong); }
.meme img { width: 100%; height: auto; background: var(--panel-2); }
.meme .cap { padding: 10px 12px 12px; }
.meme .cap .t { font-weight: 500; font-size: 13px; }
.meme .cap .s { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font: 400 11.5px var(--mono); }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.templates a { background: var(--surface-1); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--hairline); transition: border-color var(--fast) var(--ease); }
.templates a:hover { border-color: var(--hairline-strong); }
.templates img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.templates span { display: block; padding: 6px 8px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- predictions ---------- */
.pm { padding: 14px 16px; border-bottom: 1px solid var(--hairline); transition: background var(--fast) var(--ease); }
.pm:last-child { border-bottom: 0; }
.pm:hover { background: rgba(255, 255, 255, 0.02); }
.pm-head { display: flex; gap: 12px; align-items: flex-start; }
.pm-head img { width: 32px; height: 32px; border-radius: var(--r-sm); object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--hairline); }
.pm-head .t { font-weight: 500; font-size: 13.5px; }
.pm-head .small { font-family: var(--mono); font-size: 11.5px; }
.pm-out { display: grid; grid-template-columns: 1fr 44px; gap: 4px 12px; margin-top: 10px; font-size: 12.5px; align-items: center; }
.pm-out b { text-align: right; font-weight: 500; }
.prob { position: relative; height: 24px; border-radius: var(--r-sm); background: var(--surface-1); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hairline); }
.prob i { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); border-right: 1px solid var(--accent); }
.prob span { position: relative; padding: 0 9px; line-height: 24px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; color: var(--text); }

/* ---------- pump.fun ---------- */
.pump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pump { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px; display: flex; gap: 12px; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.pump:hover { border-color: var(--hairline-strong); background: var(--panel-2); }
.pump img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--panel-2); flex: none; }
.pump .n { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pump .live { color: var(--down); font: 600 10.5px var(--mono); letter-spacing: 0.04em; }

/* ---------- misc ---------- */
.fng { display: flex; align-items: center; gap: 14px; }
.gauge { width: 96px; flex: none; }
.notice { border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 12px 14px; color: var(--text-2); font-size: 13px; background: var(--surface-1); }
.notice b { color: var(--text); font-weight: 500; }
.notice.ok { border-color: rgba(76, 195, 138, 0.35); color: var(--up); }
.notice.bad { border-color: rgba(235, 87, 87, 0.4); color: var(--down); }
.err { color: var(--down); font-size: 12.5px; padding: 12px 16px; }
.loading { color: var(--muted); padding: 28px 16px; text-align: center; font-size: 13px; }
.skeleton { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--panel-2), var(--surface-3), var(--panel-2)); background-size: 200% 100%; animation: sh 1.6s linear infinite; margin: 12px 16px; }
@keyframes sh { to { background-position: -200% 0; } }
.updated { font: 400 11.5px var(--mono); color: var(--muted); }
.disclaimer { margin-top: 28px; font-size: 12px; color: var(--muted); max-width: 760px; }

/* ---------- forms (alerts) ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.field small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.field small a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--hairline-strong); }
.field input, .field select { width: 100%; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.check b { color: var(--text); font-weight: 500; }
.check input { width: 14px; height: 14px; accent-color: var(--accent); margin: 0; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.divider { height: 1px; background: var(--hairline); margin: 4px 0; }
.chip.pick { cursor: pointer; margin: 8px 6px 0 0; height: 24px; }
.chip.pick:hover { color: var(--text); border-color: var(--accent); }
.alert-item { padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.alert-item:last-child { border-bottom: 0; }
.alert-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.alert-top b { font-weight: 500; }
.alert-top a:hover { color: var(--accent-text); }
.alert-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; margin-top: 2px; }
#al-preview-out .alert-item { padding-left: 0; padding-right: 0; }

/* ---------- status pills (rug check) ---------- */
.risk { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font: 500 11.5px var(--sans); border: 1px solid var(--hairline-strong); background: var(--surface-1); color: var(--text-2); white-space: nowrap; transition: border-color var(--fast) var(--ease); }
.risk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.risk:hover { border-color: rgba(255, 255, 255, 0.2); }
.risk.danger { color: #f3a0a0; } .risk.danger::before { background: var(--down); }
.risk.caution { color: #ecc684; } .risk.caution::before { background: var(--warn); }
.risk.lower { color: #9fdcbd; } .risk.lower::before { background: var(--up); }
.risk.pending::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.sev { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; flex: none; }
.sev.critical, .sev.danger { background: var(--down); }
.sev.warning, .sev.caution { background: var(--warn); }
.sev.good, .sev.lower { background: var(--up); }

.verdict { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--hairline); background: var(--panel); box-shadow: var(--shadow); }
.verdict .v-label { display: flex; align-items: center; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.verdict .v-label .sev { width: 10px; height: 10px; margin-right: 10px; }
.verdict .small { color: var(--text-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verdict .mono { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.verdict.danger .v-label { color: #f3a0a0; }
.verdict.caution .v-label { color: #ecc684; }
.verdict.lower .v-label { color: #9fdcbd; }
.flag-col { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 0; box-shadow: var(--shadow); }
.flag-col h3 { display: flex; align-items: center; margin: 0; padding: 12px 16px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--hairline); }
.flag-col h3 .muted { margin-left: auto; font: 400 12px var(--mono); }
.flag-col .flag, .flag-col > .muted { padding: 9px 16px; border-bottom: 1px solid var(--hairline); font-size: 13px; color: #d9dce1; }
.flag-col .flag:last-child, .flag-col > .muted { border-bottom: 0; }
.flag-col > .muted { color: var(--muted); }
/* Hairline dividers drawn per cell, so a part-filled last row stays clean. */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); overflow: hidden; border-radius: 0 0 var(--r-md) var(--r-md); margin: 0 -1px -1px 0; }
.facts > div { padding: 11px 16px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.facts b { font: 500 13px var(--mono); }
.checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.checklist > div > b { display: flex; align-items: center; font-weight: 500; font-size: 13px; }
@media (max-width: 1000px) { .checklist { grid-template-columns: 1fr; } }
.checklist ul, ul.tight { margin: 10px 0 0; padding-left: 16px; }
.checklist li, ul.tight li { margin-bottom: 8px; color: var(--text-2); font-size: 13px; }
.checklist li b, ul.tight li b { color: var(--text); font-weight: 500; }
.checklist li::marker, ul.tight li::marker { color: var(--muted); }
.calc-out { margin-top: 16px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 1100px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-grid > div { background: var(--surface-1); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.calc-grid b { font: 600 20px var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }

/* ---------- plans: upgrade prompts, account chip, locked tabs ---------- */
.upgrade { border-style: dashed; border-color: var(--hairline-strong); background: var(--surface-1); box-shadow: none; }
.upgrade-in { display: flex; align-items: center; gap: 14px; padding: 18px 20px; flex-wrap: wrap; }
.upgrade-in > div { flex: 1; min-width: 200px; }
.upgrade-in b { font-weight: 600; font-size: 14px; }
.upgrade-in p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.upgrade .lock { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.upgrade .lock svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; }
.panel-body .upgrade { margin: 0; }
.pro-chip { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 4px; font: 600 10.5px var(--mono); color: var(--accent-text); background: var(--accent-soft); }
.pro-note { font-size: 12.5px; color: var(--text-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-1); border: 1px solid var(--hairline); }
.pro-note a, .notice a { color: var(--text); }
input:disabled { opacity: 0.55; cursor: not-allowed; }
.acct-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 -10px 10px; border-radius: var(--r-sm); transition: background var(--fast) var(--ease); min-width: 0; }
.acct-chip:hover { background: rgba(255, 255, 255, 0.04); }
.plan-tag { flex: none; height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); font: 600 11px var(--sans); }
.acct-email { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nav a.locked { color: var(--muted); }
#nav a.locked::after { content: ""; width: 10px; height: 10px; margin-left: 6px; flex: none; opacity: 0.7;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 015 0v2' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 015 0v2' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
#nav a.locked .kbd { margin-left: 6px; }

/* wave logo mark (Tidewatcher) */
.logo svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; display: block; }
.msg-head .logo svg { width: 11px; height: 11px; }
