:root {
  --pro-ink: #17343b;
  --pro-muted: #61767b;
  --pro-line: #cddfdc;
  --pro-paper: #fffdf8;
  --pro-mint: #d9f2e8;
  --pro-mint-strong: #0c8f83;
  --pro-peach: #ffe1d4;
  --pro-yellow: #fff0b8;
  --pro-blue: #dceef5;
  --pro-coral: #ef6b54;
  --pro-shadow: 0 24px 70px rgba(42, 72, 74, 0.12);
}

.theme-button__icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  overflow: hidden;
  color: currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.pro-audio-suite {
  position: relative;
  margin: 32px 0;
  overflow: hidden;
  color: var(--pro-ink);
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 215, 195, 0.74), transparent 25%),
    radial-gradient(circle at 8% 0%, rgba(213, 241, 231, 0.9), transparent 28%),
    var(--pro-paper);
  border: 1px solid var(--pro-line);
  border-radius: 26px;
  box-shadow: var(--pro-shadow);
}

.pro-audio-suite::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0c9c91 0 33%, #efb43f 33% 66%, #ef6b54 66%);
}

.pro-audio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 36px 38px 26px;
}

.pro-audio-kicker,
.pro-section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pro-mint-strong);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.pro-audio-hero h2 {
  margin: 0 0 10px;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.pro-audio-hero p,
.pro-beginner-top p,
.pro-expert-head p,
.pro-learn-head p,
.pro-intensity-card p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pro-audio-score {
  display: grid;
  min-width: 176px;
  padding: 18px 22px;
  color: #fff;
  background: #173f45;
  border-radius: 20px 20px 20px 6px;
  text-align: right;
}

.pro-audio-score strong {
  color: #8fe2d7;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.pro-audio-score span {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
}

.pro-audio-score small {
  margin-top: 3px;
  color: #b7d0d2;
  font-size: 10px;
}

.pro-audio-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 38px 26px;
  overflow: hidden;
  border: 1px solid var(--pro-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.pro-audio-trust span {
  padding: 11px 15px;
  color: var(--pro-muted);
  border-right: 1px solid var(--pro-line);
  font-size: 11px;
  text-align: center;
}

.pro-audio-trust span:last-child {
  border-right: 0;
}

.pro-audio-trust b {
  margin-right: 5px;
  color: var(--pro-ink);
  font-size: 13px;
}

.pro-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--pro-line);
  border-bottom: 1px solid var(--pro-line);
  background: rgba(240, 244, 241, 0.72);
}

.pro-mode-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 2px 10px;
  min-height: 75px;
  padding: 14px 18px;
  color: #738386;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--pro-line);
  cursor: pointer;
}

.pro-mode-tabs button:last-child {
  border-right: 0;
}

.pro-mode-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: transparent;
}

.pro-mode-tabs button.is-active {
  color: var(--pro-ink);
  background: rgba(255, 255, 255, 0.8);
}

.pro-mode-tabs button.is-active::after {
  background: var(--pro-coral);
}

.pro-mode-tabs button > span {
  grid-row: 1 / 3;
  color: var(--pro-mint-strong);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
}

.pro-mode-tabs strong {
  align-self: end;
  font-size: 14px;
  text-align: left;
}

.pro-mode-tabs small {
  align-self: start;
  font-size: 10px;
  text-align: left;
}

.pro-mode-panel {
  display: none;
  padding: 32px 38px 38px;
  animation: pro-panel-in 340ms ease both;
}

.pro-mode-panel.is-active {
  display: block;
}

@keyframes pro-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pro-beginner-top,
.pro-expert-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.pro-beginner-top h3,
.pro-expert-head h3,
.pro-learn-head h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.pro-source-state {
  position: relative;
  display: grid;
  min-width: 210px;
  padding: 13px 16px 13px 40px;
  border: 1px solid #e8cda4;
  border-radius: 14px;
  background: var(--pro-yellow);
}

.pro-source-state > span {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 10px;
  height: 10px;
  background: #dba22d;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dba22d;
}

.pro-source-state.is-ready {
  border-color: #a8d9ce;
  background: var(--pro-mint);
}

.pro-source-state.is-ready > span {
  background: var(--pro-mint-strong);
  box-shadow: 0 0 0 1px var(--pro-mint-strong);
}

.pro-source-state strong {
  font-size: 12px;
}

.pro-source-state small {
  margin-top: 2px;
  color: var(--pro-muted);
  font-size: 10px;
}

.pro-analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.pro-analysis-grid article {
  display: grid;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--pro-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.pro-analysis-grid span {
  color: var(--pro-muted);
  font-size: 10px;
  font-weight: 700;
}

.pro-analysis-grid strong {
  margin: 4px 0 2px;
  font-size: 15px;
}

.pro-analysis-grid small {
  overflow: hidden;
  color: #819193;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pro-profile {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 18px;
  gap: 13px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  color: var(--pro-ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--pro-line);
  border-radius: 17px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pro-profile:hover {
  transform: translateY(-2px);
  border-color: #8fc9bf;
  box-shadow: 0 12px 26px rgba(39, 84, 80, 0.1);
}

.pro-profile.is-selected {
  border-color: var(--pro-mint-strong);
  background: linear-gradient(135deg, #f5fffb, #e0f4ed);
  box-shadow: inset 0 0 0 1px var(--pro-mint-strong);
}

.pro-profile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 50px;
  color: #fff;
  background: var(--pro-ink);
  border-radius: 14px 14px 14px 5px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pro-profile:nth-child(2n) .pro-profile__icon {
  color: #513228;
  background: var(--pro-peach);
}

.pro-profile > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pro-profile strong {
  font-size: 14px;
}

.pro-profile small {
  color: var(--pro-muted);
  font-size: 10px;
  line-height: 1.5;
}

.pro-profile i {
  width: 14px;
  height: 14px;
  border: 2px solid #b6c7c5;
  border-radius: 50%;
}

.pro-profile.is-selected i {
  border: 4px solid var(--pro-mint-strong);
  background: #fff;
}

.pro-intensity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid #edcfbc;
  border-radius: 17px;
  background: linear-gradient(120deg, #fff9ee, var(--pro-peach));
}

.pro-intensity-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.pro-intensity-card label {
  display: grid;
  gap: 9px;
}

.pro-intensity-card output {
  justify-self: end;
  color: var(--pro-coral);
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 900;
}

.pro-intensity-card input,
.pro-module__control input {
  width: 100%;
  accent-color: var(--pro-mint-strong);
}

.pro-auto-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin-top: 15px;
}

.pro-action {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 16px;
  cursor: pointer;
}

.pro-action span {
  font-size: 14px;
  font-weight: 900;
}

.pro-action small {
  font-size: 9px;
  opacity: 0.72;
}

.pro-action--secondary {
  color: var(--pro-ink);
  background: #fff;
  border: 1px solid var(--pro-line);
}

.pro-action--primary {
  color: #fff;
  background: linear-gradient(120deg, #0d766e, #174950);
  border: 1px solid #174950;
  box-shadow: 0 12px 25px rgba(21, 84, 80, 0.2);
}

.pro-auto-status {
  position: relative;
  margin-top: 13px;
  padding: 12px 16px 12px 40px;
  border: 1px dashed var(--pro-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}

.pro-auto-status > span {
  position: absolute;
  top: 15px;
  left: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9caeb0;
}

.pro-auto-status.is-good > span { background: var(--pro-mint-strong); }
.pro-auto-status.is-warn > span { background: #e6a62b; }
.pro-auto-status.is-working > span { background: var(--pro-coral); animation: pro-pulse 900ms ease infinite alternate; }

.pro-auto-status p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 11px;
  line-height: 1.6;
}

@keyframes pro-pulse {
  to { transform: scale(1.45); opacity: 0.5; }
}

.pro-expert-actions {
  display: flex;
  gap: 8px;
}

.pro-expert-actions button {
  padding: 9px 12px;
  color: var(--pro-muted);
  background: #fff;
  border: 1px solid var(--pro-line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.pro-stage-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 16px;
}

.pro-stage-nav button {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px 8px;
  color: #6d7d80;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--pro-line);
  border-radius: 12px;
  cursor: pointer;
}

.pro-stage-nav button.is-active {
  color: #fff;
  background: var(--pro-ink);
  border-color: var(--pro-ink);
}

.pro-stage-nav span {
  color: #20a89b;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 900;
}

.pro-stage-nav strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-stage-nav small {
  font-size: 8px;
  opacity: 0.65;
}

.pro-stage-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 50%, rgba(58, 184, 168, 0.24), transparent 28%),
    #173d43;
  border-radius: 17px;
}

.pro-stage-summary span {
  color: #77d6ca;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pro-stage-summary h4 {
  margin: 4px 0 3px;
  font-size: 20px;
}

.pro-stage-summary p {
  margin: 0;
  color: #bdd0d2;
  font-size: 10px;
}

.pro-stage-summary > strong {
  display: flex;
  gap: 4px;
  align-items: baseline;
  color: #87e1d6;
  font-size: 32px;
}

.pro-stage-summary > strong small {
  color: #b8cbcd;
  font-size: 9px;
}

.pro-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.pro-module {
  padding: 15px;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 160ms ease, background 160ms ease;
}

.pro-module.is-enabled {
  border-color: #84c5ba;
  background: linear-gradient(135deg, #fff, #e6f6f0);
}

.pro-module header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
}

.pro-module header > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--pro-ink);
  border-radius: 9px 9px 9px 3px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: 900;
}

.pro-module header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

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

.pro-module header small {
  color: var(--pro-muted);
  font-size: 9px;
  line-height: 1.45;
}

.pro-switch {
  position: relative;
  width: 37px;
  height: 21px;
}

.pro-switch input {
  position: absolute;
  opacity: 0;
}

.pro-switch i {
  position: absolute;
  inset: 0;
  background: #c8d1d1;
  border-radius: 999px;
  cursor: pointer;
}

.pro-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(24, 53, 58, 0.2);
  transition: transform 160ms ease;
}

