/* Kachelbedienung: echte Buttons erhalten die vorhandene Optik und einen sichtbaren Tastaturfokus. */
.live-metric,
.kpi {
    position: relative;
}
.tile-hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    color: inherit;
}
.tile-hit:hover {
    box-shadow: inset 0 0 0 1px var(--accent);
}
.tile-hit:focus-visible {
    outline: 3px solid #e6a841;
    outline-offset: 2px;
}
.storage-explanation {
    position: relative;
    z-index: 2;
}
.storage-popover {
    z-index: 10;
}
.estimate-prefix {
    font-size: 0.66em;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
    margin-right: 4px;
    white-space: nowrap;
}
.detail-unit {
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
    margin-left: 4px;
}
.support-state[data-state="burner"] {
    color: #b56935;
}
.support-state[data-state="burner"]:before {
    background: #d18340;
}
[data-theme="dark"] .support-state[data-state="burner"] {
    color: #efb87f;
}

/* Flache Tagesbilanz: vier zusammengehörige Werte unter dem Schema, ohne redundante Statuskarten. */
.overview-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    flex: none;
    margin-top: 10px;
}
.summary-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    container-type: inline-size;
}
.summary-metric:hover {
    border-color: var(--accent);
}
.summary-label {
    font-size: 10px;
    line-height: 1.25;
    color: var(--muted);
}
.summary-value {
    font-size: 20px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
[data-negative="true"] {
    color: #b55f32;
}
[data-theme="dark"] [data-negative="true"] {
    color: #efa471;
}

/* Dialog bleibt außerhalb des Rasters. Der Inhalt ist bei kleinen Fenstern und beim Zoom scrollbar. */
.tile-dialog {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100svh - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 18px 70px #10252d40;
    overflow: auto;
}
.tile-dialog:not([open]) {
    display: none;
}
.tile-dialog::backdrop {
    background: #0b242c66;
    backdrop-filter: blur(2px);
}
.tile-dialog-shell {
    padding: 18px;
}
.tile-dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 9px;
}
.tile-dialog-header h2 {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
    margin: 0;
}
.tile-dialog-header p {
    font-size: 10px;
    color: var(--muted);
    margin: 5px 0 0;
}
.tile-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -5px -5px 0 0;
    border: 0;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 25px;
    line-height: 1;
}
.tile-detail-list {
    margin: 0;
}
.tile-detail-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.tile-detail-list dt {
    font-size: 11px;
    line-height: 1.4;
    max-width: 57%;
    color: var(--muted);
}
.tile-detail-list dd {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-align: right;
    margin: 0;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}
.tile-detail-note {
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted);
    margin: 12px 0 0;
}
.tile-dialog-controls {
    margin-top: 14px;
}
.tile-dialog-controls[hidden],
.tile-dialog-controls form[hidden] {
    display: none;
}
.tile-dialog-controls .button {
    width: 100%;
    min-height: 40px;
}

/* Die Übersicht nutzt die komplette verfügbare Höhe; das Schema wird in beide Richtungen proportional eingepasst. */
body.overview-page #infobox {
    display: none;
}
body.overview-page .workspace {
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
}
body.overview-page .topbar {
    flex: none;
    margin-bottom: 12px;
}
body.overview-page #content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.overview-page .live-grid {
    flex: none;
    margin-bottom: 10px;
    gap: 10px;
}
body.overview-page .live-metric {
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}
body.overview-page .metric-title {
    min-height: 18px;
    flex: none;
}
body.overview-page .metric-number {
    font-size: 25px;
    margin-top: 5px;
}
body.overview-page .system-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.overview-page .system-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.overview-page .system-frame {
    flex: none;
    max-height: none;
    width: 0;
    height: 0;
}
body.overview-page .card-header,
body.overview-page .system-legend {
    flex: none;
}
body.overview-page #footer {
    flex: none;
    padding: 8px 0;
    font-size: 9px;
}

