/* ================================================================
   Interactive Acoustic Model – Stylesheet
   Design tokens identical to zoerner.consulting (Homepage v43).
   Inter is self-hosted (DSGVO-friendly, no Google Fonts call).
   ================================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #eef1f2;
  --surface-input: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #e4e7ea;
  --line-soft: #edf1f5;
  --card-border: rgba(31, 41, 55, .08);
  --hover-border: rgba(31, 41, 55, .22);
  --brand: #2f6f73;
  --brand-dark: #244f52;       /* teal used as text/accent colour */
  --brand-soft: #eef1f2;
  --brand-contrast: #ffffff;   /* text on filled --brand */
  --focus-ring: #0f172a;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 2px 10px rgba(15, 23, 42, 0.10);
  --header-bg: rgba(255, 255, 255, 0.88);
  --footer-bg: #15202b;
  --radius: 10px;
  --max: 1420px;

  --ok: #1a8a63;
  --warn: #b45309;
  --warn-dot: #d97706;
  --exceed: #b91c1c;
  --unknown-dot: #9aa3af;
  --ok-bg: #e6f4ef;      --ok-text: #135c43;
  --warn-bg: #fff7e8;    --warn-text: #6a4d15;   --warn-badge-bg: #fff3cd; --warn-badge-text: #9a5f00;
  --exceed-bg: #fdecec;  --exceed-text: #8f1d1d; --exceed-badge-text: #b91c1c;
  --unknown-bg: #f1f5f9; --unknown-text: #64748b;

  --note-bg: #fff7e8; --note-border: #f0d39a; --note-text: #6a4d15; --note-strong: #513a0d;

  --row-hover: #fafbfc;
  --row-selected: #e2edee;
  --row-selected-line: #c3d8d9;
  --row-inactive-bg: #fbfcfd;
  --row-inactive-text: #98a2b3;
  --row-flash: #fde68a;
  --bar-off: #c8cdd5;

  --map-bg: #fbfcfd;
  --map-image-filter: none;
  --map-label-bg: rgba(255, 255, 255, 0.92);
  --map-label-border: rgba(17, 24, 39, 0.35);
  --map-label-text: #111827;
  --tooltip-bg: rgba(17, 24, 39, 0.92);
  --tooltip-text: #ffffff;
  --app-icon-bg: #f4f7f9;

  --splitter-line: #d5dade;
  --splitter-active: var(--brand);
}

/* ── Nachtmodus: sehr dunkles Blau, gedämpfte Akzente ─────────────
   Wird aktiv, sobald der Nachtzeitraum gewählt ist (data-theme am <html>). */
:root[data-theme="night"] {
  color-scheme: dark;
  /* Moonlit blue: klar als Nacht erkennbar, aber nicht mehr nahezu schwarz. */
  --bg: #17243a;
  --surface: #1d2d46;
  --surface-2: #253852;
  --surface-input: #1a2940;
  --text: #eef3f8;
  --muted: #b5c1d1;
  --line: #354b68;
  --line-soft: #2b405c;
  --card-border: rgba(203, 213, 225, .13);
  --hover-border: rgba(203, 213, 225, .36);
  --brand: #66b7bb;
  --brand-dark: #a6d9dc;
  --brand-soft: #22414c;
  --brand-contrast: #0f1c2d;
  --focus-ring: #b9e2e4;
  --shadow: 0 1px 2px rgba(3, 10, 20, .24), 0 2px 8px rgba(3, 10, 20, .16);
  --shadow-hover: 0 4px 16px rgba(3, 10, 20, .28);
  --header-bg: rgba(23, 36, 58, 0.92);
  --footer-bg: #111d30;

  --ok: #42c596;
  --warn-dot: #e9aa4d;
  --exceed: #f0716f;
  --unknown-dot: #8291a8;
  --ok-bg: rgba(66, 197, 150, .14);   --ok-text: #99e0c4;
  --warn-bg: rgba(233, 170, 77, .14); --warn-text: #f1cf9b; --warn-badge-bg: rgba(233, 170, 77, .18); --warn-badge-text: #f1cf9b;
  --exceed-bg: rgba(240, 113, 111, .15); --exceed-text: #f8b4b2; --exceed-badge-text: #f8b4b2;
  --unknown-bg: #253852; --unknown-text: #a8b4c5;

  --note-bg: rgba(233, 170, 77, .09); --note-border: rgba(233, 170, 77, .34); --note-text: #ead0a4; --note-strong: #f5dfba;

  --row-hover: #223550;
  --row-selected: #254653;
  --row-selected-line: #397080;
  --row-inactive-bg: #1a2940;
  --row-inactive-text: #8291a8;
  --row-flash: #5a4b24;
  --bar-off: #465a73;

  --map-bg: #1a2940;
  --map-image-filter: brightness(.82) saturate(.88) contrast(.96);
  --map-label-bg: rgba(23, 36, 58, 0.90);
  --map-label-text: #eef3f8;
  --map-label-border: rgba(203, 213, 225, .46);
  --tooltip-bg: rgba(238, 243, 248, 0.96);
  --tooltip-text: #17243a;
  --app-icon-bg: #253852;

  --splitter-line: #3b506d;
}

