:root {
  color-scheme: dark;
  --bg: #010302;
  --panel: #020d0c;
  --panel-2: #031816;
  --text: #c9ffe8;
  --muted: #3f8f94;
  --grid: rgba(20, 202, 255, 0.12);
  --grid-soft: rgba(20, 202, 255, 0.045);
  --green: #79f6a1;
  --green-2: #c0ff82;
  --cyan: #19c9ff;
  --orange: #f59a23;
  --red: #ff4f57;
  --line: #155e62;
  --line-strong: #52d9c0;
  --cut: #19c9ff;
  --crease: #f59a23;
  --crt-opacity: 0.72;
  --crt-scanline-opacity: 0.34;
  --crt-noise-opacity: 0.06;
  --crt-grid-opacity: 0.18;
  --crt-vignette-opacity: 0.7;
  --crt-text-glow: 0.72;
  --crt-pixel-size: 4px;
  --crt-pixel-gap: 10px;
  --terminal-scrollbar-size: 52px;
  --terminal-scrollbar-track: rgba(1, 15, 11, 0.92);
  --terminal-scrollbar-thumb: #a9ffb9;
  --terminal-scrollbar-line: rgba(121, 246, 161, 0.26);
  --terminal-scrollbar-glow: rgba(121, 246, 161, 0.18);
}

.crt-subtle {
  --crt-opacity: 0.48;
  --crt-scanline-opacity: 0.2;
  --crt-noise-opacity: 0.035;
  --crt-grid-opacity: 0.1;
  --crt-vignette-opacity: 0.48;
  --crt-text-glow: 0.5;
  --crt-pixel-size: 3px;
  --crt-pixel-gap: 11px;
}

.crt-normal {
  --crt-opacity: 0.2;
  --crt-scanline-opacity: 0.34;
  --crt-noise-opacity: 0.2;
  --crt-grid-opacity: 0.9;
  --crt-vignette-opacity: 0.7;
  --crt-text-glow: 0.72;
  --crt-pixel-size: 3px;
  --crt-pixel-gap: 12px;
}

.crt-strong {
  --crt-opacity: 0.92;
  --crt-scanline-opacity: 0.48;
  --crt-noise-opacity: 0.09;
  --crt-grid-opacity: 0.27;
  --crt-vignette-opacity: 0.84;
  --crt-text-glow: 0.92;
  --crt-pixel-size: 5px;
  --crt-pixel-gap: 9px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(120, 255, 195, 0.045) 0 1px, transparent 1px 4px),
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 44%, rgba(0, 95, 90, 0.17), transparent 58%),
    radial-gradient(ellipse at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.44) 100%),
    var(--bg);
  background-size: 100% 5px, 24px 24px, 24px 24px, 100% 100%, 100% 100%;
  color: var(--text);
  font-family: "Tektur", "Tektur Fallback", monospace;
}

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: var(--crt-opacity);
  isolation: isolate;
}

.crt-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crt-scanlines {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(205, 255, 229, 0.22) 0 1px,
      transparent 1px 3px,
      rgba(0, 0, 0, 0.2) 3px 4px
    );
  mix-blend-mode: screen;
  opacity: var(--crt-scanline-opacity);
}

.crt-grid {
  background:
    radial-gradient(circle, rgba(25, 201, 255, 0.5) 0 calc(var(--crt-pixel-size) * 0.5), transparent calc(var(--crt-pixel-size) * 0.62)),
    radial-gradient(circle, rgba(245, 154, 35, 0.22) 0 calc(var(--crt-pixel-size) * 0.36), transparent calc(var(--crt-pixel-size) * 0.48)),
    repeating-linear-gradient(90deg, rgba(25, 201, 255, 0.12) 0 1px, transparent 1px var(--crt-pixel-gap));
  background-position: 0 0, calc(var(--crt-pixel-gap) * 0.5) calc(var(--crt-pixel-gap) * 0.5), 0 0;
  background-size: var(--crt-pixel-gap) var(--crt-pixel-gap), var(--crt-pixel-gap) var(--crt-pixel-gap), var(--crt-pixel-gap) 100%;
  mix-blend-mode: screen;
  opacity: var(--crt-grid-opacity);
}

.crt-noise {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 42% 34%, rgba(25, 201, 255, 0.75) 0 0.55px, transparent 0.75px),
    radial-gradient(circle at 72% 62%, rgba(245, 154, 35, 0.62) 0 0.5px, transparent 0.72px),
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.72) 0 0.5px, transparent 0.7px),
    radial-gradient(circle at 25% 74%, rgba(121, 246, 161, 0.7) 0 0.55px, transparent 0.76px);
  background-size: 37px 31px, 53px 47px, 61px 59px, 43px 41px, 71px 67px;
  opacity: var(--crt-noise-opacity);
  mix-blend-mode: screen;
  animation: crt-noise-shift 0.92s steps(2, end) infinite;
}