.pro-switch input:checked + i {
  background: var(--pro-mint-strong);
}

.pro-switch input:checked + i::after {
  transform: translateX(16px);
}

.pro-module__control {
  display: grid;
  grid-template-columns: auto 1fr 38px;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #dfe9e7;
}

.pro-module__control label,
.pro-module__control output {
  color: var(--pro-muted);
  font-size: 9px;
  font-weight: 700;
}

.pro-module__control output {
  color: var(--pro-mint-strong);
  font-family: "Courier New", monospace;
  text-align: right;
}

.pro-module > p {
  margin: 8px 0 0;
  color: #90a09f;
  font-size: 8px;
  text-align: right;
}

.pro-learn-head {
  margin-bottom: 20px;
}

.pro-learn-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid #e8cfb7;
  border-radius: 15px;
  background: linear-gradient(120deg, var(--pro-yellow), #fff8ec);
}

.pro-learn-intro > span {
  color: var(--pro-coral);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
}

.pro-learn-intro strong {
  font-size: 15px;
}

.pro-learn-intro p {
  margin: 3px 0 0;
  color: var(--pro-muted);
  font-size: 10px;
}

.pro-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pro-learn-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.pro-learn-grid article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--pro-coral);
  border-radius: 50% 50% 50% 12%;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 900;
}

.pro-learn-grid strong {
  font-size: 13px;
}

.pro-learn-grid p {
  margin: 6px 0;
  color: var(--pro-muted);
  font-size: 11px;
  line-height: 1.65;
}

.pro-learn-grid small {
  color: #96a5a5;
  font-size: 8px;
}

.pro-audio-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 38px;
  border-top: 1px solid var(--pro-line);
  background: rgba(224, 239, 234, 0.52);
}

.pro-audio-footer strong {
  display: block;
  font-size: 13px;
}

.pro-audio-footer p {
  margin: 3px 0 0;
  color: var(--pro-muted);
  font-size: 9px;
}

.pro-result-report {
  display: grid;
  justify-items: end;
  color: var(--pro-muted);
  font-size: 9px;
  text-align: right;
}

.pro-result-report strong {
  color: var(--pro-mint-strong);
  font-size: 11px;
}

.pro-result-report span {
  margin-top: 3px;
}

.pro-audio-suite button:focus-visible,
.pro-audio-suite input:focus-visible {
  outline: 3px solid rgba(239, 107, 84, 0.35);
  outline-offset: 2px;
}

@media (max-width: 840px) {
  .pro-audio-hero { padding: 30px 24px 22px; }
  .pro-audio-trust { margin-right: 24px; margin-left: 24px; }
  .pro-mode-panel { padding: 26px 24px 30px; }
  .pro-audio-footer { padding-right: 24px; padding-left: 24px; }
  .pro-stage-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pro-analysis-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .pro-audio-suite { margin: 22px 0; border-radius: 18px; }
  .pro-audio-hero { grid-template-columns: 1fr; gap: 18px; padding: 26px 18px 20px; }
  .pro-audio-score { grid-template-columns: auto 1fr; min-width: 0; text-align: left; }
  .pro-audio-score strong { grid-row: 1 / 3; margin-right: 12px; }
  .pro-audio-trust { grid-template-columns: repeat(2, 1fr); margin: 0 18px 20px; }
  .pro-audio-trust span:nth-child(2) { border-right: 0; }
  .pro-audio-trust span:nth-child(-n+2) { border-bottom: 1px solid var(--pro-line); }
  .pro-mode-tabs button { grid-template-columns: auto; min-height: 66px; gap: 2px; padding: 10px 5px; }
  .pro-mode-tabs button > span { grid-row: auto; }
  .pro-mode-tabs strong { font-size: 12px; text-align: center; }
  .pro-mode-tabs small { display: none; }
  .pro-mode-panel { padding: 23px 17px 27px; }
  .pro-beginner-top, .pro-expert-head { display: grid; }
  .pro-source-state { min-width: 0; }
  .pro-profile-grid, .pro-module-grid, .pro-learn-grid { grid-template-columns: 1fr; }
  .pro-profile { grid-template-columns: 48px minmax(0, 1fr) 16px; min-height: 76px; padding: 12px; }
  .pro-profile__icon { width: 48px; height: 46px; }
  .pro-intensity-card { grid-template-columns: 1fr; gap: 14px; }
  .pro-auto-actions { grid-template-columns: 1fr; }
  .pro-stage-nav { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .pro-stage-nav button { flex: 0 0 112px; scroll-snap-align: start; }
  .pro-stage-summary { align-items: flex-end; }
  .pro-stage-summary p { line-height: 1.45; }
  .pro-audio-footer { display: grid; padding: 16px 18px; }
  .pro-result-report { justify-items: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .pro-mode-panel,
  .pro-profile,
  .pro-auto-status.is-working > span {
    animation: none;
    transition: none;
  }
}

/* PPUTROLL Signal Constellation 100 — native browser DSP rack. */
.pro-mode-panel--rack {
  padding: 22px;
  background: #07131b;
}

.pdx-rack {
  --pdx-bg: #07131b;
  --pdx-panel: #0c1d28;
  --pdx-panel-2: #102633;
  --pdx-line: rgba(133, 204, 225, 0.18);
  --pdx-line-strong: rgba(119, 219, 226, 0.42);
  --pdx-text: #eaf9fd;
  --pdx-muted: #86a8b7;
  --pdx-cyan: #63d8e8;
  --pdx-mint: #81e0bd;
  --pdx-coral: #ff9c83;
  --pdx-yellow: #f1cf6a;
  color: var(--pdx-text);
  background:
    radial-gradient(circle at 82% 0%, rgba(54, 143, 169, 0.18), transparent 30%),
    radial-gradient(circle at 3% 93%, rgba(62, 169, 131, 0.1), transparent 28%),
    linear-gradient(145deg, #081720, #061119 72%);
  border: 1px solid rgba(135, 214, 232, 0.2);
  border-radius: 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 30px 70px rgba(0, 11, 17, 0.36);
  overflow: hidden;
}

.pdx-rack button,
.pdx-rack input {
  font: inherit;
}

.pdx-rack__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 126px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--pdx-line);
}

.pdx-brand-mark {
  position: relative;
  width: 76px;
  height: 76px;
  border: 1px solid var(--pdx-line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(99, 216, 232, 0.14) 0 2px, transparent 2px) 0 0 / 11px 11px,
    radial-gradient(circle, rgba(129, 224, 189, 0.13), transparent 67%);
  box-shadow: inset 0 0 23px rgba(99, 216, 232, 0.08), 0 0 0 7px rgba(99, 216, 232, 0.025);
}

.pdx-brand-mark::before,
.pdx-brand-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(99, 216, 232, 0.24);
  border-radius: 43% 57% 61% 39%;
  transform: rotate(28deg);
}

.pdx-brand-mark::after {
  inset: 22px 10px;
  border-color: rgba(129, 224, 189, 0.24);
  transform: rotate(-34deg);
}

.pdx-brand-mark i {
  position: absolute;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 2px solid #0a1821;
  border-radius: 50%;
  background: var(--pdx-cyan);
  box-shadow: 0 0 9px rgba(99, 216, 232, 0.9);
}

.pdx-brand-mark i:nth-child(1) { top: 8px; left: 34px; }
.pdx-brand-mark i:nth-child(2) { top: 24px; right: 7px; background: var(--pdx-mint); }
.pdx-brand-mark i:nth-child(3) { right: 17px; bottom: 10px; background: var(--pdx-coral); }
.pdx-brand-mark i:nth-child(4) { bottom: 8px; left: 25px; background: var(--pdx-yellow); }
.pdx-brand-mark i:nth-child(5) { top: 33px; left: 7px; background: var(--pdx-mint); }
.pdx-brand-mark i:nth-child(6) { top: 34px; left: 35px; width: 10px; height: 10px; }

.pdx-rack__identity span,
.pdx-console-label > span,
.pdx-workbench__top > span {
  color: var(--pdx-cyan);
  font: 800 9px/1.2 "Courier New", monospace;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.pdx-rack__identity h3 {
  margin: 5px 0 7px;
  color: var(--pdx-text);
  font: 900 clamp(23px, 3vw, 36px)/1 "Trebuchet MS", "Noto Sans KR", sans-serif;
  letter-spacing: -0.035em;
}

.pdx-rack__identity p {
  max-width: 670px;
  margin: 0;
  color: var(--pdx-muted);
  font-size: 11px;
  line-height: 1.65;
}

.pdx-engine-contract {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pdx-rack__trust {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 9px;
  max-width: 240px;
  padding: 12px 14px;
  border: 1px solid rgba(129, 224, 189, 0.24);
  border-radius: 12px;
  background: rgba(15, 43, 45, 0.56);
}

.pdx-rack__trust > i {
  grid-row: 1 / 3;
  width: 9px;
  height: 9px;
  border: 2px solid #0c2429;
  border-radius: 50%;
  background: var(--pdx-mint);
  box-shadow: 0 0 0 1px var(--pdx-mint), 0 0 12px rgba(129, 224, 189, 0.65);
}

.pdx-rack__trust strong {
  color: #bcebdc;
  font-size: 9px;
  line-height: 1.4;
}

.pdx-rack__trust small {
  color: #63838d;
  font: 700 7px/1 "Courier New", monospace;
  letter-spacing: 0.12em;
}

.pdx-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--pdx-line);
  background: rgba(4, 14, 21, 0.68);
}

