:root {
  --virtual-cyan: var(--accent-2);
  --virtual-cyan-soft: rgba(255, 48, 64, 0.13);
  --virtual-orange: #ff9e45;
  --virtual-green: #42d36b;
}

[hidden] {
  display: none !important;
}

button,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

.virtual-shell {
  width: min(1180px, 100%);
}

.virtual-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
  padding: clamp(16px, 2.2vw, 23px);
}

.title-row,
.section-heading,
.comparison-topbar,
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--virtual-cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.test-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 158, 69, 0.55);
  border-radius: 999px;
  color: #ffc286;
  background: rgba(255, 158, 69, 0.1);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.virtual-intro h1 {
  margin: 0;
  font-size: clamp(1.95rem, 4.2vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.virtual-intro .intro-copy > p {
  max-width: 720px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.35vw, 1.04rem);
  line-height: 1.5;
}

.technical-document-link {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  margin-top: 7px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 48, 64, 0.55);
  color: #ffdce0;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.technical-document-link:hover,
.technical-document-link:focus-visible {
  color: #fff;
  border-bottom-color: var(--virtual-cyan);
}

/* V289: public Windows VST3 landing-page bridge. */
.intro-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 7px;
}

.intro-action-row .technical-document-link {
  margin-top: 0;
}

.plugin-landing-link {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(66, 211, 107, 0.55);
  border-radius: 7px;
  color: #8bf1a5;
  background: rgba(66, 211, 107, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-decoration: none;
  white-space: nowrap;
}

.plugin-landing-link:hover,
.plugin-landing-link:focus-visible {
  color: #caffd5;
  border-color: rgba(66, 211, 107, 0.9);
  background: rgba(66, 211, 107, 0.14);
}

.privacy-note {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(66, 211, 107, 0.28);
  border-radius: 15px;
  background: rgba(66, 211, 107, 0.07);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.38;
}

.privacy-note strong {
  color: #b8ffc7;
  font-size: 0.87rem;
}

.setup-panel,
.comparison-shell {
  margin-top: 11px;
  padding: clamp(15px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 36, 44, 0.94), rgba(18, 21, 26, 0.97));
  box-shadow: var(--shadow), var(--inset);
}

/* Let the shared page grid set one consistent gap between every top-level box. */
.virtual-shell > .setup-panel,
.virtual-shell > .comparison-shell,
.virtual-shell > .explanation-panel,
.virtual-shell > .tool-feedback {
  margin-top: 0;
}

.section-heading h2,
.comparison-topbar h2,
.explanation-panel h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  letter-spacing: -0.035em;
}

.setup-summary {
  max-width: 390px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: right;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.setup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 172px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 48, 58, 0.86), rgba(25, 29, 35, 0.92));
  box-shadow: var(--inset);
}

.setup-card:focus-within,
.upload-card.is-dragging {
  border-color: rgba(255, 48, 64, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 48, 64, 0.1), var(--inset);
}

.card-step {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #0b1419;
  background: var(--virtual-cyan);
  font-size: 12px;
  font-weight: 950;
}

.card-label {
  max-width: calc(100% - 36px);
  min-height: 24px;
  color: #f5f7fa;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.075em;
  line-height: 1.3;
}

.product-select,
.product-option-select {
  width: 100%;
  min-height: 48px;
  margin-top: 9px;
  padding: 0 42px 0 13px;
  border: 1px solid #56606f;
  border-radius: 10px;
  color: #fff;
  background: #11151a;
  font-weight: 850;
}

.product-select:disabled {
  color: var(--dim);
  cursor: wait;
}

.card-help,
.target-confidence,
.file-name {
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.45;
}

.target-confidence {
  min-height: 34px;
}

.target-confidence strong {
  color: #b8ffc7;
}

.file-button {
  min-height: 44px;
  margin-top: 5px;
  padding: 0 15px;
  border: 1px solid rgba(255, 48, 64, 0.52);
  border-radius: 10px;
  color: #ffe3e6;
  background: var(--virtual-cyan-soft);
  font-size: 0.79rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  cursor: pointer;
}

.file-button:hover {
  background: rgba(255, 48, 64, 0.22);
}

.file-name {
  overflow: hidden;
  min-height: 20px;
  color: #f3f6f8;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-message,
.listening-message {
  min-height: 43px;
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(8, 10, 13, 0.48);
  font-size: 0.86rem;
  line-height: 1.45;
}

.setup-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 34%);
  align-items: stretch;
  gap: 10px;
  margin-top: 11px;
}

.setup-actions .setup-message {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin-top: 0;
}