.crt-vignette {
  background:
    linear-gradient(90deg, rgba(255, 90, 40, 0.035), transparent 15%, transparent 85%, rgba(0, 200, 255, 0.035)),
    radial-gradient(ellipse at center, transparent 44%, rgba(0, 0, 0, 0.74) 100%);
  opacity: var(--crt-vignette-opacity);
}

.crt-flicker {
  background: rgba(170, 255, 230, 0.055);
  mix-blend-mode: screen;
  opacity: 0.06;
  animation: crt-flicker 6.8s steps(1, end) infinite;
}

.crt-frame {
  border: 2px solid rgba(40, 216, 208, 0.55);
  box-shadow:
    inset 0 0 0 7px rgba(2, 12, 9, 0.82),
    inset 0 0 0 9px rgba(20, 202, 255, 0.12),
    inset 0 0 32px rgba(25, 201, 255, 0.1),
    inset 0 0 150px rgba(0, 0, 0, 0.86);
  opacity: var(--crt-vignette-opacity);
}

@keyframes crt-noise-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  33% {
    transform: translate3d(-7px, 5px, 0);
  }

  66% {
    transform: translate3d(4px, -6px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes crt-flicker {
  0%,
  18%,
  22%,
  48%,
  52%,
  76%,
  100% {
    opacity: 0.035;
  }

  19%,
  49%,
  77% {
    opacity: 0.075;
  }

  21%,
  51% {
    opacity: 0.018;
  }
}

button,
input,
select {
  font: inherit;
}

.microline,
.telemetry-cell span,
.field span,
.readout-row span,
.status-row span,
.export-readout span,
.module-header span,
.submodule-title,
.viewport-toolbar span,
.session-info p,
.parameter-table th,
.log-grid span {
  text-shadow: 0 0 calc(6px * var(--crt-text-glow)) rgba(25, 201, 255, 0.24);
}

h1,
h1 span,
.orange,
.telemetry-cell.accent strong,
.session-info span,
.module-header em,
.viewport-badge,
.coordinate-chip,
.download-link,
.primary-action,
.full-action {
  text-shadow:
    0 0 calc(8px * var(--crt-text-glow)) rgba(245, 154, 35, 0.34),
    0 0 calc(14px * var(--crt-text-glow)) rgba(25, 201, 255, 0.08);
}

img,
canvas {
  image-rendering: auto;
}

.parameter-table-wrap,
.log-grid,
.status-list {
  scrollbar-color: var(--terminal-scrollbar-thumb) var(--terminal-scrollbar-track);
  scrollbar-width: auto;
}

.parameter-table-wrap::-webkit-scrollbar,
.log-grid::-webkit-scrollbar,
.status-list::-webkit-scrollbar {
  width: var(--terminal-scrollbar-size);
  height: calc(var(--terminal-scrollbar-size) * 0.72);
}

.parameter-table-wrap::-webkit-scrollbar-track,
.log-grid::-webkit-scrollbar-track,
.status-list::-webkit-scrollbar-track {
  border-left: 2px solid rgba(121, 246, 161, 0.46);
  border-right: 2px solid rgba(121, 246, 161, 0.28);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(121, 246, 161, 0.11) 0 27px,
      var(--terminal-scrollbar-line) 27px 29px,
      rgba(0, 0, 0, 0.18) 29px 56px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(121, 246, 161, 0.16) 0 2px,
      transparent 2px 9px
    ),
    var(--terminal-scrollbar-track);
  box-shadow:
    inset 0 0 0 1px rgba(121, 246, 161, 0.08),
    inset 0 0 18px rgba(0, 0, 0, 0.42);
}

.parameter-table-wrap::-webkit-scrollbar-thumb,
.log-grid::-webkit-scrollbar-thumb,
.status-list::-webkit-scrollbar-thumb {
  min-height: 68px;
  border: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.24) 0 1px,
      transparent 1px 5px
    ),
    var(--terminal-scrollbar-thumb);
  box-shadow:
    inset 0 0 0 2px rgba(1, 15, 11, 0.18),
    inset -8px 0 0 rgba(1, 15, 11, 0.08),
    0 0 12px var(--terminal-scrollbar-glow);
}

.parameter-table-wrap::-webkit-scrollbar-thumb:hover,
.log-grid::-webkit-scrollbar-thumb:hover,
.status-list::-webkit-scrollbar-thumb:hover {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28) 0 1px,
      transparent 1px 5px
    ),
    #c0ffca;
}

.parameter-table-wrap::-webkit-scrollbar-corner,
.log-grid::-webkit-scrollbar-corner,
.status-list::-webkit-scrollbar-corner {
  background: var(--terminal-scrollbar-track);
}

.parameter-table-wrap::-webkit-scrollbar-button,
.log-grid::-webkit-scrollbar-button,
.status-list::-webkit-scrollbar-button {
  display: none;
}

.console-shell {
  width: 100vw;
  height: 100dvh;
  min-height: 620px;
  display: grid;
  grid-template-rows: 126px minmax(0, 1fr) 172px;
  gap: 7px;
  padding: 10px;
  overflow: hidden;
}

