:root {
  --background: #070b09;
  --panel: #0c1310;
  --panel-hot: #0d1813;
  --foreground: #d9e8df;
  --muted: #81988b;
  --line: #234333;
  --green: #85f2b5;
  --amber: #ffc267;
  --purple: #cc8bff;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
button { font: inherit; cursor: pointer; }

.control-shell { position: relative; min-height: 100vh; padding: 44px clamp(20px, 4vw, 64px) 34px; overflow: hidden; }
.control-shell::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 20%, rgba(133,242,181,.05), transparent 46%); }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .6; background: repeating-linear-gradient(to bottom, rgba(184,255,215,.025), rgba(184,255,215,.025) 1px, transparent 1px, transparent 4px); }
.control-header, .next-panel, .dashboard-grid, footer { position: relative; z-index: 1; max-width: 1320px; margin-inline: auto; }
.control-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
h1, h2, p { margin: 0; }
h1 { margin-top: 8px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -.03em; }
.eyebrow { color: var(--green); font-size: .82rem; font-weight: 600; letter-spacing: .16em; }
.glow { text-shadow: 0 0 12px rgba(133,242,181,.55); }
.day-badge { border: 1px solid #315e47; border-radius: 999px; padding: 12px 28px; color: #a7bcaf; white-space: nowrap; }

.next-panel { border: 1px solid var(--green); border-radius: 14px; background: var(--panel-hot); padding: clamp(22px, 3vw, 34px); box-shadow: inset 0 0 35px rgba(133,242,181,.025); }
.next-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.next-topline h2 { margin-top: 8px; }
.time-picker { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.time-picker button { border: 1px solid #315e47; border-radius: 999px; background: #101d17; color: #a7bcaf; padding: 9px 18px; }
.time-picker button.active { background: var(--green); border-color: var(--green); color: #07100b; }
.next-task { margin-top: 24px; max-width: 1040px; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.55; }
.stop-rule { margin-top: 10px; color: var(--muted); line-height: 1.55; }
.stop-rule strong { color: var(--muted); font-weight: 500; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(310px, .9fr); gap: 30px; margin-top: 28px; }
.section-heading { min-height: 45px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-heading p { color: var(--muted); font-size: .9rem; }
.project-table, .side-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.project-table { padding: 12px 24px; }
.project-row { display: grid; grid-template-columns: minmax(180px, 1.15fr) 130px minmax(260px, 1.8fr); gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.project-row strong { font-weight: 500; }
.project-row p { line-height: 1.5; }
.project-row div span { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.project-head { padding: 12px 0; color: var(--muted); font-size: .75rem; letter-spacing: .14em; }
.status { position: relative; padding-left: 16px; }
.status::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--green); transform: translateY(-50%); }
.status-waiting::before { background: var(--amber); }
.status-blocked::before { background: var(--purple); }
.status span { color: var(--green); font-size: .84rem; font-weight: 600; }
.status-waiting span { color: var(--amber); }
.status-blocked span { color: var(--purple); }
.active-limit { padding: 16px 0 2px; color: var(--muted); font-size: .9rem; }

.side-stack { display: grid; gap: 26px; align-content: start; }
.side-panel { padding: 22px; }
.side-item { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 4px 0 18px; }
.side-item + .side-item { padding-top: 18px; border-top: 1px solid var(--line); }
.side-item strong { font-weight: 500; }
.side-item p { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
.dot-wait { background: var(--amber); }
.dot-park { background: #62776b; }
.panel-rule { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--amber); font-size: .78rem; letter-spacing: .12em; }
.parked-row { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: center; padding: 8px 0; }

footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--foreground); }
footer .eyebrow { margin-right: 24px; }

@media (max-width: 920px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .section-heading { min-height: auto; margin-bottom: 10px; }
}

@media (max-width: 680px) {
  .control-shell { padding-inline: 16px; }
  .control-header, .next-topline, footer { align-items: flex-start; flex-direction: column; }
  .day-badge { padding: 9px 16px; }
  .time-picker { justify-content: flex-start; margin-top: 4px; }
  .project-table { padding-inline: 16px; }
  .project-head { display: none; }
  .project-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .status { width: 130px; }
  footer .eyebrow { display: block; margin: 0 0 8px; }
}
