/* Studio layout and controls. Tokens and shared pieces live in base.css. */

.studio .topbar-inner { max-width: 1600px; }

/* Engine status */
.engine { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; margin-right: 4px; }
.engine i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.engine[data-state="ready"] i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 18%, transparent); }
.engine[data-state="waking"] i { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.engine[data-state="down"] i { background: var(--bad); }

/* ───────────────────────── Layout ───────────────────────── */
.layout {
  display: grid; grid-template-columns: 344px minmax(0, 1fr);
  gap: 20px; padding: 20px; max-width: 1600px; margin: 0 auto;
}
.panel {
  position: sticky; top: 76px; align-self: start;
  max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .panel { position: static; max-height: none; overflow: visible; }
  .kbd-hint { display: none; }
}
@media (max-width: 560px) {
  .topbar-inner { padding: 0 16px; gap: 12px; }
  .studio .chip, .engine span, .hide-sm { display: none; }
}

/* ───────────────────────── Panel ───────────────────────── */
.step { padding: 18px 18px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.step h2 { display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 650; color: var(--navy); letter-spacing: -0.015em; }
.num { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent-ink); letter-spacing: 0.04em; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .slider > span, .season-grid > span { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
input[type="number"], input[type="text"], select, textarea {
  width: 100%; min-width: 0; height: 36px; padding: 0 11px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in oklab, var(--ink) 30%, var(--line-strong)); }
textarea { height: auto; padding: 9px 11px; font: 12.5px/1.45 var(--mono); resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
/* Spinner arrows eat the space the number needs; arrow keys still step the value. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input-unit { position: relative; display: flex; }
.input-unit input { padding-right: 64px; }
.input-unit em {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 12.5px; color: var(--faint); pointer-events: none;
}

/* Segmented control: real radios underneath, pressed state is ink like Muster's chips */
.seg { display: flex; gap: 2px; padding: 3px; background: var(--sunken); border-radius: 10px; }
.seg label { position: relative; flex: 1; min-width: 0; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block; padding: 5px 6px; border-radius: 7px; text-align: center; cursor: pointer;
  font-size: 12.5px; font-weight: 550; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 0.12s, color 0.12s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--surface); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg.mini span { padding: 3px 4px; font-size: 12px; }
.season-grid { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 8px 10px; }
.hint { font-size: 11.5px; color: var(--faint); line-height: 1.4; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.4; }
.check input {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; flex: none; margin: 1px 0 0;
  border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface);
  display: inline-grid; place-content: center; cursor: pointer; transition: background 0.1s, border-color 0.1s;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after {
  content: ""; width: 9px; height: 9px; background: var(--surface);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 26%, 86% 12%, 38% 72%);
}
.check em { font-style: normal; font-family: var(--mono); color: var(--accent-ink); font-size: 11px; margin-left: auto; white-space: nowrap; }

/* Drop zone */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 14px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3)); color: #fff;
  box-shadow: 0 8px 18px -8px var(--g2);
}
.drop-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop span { font-size: 13px; color: var(--muted); }
.drop strong { color: var(--navy); font-weight: 600; }
.drop small { font-size: 12px; color: var(--faint); }

.file-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.file-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.file-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.file-main > div { min-width: 0; }
.file-name { font-weight: 600; font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: var(--muted); }

.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 99px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.pill:hover { border-color: var(--ink-2); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }

details > summary {
  cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); list-style: none;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.15s; margin-right: 2px;
}
details[open] > summary::before { transform: rotate(45deg); }
.paste[open] { display: flex; flex-direction: column; gap: 8px; }
.advanced[open] > summary { margin-bottom: 14px; }

.slider { display: flex; flex-direction: column; gap: 4px; }
.slider > span { display: flex; justify-content: space-between; }
.slider output { font-family: var(--mono); font-size: 12px; color: var(--navy); font-weight: 500; }
.slider small { font-size: 11.5px; color: var(--faint); line-height: 1.35; }
input[type="range"] { width: 100%; accent-color: var(--ink); margin: 2px 0; }

.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Run bar */
.run-bar {
  position: sticky; bottom: 0; padding: 14px 18px 16px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--surface) 0%, transparent), var(--surface) 30%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.btn-run { width: 100%; height: 44px; font-size: 14px; border-radius: 12px; }