.system-header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(430px, 0.8fr) minmax(0, 1.8fr);
  gap: 8px;
}

.identity-block,
.telemetry-strip,
.module {
  position: relative;
  border: 1px solid rgba(48, 215, 207, 0.54);
  background:
    linear-gradient(rgba(25, 201, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 201, 255, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(120, 255, 195, 0.035) 0 1px, transparent 1px 4px),
    rgba(1, 8, 7, 0.96),
    var(--panel);
  background-size: 16px 16px, 16px 16px, 100% 4px, 100% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(23, 216, 255, 0.09),
    inset 0 0 24px rgba(25, 201, 255, 0.04),
    0 0 24px rgba(0, 0, 0, 0.46);
}

.identity-block::before,
.telemetry-strip::before,
.module::before {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 30px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 1px 30px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 30px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 1px 30px no-repeat,
    linear-gradient(var(--green), var(--green)) left bottom / 30px 1px no-repeat,
    linear-gradient(var(--green), var(--green)) left bottom / 1px 30px no-repeat,
    linear-gradient(var(--green), var(--green)) right bottom / 30px 1px no-repeat,
    linear-gradient(var(--green), var(--green)) right bottom / 1px 30px no-repeat;
  opacity: 0.6;
}

.identity-block {
  min-width: 0;
  padding: 10px 20px 8px;
  overflow: hidden;
}

.microline {
  margin-bottom: 4px;
  color: var(--cyan);
  width: 0;
  max-width: max-content;
  display: block;
  overflow: hidden;
  border-right: 2px solid var(--cyan);
  font-size: 16px;
  white-space: nowrap;
  animation: microline-type 10s steps(56, end) infinite;
}

@keyframes microline-type {
  0% {
    width: 0;
  }

  32%,
  92% {
    width: 56ch;
  }

  93%,
  100% {
    width: 0;
  }
}

h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 4px 14px 6px 0;
  border-right: 0;
  background:
    repeating-linear-gradient(0deg, rgba(245, 154, 35, 0.16) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, rgba(245, 154, 35, 0.12), transparent 88%);
  color: var(--orange);
  font-family: "Tektur", "Tektur Fallback", monospace;
  font-size: 78px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    5px 0 0 rgba(25, 201, 255, 0.28),
    -4px 0 0 rgba(255, 79, 87, 0.24),
    0 0 14px rgba(245, 154, 35, 0.74),
    0 0 34px rgba(245, 154, 35, 0.28);
  white-space: nowrap;
  animation: title-signal-skew 4.8s steps(1, end) infinite;
}

h1::before,
h1::after {
  position: absolute;
  left: 0;
  top: 0;
  content: attr(data-text);
  pointer-events: none;
}

h1::before {
  color: var(--cyan);
  clip-path: inset(4% 0 72% 0);
  opacity: 0.78;
  transform: translate(-8px, -1px);
  animation: title-glitch-a 2.6s steps(1, end) infinite;
}

h1::after {
  color: var(--red);
  clip-path: inset(58% 0 6% 0);
  opacity: 0.54;
  transform: translate(7px, 1px);
  animation: title-glitch-b 3.1s steps(1, end) infinite;
}

@keyframes title-signal-skew {
  0%,
  74%,
  82%,
  100% {
    transform: skewX(0deg);
  }

  75% {
    transform: skewX(-4deg);
  }

  77% {
    transform: skewX(3deg);
  }
}

@keyframes title-glitch-a {
  0%,
  76%,
  84%,
  100% {
    clip-path: inset(4% 0 72% 0);
    transform: translate(-8px, -1px);
  }

  77% {
    clip-path: inset(34% 0 43% 0);
    transform: translate(14px, -2px);
  }

  80% {
    clip-path: inset(12% 0 61% 0);
    transform: translate(-16px, 2px);
  }
}

@keyframes title-glitch-b {
  0%,
  66%,
  73%,
  100% {
    clip-path: inset(58% 0 6% 0);
    transform: translate(7px, 1px);
  }

  67% {
    clip-path: inset(72% 0 2% 0);
    transform: translate(-14px, 2px);
  }

  70% {
    clip-path: inset(46% 0 30% 0);
    transform: translate(12px, -2px);
  }
}

h1 span {
  color: var(--orange);
  font-size: 24px;
  text-shadow: 0 0 14px rgba(245, 154, 35, 0.42);
}

.telemetry-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: 0.85fr 0.9fr 1.15fr 1fr 1.1fr;
  gap: 1px;
  overflow: hidden;
}

.telemetry-cell {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 16px;
  border-left: 1px solid rgba(245, 154, 35, 0.52);
  background:
    linear-gradient(90deg, rgba(25, 201, 255, 0.05), transparent),
    rgba(0, 0, 0, 0.24);
}

