:root {
  --navy: #0b3a6e;
  --ink: #1c2430;
  --muted: #5c6b7a;
  --line: #d5dde6;
  --paper: #f3f5f7;
  --card: #ffffff;
  --gold: #8d6a2f;
  --ok: #1d6b3a;
  --bad: #8a3b12;
  --okbg: #e7f4ea;
  --badbg: #fdecec;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 "Segoe UI", sans-serif;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
aside {
  background: var(--navy);
  color: #f4f7fb;
  padding: 28px 22px;
}
aside h1 { font-size: 22px; margin: 0 0 8px; font-weight: 650; }
.mark { letter-spacing: 0.16em; font-size: 12px; margin: 0; color: #d7c08a; }
.aside-note { color: #c9d6e5; font-size: 14px; }
aside nav { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
aside a { color: #f4f7fb; text-decoration: none; padding: 6px 0; }
aside a:hover { color: #f0d48a; }
aside button.nav-logout {
  background: transparent;
  color: #f4f7fb;
  border: 0;
  padding: 16px 0 6px;
  text-align: left;
}
aside button.nav-logout:hover { color: #f0d48a; }
body.login-body { display: block; background: var(--paper); }
.login-wrap {
  max-width: 480px;
  margin: 8vh auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.login-wrap .mark { color: var(--gold); }
.nav-label { margin: 16px 0 4px; color: #d7c08a; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
main { padding: 32px 40px 64px; max-width: 1180px; }
h2 { font-size: 30px; line-height: 1.2; margin: 0; font-weight: 650; }
h3 { margin: 0 0 8px; }
a { color: var(--navy); }
.page-head, .actions { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.eyebrow { margin: 0; color: var(--gold); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.lead { max-width: 760px; }
.muted { color: var(--muted); }
.en { font-style: italic; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card, .panel, .guide article, .exhibit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.card h3 { font-size: 20px; }
.code { margin: 0; color: var(--gold); font-size: 13px; }
.stats { padding-left: 18px; }
.stats li { margin: 4px 0; }
.stat-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}
.stat-link:hover,
.stat-link.on {
  color: var(--navy);
  text-decoration: underline;
}
.stat-link strong,
.stat-num {
  color: #c62828;
  font-weight: 700;
}
.stat-link.is-gap strong { color: var(--bad); }
.stat-link.is-done strong { color: var(--ok); }
.progress-link .muted { margin-left: 2px; font-weight: 500; }
.card.is-selected { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.panel-head h3 { margin: 0; }
.quiet-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.quiet-link:hover { color: var(--navy); }
.monitor { margin-top: 8px; }
.monitor-summary {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}
.monitor-summary .stat-sep { margin: 0 8px; color: var(--line); }
.chip-count {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.85;
}
.chips a.on .chip-count { opacity: 1; }
.standard-note { margin: 0 0 12px; }
.standard-note em { font-style: normal; color: var(--muted); margin-left: 6px; }
.monitor-table .crit-title {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.monitor-table tr.is-open { background: #f7fafc; }
.detail-list {
  margin: 0;
  padding-left: 18px;
}
.detail-list li { margin: 6px 0; }
.warn-list { color: var(--bad); }
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.split-panels h4 { margin: 0 0 8px; font-size: 15px; }
.slot-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}
.slot-list > li {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.slot-list > li.done { border-left: 3px solid var(--ok); }
.slot-list > li.todo { border-left: 3px solid var(--bad); }
.slot-list > li > p { margin: 0 0 6px; }
.panel h4 { margin: 16px 0 8px; font-size: 15px; }
.button, button {
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
button.quiet { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.banner { border-radius: 10px; padding: 10px 14px; }
.banner.ok { background: var(--okbg); color: var(--ok); }
.banner.bad { background: var(--badbg); color: var(--bad); }
.banner li { margin: 4px 0; }
.sheet { width: 100%; border-collapse: collapse; background: white; }
.sheet th, .sheet td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 10px 8px; }
.sheet th { font-size: 13px; color: var(--muted); font-weight: 650; }
.warn { color: var(--bad); }
.filters, .split, .slot { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; max-width: 860px; }
label { display: grid; gap: 4px; font-size: 14px; flex: 1; }
input, select, textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
}
textarea { width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.chips a { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.chips a.on { background: var(--navy); color: white; }
.guide { display: grid; gap: 10px; margin-bottom: 18px; }
.work { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: 18px; align-items: start; }
.exhibits { display: grid; gap: 10px; }
.exhibit p { margin: 0 0 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 4px 0 0; }
.check { list-style: none; padding: 0; }
.check li { padding: 6px 0 6px 22px; position: relative; }
.check li::before { position: absolute; left: 0; }
.check .done::before { content: "✓"; color: var(--ok); }
.check .todo::before { content: "•"; color: var(--bad); }
.standards { padding-left: 0; list-style: none; }
.standards li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.standards span { display: inline-block; width: 1.4em; color: var(--navy); font-weight: 650; }
.standards em { color: var(--muted); font-style: normal; margin-left: 8px; }
code { font-family: Consolas, monospace; font-size: 0.92em; }
.stat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  margin: 6px 0 14px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.stat-line strong {
  color: #c62828;
  font-weight: 700;
  font-size: 16px;
  margin-right: 4px;
}
.stat-line .stat-sep {
  margin: 0 10px;
  color: var(--line);
}
.page-meta { margin: 0 0 8px; font-size: 14px; }
.load-more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  min-height: 40px;
}
.load-more.is-done { justify-content: flex-start; }
.pager {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
@media (max-width: 960px) {
  body { grid-template-columns: 1fr; }
  aside { padding: 18px; }
  .grid, .work, .facts, .split-panels { grid-template-columns: 1fr; }
  main { padding: 20px; }
  .panel-head, .monitor-summary { text-align: left; }
  .panel-head { flex-direction: column; }
}
