/* Bewerbungs-Leitstand
   Gestaltung nach dem Vorbild ruhiger Prozessleitbilder: graue Fläche, flache Felder,
   Farbe nur dort, wo ein Zustand Aufmerksamkeit braucht. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --plane: #dfe3e7;
  --panel: #ffffff;
  --panel-head: #eef1f3;
  --ink: #18222b;
  --ink-2: #55616b;
  --line: #c3cad0;
  --hair: #e4e8eb;
  --axis: #c2c8cd;
  --accent: #257de0;        /* Datenmarken, Lampen */
  --accent-ink: #1757ac;    /* Links und Schaltflächen-Text */
  --accent-wash: #e6f0fc;
  --good: #0aac23;
  --warn: #fbb315;
  --serious: #f18a59;
  --crit: #dc3c3d;
  --focus: #0f4a96;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tight: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --plane: #10151a; --panel: #1b2126; --panel-head: #232a30; --ink: #e9edf0; --ink-2: #9aa5ae;
    --line: #353e46; --hair: #2a3238; --axis: #47515a; --accent: #338ced; --accent-ink: #84b9f3;
    --accent-wash: #1c2e44; --focus: #9dc8f7;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #10151a; --panel: #1b2126; --panel-head: #232a30; --ink: #e9edf0; --ink-2: #9aa5ae;
  --line: #353e46; --hair: #2a3238; --axis: #47515a; --accent: #338ced; --accent-ink: #84b9f3;
  --accent-wash: #1c2e44; --focus: #9dc8f7;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--plane); color: var(--ink);
  font: 400 16px/1.5 var(--font);
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; }
.ico-accent { color: var(--accent); }
.ico-warn { color: var(--warn); }
.quiet-text { color: var(--ink-2); font-size: 14px; }
.pad { padding: 16px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }

/* ---------- Kopfleiste ---------- */
.bar {
  display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font: 600 24px/1 var(--font-tight); letter-spacing: 0.01em; }
.brand-sub { font: 500 15px/1 var(--font-tight); color: var(--ink-2); }
.bar-nav { display: flex; gap: 4px; margin-right: auto; }
.bar-nav a {
  padding: 8px 12px; border-radius: 3px; color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.bar-nav a:hover { color: var(--ink); background: var(--panel-head); }
.bar-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 3px 3px 0 0; }
.bar-tools { display: flex; gap: 8px; }

