.pulse-theme {
  /* Liquid AI brand refresh — JetBrains Mono, monochrome chrome, aurora accents.
     The pulse-radar visualization continues to use these tokens; we keep the
     accent hue (purple→pink) intact so the radar/echo animation still reads,
     while toning down chrome to monochrome per the project design system. */
  --aurora-purple: #9748d2;
  --aurora-pink: #eb909e;
  --aurora-violet: #cd82f0;
  --purple-main: var(--aurora-purple);
  --purple-light: var(--aurora-violet);
  --gradient-end: var(--aurora-pink);
  --white-soft: #f5f5f5;
  --page-bg: #050505;
  --panel-bg: rgba(10, 10, 12, 0.82);
  --panel-bg-strong: rgba(10, 10, 12, 0.94);
  --panel-border: rgba(245, 245, 245, 0.08);
  --line-soft: rgba(245, 245, 245, 0.06);
  --text-primary: var(--white-soft);
  --text-secondary: rgba(245, 245, 245, 0.6);
  --button-border: rgba(245, 245, 245, 0.14);
  --button-bg: rgba(245, 245, 245, 0.03);
  --button-hover-bg: rgba(245, 245, 245, 0.08);
  --button-text: rgba(245, 245, 245, 0.92);
  --primary-button-bg: linear-gradient(
    135deg,
    var(--aurora-purple) 0%,
    var(--aurora-violet) 55%,
    var(--aurora-pink) 100%
  );
  --primary-button-hover-bg: linear-gradient(
    135deg,
    #a155de 0%,
    #d68cf4 55%,
    #f0a0ad 100%
  );
  --primary-button-text: #f5f5f5;
  --primary-button-border: rgba(205, 130, 240, 0.4);
  --danger-text: rgba(235, 144, 158, 0.92);
  --danger-border: rgba(235, 144, 158, 0.24);
  --input-bg: rgba(245, 245, 245, 0.04);
  --input-border: rgba(245, 245, 245, 0.1);
  --focus-border: rgba(205, 130, 240, 0.45);
  --pill-bg: rgba(245, 245, 245, 0.06);
  --pill-border: rgba(245, 245, 245, 0.12);
  --toggle-bg: rgba(245, 245, 245, 0.08);
  --toggle-active-bg: rgba(151, 72, 210, 0.28);
  --toggle-active-border: rgba(205, 130, 240, 0.36);
  --font-stack:
    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

body.pulse-theme {
  font-family: var(--font-stack);
  font-feature-settings: "ss01", "ss02", "calt", "liga";
  letter-spacing: 0;
  background:
    radial-gradient(
      ellipse at 18% 22%,
      rgba(151, 72, 210, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 78% 12%,
      rgba(235, 144, 158, 0.04) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse at 50% 88%,
      rgba(205, 130, 240, 0.05) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, #060606 0%, #0a0a0a 45%, #050505 100%);
  color: var(--text-primary);
}

body.pulse-theme h1,
body.pulse-theme h2,
body.pulse-theme h3,
body.pulse-theme button,
body.pulse-theme input,
body.pulse-theme textarea,
body.pulse-theme .lfm-kicker,
body.pulse-theme .ops-card-label {
  font-family: var(--font-stack);
}

body.pulse-theme h1 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.pulse-theme .lfm-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.55);
}

body.pulse-theme .app-button {
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.pulse-theme .app-button.is-primary {
  border: 1px solid var(--primary-button-border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

body.pulse-theme .ops-card {
  border-radius: 14px;
}

body.pulse-theme button:focus-visible,
body.pulse-theme input:focus-visible,
body.pulse-theme textarea:focus-visible {
  outline: 2px solid rgba(245, 245, 245, 0.35);
  outline-offset: 2px;
}

body.pulse-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(151, 72, 210, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 72, 210, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
  opacity: 0.42;
}

.app-shell {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.app-layout {
  display: block;
}

.pulse-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(16, 10, 24, 0.7),
    rgba(8, 5, 13, 0.82)
  );
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.lfm-app-shell {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.lfm-topbar,
.showcase-grid,
.config-dock {
  position: relative;
  z-index: 1;
}

.lfm-topbar {
  display: block;
}

.lfm-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lfm-kicker,
.pulse-kicker,
.ops-card-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.52);
}

.lfm-brand-copy h1 {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.09em;
}

.transport-card,
.ops-card,
.pulse-log-shell {
  backdrop-filter: blur(16px);
}

.transport-card,
.ops-card {
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.01)
    ),
    var(--panel-bg);
  padding: 14px;
}

.transport-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.transport-header,
.config-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.transport-header strong,
.config-card-head strong,
.pulse-log-header strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.transport-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lfm-status-pill {
  min-width: 108px;
  padding: 8px 10px;
  border: 1px solid rgba(151, 72, 210, 0.14);
  background: rgba(245, 245, 245, 0.03);
}

.lfm-status-pill.is-hidden {
  display: none;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(160px, 22fr) minmax(160px, 22fr);
  gap: 16px;
  align-items: stretch;
}

.experience-panel {
  min-width: 0;
}

.pulse-stage {
  position: relative;
  min-height: 560px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: linear-gradient(
    180deg,
    rgba(11, 7, 17, 0.72),
    rgba(8, 5, 13, 0.84)
  );
}

.pulse-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(151, 72, 210, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 72, 210, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 96%);
  opacity: 0.6;
}