/* Modernes Mobilraster: Die feste Navigation liefert die sichtbare Unterkante.
   Bei verzögerten Messwerten darf ein Platzhalter die Seite vorübergehend verlängern;
   nach dem Datenwechsel richtet sich die Mindesthöhe wieder nach dieser Unterkante. */
@media (max-width: 780px) {
    html[data-appearance="modern"] body.overview-page #container {
        min-height: 0;
    }
    html[data-appearance="modern"] body.overview-page .workspace {
        height: auto;
        min-height: calc(100svh - var(--overview-header-height, 46px));
        min-height: var(--overview-sichtbare-hoehe, calc(100svh - var(--overview-header-height, 46px)));
        padding: 0 13px calc(var(--overview-nav-height, 68px) + 6px);
    }
    html[data-appearance="modern"] body.overview-page #content {
        flex: none;
    }
    html[data-appearance="modern"] body.overview-page #footer {
        margin-top: auto;
    }
    body.overview-page .topbar {
        min-height: 30px;
        margin-bottom: 8px;
    }
    body.overview-page .live-grid {
        gap: 7px;
        margin-bottom: 8px;
    }
    body.overview-page .live-metric {
        padding: 9px 10px;
    }
    body.overview-page .metric-number {
        font-size: 23px;
        margin-top: 4px;
    }
    body.overview-page .metric-detail {
        min-height: 12px;
        font-size: 9px;
        line-height: 1.35;
    }
    body.overview-page .support-state {
        font-size: 9px;
        line-height: 1.35;
        flex-wrap: wrap;
    }
    body.overview-page .overview-summary {
        gap: 6px;
        margin-top: 8px;
    }
    body.overview-page .summary-metric {
        padding: 5px 6px;
        min-height: 49px;
        border-radius: 10px;
        gap: 2px;
    }
    body.overview-page .summary-label {
        font-size: 8.5px;
        min-height: 15px;
        display: flex;
        align-items: center;
    }
    body.overview-page .summary-value {
        font-size: 16px;
        font-size: clamp(12px, 20cqw, 18px);
        letter-spacing: -0.4px;
    }
    body.overview-page .summary-value .estimate-prefix {
        font-size: 8px;
        margin-right: 1px;
    }
    body.overview-page .summary-value .detail-unit {
        font-size: 8px;
        margin-left: 1px;
    }
    body.overview-page #footer {
        padding: 6px 0;
        font-size: 8px;
    }
    .tile-dialog-shell {
        padding: 15px;
    }
}

