:root {
  --ink: #071315;
  --ink-soft: #0d2021;
  --panel: #102728;
  --panel-light: #173233;
  --line: rgba(213, 255, 67, 0.17);
  --cream: #f2f4e9;
  --muted: #96aaa4;
  --acid: #d8ff43;
  --mint: #44d6aa;
  --warning: #f5bd4f;
  --danger: #ff766f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 2%, rgba(68, 214, 170, 0.08), transparent 29rem),
    linear-gradient(180deg, #071315 0%, #091718 70%, #061112 100%);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  margin: 0 auto;
  max-width: 1420px;
  padding: 0 42px 42px;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(242, 244, 233, 0.1);
  display: flex;
  height: 84px;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 11px;
  letter-spacing: 0.14em;
}

.brand-mark {
  display: inline-grid;
  height: 27px;
  place-items: center;
  position: relative;
  width: 31px;
}

.brand-mark i {
  border: 2px solid var(--acid);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  display: block;
  grid-area: 1 / 1;
  transform: rotate(-45deg);
}

.brand-mark i:nth-child(1) {
  height: 26px;
  width: 26px;
}

.brand-mark i:nth-child(2) {
  height: 18px;
  width: 18px;
}

.brand-mark i:nth-child(3) {
  background: var(--acid);
  border: 0;
  height: 5px;
  width: 5px;
}

.topbar-status {
  align-items: center;
  color: #c7d3cc;
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  gap: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 67, 0.1);
  height: 7px;
  width: 7px;
}

.pulse.degraded {
  background: var(--warning);
}

.pulse.awaiting-first-run {
  animation: pulse 1.8s infinite;
  background: var(--mint);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(68, 214, 170, 0);
  }
}

.hero {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  min-height: 640px;
  padding: 78px 4% 70px;
}

.eyebrow,
.section-kicker {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.eyebrow span {
  color: #687b76;
  padding: 0 7px;
}

.hero h1 {
  font-size: clamp(48px, 6.1vw, 88px);
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 0.96;
  margin: 0;
}

.hero h1 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  color: #aebdb7;
  font-size: 17px;
  line-height: 1.7;
  margin: 32px 0 0;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  align-items: center;
  border-radius: 3px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 22px;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--acid);
  color: #0b1617;
}

.button.ghost {
  border: 1px solid rgba(242, 244, 233, 0.2);
  color: #d9e2dc;
}

.radar-card {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(rgba(216, 255, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 255, 67, 0.035) 1px, transparent 1px),
    #0b1c1d;
  background-size: 34px 34px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.radar-card::before,
.radar-card::after {
  border-color: var(--acid);
  border-style: solid;
  content: "";
  height: 16px;
  position: absolute;
  width: 16px;
}

.radar-card::before {
  border-width: 1px 0 0 1px;
  left: 14px;
  top: 14px;
}

.radar-card::after {
  border-width: 0 1px 1px 0;
  bottom: 14px;
  right: 14px;
}

.radar-visual {
  aspect-ratio: 1;
  position: relative;
  width: 73%;
}

.radar-ring,
.radar-sweep {
  border: 1px solid rgba(216, 255, 67, 0.23);
  border-radius: 50%;
  inset: 0;
  position: absolute;
}

.ring-2 {
  inset: 17%;
}

.ring-3 {
  inset: 34%;
}

.radar-sweep {
  animation: radar 5s linear infinite;
  background: conic-gradient(from 330deg, rgba(216, 255, 67, 0.27), transparent 23%);
  border: 0;
}

@keyframes radar {
  to {
    transform: rotate(360deg);
  }
}

.radar-center,
.radar-dot {
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(216, 255, 67, 0.7);
  height: 7px;
  position: absolute;
  width: 7px;
}

.radar-center {
  left: calc(50% - 3px);
  top: calc(50% - 3px);
}

.dot-1 {
  left: 63%;
  top: 23%;
}

.dot-2 {
  bottom: 26%;
  left: 27%;
}

.radar-caption {
  align-items: center;
  border-top: 1px solid rgba(242, 244, 233, 0.12);
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin-top: 30px;
  padding-top: 18px;
  text-transform: uppercase;
  width: 100%;
}

.radar-caption span {
  color: var(--muted);
}

.radar-caption strong {
  color: var(--acid);
}

.metric-grid {
  border-bottom: 1px solid rgba(242, 244, 233, 0.1);
  border-top: 1px solid rgba(242, 244, 233, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  align-items: center;
  border-right: 1px solid rgba(242, 244, 233, 0.1);
  display: flex;
  gap: 22px;
  min-height: 132px;
  padding: 24px 28px;
}

.metric:last-child {
  border-right: 0;
}

.metric-index {
  align-self: flex-start;
  color: #536662;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.metric div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metric strong {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.metric span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.metric.accent strong {
  color: var(--acid);
}

.content-grid,
.lower-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.45fr);
  margin-top: 18px;
}