.pdx-toolbar__group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdx-toolbar__group > span {
  margin-right: 4px;
  color: #698c9a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdx-toolbar button {
  min-height: 32px;
  padding: 6px 10px;
  color: #91acb7;
  border: 1px solid var(--pdx-line);
  border-radius: 8px;
  background: #0b1b25;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.pdx-toolbar button:hover {
  color: var(--pdx-text);
  border-color: var(--pdx-line-strong);
}

.pdx-toolbar button.is-active,
.pdx-snapshots button[data-rack-snapshot].is-active {
  color: #07171f;
  border-color: var(--pdx-cyan);
  background: var(--pdx-cyan);
  box-shadow: 0 0 17px rgba(99, 216, 232, 0.19);
}

.pdx-snapshots button[data-rack-snapshot] {
  width: 34px;
  padding: 0;
  font: 900 12px/1 "Courier New", monospace;
}

.pdx-snapshots button[data-rack-store] b {
  color: var(--pdx-mint);
}

.pdx-routing button {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pdx-routing button > i {
  color: var(--pdx-cyan);
  font: 900 8px/1 "Courier New", monospace;
  font-style: normal;
}

.pdx-routing .pdx-bypass {
  color: #d9aaa1;
  border-color: rgba(255, 156, 131, 0.25);
}

.pdx-routing .pdx-bypass.is-active {
  color: #2a0b07;
  border-color: var(--pdx-coral);
  background: var(--pdx-coral);
}

.pdx-bypass > i {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.pdx-console {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 690px;
}

.pdx-constellation {
  min-width: 0;
  padding: 20px 15px;
  border-right: 1px solid var(--pdx-line);
  background:
    linear-gradient(rgba(99, 216, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 216, 232, 0.025) 1px, transparent 1px),
    rgba(5, 16, 23, 0.66);
  background-size: 18px 18px;
}

.pdx-console-label {
  display: grid;
  gap: 4px;
  margin: 0 4px 14px;
}

.pdx-console-label small {
  color: #668895;
  font-size: 8px;
  line-height: 1.45;
}

.pdx-stage-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
}

.pdx-stage-nav::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 1px;
  background: linear-gradient(var(--pdx-line), var(--pdx-cyan), var(--pdx-mint), var(--pdx-line));
}

.pdx-stage-nav button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 2px 9px;
  align-items: center;
  min-height: 48px;
  padding: 7px 8px 7px 4px;
  color: #7696a2;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.pdx-stage-nav button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #7896a1;
  border: 1px solid #31505b;
  border-radius: 50%;
  background: #0b1c25;
  font: 900 8px/1 "Courier New", monospace;
}

.pdx-stage-nav button > strong {
  align-self: end;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdx-stage-nav button > small {
  align-self: start;
  color: #547480;
  font: 700 7px/1.2 "Courier New", monospace;
}

.pdx-stage-nav button > i {
  grid-row: 1 / 3;
  width: 5px;
  height: calc(5px + var(--pdx-stage-level, 0) * 2px);
  max-height: 25px;
  border-radius: 99px;
  background: #2a434d;
}

.pdx-stage-nav button.has-active > i {
  background: linear-gradient(var(--pdx-cyan), var(--pdx-mint));
  box-shadow: 0 0 7px rgba(99, 216, 232, 0.42);
}

.pdx-stage-nav button.is-active {
  color: var(--pdx-text);
  border-color: var(--pdx-line-strong);
  background: linear-gradient(90deg, rgba(99, 216, 232, 0.13), rgba(99, 216, 232, 0.025));
  box-shadow: inset 3px 0 var(--pdx-cyan);
}

.pdx-stage-nav button.is-active > span {
  color: #06151d;
  border-color: var(--pdx-cyan);
  background: var(--pdx-cyan);
  box-shadow: 0 0 13px rgba(99, 216, 232, 0.26);
}

.pdx-stage-nav button.is-upstream {
  cursor: default;
  opacity: 0.56;
}

.pdx-stage-nav button.is-upstream > span {
  border-style: dashed;
}

.pdx-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 18px;
}

.pdx-readouts > div {
  display: grid;
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid var(--pdx-line);
  border-radius: 8px;
  background: rgba(12, 30, 40, 0.88);
  text-align: center;
}

.pdx-readouts span,
.pdx-readouts small {
  overflow: hidden;
  color: #5d7c88;
  font: 700 6px/1.25 "Courier New", monospace;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pdx-readouts strong {
  margin: 4px 0 2px;
  color: var(--pdx-mint);
  font: 900 16px/1 "Courier New", monospace;
}

.pdx-readouts > div:last-child strong { color: var(--pdx-yellow); }

.pdx-workbench {
  min-width: 0;
  padding: 20px;
  background: rgba(10, 25, 34, 0.72);
}

.pdx-workbench__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pdx-workbench .pro-expert-actions button {
  color: #88a5af;
  border-color: var(--pdx-line);
  background: #0b1d27;
}

.pdx-workbench .pro-expert-actions button:hover {
  color: var(--pdx-text);
  border-color: var(--pdx-line-strong);
}

.pdx-stage-summary {
  position: relative;
  min-height: 118px;
  margin-bottom: 12px;
  padding: 21px 23px;
  border: 1px solid rgba(99, 216, 232, 0.26);
  border-radius: 15px;
  background:
    radial-gradient(circle at 84% 52%, rgba(99, 216, 232, 0.16), transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(99, 216, 232, 0.018) 16px),
    linear-gradient(120deg, #102c39, #0b202b);
}

.pdx-stage-summary::after {
  content: "";
  position: absolute;
  right: 105px;
  bottom: 22px;
  width: 118px;
  height: 25px;
  opacity: 0.38;
  background: repeating-linear-gradient(90deg, var(--pdx-cyan) 0 2px, transparent 2px 7px);
  clip-path: polygon(0 52%, 7% 30%, 14% 70%, 21% 18%, 28% 79%, 35% 39%, 42% 62%, 49% 13%, 56% 83%, 63% 34%, 70% 68%, 77% 27%, 84% 74%, 91% 42%, 100% 55%, 100% 100%, 0 100%);
}

.pdx-stage-summary__copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

.pdx-stage-summary__copy span {
  color: var(--pdx-cyan);
}

.pdx-stage-summary__copy h4 {
  margin: 5px 0 4px;
  color: var(--pdx-text);
  font-size: 21px;
}

.pdx-stage-summary__copy p {
  color: #88a7b2;
  font-size: 9px;
  line-height: 1.55;
}

.pdx-stage-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--pdx-mint) calc(var(--pdx-stage-active) * 10%), #1e3944 0);
  box-shadow: 0 0 20px rgba(129, 224, 189, 0.12);
}

.pdx-stage-dial::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: #0c212b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.pdx-stage-dial strong {
  z-index: 1;
  display: grid;
  color: var(--pdx-text);
  font: 900 20px/1 "Courier New", monospace;
  text-align: center;
}

.pdx-stage-dial strong small {
  margin-top: 3px;
  color: #668793;
  font-size: 7px;
}

.pdx-module-grid {
  gap: 9px;
}

.pdx-chain-editor {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--pdx-line);
  border-radius: 16px;
  background: rgba(4, 15, 22, 0.54);
}

.pdx-chain-editor > header,
.pdx-browser-head,
.pdx-parameters > header,
.pdx-graph-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.pdx-chain-editor > header > div,
.pdx-browser-head > div {
  display: grid;
  gap: 4px;
}

