:root {
  --sys-bg: #09100b;
  --sys-bg-2: #0d150f;
  --sys-panel: #111b13;
  --sys-panel-2: #152119;
  --sys-panel-3: #19271c;
  --sys-text: #edf1e8;
  --sys-muted: #8f9b8e;
  --sys-dim: #5f6f62;
  --sys-accent: #a8dc55;
  --sys-accent-soft: rgba(168, 220, 85, .1);
  --sys-amber: #e4aa4c;
  --sys-blue: #72b8af;
  --sys-line: rgba(192, 215, 180, .15);
  --sys-grid: rgba(168, 220, 85, .032);
}

html { overflow-x: clip; }

body.system-visual {
  min-width: 320px;
  overflow-x: clip;
  background: var(--sys-bg);
  color: var(--sys-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.system-visual::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--sys-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sys-grid) 1px, transparent 1px),
    radial-gradient(circle at 68% -10%, rgba(136, 184, 76, .12), transparent 42rem);
  background-size: 32px 32px, 32px 32px, auto;
}

.system-topbar,
.system-shell {
  width: min(calc(100% - 32px), 1560px);
  margin-inline: auto;
}

.system-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--sys-line);
  background: rgba(9, 16, 11, .94);
  backdrop-filter: blur(16px);
}

.system-topbar .gear-brand small { color: var(--sys-accent); }

.system-live {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sys-muted);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: .13em;
}

.system-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sys-accent);
  box-shadow: 0 0 13px var(--sys-accent);
}

.system-live b {
  padding-left: 10px;
  border-left: 1px solid var(--sys-line);
  color: var(--sys-dim);
}

.system-release {
  justify-self: end;
  color: var(--sys-dim);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .1em;
}

.system-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 16px;
}

.system-tree {
  position: sticky;
  top: 82px;
  z-index: 10;
  max-height: calc(100vh - 98px);
  overflow: hidden;
}

.system-tree-disclosure {
  border: 1px solid var(--sys-line);
  background: rgba(13, 22, 15, .94);
  box-shadow: inset 3px 0 0 rgba(168, 220, 85, .72);
}

.system-tree-disclosure > summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  padding: 18px 18px 16px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.system-tree-disclosure > summary::-webkit-details-marker { display: none; }

.system-tree-disclosure[open] > summary {
  border-bottom: 1px solid var(--sys-line);
  background: linear-gradient(90deg, rgba(168, 220, 85, .075), transparent 78%);
}

.system-tree-disclosure > summary span {
  color: var(--sys-accent);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .13em;
}

.system-tree-disclosure > summary > b {
  color: var(--sys-accent);
  font: 900 18px/.8 Arial, sans-serif;
}

.system-tree-disclosure > summary strong {
  color: var(--sys-text);
  font: 900 14px/1 Arial, sans-serif;
  letter-spacing: .04em;
}

.system-tree-disclosure > summary small {
  justify-self: end;
  color: var(--sys-dim);
  font-size: 5.5px;
  letter-spacing: .08em;
}

.system-tree-disclosure > summary::after {
  content: "−";
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--sys-dim);
  font: 900 13px/1 Arial, sans-serif;
}

.system-tree-disclosure:not([open]) > summary::after { content: "+"; }

.system-tree-body {
  max-height: calc(100vh - 167px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 220, 85, .34) transparent;
}

.system-tree-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--sys-line);
}

.system-tree-metrics span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 7px;
  color: var(--sys-dim);
  font-size: 4.5px;
  font-weight: 850;
  letter-spacing: .04em;
  text-align: center;
}

.system-tree-metrics span + span { border-left: 1px solid var(--sys-line); }
.system-tree-metrics b { color: var(--sys-accent); font: 900 12px/1 Arial, sans-serif; }

.system-tree ol,
.system-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-tree nav > ol > li { border-bottom: 1px solid var(--sys-line); }

.system-tree nav > ol > li > button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  min-height: 47px;
  padding: 8px 14px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease;
}

.system-tree nav > ol > li > button:hover { background: rgba(168, 220, 85, .055); }
.system-tree nav > ol > li > button:focus-visible { outline: 1px solid var(--sys-accent); outline-offset: -2px; }

.system-tree nav > ol > li.active > button {
  background: rgba(168, 220, 85, .11);
  box-shadow: inset 2px 0 0 var(--sys-accent);
}

.system-tree nav > ol > li > button > b {
  color: var(--sys-accent);
  font: 900 10px/1 Arial, sans-serif;
}