/* Kurze Fenster: Messkacheln und Schema nebeneinander statt einer langen vertikalen Folge. */
@media (max-height: 620px) and (min-width: 560px) {
    body.overview-page #content {
        display: grid;
        grid-template-columns: minmax(210px, 0.85fr) minmax(0, 1.15fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
    }
    body.overview-page .live-grid {
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        gap: 6px;
        align-content: stretch;
    }
    body.overview-page .live-metric {
        padding: 7px 9px;
    }
    body.overview-page .metric-number {
        font-size: 21px;
        margin-top: 3px;
    }
    body.overview-page .metric-title {
        font-size: 10px;
    }
    body.overview-page .metric-detail,
    body.overview-page .support-state {
        font-size: 9px;
        margin-top: 3px;
    }
    body.overview-page .system-card {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }
    body.overview-page .card-header {
        padding: 7px 10px 3px;
    }
    body.overview-page .card-header h2 {
        font-size: 14px;
    }
    body.overview-page .badge {
        display: none;
    }
    body.overview-page .system-legend {
        margin: 0 8px;
        padding: 4px 0;
        font-size: 7px;
        gap: 4px;
        flex-wrap: wrap;
    }
    body.overview-page .system-legend > span:last-child {
        font-size: 7px;
    }
    body.overview-page .overview-summary {
        grid-column: 1/-1;
        grid-row: 2;
        margin: 0;
    }
    body.overview-page .summary-metric {
        min-height: 46px;
        padding: 5px 9px;
    }
    body.overview-page .summary-label {
        min-height: 0;
        font-size: 9px;
    }
    body.overview-page .summary-value {
        font-size: 18px;
    }
    body.overview-page .topbar {
        margin-bottom: 7px;
    }
    body.overview-page #footer {
        display: none;
    }
    body.overview-page .sidebar-note {
        display: none;
    }
}
@media (max-height: 620px) and (max-width: 780px) {
    body.overview-page #header {
        padding: 7px 13px 4px;
    }
    body.overview-page .headerlogo {
        width: 24px;
        height: 24px;
    }
    body.overview-page .headertitel {
        font-size: 18px;
    }
    body.overview-page .workspace {
        padding-bottom: calc(var(--overview-nav-height, 68px) + 6px);
    }
    body.overview-page .topbar {
        min-height: 25px;
        margin-bottom: 6px;
    }
    body.overview-page .topbar h1 {
        font-size: 21px;
    }
    body.overview-page .top-actions {
        top: 5px;
    }
    body.overview-page .icon-button {
        width: 31px;
        height: 31px;
    }
    body.overview-page #footer {
        display: none;
    }
}
/* Bei extremem Zoom ist Lesen wichtiger als erzwungenes Abschneiden: natürliches Scrollen zulassen. */
@media (max-height: 480px) and (max-width: 559px), (max-height: 280px) {
    body.overview-page .workspace {
        height: auto;
        min-height: calc(100svh - var(--overview-header-height, 0px));
    }
    body.overview-page #content {
        display: flex;
        min-height: 0;
    }
    body.overview-page .system-card {
        flex: none;
    }
    body.overview-page .system-stage {
        flex: none;
    }
    body.overview-page .system-frame {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 100/43;
    }
    body.overview-page .live-grid {
        flex: none;
    }
}
/* Kleine Hochformattelefone: weniger Polster statt Abschneiden oder blockiertem Zoom. */
@media (max-height: 620px) and (min-width: 781px) {
    body.overview-page .sidebar {
        padding: 16px 10px;
    }
    body.overview-page #header {
        padding: 4px 8px 12px;
        gap: 8px;
    }
    body.overview-page .headerlogo {
        width: 24px;
        height: 24px;
    }
    body.overview-page .headertitel {
        font-size: 18px;
    }
    body.overview-page .brand-sub {
        display: none;
    }
    body.overview-page .nav-caption {
        font-size: 9px;
        padding: 5px 12px;
    }
    body.overview-page #navigation {
        gap: 5px;
    }
    body.overview-page #navigation a {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 12px;
    }
}
@media (max-height: 670px) and (max-width: 559px) {
    body.overview-page .live-metric {
        padding: 7px 9px;
    }
    body.overview-page .metric-number {
        font-size: 21px;
    }
    body.overview-page .metric-title {
        min-height: 16px;
    }
    body.overview-page .card-header {
        padding: 7px 10px 3px;
    }
    body.overview-page .system-legend {
        padding: 4px 0;
    }
    body.overview-page .overview-summary {
        margin-top: 6px;
    }
    body.overview-page .summary-metric {
        min-height: 46px;
        padding: 5px;
    }
    body.overview-page .summary-value {
        font-size: 15px;
        font-size: clamp(12px, 20cqw, 16px);
    }
    body.overview-page .summary-label {
        font-size: 8px;
        min-height: 14px;
    }
}