/* Sanfter Wechsel Tag ↔ Nacht (erst nach dem ersten Rendern aktiv, kein Flackern beim Laden) */
:root.theme-anim body,
:root.theme-anim .site-header,
:root.theme-anim .site-footer,
:root.theme-anim .card,
:root.theme-anim .panel,
:root.theme-anim .note-box,
:root.theme-anim .result-tile,
:root.theme-anim .receiver-card,
:root.theme-anim .map-wrap,
:root.theme-anim details.help,
:root.theme-anim select,
:root.theme-anim input,
:root.theme-anim td,
:root.theme-anim th,
:root.theme-anim .verdict {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
/* App view (Modellansicht): full screen width – deliberately wider than the
   homepage grid, the map and source table benefit from every pixel. */
.container-fluid { width: calc(100% - 2.5rem); margin: 0 auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Header (frosted, sticky – like the homepage) ─────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; min-height: 76px;
}
.logo-lockup { flex: none; }
.logo-lockup { display: flex; align-items: center; }
.logo-lockup img { height: 38px; width: auto; }
.logo-lockup .logo-night { display: none; }
:root[data-theme="night"] .logo-lockup .logo-day { display: none; }
:root[data-theme="night"] .logo-lockup .logo-night { display: block; }
.header-app {
  display: flex; align-items: center; gap: .75rem; min-width: 0;
}
.header-app-link {
  color: inherit; text-decoration: none; border-radius: 10px; padding: .25rem .4rem;
  transition: background .16s ease, box-shadow .16s ease;
}
.header-app-link:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--line); }
.header-app-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.header-app img {
  width: 42px; height: 42px; object-fit: contain; flex: none;
  border-radius: 8px; background: var(--app-icon-bg); padding: .3rem;
  border: 1px solid var(--card-border);
}
.header-app-name {
  font-weight: 700; font-size: 1.02rem; white-space: nowrap;
}
.header-app-sub {
  font-size: .8rem; color: var(--muted); white-space: nowrap;
}
.header-links { display: flex; align-items: center; gap: .9rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--brand-dark); font-size: .95rem;
  padding: .4rem .7rem; border-radius: 999px;
  transition: background .16s ease;
  white-space: nowrap;
}
.back-link:hover { background: var(--brand-soft); }
@media (max-width: 760px) {
  .logo-lockup img { height: 28px; }
  .header-app-sub { display: none; }
  .header-app-name { font-size: .95rem; }
}
@media (max-width: 560px) {
  .header-app { display: none; }
}

/* ── Page hero / intro card ───────────────────────────────────── */
.page-hero { padding: 34px 0 6px; }
.page-intro-card {
  padding: clamp(1.2rem, 2vw, 1.7rem);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.page-intro-card h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.page-intro-card .lead { margin: 0; color: var(--muted); max-width: 720px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; }

/* ── Cards / panels ───────────────────────────────────────────── */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 1.05rem 1.1rem; }
.panel-header {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: flex-start; margin-bottom: .7rem;
}
.panel-header.compact { margin-bottom: .5rem; }
.panel-header h2 { margin: 0; font-size: 1.05rem; }
.panel-hint { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }

.kicker {
  color: var(--brand); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: .72rem;
}

/* ── Buttons, badges, pills ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: 0 1rem; border-radius: 8px;
  font: inherit; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--surface-input); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--hover-border); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-small { min-height: 34px; padding: 0 .8rem; font-size: .88rem; }

.tier {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .62rem; border-radius: 6px;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); color: var(--brand-dark);
}
.tier::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .76rem; font-weight: 600;
}

/* ── Guestimate notice (amber note-box from the homepage) ─────── */
.note-box {
  padding: .85rem 1rem; border-radius: var(--radius);
  background: var(--note-bg); border: 1px solid var(--note-border); color: var(--note-text);
  font-size: .9rem; line-height: 1.5;
}
.note-box strong { color: var(--note-strong); }

/* ── App layout ───────────────────────────────────────────────── */
/* Karte | Separator | Daten. Die Breite der Datenspalte (--sidebar-w) wird
   per Separator gezogen und von app.js gesetzt (und im Browser gemerkt). */