.system-tree nav > ol > li > button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.system-tree nav > ol > li > button strong {
  overflow: hidden;
  color: var(--sys-text);
  font: 850 8px/1.1 Arial, sans-serif;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.system-tree nav > ol > li > button small {
  overflow: hidden;
  color: var(--sys-dim);
  font-size: 4.7px;
  font-weight: 800;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-tree nav > ol > li > button > i {
  min-width: 18px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 220, 85, .26);
  color: var(--sys-accent);
  font-size: 4.5px;
  font-style: normal;
}

.system-tree nav > ol > li.needs-photo > button > i {
  border-color: rgba(228, 170, 76, .28);
  color: var(--sys-amber);
}

.system-tree nav > ol > li ul {
  position: relative;
  padding: 4px 0 7px;
  background: rgba(4, 9, 5, .25);
}

.system-tree nav > ol > li ul::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 11px;
  left: 28px;
  width: 1px;
  background: rgba(168, 220, 85, .2);
}

.system-tree nav > ol > li ul > li > button,
.system-tree nav > ol > li ul > li > .tree-group-plan {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
  min-height: 29px;
  padding: 5px 14px 5px 19px;
  border: 0;
  color: var(--sys-muted);
  background: transparent;
  text-align: left;
}

.system-tree nav > ol > li ul > li > button { cursor: pointer; }

.system-tree nav > ol > li ul > li > button::before,
.system-tree nav > ol > li ul > li > .tree-group-plan::before {
  content: "";
  position: absolute;
  left: 27px;
  width: 10px;
  height: 1px;
  background: rgba(168, 220, 85, .3);
}

.system-tree nav > ol > li ul > li > button:hover { background: rgba(168, 220, 85, .055); color: var(--sys-text); }
.system-tree nav > ol > li ul > li > button:focus-visible { outline: 1px solid var(--sys-accent); outline-offset: -2px; }
.system-tree nav > ol > li ul > li.active > button { color: var(--sys-text); background: rgba(168, 220, 85, .09); box-shadow: inset 2px 0 0 var(--sys-accent); }
.system-tree nav > ol > li ul > li.is-planned > .tree-group-plan { color: rgba(240, 234, 223, .34); cursor: default; }
.system-tree nav > ol > li ul > li.is-planned > .tree-group-plan::before { background: rgba(228, 170, 76, .28); }

.system-tree nav > ol > li ul > li > :is(button, .tree-group-plan) > span {
  position: relative;
  z-index: 1;
  padding-left: 20px;
  color: var(--sys-dim);
  font-size: 5px;
  font-weight: 850;
}

.system-tree nav > ol > li ul > li > :is(button, .tree-group-plan) > strong {
  font-size: 6.5px;
  font-weight: 750;
}

.system-tree nav > ol > li ul > li > :is(button, .tree-group-plan) > small {
  justify-self: end;
  color: var(--sys-accent);
  font-size: 4.3px;
  font-weight: 900;
  letter-spacing: .04em;
}

.system-tree nav > ol > li ul > li.is-planned > .tree-group-plan > span,
.system-tree nav > ol > li ul > li.is-planned > .tree-group-plan > small { color: var(--sys-amber); opacity: .72; }

.system-tree-legend {
  display: grid;
  gap: 7px;
  padding: 12px 15px;
  color: var(--sys-dim);
  font-size: 5px;
  font-weight: 850;
  letter-spacing: .06em;
}

.system-tree-legend span { display: flex; align-items: center; gap: 7px; }
.system-tree-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--sys-accent); }
.system-tree-legend span:last-child i { background: var(--sys-amber); }

.system-content { min-width: 0; }

.system-hero,
.system-layers,
.system-map,
.system-sector {
  border: 1px solid var(--sys-line);
  background: rgba(14, 23, 16, .88);
}

.system-hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
}

.system-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4.2vw, 58px);
  border-right: 1px solid var(--sys-line);
  background:
    linear-gradient(135deg, rgba(168, 220, 85, .045), transparent 42%),
    rgba(11, 18, 13, .56);
}

.system-hero-copy::before {
  content: "A1 / SYSTEM OVERVIEW";
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--sys-dim);
  font-size: 5px;
  letter-spacing: .08em;
}

.system-hero-copy > p:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--sys-accent);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
}

.system-hero-copy > p:first-child b {
  padding-left: 12px;
  border-left: 1px solid var(--sys-line);
  color: var(--sys-dim);
  font-weight: 800;
}

.system-hero h1 {
  margin: 19px 0 13px;
  font: 900 clamp(48px, 5.35vw, 76px)/.8 Arial, Helvetica, sans-serif;
  letter-spacing: -.06em;
}

.system-hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--sys-accent);
  text-stroke: 1px var(--sys-accent);
}

.system-hero-copy > strong {
  color: var(--sys-muted);
  font-size: 7px;
  letter-spacing: .15em;
}