.pdx-chain-editor > header span,
.pdx-browser-head span,
.pdx-parameters > header span,
.pdx-graph-panel > header > span {
  color: var(--pdx-cyan);
  font: 800 9px/1.2 "Courier New", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pdx-chain-editor > header p,
.pdx-browser-head p {
  margin: 0;
  color: #6f909d;
  font-size: 8px;
  line-height: 1.5;
}

#pdx-chain-count,
.pdx-browser-head b {
  color: var(--pdx-mint);
  font: 900 9px/1 "Courier New", monospace;
  white-space: nowrap;
}

.pdx-master-chain {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-height: 74px;
  margin: 13px -2px 15px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.pdx-chain-node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 7px;
  align-items: center;
  flex: 0 0 145px;
  min-height: 61px;
  padding: 9px 10px;
  color: #86a4ae;
  border: 1px solid var(--pdx-line);
  border-radius: 10px;
  background: linear-gradient(155deg, #102733, #091a24);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.pdx-chain-node > span {
  grid-row: 1 / 3;
  color: #537887;
  font: 900 7px/1 "Courier New", monospace;
}

.pdx-chain-node > i {
  position: absolute;
  top: -2px;
  left: 10px;
  width: 22px;
  height: 2px;
  background: #385661;
}

.pdx-chain-node b {
  overflow: hidden;
  color: #c8e2e9;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdx-chain-node small {
  color: #547681;
  font: 700 6px/1 "Courier New", monospace;
}

.pdx-chain-node output {
  grid-row: 1 / 3;
  color: var(--pdx-mint);
  font: 900 8px/1 "Courier New", monospace;
}

.pdx-chain-node.is-selected {
  border-color: var(--pdx-cyan);
  background: linear-gradient(155deg, #153b48, #0c2531);
  box-shadow: inset 0 0 0 1px rgba(99, 216, 232, 0.18), 0 0 15px rgba(99, 216, 232, 0.1);
}

.pdx-chain-node.is-selected > i {
  background: var(--pdx-cyan);
  box-shadow: 0 0 7px rgba(99, 216, 232, 0.7);
}

.pdx-chain-link {
  display: grid;
  place-items: center;
  flex: 0 0 8px;
  color: #365762;
  font-size: 18px;
}

.pdx-chain-empty {
  align-self: center;
  width: 100%;
  margin: 0;
  padding: 18px;
  color: #668794;
  border: 1px dashed var(--pdx-line);
  border-radius: 10px;
  font-size: 9px;
  text-align: center;
}

.pdx-detail-console {
  border: 1px solid rgba(99, 216, 232, 0.29);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 2%, rgba(99, 216, 232, 0.12), transparent 27%),
    linear-gradient(145deg, #0f2733, #081a24 76%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 18px 38px rgba(0, 7, 12, 0.25);
  overflow: hidden;
}

.pdx-detail-console:focus {
  outline: 2px solid rgba(99, 216, 232, 0.45);
  outline-offset: 3px;
}

.pdx-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 102px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--pdx-line);
  background: rgba(6, 20, 28, 0.58);
}

.pdx-detail-ident > span {
  color: var(--pdx-cyan);
  font: 800 8px/1 "Courier New", monospace;
  letter-spacing: 0.14em;
}

.pdx-detail-ident h4 {
  margin: 5px 0 4px;
  color: var(--pdx-text);
  font-size: clamp(19px, 2vw, 27px);
  letter-spacing: -0.035em;
}

.pdx-detail-ident p {
  max-width: 650px;
  margin: 0;
  color: #7f9eaa;
  font-size: 9px;
  line-height: 1.5;
}

.pdx-detail-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdx-detail-tools > button,
.pdx-routing-badge {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 6px 8px;
  color: #89a7b1;
  border: 1px solid var(--pdx-line);
  border-radius: 7px;
  background: #0a1c25;
  font: 800 7px/1 "Courier New", monospace;
}

.pdx-routing-badge {
  color: var(--pdx-mint);
  border-color: rgba(129, 224, 189, 0.24);
}

.pdx-detail-tools > button:hover { color: var(--pdx-text); border-color: var(--pdx-line-strong); cursor: pointer; }

.pdx-detail-bypass {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 9px;
  color: #9ab4bd;
  border: 1px solid rgba(255, 156, 131, 0.2);
  border-radius: 7px;
  background: #0a1c25;
  font-size: 7px;
  font-weight: 800;
}

.pdx-detail-bypass input { position: absolute; opacity: 0; }
.pdx-detail-bypass i { position: relative; width: 27px; height: 15px; border-radius: 99px; background: var(--pdx-mint); }
.pdx-detail-bypass i::after { content: ""; position: absolute; top: 2px; left: 14px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform 150ms ease; }
.pdx-detail-bypass input:checked + i { background: var(--pdx-coral); }
.pdx-detail-bypass input:checked + i::after { transform: translateX(-12px); }

.pdx-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  min-height: 410px;
}

.pdx-graph-panel {
  min-width: 0;
  padding: 17px;
  border-right: 1px solid var(--pdx-line);
}

.pdx-response-preset {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #668793;
  font-size: 7px;
}

.pdx-response-preset select {
  min-height: 31px;
  padding: 5px 25px 5px 8px;
  color: #b9d5dd;
  border: 1px solid var(--pdx-line);
  border-radius: 6px;
  background: #091a23;
  font-size: 8px;
}

.pdx-detail-graph {
  margin-top: 10px;
  border: 1px solid rgba(114, 189, 208, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(65, 133, 151, 0.12), transparent 55%),
    #06151e;
  overflow: hidden;
}