/* Drei lesbare Gaskarten. Die Laufzeit steht direkt beim Ofen, im bisher freien Kartenbereich. */
.overview-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.summary-label {
    font-size: 13px;
    font-weight: 550;
}
.stove-runtime {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: auto;
    text-align: right;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0;
}
.stove-runtime > span:first-child {
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
}
body.overview-page .live-metric:first-child .metric-number {
    display: flex;
    align-items: center;
    gap: 3px;
}
/* Kein Auffüllen der Resthöhe durch das Schema: die Bilanz bleibt unmittelbar darunter sichtbar. */
body.overview-page .system-card {
    flex: 0 1 auto;
    height: clamp(170px, 38dvh, 420px);
}
@media (max-width: 780px) {
    body.overview-page .system-card {
        height: clamp(145px, 29dvh, 290px);
    }
    body.overview-page .summary-label {
        font-size: 12px;
        min-height: 16px;
        line-height: 1.25;
    }
    body.overview-page .summary-metric {
        min-height: 54px;
        padding: 6px 8px;
    }
    body.overview-page .summary-value {
        font-size: clamp(16px, 19cqw, 21px);
    }
    body.overview-page .stove-runtime {
        font-size: 13px;
    }
    body.overview-page .stove-runtime > span:first-child {
        font-size: 9px;
    }
}
@media (max-height: 620px) and (min-width: 560px) {
    body.overview-page .system-card {
        height: auto;
        align-self: stretch;
    }
}

/* Einheitliche Kachelhierarchie: alle Kartentitel gleich, beide Ofenwerte gleich gewichtet. */
body.overview-page .metric-title,
body.overview-page .summary-label {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.3;
    color: var(--muted);
}
body.overview-page .stove-runtime {
    margin-left: 0;
    padding-left: 6px;
    border-left: 1px solid var(--line);
    font-size: inherit;
    font-weight: inherit;
    min-width: 0;
    text-align: right;
    gap: 3px;
}
body.overview-page .stove-temperature {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}
body.overview-page .stove-runtime,
body.overview-page .stove-temperature {
    flex: 1;
}
body.overview-page .stove-temperature-value {
    white-space: nowrap;
}
body.overview-page .stove-runtime > span:first-child,
body.overview-page .stove-field-label {
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
}
body.overview-page .stove-runtime > span:last-child {
    white-space: nowrap;
}
body.overview-page .stove-runtime .estimate-prefix {
    font-size: 8px;
    margin-right: 1px;
}
body.overview-page .stove-runtime .detail-unit {
    font-size: 10px;
    margin-left: 1px;
}
@media (max-width: 780px) {
    body.overview-page .metric-title,
    body.overview-page .summary-label {
        font-size: 11px !important;
    }
    body.overview-page .stove-runtime > span:first-child,
    body.overview-page .stove-field-label {
        font-size: 8px;
    }
    body.overview-page .stove-runtime .estimate-prefix {
        font-size: 7px;
    }
    body.overview-page .stove-runtime .detail-unit {
        font-size: 8px;
    }
}
/* Größere, klar unterscheidbare Titel und Teilbereichsbeschriftungen im Ofen. */
body.overview-page .metric-title,
body.overview-page .summary-label {
    font-size: 14px !important;
}
body.overview-page .stove-runtime > span:first-child,
body.overview-page .stove-field-label {
    font-size: 12px;
}
@media (max-width: 780px) {
    body.overview-page .metric-title,
    body.overview-page .summary-label {
        font-size: 13px !important;
    }
    body.overview-page .stove-runtime > span:first-child,
    body.overview-page .stove-field-label {
        font-size: 11px;
    }
}
/* Beide Betriebsanzeigen verwenden dieselben Farben, auch wenn die Pumpenzeile zugleich metric-detail ist. */
body.overview-page #metric-stove-info.support-state[data-state="active"],
body.overview-page #heating-support[data-state="active"] {
    color: #087768;
}
body.overview-page #metric-stove-info.support-state[data-state="active"]:before,
body.overview-page #heating-support[data-state="active"]:before {
    background: #179c82;
}
[data-theme="dark"] body.overview-page #metric-stove-info.support-state[data-state="active"],
[data-theme="dark"] body.overview-page #heating-support[data-state="active"] {
    color: #8edccc;
}
body.overview-page #metric-stove-info.support-state[data-state="off"] {
    color: var(--muted);
}

