:root {
  --ink: #0d0d0f;
  --muted: #65606a;
  --paper: #fff9f9;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(15, 15, 18, 0.14);
  --blue: #e11d2e;
  --cyan: #111114;
  --green: #d71920;
  --pink: #ff3045;
  --amber: #a00d18;
  --violet: #27272d;
  --shadow: 0 24px 70px rgba(20, 12, 14, 0.16);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(225, 29, 46, 0.15), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(15, 15, 18, 0.12), transparent 24rem),
    linear-gradient(135deg, #fffafa 0%, #f5f0f0 48%, #fff5f5 100%);
  overflow-x: hidden;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.14;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
  z-index: -1;
}

.ambient-one {
  left: -11rem;
  top: 16rem;
  background: var(--cyan);
}

.ambient-two {
  right: -12rem;
  bottom: 9rem;
  background: var(--amber);
  animation-delay: -4s;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 16px;
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(225, 29, 46, 0.28);
  object-fit: contain;
}

.top-nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
}

.top-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.top-nav a:hover {
  background: rgba(225, 29, 46, 0.1);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  border: 1px dashed rgba(225, 29, 46, 0.36);
  border-radius: 8px;
  color: #31536d;
  background:
    repeating-linear-gradient(135deg, rgba(225, 29, 46, 0.09) 0 10px, rgba(15, 15, 18, 0.05) 10px 20px),
    rgba(255, 255, 255, 0.58);
}

.ad-slot span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot strong {
  font-size: clamp(0.92rem, 2vw, 1.2rem);
}

.ad-top,
.ad-mid,
.ad-bottom {
  margin: 10px 0 22px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 136px;
  gap: 18px;
  align-items: stretch;
}

.ad-rail {
  min-height: 620px;
  writing-mode: vertical-rl;
}

.tester-panel,
.chart-panel,
.details-panel,
.history-section {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.tester-panel {
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
}

.tester-copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--blue);
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.72rem);
  letter-spacing: 0;
}

.subhead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.6;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(260px, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.gauge-card,
.metrics-panel,
.controls-strip,
.chart-panel,
.details-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.gauge-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 20px;
  min-height: 460px;
  overflow: hidden;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.status-pill {
  min-width: 86px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #09351f;
  text-align: center;
  background: rgba(19, 166, 107, 0.14);
}

.gauge-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 330px);
  aspect-ratio: 1;
}

.gauge {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.gauge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.track,
.progress {
  fill: none;
  stroke-width: 18;
}

.track {
  stroke: rgba(15, 30, 50, 0.08);
}

.progress {
  stroke: url("#speedGradient");
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 578;
  stroke-dashoffset: 578;
  filter: drop-shadow(0 0 14px rgba(225, 29, 46, 0.44));
  transition: stroke-dashoffset 420ms ease, stroke 240ms ease;
}

.gauge-center {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 68%;
  height: 68%;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 46, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 40px rgba(225, 29, 46, 0.08);
}

.gauge-center span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gauge-center strong {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gauge-center small {
  color: var(--blue);
  font-weight: 800;
}

.gauge-center em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.signal-orbit {
  position: absolute;
  inset: 9%;
  border-radius: 999px;
  pointer-events: none;
  animation: spin 8s linear infinite;
}

.signal-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 20px rgba(227, 68, 127, 0.8);
}

.signal-orbit span:nth-child(1) {
  top: 4%;
  left: 50%;
}

.signal-orbit span:nth-child(2) {
  right: 10%;
  bottom: 24%;
  background: var(--cyan);
}

.signal-orbit span:nth-child(3) {
  left: 12%;
  bottom: 24%;
  background: var(--green);
}

.start-button,
.ghost-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 310px);
  padding: 0 20px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan) 58%, var(--green));
  box-shadow: 0 18px 38px rgba(225, 29, 46, 0.25);
}