.layout {
  --sidebar-w: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, var(--sidebar-w));
  gap: 0;
  padding: 16px 0 30px;
  align-items: start;
}
.panel-map { display: flex; flex-direction: column; min-height: 0; }
/* Lageplan bleibt beim Scrollen durch lange Quellenlisten sichtbar */
@media (min-width: 1181px) and (min-height: 700px) {
  .panel-map { position: sticky; top: 92px; }
}

/* ── Separator zwischen Karte und Daten ───────────────────────── */
.splitter {
  align-self: stretch;
  position: relative;
  cursor: col-resize;
  touch-action: none;
  outline: none;
}
.splitter::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; border-radius: 2px;
  background: transparent;
  transition: background .15s ease;
}
.splitter-grip {
  position: sticky; top: calc(50vh - 22px);
  display: block; width: 8px; height: 44px; margin: 0 auto;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: background .15s ease, border-color .15s ease;
}
.splitter-grip::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 2px; height: 18px; transform: translate(-50%, -50%);
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--muted) 0 2px, transparent 2px 5px);
  opacity: .6;
}
.splitter:hover::before, .splitter.dragging::before, .splitter:focus-visible::before { background: var(--splitter-line); }
.splitter:hover .splitter-grip, .splitter.dragging .splitter-grip, .splitter:focus-visible .splitter-grip {
  background: var(--splitter-active); border-color: var(--splitter-active);
}
.splitter:focus-visible .splitter-grip { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
body.is-resizing { cursor: col-resize; user-select: none; }
body.is-resizing #mapSvg { pointer-events: none; }

/* ── Datenspalte: ordnet sich je nach verfügbarer Breite neu an ── */
.sidebar {
  container-type: inline-size;
  container-name: sidebar;
  min-width: 0;
}
.sidebar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.panel { container-type: inline-size; }
/* Breite Datenspalte: „Ihr Szenario“ und „Wirkung am gewählten Ort“ nebeneinander */
@container sidebar (min-width: 880px) {
  .sidebar-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .sidebar-grid > .span-all { grid-column: 1 / -1; }
  .source-name-cell { max-width: none; }
  .table-wrap { max-height: 560px; }
}

/* Szenario-Steuerung: schmal untereinander, breit nebeneinander */
.controls-grid.scenario-controls { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 560px) {
  .controls-grid.scenario-controls { grid-template-columns: auto minmax(0, 1fr); }
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.source-controls { margin-bottom: .6rem; }

/* Tag/Nacht-Umschalter mit dezentem Sonne/Mond-Hinweis */
.period-toggle { width: 100%; }
.period-toggle button {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; white-space: nowrap; padding: 6px 12px;
  transition: background-color .2s ease, color .2s ease;
}
.period-toggle button small { font-weight: 400; font-size: .76rem; opacity: .8; }
.period-toggle button:not(.active):hover { background: var(--surface-2); color: var(--text); }
.period-toggle button:disabled { opacity: .45; cursor: not-allowed; }
.period-icon {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.hint-icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: .3rem; opacity: .85; }

/* Wirkung am gewählten Ort: breit → Bewertung neben den Kennwerten */
.result-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.result-body .verdict { margin-top: 0; }
@container (min-width: 600px) {
  .result-body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
}

/* ── Map ──────────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 12px; font-size: .84rem; color: var(--muted); }
.toolbar-map { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.toolbar-group { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.toolbar-group label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.toolbar-group input[type="checkbox"], td input[type="checkbox"], .toggle-inline input[type="checkbox"] {
  accent-color: var(--brand);
  width: 15px; height: 15px;
}
.zoom-controls button {
  border: 1px solid var(--line); background: var(--surface-input); color: var(--text);
  border-radius: 8px; padding: 6px 10px; min-width: 42px;
  cursor: pointer; font: inherit; font-size: .84rem;
}
.zoom-controls button:hover { background: var(--brand-soft); border-color: var(--hover-border); }

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--map-bg);
  aspect-ratio: 10 / 7;
}
#mapSvg { display: block; width: 100%; height: 100%; touch-action: none; }
#backgroundLayer image { filter: var(--map-image-filter); transition: filter .35s ease; }
/* Gebäude: CSS überschreibt die SVG-Attribute, damit sie nachts nicht grell wirken */
:root[data-theme="night"] .geom-building { fill: #7d8aa0; stroke: #4f5d75; }

.receiver-labels-overlay {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 8;
}
.receiver-poi-label {
  position: absolute; transform: translate(12px, -12px);
  padding: 2px 6px; border-radius: 4px;
  background: var(--map-label-bg);
  border: 1px solid var(--map-label-border);
  color: var(--map-label-text); font-size: 11px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.receiver-poi-label.selected { font-weight: 700; border-color: var(--brand-dark); color: var(--brand-dark); }

.map-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: .6rem; min-height: 20px;
}
.map-tooltip {
  position: absolute; z-index: 12; max-width: 260px;
  padding: 5px 9px; border-radius: 8px;
  background: var(--tooltip-bg); color: var(--tooltip-text);
  font-size: 12px; line-height: 1.35; pointer-events: none;
  opacity: 0; transition: opacity .12s ease;
}
.map-tooltip.visible { opacity: 1; }

.map-legend {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  margin-top: .55rem; font-size: .78rem; color: var(--muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.2); }

/* ── Controls ─────────────────────────────────────────────────── */
.controls-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px;
}
.controls-grid select, .controls-grid input { width: 100%; min-width: 0; }
.controls-grid label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: .82rem; font-weight: 600; color: var(--muted);
}
select, input[type="text"], input[type="number"], input[type="email"] {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: .88rem;
  font-weight: 400; color: var(--text); background: var(--surface-input);
  min-height: 38px;
}
select:hover, input[type="text"]:hover, input[type="email"]:hover { border-color: var(--hover-border); }

.segmented {
  display: inline-flex; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--surface-input);
}
.segmented button {
  border: none; background: transparent; padding: 8px 14px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted);
  cursor: pointer; min-height: 38px;
}
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button.active { background: var(--brand); color: var(--brand-contrast); }