.setup-message.is-warning,
.listening-message.is-warning {
  border-color: rgba(242, 184, 75, 0.42);
  color: #f9d998;
  background: rgba(242, 184, 75, 0.07);
}

.start-button {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  border: 1px solid rgba(66, 211, 107, 0.72);
  border-radius: 12px;
  color: #07110a;
  background: linear-gradient(180deg, #62e681, #38c85d);
  box-shadow: 0 12px 30px rgba(23, 128, 53, 0.22);
  font-size: 0.84rem;
  font-weight: 1000;
  letter-spacing: 0.075em;
  cursor: pointer;
}

.start-button:disabled {
  border-color: #444b56;
  color: #737b86;
  background: #252a31;
  box-shadow: none;
  cursor: not-allowed;
}

.comparison-shell {
  position: relative;
  overflow: hidden;
}

.comparison-shell::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--virtual-cyan), var(--virtual-green), var(--virtual-orange));
  content: "";
}

.close-comparison {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #171b20;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.mode-button {
  display: grid;
  gap: 7px;
  min-height: 94px;
  padding: 16px 18px;
  border: 1px solid #4c5664;
  border-radius: 14px;
  color: var(--muted);
  background: linear-gradient(180deg, #242a33, #171b21);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mode-button:hover {
  transform: translateY(-1px);
}

.mode-button span {
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.095em;
}

.mode-button strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-button.is-active {
  border-color: var(--virtual-cyan);
  color: #ffe0e3;
  background: linear-gradient(180deg, rgba(38, 83, 96, 0.9), rgba(20, 35, 42, 0.96));
  box-shadow: 0 0 0 3px rgba(255, 48, 64, 0.1);
}

.mode-button.target-mode.is-active {
  border-color: var(--virtual-orange);
  color: #ffd0a3;
  background: linear-gradient(180deg, rgba(93, 56, 26, 0.9), rgba(41, 29, 20, 0.96));
  box-shadow: 0 0 0 3px rgba(255, 158, 69, 0.09);
}

.now-listening {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.now-listening strong {
  color: #fff;
}

.listening-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--virtual-green);
  box-shadow: 0 0 12px rgba(66, 211, 107, 0.8);
}