/* Eine gemeinsame Gasbilanz mit drei klar getrennten, gleich breiten Bereichen. */
body.overview-page .overview-summary {
    grid-template-columns: minmax(0, 1fr);
}
body.overview-page .gas-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 8px 0;
    align-items: center;
}
.gas-segment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0 12px;
    min-width: 0;
}
.gas-segment + .gas-segment {
    border-left: 1px solid var(--line);
}
@media (max-width: 780px) {
    body.overview-page .gas-summary {
        padding: 7px 0;
    }
    .gas-segment {
        padding: 0 8px;
        gap: 2px;
    }
}

/* Einheitliche Maße für alle Einheiten: Temperatur, Laufzeit, Gas und Popup-Werte.
   Ein fester Abstand und dieselbe Grundlinie verhindern angeklebte oder versetzte Einheiten. */
body {
    --hevi-unit-size: 12px;
    --hevi-unit-gap: 4px;
}
body .workspace .metric-unit,
body.overview-page .workspace .detail-unit,
body .tile-dialog .detail-unit {
    font-size: var(--hevi-unit-size);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    vertical-align: baseline;
    white-space: nowrap;
    margin: 0 0 0 var(--hevi-unit-gap);
    color: var(--muted);
}

/* Gut lesbare Tagesdetails und eine mit dem Daumen gut treffbare Schließen-Schaltfläche.
   Der Fokus bleibt für Tastaturbedienung sichtbar; Scrollen und Browserzoom bleiben möglich. */
.tile-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    cursor: pointer;
}
.tile-close:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.tile-detail-list dt { font-size: 12px; line-height: 1.45; }
.tile-detail-list dd { font-size: 14px; line-height: 1.45; }
.tile-detail-note { font-size: 11px; line-height: 1.5; }
.tile-dialog-header p { font-size: 11px; line-height: 1.4; }

/* Die numerischen Ofenwerte bleiben gleich groß. Weniger Trennpolster schafft Einheitenplatz. */
body.overview-page .live-metric:first-child .metric-number { gap: 0; }
body.overview-page .stove-runtime { padding-left: 3px; letter-spacing: inherit; }
body.overview-page .stove-runtime .estimate-prefix { margin-right: 0; }
@media (max-width: 780px) {
    body { --hevi-unit-size: 11px; }
    .tile-detail-list > div { gap: 12px; padding: 8px 0; }
}

/* Schmale Hochformat-Handys: Feldnamen umbrechen, Zahlen auf derselben Höhe halten.
   Auch Rücklauf- und Außentemperaturtitel erhalten dieselbe zweizeilige Titelzone. */
@media (max-width: 380px) {
    body.overview-page .stove-runtime > span:first-child,
    body.overview-page .stove-field-label {
        white-space: normal;
        min-height: 2.4em;
    }
    body.overview-page .live-metric:nth-child(n + 3) .metric-title { min-height: 2.6em; }
}

/* Querformat: genügend Breite für Temperatur und Laufzeit reservieren.
   Kompaktere Innenabstände verhindern, dass Messkarten in die Gasbilanz hineinragen. */
@media (max-height: 620px) and (min-width: 560px) {
    body.overview-page #content {
        grid-template-columns: minmax(310px, 1fr) minmax(0, 1fr);
    }
    body.overview-page .live-grid {
        grid-template-columns: minmax(170px, 1.1fr) minmax(0, .9fr);
    }
    body.overview-page .live-metric { padding: 4px 9px; }
    body.overview-page .stove-runtime > span:first-child,
    body.overview-page .stove-field-label {
        white-space: normal;
        min-height: 1.2em;
    }
}

/* Sehr niedrige Fenster bieten physisch zu wenig Platz: lieber etwas Scrollen als
   verdeckte Werte, überlappende Karten oder eine unlesbar klein skalierte Oberfläche. */