/* ── Scenario summary strip ───────────────────────────────────── */
.scenario-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem;
  margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line);
}
.scenario-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--surface-2); color: var(--brand-dark);
  font-size: .8rem; font-weight: 600;
}
.scenario-chip.neutral { color: var(--muted); }
.scenario-strip .btn { margin-left: auto; }

/* ── Result / comparison ──────────────────────────────────────── */
.result-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-tile {
  border: 1px solid var(--line); border-radius: 8px;
  padding: .7rem .8rem; background: var(--surface-2);
}
.result-tile.emph { background: var(--surface); border-color: var(--hover-border); }
.result-tile .label { font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result-tile .value { font-size: 1.45rem; font-weight: 700; line-height: 1.2; margin-top: .1rem; }
.result-tile .sub { font-size: .8rem; color: var(--muted); margin-top: .1rem; }

.verdict {
  margin-top: 0; padding: .65rem .8rem; border-radius: 8px;
  font-size: .9rem; font-weight: 600; line-height: 1.4;
  display: flex; align-items: flex-start; gap: .5rem;
}
.verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: .32rem; }
.verdict.status-ok { background: var(--ok-bg); color: var(--ok-text); }
.verdict.status-ok::before { background: var(--ok); }
.verdict.status-warn { background: var(--warn-bg); color: var(--warn-text); }
.verdict.status-warn::before { background: var(--warn-dot); }
.verdict.status-exceed { background: var(--exceed-bg); color: var(--exceed-text); }
.verdict.status-exceed::before { background: var(--exceed); }
.verdict.status-unknown { background: var(--surface-2); color: var(--muted); }
.verdict.status-unknown::before { background: var(--unknown-dot); }
.verdict small { display: block; font-weight: 400; margin-top: .15rem; }

/* ── Receiver cards ───────────────────────────────────────────── */
.receiver-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.receiver-card {
  container-type: inline-size;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-input);
  padding: .65rem .75rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.receiver-card:hover { box-shadow: var(--shadow-hover); }
.receiver-card.selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.receiver-card.status-ok { border-left: 3px solid var(--ok); }
.receiver-card.status-warn { border-left: 3px solid var(--warn-dot); }
.receiver-card.status-exceed { border-left: 3px solid var(--exceed); }