.reliability-pill {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(66, 211, 107, 0.35);
  border-radius: 999px;
  color: #b8ffc7;
  background: rgba(66, 211, 107, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.075em;
}

.reliability-pill.is-medium {
  border-color: rgba(242, 184, 75, 0.45);
  color: #f8d48d;
  background: rgba(242, 184, 75, 0.08);
}

.reliability-pill.is-limited {
  border-color: rgba(255, 158, 69, 0.48);
  color: #ffc286;
  background: rgba(255, 158, 69, 0.09);
}

.transport-panel {
  display: grid;
  grid-template-columns: auto auto minmax(100px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #11151a;
}

.play-button,
.loop-button {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #4e5866;
  border-radius: 9px;
  color: #fff;
  background: #262c34;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  cursor: pointer;
}

.play-button {
  min-width: 76px;
  border-color: rgba(66, 211, 107, 0.6);
  background: rgba(66, 211, 107, 0.15);
}

.loop-button[aria-pressed="true"] {
  border-color: var(--virtual-cyan);
  color: #ffe3e6;
  background: var(--virtual-cyan-soft);
}

.time-readout {
  min-width: 42px;
  color: #cbd1d9;
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.seek-slider {
  width: 100%;
  accent-color: var(--virtual-green);
}

.listening-message:empty {
  display: none;
}

.information-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 14px;
  padding: 0 0 5px;
  scrollbar-width: thin;
}

.info-tab {
  flex: 0 0 auto;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: var(--muted);
  background: #181c22;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  cursor: pointer;
}

.info-tab.is-active {
  border-color: rgba(255, 48, 64, 0.55);
  color: #ffe3e6;
  background: rgba(255, 48, 64, 0.12);
}

.information-area {
  min-height: 315px;
  margin-top: 8px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(13, 16, 20, 0.72);
}

.info-panel h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.info-panel p {
  color: var(--muted);
  line-height: 1.58;
}

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

.current-comparison {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 48, 64, 0.25);
  border-radius: 11px;
  background: rgba(255, 48, 64, 0.06);
  font-size: 0.9rem;
}

.current-comparison strong {
  color: #fff;
}

.overview-explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.overview-explanation-grid article {
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(31, 36, 44, 0.66);
}

.overview-explanation-grid h3 {
  color: #f5f7fa;
  font-size: 0.72rem;
  letter-spacing: 0.065em;
}

.overview-explanation-grid p {
  margin: 6px 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.overview-card {
  min-height: 108px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(39, 45, 54, 0.72), rgba(24, 28, 34, 0.82));
}

.overview-card span {
  color: var(--virtual-cyan);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.overview-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1.05rem;
}

.overview-card p {
  margin: 5px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.plain-limit {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--virtual-orange);
  background: rgba(255, 158, 69, 0.06);
  font-size: 0.86rem;
}

.panel-heading p {
  max-width: 720px;
  margin: 5px 0 0;
  font-size: 0.84rem;
}

.graph-legend {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.source-line,
.target-line {
  display: inline-block;
  width: 19px;
  height: 3px;
  border-radius: 999px;
  background: var(--virtual-cyan);
}

.target-line {
  margin-left: 5px;
  background: var(--virtual-orange);
}

.headroom-readout,
.database-version {
  color: #d8dde3;
  font-size: 0.73rem;
  font-weight: 850;
  white-space: nowrap;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 245px;
  margin-top: 10px;
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-section-change {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.reliability-summary {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.reliability-score {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(66, 211, 107, 0.3);
  border-radius: 14px;
  background: rgba(66, 211, 107, 0.07);
}

.reliability-score span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.075em;
}

.reliability-score strong {
  color: #b8ffc7;
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}

.reliability-score.is-medium {
  border-color: rgba(242, 184, 75, 0.42);
  background: rgba(242, 184, 75, 0.07);
}

.reliability-score.is-medium strong {
  color: #f8d48d;
}

.reliability-score.is-limited {
  border-color: rgba(255, 158, 69, 0.45);
  background: rgba(255, 158, 69, 0.08);
}

.reliability-score.is-limited strong {
  color: #ffc286;
  font-size: 1.45rem;
  line-height: 1.05;
}

.reliability-meter-block {
  min-width: 0;
}

.reliability-scale-labels,
.reliability-checkpoints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.reliability-scale {
  position: relative;
  height: 18px;
  margin: 12px 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(90deg, #b88a45 0%, #d4a94f 30%, #e4c45b 55%, #8fc96a 78%, #42d36b 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.reliability-marker {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #101419;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  transform: translate(-50%, -50%);
  transition: left 180ms ease;
}

.reliability-marker::after {
  content: attr(data-rating);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  padding: 3px 6px;
  border-radius: 6px;
  color: #fff;
  background: #252b33;
  font-size: 0.62rem;
  font-weight: 950;
  white-space: nowrap;
  transform: translateX(-50%);
}

.reliability-checkpoints {
  padding: 0 2px;
  color: #c8ced6;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.055em;
}

.reliability-reason,
.reliability-limits,
.data-source-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.panel-kicker {
  margin: 0 0 6px;
  color: var(--virtual-orange) !important;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.reliability-reason > p:not(.panel-kicker),
.data-source-section > p {
  margin: 7px 0 0;
}

.reliability-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.reliability-reasons li {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: #d7dce3;
  background: rgba(31, 36, 44, 0.66);
  font-size: 0.8rem;
  line-height: 1.45;
}

.limit-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.48;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.source-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: #ffe9eb;
  background: #191e24;
  text-decoration: none;
}

.source-link:hover {
  border-color: rgba(255, 48, 64, 0.5);
}

.model-select-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  margin-top: 5px;
  padding: 8px 10px 8px 13px;
  border: 1px solid #56606f;
  border-radius: 10px;
  color: #fff;
  background: #11151a;
  text-align: left;
  cursor: pointer;
}

.model-select-button:hover:not(:disabled),
.model-select-button:focus-visible {
  border-color: rgba(255, 48, 64, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 48, 64, 0.1);
}

.model-select-button:disabled {
  color: var(--dim);
  cursor: wait;
}

.model-select-button span {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-select-button strong {
  padding: 6px 8px;
  border-radius: 7px;
  color: #ffd9dd;
  background: rgba(255, 48, 64, 0.12);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.option-row {
  display: grid;
  gap: 5px;
}

.option-row > span {
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.product-option-select {
  min-height: 40px;
  margin: 0;
  font-size: 0.78rem;
}

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.change-model-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #181c22;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  cursor: pointer;
}

.change-model-button:hover {
  border-color: rgba(255, 48, 64, 0.55);
  color: #fff;
}

.model-picker {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.82);
  backdrop-filter: blur(8px);
}

.picker-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #20252d, #111419);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.62), var(--inset);
}

.picker-header,
.picker-search-row,
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.picker-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: -0.04em;
}

.picker-close,
.picker-back-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #14181e;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.picker-search-row {
  margin-top: 19px;
}

.picker-search-label {
  flex: 1;
}

#modelSearchInput {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #596371;
  border-radius: 11px;
  color: #fff;
  background: #0d1014;
  font-weight: 800;
  outline: none;
}

#modelSearchInput:focus {
  border-color: rgba(255, 48, 64, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 48, 64, 0.11);
}