.pdx-detail-graph.is-interactive {
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.pdx-detail-graph svg {
  display: block;
  width: 100%;
  min-height: 245px;
}

.pdx-graph-grid path { fill: none; stroke: rgba(117, 182, 199, 0.08); stroke-width: 1; }
.pdx-response-line { fill: none; stroke: var(--pdx-cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(99, 216, 232, 0.38)); }
.pdx-unity-line { fill: none; stroke: rgba(139, 170, 180, 0.23); stroke-width: 1; stroke-dasharray: 5 5; }
.pdx-threshold-line { fill: none; stroke: var(--pdx-coral); stroke-width: 1; stroke-dasharray: 4 4; }
.pdx-curve-node { fill: #071820; stroke: var(--pdx-cyan); stroke-width: 3; }
.pdx-detail-graph text { fill: #547581; font: 700 8px "Courier New", monospace; letter-spacing: 0.06em; }
.pdx-spectrum-snapshot rect { fill: rgba(129, 224, 189, 0.12); }
.pdx-safety-meter rect { fill: none; stroke: var(--pdx-cyan); stroke-width: 2; }
.pdx-safety-meter rect:first-child { fill: rgba(99, 216, 232, 0.23); }
.pdx-safety-meter rect:nth-child(2) { fill: rgba(129, 224, 189, 0.23); }
.pdx-safety-meter path { stroke: var(--pdx-coral); stroke-width: 2; stroke-dasharray: 6 4; }
.pdx-vector circle, .pdx-vector > path:not(.pdx-response-line) { fill: none; stroke: rgba(121, 184, 199, 0.16); stroke-width: 1; }
.pdx-harmonics rect { fill: rgba(241, 207, 106, 0.25); }

.pdx-analysis-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.pdx-analysis-readout > div {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--pdx-line);
  border-radius: 7px;
  background: rgba(9, 27, 36, 0.72);
}

.pdx-analysis-readout span,
.pdx-analysis-readout small {
  color: #587985;
  font: 700 6px/1.2 "Courier New", monospace;
  letter-spacing: 0.08em;
}

.pdx-analysis-readout b { color: #c8e4ea; font: 900 10px/1.3 "Courier New", monospace; }
.pdx-analysis-readout > div:last-child b { color: var(--pdx-yellow); }

.pdx-parameters {
  min-width: 0;
  padding: 17px;
  background: rgba(6, 19, 27, 0.45);
}

.pdx-parameters > header small { color: #52737f; font: 700 7px/1 "Courier New", monospace; }
.pdx-parameters > div { display: grid; gap: 7px; margin-top: 10px; }

.pdx-parameter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(114, 178, 195, 0.13);
  border-radius: 8px;
  background: rgba(13, 35, 45, 0.82);
}

.pdx-parameter > span { display: grid; gap: 2px; }
.pdx-parameter b { color: #b5d0d8; font-size: 8px; }
.pdx-parameter small { color: #4e6e79; font: 700 6px/1 "Courier New", monospace; }
.pdx-parameter output { color: var(--pdx-cyan); font: 900 9px/1 "Courier New", monospace; text-align: right; }
.pdx-parameter input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 3px;
  accent-color: var(--pdx-cyan);
  background: linear-gradient(90deg, var(--pdx-cyan) calc(var(--pdx-param) * 1%), #23404b 0);
}

.pdx-parameter--knob { grid-template-columns: minmax(0, 1fr) 48px auto; min-height: 74px; }
.pdx-parameter--knob > input { grid-column: 1 / -1; }
.pdx-param-knob { position: relative; display: block; width: 43px; height: 43px; border: 1px solid #34535e; border-radius: 50%; background: conic-gradient(from 225deg, var(--pdx-cyan) 0 calc(var(--pdx-param) * 2.7deg), #213c47 0 270deg, transparent 270deg), #0a1820; box-shadow: inset 0 0 0 6px #0c202a, 0 4px 10px rgba(0,0,0,.22); }
.pdx-param-knob::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #132d38; }
.pdx-param-knob u { position: absolute; z-index: 1; top: 7px; left: 20px; width: 2px; height: 13px; border-radius: 2px; background: #e7f7fa; transform: rotate(calc(-135deg + var(--pdx-param) * 2.7deg)); transform-origin: 1px 15px; }

.pdx-parameter select,
.pdx-parameter--array input[type="text"] {
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  color: #c5e0e7;
  border: 1px solid var(--pdx-line);
  border-radius: 6px;
  background: #081922;
  font-size: 8px;
}

.pdx-parameter--boolean input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pdx-cyan);
}

.pdx-parameter--array { grid-template-columns: minmax(0, 0.8fr) minmax(120px, 1.2fr); }
.pdx-parameter--array > small { grid-column: 2; color: #4d707b; font-size: 6px; }

.pdx-no-parameters {
  margin: 0;
  padding: 13px;
  color: #6f8d98;
  border: 1px dashed var(--pdx-line);
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.5;
}

.pdx-browser-head {
  margin: 15px 2px 9px;
}

.pdx-module.is-selected {
  border-color: var(--pdx-cyan);
  box-shadow: inset 3px 0 var(--pdx-cyan), 0 8px 20px rgba(0, 9, 14, 0.25);
}

.pdx-module__open {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pdx-module__open > small { color: #5e8492; font: 800 7px/1 "Courier New", monospace; letter-spacing: 0.1em; }
.pdx-module__open > strong { color: var(--pdx-text); font-size: 12px; }
.pdx-module__open > span { color: #7795a0; font-size: 8px; line-height: 1.4; }

.pdx-module {
  position: relative;
  min-height: 192px;
  padding: 14px;
  color: var(--pdx-text);
  border-color: var(--pdx-line);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(99, 216, 232, 0.025) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(180deg, #102631, #0b1d27);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.pdx-module::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  opacity: 0.22;
  background: var(--pdx-cyan);
}

.pdx-module.is-enabled {
  border-color: rgba(99, 216, 232, 0.42);
  background:
    radial-gradient(circle at 95% 6%, rgba(99, 216, 232, 0.12), transparent 34%),
    linear-gradient(180deg, #112c39, #0c202a);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 9, 14, 0.2);
}

.pdx-module.is-enabled::before {
  opacity: 1;
  box-shadow: 0 0 10px rgba(99, 216, 232, 0.5);
}

.pdx-module--compressor::before,
.pdx-module--transient::before,
.pdx-module--parallel::before { background: var(--pdx-coral); }
.pdx-module--width::before,
.pdx-module--midside::before,
.pdx-module--midSide::before { background: var(--pdx-mint); }
.pdx-module--clipper::before,
.pdx-module--gain::before { background: var(--pdx-yellow); }

.pdx-module > header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.pdx-module .pdx-module__slot {
  display: grid;
  place-items: center;
  width: 43px;
  height: 26px;
  color: #07151d;
  border-radius: 6px 6px 6px 2px;
  background: var(--pdx-cyan);
  font: 900 7px/1 "Courier New", monospace;
}

.pdx-module > header > div {
  display: grid;
  gap: 2px;
}

.pdx-module > header > div > small {
  color: #5e8492;
  font: 800 7px/1 "Courier New", monospace;
  letter-spacing: 0.1em;
}

.pdx-module > header strong {
  color: var(--pdx-text);
  font-size: 12px;
}

.pdx-module > header p {
  margin: 2px 0 0;
  color: #7795a0;
  font-size: 8px;
  line-height: 1.4;
}

.pdx-switch {
  margin-top: 2px;
}

.pdx-switch i {
  background: #213843;
}

.pdx-switch input:checked + i {
  background: var(--pdx-cyan);
}

.pdx-module__surface {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(132, 187, 203, 0.12);
}

.pdx-knob {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid #294753;
  border-radius: 50%;
  background:
    conic-gradient(from 225deg, var(--pdx-cyan) 0 calc(var(--pdx-value) * 2.7deg), #1b323d 0 270deg, transparent 270deg),
    #0a1820;
  box-shadow: inset 0 0 0 6px #0c202a, inset 0 0 0 7px rgba(255, 255, 255, 0.05), 0 5px 12px rgba(0, 0, 0, 0.22);
}

.pdx-knob::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #24414d, #0b1a22 70%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.pdx-knob i {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 24px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: var(--pdx-text);
  transform: rotate(calc(-135deg + var(--pdx-value) * 2.7deg));
  transform-origin: 1px 18px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.45);
}

.pdx-module__control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pdx-module__control label {
  color: #7898a4;
  font-size: 8px;
}

.pdx-module__control output {
  color: var(--pdx-cyan);
  font: 900 11px/1 "Courier New", monospace;
}

.pdx-module__control input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 3px;
  accent-color: var(--pdx-cyan);
}

.pdx-module > footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #526f7a;
  font-size: 7px;
}

.pdx-module > footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #304a54;
}

.pdx-module.is-enabled > footer i {
  background: var(--pdx-mint);
  box-shadow: 0 0 6px rgba(129, 224, 189, 0.7);
}

.pdx-rack__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  color: #607f8b;
  border-top: 1px solid var(--pdx-line);
  background: #061018;
  font: 700 8px/1.35 "Courier New", monospace;
  letter-spacing: 0.04em;
}

.pdx-rack__footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdx-rack__footer > span > i {
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--pdx-mint);
  box-shadow: 0 0 7px rgba(129, 224, 189, 0.55);
}

.pdx-rack__footer b {
  color: #9fc8c0;
}

#pdx-rack-status {
  overflow: hidden;
  max-width: 52%;
  color: var(--pdx-cyan);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdx-rack button:focus-visible,
.pdx-rack input:focus-visible,
.pdx-rack select:focus-visible {
  outline: 3px solid rgba(99, 216, 232, 0.48);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .pdx-rack__header { grid-template-columns: auto minmax(0, 1fr); }
  .pdx-rack__trust { grid-column: 1 / -1; max-width: none; }
  .pdx-console { grid-template-columns: 210px minmax(0, 1fr); }
  .pdx-module-grid { grid-template-columns: 1fr; }
  .pdx-detail-body { grid-template-columns: 1fr; }
  .pdx-graph-panel { border-right: 0; border-bottom: 1px solid var(--pdx-line); }
  .pdx-detail-head { grid-template-columns: 1fr; }
  .pdx-detail-tools { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .pro-mode-panel--rack { padding: 10px; }
  .pdx-rack { border-radius: 15px; }
  .pdx-rack__header { grid-template-columns: 1fr; gap: 13px; padding: 20px 17px; }
  .pdx-brand-mark { width: 58px; height: 58px; }
  .pdx-brand-mark i:nth-child(1) { top: 5px; left: 25px; }
  .pdx-brand-mark i:nth-child(2) { top: 18px; }
  .pdx-brand-mark i:nth-child(3) { right: 12px; bottom: 7px; }
  .pdx-brand-mark i:nth-child(4) { bottom: 5px; left: 18px; }
  .pdx-brand-mark i:nth-child(5) { top: 25px; left: 4px; }
  .pdx-brand-mark i:nth-child(6) { top: 26px; left: 26px; }
  .pdx-toolbar { display: grid; padding: 10px; overflow-x: auto; }
  .pdx-toolbar__group { min-width: max-content; }
  .pdx-console { grid-template-columns: 1fr; }
  .pdx-constellation { border-right: 0; border-bottom: 1px solid var(--pdx-line); }
  .pdx-stage-nav { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .pdx-stage-nav::before { display: none; }
  .pdx-stage-nav button { flex: 0 0 122px; }
  .pdx-stage-nav button.is-upstream { display: none; }
  .pdx-readouts { max-width: 420px; }
  .pdx-workbench { padding: 14px; }
  .pdx-chain-editor { padding: 12px; }
  .pdx-chain-editor > header, .pdx-browser-head { align-items: flex-start; }
  .pdx-detail-head { padding: 15px; }
  .pdx-detail-body { min-height: 0; }
  .pdx-graph-panel, .pdx-parameters { padding: 13px; }
  .pdx-detail-graph svg { min-height: 210px; }
  .pdx-analysis-readout { grid-template-columns: 1fr; }
  .pdx-workbench__top { align-items: flex-start; }
  .pdx-stage-summary { min-height: 138px; padding: 18px; }
  .pdx-stage-summary__copy { max-width: calc(100% - 75px); }
  .pdx-stage-summary::after { display: none; }
  .pdx-stage-dial { width: 62px; height: 62px; }
  .pdx-rack__footer { align-items: flex-start; }
}

@media (max-width: 440px) {
  .pdx-routing button span { display: none; }
  .pdx-workbench__top { display: grid; }
  .pdx-workbench .pro-expert-actions { width: 100%; }
  .pdx-workbench .pro-expert-actions button { flex: 1; }
  .pdx-module { min-height: 204px; }
  .pdx-chain-editor > header, .pdx-browser-head, .pdx-parameters > header, .pdx-graph-panel > header { display: grid; }
  .pdx-detail-tools { align-items: stretch; }
  .pdx-detail-tools > button, .pdx-routing-badge { flex: 1; }
  .pdx-detail-bypass { width: 100%; justify-content: space-between; }
  .pdx-parameter--array { grid-template-columns: 1fr; }
  .pdx-parameter--array > small { grid-column: 1; }
  .pdx-module > header { grid-template-columns: auto minmax(0, 1fr); }
  .pdx-module .pdx-switch { grid-column: 1 / -1; justify-self: end; margin-top: -3px; }
  .pdx-rack__footer { display: grid; }
  #pdx-rack-status { max-width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .pdx-rack *,
  .pdx-rack *::before,
  .pdx-rack *::after { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

/* Expert surface · 40 read-only reports, 70 native DSP, final verification */
.pdx-report-suite,
.pdx-final-report {
  border-top: 1px solid var(--pdx-line);
  border-bottom: 1px solid var(--pdx-line);
  background: rgba(4, 17, 24, .36);
}

.pdx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 24px clamp(18px, 3vw, 34px) 17px;
}
.pdx-section-head > div { min-width: 0; }
.pdx-section-head > div > span { color: var(--pdx-cyan); font: 850 10px/1.3 "Courier New", monospace; letter-spacing: .14em; }
.pdx-section-head h4 { margin: 5px 0; color: var(--pdx-text); font-size: clamp(21px, 2.6vw, 32px); line-height: 1.12; }
.pdx-section-head p { max-width: 820px; margin: 0; color: #87a5b0; font-size: 13px; line-height: 1.65; word-break: keep-all; }
.pdx-section-head > strong { flex: 0 0 auto; color: var(--pdx-mint); font: 900 13px/1 "Courier New", monospace; }

.pdx-report-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 clamp(18px, 3vw, 34px) 25px; }
.pdx-report-group { min-width: 0; padding: 13px; border: 1px solid var(--pdx-line); border-radius: 13px; background: rgba(8, 27, 36, .64); }
.pdx-report-group > header { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.pdx-report-group > header > span { display: grid; place-items: center; width: 35px; height: 35px; color: #07161d; border-radius: 9px; background: var(--pdx-mint); font: 900 11px/1 "Courier New", monospace; }
.pdx-report-group h5 { margin: 0; color: var(--pdx-text); font-size: 14px; line-height: 1.3; }
.pdx-report-group header small { display: block; margin-top: 3px; color: #6f929e; font-size: 11px; line-height: 1.35; }
.pdx-report-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pdx-report-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; min-height: 58px; padding: 8px; color: #90adb7; border: 1px solid var(--pdx-line); border-radius: 9px; background: #0a1d27; text-align: left; cursor: pointer; }
.pdx-report-card:hover, .pdx-report-card:focus-visible, .pdx-report-card.is-selected { color: var(--pdx-text); border-color: var(--pdx-cyan); box-shadow: inset 3px 0 var(--pdx-cyan); outline: none; }
.pdx-report-card > span { color: var(--pdx-cyan); font: 900 10px/1 "Courier New", monospace; }
.pdx-report-card > div { min-width: 0; }
.pdx-report-card strong { display: block; color: var(--pdx-text); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.pdx-report-card small { display: block; margin-top: 2px; color: #668793; font-size: 10px; line-height: 1.3; }
.pdx-report-card output { max-width: 120px; color: var(--pdx-mint); font: 900 11px/1.25 "Courier New", monospace; text-align: right; overflow-wrap: anywhere; }
.pdx-report-card output small { color: #668793; font-size: 10px; }

.pdx-final-report { padding-bottom: 24px; }
.pdx-final-wait { display: flex; align-items: center; gap: 14px; margin: 0 clamp(18px, 3vw, 34px); padding: 20px; border: 1px dashed var(--pdx-line-strong); border-radius: 12px; background: rgba(8, 27, 36, .54); }
.pdx-final-wait > i { width: 13px; height: 13px; flex: 0 0 13px; border: 2px solid var(--pdx-line-strong); border-top-color: var(--pdx-cyan); border-radius: 50%; }
.pdx-final-wait strong { color: var(--pdx-text); font-size: 14px; }
.pdx-final-wait p { margin: 4px 0 0; color: #7898a3; font-size: 12px; line-height: 1.55; }
.pdx-final-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 clamp(18px, 3vw, 34px); }
.pdx-final-metric { display: grid; grid-template-columns: minmax(92px, .8fr) minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 13px; border: 1px solid var(--pdx-line); border-radius: 10px; background: rgba(8, 27, 36, .68); }
.pdx-final-metric > span { color: var(--pdx-text); font-size: 12px; font-weight: 850; }
.pdx-final-metric > div small { display: block; color: #668793; font: 800 10px/1.25 "Courier New", monospace; }
.pdx-final-metric > div strong { display: block; margin-top: 3px; color: #c6e1e7; font: 900 13px/1.2 "Courier New", monospace; }
.pdx-final-metric > i { color: #4f717d; font-style: normal; }
.pdx-final-metric > em { color: var(--pdx-cyan); font: normal 800 10px/1.3 "Courier New", monospace; text-align: right; }
.pdx-final-metric.is-pass { border-color: rgba(129,224,189,.36); }.pdx-final-metric.is-pass > em { color: var(--pdx-mint); }
.pdx-final-metric.is-review { border-color: rgba(255,156,131,.42); }.pdx-final-metric.is-review > em { color: var(--pdx-coral); }

.pdx-frequency-axis path { stroke: rgba(117,182,199,.28); stroke-width: 1; }
.pdx-detail-graph .pdx-frequency-axis text { fill: #71919d; font-size: 11px; font-weight: 750; letter-spacing: 0; }

.pdx-bay-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 24px clamp(18px, 3vw, 34px) 18px;
  border-bottom: 1px solid var(--pdx-line);
}

.pdx-bay-intro > div { min-width: 0; }
.pdx-bay-intro span,
.pdx-system-library > header span {
  color: var(--pdx-cyan);
  font: 850 11px/1.4 "Courier New", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pdx-bay-intro h4 {
  margin: 5px 0;
  color: var(--pdx-text);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.pdx-bay-intro p {
  max-width: 780px;
  margin: 0;
  color: #87a5b0;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.pdx-bay-intro > strong {
  flex: 0 0 auto;
  max-width: 250px;
  padding: 10px 13px;
  color: var(--pdx-yellow);
  border: 1px solid rgba(241, 207, 106, .25);
  border-radius: 10px;
  background: rgba(241, 207, 106, .06);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}
.pdx-rack > .pdx-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--pdx-line);
}
.pdx-rack > .pdx-readouts > div { min-width: 0; }
.pdx-rack > .pdx-readouts span,
.pdx-rack > .pdx-readouts small { font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.pdx-rack > .pdx-readouts strong { font-size: clamp(16px, 2vw, 22px); }

.pdx-plugin-bay {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.72fr);
  min-height: 760px;
}
.pdx-system-library {
  min-width: 0;
  padding: 20px 16px;
  border-right: 1px solid var(--pdx-line);
  background: rgba(3, 14, 21, .58);
}
.pdx-system-library > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#pdx-library-count {
  color: var(--pdx-mint);
  font: 900 12px/1 "Courier New", monospace;
  white-space: nowrap;
}
.pdx-library-search,
.pdx-library-stage {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  color: #8dabba;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.pdx-library-search input,
.pdx-library-stage select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #d3e7ec;
  border: 1px solid var(--pdx-line-strong);
  border-radius: 11px;
  background: #081c25;
  font-size: 14px;
}
.pdx-library-search input::placeholder { color: #67838e; opacity: 1; }
.pdx-library-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.pdx-library-filters button,
.pdx-library-actions button {
  min-height: 38px;
  padding: 7px 9px;
  color: #95b1ba;
  border: 1px solid var(--pdx-line);
  border-radius: 9px;
  background: #0b202a;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.pdx-library-filters button.is-active {
  color: #07161d;
  border-color: var(--pdx-cyan);
  background: var(--pdx-cyan);
}
.pdx-library-list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  margin-top: 14px;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-color: var(--pdx-line-strong) transparent;
}
.pdx-library-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--pdx-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #102833, #0a1d27);
}
.pdx-library-item.is-loaded,
.pdx-library-item.is-selected { border-color: rgba(99, 216, 232, .48); box-shadow: inset 3px 0 var(--pdx-cyan); }
.pdx-library-item--telemetry { background: linear-gradient(145deg, #132832, #0b1d27); }
.pdx-library-slot {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 29px;
  color: #07161d;
  border-radius: 7px;
  background: var(--pdx-cyan);
  font: 900 10px/1 "Courier New", monospace;
}
.pdx-library-item--telemetry .pdx-library-slot { background: var(--pdx-mint); }
.pdx-library-item > div:nth-child(2) { min-width: 0; }
.pdx-library-item small { color: #6f929e; font: 750 10px/1.35 "Courier New", monospace; overflow-wrap: anywhere; }
.pdx-library-item strong { display: block; margin-top: 4px; color: var(--pdx-text); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; word-break: keep-all; }
.pdx-library-item p { margin: 4px 0 0; color: #809da8; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
.pdx-library-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.pdx-library-actions .pdx-library-load { color: #07161d; border-color: var(--pdx-mint); background: var(--pdx-mint); }
.pdx-library-actions .pdx-library-unload { color: #ffc2b2; border-color: rgba(255, 156, 131, .32); }
.pdx-library-empty { margin: 0; padding: 24px 12px; color: #7f9ca7; border: 1px dashed var(--pdx-line); border-radius: 10px; font-size: 13px; line-height: 1.6; text-align: center; }

.pdx-bay-workbench { min-width: 0; padding: 20px; }
.pdx-stage-compat { display: none !important; }
.pdx-bay-workbench .pdx-chain-editor { margin-bottom: 16px; }
.pdx-chain-slot { position: relative; flex: 0 0 168px; min-width: 0; scroll-snap-align: start; }
.pdx-chain-slot .pdx-chain-node { width: 100%; min-height: 72px; padding-right: 31px; }
.pdx-chain-slot.is-selected .pdx-chain-node { border-color: var(--pdx-cyan); background: linear-gradient(155deg, #153b48, #0c2531); }
.pdx-chain-unload {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #9ab3bc;
  border: 1px solid var(--pdx-line);
  border-radius: 7px;
  background: #081820;
  font-size: 15px;
  cursor: pointer;
}
.pdx-chain-editor > header span,
.pdx-parameters > header span,
.pdx-graph-panel > header > span { font-size: 11px; line-height: 1.35; }
.pdx-chain-editor > header p { font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
#pdx-chain-count { font-size: 11px; }
.pdx-chain-node > span { font-size: 10px; }
.pdx-chain-node b { font-size: 12px; line-height: 1.3; }
.pdx-chain-node small { font-size: 10px; line-height: 1.3; }
.pdx-chain-node output { font-size: 11px; }
.pdx-chain-empty { font-size: 12px; line-height: 1.55; }

.pdx-detail-console { min-height: 300px; }
.pdx-detail-console.is-closed { min-height: 120px; }
.pdx-editor-closed { display: grid; place-items: center; gap: 6px; min-height: 120px; padding: 20px; color: #7e9ba6; font-size: 13px; line-height: 1.5; text-align: center; }
.pdx-editor-closed strong { color: var(--pdx-mint); font-size: 14px; }
.pdx-detail-ident > span { font-size: 11px; line-height: 1.35; }
.pdx-detail-ident h4 { font-size: clamp(22px, 3vw, 31px); line-height: 1.15; overflow-wrap: anywhere; word-break: keep-all; }
.pdx-detail-ident p { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; word-break: keep-all; }
.pdx-detail-tools > button,
.pdx-routing-badge { min-height: 38px; font-size: 10px; line-height: 1.25; }
.pdx-detail-bypass { min-height: 38px; font-size: 11px; line-height: 1.3; }
.pdx-detail-close { display: flex !important; grid-auto-flow: column; gap: 5px; min-width: max-content !important; }
.pdx-detail-close > span { font-family: inherit; }
.pdx-response-preset { font-size: 11px; line-height: 1.35; }
.pdx-response-preset select { min-height: 38px; font-size: 12px; }
.pdx-detail-graph text { font-size: 10px; }
.pdx-analysis-readout span,
.pdx-analysis-readout small { font-size: 10px; line-height: 1.3; }
.pdx-analysis-readout b { font-size: 12px; }
.pdx-parameters > header small { font-size: 10px; line-height: 1.3; }
.pdx-parameter b { font-size: 12px; line-height: 1.35; }
.pdx-parameter small { font-size: 10px; line-height: 1.3; }
.pdx-parameter output { font-size: 12px; }
.pdx-parameter select,
.pdx-parameter--array input[type="text"] { min-height: 40px; font-size: 13px; }
.pdx-parameter--array > small { font-size: 10px; }
.pdx-no-parameters { font-size: 12px; line-height: 1.55; }

.pdx-telemetry-body {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 48px);
}
.pdx-telemetry-orbit { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 230px; width: 100%; margin: auto; border: 1px solid rgba(99,216,232,.25); border-radius: 50%; }
.pdx-telemetry-orbit::before, .pdx-telemetry-orbit::after { content: ""; position: absolute; border: 1px solid rgba(129,224,189,.19); border-radius: 50%; }
.pdx-telemetry-orbit::before { inset: 18%; } .pdx-telemetry-orbit::after { inset: 36%; }
.pdx-telemetry-orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--pdx-cyan); box-shadow: 0 0 13px var(--pdx-cyan); }
.pdx-telemetry-orbit i:nth-child(1) { top: 12%; left: 28%; }.pdx-telemetry-orbit i:nth-child(2) { right: 9%; bottom: 38%; background: var(--pdx-mint); }.pdx-telemetry-orbit i:nth-child(3) { bottom: 10%; left: 36%; background: var(--pdx-yellow); }
.pdx-telemetry-orbit { background: radial-gradient(circle, rgba(99,216,232,.10) 0 36%, transparent 37%), conic-gradient(from 210deg, var(--pdx-cyan) 0 calc(var(--pdx-telemetry) * 2.7deg), rgba(53,86,97,.18) 0 270deg, transparent 270deg); }
.pdx-telemetry-orbit b { z-index: 1; margin-top: -38px; color: var(--pdx-text); font: 900 clamp(16px, 2vw, 22px)/1 "Courier New", monospace; }
.pdx-telemetry-orbit em { position: absolute; z-index: 1; top: 48%; max-width: 80%; color: var(--pdx-cyan); font: normal 900 clamp(18px, 3vw, 31px)/1.1 "Courier New", monospace; text-align: center; overflow-wrap: anywhere; }
.pdx-telemetry-orbit small { position: absolute; z-index: 1; top: 67%; max-width: 76%; color: #7899a5; font: 800 10px/1.3 "Courier New", monospace; text-align: center; overflow-wrap: anywhere; }
.pdx-telemetry-body dl { display: grid; gap: 9px; margin: 0; }
.pdx-telemetry-body dl > div { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(0, 1.4fr); gap: 12px; padding: 13px 14px; border: 1px solid var(--pdx-line); border-radius: 10px; background: rgba(7,25,34,.65); }
.pdx-telemetry-body dt { color: #7899a4; font-size: 11px; font-weight: 800; line-height: 1.4; }
.pdx-telemetry-body dd { margin: 0; color: #c6dfe5; font-size: 13px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; word-break: keep-all; }
.pdx-telemetry-body dd meter { display: block; width: 100%; height: 8px; margin-top: 8px; accent-color: var(--pdx-cyan); }
.pdx-telemetry-body dd small { display: block; margin-top: 6px; color: #6f929d; font: 750 10px/1.4 "Courier New", monospace; }

.pdx-parameters--eq8 > div { gap: 10px; }
.pdx-eq8-editor { grid-column: 1 / -1; }
.pdx-eq8-tabs { display: grid; grid-template-columns: repeat(8, minmax(45px, 1fr)); gap: 5px; }
.pdx-eq8-tabs button { display: grid; gap: 2px; min-height: 58px; padding: 7px 4px; color: #7896a1; border: 1px solid var(--pdx-line); border-radius: 8px; background: #0a1c25; cursor: pointer; }
.pdx-eq8-tabs button span { font-size: 10px; line-height: 1.2; }.pdx-eq8-tabs button b { color: var(--pdx-text); font-size: 16px; }.pdx-eq8-tabs button small { font-size: 10px; }
.pdx-eq8-tabs button.is-active { color: #07161d; border-color: var(--pdx-cyan); background: var(--pdx-cyan); }.pdx-eq8-tabs button.is-active b { color: #07161d; }
#pdx-eq8-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.pdx-eq8-toggle, .pdx-eq8-select, .pdx-eq8-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 54px; padding: 10px 12px; border: 1px solid var(--pdx-line); border-radius: 9px; background: rgba(13,35,45,.82); color: #b8d1d8; font-size: 12px; font-weight: 800; }
.pdx-eq8-toggle input { width: 22px; height: 22px; accent-color: var(--pdx-cyan); }
.pdx-eq8-select select { min-height: 36px; color: #d0e5ea; border: 1px solid var(--pdx-line); border-radius: 7px; background: #071922; font-size: 12px; }
.pdx-eq8-control output { color: var(--pdx-cyan); font: 900 12px/1 "Courier New", monospace; }
.pdx-eq8-control input { grid-column: 1/-1; width: 100%; accent-color: var(--pdx-cyan); }
.pdx-eq8-node { cursor: grab; touch-action: none; outline: none; }
.pdx-eq8-node:active { cursor: grabbing; }
.pdx-eq8-node .pdx-eq8-hit { fill: transparent; stroke: none; pointer-events: all; }
.pdx-eq8-node .pdx-eq8-dot { fill: #0a1c25; stroke: #668692; stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
.pdx-eq8-node text { pointer-events: none; text-anchor: middle; fill: #a9c3cb; font-size: 11px; font-weight: 900; }
.pdx-eq8-node.is-enabled .pdx-eq8-dot { stroke: var(--pdx-mint); }
.pdx-eq8-node.is-selected .pdx-eq8-dot { fill: var(--pdx-cyan); stroke: #fff; stroke-width: 3; }
.pdx-eq8-node.is-selected text { fill: #07161d; }
.pdx-eq8-node:focus-visible .pdx-eq8-hit { fill: rgba(99,216,232,.13); stroke: var(--pdx-cyan); stroke-width: 2; }

html:not([data-theme="dark"]) .pdx-rack {
  --pdx-bg: #f6fbfd; --pdx-panel: #edf7fa; --pdx-panel-2: #e7f1f6; --pdx-line: rgba(45,99,120,.17); --pdx-line-strong: rgba(37,112,139,.34);
  --pdx-text: #15394a; --pdx-cyan: #42a9ca; --pdx-mint: #79cdb4; --pdx-coral: #e98e82; --pdx-yellow: #b78b2e;
  color: #15394a;
  background:
    radial-gradient(circle at 92% 4%, rgba(250,190,202,.22), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(156,226,214,.24), transparent 31%),
    linear-gradient(145deg, #f7fcfd, #e8f5f8 72%);
}
html:not([data-theme="dark"]) .pdx-rack__header,
html:not([data-theme="dark"]) .pdx-toolbar,
html:not([data-theme="dark"]) .pdx-system-library,
html:not([data-theme="dark"]) .pdx-rack__footer { background: rgba(242,250,252,.86); }
html:not([data-theme="dark"]) .pdx-report-suite,
html:not([data-theme="dark"]) .pdx-final-report { background: rgba(241,249,251,.78); }
html:not([data-theme="dark"]) .pdx-report-group,
html:not([data-theme="dark"]) .pdx-report-card,
html:not([data-theme="dark"]) .pdx-final-wait,
html:not([data-theme="dark"]) .pdx-final-metric { color: #234d5e; background: rgba(255,255,255,.86); }
html:not([data-theme="dark"]) .pdx-section-head p,
html:not([data-theme="dark"]) .pdx-final-wait p { color: #557581; }
html:not([data-theme="dark"]) .pdx-report-group h5,
html:not([data-theme="dark"]) .pdx-report-card strong,
html:not([data-theme="dark"]) .pdx-final-wait strong,
html:not([data-theme="dark"]) .pdx-final-metric > span,
html:not([data-theme="dark"]) .pdx-final-metric > div strong { color: #173b4b; }
html:not([data-theme="dark"]) .pdx-detail-graph .pdx-frequency-axis text { fill: #486c79; }
html:not([data-theme="dark"]) .pdx-library-item,
html:not([data-theme="dark"]) .pdx-chain-node,
html:not([data-theme="dark"]) .pdx-detail-console { background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(230,244,248,.92)); box-shadow: 0 10px 30px rgba(48,105,126,.10); }
html:not([data-theme="dark"]) .pdx-detail-head,
html:not([data-theme="dark"]) .pdx-parameters,
html:not([data-theme="dark"]) .pdx-chain-editor,
html:not([data-theme="dark"]) .pdx-bay-workbench { color: #173b4b; background: rgba(241,249,251,.94); }
html:not([data-theme="dark"]) .pdx-library-search input,
html:not([data-theme="dark"]) .pdx-library-stage select,
html:not([data-theme="dark"]) .pdx-library-filters button,
html:not([data-theme="dark"]) .pdx-library-actions button,
html:not([data-theme="dark"]) .pdx-chain-unload,
html:not([data-theme="dark"]) .pdx-detail-tools > button,
html:not([data-theme="dark"]) .pdx-routing-badge,
html:not([data-theme="dark"]) .pdx-detail-bypass,
html:not([data-theme="dark"]) .pdx-response-preset select,
html:not([data-theme="dark"]) .pdx-parameter,
html:not([data-theme="dark"]) .pdx-parameter select,
html:not([data-theme="dark"]) .pdx-parameter--array input,
html:not([data-theme="dark"]) .pdx-eq8-tabs button,
html:not([data-theme="dark"]) #pdx-eq8-panel > label,
html:not([data-theme="dark"]) .pdx-telemetry-body dl > div { color: #234d5e; background: rgba(255,255,255,.84); }
html:not([data-theme="dark"]) .pdx-eq8-select select { color: #173b4b; border-color: rgba(45,99,120,.24); background: #fff; }
html:not([data-theme="dark"]) .pdx-eq8-control,
html:not([data-theme="dark"]) .pdx-eq8-toggle,
html:not([data-theme="dark"]) .pdx-eq8-select { color: #234d5e; }
html:not([data-theme="dark"]) .pdx-eq8-node .pdx-eq8-dot { fill: #fff; stroke: #3e778b; }
html:not([data-theme="dark"]) .pdx-eq8-node text { fill: #315c6c; }
html:not([data-theme="dark"]) .pdx-eq8-node.is-selected .pdx-eq8-dot { fill: #8bd9ec; stroke: #173b4b; }
html:not([data-theme="dark"]) .pdx-eq8-node.is-selected text { fill: #09202a; }
html:not([data-theme="dark"]) .pdx-toolbar,
html:not([data-theme="dark"]) .pdx-detail-head { border-color: rgba(45,99,120,.17); background: rgba(242,250,252,.94); }
html:not([data-theme="dark"]) .pdx-toolbar button,
html:not([data-theme="dark"]) .pdx-detail-tools > button,
html:not([data-theme="dark"]) .pdx-detail-bypass,
html:not([data-theme="dark"]) .pdx-routing-badge { color: #315c6c; border-color: rgba(45,99,120,.2); background: #fff; }
html:not([data-theme="dark"]) .pdx-toolbar button.is-active { color: #09202a; border-color: #42a9ca; background: #8bd9ec; }
html:not([data-theme="dark"]) .pdx-readouts > div,
html:not([data-theme="dark"]) .pdx-parameter { color: #234d5e; border-color: rgba(45,99,120,.16); background: rgba(255,255,255,.86); }
html:not([data-theme="dark"]) .pdx-parameter select,
html:not([data-theme="dark"]) .pdx-parameter--array input[type="text"] { color: #173b4b; border-color: rgba(45,99,120,.22); background: #fff; }
html:not([data-theme="dark"]) .pdx-param-knob { border-color: #79b5c5; background: conic-gradient(from 225deg, #42a9ca 0 calc(var(--pdx-param) * 2.7deg), #d7e9ee 0 270deg, transparent 270deg), #eef8fa; box-shadow: inset 0 0 0 6px #f8fdfe, 0 4px 10px rgba(48,105,126,.12); }
html:not([data-theme="dark"]) .pdx-param-knob::after { background: #cce6ec; }
html:not([data-theme="dark"]) .pdx-param-knob u { background: #173b4b; }
html:not([data-theme="dark"]) .pdx-library-item strong,
html:not([data-theme="dark"]) .pdx-chain-node b,
html:not([data-theme="dark"]) .pdx-detail-ident h4,
html:not([data-theme="dark"]) .pdx-parameter b { color: #173b4b; }
html:not([data-theme="dark"]) .pdx-library-item p,
html:not([data-theme="dark"]) .pdx-detail-ident p,
html:not([data-theme="dark"]) .pdx-chain-editor > header p { color: #557581; }
html:not([data-theme="dark"]) .pdx-detail-graph { background: rgba(241,249,251,.92); }
html:not([data-theme="dark"]) .pdx-system-visual { background: rgba(232,246,249,.9); }
html:not([data-theme="dark"]) .pdx-graph-grid path { stroke: rgba(50,112,134,.11); }
html:not([data-theme="dark"]) .pdx-detail-graph text { fill: #587987; }
html:not([data-theme="dark"]) .pdx-analysis-readout > div { background: rgba(255,255,255,.8); }
html:not([data-theme="dark"]) .pdx-analysis-readout b { color: #234d5e; }
html:not([data-theme="dark"]) .pdx-library-filters button.is-active,
html:not([data-theme="dark"]) .pdx-eq8-tabs button.is-active {
  color: #09202a;
  border-color: #42a9ca;
  background: #8bd9ec;
}
html:not([data-theme="dark"]) .pdx-eq8-tabs button.is-active b { color: #09202a; }
html:not([data-theme="dark"]) .pdx-library-actions .pdx-library-load {
  color: #12372f;
  border-color: #79cdb4;
  background: #b8ebdc;
}

@media (max-width: 1200px) {
  .pdx-report-groups { grid-template-columns: 1fr; }
  .pdx-plugin-bay { grid-template-columns: minmax(260px, .78fr) minmax(0, 1.4fr); }
  .pdx-library-item p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .pdx-detail-body { grid-template-columns: 1fr; }
  .pdx-graph-panel { border-right: 0; border-bottom: 1px solid var(--pdx-line); }
}
@media (max-width: 960px) {
  .pdx-plugin-bay { grid-template-columns: 1fr; }
  .pdx-system-library { border-right: 0; border-bottom: 1px solid var(--pdx-line); }
  .pdx-library-list { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 560px; }
  .pdx-bay-intro { align-items: start; }
  .pdx-bay-intro > strong { max-width: 220px; }
}
@media (max-width: 720px) {
  .pdx-section-head { display: grid; padding: 19px 15px 14px; }
  .pdx-report-groups, .pdx-final-grid { grid-template-columns: 1fr; padding-inline: 15px; }
  .pdx-report-group > div { grid-template-columns: 1fr; }
  .pdx-final-metric { grid-template-columns: minmax(84px, .8fr) minmax(0,1fr) auto minmax(0,1fr); }
  .pdx-final-metric > em { grid-column: 2 / -1; text-align: left; }
  .pdx-bay-intro { display: grid; padding: 19px 15px 15px; }
  .pdx-bay-intro > strong { max-width: none; text-align: left; }
  .pdx-rack > .pdx-readouts { grid-template-columns: 1fr; padding: 12px 15px; }
  .pdx-library-list { grid-template-columns: 1fr; max-height: 600px; }
  .pdx-system-library, .pdx-bay-workbench { padding: 14px; }
  .pdx-detail-head { padding: 15px; }
  .pdx-detail-tools { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; }
  .pdx-detail-bypass, .pdx-detail-close { grid-column: span 3; width: 100%; justify-content: space-between; }
  .pdx-telemetry-body { grid-template-columns: 1fr; padding: 22px 14px; }
  .pdx-telemetry-orbit { max-width: 170px; }
  .pdx-telemetry-body dl > div { grid-template-columns: 1fr; gap: 4px; }
  .pdx-eq8-tabs { grid-template-columns: repeat(4, minmax(45px,1fr)); }
  #pdx-eq8-panel { grid-template-columns: 1fr; }
  .pdx-chain-slot { flex-basis: 154px; }
  .pdx-detail-graph svg { min-height: 190px; }
}
@media (max-width: 440px) {
  .pdx-report-card { grid-template-columns: 28px minmax(0, 1fr); }
  .pdx-report-card output { grid-column: 2; max-width: none; text-align: left; }
  .pdx-final-metric { grid-template-columns: 1fr 1fr; }
  .pdx-final-metric > span, .pdx-final-metric > em { grid-column: 1 / -1; }
  .pdx-final-metric > i { display: none; }
  .pdx-library-filters { grid-template-columns: 1fr; }
  .pdx-library-item { grid-template-columns: 1fr; }
  .pdx-library-slot { width: max-content; padding-inline: 9px; }
  .pdx-library-actions { grid-column: 1; justify-content: stretch; }
  .pdx-library-actions button { flex: 1; }
  .pdx-detail-tools { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pdx-detail-bypass, .pdx-detail-close { grid-column: span 2; }
  .pdx-analysis-readout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pdx-plugin-bay *, .pdx-plugin-bay *::before, .pdx-plugin-bay *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Final expert typography floor: legacy rack micro-labels stay readable in every language. */
.pdx-rack .pdx-stage-dial strong small,
.pdx-rack .pdx-module__open > small,
.pdx-rack .pdx-module__open > span,
.pdx-rack .pdx-module .pdx-module__slot,
.pdx-rack .pdx-module > header > div > small,
.pdx-rack .pdx-module > header p,
.pdx-rack .pdx-module__control label,
.pdx-rack .pdx-module > footer,
.pdx-rack .pdx-rack__footer { font-size: max(10px, .625rem); line-height: 1.4; }
.pdx-rack button,
.pdx-rack input,
.pdx-rack select { font-size: max(11px, .6875rem); }
.pdx-rack h3, .pdx-rack h4, .pdx-rack p, .pdx-rack span, .pdx-rack small, .pdx-rack b, .pdx-rack label, .pdx-rack button { overflow-wrap: anywhere; }
:lang(ko) .pdx-rack p, :lang(ko) .pdx-rack button, :lang(ko) .pdx-rack label,
:lang(ja) .pdx-rack p, :lang(ja) .pdx-rack button, :lang(ja) .pdx-rack label,
:lang(zh) .pdx-rack p, :lang(zh) .pdx-rack button, :lang(zh) .pdx-rack label { word-break: keep-all; line-break: strict; }