.start-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-icon {
  width: 15px;
  height: 15px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent white;
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.metric {
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(13, 23, 38, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.metric span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-variant-numeric: tabular-nums;
}

.metric em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.download {
  background: linear-gradient(145deg, rgba(225, 29, 46, 0.13), rgba(255, 255, 255, 0.75));
}

.upload {
  background: linear-gradient(145deg, rgba(19, 166, 107, 0.13), rgba(255, 255, 255, 0.75));
}

.controls-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}

select:focus {
  outline: 2px solid rgba(225, 29, 46, 0.24);
  border-color: rgba(225, 29, 46, 0.5);
}

.ghost-button {
  align-self: end;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.ghost-button:hover {
  border-color: rgba(225, 29, 46, 0.42);
  color: var(--blue);
}

.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.chart-panel,
.details-panel,
.history-section {
  padding: clamp(16px, 2.4vw, 24px);
}

.chart-panel {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(8, 8, 11, 0.96), rgba(31, 9, 13, 0.94)),
    #0b0b0e;
  box-shadow: 0 24px 80px rgba(12, 8, 10, 0.28);
}

.chart-panel .eyebrow {
  color: #ff4054;
}

.chart-panel .ghost-button {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.tech-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.tech-readouts {
  display: flex;
  align-self: end;
  gap: 8px;
}

.tech-readouts span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 1px solid rgba(255, 64, 84, 0.3);
  border-radius: 8px;
  color: #ff9aa5;
  background: rgba(255, 64, 84, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.live-chart {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 64, 84, 0.08) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, rgba(255, 64, 84, 0.12) 1px, transparent 1px) 0 0 / 5% 100%,
    radial-gradient(circle at 12% 18%, rgba(255, 64, 84, 0.28), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.1), transparent 24%),
    #0c0c10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 -40px 80px rgba(225, 29, 46, 0.08);
}

.live-chart::before,
.live-chart::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.live-chart::before {
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%, transparent 80%, rgba(225, 29, 46, 0.08));
}

.live-chart::after {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.chart-topline,
.chart-hud {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-topline {
  top: 18px;
  left: 18px;
}

.chart-hud {
  right: 18px;
  bottom: 18px;
}

.chart-hud span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff4054;
  box-shadow: 0 0 0 7px rgba(255, 64, 84, 0.13), 0 0 22px rgba(255, 64, 84, 0.7);
  animation: dotPop 1.2s ease-in-out infinite;
}

.chart-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 64, 84, 0.18), rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.95;
  transform: translateX(-110%);
  animation: chartScan 3.2s linear infinite;
}

.speedo-meter {
  position: absolute;
  inset: 28px 34px 54px;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.speedo-svg {
  position: absolute;
  width: min(78%, 440px);
  height: auto;
  bottom: 12px;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(255, 64, 84, 0.68));
}

.speedo-track,
.speedo-progress {
  fill: none;
  stroke-linecap: round;
  stroke-width: 16;
}

.speedo-track {
  stroke: rgba(255, 255, 255, 0.11);
}

.speedo-progress {
  stroke: #ff4054;
  stroke-dasharray: 314;
  stroke-dashoffset: 0;
}

.speedo-ticks {
  position: absolute;
  width: min(88%, 500px);
  height: 70%;
  bottom: 0;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.74rem;
  font-weight: 900;
}

.speedo-ticks span {
  position: absolute;
  transform: translate(-50%, -50%);
}

.speedo-ticks span:nth-child(1) {
  left: 6%;
  bottom: 6%;
}

.speedo-ticks span:nth-child(2) {
  left: 24%;
  top: 42%;
}

.speedo-ticks span:nth-child(3) {
  left: 50%;
  top: 20%;
}

.speedo-ticks span:nth-child(4) {
  left: 76%;
  top: 42%;
}

.speedo-ticks span:nth-child(5) {
  left: 94%;
  bottom: 6%;
}