/* ---------- Seite ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 64px; display: grid; gap: 16px; }
.headline { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.headline h1 { font: 600 32px/1.1 var(--font-tight); }
.headline-sub { color: var(--ink-2); margin-top: 4px; }
.headline-side { display: flex; align-items: center; gap: 12px; }
.back a { font-size: 14px; }

.sync { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sync-text { color: var(--ink-2); font-size: 14px; max-width: 46ch; }
.lamp { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.lamp-ok { background: var(--good); }
.lamp-off { background: var(--line); }
.lamp-fault { background: var(--crit); }
.lamp-busy { background: var(--accent); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font-weight: 500; text-decoration: none; line-height: 1.2;
}
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
:root[data-theme="dark"] .btn.primary { background: #1b64be; border-color: #1b64be; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .btn.primary { background: #1b64be; border-color: #1b64be; } }
.btn.primary:hover { filter: brightness(1.1); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.quiet:hover { color: var(--ink); background: var(--panel-head); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.btn.danger { color: var(--crit); }
.btn.danger:hover { border-color: var(--crit); }

/* ---------- Felder (Panels) ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--panel-head); border-bottom: 1px solid var(--line);
  border-radius: 3px 3px 0 0; min-height: 48px;
}
.panel-head h2 { font: 600 17px/1.2 var(--font-tight); }
.panel-hint { color: var(--ink-2); font-size: 13px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: start; }
.grid-detail { display: grid; gap: 16px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 900px) { .grid-detail { grid-template-columns: 1fr; } }

.notices { display: grid; gap: 8px; }
.notice { padding: 10px 14px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); border-left-width: 4px; }
.notice-ok { border-left-color: var(--good); }
.notice-error { border-left-color: var(--crit); }
.notice-info { border-left-color: var(--accent); }

.empty { padding: 32px clamp(16px, 4vw, 40px); }
.empty h2 { font: 600 24px/1.2 var(--font-tight); margin-bottom: 8px; }
.empty p { max-width: 62ch; color: var(--ink-2); }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Prozesslinie ---------- */
.line {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  padding: 24px 16px 20px; position: relative;
}
.line::before {            /* die Förderstrecke hinter den Stationen */
  content: ""; position: absolute; left: 16px; right: 16px; top: 50%; height: 4px;
  background: var(--axis); transform: translateY(-2px);
}
.station { position: relative; }
.station:not(:last-child)::after {   /* Flussrichtung */
  content: ""; position: absolute; right: -19px; top: 50%; transform: translateY(-50%);
  border: 7px solid transparent; border-left: 10px solid var(--axis); border-right: 0;
}
.station button {
  position: relative; width: 100%; display: grid; gap: 2px; justify-items: start; text-align: left;
  padding: 12px 14px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel);
  cursor: pointer; color: var(--ink);
}
.station button:hover { border-color: var(--ink-2); }
.station button[aria-pressed="true"] { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); background: var(--accent-wash); }
.st-lamp { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--axis); }
.station.is-live .st-lamp { background: var(--accent); border-color: var(--accent); }
.station-angebot.is-live .st-lamp { background: var(--good); border-color: var(--good); }
.st-name { font: 600 16px/1.2 var(--font-tight); padding-right: 20px; }
.st-count { font: 600 44px/1 var(--font-tight); margin: 6px 0 2px; }
.station:not(.is-live) .st-count { color: var(--ink-2); }
.st-hint { color: var(--ink-2); font-size: 13px; line-height: 1.3; }
.outlets {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--hair);
}
.outlet-label { color: var(--ink-2); font-size: 14px; margin-right: 4px; }
.outlet {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel); cursor: pointer; color: var(--ink);
}
.outlet b { font: 600 18px/1 var(--font-tight); margin-left: 2px; }
.outlet[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-wash); }
@media (max-width: 760px) {
  .line { grid-template-columns: 1fr; gap: 22px; padding: 16px; }
  .line::before { left: 34px; right: auto; top: 16px; bottom: 16px; width: 4px; height: auto; transform: none; }
  .station:not(:last-child)::after { right: auto; left: 13px; top: auto; bottom: -19px; transform: none;
    border: 7px solid transparent; border-top: 10px solid var(--axis); border-bottom: 0; }
  .station button { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding-right: 40px; }
  .st-count { grid-row: 1 / span 2; grid-column: 2; font-size: 36px; margin: 0; }
  .st-hint { grid-column: 1; }
}

