/* Live status board. Not a letter. */

:root {
  --board: #0b0f14;
  --panel: #121821;
  --panel-2: #182230;
  --line: #2a3a4d;
  --live: #3dce8a;
  --paper: #e3b34a;
  --score: #7eb6ff;
  --mute: #8a97a8;
  --text: #e8eef6;
  --hot: #ff6b4a;
}

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

html, body { margin: 0; }

body.area-now {
  background: var(--board);
  color: var(--text);
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  min-height: 100vh;
}

a { color: var(--score); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

.board {
  width: min(88rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.4rem;
}

.board-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.board-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--live);
  margin: 0 0 0.25rem;
}

.board h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.board-sub {
  margin: 0.25rem 0 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.stamp {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--mute);
  text-align: right;
}

.find-jump {
  margin: 0 0 1rem;
  max-width: 28rem;
}

.find-jump label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.25rem;
}

.find-jump input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.4rem 0.55rem;
}

#find-out {
  background: var(--panel-2);
  border: 1px solid var(--line);
  max-height: 16rem;
  overflow: auto;
}

#find-out a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.55rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

#find-out a:hover { background: #213044; }
#find-out code { font-size: 0.78rem; color: var(--score); }
#find-out span { font-size: 0.72rem; color: var(--mute); }
.find-empty { margin: 0; padding: 0.55rem; color: var(--mute); }

.slot {
  background: linear-gradient(90deg, #163024, var(--panel));
  border: 1px solid #24553a;
  border-left: 4px solid var(--live);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.slot .tag {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
}

.slot .md-body { margin-top: 0.4rem; }
.slot .md-body p { margin: 0 0 0.45rem; }
.slot .md-body p:last-child { margin-bottom: 0; }
.slot .src {
  margin: 0.55rem 0 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--mute);
}

.pcs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.pcs article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.75rem 0.8rem 0.7rem;
  min-width: 0;
}

.pcs .L {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--score);
}

.pcs .V {
  display: block;
  margin: 0.25rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.pcs .D {
  display: block;
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.35;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
  min-width: 0;
}

.panel h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 650;
}

.tag {
  display: inline-block;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-live { color: var(--live); }
.tag-paper { color: var(--paper); }
.tag-score { color: var(--score); }
.tag-hour { color: var(--mute); }

.md-body p, .md-body li { margin: 0 0 0.4rem; font-size: 0.92rem; }
.md-body ul, .md-body ol { margin: 0 0 0.4rem; padding-left: 1.1rem; }
.md-body h1, .md-body h2, .md-body h3 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.src {
  margin: 0.6rem 0 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--mute);
}

.close2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.strip {
  background: var(--panel-2);
  border: 1px dashed var(--line);
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  color: #c5d0dc;
}

.strip .tag { display: block; margin-bottom: 0.35rem; }

.later {
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
}


.slot h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.slot .how, .later .why {
  margin: 0 0 0.45rem;
  color: var(--mute);
  font-size: 0.88rem;
}

.receipt {
  background: var(--panel-2);
  border: 1px dashed var(--line);
  padding: 0.8rem 0.9rem;
  margin-bottom: 1rem;
}

.receipt .when {
  margin: 0.35rem 0 0.2rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--score);
}

.receipt .moved {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.trail {
  margin: 0 0 0.55rem;
  padding-left: 1.15rem;
  color: #c5d0dc;
  font-size: 0.82rem;
}

.trail time {
  display: inline-block;
  min-width: 9.2rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--mute);
}

.later h2 { margin: 0 0 0.5rem; font-size: 1rem; }

.foot {
  margin-top: 1.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--mute);
}

@media (max-width: 900px) {
  .pcs, .grid3, .close2 { grid-template-columns: 1fr; }
  .board-top { grid-template-columns: 1fr; }
  .stamp { text-align: left; }
}

body.area-reconfile {
  background: var(--board);
  color: var(--text);
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  min-height: 100vh;
}
body.area-reconfile a { color: var(--score); text-decoration: none; }
body.area-reconfile a:hover { color: #fff; text-decoration: underline; }

.agent-stats {
  margin: 0 0 1.2rem;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.agent-stats h2 {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
}
.agent-stats h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.agent-stats-sub {
  margin: 0 0 0.7rem;
  color: var(--mute);
  font-size: 0.88rem;
}
.agent-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.agent-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.7rem 0.7rem 0.6rem;
  min-height: 4.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.agent-stat-k {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.agent-stat-v {
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 0.35rem;
}
.agent-stat-files {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.82rem;
}
.agent-stat-files code { color: var(--score); font-size: 0.78rem; }
@media (max-width: 900px) {
  .agent-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .agent-stats-grid { grid-template-columns: 1fr; }
}