.receiver-title {
  font-weight: 700; font-size: .88rem; margin-bottom: 5px;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.reserve-badge {
  font-size: 11px; font-weight: 700; padding: 1px 7px;
  border-radius: 999px; white-space: nowrap;
}
.reserve-badge.status-ok { background: var(--ok-bg); color: var(--ok-text); }
.reserve-badge.status-warn { background: var(--warn-badge-bg); color: var(--warn-badge-text); }
.reserve-badge.status-exceed { background: var(--exceed-bg); color: var(--exceed-badge-text); }
.reserve-badge.status-unknown { background: var(--unknown-bg); color: var(--unknown-text); }
.receiver-lines { display: grid; gap: 3px; font-size: .82rem; color: var(--muted); }
/* Breite Karte: Kennwerte nebeneinander statt untereinander */
@container (min-width: 360px) {
  .receiver-lines { grid-template-columns: repeat(3, auto); justify-content: start; gap: 3px 1.4rem; }
}
.receiver-lines strong { color: var(--text); font-weight: 600; }

/* ── Source table ─────────────────────────────────────────────── */
.table-wrap {
  min-height: 0; max-height: 460px; overflow: auto;
  border: 1px solid var(--line); border-radius: 8px;
}
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); text-align: left;
}
th, td { padding: 7px 9px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th.bar-header { width: 72px; }
tr:hover td { background: var(--row-hover); }
tr.highlight td { background: var(--brand-soft); }
tr.selected td { background: var(--row-selected); box-shadow: inset 0 1px 0 var(--row-selected-line), inset 0 -1px 0 var(--row-selected-line); }
tr.inactive td { color: var(--row-inactive-text); background: var(--row-inactive-bg); }
tr.flash td { animation: rowFlash 1.2s ease-out; }
@keyframes rowFlash { 0% { background: var(--row-flash); } 100% { background: transparent; } }
.source-name-cell { max-width: 200px; overflow-wrap: anywhere; }
.delta-input { width: 72px; min-height: 32px; padding: 4px 8px; font-size: .84rem; text-align: right; }
.delta-input:disabled { background: var(--surface-2); color: var(--row-inactive-text); }

.contrib-bar-wrap {
  width: 64px; height: 9px; background: var(--surface-2);
  border-radius: 4px; overflow: hidden;
}
.contrib-bar { height: 100%; border-radius: 4px; transition: width .2s ease; }

/* ── Help / hints ─────────────────────────────────────────────── */
details.help { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
details.help summary {
  cursor: pointer; padding: .6rem .8rem; font-weight: 600; font-size: .88rem;
  color: var(--brand-dark); list-style: none;
}
details.help summary::-webkit-details-marker { display: none; }
details.help summary::before { content: "?"; display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-right: .5rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-contrast); font-size: .75rem; font-weight: 700; }
details.help[open] summary { border-bottom: 1px solid var(--line); }
.help-body { padding: .7rem .9rem .9rem; font-size: .86rem; color: var(--muted); }
.help-body p { margin: 0 0 .55rem; }
.help-body p:last-child { margin-bottom: 0; }
.help-body strong { color: var(--text); }

.warnings { margin: 0; padding-left: 18px; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.muted { color: var(--muted); }
.small { font-size: .8rem; }

/* ── Dashboard (project overview) ─────────────────────────────── */
.dashboard-main { padding: 10px 0 34px; display: flex; flex-direction: column; }
.dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.model-tile { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .16s ease; }
.model-tile:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .10); }
.model-tile.expired { opacity: .62; }
.model-tile-link { display: flex; flex-direction: column; height: 100%; }
.model-tile-link.disabled { cursor: not-allowed; }
.model-shot {
  position: relative; aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
  background-color: var(--surface-2);
}
.model-shot-placeholder {
  background-image:
    linear-gradient(135deg, var(--surface-2) 25%, #e5eaeb 25%, #e5eaeb 50%, var(--surface-2) 50%, var(--surface-2) 75%, #e5eaeb 75%, #e5eaeb 100%);
  background-size: 28px 28px;
}
.model-shot-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, .25) 100%);
}
.model-shot-badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .4rem; }
.tile-badge {
  padding: .2rem .55rem; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(31,41,55,.1);
  font-size: .74rem; font-weight: 700; color: var(--text);
}
.tile-badge-ok { background: #e6f4ef; color: #135c43; border-color: rgba(19,92,67,.18); }
.tile-badge-muted { background: #eef2f7; color: #32485f; }
.model-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.model-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.model-title-row h2 { margin: 0; font-size: 1.02rem; }
.model-subtitle { color: var(--muted); font-size: .88rem; }
.model-footer { margin-top: auto; padding-top: .35rem; }
.empty-state { padding: 2rem; text-align: center; }
.empty-state h2 { margin-top: 0; }
.empty-state p { color: var(--muted); }
.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2); padding: .1rem .35rem; border-radius: .35rem; font-size: .85em;
}

/* Footer immer am unteren Seitenrand – auch bei wenig Inhalt (z. B. ein Modell) */
body > main { flex: 1 0 auto; }
body > .site-footer { flex: none; }

/* ── Footer (dark, like the homepage) ─────────────────────────── */
.site-footer {
  background: var(--footer-bg); color: rgba(255, 255, 255, .85);
  padding: 26px 0 30px; margin-top: 26px;
  font-size: .88rem;
}
.site-footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer small { color: rgba(255, 255, 255, .6); display: block; margin-top: .25rem; }
.footer-logo { height: 26px; width: auto; }