.picker-type-tabs,
.picker-series,
.picker-recent {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.picker-type-tabs {
  margin-top: 0;
}

.picker-filter-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.picker-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
}

.picker-model-count {
  color: var(--dim);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.picker-type-tabs button,
.picker-series button,
.picker-recent button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: #171b21;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.picker-type-tabs button.is-active,
.picker-series button.is-active {
  border-color: rgba(255, 48, 64, 0.62);
  color: #fff;
  background: rgba(255, 48, 64, 0.12);
}

.picker-context {
  min-height: 20px;
  margin-top: 8px;
  color: #ffd9dd;
  font-size: 0.78rem;
  font-weight: 850;
}

.picker-context:empty {
  display: none;
}

.picker-series {
  margin-top: 8px;
}

.picker-section {
  margin-top: 16px;
}

.picker-section h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  overflow-y: auto;
  max-height: 390px;
  padding-right: 3px;
}

.brand-grid button,
.model-result {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: #eef1f5;
  background: #171b21;
  cursor: pointer;
}

.brand-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 43px;
  padding: 8px 10px;
  text-align: left;
}

.brand-grid button:hover,
.model-result:hover {
  border-color: rgba(255, 48, 64, 0.58);
  background: rgba(255, 48, 64, 0.08);
}

.brand-grid small,
.model-result small,
#resultSummary {
  color: var(--dim);
  font-size: 0.68rem;
}

.picker-results-section {
  min-height: 0;
}

.model-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow-y: auto;
  max-height: 420px;
  margin-top: 8px;
  padding-right: 3px;
}

.model-result {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  text-align: left;
}

.model-result strong,
.model-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-result span {
  color: var(--muted);
  font-size: 0.73rem;
}

.picker-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.picker-request-footer {
  flex: 0 0 auto;
  margin-top: 15px;
  padding: 13px 4px 0;
  border-top: 1px solid var(--line-soft);
}

.picker-request-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.picker-request-footer a {
  color: #ffd9dd;
  font-weight: 850;
}

.technical-document {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.technical-document-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.86);
  backdrop-filter: blur(8px);
}

.technical-document-panel {
  position: relative;
  overflow: hidden;
  width: min(900px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #20252d, #111419);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.68), var(--inset);
}

.technical-document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(29, 34, 41, 0.96);
}

.technical-document-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.04em;
}

.technical-document-body {
  overflow-y: auto;
  max-height: calc(min(860px, 100vh - 40px) - 96px);
  padding: 6px 22px 24px;
}

.technical-document-body section {
  padding: 18px 0 2px;
  border-bottom: 1px solid var(--line-soft);
}

.technical-document-body section:last-child {
  border-bottom: 0;
}

.technical-document-body h3 {
  margin: 0;
  color: #f5f7fa;
  font-size: 1.02rem;
}

.technical-document-body p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.technical-document-body a {
  color: #ffd9dd;
  font-weight: 800;
}

body.model-picker-open,
body.technical-document-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.source-link strong,
.source-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link span {
  color: var(--muted);
  font-size: 0.75rem;
}

.explanation-panel {
  margin-top: 14px;
}

