/* ==========================================================================
   Heat-Kings — Editorial Engineering Tools Stylesheet (/rechner/*)
   Nutzt zentrale Design-Tokens aus /src/tokens.css & Schriften aus /src/fonts.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.hk-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.hk-skip:focus { left: 16px; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Breadcrumbs & Page Hero ────────────────────────────────────────────── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }

.tool-hero {
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(28px, 3.5vw, 40px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--brand);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.2; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.015em; }

.tool-lead {
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: 1.04rem;
  color: var(--ink-2);
}

/* ── 2-Spalten-Werkbank (Eingabe links, Live-Instrument rechts) ─────────── */
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}
.workbench > * { min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inst);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--rule);
  background: #fcfbf8;
}
.panel-head-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.panel-head-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.panel-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Formular-Bausteine ─────────────────────────────────────────────────── */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field-hint {
  margin: 2px 0 0;
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.field-hint.is-climate {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--data-blue);
  font-weight: 500;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.t-input, .t-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.t-select { font-family: var(--font-sans); font-size: 0.92rem; cursor: pointer; }
.t-input:focus, .t-select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(184, 60, 12, 0.12);
}
.t-input[type="number"]::-webkit-inner-spin-button,
.t-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.t-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.t-input.has-unit { padding-right: 54px; }
.t-input.has-unit-sm { padding-right: 38px; }

.input-unit {
  position: absolute;
  right: 11px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  pointer-events: none;
}

/* Segmented Control / Presets */
.seg-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
}
.seg-btn {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.seg-btn:hover { border-color: var(--ink); color: var(--ink); }
.seg-btn[aria-pressed="true"] {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
}

/* Range Slider */
.range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.range-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
}
.t-range {
  width: 100%;
  height: 6px;
  accent-color: var(--brand);
  cursor: pointer;
  margin: 6px 0 4px;
}
.range-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--ink-3);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: var(--ink);
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}

.divider-head {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Sticky Ergebnis-Instrument rechts ──────────────────────────────────── */
.result-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.readout-dark {
  background: var(--obsidian);
  color: var(--ink-inv);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-inst);
}

.readout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.readout-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-inv-2);
}

.verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.verdict-pill.is-good { background: rgba(30, 107, 71, 0.28); color: #86efac; border: 1px solid rgba(134, 239, 172, 0.35); }
.verdict-pill.is-warn { background: rgba(217, 119, 6, 0.25); color: #fcd34d; border: 1px solid rgba(252, 211, 77, 0.35); }
.verdict-pill.is-bad  { background: rgba(185, 28, 28, 0.28); color: #fca5a5; border: 1px solid rgba(252, 165, 165, 0.35); }
.verdict-pill.is-info { background: rgba(31, 78, 121, 0.35); color: #93c5fd; border: 1px solid rgba(147, 197, 253, 0.35); }

.readout-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
}
.readout-big {
  font-family: var(--font-mono);
  font-size: clamp(2.15rem, 3.6vw, 2.85rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.readout-big small {
  font-size: 0.44em;
  font-weight: 400;
  color: var(--ink-inv-2);
  margin-left: 4px;
}
.readout-range {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #f4a482;
}

.readout-sub {
  margin: 10px 0 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--ink-inv-2);
}
.readout-sub strong { color: #ffffff; font-weight: 600; }

.meter-bar {
  display: flex;
  height: 7px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--obsidian-2);
  margin-top: 16px;
}
.meter-a { background: #e0612d; transition: width 0.22s ease; }
.meter-b { background: #5b8fb9; transition: width 0.22s ease; }
.meter-c { background: #4ade80; transition: width 0.22s ease; }

.meter-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-inv-2);
}
.meter-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meter-legend strong { color: #ffffff; font-weight: 500; }
.swatch { width: 8px; height: 8px; border-radius: 1px; flex-shrink: 0; display: inline-block; }
.swatch-a { background: #e0612d; }
.swatch-b { background: #5b8fb9; }
.swatch-c { background: #4ade80; }

.readout-kv {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  gap: 9px;
}
.readout-kv > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.86rem;
}
.readout-kv dt { color: var(--ink-inv-2); }
.readout-kv dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ffffff;
  text-align: right;
  white-space: nowrap;
}

/* Aktionen-Karte unter dem dunklen Display */
.action-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: var(--brand-hover); color: #ffffff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink); background: var(--paper-alt); }
.btn-full { width: 100%; }

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-note {
  margin: 2px 0 0;
  font-size: 0.77rem;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ── Vergleichs- & Raumtabellen ─────────────────────────────────────────── */
.card-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  min-width: 0;
  max-width: 100%;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  padding: 11px 14px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num-col { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.data-table tr.is-highlight td { background: var(--brand-soft); font-weight: 600; }

.tag-good { color: var(--good); font-weight: 600; font-family: var(--font-mono); font-size: 0.78rem; }
.tag-warn { color: var(--warn); font-weight: 600; font-family: var(--font-mono); font-size: 0.78rem; }
.tag-bad  { color: var(--bad);  font-weight: 600; font-family: var(--font-mono); font-size: 0.78rem; }

/* Raum-Zeilen im Heizkörper-Check */
.room-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.room-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}
.room-item-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-2);
  margin-top: 2px;
}
.room-del {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 1rem;
}
.room-del:hover { border-color: var(--bad); color: var(--bad); }

/* ── DIN EN 12831-1 Raumkarten-Editor ──────────────────────────────────── */
.din-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.din-room-card {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.din-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.din-room-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.din-room-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  flex-shrink: 0;
}
.din-name-inp {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.din-name-inp:focus { outline: none; border-color: var(--brand); }
.din-room-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.din-room-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.din-room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.din-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.din-cell span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.din-cell input {
  width: 100%;
  height: 34px;
  padding: 4px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink);
}
.din-cell input:focus { outline: none; border-color: var(--brand); }
.din-cell input[type="number"]::-webkit-inner-spin-button,
.din-cell input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.din-cell input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

@media (max-width: 640px) {
  .din-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .din-room-head { flex-wrap: wrap; }
}

/* ── Redaktioneller Erklärungsteil unter dem Rechner ────────────────────── */
.editorial-section {
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.editorial-grid > * {
  min-width: 0;
  max-width: 100%;
}

.article-body h2 { margin: 36px 0 12px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 22px 0 8px; }
.article-body p { margin: 0 0 15px; color: var(--ink-2); }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brand-hover); }

.formula-card {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--data-blue);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink);
  overflow-x: auto;
}

/* Sidebar: Weitere Rechner & Verweis auf Referenzhaus */
.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.side-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.side-box-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.tool-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tool-links li + li { border-top: 1px solid var(--rule); }
.tool-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.tool-links a span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-2);
}
.tool-links a:hover { color: var(--brand); }

/* FAQ Accordion */
.faq-block {
  margin-top: 36px;
  border-top: 1.5px solid var(--ink);
}
.faq-block details { border-bottom: 1px solid var(--rule); }
.faq-block summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.15rem; color: var(--brand); flex-shrink: 0; }
.faq-block details[open] summary::after { content: "−"; }
.faq-block details p { margin: 0 0 16px; font-size: 0.93rem; color: var(--ink-2); }

/* ── RECHNER-HUB (/rechner/index.html) ──────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 24px 26px 22px;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.hub-card:hover {
  border-top-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-inst);
}
.hub-card.is-primary {
  border-top-color: var(--brand);
  background: #fffdfb;
}
.hub-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}
.hub-step span:last-child { color: var(--ink-3); }
.hub-card h2 { font-size: 1.32rem; margin: 0; color: var(--ink); }
.hub-card p { margin: 10px 0 18px; font-size: 0.93rem; color: var(--ink-2); flex: 1; }
.hub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.hub-card:hover .hub-meta { color: var(--brand); }
.hub-meta small { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 400; color: var(--ink-3); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .workbench,
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .result-sticky,
  .tool-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .field-grid,
  .field-grid-3,
  .btn-row,
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .panel-body,
  .readout-dark {
    padding: 18px 16px;
  }
  .room-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

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