.telemetry-cell span,
.field span,
.readout-row span,
.status-row span,
.export-readout span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.telemetry-cell strong {
  overflow: hidden;
  color: var(--green);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-cell small {
  width: 126px;
  max-width: 100%;
  height: 18px;
  display: block;
  margin-top: 1px;
  background:
    repeating-linear-gradient(90deg, var(--orange) 0 1px, transparent 1px 3px),
    rgba(255, 159, 47, 0.08);
  box-shadow: 0 0 12px rgba(255, 159, 47, 0.18);
}

.dossier-cell {
  border-left-color: rgba(245, 154, 35, 0.72);
}

.dossier-cell strong {
  color: var(--orange);
  font-size: 22px;
}

.dossier-cell small {
  width: auto;
  max-width: none;
  height: auto;
  display: block;
  margin-top: 0;
  background: none;
  box-shadow: none;
  color: #ffb45c;
  font-size: 14px;
  line-height: 1.2;
}

.telemetry-cell.accent strong {
  color: var(--orange);
}

.telemetry-cell.error strong {
  color: var(--red);
}

.main-console {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1.72fr) minmax(360px, 0.78fr);
  gap: 7px;
  overflow: hidden;
}

.module {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.module-header {
  height: 38px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(48, 215, 207, 0.42);
  background:
    repeating-linear-gradient(90deg, rgba(25, 201, 255, 0.12) 0 1px, transparent 1px 7px),
    rgba(0, 10, 10, 0.82);
}

.module-header span {
  color: var(--cyan);
  font-size: 14px;
}

.module-header strong {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-family: "VT323", "Tektur", "Tektur Fallback", monospace;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-header em {
  color: var(--orange);
  font-size: 14px;
  font-style: normal;
  white-space: nowrap;
}

.module-header i {
  color: var(--green);
  font-style: normal;
  letter-spacing: 2px;
}

.parameter-module {
  display: grid;
  grid-template-rows:
    38px
    94px
    minmax(136px, 1.2fr)
    minmax(168px, 1.4fr)
    minmax(106px, 0.95fr)
    78px;
  gap: 8px;
  padding: 0;
  overflow: hidden;
}

.parameter-module > .submodule,
.parameter-module > .primary-action {
  margin-inline: 10px;
}

.submodule {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(48, 215, 207, 0.42);
  background:
    repeating-linear-gradient(90deg, rgba(83, 232, 255, 0.035) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(83, 232, 255, 0.025) 0 1px, transparent 1px 5px),
    rgba(0, 10, 10, 0.78);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42);
}

.submodule-title {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(48, 215, 207, 0.2);
  color: var(--green);
  font-size: 14px;
}

.submodule-title em {
  color: var(--green-2);
  font-style: normal;
}

.box-type-module {
  display: grid;
  align-items: center;
  padding: 12px;
  overflow: hidden;
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field::after {
  position: absolute;
  right: 18px;
  bottom: 9px;
  color: var(--cyan);
  content: "⌄";
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
}

.field:first-of-type {
  margin-top: 0;
}

select,
input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(25, 201, 255, 0.72);
  border-radius: 3px;
  outline: none;
  background:
    linear-gradient(90deg, rgba(25, 201, 255, 0.12), transparent),
    #000807;
  color: var(--cyan);
}

select {
  height: 42px;
  padding: 0 48px 0 18px;
  appearance: none;
  font-size: 17px;
  line-height: 1;
}

input {
  padding: 0 58px 0 16px;
  font-size: 32px;
}

select:focus,
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(114, 255, 141, 0.16);
}

.parameter-grid {
  display: grid;
  gap: 12px;
}

.style-preview {
  position: relative;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr);
  padding: 8px;
  overflow: hidden;
}