.system-hero-lead {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--sys-muted);
  font-size: 8.5px;
  line-height: 1.7;
}

.system-microgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 19px;
  border-top: 1px solid var(--sys-line);
  border-left: 1px solid var(--sys-line);
}

.system-microgrid article {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 2px 7px;
  align-content: center;
  padding: 8px;
  overflow: hidden;
  border-right: 1px solid var(--sys-line);
  border-bottom: 1px solid var(--sys-line);
  background: rgba(168, 220, 85, .018);
}

.system-microgrid article::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 3px;
  border-top: 1px solid rgba(168, 220, 85, .25);
  border-bottom: 1px solid rgba(168, 220, 85, .13);
}

.system-microgrid svg {
  grid-row: 1 / -1;
  width: 27px;
  height: 27px;
  align-self: center;
  fill: none;
  stroke: var(--sys-accent);
  stroke-width: 1.2;
  opacity: .78;
}

.system-microgrid span,
.system-microgrid small {
  overflow: hidden;
  color: var(--sys-dim);
  font-size: 4.2px;
  font-weight: 850;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-microgrid b {
  overflow: hidden;
  color: var(--sys-text);
  font: 850 6.5px/1 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-microgrid small { color: var(--sys-accent); }

.system-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--sys-line);
  border-left: 1px solid var(--sys-line);
}

.system-hero-stats article {
  min-width: 0;
  min-height: 65px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid var(--sys-line);
  border-bottom: 1px solid var(--sys-line);
}

.system-hero-stats small,
.system-hero-stats span {
  overflow: hidden;
  color: var(--sys-dim);
  font-size: 5px;
  font-weight: 850;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-hero-stats b {
  grid-column: 1 / -1;
  color: var(--sys-text);
  font: 900 22px/.9 Arial, sans-serif;
}

.system-hero-stats span { color: var(--sys-accent); }

.system-hero figure {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  margin: 0;
  background: #050806;
}

.system-hero figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(3, 8, 4, .48));
}

.system-hero figure > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.96) contrast(1.025) brightness(.98);
}

.system-hero figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  padding: 14px;
  border: 1px solid rgba(168, 220, 85, .36);
  background: rgba(4, 10, 6, .78);
  backdrop-filter: blur(9px);
}

.system-hero figcaption span,
.system-hero figcaption small {
  color: var(--sys-accent);
  font-size: 5.5px;
  font-weight: 850;
  letter-spacing: .09em;
}

.system-hero figcaption strong { font: 850 9px/1 Arial, sans-serif; letter-spacing: .06em; }
.system-hero figcaption small { grid-column: 2; color: var(--sys-dim); }

.system-hero figure > aside {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(168, 220, 85, .3);
  background: rgba(4, 10, 6, .72);
  text-align: right;
}

.system-hero figure > aside span,
.system-hero figure > aside small { color: var(--sys-dim); font-size: 5px; }
.system-hero figure > aside b { color: var(--sys-accent); font-size: 8px; }

.system-layers,
.system-map,
.system-sector { margin-top: 16px; }

.system-layers > header,
.system-map > header {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(270px, .42fr);
  gap: 34px;
  align-items: end;
  padding: 25px 30px 23px;
  border-bottom: 1px solid var(--sys-line);
  background: linear-gradient(90deg, rgba(168, 220, 85, .045), transparent 55%);
}

.system-layers > header > div > span,
.system-map > header span {
  color: var(--sys-accent);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .12em;
}

.system-layers > header h2,
.system-map > header h2 {
  margin: 7px 0 0;
  font: 900 clamp(25px, 2.8vw, 38px)/.94 Arial, sans-serif;
  letter-spacing: -.035em;
}

.system-layers > header p,
.system-map > header p {
  margin: 0;
  color: var(--sys-muted);
  font-size: 8px;
  line-height: 1.65;
}

.system-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.system-layer-grid article {
  position: relative;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
}

