:root {
  --bg: #020403;
  --panel: #030604;
  --line: #24490e;
  --line-bright: #3d7618;
  --green: #79ea32;
  --green-dim: #4da51d;
  --text: #c7c9c7;
  --muted: #898d89;
  --blue: #2b8fff;
  --orange: #ff9800;
  --purple: #9c3cf2;
  --cyan: #1ed2d8;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 60% 4%, rgba(47, 100, 19, .08), transparent 31rem),
    #010201;
  font: 14px/1.45 var(--mono);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .17;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(112, 255, 55, .055) 3px);
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--green); outline-offset: -3px; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--green); color: #000; }
.skip-link:focus { top: 1rem; }
.terminal {
  width: calc(100% - 12px);
  min-height: calc(100vh - 12px);
  margin: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(1, 3, 2, .96);
  box-shadow: inset 0 0 32px rgba(65, 145, 24, .035), 0 0 24px rgba(41, 94, 14, .08);
}
.topbar {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 20px;
  color: var(--green);
  border-bottom: 1px solid var(--line);
}
.site-id { font-size: 15px; text-shadow: 0 0 10px rgba(121, 234, 50, .26); }
.statusline { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 13px; }
.statusline i { color: var(--green-dim); font-style: normal; }
.shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.nav { padding: 15px 13px; border-bottom: 1px solid var(--line); }
.nav a { display: block; padding: 5px 8px; color: var(--green); font-size: 15px; }
.nav a::before { content: "> "; }
.nav a:hover, .nav a.active { background: rgba(91, 170, 38, .18); color: #a1ff66; }
.side-block { padding: 18px 20px 19px; border-bottom: 1px solid var(--line); }
.side-block h2 { margin: 0 0 8px; color: #a9aca9; font-size: 14px; font-weight: 400; }
.side-block p { margin: 0 0 5px; }
.system-status p { color: var(--green); }
.prompt { margin-top: 16px !important; color: #d8dad8; }
.prompt span, .signoff span { color: var(--green); animation: blink 1.15s step-end infinite; }
.side-fill { flex: 1; min-height: 60px; }
.quick-links { display: flex; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-links a { color: var(--green-dim); font-size: 19px; }
.quick-links a:hover { color: var(--green); text-shadow: 0 0 8px currentColor; }
.sidebar footer { min-height: 150px; padding: 20px; color: #9c9f9c; font-size: 12px; }
.sidebar footer p { margin: 0 0 8px; }
main { min-width: 0; }
.panel { border-bottom: 1px solid var(--line); }
.label {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}
.hero { display: grid; grid-template-columns: minmax(330px, 31%) minmax(600px, 69%); }
.overview { min-height: 280px; padding: 20px 24px; border-right: 1px solid var(--line); }
.overview h1 { margin: 22px 0 12px; color: #e4e6e4; font-size: clamp(28px, 2.15vw, 39px); line-height: 1.27; font-weight: 400; letter-spacing: -.04em; }
mark { padding: 0; color: var(--green); background: transparent; text-shadow: 0 0 11px rgba(121, 234, 50, .26); }
.lede { max-width: 380px; margin: 0; font-size: 15px; }
.actions { display: flex; gap: 10px; margin-top: 21px; }
.button { padding: 8px 13px; color: var(--green); border: 1px solid var(--line-bright); }
.button::before { content: "> "; }
.button:hover { color: #071004; background: var(--green); box-shadow: 0 0 15px rgba(121, 234, 50, .22); }
.matrix { min-width: 0; padding: 17px 18px 0; overflow: hidden; }
.matrix-stage { position: relative; height: 243px; overflow: hidden; }
.matrix-art { position: absolute; width: 100%; height: 100%; inset: 0; }
.creature { filter: drop-shadow(0 0 10px rgba(113, 37, 152, .25)); }
.sweep { transform-origin: 460px 292px; animation: radar 5s linear infinite; }
.signal { position: absolute; display: flex; align-items: center; gap: 9px; z-index: 2; }
.signal b { font-size: 25px; font-weight: 400; }
.signal strong, .signal small { display: block; white-space: nowrap; }
.signal strong { font-weight: 400; }
.signal small { color: currentColor; opacity: .82; font-size: 10px; }
.github { left: 1.8%; top: 13%; color: var(--green); }
.wordpress { left: 1.8%; top: 61%; color: var(--blue); }
.radar-label { right: 2.4%; top: 8%; color: var(--orange); }
.cloudflare { right: 1.8%; top: 42%; color: var(--purple); }
.personal { right: 1.7%; bottom: 10%; color: var(--cyan); }
.metrics { padding: 9px 14px 13px; border-bottom: 1px solid var(--line); }
.metrics > .label { margin-bottom: 7px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; }
.metric {
  position: relative;
  min-height: 172px;
  padding: 13px 15px 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(25, 45, 17, .06), transparent 60%);
}
.metric h3 { margin: 0 0 9px; color: #afb2af; font-size: 13px; font-weight: 400; white-space: nowrap; }
.metric h3 i { color: currentColor; font-size: 18px; font-style: normal; }
.metric > strong { display: block; color: currentColor; font-size: 37px; line-height: 1.1; font-weight: 400; }
.metric p { margin: 5px 0 0; color: #adb0ad; font-size: 12px; line-height: 1.42; }
.metric em { display: block; margin-top: 7px; color: var(--purple); font-size: 12px; font-style: normal; }
.green { color: var(--green) !important; }
.blue { color: var(--blue) !important; }
.orange { color: var(--orange) !important; }
.purple { color: var(--purple) !important; }
.cyan { color: var(--cyan) !important; }
.focus { color: var(--orange); }
.focus > strong { font-size: 25px; }
.bars {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 13px;
  height: 15px;
  color: currentColor;
  opacity: .95;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7px);
  clip-path: polygon(0 75%, 5% 75%, 5% 30%, 10% 30%, 10% 70%, 15% 70%, 15% 5%, 20% 5%, 20% 55%, 25% 55%, 25% 25%, 30% 25%, 30% 80%, 35% 80%, 35% 40%, 40% 40%, 40% 65%, 45% 65%, 45% 15%, 50% 15%, 50% 72%, 55% 72%, 55% 45%, 60% 45%, 60% 85%, 65% 85%, 65% 35%, 70% 35%, 70% 60%, 75% 60%, 75% 10%, 80% 10%, 80% 66%, 85% 66%, 85% 42%, 90% 42%, 90% 77%, 95% 77%, 95% 28%, 100% 28%, 100% 100%, 0 100%);
}
.steady { clip-path: polygon(0 55%, 8% 55%, 8% 35%, 16% 35%, 16% 48%, 24% 48%, 24% 25%, 32% 25%, 32% 42%, 40% 42%, 40% 20%, 48% 20%, 48% 45%, 56% 45%, 56% 28%, 64% 28%, 64% 50%, 72% 50%, 72% 24%, 80% 24%, 80% 39%, 88% 39%, 88% 30%, 96% 30%, 96% 47%, 100% 47%, 100% 100%, 0 100%); }
.lower-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.lower-grid > .panel:first-child { border-right: 1px solid var(--line); }
.panel-head { min-height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 4px; }
.panel-head a, .more { color: var(--green); font-size: 12px; }
.queue-row {
  display: grid;
  grid-template-columns: 42px 68px minmax(180px, 1fr) 90px 90px;
  min-height: 62px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.queue-row:hover, .log a:hover { background: rgba(91, 170, 38, .055); }
.queue-row > span { min-width: 0; }
.project-icon { margin-left: 12px; font-size: 24px; }
.project-icon.build { color: var(--blue); }
.project-icon.plan { color: var(--purple); }
.state { font-size: 12px; }
.state.build { color: var(--blue); }
.state.plan { color: var(--purple); }
.project b, .project small, .project-data small, .repo small { display: block; }
.project b { color: #d0d2d0; font-weight: 400; }
.project small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.project-data, .repo { height: 100%; padding: 10px 9px; border-left: 1px solid var(--line); font-size: 13px; }
.project-data small, .repo small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.project-data i { position: relative; display: block; width: 100%; height: 3px; margin-top: 6px; background: #151815; }
.project-data i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--progress); background: currentColor; }
.repo { color: #a1a4a1; font-size: 10px; }
.more { display: block; padding: 9px; text-align: center; border-top: 1px solid var(--line); }
.log a {
  min-height: 43px;
  display: grid;
  grid-template-columns: 74px 36px minmax(200px, 1fr) 90px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.log time { padding-left: 13px; color: #8e928e; font-size: 10px; }
.log i { font-size: 20px; font-style: normal; }
.log span b, .log span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log span b { color: #bec1be; font-size: 11px; font-weight: 400; }
.log span small { color: var(--muted); font-size: 9px; }
.log em { padding-right: 12px; color: #8e928e; font-size: 9px; font-style: normal; text-align: right; }
.surfaces { padding: 9px 14px 12px; }
.surfaces > .label { margin-bottom: 7px; }
.surface-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)) 1.65fr; gap: 8px; }
.surface, .signoff { min-height: 105px; border: 1px solid var(--line); }
.surface { display: flex; align-items: flex-start; gap: 10px; padding: 16px 12px; }
.surface:hover { border-color: currentColor; background: rgba(81, 147, 28, .04); }
.surface i { font-size: 24px; font-style: normal; }
.surface b, .surface small { display: block; }
.surface b { color: #bfc2bf; font-size: 12px; font-weight: 400; }
.surface small { margin-top: 6px; color: #858985; font-size: 9px; line-height: 1.7; }
.signoff { display: flex; align-items: center; padding: 8px; color: var(--green); }
.signoff svg { width: 86px; flex: 0 0 86px; filter: drop-shadow(0 0 8px rgba(150, 55, 220, .22)); }
.signoff p { margin: 0; font-size: 11px; line-height: 1.6; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes radar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1250px) {
  .hero { grid-template-columns: 340px minmax(570px, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric { min-height: 155px; }
  .surface-grid { grid-template-columns: repeat(3, 1fr); }
  .lower-grid { grid-template-columns: 1fr; }
  .lower-grid > .panel:first-child { border-right: 0; }
}
@media (max-width: 980px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 3px; padding: 9px 14px; }
  .statusline { white-space: normal; font-size: 11px; }
  .shell { grid-template-columns: 175px minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .overview { min-height: 245px; border-right: 0; }
  .matrix { min-height: 300px; }
  .matrix-stage { height: 260px; }
  .queue-row { grid-template-columns: 42px 65px minmax(150px, 1fr) 80px; }
  .queue-row .repo { display: none; }
}
@media (max-width: 700px) {
  .terminal { width: 100%; min-height: 100vh; margin: 0; border-radius: 0; }
  .site-id span { display: none; }
  .statusline { gap: 6px; }
  .statusline span:last-child, .statusline i:last-of-type { display: none; }
  .shell { display: block; }
  .sidebar { border-right: 0; }
  .nav { display: flex; overflow-x: auto; padding: 8px; border-bottom: 1px solid var(--line); }
  .nav a { flex: 0 0 auto; font-size: 12px; }
  .side-block, .side-fill, .quick-links, .sidebar footer { display: none; }
  .overview { padding: 17px; }
  .overview h1 { font-size: 29px; }
  .matrix { padding-inline: 9px; }
  .matrix-stage { height: 245px; }
  .matrix-art { width: 700px; max-width: none; left: 50%; transform: translateX(-50%); }
  .signal { transform: scale(.82); transform-origin: left center; }
  .github, .wordpress { left: 0; }
  .radar-label, .cloudflare, .personal { right: -5px; transform-origin: right center; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .metric { min-height: 145px; padding-inline: 11px; }
  .metric > strong { font-size: 31px; }
  .queue-row { grid-template-columns: 36px 60px minmax(0, 1fr) 68px; }
  .project-icon { margin-left: 8px; font-size: 19px; }
  .project small { white-space: normal; line-height: 1.25; }
  .log a { grid-template-columns: 65px 30px minmax(0, 1fr); padding-block: 4px; }
  .log em { display: none; }
  .surface-grid { grid-template-columns: repeat(2, 1fr); }
  .signoff { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .statusline span:nth-of-type(2), .statusline i { display: none; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { text-align: center; }
  .metric-grid, .surface-grid { grid-template-columns: 1fr; }
  .metric { min-height: 135px; }
  .queue-row { grid-template-columns: 34px 57px minmax(0, 1fr); padding: 7px 0; }
  .project-data { display: none; }
  .surface { min-height: 90px; }
}