.panel {
  background: rgba(15, 37, 38, 0.86);
  border: 1px solid rgba(242, 244, 233, 0.11);
  padding: 32px;
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.panel h2 {
  font-size: 23px;
  font-weight: 520;
  letter-spacing: -0.035em;
  margin: 0;
}

.section-kicker {
  margin-bottom: 11px;
}

.panel-badge {
  background: rgba(216, 255, 67, 0.11);
  border: 1px solid rgba(216, 255, 67, 0.25);
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 10px;
}

.empty-state,
.option-card {
  align-items: center;
  background: rgba(4, 18, 19, 0.5);
  border: 1px dashed rgba(216, 255, 67, 0.19);
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 34px;
  min-height: 148px;
  padding: 28px;
}

.empty-orbit {
  border: 1px solid rgba(216, 255, 67, 0.3);
  border-radius: 50%;
  display: block;
  height: 60px;
  position: relative;
  width: 60px;
}

.empty-orbit::before {
  background: var(--acid);
  border-radius: 50%;
  content: "";
  height: 8px;
  position: absolute;
  right: 5px;
  top: 8px;
  width: 8px;
}

.empty-state strong,
.option-card strong {
  font-size: 17px;
}

.empty-state p,
.option-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 7px 0 0;
}

.option-card {
  justify-content: space-between;
}

.option-card > div {
  display: flex;
  flex-direction: column;
}

.option-card a {
  background: var(--acid);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 13px 16px;
}

.option-date {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sweep-panel {
  background: var(--acid);
  color: var(--ink);
}

.sweep-panel .section-kicker {
  color: #3e5014;
}

.sweep-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
}

.sweep-list {
  border-top: 1px solid rgba(7, 19, 21, 0.2);
  margin: 27px 0 0;
}

.sweep-list div {
  align-items: center;
  border-bottom: 1px solid rgba(7, 19, 21, 0.16);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding: 14px 0;
}

.sweep-list dt {
  color: rgba(7, 19, 21, 0.65);
}

.sweep-list dd {
  font-weight: 700;
  margin: 0;
  max-width: 60%;
  text-align: right;
}

.tiny-note {
  color: rgba(7, 19, 21, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  margin: 20px 0 0;
  text-transform: uppercase;
}

.calendar-panel {
  margin-top: 18px;
}

.legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  gap: 7px;
  text-transform: uppercase;
}

.legend i {
  background: var(--acid);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.date-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(14, minmax(62px, 1fr));
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.date-cell {
  background: rgba(4, 18, 19, 0.42);
  border: 1px solid rgba(242, 244, 233, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 104px;
  padding: 12px;
}

.date-cell span,
.date-cell small {
  color: #718580;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.date-cell strong {
  font-size: 24px;
  font-weight: 500;
  margin: 8px 0 auto;
}

.date-cell.eligible {
  border-color: rgba(216, 255, 67, 0.35);
  box-shadow: inset 0 -3px var(--acid);
}

.date-cell.eligible strong {
  color: var(--acid);
}

.lower-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.activity-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.activity-list li {
  align-items: flex-start;
  border-top: 1px solid rgba(242, 244, 233, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  padding: 17px 0;
}

.activity-icon {
  background: var(--mint);
  border-radius: 50%;
  height: 7px;
  margin-top: 5px;
  width: 7px;
}

.activity-icon.removed_session {
  background: var(--danger);
}

.activity-list strong {
  font-size: 13px;
}

.activity-list p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.activity-list time {
  color: #60736f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.activity-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 15px;
  min-height: 142px;
}

.activity-empty span {
  color: var(--acid);
  font-size: 30px;
}

.rule-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.rule-list li {
  align-items: center;
  border-top: 1px solid rgba(242, 244, 233, 0.09);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 14px 0;
}

.rule-list span {
  color: var(--muted);
}

.rule-list strong {
  color: var(--cream);
  font-size: 11px;
}

.ethics-strip {
  align-items: center;
  border: 1px solid rgba(68, 214, 170, 0.28);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 18px;
  padding: 23px 28px;
}

.ethics-mark {
  align-items: center;
  border: 1px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  display: flex;
  height: 35px;
  justify-content: center;
  width: 35px;
}

.ethics-strip strong {
  font-size: 13px;
}

.ethics-strip p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.ethics-label {
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

footer {
  align-items: center;
  color: #61736f;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  min-height: 110px;
}

footer a:hover {
  color: var(--acid);
}

.footer-brand {
  color: #99aba5;
  transform: scale(0.8);
  transform-origin: left center;
}

@media (max-width: 980px) {
  .shell {
    padding: 0 22px 30px;
  }

  .hero {
    gap: 45px;
    grid-template-columns: 1fr;
    padding: 64px 2% 50px;
  }

  .radar-card {
    justify-self: center;
    width: min(440px, 100%);
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(242, 244, 233, 0.1);
  }

  .content-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .date-strip {
    grid-template-columns: repeat(14, 78px);
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 0 14px 24px;
  }

  .topbar {
    height: 70px;
  }

  .topbar-status {
    font-size: 8px;
  }

  .hero {
    min-height: 0;
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metric {
    gap: 10px;
    min-height: 105px;
    padding: 17px;
  }

  .metric strong {
    font-size: 28px;
  }

  .panel {
    padding: 24px 20px;
  }

  .panel-heading {
    gap: 18px;
  }

  .empty-state,
  .option-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .option-card a {
    text-align: center;
    width: 100%;
  }

  .ethics-strip {
    grid-template-columns: auto 1fr;
  }

  .ethics-label {
    display: none;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    justify-content: center;
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .radar-sweep,
  .pulse {
    animation: none !important;
  }
}