@media (max-height: 350px) and (min-width: 560px) {
    body.overview-page .workspace {
        height: auto;
        min-height: calc(100dvh - var(--overview-header-height, 0px));
    }
    body.overview-page #content { flex: none; grid-template-rows: auto auto; }
    body.overview-page .system-card { min-height: 180px; }
}

/* Aktive Abkühlwarnung: die gesamte Ofenkachel trägt das Signal, keine blinkenden Symbole.
   Nur die Hintergrundfarbe pulsiert langsam; Schrift und Messwerte bleiben ruhig und lesbar. */
body.overview-page .live-metric.has-warning {
    border-color: #d6ac48;
    background: #fff3cf;
    animation: stove-card-attention 3s ease-in-out infinite;
}
@keyframes stove-card-attention {
    0%, 100% { background-color: #fff5d8; }
    50% { background-color: #ffecb5; }
}
[data-theme=dark] body.overview-page .live-metric.has-warning {
    border-color: #ab873b;
    background: #40351f;
    animation-name: stove-card-attention-dark;
}
@keyframes stove-card-attention-dark {
    0%, 100% { background-color: #39311f; }
    50% { background-color: #4a3d22; }
}
@media (prefers-reduced-motion: reduce) {
    body.overview-page .live-metric.has-warning { animation: none; }
}

/* Ladepumpe und Rücklaufunterstützung verwenden exakt dieselbe Statusdarstellung.
   Die zusätzliche metric-detail-Klasse der Pumpe darf keine abweichenden Maße mehr erzeugen. */
body.overview-page #metric-stove-info,
body.overview-page #heating-support {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 14px;
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 500;
}
body.overview-page #metric-stove-info::before,
body.overview-page #heating-support::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    margin: 0;
    border-radius: 50%;
    background: #93a6ac;
}
body.overview-page #metric-stove-info[data-state=active],
body.overview-page #heating-support[data-state=active] { color: #087768; }
body.overview-page #metric-stove-info[data-state=active]::before,
body.overview-page #heating-support[data-state=active]::before { background: #179c82; }
[data-theme=dark] body.overview-page #metric-stove-info[data-state=active],
[data-theme=dark] body.overview-page #heating-support[data-state=active] { color: #8edccc; }
body.overview-page #metric-stove-info[data-state=off],
body.overview-page #heating-support[data-state=off] { color: var(--muted); }
@media (max-width: 780px) {
    body.overview-page #metric-stove-info,
    body.overview-page #heating-support { font-size: 9px; }
}

/* In kurzen Querformat-Fenstern bleibt der Warntext im Titel sichtbar. Eine zusätzliche
   Textzeile unter der Pumpe würde hier unnötig Platz beanspruchen und Karten verdrängen. */
@media (max-height: 620px) and (min-width: 560px) {
    body.overview-page .live-metric.has-warning .warning-label { display: none; }
    body.overview-page .live-metric.has-warning .metric-title::after {
        content: "kühlt ab";
        margin-left: auto;
        font-size: 10px;
        font-weight: 600;
        color: #93600b;
    }
    [data-theme=dark] body.overview-page .live-metric.has-warning .metric-title::after {
        color: #efbf70;
    }
}

/* Rohwerte sind eine kompakte Messliste, keine Sammlung großer Detailkacheln. */
body .tile-dialog[data-inhalt="raw"] .tile-dialog-shell { padding:14px; }
body .tile-dialog[data-inhalt="raw"] .tile-detail-list { display:block; margin:0; }
body .tile-dialog[data-inhalt="raw"] .tile-detail-list > div { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; padding:6px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; }
body .tile-dialog[data-inhalt="raw"] .tile-detail-list dt { flex:1; line-height:1.25; }
body .tile-dialog[data-inhalt="raw"] .tile-detail-list dd { flex:0 1 auto; max-width:60%; overflow-wrap:anywhere; margin:0; font-size:1rem; line-height:1.25; text-align:right; }
