/* Sentinuity Labs — public paper-status page. No external fonts or CDNs. */
:root {
  --bg: #f6f3ee;
  --card: #fffdf9;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d6;
  --paper: #b45309;
  --paper-bg: #fff7ed;
  --paper-line: #fdba74;
  --stale: #b91c1c;
  --stale-bg: #fef2f2;
  --stale-line: #fecaca;
  --ok: #047857;
  --running: #1d4ed8;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.05);
  --radius: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.tagline {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.banner {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--paper-line);
  background: var(--paper-bg);
  color: #7c2d12;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.banner strong { font-weight: 800; }
.banner .sub {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #9a3412;
}

#stale-banner {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--stale-line);
  background: var(--stale-bg);
  color: var(--stale);
}
#stale-banner h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
#stale-banner p { margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
}

#run-status {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}
#run-status[data-status="RUNNING"] { color: var(--running); }
#run-status[data-status="COMPLETED"] { color: var(--ok); }
#run-status[data-status="STOPPED"] { color: #9a3412; }
#run-status[data-status="IDLE"],
#run-status[data-status="UNKNOWN"] { color: var(--muted); }

.times { margin: 1rem 0 0; }
.times dl {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0;
}
.times dt { color: var(--muted); font-weight: 600; }
.times dd { margin: 0; }

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 32rem) {
  .figures { grid-template-columns: 1fr; }
  .times dl { grid-template-columns: 1fr; }
}

.fig {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.fig .kicker { margin-bottom: 0.15rem; }
.fig .value {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0;
}
.fig .value[data-kind="missing"] {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.fig .hint {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

#note, #load-error {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
#load-error { color: #9a3412; }

footer {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer p { margin: 0 0 0.5rem; }