.speedo-needle {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 5px;
  height: min(45%, 132px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #ff4054);
  box-shadow: 0 0 18px rgba(255, 64, 84, 0.72);
  transform: translateX(-50%) rotate(-118deg);
  transform-origin: 50% 100%;
  transition: transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.speedo-hub {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 42px;
  height: 42px;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #ff4054;
  box-shadow: 0 0 24px rgba(255, 64, 84, 0.78);
  transform: translateX(-50%);
}

.speedo-readout {
  position: absolute;
  left: 50%;
  bottom: 58px;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.speedo-readout strong {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(255, 64, 84, 0.5);
}

.speedo-readout small {
  color: #ff9aa5;
  font-weight: 900;
}

.curve-svg {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  overflow: visible;
  z-index: 2;
  opacity: 0.26;
  filter: drop-shadow(0 12px 24px rgba(255, 64, 84, 0.34));
}

.curve-line,
.curve-fill {
  vector-effect: non-scaling-stroke;
}

.curve-line {
  fill: none;
  stroke: #ff4054;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 220;
  transition: d 620ms ease;
  animation: drawCurve 1.4s steps(12) both, pulseCurve 2.8s ease-in-out infinite alternate;
}

.curve-fill {
  fill: rgba(255, 64, 84, 0.1);
  transition: d 620ms ease, opacity 240ms ease;
  animation: glowFill 2.8s ease-in-out infinite alternate;
}

.bars {
  position: absolute;
  inset: auto 16px 16px;
  display: grid;
  grid-template-columns: repeat(18, minmax(8px, 1fr));
  align-items: end;
  gap: 8px;
  height: 42%;
  z-index: 2;
  opacity: 0.34;
}

.bar {
  min-height: 14px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #ff4054, rgba(255, 64, 84, 0.7) 58%, rgba(255, 255, 255, 0.1));
  transform-origin: bottom;
  animation: rise 620ms ease both, barPulse 2.4s ease-in-out infinite alternate;
}

.curve-dots {
  position: absolute;
  inset: 14px;
  z-index: 3;
  opacity: 0;
}

.curve-dots span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #0c0c10;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 8px rgba(255, 64, 84, 0.16), 0 0 18px rgba(255, 64, 84, 0.76);
  transform: translate(-50%, -50%);
  transition: left 620ms ease, top 620ms ease;
  animation: dotPop 2.2s ease-in-out infinite;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.history-section {
  margin-top: 22px;
}

.history-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  font-weight: 700;
}

.ad-bottom {
  min-height: 150px;
}

.site-disclaimer {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(225, 29, 46, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 44px rgba(20, 12, 14, 0.08);
}

.site-disclaimer strong {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-disclaimer p {
  line-height: 1.6;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 34px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.result-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 64, 84, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(12, 12, 16, 0.98), rgba(35, 9, 13, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.result-dialog::backdrop {
  background: rgba(5, 5, 8, 0.58);
  backdrop-filter: blur(8px);
}

.dialog-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
}

.dialog-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dialog-head h2 {
  color: white;
}

.icon-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.dialog-score {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 22px 22px;
  text-align: center;
}

.dialog-score span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 64, 84, 0.38);
  border-radius: 999px;
  color: #ff9aa5;
  background: rgba(255, 64, 84, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dialog-score strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(3rem, 12vw, 5.4rem);
  line-height: 0.95;
}

.dialog-score em,
.dialog-grid em {
  color: #ff9aa5;
  font-style: normal;
  font-weight: 900;
}

.dialog-score small {
  color: rgba(248, 250, 252, 0.68);
  font-weight: 800;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 22px 22px;
}

.dialog-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.dialog-grid dt {
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dialog-grid dd {
  margin: 8px 0 0;
  color: white;
  font-size: 1.08rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dialog-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dialog-actions .ghost-button {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.dialog-done {
  width: auto;
  min-width: 132px;
}

.testing .signal-orbit {
  animation-duration: 1.6s;
}

.testing .gauge-center {
  animation: breathe 1.2s ease-in-out infinite alternate;
}

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

@keyframes breathe {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1.03);
  }
}

@keyframes drift {
  to {
    transform: translate(38px, -24px) scale(1.06);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: scaleY(0.18);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes chartScan {
  to {
    transform: translateX(110%);
  }
}

@keyframes drawCurve {
  from {
    stroke-dashoffset: 220;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseCurve {
  from {
    stroke-width: 2.2;
  }
  to {
    stroke-width: 3.4;
  }
}

@keyframes glowFill {
  from {
    opacity: 0.42;
  }
  to {
    opacity: 0.86;
  }
}

@keyframes barPulse {
  from {
    filter: saturate(0.86);
  }
  to {
    filter: saturate(1.35) brightness(1.08);
  }
}

@keyframes dotPop {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.88);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@media (max-width: 1040px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    min-height: 86px;
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 820px) {
  .site-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .console-grid,
  .insights-grid,
  .controls-strip {
    grid-template-columns: 1fr;
  }

  .ghost-button {
    width: 100%;
  }

  .tech-heading {
    grid-template-columns: 1fr;
  }

  .tech-readouts {
    width: 100%;
  }

  .tech-readouts span {
    flex: 1;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  footer {
    width: min(100% - 20px, 1180px);
  }

  .tester-panel {
    padding: 14px;
  }

  .metrics-panel {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 104px;
  }

  .live-chart {
    gap: 5px;
    min-height: 280px;
    padding: 10px;
  }

  .bars {
    gap: 5px;
    height: 28%;
  }

  .chart-hud {
    display: none;
  }

  .speedo-meter {
    inset: 34px 12px 40px;
  }

  .speedo-svg {
    width: 88%;
  }

  .speedo-readout {
    bottom: 48px;
  }

  .dialog-head,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .icon-close,
  .dialog-actions button {
    width: 100%;
  }
}