.explanation-panel p {
  max-width: 930px;
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.translation-seed-bank {
  position: fixed;
  top: 1px;
  left: 1px;
  z-index: -1;
  overflow: hidden;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

body.comparison-mobile-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .virtual-intro {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px;
  }

  .virtual-intro .intro-copy > p {
    margin-top: 8px;
    line-height: 1.42;
  }

  .privacy-note {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 10px;
  }

  .setup-panel {
    padding: 13px;
  }

  .setup-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .setup-card {
    min-height: 0;
    gap: 6px;
    padding: 11px 12px;
  }

  .setup-summary {
    text-align: left;
  }

  .setup-actions {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
    gap: 8px;
    margin-top: 8px;
  }

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

  .overview-explanation-grid,
  .reliability-reasons {
    grid-template-columns: 1fr;
  }

  .overview-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .information-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow-x: visible;
  }

  .info-tab {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 5px;
    font-size: 0.59rem;
    line-height: 1.15;
    letter-spacing: 0.025em;
    white-space: normal;
  }

  .section-heading,
  .panel-heading {
    flex-direction: column;
    gap: 5px;
  }

  .section-heading .step-label {
    margin-bottom: 4px;
  }

  .section-heading h2 {
    font-size: 1.15rem;
  }

  .setup-summary {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .setup-actions {
    grid-template-columns: 1fr;
  }

  .setup-actions .setup-message {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .start-button {
    min-height: 44px;
  }

  .comparison-shell:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    margin: 0;
    padding: max(15px, env(safe-area-inset-top)) 11px max(18px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #171b21, #0b0d10);
  }

  .comparison-shell::before {
    position: fixed;
    z-index: 1001;
  }

  .comparison-topbar {
    position: sticky;
    top: -1px;
    z-index: 10;
    margin: -1px -1px 0;
    padding: 6px 1px 12px;
    background: rgba(23, 27, 33, 0.96);
    backdrop-filter: blur(12px);
  }

  .comparison-topbar {
    flex-direction: column;
  }

  .comparison-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .model-picker {
    padding: 0;
  }

  .picker-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: max(11px, env(safe-area-inset-top)) 10px max(11px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }

  .picker-header .step-label {
    margin-bottom: 3px;
  }

  .picker-header h2 {
    font-size: 1.18rem;
  }

  .picker-search-row {
    margin-top: 14px;
  }

  #modelSearchInput {
    min-height: 42px;
    padding: 0 12px;
  }

  .picker-filter-row {
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
  }

  .picker-type-tabs,
  .picker-filter-actions {
    gap: 5px;
  }

  .picker-type-tabs button {
    min-height: 29px;
    padding: 0 8px;
    font-size: 0.61rem;
  }

  .picker-model-count {
    font-size: 0.59rem;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .model-results {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .picker-section,
  .picker-results-section {
    overflow-y: auto;
  }

  .comparison-topbar h2 {
    font-size: 1rem;
  }

  .comparison-topbar .step-label {
    margin-bottom: 4px;
  }

  .mode-button {
    min-height: 88px;
    padding: 13px;
  }

  .mode-button strong {
    white-space: normal;
  }

  .transport-panel {
    grid-template-columns: auto auto minmax(70px, 1fr) auto;
  }

  .loop-button {
    grid-column: 1 / -1;
  }

  .information-area {
    min-height: 365px;
    padding: 14px;
  }

  .chart-wrap {
    height: 230px;
  }

  .graph-legend,
  .headroom-readout {
    align-self: flex-start;
  }

  .reliability-summary,
  .source-links {
    grid-template-columns: 1fr;
  }

  .reliability-score {
    padding: 16px;
  }

  .technical-document {
    padding: 0;
  }

  .technical-document-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .technical-document-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: max(15px, env(safe-area-inset-top)) 12px 13px;
  }

  .technical-document-body {
    max-height: calc(100dvh - 90px);
    padding: 2px 14px max(20px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 460px) {
  .virtual-intro h1 {
    font-size: 2rem;
  }

  .title-row {
    align-items: center;
  }

  .privacy-note {
    display: grid;
    gap: 2px;
  }

  .mode-switch {
    gap: 7px;
  }

  .mode-button {
    min-height: 96px;
    padding: 12px 10px;
  }

  .mode-button span {
    font-size: 0.61rem;
  }

  .mode-button strong {
    font-size: 0.9rem;
  }

  .reliability-pill {
    width: fit-content;
    margin-left: 16px;
  }

  .play-button {
    min-width: 64px;
  }

  .picker-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .picker-back-button {
    align-self: flex-start;
  }

  .picker-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .picker-filter-actions {
    justify-content: space-between;
    width: 100%;
  }

}

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

/* V288 compact comparison workflow */
.virtual-intro {
  padding: 13px 16px;
  gap: 16px;
}

.virtual-intro h1 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
}

.virtual-intro .intro-copy > p {
  margin-top: 7px;
  line-height: 1.38;
}

.privacy-note {
  padding: 8px 11px;
}

.setup-panel,
.comparison-shell {
  padding: 13px 15px;
}

.setup-grid {
  gap: 8px;
  margin-top: 8px;
}

.setup-card {
  gap: 5px;
  min-height: 142px;
  padding: 11px 12px;
  border-radius: 13px;
}

.model-select-button,
.file-button {
  min-height: 39px;
  margin-top: 2px;
}

.card-help,
.target-confidence,
.file-name {
  font-size: 0.76rem;
  line-height: 1.32;
}

.target-confidence {
  min-height: 30px;
}

.setup-actions {
  margin-top: 8px;
}

.comparison-topbar {
  align-items: center;
}

.comparison-topbar h2 {
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
}

.comparison-topbar .step-label {
  margin-bottom: 3px;
}

.comparison-actions {
  gap: 5px;
}

.change-model-button,
.close-comparison {
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.59rem;
}

.note-action {
  position: relative;
}

#noteIndicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--virtual-green);
  opacity: 0;
}

#noteIndicator.is-visible {
  opacity: 1;
}

.quick-compare-bar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 38px auto;
  align-items: stretch;
  gap: 5px;
  margin-top: 10px;
}