.pulse-stage-frame {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.pulse-kicker-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pulse-stage-connection {
  padding: 6px 10px;
  border: 1px solid rgba(151, 72, 210, 0.14);
  background: rgba(245, 245, 245, 0.03);
  color: rgba(245, 245, 245, 0.68);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signal-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  background: rgba(245, 245, 245, 0.03);
}

.signal-chip-copy {
  display: grid;
  gap: 4px;
}

.signal-chip-copy span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
}

.signal-chip-copy small {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.72);
}

.signal-chip strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* .pulse-hero-grid removed — engine-shell and wave-deck are now direct stacked children */

.pulse-engine-shell {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  --input-level: 0.06;
  --output-level: 0.06;
  --combined-energy: 0.08;
}

.pulse-radar-canvas {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  opacity: 0.98;
  pointer-events: none;
}

.pulse-energy,
.pulse-echo,
.pulse-ring,
.pulse-core,
.pulse-sweep,
.pulse-beam {
  position: absolute;
  border-radius: 50%;
}

.pulse-energy {
  filter: blur(48px);
  opacity: calc(0.24 + var(--combined-energy) * 0.34);
}

.pulse-energy-driver {
  inset: 11%;
  background: radial-gradient(
    circle,
    rgba(235, 144, 158, calc(0.12 + var(--input-level) * 0.2)),
    transparent 64%
  );
  transform: scale(calc(0.96 + var(--input-level) * 0.16));
}

.pulse-energy-lfm {
  inset: 20%;
  background: radial-gradient(
    circle,
    rgba(151, 72, 210, calc(0.1 + var(--output-level) * 0.18)),
    transparent 62%
  );
  transform: scale(calc(0.98 + var(--output-level) * 0.15));
}

.pulse-echo {
  inset: 16%;
  border: 1px solid rgba(151, 72, 210, 0.1);
  opacity: calc(0.12 + var(--combined-energy) * 0.2);
  animation: pulse-echo 3.4s ease-out infinite;
  will-change: transform, opacity;
}

.echo-b {
  animation-delay: 1.1s;
}

.echo-c {
  animation-delay: 2.2s;
}

.pulse-ring {
  border: 1px solid rgba(151, 72, 210, 0.14);
}

.pulse-ring-driver {
  inset: 10%;
  border-color: rgba(235, 144, 158, 0.16);
  box-shadow:
    0 0 60px rgba(235, 144, 158, 0.22),
    inset 0 0 24px rgba(235, 144, 158, 0.1);
  transform: scale(calc(0.98 + var(--input-level) * 0.14));
  animation: ring-breathe-driver 4.8s ease-in-out infinite;
  will-change: transform;
}

.pulse-ring-lfm {
  inset: 22%;
  border-color: rgba(151, 72, 210, 0.16);
  box-shadow:
    0 0 52px rgba(151, 72, 210, 0.2),
    inset 0 0 22px rgba(151, 72, 210, 0.1);
  transform: scale(calc(0.98 + var(--output-level) * 0.12));
  animation: ring-breathe-lfm 4.2s ease-in-out infinite;
  will-change: transform;
}

.pulse-ring-sensor {
  inset: 4%;
  border-style: dashed;
  border-color: rgba(245, 245, 245, calc(0.04 + var(--combined-energy) * 0.1));
  transform: rotate(calc(var(--combined-energy) * 160deg));
  will-change: transform;
}