.style-preview .submodule-title {
  grid-column: 1;
  min-height: 30px;
  padding: 0 0 0 2px;
  border-bottom: 0;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.style-thumb {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  border: 2px solid rgba(25, 201, 255, 0.78);
  background:
    linear-gradient(rgba(121, 246, 161, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 246, 161, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(25, 201, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 201, 255, 0.1) 1px, transparent 1px),
    rgba(0, 7, 8, 0.74);
  background-size: 6px 6px, 6px 6px, 24px 24px, 24px 24px, 100% 100%;
  overflow: hidden;
}

.style-thumb::before {
  position: absolute;
  inset: 7px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(25, 201, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(121, 246, 161, 0.12),
    0 0 14px rgba(25, 201, 255, 0.12);
}

.style-thumb::after {
  position: absolute;
  inset: 36% 38%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at left top, rgba(245, 154, 35, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at right top, rgba(245, 154, 35, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at left bottom, rgba(245, 154, 35, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at right bottom, rgba(245, 154, 35, 0.62) 0 1px, transparent 2px);
}

.style-thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 28%;
  height: 78%;
  max-width: 128px;
  max-height: 84px;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 0 var(--cyan))
    drop-shadow(0 0 1px var(--cyan))
    drop-shadow(0 0 5px rgba(83, 232, 255, 0.45));
}

.style-thumb img.loaded {
  filter:
    drop-shadow(0 0 0 var(--orange))
    drop-shadow(0 0 1px var(--orange))
    drop-shadow(0 0 8px rgba(245, 154, 35, 0.7));
}

.style-data {
  display: none;
  position: absolute;
  right: 8px;
  bottom: 8px;
  align-content: center;
  gap: 3px;
  padding: 6px 8px;
  border: 1px solid rgba(114, 255, 141, 0.18);
  background: rgba(0, 0, 0, 0.58);
  color: #9fb6aa;
  font-size: 11px;
  pointer-events: none;
}

.dimension-module {
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr);
}

.dimension-table {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.dimension-table label {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(68px, 1fr) minmax(154px, 1.35fr) 42px;
  align-items: center;
  min-height: 0;
  border-top: 1px solid rgba(48, 215, 207, 0.18);
}

.dimension-table b,
.dimension-table span,
.dimension-table small {
  padding: 0 8px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 400;
}

.dimension-table span {
  color: #a1b9ad;
}

.dimension-table input {
  height: 44px;
  border-width: 0 1px;
  border-color: rgba(25, 201, 255, 0.28);
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.36);
  font-size: 27px;
  padding: 0 10px;
  text-align: right;
}

.dimension-table input::-webkit-outer-spin-button,
.dimension-table input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.dimension-table input[type="number"] {
  appearance: textfield;
}

.dimension-table small {
  color: var(--cyan);
}

.material-module,
.option-module {
  display: grid;
}

.material-module {
  grid-template-rows: 30px repeat(2, minmax(0, 1fr));
}

.material-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-top: 1px solid rgba(48, 215, 207, 0.18);
}

.material-row span {
  color: #a1b9ad;
  font-size: 14px;
}

.material-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--orange);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-row .orange {
  color: var(--orange);
  font-size: 22px;
  text-align: right;
}

.material-row small {
  color: var(--green);
  font-size: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px;
}

.segmented span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 255, 141, 0.18);
  color: #8ca69a;
  font-size: 13px;
}

.segmented .active {
  color: var(--green);
  background: rgba(114, 255, 141, 0.1);
}

.segmented .orange {
  color: var(--orange);
  border-color: rgba(255, 159, 47, 0.62);
  background: rgba(255, 159, 47, 0.08);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
}

.option-grid span {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(25, 201, 255, 0.28);
  color: #8ca69a;
  font-size: 12px;
}

.option-grid b {
  color: var(--green);
  font-weight: 400;
}

.field small {
  position: absolute;
  right: 14px;
  bottom: 21px;
  color: var(--cyan);
  font-size: 14px;
}

.readout-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border: 1px solid rgba(114, 255, 141, 0.28);
  background: rgba(114, 255, 141, 0.05);
}

.readout-row strong {
  color: var(--orange);
  font-size: 18px;
  white-space: nowrap;
}

.primary-action,
.download-link {
  position: relative;
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 159, 47, 0.18) 0 8px, transparent 8px 16px),
    rgba(255, 159, 47, 0.12);
  color: #ffd082;
  font-size: 18px;
  letter-spacing: 1px;
  padding-inline: 54px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 159, 47, 0.52);
}

.primary-action::after,
.download-link::after {
  position: absolute;
  right: 18px;
  content: ">";
  margin-left: 0;
  padding-right: 0;
  color: var(--orange);
}

.parameter-module .primary-action {
  width: auto;
  min-height: 0;
  margin-bottom: 10px;
}

.primary-action:hover,
.download-link:hover {
  background:
    repeating-linear-gradient(135deg, rgba(255, 159, 47, 0.28) 0 8px, transparent 8px 16px),
    rgba(255, 159, 47, 0.18);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.56;
}

.blueprint-module {
  display: grid;
  grid-template-rows: 38px 38px minmax(0, 1fr);
}

.viewport-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(25, 201, 255, 0.24);
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.viewport-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viewport-tool-button {
  min-height: 26px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 159, 47, 0.75);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 159, 47, 0.16) 0 6px,
      transparent 6px 12px
    ),
    rgba(0, 0, 0, 0.22);
  color: var(--orange);
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}

.viewport-tool-button:hover {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 159, 47, 0.28) 0 6px,
      transparent 6px 12px
    ),
    rgba(255, 159, 47, 0.08);
}

.cut-swatch,
.crease-swatch {
  width: 30px;
  height: 5px;
  display: inline-block;
}

.cut-swatch {
  background: #20d8ff;
  box-shadow: 0 0 9px rgba(32, 216, 255, 0.72);
}

.crease-swatch {
  background: #ffb238;
  box-shadow: 0 0 9px rgba(255, 178, 56, 0.72);
}

.preview-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(245, 154, 35, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 154, 35, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(25, 201, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 201, 255, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(121, 246, 161, 0.032) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, rgba(0, 38, 38, 0.92), rgba(0, 0, 0, 0.7));
  background-size: 52px 52px, 52px 52px, 13px 13px, 13px 13px, 100% 100%, 100% 100%;
}