.kbd-hint { color: var(--faint); font-size: 11.5px; }
kbd {
  font: 11px var(--font); padding: 0 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 4px; background: var(--surface-2); margin: 0 1px; color: var(--ink-2);
}
.spinner {
  display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.btn.loading .spinner { display: inline-block; }

/* ───────────────────────── Main area ───────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 18px 14px; min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { font-size: 15.5px; font-weight: 650; color: var(--navy); letter-spacing: -0.02em; }
.card-head p { font-size: 12.5px; margin-top: 3px; }
.card-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) { .card-head:has(.card-actions) { flex-wrap: wrap; } .card-actions { width: 100%; } }
.chart { width: 100%; height: 260px; }
.chart.tall { height: 440px; }
@media (max-width: 640px) { .chart.tall { height: 340px; } .card { padding: 14px 12px 10px; } }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.grid2 > .card.wide { grid-column: 1 / -1; }
.grid2 > .card.wide .chart { height: 300px; }
#components { display: flex; flex-direction: column; gap: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  font-size: 12px; color: var(--muted); background: var(--sunken);
  padding: 2px 9px; border-radius: 99px; white-space: nowrap;
}
.tag b { color: var(--ink); font-weight: 600; }
.tag.up b { color: var(--ok); }
.tag.down b { color: var(--bad); }

.ready-hint {
  margin-top: 4px; padding: 10px 12px; border-radius: 10px;
  background: var(--accent-soft); color: var(--ink); font-size: 13px;
}

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 16px; min-width: 0;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.kpi:nth-child(2) { animation-delay: 60ms; }
.kpi:nth-child(3) { animation-delay: 120ms; }
.kpi:nth-child(4) { animation-delay: 180ms; }
.kpi:nth-child(5) { animation-delay: 240ms; }
.kpi::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); opacity: 0.85;
}
.kpi-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.kpi-value { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.15; color: var(--navy); }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.kpi.good .kpi-value { color: var(--ok); }
.kpi.warn .kpi-value { color: var(--warn); }
.kpi.bad .kpi-value { color: var(--bad); }
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 21px; }
  .kpi-sub { font-size: 11.5px; }
}

/* Alerts */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; border: 1px solid; }
.alert.error { background: var(--bad-soft); border-color: color-mix(in oklab, var(--bad) 30%, transparent); color: var(--ink); }
.alert.error::before { content: "Couldn't run the forecast. "; font-weight: 650; color: var(--bad); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn) 30%, transparent); }
.alert.warn ul { margin: 0; padding-left: 18px; }