.system-layer-grid article + article { border-left: 1px solid var(--sys-line); }
.system-layer-grid article::after { content: ""; position: absolute; top: 0; right: 0; width: 52px; height: 52px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; opacity: .18; transform: translate(26px, -26px) rotate(45deg); }
.system-layer-grid article > svg { position: absolute; top: 17px; right: 17px; width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .42; }
.system-layer-grid article > span { color: var(--sys-accent); font-size: 6px; font-weight: 900; letter-spacing: .11em; }
.system-layer-grid article strong { max-width: calc(100% - 30px); margin-top: 22px; font: 900 14px/1.1 Arial, sans-serif; }
.system-layer-grid article p { margin: 10px 0 18px; color: var(--sys-muted); font-size: 7.5px; line-height: 1.6; }
.system-layer-grid article small { margin-top: auto; color: var(--sys-dim); font-size: 5.5px; font-weight: 850; letter-spacing: .09em; }
.system-layer-grid .mission > span { color: var(--sys-blue); }
.system-layer-grid .base > span { color: var(--sys-amber); }
.system-layer-grid .reserve > span { color: #9caa9d; }

.system-layer-action {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 1px 0 13px;
  padding: 6px 7px;
  border: 1px solid rgba(228, 170, 76, .27);
  background: rgba(228, 170, 76, .045);
  color: var(--sys-amber);
  transition: border-color .18s ease, background .18s ease;
}

.system-layer-action:hover {
  border-color: rgba(228, 170, 76, .55);
  background: rgba(228, 170, 76, .09);
}

.system-layer-action span { font-size: 5px; font-weight: 900; letter-spacing: .08em; }
.system-layer-action b { min-width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid currentColor; font: 900 7px/1 Arial, sans-serif; }

.system-shopping {
  border-top: 1px solid var(--sys-line);
  background: rgba(7, 13, 8, .48);
  scroll-margin-top: 82px;
}

.system-shopping > summary {
  position: relative;
  min-height: 91px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 28px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  background:
    linear-gradient(90deg, rgba(228, 170, 76, .07), transparent 48%),
    var(--sys-panel-2);
  box-shadow: inset 4px 0 0 var(--sys-amber);
}

.system-shopping > summary::-webkit-details-marker { display: none; }
.system-shopping > summary > div:first-child { display: grid; gap: 5px; }
.system-shopping > summary > div:first-child > span { color: var(--sys-amber); font-size: 5.5px; font-weight: 900; letter-spacing: .11em; }
.system-shopping > summary > div:first-child > strong { font: 900 clamp(20px, 2.4vw, 31px)/1 Arial, sans-serif; letter-spacing: -.025em; }
.system-shopping > summary > div:first-child > small { color: var(--sys-muted); font-size: 6px; font-weight: 800; letter-spacing: .08em; }

.system-shopping-summary {
  min-width: 116px;
  display: grid;
  grid-template-columns: auto 26px;
  gap: 3px 10px;
  align-items: center;
  padding-left: 20px;
  border-left: 1px solid var(--sys-line);
}

.system-shopping-summary b { color: var(--sys-amber); font: 900 26px/.9 Arial, sans-serif; }
.system-shopping-summary span { color: var(--sys-dim); font-size: 5px; font-weight: 900; letter-spacing: .08em; }
.system-shopping-summary i {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  position: relative;
  border: 1px solid rgba(228, 170, 76, .4);
  border-radius: 50%;
}
.system-shopping-summary i::before,
.system-shopping-summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 1px; background: var(--sys-amber); transform: translate(-50%, -50%); }
.system-shopping-summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .18s ease; }
.system-shopping[open] .system-shopping-summary i::after { opacity: 0; }

.system-shopping-body { border-top: 1px solid var(--sys-line); }
.system-shopping-body > header {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px 27px;
  border-bottom: 1px solid var(--sys-line);
}

.system-shopping-body > header > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.system-shopping-body > header > div:first-child > span { color: var(--sys-dim); font-size: 5px; font-weight: 900; letter-spacing: .08em; }
.system-shopping-body > header > div:first-child > strong { color: var(--sys-text); font: 900 16px/1 Arial, sans-serif; }
.system-shopping-body > header > div:first-child > strong b:first-child { color: var(--sys-accent); }

