:root {
  --bg: #f4f2ec; --panel: #fffdf8; --ink: #22261f; --muted: #6b6f63; --line: #e2ddd0;
  --brand: #3f5b3a; --brand-ink: #f3f0e6;
  --red: #c2412d; --red-bg: #fbe9e5; --yellow: #a87a0c; --yellow-bg: #fbf2d8;
  --green: #2f7a46; --green-bg: #e3f2e7; --gray: #8a8d83; --gray-bg: #eeece6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161814; --panel: #1f221c; --ink: #e8e6dd; --muted: #9a9d91; --line: #30342b;
    --brand: #8fb085; --brand-ink: #161814;
    --red: #f08a74; --red-bg: #3a201b; --yellow: #e3b94a; --yellow-bg: #362c12;
    --green: #78c48f; --green-bg: #1b3122; --gray: #9a9d91; --gray-bg: #2a2d26;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel); position: sticky; top: 0; z-index: 2; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 17px; letter-spacing: .2px; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--brand);
  box-shadow: inset 0 0 0 6px var(--brand), inset 0 0 0 12px var(--brand-ink); }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.top nav a.on { color: var(--ink); background: var(--gray-bg); }
.pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px;
  background: var(--brand); color: var(--brand-ink); text-align: center; }
.pill:empty { display: none; }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 7px 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); }
button.primary, a.button { background: var(--brand); color: var(--brand-ink); border-color: var(--brand);
  text-decoration: none; padding: 9px 14px; border-radius: 8px; display: inline-block; }
button.ghost { border-color: transparent; color: var(--muted); }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 24px; }
.muted { color: var(--muted); } .center { text-align: center; } .mono { font-family: var(--mono); font-size: 13px; }
h1 { font-size: 24px; margin: 0 0 4px; } h2 { font-size: 16px; margin: 28px 0 10px; letter-spacing: .3px; }
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.summary span { padding: 4px 10px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  text-decoration: none; display: flex; flex-direction: column; gap: 8px; border-left-width: 4px; }
.card:hover { border-color: var(--muted); }
.card.red { border-left-color: var(--red); } .card.yellow { border-left-color: var(--yellow); }
.card.green { border-left-color: var(--green); } .card.gray { border-left-color: var(--gray); }
.card .head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card .name { font-weight: 600; font-size: 15px; }
.stage { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--gray-bg); color: var(--muted); white-space: nowrap; }
.light { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.light::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gray); }
.light.red::before { background: var(--red); } .light.yellow::before { background: var(--yellow); }
.light.green::before { background: var(--green); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 500; }
.next { font-size: 13px; }
.reasons { margin: 0; padding-left: 18px; font-size: 13px; }
.wait { font-size: 12px; color: var(--brand); font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.scroll { overflow-x: auto; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.check li:last-child { border: 0; }
.check .box { width: 18px; flex: none; }
.owner { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.chart { width: 100%; height: 90px; display: block; }
.badge { font-size: 12px; padding: 1px 8px; border-radius: 10px; }
.badge.red { background: var(--red-bg); color: var(--red); } .badge.yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge.green { background: var(--green-bg); color: var(--green); }
.action { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.action:last-child { border: 0; }
.action .blocks { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--gray-bg); font-weight: 600; font-size: 14px; }
.action .blocks.hot { background: var(--yellow-bg); color: var(--yellow); }
.signin { max-width: 420px; margin: 12vh auto; text-align: center; }
.signin p { color: var(--muted); }
.err { color: var(--red); }