.preview-stage.formulas-open {
  grid-template-columns: minmax(0, 65%) minmax(330px, 35%);
}

.dieline-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dieline-canvas::before,
.dieline-canvas::after {
  position: absolute;
  content: "";
  pointer-events: none;
  background: rgba(83, 232, 255, 0.38);
  opacity: 0.28;
}

.preview-stage .ruler {
  position: absolute;
  z-index: 1;
  color: var(--orange);
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 159, 47, 0.45);
}

.top-ruler,
.bottom-ruler {
  left: 90px;
  right: 90px;
  height: 25px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 154, 35, 0.82);
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(245, 154, 35, 0.78) 13px 14px, transparent 14px 26px);
}

.top-ruler {
  top: 26px;
}

.bottom-ruler {
  bottom: 42px;
  border-top: 1px solid rgba(245, 154, 35, 0.82);
  border-bottom: 0;
  align-items: end;
}

.side-ruler {
  top: 72px;
  bottom: 66px;
  left: 50px;
  width: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(245, 154, 35, 0.82);
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(245, 154, 35, 0.78) 13px 14px, transparent 14px 26px);
  writing-mode: horizontal-tb;
}

.viewport-badge,
.coordinate-chip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(25, 201, 255, 0.5);
  background: rgba(0, 10, 14, 0.72);
  color: var(--cyan);
  font-size: 12px;
  text-shadow: 0 0 8px rgba(83, 232, 255, 0.32);
}

.viewport-badge {
  left: 96px;
  top: 190px;
}

.viewport-badge b {
  color: var(--green);
  font-weight: 400;
}

.coordinate-chip {
  display: none;
}

.dieline-canvas::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.dieline-canvas::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 16%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(114, 255, 141, 0.7), transparent);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(-20vh);
  }

  to {
    transform: translateY(80vh);
  }
}

.axis-label {
  position: absolute;
  z-index: 1;
  color: rgba(83, 232, 255, 0.72);
  font-size: 14px;
}

.x-axis {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.y-axis {
  top: 50%;
  left: 14px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
}

.dieline-canvas img {
  position: absolute;
  inset: 72px 90px 66px;
  z-index: 2;
  display: block;
  width: calc(100% - 180px);
  height: calc(100% - 138px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 2px rgba(32, 216, 255, 0.72))
    drop-shadow(0 0 8px rgba(255, 178, 56, 0.24));
}

.formulas-open .dieline-canvas img {
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: fill;
  object-position: center center;
}

.dimension-overlay {
  position: absolute;
  inset: 2px;
  z-index: 4;
  display: none;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  overflow: visible;
  pointer-events: none;
}

.formulas-open .dimension-overlay {
  display: block;
}

.dimension-line,
.dimension-witness {
  fill: none;
  stroke: #12a800;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
}

.dimension-line {
  stroke-width: 1.25px;
  marker-start: url("#dimension-arrow-start");
  marker-end: url("#dimension-arrow-end");
  filter: drop-shadow(0 0 2px rgba(18, 168, 0, 0.62));
}

.dimension-line.fixed {
  stroke: var(--orange);
  filter: drop-shadow(0 0 3px rgba(255, 178, 56, 0.72));
}

.dimension-witness {
  opacity: 0.56;
  stroke-width: 0.75px;
}

.dimension-overlay marker path {
  fill: #12a800;
}

.dimension-label {
  fill: #6dff4a;
  font-family: "Tektur", "Tektur Fallback", monospace;
  font-size: 5px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 3px rgba(18, 168, 0, 0.82);
}

.dimension-label.fixed {
  fill: var(--orange);
}

.formulas-open .viewport-badge,
.formulas-open .coordinate-chip,
.formulas-open .ruler,
.formulas-open .axis-label {
  display: none;
}

.parameter-overlay {
  position: relative;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  border: 0;
  border-left: 4px solid rgba(255, 159, 47, 0.82);
  background:
    repeating-linear-gradient(90deg, rgba(255, 159, 47, 0.055) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg, rgba(114, 255, 141, 0.035) 0 1px, transparent 1px 5px),
    rgba(2, 12, 9, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 159, 47, 0.18),
    0 0 30px rgba(0, 0, 0, 0.55);
}

.parameter-overlay[hidden] {
  display: none;
}

.parameter-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 159, 47, 0.42);
  color: var(--orange);
  font-size: 16px;
}

.parameter-overlay-header button {
  min-height: 26px;
  border: 1px solid rgba(114, 255, 141, 0.44);
  background: rgba(0, 0, 0, 0.35);
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.parameter-table-wrap {
  min-height: 0;
  overflow: auto;
}

.parameter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.parameter-table th,
.parameter-table td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(114, 255, 141, 0.14);
  text-align: left;
}

.parameter-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(4, 18, 12, 0.98);
  color: var(--cyan);
  font-weight: 400;
}

.parameter-table td {
  color: #c9e5d9;
}