.pulse-sweep {
  inset: 4%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(235, 144, 158, 0.2) 32deg,
    transparent 84deg
  );
  filter: blur(12px);
  opacity: calc(0.32 + var(--input-level) * 0.28);
  animation: pulse-sweep 4.2s linear infinite;
  will-change: transform;
}

.pulse-beam {
  inset: 18%;
  background:
    linear-gradient(
      160deg,
      rgba(235, 144, 158, 0.18),
      rgba(235, 144, 158, 0) 44%
    ),
    linear-gradient(20deg, rgba(151, 72, 210, 0.16), rgba(151, 72, 210, 0) 42%);
  filter: blur(16px);
  opacity: calc(0.18 + var(--combined-energy) * 0.18);
  animation: pulse-beam 8.4s linear infinite;
  will-change: transform;
}

.pulse-core {
  inset: 31.5%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(245, 245, 245, 0.1),
      transparent 18%
    ),
    radial-gradient(
      circle at center,
      rgba(16, 10, 24, 0.98),
      rgba(8, 5, 13, 0.98) 74%
    );
  border: 1px solid rgba(151, 72, 210, 0.18);
  box-shadow:
    0 0 56px rgba(235, 144, 158, 0.2),
    inset 0 0 24px rgba(151, 72, 210, 0.14);
  transform: scale(calc(0.98 + var(--combined-energy) * 0.11));
  animation: core-breathe 4s ease-in-out infinite;
  will-change: transform;
}

.pulse-core::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 245, 245, calc(0.02 + var(--combined-energy) * 0.04)),
    transparent 70%
  );
  filter: blur(10px);
}

.pulse-core-label {
  position: relative;
  z-index: 1;
  font-family: "Arial Narrow", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.88;
  letter-spacing: -0.11em;
}

.pulse-core-state {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.64);
}

.wave-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wave-strip {
  position: relative;
  padding: 12px 0;
  border: 1px solid var(--panel-border);
  background: rgba(245, 245, 245, 0.03);
  overflow: hidden;
}

.wave-strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(245, 245, 245, 0.03));
  pointer-events: none;
}

.wave-strip-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.54);
}

.wave-strip-meta strong {
  color: rgba(245, 245, 245, 0.82);
}

.wave-strip-canvas {
  display: block;
  width: 100%;
  height: 56px;
}

.pulse-log-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 16px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.01)
    ),
    var(--panel-bg-strong);
  overflow: hidden;
  min-height: 0;
}

.pulse-log-header,
.pulse-log-intro,
.pulse-log-empty,
.pulse-log {
  position: relative;
  z-index: 1;
}

.pulse-log-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pulse-log-meta {
  display: flex;
  gap: 8px;
}

.pulse-log-chip {
  min-width: 82px;
  padding: 8px 10px;
  border: 1px solid rgba(151, 72, 210, 0.12);
  background: rgba(245, 245, 245, 0.03);
  text-align: right;
}

.pulse-log-chip span {
  display: block;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pulse-log-chip small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
}

.pulse-log-intro {
  margin: 10px 0 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pulse-log-empty {
  display: grid;
  gap: 8px;
  place-items: start;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px dashed rgba(151, 72, 210, 0.18);
  background: rgba(245, 245, 245, 0.02);
  color: rgba(245, 245, 245, 0.72);
}

.pulse-log-empty.is-hidden {
  display: none;
}

.pulse-log-empty-badge {
  padding: 6px 10px;
  background: rgba(151, 72, 210, 0.16);
  border: 1px solid rgba(151, 72, 210, 0.22);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-log-empty p {
  margin: 0;
}

.pulse-log {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.pulse-log::-webkit-scrollbar {
  width: 8px;
}

.pulse-log::-webkit-scrollbar-track {
  background: transparent;
}

.pulse-log::-webkit-scrollbar-thumb {
  background: rgba(151, 72, 210, 0.2);
}

.pulse-entry {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(151, 72, 210, 0.1);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(18, 11, 26, 0.68);
  animation: ledger-rise 280ms ease-out;
  contain: layout style;
}

.pulse-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(151, 72, 210, 0.7);
}

.pulse-entry.is-live {
  border-color: rgba(205, 130, 240, 0.22);
  box-shadow: inset 0 0 0 1px rgba(151, 72, 210, 0.08);
}

.pulse-entry.user::before {
  background: rgba(235, 144, 158, 0.88);
}

.pulse-entry.assistant::before {
  background: rgba(151, 72, 210, 0.88);
}

.pulse-entry.tool::before,
.pulse-entry.cloud::before {
  background: rgba(245, 245, 245, 0.56);
}

.pulse-entry.system::before {
  background: rgba(151, 72, 210, 0.58);
}

.pulse-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.pulse-entry-role {
  display: grid;
  gap: 4px;
}

.pulse-entry-kind {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.52);
}

.pulse-entry-context {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.84);
}