.system-shopping-progress { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 10px; align-items: center; }
.system-shopping-progress > i { height: 5px; overflow: hidden; border: 1px solid var(--sys-line); background: #080d09; }
.system-shopping-progress > i > b { width: 0; height: 100%; display: block; background: linear-gradient(90deg, var(--sys-accent), #d4f480); box-shadow: 0 0 12px rgba(168, 220, 85, .35); transition: width .25s ease; }
.system-shopping-progress > span { color: var(--sys-accent); font: 900 9px/1 Arial, sans-serif; text-align: right; }

.system-shopping-body > header > button {
  padding: 7px 9px;
  border: 1px solid var(--sys-line);
  background: transparent;
  color: var(--sys-dim);
  font-size: 5px;
  font-weight: 900;
  letter-spacing: .07em;
  cursor: pointer;
}
.system-shopping-body > header > button:hover { border-color: rgba(228, 170, 76, .35); color: var(--sys-amber); }

.system-shopping-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--sys-line);
}

.system-shopping-grid > section { min-width: 0; border-right: 1px solid var(--sys-line); }
.system-shopping-grid > section > header {
  min-height: 52px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sys-line);
  background: rgba(168, 220, 85, .025);
}
.system-shopping-grid > section > header > b { color: var(--sys-accent); font: 900 11px/1 Arial, sans-serif; }
.system-shopping-grid > section:nth-child(3) > header > b,
.system-shopping-grid > section:nth-child(4) > header > b { color: var(--sys-amber); }
.system-shopping-grid > section > header > div { min-width: 0; display: grid; gap: 4px; }
.system-shopping-grid > section > header strong { overflow: hidden; font: 850 7px/1 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.system-shopping-grid > section > header small { color: var(--sys-dim); font-size: 4.5px; font-weight: 850; }

.system-shopping-list { display: grid; }
.system-shopping-list label {
  position: relative;
  min-width: 0;
  min-height: 45px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sys-line);
  cursor: pointer;
  transition: background .16s ease;
}
.system-shopping-list label:hover { background: rgba(168, 220, 85, .035); }
.system-shopping-list input { position: absolute; opacity: 0; pointer-events: none; }
.system-shopping-list label > i { width: 16px; height: 16px; position: relative; border: 1px solid rgba(168, 220, 85, .28); background: #09100b; }
.system-shopping-list label > i::after { content: ""; position: absolute; width: 7px; height: 4px; top: 4px; left: 4px; border-bottom: 1px solid #10170f; border-left: 1px solid #10170f; opacity: 0; transform: rotate(-45deg); }
.system-shopping-list label > span { min-width: 0; display: grid; gap: 4px; }
.system-shopping-list label > span > b { overflow: hidden; font: 800 7px/1.1 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.system-shopping-list label > span > small { overflow: hidden; color: var(--sys-dim); font-size: 4.4px; font-weight: 800; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.system-shopping-list label > em { color: var(--sys-dim); font-size: 5px; font-style: normal; font-weight: 900; }
.system-shopping-list input:checked + i { border-color: var(--sys-accent); background: var(--sys-accent); box-shadow: 0 0 9px rgba(168, 220, 85, .22); }
.system-shopping-list input:checked + i::after { opacity: 1; }
.system-shopping-list label:has(input:checked) { background: rgba(168, 220, 85, .045); }
.system-shopping-list label:has(input:checked) > span > b { color: var(--sys-muted); text-decoration: line-through; text-decoration-color: rgba(168, 220, 85, .45); }

.system-shopping-add {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 11px 27px 13px;
  border-top: 1px solid var(--sys-line);
  background: rgba(228, 170, 76, .025);
}
.system-shopping-add label { display: grid; gap: 6px; }
.system-shopping-add label > span { color: var(--sys-amber); font-size: 4.8px; font-weight: 900; letter-spacing: .09em; }
.system-shopping-add input { width: 100%; height: 29px; padding: 0 10px; border: 1px solid var(--sys-line); border-radius: 0; outline: 0; background: #09100b; color: var(--sys-text); font: 750 7px/1 ui-monospace, monospace; }
.system-shopping-add input:focus { border-color: rgba(168, 220, 85, .48); }
.system-shopping-add button { height: 29px; padding: 0 12px; border: 1px solid rgba(228, 170, 76, .32); background: rgba(228, 170, 76, .06); color: var(--sys-amber); font-size: 5px; font-weight: 900; letter-spacing: .08em; cursor: pointer; }
.system-shopping-add button b { margin-left: 7px; font-size: 9px; }

.system-shopping-custom { border-top: 1px solid var(--sys-line); }
.system-shopping-custom > header { display: flex; gap: 12px; padding: 10px 27px; color: var(--sys-dim); font-size: 5px; letter-spacing: .08em; }
.system-shopping-custom > header span { color: var(--sys-amber); font-weight: 900; }
.system-shopping-custom .system-shopping-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.system-shopping-custom .system-shopping-list label { border-right: 1px solid var(--sys-line); }
.system-shopping-custom label > button { width: 18px; height: 18px; padding: 0; border: 1px solid rgba(228, 170, 76, .25); background: transparent; color: var(--sys-amber); font-size: 8px; cursor: pointer; }

.system-map > header { grid-template-columns: 1fr minmax(300px, .55fr); }
.system-map > header > div > span { color: var(--sys-accent); }
.system-map > header p i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--sys-accent); box-shadow: 0 0 9px rgba(168, 220, 85, .7); }
.system-map > header p b { color: var(--sys-amber); }
.system-map-note { display: grid; gap: 11px; }
.system-map-note > div { display: flex; flex-wrap: wrap; gap: 7px; }
.system-map-note > div span { padding: 4px 6px; border: 1px solid var(--sys-line); color: var(--sys-dim); font-size: 4.5px; letter-spacing: .06em; }
.system-map-note > div span:first-child { color: var(--sys-accent); }
.system-map-note > div span:last-child { color: var(--sys-amber); }

.system-map-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.system-map-grid article {
  position: relative;
  min-width: 0;
  min-height: 105px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
  align-content: center;
  padding: 14px;
  border-right: 1px solid var(--sys-line);
  border-bottom: 1px solid var(--sys-line);
  background: rgba(8, 14, 9, .22);
}

.system-map-grid article::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(168, 220, 85, .16);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(168, 220, 85, .22) 48% 52%, transparent 53%),
    linear-gradient(transparent 47%, rgba(168, 220, 85, .22) 48% 52%, transparent 53%);
  opacity: .72;
}

.system-map-grid article.pending::before { border-color: rgba(228, 170, 76, .2); opacity: .5; }
.system-map-grid article.selected::before { box-shadow: 0 0 10px rgba(168, 220, 85, .25); opacity: 1; }

.system-map-grid article:nth-child(5n) { border-right: 0; }
.system-map-grid article:nth-last-child(-n + 5) { border-bottom: 0; }
.system-map-grid article > b { color: var(--sys-accent); font: 900 13px/1 Arial, sans-serif; }
.system-map-grid article > div { min-width: 0; display: grid; gap: 6px; }
.system-map-grid article strong { overflow: hidden; font: 850 8px/1.15 Arial, sans-serif; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.system-map-grid article span { color: var(--sys-dim); font-size: 5px; font-weight: 800; }
.system-map-grid article small { grid-column: 2; width: max-content; padding: 3px 5px; border: 1px solid rgba(168, 220, 85, .25); color: var(--sys-accent); font-size: 4.5px; font-weight: 900; letter-spacing: .07em; }
.system-map-grid article.pending > b { color: var(--sys-amber); }
.system-map-grid article.pending small { border-color: rgba(228, 170, 76, .28); color: var(--sys-amber); }
.system-map-grid article.selected { background: rgba(168, 220, 85, .1); box-shadow: inset 3px 0 0 var(--sys-accent); }

.system-sector-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 95px;
  gap: 18px;
  align-items: center;
  padding: 23px 29px;
  border-bottom: 1px solid var(--sys-line);
  background: var(--sys-panel-2);
  box-shadow: inset 4px 0 0 var(--sys-accent);
}

.system-sector-mark { display: grid; grid-template-columns: auto 30px; gap: 2px 7px; align-items: center; color: var(--sys-accent); }
.system-sector-mark > b { font: 900 19px/1 Arial, sans-serif; }
.system-sector-mark > svg { grid-row: 1 / 3; grid-column: 2; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .68; }
.system-sector-mark > small { color: var(--sys-dim); font-size: 4.5px; letter-spacing: .1em; }
.system-sector-head > div small { color: var(--sys-accent); font-size: 5.5px; font-weight: 900; letter-spacing: .1em; }
.system-sector-head h2 { margin: 6px 0 0; font: 900 clamp(25px, 3vw, 39px)/.94 Arial, sans-serif; letter-spacing: -.035em; }
.system-sector-head p { margin: 9px 0 0; color: var(--sys-muted); font-size: 7.5px; line-height: 1.5; text-transform: uppercase; }
.system-sector-head > aside { display: grid; gap: 3px; padding-left: 17px; border-left: 1px solid var(--sys-line); text-align: right; }
.system-sector-head > aside b { color: var(--sys-accent); font: 900 25px/1 Arial, sans-serif; }
.system-sector-head > aside span,
.system-sector-head > aside small { color: var(--sys-dim); font-size: 5px; font-weight: 850; letter-spacing: .08em; }

.system-sector-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  border-bottom: 1px solid var(--sys-line);
}