/* ---------- Kennzahlen ---------- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.tile-label { color: var(--ink-2); font-size: 14px; }
.tile-value { font: 600 32px/1.15 var(--font-tight); margin: 4px 0; }
.tile-sub { color: var(--ink-2); font-size: 13px; line-height: 1.35; }

/* ---------- Listen ---------- */
.list-title { font: 600 14px/1.2 var(--font); color: var(--ink-2); padding: 14px 16px 4px; }
.todo li + li, .feed li + li { border-top: 1px solid var(--hair); }
.todo a {
  display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; align-items: start;
  padding: 10px 16px; text-decoration: none; color: var(--ink);
}
.todo a:hover, .feed a:hover { background: var(--panel-head); }
.todo .ico { margin-top: 4px; }
.todo-main { font-weight: 500; }
.todo-sub { grid-column: 2; color: var(--ink-2); font-size: 14px; }
.feed a { display: grid; gap: 4px; padding: 10px 16px; text-decoration: none; color: var(--ink); }
.feed-top { display: flex; justify-content: space-between; gap: 12px; }
.feed-company { font-weight: 500; }
.feed time { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-sum { color: var(--ink-2); font-size: 14px; line-height: 1.4; }

/* ---------- Zustands-Marken ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.pill .ico { color: var(--ink-2); }
.pill-gesendet .ico, .pill-bestaetigt .ico, .pill-gespraech .ico,
.pill-cat-bewerbung .ico, .pill-cat-bestaetigung .ico, .pill-cat-einladung .ico, .pill-cat-rueckfrage .ico { color: var(--accent); }
.pill-angebot .ico, .pill-cat-zusage .ico, .pill-ok .ico { color: var(--good); }
.pill-fault .ico { color: var(--warn); }
.pill-absage, .pill-zurueckgezogen, .pill-cat-absage { color: var(--ink-2); }

/* ---------- Tabelle ---------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  min-height: 36px; padding: 4px 12px; border-radius: 3px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; color: var(--ink);
}
.chip b { font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.chip[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-wash); }
.search { flex: 1 1 240px; max-width: 320px; }
.search input { min-height: 36px; }
.table-wrap { overflow-x: auto; }
.apps { width: 100%; border-collapse: collapse; font-size: 15px; }
.apps th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 14px; white-space: nowrap;
  padding: 8px 16px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--line); }
.apps th button { all: unset; cursor: pointer; padding: 4px 0; }
.apps th button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.apps th[aria-sort="ascending"] button::after { content: " ↑"; }
.apps th[aria-sort="descending"] button::after { content: " ↓"; }
.apps td { padding: 10px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.apps tbody tr:last-child td { border-bottom: 0; }
.apps tbody tr:hover { background: var(--panel-head); }
.row-link { font-weight: 500; color: var(--ink); text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.cell-sub { display: block; color: var(--ink-2); font-size: 14px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Diagramme ---------- */
.chart { padding: 12px 16px 14px; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--ink-2); font: 400 12px var(--font); font-variant-numeric: tabular-nums; }
.chart .val { fill: var(--ink); font: 500 13px var(--font); font-variant-numeric: tabular-nums; }
.chart .mark { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:hover + .mark, .chart .hit:focus-visible + .mark { filter: brightness(1.18); }
.chart .hit:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.chart-empty { color: var(--ink-2); font-size: 14px; padding: 8px 0; max-width: 52ch; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; padding: 6px 10px; border-radius: 3px;
  background: var(--ink); color: var(--panel); font-size: 13px; line-height: 1.35; white-space: nowrap;
  transform: translate(-50%, -100%);
}
.tip b { display: block; font: 600 15px var(--font-tight); }
.chart table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chart th, .chart td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.chart th { color: var(--ink-2); font-weight: 500; }
.chart td:last-child, .chart th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Detailseite ---------- */
.facts { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.facts > div { background: var(--panel); padding: 12px 16px; }
.facts dt { color: var(--ink-2); font-size: 14px; }
.facts dd { font-weight: 500; }
.timeline { padding: 16px 16px 16px 20px; }
.event { position: relative; padding: 0 0 20px 22px; border-left: 2px solid var(--axis); }
.event:last-child { padding-bottom: 4px; border-left-color: transparent; }
.event::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--panel); }
.event-out::before { background: var(--panel); border-color: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
.event-head { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.event-head time { font-variant-numeric: tabular-nums; }
.event-subject { font-weight: 500; margin: 2px 0 6px; overflow-wrap: anywhere; }
.event-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.event-sum { margin-top: 6px; max-width: 70ch; }
.event details { margin-top: 8px; }
.event summary { cursor: pointer; color: var(--accent-ink); font-size: 14px; width: fit-content; padding: 4px 0; }
.mail-body { margin: 8px 0 0; padding: 12px; background: var(--panel-head); border: 1px solid var(--hair); border-radius: 3px;
  font: 400 14px/1.5 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.event-fix { display: grid; gap: 10px; margin-top: 12px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.danger-zone { border-top: 1px solid var(--hair); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 500; font-size: 15px; }
.form input:not([type="checkbox"]), .form select, .form textarea, .search input, .inline-form select, .gate-form input {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--panel); color: var(--ink); font-weight: 400;
}
.inline-form select { width: auto; max-width: 260px; min-height: 32px; padding: 4px 8px; }
.form select { height: 40px; }
.form textarea { resize: vertical; }
.form-row { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.field-hint { font-weight: 400; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.field-error { color: var(--crit); font-weight: 500; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; }
.more { border-top: 1px solid var(--hair); padding-top: 10px; }
.more summary { cursor: pointer; color: var(--accent-ink); width: fit-content; padding: 4px 0; }
.more[open] { display: grid; gap: 14px; }
.settings { display: grid; gap: 16px; }
.data-actions { display: grid; gap: 14px; justify-items: start; }
.data-actions form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.dialog { width: min(560px, calc(100vw - 24px)); padding: 20px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel); color: var(--ink); }
.dialog::backdrop { background: rgba(16, 21, 26, 0.55); }
.dialog h2 { font: 600 22px/1.2 var(--font-tight); }
.dialog .form-actions { justify-content: flex-end; }

/* ---------- Anmeldung ---------- */
.plain .page { max-width: 440px; padding-top: 12vh; }
.gate { display: grid; gap: 20px; }
.gate-title { font: 600 40px/1 var(--font-tight); }
.gate-title span { display: block; font: 500 20px/1.4 var(--font-tight); color: var(--ink-2); }
.gate-form { display: grid; gap: 12px; padding: 20px; }
.gate-form label { font-weight: 500; }
.gate-form h2 { font: 600 20px/1.2 var(--font-tight); }

@media (max-width: 640px) {
  .apps .wide-only { display: none; }
  .apps th, .apps td { padding-left: 10px; padding-right: 10px; }
  .apps td:first-child { overflow-wrap: anywhere; hyphens: auto; }
  .apps th { white-space: normal; }
  .apps .pill { font-size: 13px; padding-right: 6px; }
  .bar { gap: 4px 12px; }
  .brand { margin-right: auto; }
  .bar-nav { order: 3; width: 100%; margin: 0; }
  .headline h1 { font-size: 28px; }
}

/* ---------- Firmenliste ---------- */
.head-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.back { display: flex; gap: 16px; flex-wrap: wrap; }
.fact-links { display: flex; gap: 4px 16px; flex-wrap: wrap; font-weight: 400; }
.firm-filters { align-items: center; }
.firm-open { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.firm-sort { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink-2); }
.firm-sort select { min-height: 36px; padding: 4px 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 3px; color: var(--ink); }
.group-count { color: var(--ink-2); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.firm-group[hidden], .firm[hidden] { display: none; }
.firm-list > li + li { border-top: 1px solid var(--hair); }
.firm { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px 32px; padding: 16px; scroll-margin-top: 12px; }
.firm:target { background: var(--accent-wash); }
.firm-top { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; }
.firm-name { font: 600 20px/1.2 var(--font-tight); }
.firm-pos { margin-top: 2px; max-width: 68ch; }
.firm-rob { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.firm-rob b { font-weight: 500; color: var(--ink); }
.meter { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; flex: none; }
.meter i { display: block; width: 5px; border-radius: 1px; background: var(--axis); }
.meter i:nth-child(1) { height: 6px; } .meter i:nth-child(2) { height: 8px; } .meter i:nth-child(3) { height: 11px; }
.meter i:nth-child(4) { height: 13px; } .meter i:nth-child(5) { height: 16px; }
.meter i.on { background: var(--accent); }
.firm-note { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 8px; max-width: 68ch; }
.firm-facts { display: grid; gap: 12px; align-content: start; }
.firm-facts dt { color: var(--ink-2); font-size: 13px; line-height: 1.3; }
.firm-facts dd { font: 600 21px/1.2 var(--font-tight); font-variant-numeric: tabular-nums; margin-top: 2px; }
.firm-facts dd span { display: block; font: 400 14px/1.35 var(--font); color: var(--ink-2); }
.firm-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.firm-actions a.btn { text-decoration: none; }
.firm-foot { max-width: 80ch; }
@media (max-width: 760px) {
  .firm { grid-template-columns: 1fr; gap: 12px; }
  .firm-facts { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .firm-filters .search { max-width: none; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) { .lamp-busy { animation: none; } }