.quick-nav-button,
.quick-current-target,
.quick-tool-button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: #eef1f5;
  background: #14181e;
  cursor: pointer;
}

.quick-nav-button {
  padding: 0;
  font-size: 1.65rem;
  line-height: 1;
}

.quick-nav-button:disabled,
.quick-tool-button:disabled {
  color: #626a75;
  cursor: not-allowed;
}

.quick-current-target {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 11px;
  text-align: left;
}

.quick-current-target span,
.quick-current-target small {
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.quick-current-target strong {
  overflow: hidden;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-tool-button {
  padding: 0 10px;
  color: #f8d48d;
  font-size: 1.12rem;
  font-weight: 900;
}

.quick-list-button {
  color: var(--muted);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mode-switch {
  gap: 7px;
  margin-top: 9px;
}

.mode-button {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 12px;
}

.mode-button strong {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
}

.now-listening {
  min-height: 33px;
  margin-top: 6px;
  font-size: 0.75rem;
}

.fit-variation-pill {
  padding: 4px 7px;
  border: 1px solid rgba(242, 184, 75, 0.35);
  border-radius: 999px;
  color: #f8d48d;
  background: rgba(242, 184, 75, 0.07);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.transport-panel {
  grid-template-columns: auto auto minmax(100px, 1fr) auto auto minmax(150px, 0.4fr);
  gap: 7px;
  padding: 9px 10px;
}

.play-button,
.loop-button {
  min-height: 33px;
  padding: 0 10px;
}

.strength-control {
  display: grid;
  grid-template-columns: auto minmax(55px, 1fr) auto;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 900;
}

.strength-control input {
  width: 100%;
  accent-color: var(--virtual-orange);
}

.strength-control strong {
  min-width: 34px;
  color: #f4f6f8;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.listening-message {
  min-height: 0;
  margin-top: 7px;
  padding: 7px 10px;
  font-size: 0.75rem;
}

.information-tabs {
  margin-top: 10px;
}

.info-tab {
  min-height: 32px;
}

.information-area {
  min-height: 0;
  margin-top: 7px;
  padding: 12px 14px;
}

.reliability-summary {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
}

.reliability-score {
  gap: 5px;
  padding: 14px;
}

.reliability-score strong {
  font-size: 1.65rem;
}

.reliability-score.is-limited strong {
  font-size: 1.12rem;
}

.chart-wrap {
  height: 185px;
}

.chart-section-change {
  margin-top: 12px;
  padding-top: 12px;
}

.saved-filter {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: #171b21;
  font-size: 0.64rem;
  font-weight: 900;
  cursor: pointer;
}

.saved-filter.is-active {
  border-color: rgba(66, 211, 107, 0.55);
  color: #b8ffc7;
  background: rgba(66, 211, 107, 0.08);
}

.model-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.model-result-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.model-result-main strong,
.model-result-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-result-main span {
  color: var(--muted);
  font-size: 0.69rem;
}

.model-result-actions {
  display: flex;
  border-left: 1px solid var(--line-soft);
}

.model-result-icon {
  min-width: 34px;
  border: 0;
  border-left: 1px solid var(--line-soft);
  color: #f8d48d;
  background: rgba(255, 255, 255, 0.015);
  font-size: 1rem;
  cursor: pointer;
}

.model-result-icon:first-child {
  border-left: 0;
}

.model-result-icon:disabled {
  color: #92dca2;
  cursor: default;
}

.compact-dialog {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.compact-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.84);
  backdrop-filter: blur(8px);
}

.compact-dialog-panel {
  position: relative;
  overflow-y: auto;
  width: min(620px, 100%);
  max-height: calc(100dvh - 36px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #20252d, #111419);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), var(--inset);
}

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

.compact-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.compact-dialog-help,
.notes-label {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.quick-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.quick-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #15191f;
}

.quick-list-row.is-current {
  border-color: rgba(66, 211, 107, 0.48);
}

.quick-list-model,
.quick-list-controls button,
.compact-dialog-actions button {
  border: 0;
  color: #eef1f5;
  background: transparent;
  cursor: pointer;
}

.quick-list-model {
  overflow: hidden;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-list-controls {
  display: flex;
  border-left: 1px solid var(--line-soft);
}

.quick-list-controls button {
  min-width: 34px;
  border-left: 1px solid var(--line-soft);
}

.quick-list-controls button:first-child {
  border-left: 0;
}

.quick-list-controls button:disabled {
  color: #5d6570;
  cursor: not-allowed;
}

.quick-list-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}

.compact-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.compact-dialog-actions button {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #171b21;
  font-size: 0.65rem;
  font-weight: 900;
}

.compact-dialog-actions .primary-dialog-action {
  border-color: rgba(66, 211, 107, 0.55);
  color: #b8ffc7;
  background: rgba(66, 211, 107, 0.08);
}

.notes-target-name {
  display: block;
  margin-top: 12px;
  color: #f5f7fa;
}

.notes-label {
  display: block;
  margin-top: 5px;
}

#comparisonNotesInput {
  width: 100%;
  min-height: 120px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #596371;
  border-radius: 9px;
  color: #fff;
  background: #0d1014;
  resize: vertical;
}

body.quick-dialog-open,
body.notes-dialog-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .setup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .setup-actions {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 34%);
  }
}

@media (max-width: 760px) {
  .virtual-intro {
    padding: 10px 11px;
  }

  .virtual-intro h1 {
    font-size: 1.85rem;
  }

  .virtual-intro .intro-copy > p {
    font-size: 0.84rem;
  }

  .privacy-note {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .setup-panel {
    padding: 10px;
  }

  .setup-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 7px;
  }

  .setup-card {
    min-height: 0;
    padding: 8px 10px;
  }

  .card-help,
  .target-confidence {
    min-height: 0;
    font-size: 0.72rem;
  }

  .setup-actions {
    grid-template-columns: minmax(0, 1fr) minmax(145px, 34%);
    gap: 6px;
    margin-top: 6px;
  }

  .setup-actions .setup-message,
  .start-button {
    min-height: 39px;
    font-size: 0.7rem;
  }

  .comparison-shell:not([hidden]) {
    padding: max(8px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom));
  }

  .comparison-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding: 3px 0 6px;
  }

  .comparison-topbar > div:first-child {
    min-width: 0;
  }

  .comparison-topbar h2 {
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .comparison-actions {
    width: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .change-model-button {
    display: none;
  }

  #changeTargetButton,
  #openComparisonNotes,
  .close-comparison {
    display: block;
    flex: 0 0 auto;
  }

  .quick-compare-bar {
    grid-template-columns: 30px minmax(0, 1fr) 30px 34px auto;
    margin-top: 6px;
  }

  .quick-nav-button,
  .quick-current-target,
  .quick-tool-button {
    min-height: 37px;
  }

  .quick-current-target {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 4px 8px;
  }

  .quick-current-target span {
    display: none;
  }

  .quick-current-target strong {
    font-size: 0.76rem;
  }

  .quick-list-button {
    padding: 0 7px;
    font-size: 0.54rem;
  }

  .mode-switch {
    gap: 5px;
    margin-top: 7px;
  }

  .mode-button {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: 48px;
    padding: 6px 8px;
  }

  .mode-button span {
    font-size: 0.56rem;
  }

  .mode-button strong {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .now-listening {
    min-height: 25px;
    margin-top: 4px;
    gap: 5px;
    font-size: 0.67rem;
  }

  .reliability-pill,
  .fit-variation-pill {
    margin-left: 0;
    padding: 3px 6px;
    font-size: 0.52rem;
  }

  .transport-panel {
    grid-template-columns: auto auto minmax(60px, 1fr) auto auto;
    gap: 5px;
    padding: 5px 6px;
  }

  .play-button,
  .loop-button {
    min-height: 30px;
    padding: 0 7px;
    font-size: 0.59rem;
  }

  .loop-button {
    grid-column: auto;
  }

  .strength-control {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(60px, 1fr) auto;
  }

  .listening-message {
    margin-top: 4px;
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .information-tabs {
    margin-top: 7px;
    padding-bottom: 0;
  }

  .info-tab {
    min-height: 34px;
  }

  .information-area {
    min-height: 0;
    padding: 9px;
  }

  .chart-wrap {
    height: 170px;
  }

  .overview-explanation-grid article,
  .overview-card {
    padding: 10px;
  }

  .overview-card {
    min-height: 0;
  }

  .reliability-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .reliability-score {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 9px 11px;
  }

  .reliability-score strong,
  .reliability-score.is-limited strong {
    font-size: 1rem;
    text-align: right;
  }

  .picker-panel {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  .picker-filter-row {
    align-items: center;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .picker-type-tabs,
  .picker-filter-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .saved-filter,
  .picker-type-tabs button {
    min-height: 28px;
    padding: 0 7px;
    font-size: 0.57rem;
  }

  .model-result {
    min-height: 48px;
  }

  .compact-dialog {
    padding: 0;
  }

  .compact-dialog-panel {
    width: 100%;
    max-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 460px) {
  .setup-actions {
    grid-template-columns: 1fr;
  }

  .setup-actions .setup-message {
    min-height: 32px;
    padding: 6px 8px;
  }

  .quick-tool-button.quick-list-button {
    width: 36px;
    overflow: hidden;
    color: transparent;
    position: relative;
  }

  .quick-tool-button.quick-list-button::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    content: "LIST";
    font-size: 0.54rem;
  }

  .transport-panel {
    grid-template-columns: auto auto minmax(45px, 1fr) auto auto;
  }

  .loop-button {
    grid-column: auto;
  }

  .strength-control {
    grid-column: 1 / -1;
  }

}

/* V289.3 model-finder row-height hotfix: keep each result tall enough for both model name and detail text while the result list itself scrolls. */
.model-results {
  grid-auto-rows: minmax(50px, max-content);
  align-content: start;
}

.model-result {
  min-height: 50px;
}

/* V288.3 model-finder fixed controls and list-only scrolling */
.picker-panel > .picker-header,
.picker-panel > .picker-search-row,
.picker-panel > .picker-filter-row,
.picker-panel > .picker-context,
.picker-panel > .picker-series,
.picker-panel > #recentSection,
.picker-panel > .picker-request-footer {
  flex: 0 0 auto;
}

.picker-filter-row,
#recentSection {
  overflow: visible;
}

.picker-filter-actions,
.saved-filter,
.picker-model-count,
#recentSection h3 {
  white-space: nowrap;
}

#recentSection {
  min-height: max-content;
}

#brandSection,
#resultsSection {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.brand-grid,
.model-results {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 760px) {
  .picker-filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }

  .picker-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .picker-filter-actions {
    display: grid;
    grid-template-columns: max-content max-content max-content minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .picker-model-count {
    justify-self: end;
  }

  .picker-panel > #recentSection {
    overflow: visible;
  }

  .picker-panel > #brandSection,
  .picker-panel > #resultsSection {
    overflow: hidden;
  }
}