/* ── Responsive ───────────────────────────────────────────────── */
/* ── Ansicht: Lageplan & Details | Tabelle ─────────────────────── */
.view-bar { display: flex; justify-content: flex-start; margin-top: 16px; }
.view-toggle button {
  display: inline-flex; align-items: center; gap: .45rem; padding: 7px 16px;
  transition: background-color .2s ease, color .2s ease;
}
.view-toggle button:not(.active):hover,
.share-toggle button:not(.active):hover { background: var(--surface-2); color: var(--text); }
body[data-view="table"] #layout { display: none; }
.table-view { margin: 16px 0 30px; }
.table-view[hidden] { display: none; }

.tv-toolbar {
  display: grid; gap: 12px 14px; align-items: end;
  grid-template-columns: auto minmax(180px, 1fr) minmax(150px, 190px) auto minmax(160px, 1fr);
}
.tv-toolbar select, .tv-toolbar input { width: 100%; min-width: 0; }
.tv-toolbar .period-toggle { width: auto; }
.share-toggle button { padding: 6px 12px; white-space: nowrap; }
@media (max-width: 1280px) {
  .tv-toolbar { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .tv-toolbar .period-toggle, .tv-toolbar .share-toggle { width: 100%; }
  .share-toggle button { flex: 1 1 0; }
}

.tv-receivers {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem;
  margin-top: .9rem;
}
.tv-receivers .field-label { margin-right: .2rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.io-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .65rem .28rem .45rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-input);
  font-size: .8rem; font-weight: 600; color: var(--muted);
  cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.io-chip input { accent-color: var(--brand); width: 14px; height: 14px; margin: 0; }
.io-chip.on { color: var(--text); border-color: var(--hover-border); }
.io-chip:hover { border-color: var(--hover-border); }
.io-chip .status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-dot.status-ok { background: var(--ok); }
.status-dot.status-warn { background: var(--warn-dot); }
.status-dot.status-exceed { background: var(--exceed); }
.status-dot.status-unknown { background: var(--unknown-dot); }
.table-view .scenario-strip .toggle-inline { display: inline-flex; align-items: center; gap: .45rem; }

/* ── Große Tabelle ───────────────────────────────────────────── */
.tv-table-wrap {
  margin-top: .9rem;
  overflow: auto;
  max-height: calc(100vh - 150px);
  border: 1px solid var(--line); border-radius: 8px;
}
.big-table {
  width: max-content; min-width: 100%;
  border-collapse: separate; border-spacing: 0;
  font-size: .85rem;
}
.big-table th, .big-table td {
  padding: 6px 10px; border-bottom: 1px solid var(--line-soft);
  background: var(--surface); white-space: nowrap;
}
.big-table thead { position: sticky; top: 0; z-index: 3; }
.big-table thead th {
  background: var(--surface-2); color: var(--text);
  text-transform: none; letter-spacing: 0; font-size: .82rem;
  border-bottom: 1px solid var(--line);
}
.big-table thead tr.tv-group th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding-top: 7px; padding-bottom: 4px;
}
.big-table thead tr.tv-sum th { font-weight: 500; }
.big-table thead tr.tv-sum th.row-label { color: var(--muted); font-weight: 600; text-align: left; }
.big-table thead tr.tv-sum.tv-main th:not(.row-label) { font-weight: 700; font-size: .92rem; }
.big-table thead tr.tv-last th { border-bottom: 2px solid var(--hover-border); }

/* feste linke Spalten beim waagerechten Scrollen */
.big-table .c1, .big-table .c2, .big-table .c3 { position: sticky; z-index: 2; }
.big-table thead .c1, .big-table thead .c2, .big-table thead .c3 { z-index: 4; }
.big-table .c1 { left: 0; width: 46px; min-width: 46px; max-width: 46px; text-align: center; }
.big-table .c2 { left: 46px; width: 250px; min-width: 250px; max-width: 250px; white-space: normal; overflow-wrap: anywhere; }
.big-table .c3 { left: 296px; width: 92px; min-width: 92px; max-width: 92px; box-shadow: inset -1px 0 0 var(--line); }
.big-table .row-label { position: sticky; z-index: 4; left: 0; width: 388px; min-width: 388px; max-width: 388px; box-shadow: inset -1px 0 0 var(--line); }
@media (max-width: 760px) {
  .big-table .c2 { width: 150px; min-width: 150px; max-width: 150px; }
  .big-table .c3 { left: 196px; }
  .big-table .row-label { width: 288px; min-width: 288px; max-width: 288px; }
}