.system-sector-brief article { min-height: 150px; padding: 23px 28px; }
.system-sector-brief article + article { border-left: 1px solid var(--sys-line); }
.system-sector-brief article > span { color: var(--sys-accent); font-size: 5.5px; font-weight: 900; letter-spacing: .11em; }
.system-sector-brief article:first-child > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 21px; }
.system-sector-brief article:first-child b { padding: 8px 10px; border: 1px solid var(--sys-line); color: var(--sys-text); font: 850 9px/1 Arial, sans-serif; }
.system-sector-brief article:first-child i { color: var(--sys-accent); font-style: normal; }
.system-sector-brief article p { margin: 15px 0 0; color: var(--sys-muted); font-size: 7px; line-height: 1.6; }
.system-sector-brief ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.system-sector-brief li { display: flex; align-items: center; gap: 8px; color: var(--sys-muted); font-size: 6px; font-weight: 850; letter-spacing: .06em; }
.system-sector-brief li i { width: 5px; height: 5px; border-radius: 50%; background: var(--sys-accent); box-shadow: 0 0 8px rgba(168, 220, 85, .6); }

.system-unit-list { padding: 0 28px; }

.system-unit {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 24px;
  padding: 25px 0;
}

.system-unit + .system-unit { border-top: 1px dashed rgba(192, 215, 180, .2); }

