/* GMGN Coach — dark ops board */
:root {
  --bg: #0b0d10;
  --bg-elev: #12151a;
  --bg-card: #161a21;
  --bg-card-hover: #1b2129;
  --border: #262c36;
  --border-soft: #1e2430;
  --text: #e8ecf1;
  --text-muted: #8b95a5;
  --text-dim: #5c6675;
  --accent: #7cdeca;
  --accent-strong: #5eead4;
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.12);
  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.12);
  --amber: #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);
  --purple: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(94, 234, 212, 0.07), transparent),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(167, 139, 250, 0.05), transparent);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 14px 48px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}

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

.brand h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand .sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
}

.badge.readonly {
  color: var(--accent-strong);
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
}

.badge.live {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--green-dim);
}

.badge.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.updated {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.updated strong {
  color: var(--text-muted);
  font-weight: 500;
}

/* Cards / sections */
.section {
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-head .hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px;
}

.card.tight { padding: 12px; }

/* Focus wallet */
.focus-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.focus-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.focus-short {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.focus-full {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.4;
}

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

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: #3a4454;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--accent-strong);
}
.btn.copied {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--green);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: -2px;
  padding: 2px;
}

table.ops {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 560px;
}

table.ops th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.ops td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

table.ops tr:last-child td { border-bottom: none; }

table.ops tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.pair-name {
  font-weight: 650;
  color: var(--text);
}

.mint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.pct-up { color: var(--green); font-weight: 600; }
.pct-down { color: var(--red); font-weight: 600; }
.pct-flat { color: var(--text-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag.buy { background: var(--green-dim); color: var(--green); }
.tag.transfer { background: var(--amber-dim); color: var(--amber); }
.tag.noise { background: var(--red-dim); color: var(--red); }
.tag.none { background: var(--blue-dim); color: var(--blue); }

.hit-name { font-weight: 650; }
.hit-detail { color: var(--text-muted); font-size: 0.75rem; margin-top: 2px; }
.hit-notes { color: var(--text-dim); font-size: 0.7rem; margin-top: 2px; }

/* Empty state */
.empty {
  text-align: left;
  padding: 16px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.2);
}

.empty .title {
  font-weight: 650;
  font-size: 0.9rem;
  margin: 0 0 6px;
  color: var(--text);
}

.empty p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.empty .strong-signal {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(94, 234, 212, 0.06);
  border: 1px solid rgba(94, 234, 212, 0.2);
  font-size: 0.78rem;
  color: var(--accent-strong);
}

/* Patterns */
.pattern-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pattern-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pattern-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(167, 139, 250, 0.12);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.pattern-body {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
  /* editable look */
  border: 1px dashed transparent;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
  background: rgba(255,255,255,0.01);
}
.pattern-body:hover {
  border-color: var(--border);
  background: rgba(255,255,255,0.02);
}

/* Adjacency chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  font-size: 0.72rem;
  font-weight: 550;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.adj-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Coach notes panel */
.notes-panel {
  background: linear-gradient(160deg, #141820 0%, #12161d 100%);
  border: 1px solid rgba(94, 234, 212, 0.22);
}

.notes-panel h2 {
  color: var(--accent-strong);
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-soft);
}

.rules li::before {
  content: "⚙";
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 1px;
}

.noise-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.noise-row .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 650;
}

/* Footer */
.site-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.stat {
  flex: 1 1 90px;
  min-width: 90px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat .n {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat .l {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Mobile tweaks */
@media (max-width: 560px) {
  .wrap { padding: 12px 10px 40px; }
  .brand h1 { font-size: 1.1rem; }
  table.ops { font-size: 0.75rem; min-width: 520px; }
  table.ops th, table.ops td { padding: 8px 6px; }
  .focus-full { font-size: 0.68rem; }
}

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

/* Signal wallets */
.signal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

/* Classifier panel */
.classifier-panel {
  background: linear-gradient(160deg, #141820 0%, #12161d 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.classifier-purpose {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.legend-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
}

.rule-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-soft);
}

.rule-card.kind-stock_drop {
  border-color: rgba(248, 113, 113, 0.28);
}
.rule-card.kind-meme_buy {
  border-color: rgba(52, 211, 153, 0.28);
}
.rule-card.kind-ambiguous {
  border-color: rgba(251, 191, 36, 0.28);
}
.rule-card.kind-strong_signal {
  border-color: rgba(94, 234, 212, 0.35);
}

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

.rule-logic {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.rule-summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.rule-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.check-box {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  /* visual-only "checkable" look */
  position: relative;
}
.check-box::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: transparent;
}

.chip.stockish {
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.35);
  background: var(--red-dim);
}

/* Extra classification badges */
.tag.meme { background: var(--green-dim); color: var(--green); }
.tag.stock { background: var(--red-dim); color: var(--red); }
.tag.ambiguous { background: var(--amber-dim); color: var(--amber); }
.tag.strong {
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent-strong);
}