.parameter-table th:nth-child(1),
.parameter-table td:nth-child(1) {
  width: 72px;
}

.parameter-table th:nth-child(2),
.parameter-table td:nth-child(2) {
  min-width: 190px;
}

.parameter-table th:nth-child(3),
.parameter-table td:nth-child(3) {
  width: 110px;
}

.parameter-table th:nth-child(4),
.parameter-table td:nth-child(4) {
  width: 90px;
}

.parameter-table td:nth-child(1),
.parameter-table td:nth-child(3) {
  color: var(--green);
}

.parameter-table .fixed-param td:nth-child(4) {
  color: var(--orange);
}

.parameter-table .important-param td {
  color: var(--orange);
  text-shadow: 0 0 8px rgba(255, 159, 47, 0.28);
}

.right-stack {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(280px, 0.88fr) minmax(340px, 1.12fr);
  gap: 8px;
  overflow: hidden;
}

.status-module,
.export-module {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) auto;
}

.status-module {
  grid-template-rows: 38px auto minmax(0, 1fr);
}

.full-action {
  position: relative;
  width: auto;
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 14px 0;
  padding-inline: 54px;
  border: 4px solid var(--orange);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(245, 154, 35, 0.24) 0 8px, transparent 8px 16px),
    rgba(245, 154, 35, 0.12);
  color: #ffe2ad;
  font-size: 26px;
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 159, 47, 0.52);
}

.full-action::after {
  position: absolute;
  right: 18px;
  content: ">";
  color: var(--orange);
}

.status-list {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  overflow: auto;
}

.status-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(48, 215, 207, 0.28);
  background:
    repeating-linear-gradient(0deg, rgba(114, 255, 141, 0.035) 0 1px, transparent 1px 5px),
    rgba(0, 0, 0, 0.24);
}

.status-row strong {
  color: var(--green);
  font-size: 17px;
}

.lamp {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  background: transparent;
  box-shadow: 0 0 10px currentColor;
}

.lamp::after {
  display: block;
  width: 6px;
  height: 6px;
  margin: 3px;
  content: "";
  background: currentColor;
}

.lamp.valid {
  color: var(--green);
}

.lamp.warn {
  color: var(--orange);
}

.lamp.error {
  color: var(--red);
}

.export-module {
  grid-template-rows: 38px auto auto 1fr;
  gap: 9px;
  padding: 0;
}

.export-readout {
  display: grid;
  gap: 10px;
  margin: 12px 14px 0;
  padding: 12px;
  border: 1px solid rgba(83, 232, 255, 0.24);
  background: rgba(83, 232, 255, 0.05);
}

.file-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-inline: 14px;
}