.system-unit > button {
  position: relative;
  align-self: start;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(168, 220, 85, .28);
  background: #050806;
  color: inherit;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.system-unit > button::before { content: "IMG"; position: absolute; top: 6px; left: 6px; z-index: 2; padding: 3px 4px; background: var(--sys-accent); color: #10170f; font-size: 5px; font-weight: 900; }
.system-unit > button img { width: 100%; aspect-ratio: 3 / 2; display: block; object-fit: cover; filter: saturate(.6) contrast(1.12); }
.system-unit > button span { position: absolute; right: 5px; bottom: 5px; padding: 3px 4px; background: rgba(4, 9, 5, .78); color: var(--sys-accent); font-size: 4.5px; font-weight: 850; }
.system-unit-main { min-width: 0; }
.system-unit-main > header { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 11px; align-items: start; }
.system-unit-main > header > span { padding-top: 5px; color: var(--sys-accent); font-size: 7px; font-weight: 900; }
.system-unit-main h3 { margin: 0; font: 900 clamp(17px, 1.8vw, 24px)/1 Arial, sans-serif; letter-spacing: -.02em; }
.system-unit-main > header > div { display: flex; gap: 6px; }
.system-unit-main > header b,
.system-unit-main > header small { padding: 5px 7px; border: 1px solid rgba(168, 220, 85, .26); color: var(--sys-accent); font-size: 5px; font-weight: 900; letter-spacing: .06em; }
.system-unit-main > header small { border-color: rgba(228, 170, 76, .28); color: var(--sys-amber); }
.system-unit-main dl { display: grid; grid-template-columns: .9fr 1.45fr .85fr; margin: 18px 0 0 65px; border-top: 1px solid var(--sys-line); border-left: 1px solid var(--sys-line); }
.system-unit-main dl > div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--sys-line); border-bottom: 1px solid var(--sys-line); }
.system-unit-main dt { color: var(--sys-accent); font-size: 5px; font-weight: 900; letter-spacing: .1em; }
.system-unit-main dd { margin: 8px 0 0; color: var(--sys-muted); font-size: 7.5px; line-height: 1.5; }
.system-unit-main dl > div:first-child dd { color: var(--sys-text); font-weight: 750; }

.system-next-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 21px;
  align-items: center;
  padding: 24px 28px;
  border-top: 1px solid var(--sys-line);
  background: rgba(228, 170, 76, .035);
}

.system-next-module > div { display: grid; gap: 7px; }
.system-next-module span { color: var(--sys-amber); font-size: 5.5px; font-weight: 900; letter-spacing: .1em; }
.system-next-module strong { font: 850 13px/1 Arial, sans-serif; }
.system-next-module p { margin: 0; color: var(--sys-muted); font-size: 7px; }
.system-next-module > b { color: var(--sys-amber); font: 900 24px/1 Arial, sans-serif; }
.system-next-module > small { padding: 6px 8px; border: 1px solid rgba(228, 170, 76, .28); color: var(--sys-amber); font-size: 5px; font-weight: 900; }

.system-footer {
  min-height: 105px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--sys-dim);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: .08em;
}

.system-footer b { color: var(--sys-muted); }
.system-footer small { justify-self: end; }