.big-table .io-col { text-align: right; min-width: 118px; }
.big-table .share-col { text-align: right; min-width: 74px; color: var(--muted); }
.big-table th.io-head { vertical-align: bottom; padding: 0; }
.io-sort-btn {
  display: flex; width: 100%; align-items: flex-end; justify-content: flex-end; gap: .35rem;
  padding: 8px 10px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--text); text-align: right;
  white-space: normal; max-width: 200px; margin-left: auto;
}
.io-sort-btn:hover { color: var(--brand-dark); }
.io-sort-btn .sort-arrow { color: var(--brand); font-size: .8rem; flex: none; }
.big-table .col-selected { background-image: linear-gradient(var(--brand-soft), var(--brand-soft)); }
.big-table thead th.col-selected { box-shadow: inset 0 3px 0 var(--brand); }
.big-table thead tr:not(:first-child) th.col-selected { box-shadow: none; }
.big-table thead tr.tv-group + tr th.col-selected { box-shadow: inset 0 3px 0 var(--brand); }

.big-table tbody tr:hover td { background-color: var(--row-hover); }
.big-table tbody tr.inactive td { color: var(--row-inactive-text); background-color: var(--row-inactive-bg); }
.big-table tbody tr.inactive .val-bar { opacity: .35; }
.big-table td .delta-input { width: 70px; min-height: 30px; padding: 3px 8px; }
/* Füllspalte: bei wenigen Orten bleiben die Pegelspalten kompakt links */
.big-table .filler { width: 100%; padding: 0; }
.big-table .src-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .45rem; vertical-align: baseline; border: 1px solid rgba(0,0,0,.2); }
.tv-delta { font-size: .76rem; font-weight: 600; margin-left: .35rem; color: var(--muted); }
.tv-delta.down { color: var(--ok-text); }
.tv-delta.up { color: var(--exceed-text); }

/* Anteil in der Zelle: dünner Balken unter dem Wert */
.val-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 84px; }
.val-num { font-variant-numeric: tabular-nums; }
.val-bar-track { width: 84px; height: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.val-bar { display: block; height: 100%; border-radius: 3px; background: var(--brand); transition: width .2s ease; }
.share-col .val-bar-track { width: 48px; display: inline-block; vertical-align: middle; margin-left: .4rem; }
.share-col .share-num { font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .splitter { display: none; }
}
@media (max-width: 760px) {
  .receiver-cards, .controls-grid, .result-compare { grid-template-columns: 1fr; }
  .page-intro-card h1 { font-size: 1.3rem; }
  .scenario-strip .btn { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root.theme-anim * { transition: none !important; }
  .contrib-bar, .btn, .model-tile { transition: none; }
  tr.flash td { animation: none; }
}

/* ── Anmeldung ───────────────────────────────────────────────── */
.login-main { display: flex; justify-content: center; align-items: flex-start; padding: 48px 0 56px; }
.login-card { width: 100%; max-width: 460px; padding: 30px 32px 22px; }
.login-card h1 { font-size: 1.55rem; margin: .35rem 0 .45rem; }
.login-card .lead { margin: 0 0 1.1rem; }
.login-form { display: grid; gap: 14px; margin-top: .4rem; }
.login-form input[type="email"], .login-form input[type="text"] { width: 100%; }
.btn-block { width: 100%; justify-content: center; min-height: 42px; }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.login-msg { border-radius: 8px; padding: .7rem .85rem; font-size: .9rem; line-height: 1.45; margin: 0 0 .9rem; }
.login-msg.info { background: var(--brand-soft); color: var(--text); border: 1px solid var(--line); }
.login-msg.error { background: var(--exceed-bg); color: var(--exceed-text); border: 1px solid rgba(185, 28, 28, .18); }

.code-input {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 1.7rem !important; font-weight: 700; letter-spacing: .35em;
  text-align: center; padding: 10px 12px !important; min-height: 56px !important;
}
.code-input::placeholder { color: var(--line); letter-spacing: .35em; }

.remember-box {
  display: flex; gap: .6rem; align-items: flex-start; cursor: pointer;
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--text);
}
.remember-box input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.remember-box small { display: block; font-weight: 400; margin-top: .15rem; }

/* Warte-Anzeige beim Senden */
.btn-wait { display: none; align-items: center; gap: .5rem; }
.is-waiting .btn-label { display: none; }
.is-waiting .btn-wait { display: inline-flex; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--brand-dark);
}
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.login-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.login-secondary form { display: inline; }
.login-help { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.login-help summary { cursor: pointer; font-weight: 600; color: var(--text); }
.login-help p { margin: .5rem 0 0; line-height: 1.5; }
.login-security { margin: 1.3rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line-soft); }