.file-meta div {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(83, 232, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.file-meta span {
  color: var(--muted);
  font-size: 13px;
}

.file-meta strong {
  color: var(--cyan);
  font-size: 15px;
}

.export-readout strong {
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-size: 15px;
  line-height: 1.35;
}

.download-grid {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0 14px 14px;
}

.download-link {
  border-color: var(--orange);
  width: 100%;
  min-height: 54px;
  background:
    repeating-linear-gradient(135deg, rgba(245, 154, 35, 0.24) 0 8px, transparent 8px 16px),
    rgba(245, 154, 35, 0.12);
  color: #ffe2ad;
}

.download-link.disabled {
  pointer-events: none;
  opacity: 0.42;
}

.log-module {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
}

.footer-console {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(360px, 0.95fr) minmax(270px, 0.58fr);
  gap: 8px;
  overflow: hidden;
}

.log-grid {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px 16px;
  overflow: auto;
  color: #78cdd2;
  font-size: 14px;
  line-height: 1.35;
}

.log-grid div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.log-grid span {
  color: var(--cyan);
  margin-right: 8px;
}

.log-grid .error {
  color: var(--red);
}

.diagnostics-module {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
}

.mini-panel,
.session-info {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(25, 201, 255, 0.28);
  background:
    linear-gradient(rgba(83, 232, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 232, 255, 0.04) 1px, transparent 1px),
    rgba(0, 0, 0, 0.2);
  background-size: 14px 14px;
}

.mini-title {
  padding: 8px 10px 0;
  color: var(--cyan);
  font-size: 13px;
}

.bar-chart {
  height: calc(100% - 26px);
  min-height: 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 12px 18px 14px;
  border-left: 1px solid rgba(83, 232, 255, 0.48);
  border-bottom: 1px solid rgba(83, 232, 255, 0.48);
}

.bar-chart span {
  height: var(--bar);
  min-height: 8px;
  display: flex;
  align-items: end;
  justify-content: center;
  color: #d9fff1;
  background:
    repeating-linear-gradient(0deg, rgba(83, 232, 255, 0.62) 0 2px, rgba(83, 232, 255, 0.18) 2px 4px);
  box-shadow: 0 0 12px rgba(83, 232, 255, 0.25);
}

.bar-chart b {
  transform: translateY(18px);
  font-weight: 400;
}

.session-module {
  display: grid;
  grid-template-rows: 1fr;
  gap: 8px;
  padding: 8px;
}

.session-info {
  padding: 10px 12px;
  color: var(--cyan);
  font-size: 13px;
}

.session-info span {
  color: var(--orange);
}

.session-info p {
  margin: 5px 0 0;
  color: var(--cyan);
}

.identity-block,
.telemetry-strip,
.telemetry-cell,
.module,
.module-header,
.submodule,
.submodule-title,
select,
input,
button,
.primary-action,
.download-link,
.full-action,
.viewport-tool-button,
.status-row,
.export-readout,
.file-meta div,
.mini-panel,
.session-info,
.style-thumb,
.style-thumb::before,
.option-grid span,
.segmented span,
.bar-chart span,
.readout-row,
.viewport-badge,
.coordinate-chip,
.parameter-overlay,
.parameter-overlay-header button,
.lamp {
  border-radius: 3px;
}

.crt-frame {
  border-width: 4px;
}

.identity-block,
.telemetry-strip,
.module {
  border-width: 4px;
}

.submodule,
select,
input,
.status-row,
.export-readout,
.file-meta div,
.mini-panel,
.session-info,
.style-thumb,
.option-grid span,
.readout-row,
.viewport-badge,
.coordinate-chip {
  border-width: 2px;
}

.primary-action,
.download-link,
.parameter-overlay,
.lamp {
  border-width: 4px;
}

.module-header,
.submodule-title,
.viewport-toolbar,
.parameter-overlay-header {
  border-bottom-width: 3px;
}

.dimension-table label,
.material-row {
  border-top-width: 2px;
}

.top-ruler,
.bottom-ruler {
  border-top-width: 2px;
  border-bottom-width: 2px;
}

.side-ruler {
  border-right-width: 2px;
}

.console-shell {
  padding: 12px;
  gap: 9px;
}

.system-header,
.main-console,
.right-stack,
.footer-console,
.diagnostics-module,
.session-module {
  gap: 9px;
}

.telemetry-cell span,
.field span,
.readout-row span,
.status-row span,
.export-readout span,
.file-meta span,
.session-info,
.mini-title {
  font-size: 16px;
}

.module-header span,
.module-header em,
.submodule-title,
.dimension-table b,
.dimension-table span,
.dimension-table small,
.material-row span,
.field small,
.viewport-toolbar,
.preview-stage .ruler,
.axis-label,
.log-grid {
  font-size: 17px;
}

.module-header strong,
.material-row strong,
.file-meta strong,
.export-readout strong,
.parameter-table,
.status-row strong {
  font-size: 19px;
}

.module-header strong {
  font-size: 26px;
}

.telemetry-cell strong {
  font-size: 24px;
}

h1 {
  font-size: 88px;
}

h1 span {
  font-size: 29px;
}

select {
  height: 42px;
  font-size: 21px;
}

input {
  height: 52px;
  font-size: 38px;
}

.dimension-table input {
  height: 52px;
  font-size: 34px;
}

.material-row .orange {
  font-size: 28px;
}

.option-grid span {
  font-size: 15px;
}

.viewport-tool-button,
.parameter-overlay-header button {
  min-height: 36px;
  font-size: 17px;
}

.viewport-badge,
.coordinate-chip,
.dossier-cell small {
  font-size: 15px;
}

.dossier-cell strong {
  font-size: 27px;
}

.download-link {
  min-height: 72px;
  font-size: 26px;
  letter-spacing: 1.4px;
}

.download-grid {
  gap: 14px;
}

.primary-action {
  min-height: 78px;
  font-size: 24px;
}

@media (max-width: 980px) {
  .console-shell {
    min-height: 560px;
    grid-template-rows: 92px minmax(0, 1fr) 112px;
    padding: 8px;
  }

  .system-header {
    grid-template-columns: 1fr;
  }

  .identity-block {
    display: none;
  }

  .main-console {
    grid-template-columns: minmax(180px, 0.58fr) minmax(0, 1fr);
  }

  .right-stack {
    display: none;
  }

  .footer-console {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .session-module {
    display: none;
  }

  h1 {
    font-size: 32px;
  }
}

@media (max-width: 680px) {
  .console-shell {
    grid-template-rows: 78px minmax(0, 1fr) 98px;
  }

  .telemetry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-cell {
    padding: 8px;
  }

  .footer-console {
    grid-template-columns: 1fr;
  }

  .diagnostics-module {
    display: none;
  }

  .main-console {
    grid-template-columns: 1fr;
    grid-template-rows: 190px minmax(0, 1fr);
  }

  .parameter-module {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 34px auto auto;
    gap: 8px;
    padding: 0 8px 8px;
  }

  .parameter-module .module-header,
  .parameter-grid,
  .primary-action {
    grid-column: 1 / -1;
  }

  .readout-row {
    display: none;
  }

  input {
    height: 38px;
    font-size: 16px;
  }

  select {
    height: 42px;
    font-size: 16px;
  }
}