/* V289.1: dedicated plug-in landing bridge above the browser privacy notice. */
.intro-side-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.plugin-promo-card {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(66, 211, 107, 0.42);
  border-radius: 15px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(66, 211, 107, 0.12), rgba(21, 76, 52, 0.08));
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.plugin-promo-card:hover,
.plugin-promo-card:focus-visible {
  border-color: rgba(66, 211, 107, 0.82);
  background: linear-gradient(135deg, rgba(66, 211, 107, 0.17), rgba(21, 76, 52, 0.12));
  transform: translateY(-1px);
  outline: none;
}

.plugin-promo-kicker {
  color: #8bf1a5;
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.085em;
}

.plugin-promo-card strong {
  color: #e9fff0;
  font-size: 0.88rem;
  line-height: 1.2;
}

.plugin-promo-copy {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.34;
}

.plugin-promo-link {
  margin-top: 3px;
  color: #8bf1a5;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}

@media (max-width: 900px) {
  .intro-side-stack {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .plugin-promo-card,
  .privacy-note {
    min-height: 100%;
  }
}

@media (max-width: 560px) {
  .intro-side-stack {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .plugin-promo-card {
    padding: 8px 10px;
  }
  .plugin-promo-copy {
    font-size: 0.72rem;
  }
}


/* V289.2: strengthen the DAW plug-in card and quiet the browser-only privacy note. */
.plugin-promo-card {
  border-color: rgba(66, 211, 107, 0.72);
  background: linear-gradient(135deg, rgba(66, 211, 107, 0.15), rgba(21, 76, 52, 0.11));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0 0 1px rgba(66, 211, 107, 0.025);
}

.plugin-promo-card:hover,
.plugin-promo-card:focus-visible {
  border-color: rgba(66, 211, 107, 0.96);
  background: linear-gradient(135deg, rgba(66, 211, 107, 0.20), rgba(21, 76, 52, 0.15));
}

.plugin-promo-card strong {
  color: #f2fff6;
  font-size: 0.92rem;
}

.plugin-promo-copy {
  color: #b8c8d3;
}

.intro-side-stack .privacy-note {
  border-color: rgba(155, 182, 205, 0.18);
  background: rgba(10, 17, 24, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.intro-side-stack .privacy-note strong {
  color: #e3ebf0;
}