/* Kopfzeile: angemeldeter Nutzer + Abmelden */
.header-links { display: flex; align-items: center; gap: 1rem; }
.logout-form { display: flex; align-items: center; gap: .6rem; margin: 0; }
.user-chip {
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .8rem; color: var(--muted);
}
@media (max-width: 760px) {
  .user-chip { display: none; }
  .login-card { padding: 24px 20px 18px; }
}


/* ── Dashboard-Teaserkarte für weitere Projekte ───────────────── */
.model-tile-teaser {
  background: linear-gradient(180deg, #f8fafb 0%, #f2f4f6 100%);
  border: 1px dashed #d5dade;
  box-shadow: none;
}
.model-tile-teaser .teaser-link {
  cursor: default;
}
.model-tile-teaser .teaser-shot {
  position: relative;
  min-height: 170px;
  background:
    radial-gradient(circle at 22% 24%, rgba(47, 111, 115, 0.10), transparent 0 18%),
    radial-gradient(circle at 78% 70%, rgba(31, 41, 55, 0.06), transparent 0 20%),
    linear-gradient(180deg, #f6f8f9 0%, #eef1f2 100%);
  border-bottom: 1px solid #e6eaee;
}
.model-tile-teaser .teaser-grid {
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  border: 2px dashed rgba(31, 41, 55, 0.14);
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center center;
}
.model-tile-teaser .teaser-plus {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(31, 41, 55, 0.10);
  color: var(--brand);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.model-tile-teaser .teaser-body h2 {
  color: #53606f;
}
.model-tile-teaser .model-subtitle,
.model-tile-teaser .muted.small {
  color: #7b8794;
}

/* ── Modellversionen ───────────────────────────────────────────── */
.version-alert {
  margin: 18px 0 0;
  padding: 15px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px solid transparent;
  font-size: .92rem;
}
.version-alert > div { display: grid; gap: 3px; }
.version-alert strong { font-size: 1rem; letter-spacing: .015em; }
.version-alert a {
  flex: 0 0 auto;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(255,255,255,.72);
  border: 1px solid currentColor;
}
.version-alert-old {
  background: #fff4cf;
  border-color: #d9a514;
  color: #654b00;
}
.version-alert-inactive {
  background: #fde1df;
  border-color: #b52b25;
  color: #7b1814;
}
.version-picker {
  display: grid;
  gap: 4px;
  min-width: 210px;
}
.version-picker label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--muted);
}
.version-picker select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 7px 9px;
  font: inherit;
  font-size: .84rem;
}
@media (max-width: 760px) {
  .version-alert { align-items: flex-start; flex-direction: column; }
  .version-picker { min-width: 100%; }
}

.background-rights { margin-top: .35rem !important; }
.background-rights a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 2px; }
.background-rights a:hover { color: #fff; }

/* ── Dashboard feedback ───────────────────────────────────────── */
/* Der Spacer wächst bei wenig Inhalt und hält Feedback dezent am unteren Rand. */
.feedback-spacer { flex: 1 0 4.5rem; min-height: 4.5rem; }
.feedback-card {
  width: min(620px, 58%);
  margin-top: 0;
  padding: .75rem .85rem;
}
.feedback-title {
  display: block;
  margin: 0 0 .45rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
}
.feedback-form { display: grid; gap: .42rem; }
.feedback-form textarea {
  width: 100%; min-height: 58px; resize: vertical;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface-input); color: var(--text);
  padding: .5rem .6rem; font: inherit; line-height: 1.4;
}
.feedback-form textarea:focus { border-color: var(--brand); outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.feedback-actions { display: flex; justify-content: flex-end; }
.feedback-actions .btn {
  padding: .32rem .52rem;
  font-size: .78rem;
  line-height: 1.25;
}
.feedback-notice { padding: .6rem .7rem; border-radius: 7px; font-size: .86rem; }
.feedback-notice-success { background: var(--ok-bg); color: var(--ok-text); border: 1px solid currentColor; }
.feedback-notice-error { background: var(--exceed-bg); color: var(--exceed-text); border: 1px solid currentColor; }
@media (max-width: 900px) {
  .feedback-card { width: min(620px, 72%); }
  .feedback-spacer { flex-basis: 4rem; min-height: 4rem; }
}
@media (max-width: 760px) {
  .feedback-card { width: 100%; }
  .feedback-spacer { flex-basis: 3.5rem; min-height: 3.5rem; }
  .feedback-actions .btn { width: auto; }
}
