:root {
  --bg: #0b0d12; --panel: #141821; --panel2: #1b2130; --line: #273041;
  --ink: #e8ecf3; --ink2: #9aa6b8; --accent: #7cc4ff; --good: #5fd39a; --warn: #f2c24d; --bad: #ff7a7a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
nav.top { display: flex; gap: 18px; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #0e1118; position: sticky; top: 0; z-index: 5; }
nav.top a { color: var(--ink2); }
nav.top a.on, nav.top a:hover { color: var(--ink); text-decoration: none; }
nav.top .brand { font-weight: 700; color: var(--ink); letter-spacing: .3px; }
nav.top .spacer { flex: 1; }
nav.top .who { color: var(--ink2); }
main { max-width: 1120px; margin: 0 auto; padding: 24px; }
footer { color: var(--ink2); text-align: center; padding: 24px; font-size: 12px; }
.flash { max-width: 1120px; margin: 12px auto 0; padding: 0 24px; }
.flash div { background: var(--panel2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; }
h1 { font-size: 24px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 24px 0 10px; }
.muted { color: var(--ink2); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
button, .btn { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary { background: var(--accent); color: #06121f; border-color: var(--accent); font-weight: 600; }
button.good { border-color: var(--good); color: var(--good); }
button.bad { border-color: var(--bad); color: var(--bad); }
button.small { padding: 5px 10px; font-size: 13px; }
input, textarea, select { width: 100%; background: #0e1118; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; }
textarea { min-height: 120px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--ink2); margin: 12px 0 4px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--ink2); }
.pill.green { border-color: var(--good); color: var(--good); }
.pill.amber { border-color: var(--warn); color: var(--warn); }
.pill.red { border-color: var(--bad); color: var(--bad); }
.score { font-size: 28px; font-weight: 700; min-width: 56px; text-align: center; border-radius: 10px; padding: 6px 0; }
.score.hi { background: rgba(95,211,154,.15); color: var(--good); }
.score.mid { background: rgba(242,194,77,.15); color: var(--warn); }
.score.lo { background: rgba(255,122,122,.12); color: var(--bad); }
.posting { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: start; }
.posting h3 { margin: 0 0 2px; font-size: 16px; }
.posting .reasons { margin: 6px 0 0; padding-left: 18px; color: var(--ink2); font-size: 14px; }
.posting .actions { display: flex; flex-direction: column; gap: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink2); font-weight: 600; }
.light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-right: 6px; }
.light.green { background: var(--good); } .light.amber { background: var(--warn); } .light.red { background: var(--bad); }
.tabs a { margin-right: 14px; color: var(--ink2); }
.tabs a.on { color: var(--ink); border-bottom: 2px solid var(--accent); }
.login { max-width: 360px; margin: 12vh auto; }
.desc { white-space: pre-wrap; color: var(--ink2); font-size: 14px; max-height: 420px; overflow: auto; }
/* dashboard, styled after the Desk */
body.dash { background: #07090f; }
body.dash nav.top { display: none; }
body.dash main { max-width: none; padding: 0; }
body.dash footer { display: none; }
#stage { position: relative; width: 100%; height: 100vh; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #0b0f1a 0%, #07090f 60%); }
#stage canvas { display: block; width: 100%; height: 100%; }
#brand { position: absolute; left: 22px; top: 16px; }
#brand .title { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 30px; letter-spacing: .34em; color: #f0f2f6; }
#brand .sub { color: #c9d3e3; font-size: 12px; margin-top: 2px; }
#brand .legend { margin-top: 12px; font-size: 13px; }
#brand .legend div { margin: 3px 0; color: #ffffff; }
#brand .legend .st { color: #c9d3e3; font-size: 11px; margin-left: 10px; }
#brand .note { color: #9fb0c8; font-size: 11px; margin-top: 10px; max-width: 260px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 8px currentColor; }
.dot.hscouts { background: hsl(212,80%,65%); color: hsl(212,80%,65%); }
.dot.hfit { background: hsl(135,80%,55%); color: hsl(135,80%,55%); }
.dot.hwriters { background: hsl(330,90%,68%); color: hsl(330,90%,68%); }
.dot.hkeepers { background: hsl(28,100%,60%); color: hsl(28,100%,60%); }
#top { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 10px; }
#top .pill { display: flex; flex-direction: column; background: rgba(20,24,33,.85); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-width: 220px; max-width: 260px; color: var(--ink); text-decoration: none; }
#top .pill .tag { display: inline-block; font: 600 10px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; background: #243249; color: #cfe3ff; border-radius: 4px; padding: 2px 6px; width: max-content; }
#top .pill .t { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
#top .pill .m { font: 10px ui-monospace, Menlo, Consolas, monospace; color: var(--good); }
#clockbox { position: absolute; right: 22px; top: 12px; text-align: right; }
#clock { font: 500 36px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; color: #f0f2f6; }
#clockbox .d { color: #c9d3e3; font-size: 12px; }
#clockbox .her { font: 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: #bcd0f0; margin-top: 8px; }
#clockbox .her .dim { letter-spacing: 0; }
#clockbox .actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
#clockbox .actions form { display: inline; }
.budget { display: inline-block; width: 60px; height: 4px; background: #1b2130; border-radius: 2px; overflow: hidden; }
.budget i { display: block; height: 100%; background: var(--good); }
button.hello { background: #cfe3ff; color: #0b1526; border-color: #cfe3ff; font-weight: 600; padding: 6px 12px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
#tip { position: absolute; display: none; background: rgba(14,17,24,.97); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 260px; max-width: 340px; pointer-events: none; font-size: 13px; line-height: 1.5; }
#tip .tb { margin-top: 6px; }
#tip .n { font: 500 18px ui-monospace, Menlo, Consolas, monospace; }
#tip .qrow { padding: 3px 0; border-top: 1px solid #1c2330; }
#tip .qs { display: inline-block; width: 30px; font: 600 12px ui-monospace, Menlo, Consolas, monospace; color: var(--good); }
#tip b { display: block; font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 18px; letter-spacing: .14em; }
#tip .dim, .panel .dim { color: #c9d3e3; font-size: 12px; }
.panel { position: absolute; bottom: 20px; background: rgba(14,17,24,.92); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 300px; }
#left { left: 20px; } #right { right: 20px; }
.dot.hqueue { background: hsl(265,85%,72%); color: hsl(265,85%,72%); }
.panel .k { font: 10px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; color: #bcd0f0; display: flex; justify-content: space-between; align-items: baseline; }
.panel .k .big { font: 500 22px ui-monospace, Menlo, Consolas, monospace; color: #f0f2f6; letter-spacing: 0; }
.panel table { margin-top: 8px; font-size: 13px; }
.panel td { padding: 5px 6px; border-bottom: 1px solid #161c28; }
.panel td.n { font: 600 13px ui-monospace, Menlo, Consolas, monospace; color: var(--good); width: 36px; }
.panel .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; font-size: 13px; }
.panel .grid2 div { display: flex; flex-direction: column; }
@media (max-width: 1000px) {
  #top { display: none; }
  .panel { position: static; width: auto; margin: 12px; }
  #stage { height: auto; min-height: 100vh; }
  #stage canvas { height: 62vh; }
  #brand .note { display: none; }
}