/* Empty state: a small hero in the Muster style */
.empty {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 44px 40px 36px; display: flex; flex-direction: column; gap: 26px;
}
.empty::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(520px 340px at 85% 10%, rgba(18, 181, 253, 0.12), transparent 70%),
    radial-gradient(560px 380px at 70% 90%, rgba(109, 75, 252, 0.12), transparent 70%),
    radial-gradient(420px 300px at 10% 100%, rgba(61, 107, 255, 0.07), transparent 70%);
}
.empty-dots {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in oklab, var(--navy) 14%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.empty-copy { max-width: 640px; display: flex; flex-direction: column; gap: 14px; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.empty h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.06; font-weight: 700; letter-spacing: -0.045em; color: var(--navy); }
.empty h1 span { display: inline-block; }
.empty-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 58ch; }
.sample-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.sample-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; cursor: pointer;
  padding: 16px; border-radius: 16px; border: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  background: color-mix(in oklab, var(--surface) 90%, transparent); box-shadow: var(--shadow-glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.2s;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.sample-card:nth-child(2) { animation-delay: 80ms; }
.sample-card:nth-child(3) { animation-delay: 160ms; }
.sample-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.real-samples { display: flex; flex-direction: column; gap: 10px; }
.sample-cards.real { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sample-cards.real .sample-card:nth-child(4) { animation-delay: 240ms; }
@media (max-width: 560px) {
  .sample-cards, .sample-cards.real { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sample-card { padding: 12px; border-radius: 14px; }
  .sc-title { font-size: 13.5px; }
  .sc-sub { font-size: 11.5px; }
}
.sc-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 8px 18px -8px var(--a);
}
.sc-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-title { font-size: 14.5px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.sc-sub { font-size: 12.5px; color: var(--muted); }
.empty-format { display: flex; flex-direction: column; gap: 10px; }
.sample-format {
  margin: 0; padding: 10px 12px; width: max-content; max-width: 100%; overflow-x: auto;
  font: 12.5px/1.55 var(--mono); color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px;
}
@media (max-width: 640px) { .empty { padding: 28px 20px 24px; border-radius: 20px; } }

/* Table */
.table-wrap { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 7px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { text-align: left; }
.table th {
  position: sticky; top: 0; background: var(--surface-2);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.table tr:last-child td { border-bottom: 0; }
.table td { font-family: var(--mono); font-size: 12.5px; }
.table td:first-child { font-family: var(--font); font-size: 13px; }
.table td:nth-child(2) { font-weight: 600; color: var(--navy); }
.table td:nth-child(3), .table td:nth-child(4) { color: var(--muted); }

/* Model comparison */
.compare-wrap { max-height: none; }
.compare td, .compare td:nth-child(2), .compare td:nth-child(3), .compare td:nth-child(4) { color: var(--ink-2); font-weight: 500; vertical-align: middle; }
.compare td { padding: 10px 12px; }
.compare td.best { color: var(--ok); font-weight: 650; }
.compare td.best::after { content: "●"; font-size: 7px; vertical-align: 3px; margin-left: 5px; }
.compare .who { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.compare .who i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.compare .who b { display: block; font-weight: 650; color: var(--navy); font-size: 13.5px; }
.compare .who small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.compare tr.main-row td { background: color-mix(in oklab, var(--accent-soft) 55%, var(--surface)); }
/* Phones: the model column stays put while the numbers scroll beside it */
@media (max-width: 640px) {
  .compare td:first-child, .compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); white-space: normal; }
  .compare th:first-child { z-index: 2; background: var(--surface-2); }
  .compare tr.main-row td:first-child { background: color-mix(in oklab, var(--accent-soft) 55%, var(--surface)); }
  .compare td:first-child { box-shadow: 1px 0 0 var(--line); }
  .compare .who { min-width: 0; width: 120px; }
  .compare .who small { font-size: 11px; }
  /* a status spans all five number columns: keep its text in view beside the pinned name */
  .compare td.status .st { position: sticky; left: 144px; width: calc(100vw - 220px); }
}
.compare td.status { text-align: left; font-family: var(--font); color: var(--muted); white-space: normal; }
.compare td.status .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.compare td.status.err { color: var(--bad); }
.compare .dot-spin {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
.compare td.status .err-text { color: var(--bad); }
.gcloud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 2px 0 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2);
}
.gcloud .gc-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.gcloud label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.gcloud select { height: 28px; font-size: 12.5px; max-width: 260px; }
.gcloud .link { margin-left: auto; }
.gcloud a { color: var(--accent-ink); }
.compare-notes { margin: 10px 0 0; padding: 0 0 0 18px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.compare-notes:empty { display: none; }
.compare-notes li + li { margin-top: 2px; }
.compare-privacy { margin: 8px 0 0; font-size: 12px; }
.compare-privacy a { color: var(--accent-ink); }

/* Chart tooltip (rendered inside the chart container) */
.tt { min-width: 180px; font: 12.5px/1.5 var(--font); }
.tt-date { font-weight: 650; margin-bottom: 4px; color: var(--navy); }
.tt-row { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.tt-row i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tt-row b { margin-left: auto; padding-left: 14px; color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 12px; }

/* ───────────────────────── Print / PDF ─────────────────────────
   app.js redraws the report in the light theme and puts a PNG after each chart (.print-img)
   just before printing; here the page becomes a report: no panel, no buttons, cards kept whole. */
.print-img, .print-head, .print-foot, .print-only { display: none; }
@media print {
  @page { margin: 12mm 11mm; }
  html, body { background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .panel, #empty, .card-actions, .ready-hint, #gcloud, .compare-privacy, .chart,
  #compare tr:has(td.status), #drop { display: none !important; }
  .layout { display: block; padding: 0; margin: 0; max-width: none; }
  .main, #results, #components { display: block !important; }
  #results > *, #components > * { margin: 0 0 10px; }
  .card, .kpi, .alert { box-shadow: none !important; break-inside: avoid; }
  .card { border-color: #dcdcd4; padding: 12px 14px 10px; border-radius: 12px; }
  .card:has(#table) { break-inside: auto; }
  .kpi { animation: none !important; padding: 10px 12px; }
  .kpi::before { opacity: 1; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
  .kpi-value { font-size: 21px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .print-img { display: block; width: 100%; height: auto; }
  .print-only { display: block !important; }
  .settings-list { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 0 18px; }
  .settings-list h3 { font-family: var(--mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 2px 0 4px; }
  .settings-list dl { margin: 0; }
  .settings-list dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid #ecece6; font-size: 11px; line-height: 1.35; }
  .settings-list dt { color: var(--muted); }
  .settings-list dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
  .table-wrap { max-height: none !important; overflow: visible !important; border-radius: 8px; }
  .table th { position: static; }
  .table tr { break-inside: avoid; }
  .compare td:first-child, .compare th:first-child { position: static; }
  .compare td, .compare th { padding: 6px 8px; font-size: 11.5px; }
  .compare .who { min-width: 0; gap: 8px; }
  .compare .who b { font-size: 12.5px; }
  .compare .who small { font-size: 10.5px; white-space: normal; }
  .compare td.best::after { content: none; }
  .print-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #dcdcd4; }
  .print-head svg { width: 30px; height: 30px; flex: none; }
  .print-head b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -0.03em; color: var(--navy); }
  .print-head span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
  .print-foot { display: block; margin-top: 12px; padding-top: 8px; border-top: 1px solid #dcdcd4; font-size: 10.5px; color: var(--muted); }
  a { color: inherit; text-decoration: none; }
}