@media (max-width: 1220px) {
  .system-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .system-hero { grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr); }
  .system-hero-copy { padding-inline: 34px; }
  .system-microgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .system-map-grid article:nth-child(5n) { border-right: 1px solid var(--sys-line); }
  .system-map-grid article:nth-child(3n) { border-right: 0; }
  .system-map-grid article:nth-last-child(-n + 5) { border-bottom: 1px solid var(--sys-line); }
  .system-map-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
  .system-layer-grid article { padding: 18px; }
  .system-shopping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-shopping-grid > section:nth-child(3),
  .system-shopping-grid > section:nth-child(4) { border-top: 1px solid var(--sys-line); }
  .system-unit-main dl { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .system-topbar { grid-template-columns: 1fr auto; }
  .system-live { display: none; }
  .system-shell { grid-template-columns: 1fr; }
  .system-tree { position: static; max-height: none; }
  .system-tree-body { max-height: min(62vh, 570px); }
  .system-tree-disclosure > summary { cursor: pointer; }
  .system-hero { grid-template-columns: 1fr; }
  .system-hero-copy { border-right: 0; border-bottom: 1px solid var(--sys-line); }
  .system-hero figure,
  .system-hero { min-height: 0; }
  .system-hero figure { height: auto; aspect-ratio: 3 / 2; }
  .system-layers > header,
  .system-map > header { grid-template-columns: 1fr; gap: 18px; }
  .system-layer-grid { grid-template-columns: repeat(2, 1fr); }
  .system-layer-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--sys-line); }
  .system-layer-grid article:nth-child(4) { border-top: 1px solid var(--sys-line); }
  .system-shopping-body > header { grid-template-columns: auto minmax(180px, 1fr); }
  .system-shopping-body > header > button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
  .system-topbar,
  .system-shell { width: min(calc(100% - 16px), 1560px); }
  .system-topbar { min-height: 61px; }
  .system-topbar .gear-brand img { width: 31px; height: 31px; }
  .system-release { font-size: 4.8px; }
  .system-shell { gap: 10px; padding-top: 10px; }

  .system-tree-disclosure > summary { padding-inline: 15px; }
  .system-hero-copy { padding: 42px 20px 27px; }
  .system-hero-copy > p:first-child { align-items: flex-start; flex-direction: column; gap: 7px; }
  .system-hero-copy > p:first-child b { padding: 0; border: 0; }
  .system-hero h1 { font-size: clamp(43px, 13vw, 56px); }
  .system-hero-lead { font-size: 8.5px; }
  .system-microgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 17px; }
  .system-microgrid article { min-height: 61px; }
  .system-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .system-hero figure { height: auto; aspect-ratio: 3 / 2; }

  .system-layers > header,
  .system-map > header { padding: 27px 19px 24px; }
  .system-layers > header h2,
  .system-map > header h2 { font-size: 29px; }
  .system-layer-grid { grid-template-columns: 1fr; }
  .system-layer-grid article { min-height: 155px; }
  .system-layer-grid article + article { border-left: 0; border-top: 1px solid var(--sys-line); }

  .system-shopping > summary { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 17px 15px; }
  .system-shopping > summary > div:first-child > strong { font-size: 18px; }
  .system-shopping-summary { min-width: auto; padding-left: 12px; }
  .system-shopping-summary b { font-size: 20px; }
  .system-shopping-body > header { grid-template-columns: 1fr; gap: 11px; padding: 14px 15px; }
  .system-shopping-body > header > button { grid-column: auto; width: max-content; }
  .system-shopping-grid { grid-template-columns: 1fr; }
  .system-shopping-grid > section + section { border-top: 1px solid var(--sys-line); }
  .system-shopping-add { grid-template-columns: 1fr; gap: 10px; padding: 12px 15px; }
  .system-shopping-add button { width: 100%; }
  .system-shopping-custom > header { padding-inline: 15px; }
  .system-shopping-custom .system-shopping-list { grid-template-columns: 1fr; }

  .system-map-grid { grid-template-columns: 1fr 1fr; }
  .system-map-grid article { min-height: 111px; padding: 12px 10px; }
  .system-map-grid article:nth-child(3n) { border-right: 1px solid var(--sys-line); }
  .system-map-grid article:nth-child(2n) { border-right: 0; }
  .system-map-grid article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--sys-line); }
  .system-map-grid article:last-child { border-bottom: 0; }

  .system-sector-head { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; padding: 20px 15px; }
  .system-sector-mark { grid-template-columns: 1fr; }
  .system-sector-mark > b { font-size: 16px; }
  .system-sector-mark > svg { grid-row: 2; grid-column: 1; width: 27px; height: 27px; }
  .system-sector-mark > small { display: none; }
  .system-sector-head h2 { font-size: 25px; }
  .system-sector-head > aside { display: none; }
  .system-sector-brief { grid-template-columns: 1fr; }
  .system-sector-brief article { padding: 21px 16px; }
  .system-sector-brief article + article { border-top: 1px solid var(--sys-line); border-left: 0; }
  .system-unit-list { padding: 0 15px; }
  .system-unit { grid-template-columns: 98px minmax(0, 1fr); gap: 13px; padding: 21px 0; }
  .system-unit-main > header { grid-template-columns: 32px minmax(0, 1fr); gap: 5px; }
  .system-unit-main h3 { font-size: 17px; }
  .system-unit-main > header > div { grid-column: 2; flex-wrap: wrap; margin-top: 4px; }
  .system-unit-main dl { margin: 13px 0 0; }
  .system-unit-main dd { font-size: 8px; }
  .system-next-module { grid-template-columns: 1fr auto; padding: 21px 16px; }
  .system-next-module > small { grid-column: 2; }
  .system-footer { grid-template-columns: 1fr auto; min-height: 90px; }
  .system-footer b { text-align: right; }
  .system-footer small { display: none; }
}

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