/* Runner watchlist */
.watch-mode {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.signal-activity {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.watch-table { min-width: 640px; }
.chip.risk {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.35);
  background: var(--amber-dim);
}
.chip-row.tight {
  margin-top: 0;
  gap: 4px;
}
.mint.pending {
  color: var(--amber);
  font-style: italic;
}
.btn-sm {
  padding: 4px 8px;
  font-size: 0.7rem;
}
.text-dim { color: var(--text-dim); font-size: 0.75rem; }

/* Compact book card */
.book-card.compact {
  gap: 8px;
}
.book-card .focus-label {
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.72rem;
}
.book-card .focus-short {
  font-size: 0.95rem;
}

/* Teaching reference mints */
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.ref-card {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ref-card strong {
  color: var(--text);
  margin-right: 6px;
}
.ref-card p {
  margin: 6px 0 0;
  line-height: 1.45;
}

/* Persona / trader rules */
.persona-panel {
  background: linear-gradient(160deg, #141820 0%, #12161d 100%);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.persona-summary {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.persona-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.persona-rule {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-soft);
}
.persona-rule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.persona-rule-title {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text);
}
.persona-rule-id {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.persona-rule-detail {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Runner archetype */
.archetype-panel {
  background: linear-gradient(160deg, #141820 0%, #12161d 100%);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.archetype-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}
.archetype-fp {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: var(--amber);
  font-family: var(--mono);
}
.archetype-refs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.archetype-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-soft);
}
.archetype-ref-main {
  flex: 1 1 200px;
  min-width: 0;
}
.archetype-ref .pair-name {
  margin-right: 6px;
}
.archetype-ref .mint {
  display: block;
  margin-top: 4px;
  word-break: break-all;
}
.archetype-ref .hit-notes {
  margin-top: 4px;
}
.hunt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hunt-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-soft);
  line-height: 1.4;
}
.hunt-list li::before {
  content: "→ ";
  color: var(--purple);
  font-weight: 700;
}

/* Paper ledger */
.ledger-panel {
  background: linear-gradient(160deg, #141820 0%, #12161d 100%);
  border: 1px solid rgba(94, 234, 212, 0.22);
}
.schema-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--mono);
  line-height: 1.45;
}
.ledger-idea {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-soft);
  margin-bottom: 8px;
}
.ledger-idea:last-child { margin-bottom: 0; }
.ledger-idea-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ledger-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.tag.status-watch { background: var(--blue-dim); color: var(--blue); }
.tag.status-armed { background: var(--amber-dim); color: var(--amber); }
.tag.status-paper-open { background: var(--green-dim); color: var(--green); }
.tag.status-scaled { background: rgba(94, 234, 212, 0.12); color: var(--accent-strong); }
.tag.status-stopped { background: var(--red-dim); color: var(--red); }
.tag.status-closed { background: rgba(92, 102, 117, 0.2); color: var(--text-muted); }

/* Thoughts journal */
.thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thought-card {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.thought-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.thought-at {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.thought-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}
.tag.kind-setup { background: var(--blue-dim); color: var(--blue); }
.tag.kind-risk { background: var(--amber-dim); color: var(--amber); }
.tag.kind-lesson { background: rgba(167, 139, 250, 0.12); color: var(--purple); }
.tag.kind-scan { background: rgba(94, 234, 212, 0.12); color: var(--accent-strong); }

.ledger-bank {
  margin-bottom: 12px;
}
.archetype-role {
  font-size: 0.72rem;
  color: var(--amber);
  margin: 4px 0 2px;
  font-weight: 600;
}
