:root {
  color-scheme: dark;
  --ink: #f5f7ff;
  --muted: #aeb7cf;
  --panel: rgba(10, 13, 28, 0.9);
  --panel-strong: rgba(17, 23, 48, 0.94);
  --line: #49f5d3;
  --line-soft: rgba(73, 245, 211, 0.26);
  --hot: #ff4fd8;
  --warn: #ffe66d;
  --ok: #6dff8f;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --mono: "IBM Plex Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 79, 216, 0.24), transparent 28rem),
    radial-gradient(circle at 78% 4%, rgba(73, 245, 211, 0.18), transparent 24rem),
    linear-gradient(180deg, #090b18 0%, #141228 46%, #070911 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    transparent;
  background-size: 40px 40px, 40px 40px, 120px 120px;
  background-position: 0 0, 0 0, 14px 22px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: 0.22;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  display: grid;
  gap: 14px;
  align-items: end;
  padding: 14px 0 18px;
  border-bottom: 2px solid var(--line);
  box-shadow: 0 10px 0 -8px var(--hot);
}

.identity {
  display: grid;
  gap: 6px;
}

.kicker,
.label,
.meta,
.tag,
.timecode,
.footer {
  font-family: var(--mono);
  letter-spacing: 0;
}

.kicker {
  color: var(--line);
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 7vw, 4.8rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #1d2359, 6px 6px 0 rgba(255, 79, 216, 0.55);
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

.top-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.status-pill {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 12, 24, 0.82);
  padding: 8px 10px;
  box-shadow: 4px 4px 0 rgba(73, 245, 211, 0.16);
}

.status-pill strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.98rem;
}

.status-link:hover {
  color: var(--warn);
  border-color: var(--warn);
}

.label {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.notice {
  margin-top: 14px;
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  background: rgba(255, 230, 109, 0.11);
  padding: 10px 12px;
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 16px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 22px;
  background:
    linear-gradient(135deg, transparent 0 16px, var(--line) 16px 18px, transparent 18px),
    linear-gradient(90deg, transparent, rgba(73, 245, 211, 0.22));
  opacity: 0.75;
}

.panel-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(73, 245, 211, 0.11), rgba(255, 79, 216, 0.08));
}

.panel-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.panel-body {
  padding: 12px;
}

.mission {
  display: grid;
  gap: 12px;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.16), transparent 34%),
    var(--panel-strong);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.big-number {
  margin: 0;
  color: var(--warn);
  font-family: var(--mono);
  font-size: clamp(2.3rem, 13vw, 6rem);
  line-height: 0.92;
  text-shadow: 4px 4px 0 rgba(255, 79, 216, 0.5);
}

.countdown-line {
  margin: 6px 0 12px;
  color: var(--line);
  font-family: var(--mono);
  font-size: clamp(1.1rem, 5vw, 2rem);
  line-height: 1;
}

.subtle {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.stat strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 1.08rem;
  text-transform: capitalize;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  border: 1px solid var(--hot);
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffd7f6;
  background: rgba(255, 79, 216, 0.11);
  font-size: 0.72rem;
  white-space: nowrap;
}

.schedule {
  display: grid;
  gap: 10px;
}

.talk {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(73, 245, 211, 0.38);
}

.talk:hover,
.mini-list a:hover {
  color: var(--warn);
}

.talk:last-child {
  border-bottom: 0;
}

.timecode {
  color: var(--warn);
  font-size: 0.85rem;
}

.talk h3,
.todo h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.22;
}

.meta {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.next {
  border-left: 5px solid var(--warn);
  padding-left: 8px;
  background: rgba(255, 230, 109, 0.07);
}

.todo-list {
  display: grid;
  gap: 9px;
}

.todo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  background: #070911;
  box-shadow: inset 0 0 0 3px #070911;
}

.checkbox.done {
  background: var(--ok);
}

.signal {
  display: grid;
  gap: 10px;
}

.bar {
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(90deg, var(--ok) 0 62%, rgba(255, 255, 255, 0.1) 62%),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.bar.count {
  background:
    linear-gradient(90deg, var(--line) 0 82%, rgba(255, 255, 255, 0.1) 82%),
    rgba(255, 255, 255, 0.08);
}

.bar.warn {
  background:
    linear-gradient(90deg, var(--warn) 0 38%, rgba(255, 255, 255, 0.1) 38%),
    rgba(255, 255, 255, 0.08);
}

.bar.hot {
  background:
    linear-gradient(90deg, var(--hot) 0 78%, rgba(255, 255, 255, 0.1) 78%),
    rgba(255, 255, 255, 0.08);
}

.weather {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weather .stat strong {
  font-size: 1rem;
}

.bar-status {
  display: grid;
  gap: 12px;
}

.cache-list {
  display: grid;
  gap: 8px;
}

.bar-openings {
  display: grid;
  gap: 8px;
}

.bar-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bar-stats .stat strong {
  font-size: 0.95rem;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list a,
.mini-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(73, 245, 211, 0.32);
}

.mini-list a:last-child,
.mini-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-list strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.mini-list span,
.notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.notes {
  display: grid;
  gap: 10px;
}

.footer {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 660px) {
  .shell {
    width: min(1180px, calc(100% - 44px));
    padding-top: 26px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .dashboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
  }

  .span-3 {
    grid-column: span 3;
  }

  .span-6 {
    grid-column: span 6;
  }

  .mission-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .dashboard {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .lg-3 {
    grid-column: span 3;
  }

  .lg-4 {
    grid-column: span 4;
  }

  .lg-5 {
    grid-column: span 5;
  }

  .lg-7 {
    grid-column: span 7;
  }
}