.pulse-entry-time {
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid rgba(151, 72, 210, 0.1);
  background: rgba(245, 245, 245, 0.03);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.56);
}

.pulse-entry-copy {
  min-height: 1.3em;
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pulse-entry-wave-shell {
  position: relative;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid rgba(151, 72, 210, 0.08);
  background: rgba(245, 245, 245, 0.02);
}

.pulse-entry-wave-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 245, 245, 0.05),
    transparent
  );
  opacity: 0;
  transform: translateX(-100%);
}

.pulse-entry.is-live .pulse-entry-wave-shell::before {
  opacity: 1;
  animation: pulse-rail 2.6s linear infinite;
}

.pulse-entry-wave {
  display: block;
  width: 100%;
  height: 40px;
  opacity: 0.94;
}

.pulse-entry.assistant .pulse-entry-context {
  color: rgba(205, 130, 240, 0.96);
}

.pulse-entry.user .pulse-entry-context {
  color: rgba(235, 144, 158, 0.96);
}

.pulse-entry.tool .pulse-entry-context,
.pulse-entry.cloud .pulse-entry-context {
  color: rgba(245, 245, 245, 0.78);
}

.pulse-entry.system .pulse-entry-context {
  color: rgba(151, 72, 210, 0.8);
}

.config-dock {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.auto-update-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 245, 245, 0.78);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.ops-card,
.transport-card,
.app-button,
.app-input,
.auto-update-label {
  border-radius: 0;
}

.app-button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.app-input {
  min-height: 52px;
  line-height: 1.55;
}

.auto-update-label {
  padding: 8px 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: rgba(151, 72, 210, 0.96);
}

.status-dot.connected {
  background: rgba(205, 130, 240, 0.98);
}

@keyframes pulse-echo {
  0% {
    transform: scale(0.82);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes pulse-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-rail {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes ring-breathe-driver {
  0%,
  100% {
    transform: scale(calc(0.98 + var(--input-level) * 0.14));
  }
  50% {
    transform: scale(calc(1.015 + var(--input-level) * 0.17));
  }
}

@keyframes ring-breathe-lfm {
  0%,
  100% {
    transform: scale(calc(0.98 + var(--output-level) * 0.12));
  }
  50% {
    transform: scale(calc(1.012 + var(--output-level) * 0.16));
  }
}

@keyframes pulse-beam {
  0% {
    transform: rotate(0deg) scale(0.96);
  }
  50% {
    transform: rotate(180deg) scale(1.03);
  }
  100% {
    transform: rotate(360deg) scale(0.96);
  }
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(calc(0.98 + var(--combined-energy) * 0.11));
  }
  50% {
    transform: scale(calc(1.016 + var(--combined-energy) * 0.14));
  }
}

@keyframes ledger-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .showcase-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
  }

  .experience-panel {
    grid-column: 1 / -1;
  }

  .pulse-log-shell {
    height: auto;
    min-height: 340px;
    max-height: 460px;
  }

  .config-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    padding: 14px;
  }

  .lfm-app-shell {
    padding: 14px;
  }

  .transport-header,
  .config-card-head,
  .pulse-log-header,
  .pulse-kicker-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .signal-cluster,
  .pulse-hero-grid {
    grid-template-columns: 1fr;
  }

  .pulse-engine-shell {
    width: min(100%, 480px);
  }

  .wave-strip-canvas {
    height: 68px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px;
  }

  .signal-cluster,
  .config-dock {
    grid-template-columns: 1fr;
  }

  .pulse-stage,
  .pulse-log-shell,
  .transport-card,
  .ops-card {
    padding: 12px;
  }

  .pulse-log-shell {
    height: auto;
    min-height: 320px;
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  .button-row {
    width: 100%;
  }

  .app-button {
    flex: 1 1 0;
  }

  .pulse-entry-head {
    flex-direction: column;
  }

  .pulse-entry-time {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
