:root {
  --black: #050505;
  --panel: #111;
  --line-dark: #333;
  --paper: #ededeb;
  --paper-2: #f8f8f5;
  --ink: #111;
  --muted: #777;
  --signal: #d6ff3f;
  --warning: #e99f2b;
  --danger: #d95b50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: "SFMono-Regular", "Roboto Mono", "Noto Sans Mono CJK SC", "PingFang SC", monospace;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  height: 54px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #aaa;
  border-bottom: 1px solid #202020;
  font-size: 11px;
  letter-spacing: .08em;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, .94);
  backdrop-filter: blur(10px);
}
.brand { color: white; font-weight: 700; margin-right: auto; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a:hover { color: white; }
.live { display: flex; align-items: center; gap: 8px; }
.live span { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }

main {
  max-width: 1500px;
  margin: 0 auto;
  background: var(--paper);
}
.monitor-panel {
  background: var(--panel);
  color: #eee;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  margin-top: 12px;
}
small {
  display: block;
  color: #878787;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  min-height: 245px;
}
.metric {
  padding: 30px 32px;
  border-right: 1px solid var(--line-dark);
}
.metric:last-child { border-right: 0; }
.metric p { color: #888; font-size: 11px; line-height: 1.7; }
.giant-number {
  font-size: clamp(100px, 12vw, 178px);
  line-height: .88;
  letter-spacing: -.12em;
  margin-left: -.1em;
  color: transparent;
  background-image: radial-gradient(circle, #eee 34%, transparent 38%);
  background-size: 8px 8px;
  background-clip: text;
  -webkit-background-clip: text;
}
.metric-time {
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid #292929;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.metric-time small { margin: 0; }
.metric-time strong { font-size: 18px; font-weight: 400; letter-spacing: .05em; }
.author-card h1 {
  font-size: clamp(56px, 7vw, 108px);
  line-height: 1;
  letter-spacing: -.08em;
  margin: 24px 0 6px;
  font-weight: 400;
}
.author-links { margin-top: 25px; display: grid; gap: 8px; font-size: 10px; }
.author-links a { color: #aaa; border-bottom: 1px dotted #555; padding-bottom: 5px; width: fit-content; }
.author-links a:hover { color: white; }
.signal { margin: 30px 0; }
.signal strong { display: block; font-size: clamp(44px, 5vw, 80px); font-weight: 400; letter-spacing: -.08em; }
.signal span { color: #777; font-size: 9px; }
.status-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #292929; font-size: 10px; color: #777; }
.status-row b { color: #ddd; font-weight: 400; }
.status-row .warning { color: var(--warning); }

.activity-wrap { padding: 22px 32px 28px; border-top: 1px solid #252525; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-heading strong { font-size: 11px; font-weight: 500; }
.section-heading > span { font-size: 8px; color: #777; display: flex; gap: 5px; align-items: center; }
.heatmap-shell { position: relative; }
.heatmap { display: grid; grid-template-columns: repeat(53, minmax(5px, 1fr)); grid-template-rows: repeat(7, 7px); grid-auto-flow: column; gap: 3px; }
.heat-cell, .level { background: #292929; }
.heat-cell { min-width: 5px; cursor: default; transition: transform .12s, outline-color .12s; }
.heat-cell[role="button"] { cursor: pointer; }
.heat-cell:hover { outline: 1px solid #fff; outline-offset: 1px; transform: scale(1.15); z-index: 2; }
.heat-cell[role="button"]:focus-visible { outline: 1px solid var(--signal); outline-offset: 2px; }
.heat-cell.l1, .level.l1 { background: #555; }
.heat-cell.l2, .level.l2 { background: #898989; }
.heat-cell.l3, .level.l3 { background: #c8c8c8; }
.heat-cell.l4, .level.l4 { background: var(--signal); }
.level { width: 7px; height: 7px; display: inline-block; }
.heatmap-months {
  display: grid;
  grid-template-columns: repeat(53, minmax(5px, 1fr));
  gap: 3px;
  height: 13px;
  margin-top: 10px;
  color: #777;
  font-size: 8px;
}
.heatmap-months span { white-space: nowrap; }
.heatmap-tooltip {
  position: absolute;
  display: none;
  z-index: 10;
  pointer-events: none;
  padding: 7px 9px;
  color: #111;
  background: #f4f4f0;
  border: 1px solid #777;
  box-shadow: 4px 4px 0 #000;
  font-size: 9px;
  white-space: nowrap;
}
.heatmap-tooltip.visible { display: block; }

.search-console {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 17px 30px;
  color: #111;
  background-color: white;
  background-image: radial-gradient(#c5c5c2 .8px, transparent .8px);
  background-size: 5px 5px;
  border-bottom: 1px solid #bbb;
}
.search-console label, .search-console div, .search-console button { font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.search-console input { border: 1px solid #999; background: rgba(255,255,255,.9); padding: 13px 15px; outline: 0; width: 100%; }
.search-console input:focus { border-color: #111; box-shadow: 3px 3px 0 #111; }
.search-console button { border: 1px solid #111; background: white; padding: 12px 16px; cursor: pointer; }
.search-console.date-filter-active input {
  border-color: #111;
  box-shadow: 4px 4px 0 var(--signal);
  color: #111;
  font-weight: 700;
}
.search-console.date-filter-active button {
  background: #111;
  color: white;
  box-shadow: 3px 3px 0 var(--signal);
}
.search-console.date-filter-active #result-count { color: #111; }

.archive-grid {
  display: grid;
  grid-template-columns: minmax(480px, 1.6fr) minmax(250px, .75fr) minmax(250px, .75fr);
  min-height: 720px;
}
.archive-column { padding: 25px 28px 50px; border-right: 1px solid #bbb; background: var(--paper); }
.archive-column:last-child { border-right: 0; }
.column-title { display: flex; justify-content: space-between; align-items: end; padding-bottom: 12px; border-bottom: 1px solid #222; }
.column-title h2 { font-size: 14px; margin: 0; }
.column-title span { color: #777; font-size: 8px; }
.sort-controls { display: flex; gap: 5px; }
.sort-controls button {
  padding: 6px 7px;
  border: 1px solid #aaa;
  color: #777;
  background: transparent;
  cursor: pointer;
  font-size: 7px;
  letter-spacing: .04em;
}
.sort-controls button:hover, .sort-controls button.active { color: white; background: #111; border-color: #111; }

.records { margin-top: 8px; max-height: 720px; overflow: auto; scrollbar-color: #111 transparent; }
.record {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px dotted #bbb;
  cursor: pointer;
}
.record:hover { background: white; padding-left: 10px; }
.record.date-selected {
  background: white;
  box-shadow: inset 4px 0 0 var(--signal);
  padding-left: 10px;
}
.record-date { color: #777; font-size: 9px; }
.record h3 { font-size: 12px; margin: 0 0 6px; font-weight: 600; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 7px; padding: 3px 5px; border: 1px solid #aaa; color: #666; }
.tag.verified { color: #111; border-color: #111; }
.record-id { color: #999; font-size: 9px; }

.chain-list, .month-list { margin-top: 10px; }
.filter-row, .month-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 3px;
  border: 0;
  border-bottom: 1px dotted #bbb;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 11px;
}
.filter-row:hover, .month-row:hover, .filter-row.active, .month-row.active { background: #111; color: white; padding-left: 9px; padding-right: 9px; }
.filter-row span:last-child, .month-row span:last-child { color: #777; }
.bar { height: 4px; background: #ccc; margin: -1px 0 5px; }
.bar i { display: block; height: 100%; background: #111; }
.data-note { margin-top: 35px; padding: 14px; border: 1px solid #aaa; font-size: 9px; line-height: 1.8; }
.data-note strong { font-size: 9px; }
.data-note p { color: #777; margin-bottom: 0; }

dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(88vh, 960px);
  overflow-y: auto;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  padding: 40px 44px;
  box-shadow: 14px 14px 0 rgba(0,0,0,.5);
  scrollbar-color: #777 #111;
}
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.dialog-close { position: sticky; float: right; right: 0; top: 0; z-index: 2; border: 0; background: #111; color: #aaa; font-size: 25px; cursor: pointer; }
dialog h2 { font-size: clamp(30px, 5vw, 48px); margin: 22px 0; letter-spacing: -.05em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-meta span { border: 1px solid #555; padding: 6px 8px; font-size: 9px; color: #bbb; }
.detail-meta .meta-chain {
  color: var(--signal);
  border-color: rgba(214, 255, 63, .62);
  background: rgba(214, 255, 63, .06);
}
.detail-meta .meta-token {
  color: #f5f5f0;
  border-color: #9b9b9b;
  background: #181818;
}
.detail-meta .meta-status,
.detail-meta .meta-content {
  color: #a9c6da;
  border-color: rgba(169, 198, 218, .38);
  background: rgba(169, 198, 218, .06);
}
.detail-meta .meta-review {
  color: var(--warning);
  border-color: rgba(233, 159, 43, .58);
  background: rgba(233, 159, 43, .08);
}
.detail-content { margin-top: 30px; padding-top: 8px; border-top: 1px solid #292929; }
.detail-content p { max-width: 76ch; margin: 20px 0; color: #c1c1c1; line-height: 2; font-size: 13px; }
.detail-content .content-lead { color: white; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.content-handle {
  color: white;
  border-bottom: 1px solid rgba(214, 255, 63, .55);
  text-decoration: none;
}
.content-handle:hover { color: var(--signal); }
.detail-content .content-ca {
  overflow-wrap: anywhere;
  padding: 13px 14px;
  border: 1px solid #4b4b4b;
  color: var(--signal);
  background: #080808;
  font-size: 11px;
}
.detail-content .content-play { padding-left: 15px; border-left: 3px solid var(--signal); color: #eee; }
.detail-content .content-tags { color: var(--signal); letter-spacing: .04em; }
.detail-content hr { height: 1px; margin: 32px 0; border: 0; background: #555; }
.content-pending { margin-top: 14px; padding: 20px; border: 1px solid #555; }
.content-pending strong { color: white; font-size: 10px; letter-spacing: .08em; }
.content-pending p { margin: 13px 0 0; color: #999; }
.detail-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.detail-actions a { border: 1px solid #666; padding: 12px 14px; font-size: 9px; letter-spacing: .08em; }
.detail-actions a:hover { background: white; color: black; }
.detail-actions .source-link { color: #888; border-color: #444; }

footer {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 18px 26px 40px;
  color: #666;
  font-size: 8px;
  letter-spacing: .12em;
}

.terminal-page { max-width: 980px; margin: 40px auto; padding: 0 20px; color: #ddd; }
.terminal-card { border: 1px solid #333; background: #111; padding: 28px; margin-bottom: 18px; }
.terminal-card h1, .terminal-card h2 { color: white; }
.terminal-card p, .terminal-card li { color: #999; line-height: 1.9; font-size: 12px; }
.terminal-card code { color: var(--signal); }
.terminal-button { display: inline-block; padding: 13px 16px; border: 1px solid #777; color: white; font-size: 10px; margin-right: 8px; }
.terminal-button:hover { background: white; color: black; }
.redirect-status { font-size: clamp(48px, 10vw, 120px); color: transparent; background-image: radial-gradient(circle, #eee 34%, transparent 38%); background-size: 8px 8px; background-clip: text; -webkit-background-clip: text; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .traffic-card { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .records-column { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #bbb; }
}
@media (max-width: 680px) {
  .topbar { padding: 0 12px; }
  .topbar nav a:not(:last-child), .live { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 24px 18px; }
  .activity-wrap { padding: 18px; }
  .heatmap-shell { overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; }
  .heatmap, .heatmap-months { grid-template-columns: repeat(53, 8px); min-width: 580px; }
  .search-console { grid-template-columns: 1fr auto; padding: 14px; }
  .search-console label, .search-console div { grid-column: 1 / -1; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-column { border-right: 0; border-bottom: 1px solid #bbb; padding: 20px 14px 35px; }
  .records-column .column-title { align-items: start; gap: 12px; }
  .sort-controls { flex-direction: column; }
  .record { grid-template-columns: 62px 1fr; }
  .record-id { display: none; }
  dialog { max-height: 92vh; padding: 28px 20px; }
  .detail-content p { font-size: 12px; line-height: 1.85; }
  .detail-content .content-lead { font-size: 17px; }
}
