/* Generischer Renderer „switch-button“, als Kachelvorlage konfiguriert.
   Farben, Typografie und Maße orientieren sich an der gelieferten Referenz. */
.dashboard-tile.dashboard-template-switch-button{
    background:#1f1f20;border:1px solid #39393b;border-radius:12px;
    box-shadow:none;padding:7px 14px 8px;gap:6px;color:#f7f7f9;
    width:100%;min-width:0;max-width:100%;
    height:80px;min-height:80px;max-height:80px;
}
/* Fill the entire five-column GridStack footprint, without a fixed pixel width.
   Only the card height stays fixed; unused row space is handled by GridStack. */
.dashboard-grid.kiosk-gridstack .grid-stack-item[data-kiosk-pixel-height]
    .grid-stack-item-content > .dashboard-tile.dashboard-template-switch-button{
    width:100%;min-width:0;max-width:100%;
    height:80px;min-height:80px;max-height:80px;
    flex:0 0 80px;align-self:stretch;
}
.dashboard-template-switch-button .dashboard-template-head{display:flex;align-items:center;gap:9px;min-width:0;min-height:21px}
.dashboard-template-switch-button .dashboard-template-icon{flex:none;display:grid;place-items:center;width:25px;height:24px;color:#f7f7f9}
.dashboard-template-icon[data-dashboard-icon-size] > svg{width:100%;height:100%}
.dashboard-template-switch-button .dashboard-template-title{font-size:14px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;line-height:1.2;color:var(--card-text-color,inherit)}
.dashboard-template-switch-button .dashboard-template-power{font-size:14px;font-weight:750;white-space:nowrap;line-height:1.2;flex:none;min-width:0;max-width:48%;margin-left:8px;overflow:hidden;text-overflow:ellipsis;color:var(--card-text-color,inherit)}
.dashboard-template-switch-button .dashboard-template-toggle{display:block;position:relative;width:100%;min-height:30px;cursor:pointer}
.dashboard-template-switch-button .dashboard-template-toggle input{position:absolute;width:1px;height:1px;opacity:0;left:50%;top:50%}
.dashboard-template-switch-button .dashboard-template-toggle span{display:flex;align-items:center;justify-content:center;width:100%;min-height:30px;border-radius:12px;background:var(--card-switch-off,#3e3c3d);color:var(--card-text-color,#fff);font-size:13px;font-weight:750;transition:background-color .12s}
.dashboard-template-switch-button .dashboard-template-toggle input:checked+span,.dashboard-template-switch-button .dashboard-template-toggle span[data-preview-on="true"]{background:var(--card-switch-on,#514bd3)}
.dashboard-template-switch-button .dashboard-template-toggle input:focus-visible+span{outline:2px solid #9a9cff;outline-offset:2px}
.dashboard-template-switch-button .dashboard-template-toggle input:disabled+span{cursor:default;opacity:.7}
.dashboard-template-switch-button .dashboard-template-toggle input:disabled{cursor:default}
/* Fixed geometry and native icon dimensions. The shared content host handles zoom. */
.dashboard-tile.dashboard-template-switch-button[data-card-scalable],
.dashboard-grid.kiosk-gridstack .grid-stack-item[data-kiosk-pixel-height]
    .grid-stack-item-content > .dashboard-tile.dashboard-template-switch-button[data-card-scalable] {
    height:var(--card-height,80px);min-height:var(--card-height,80px);max-height:var(--card-height,80px);
    flex:0 0 var(--card-height,80px);
    padding:7px 14px 8px;
    gap:6px;border-radius:12px;
}
.dashboard-template-switch-button[data-card-scalable] .dashboard-template-icon {
    width:var(--card-icon-size,25px) !important;
    height:var(--card-icon-size,24px) !important;
}
.dashboard-template-switch-button[data-card-scalable] .dashboard-template-icon:not([data-dashboard-icon-size]) > svg {
    width:24px;height:24px;
}
/* Switch cards retain their fixed footprint when availability changes.
   The existing disabled-toggle styling and tooltip still convey that switching
   is unavailable; status text must not create an extra row. */
.dashboard-template-switch-button .dashboard-template-status{display:none!important}
/* Also cover legacy switch tiles with the shared toggle control. */
.dashboard-tile:has([data-dashboard-toggle]) > .dashboard-tile-top > .dashboard-tile-status{display:none!important}
.dashboard-template-switch-button .dashboard-error{margin-top:2px}
/* Die feste Vorlage soll ihre Darstellung bei einer Erweiterung nicht verlieren. */




/* Der Vorlagendialog nutzt die bestehende Fenstergröße, aber keine alten
   Navigationseinträge der früheren Kachelverwaltung. */


/* Beim Verschieben bleibt die Vorlage optisch unverändert; Schalten ist gesperrt. */
.dashboard-grid.editing .dashboard-template-switch-button .dashboard-template-toggle input:disabled+span{opacity:1}


/* Kompakte Überschrift ohne Gerätebezug. */
.dashboard-tile.dashboard-template-heading-label{
    background:var(--card-background,transparent);border:0;box-shadow:none;padding:1px 4px;min-height:26px;gap:0;color:#f7f7f9;
    justify-content:center;cursor:inherit;outline-offset:2px
}
/* One 31px GridStack row provides 27px of usable space at 2px margins.
   Keep the heading at its native 26px; fit its hover pencil into that row. */
.dashboard-grid.kiosk-gridstack .grid-stack-item-content > .dashboard-template-heading-label + .dashboard-gridstack-drag-surface .dashboard-gridstack-edit{
    width:24px;height:24px;
}
.dashboard-grid.kiosk-gridstack .grid-stack-item-content > .dashboard-template-heading-label + .dashboard-gridstack-drag-surface .dashboard-gridstack-edit svg{
    width:16px;height:16px;
}
.dashboard-template-heading-label .dashboard-heading-row{display:flex;align-items:center;gap:8px;min-width:0}
.dashboard-template-heading-label .dashboard-heading-icon{flex:none;display:grid;place-items:center;width:16px;height:16px;color:#12d441}
.dashboard-template-heading-label {--card-content-padding:1px 4px;--card-content-justify:center;--card-title-default:#f3f5fb;}
.dashboard-template-heading-label .dashboard-heading-icon:has([data-dashboard-icon-size]){width:auto;height:auto;}
.dashboard-template-heading-label .dashboard-heading-icon .dashboard-template-icon{display:grid;place-items:center;}
.dashboard-template-heading-label .dashboard-heading-title{margin:0;font-size:15px;font-weight:750;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f3f5fb}
.dashboard-grid.editing:not(.kiosk-gridstack) .dashboard-template-heading-label{outline:1px dashed #496283}
.dashboard-grid.editing:not(.kiosk-gridstack) .dashboard-template-heading-label:hover{background:#1b293b}
.dashboard-compact-catalog .dashboard-compact-catalog-preview.dashboard-template-heading-label{
    display:flex;align-items:center;min-height:65px;padding:10px 12px;
    border:1px solid #415775;border-radius:10px;background:#182639;color:#f3f5fb
}



/* Editoroptionen werden deklarativ durch die jeweilige Vorlage aktiviert.
   Das vorhandene Dialog-Raster bleibt für andere Kartentypen unverändert. */


/* Declarative live-video tile. Scoped to the video template only; the grouped
   layout, drag/drop mechanics and all other tile sizes stay unchanged. */
.dashboard-tile.dashboard-template-video-stream{
    height:300px;min-height:300px;padding:0;overflow:hidden;justify-content:center;
    background:var(--card-background,#101722);border:1px solid #2b3a50;cursor:default;
}
.dashboard-template-video-stream video{
    display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;
    background:var(--card-background,#0a1018);
}
.dashboard-tile.dashboard-template-video-stream[data-card-scalable],
.dashboard-grid.grouped .dashboard-grid-group > .dashboard-tile.dashboard-template-video-stream[data-card-scalable],
.dashboard-grid.kiosk-gridstack .grid-stack-item[data-kiosk-pixel-height] .grid-stack-item-content > .dashboard-tile.dashboard-template-video-stream[data-card-scalable] {
    box-sizing:border-box;height:var(--card-height,300px);min-height:var(--card-height,300px);max-height:var(--card-height,300px);
    flex:none;
}
.dashboard-template-video-stream[data-card-scalable] .dashboard-compact-video-preview-content {
    background:var(--card-background,#0a1018);font-size:13px;gap:10px;
}
.dashboard-template-video-stream[data-card-scalable] .dashboard-compact-video-preview-content svg {
    width:34px;height:34px;
}
.dashboard-grid.editing .dashboard-template-video-stream{cursor:grab}

/* Video only needs a source selection; sizing and presentation are declared
   on its template, never as module-specific rules in the dashboard core. */


/* Thermostatvorlage: die Hoehe entspricht der Referenzkachel (7,5 cm).
   Ausschliesslich die Vorlage erhaelt dieses Mass; das Dashboard-Raster
   und alle anderen Kacheltypen bleiben unveraendert. */
.dashboard-tile.dashboard-template-climate-overview{
    position:relative;min-height:7.5cm;padding:17px 18px 18px;gap:14px;
    color:#e9edf5;background:#151d2b;
    border:1px solid #2b3a50;border-radius:12px;box-shadow:none;
}
/* Im gruppierten Raster hat die generische Zwei-Zeilen-Regel eine hoehere
   Spezifitaet. Sie wird nur fuer diese Vorlage gezielt uebersteuert. */
.dashboard-grid.grouped .dashboard-grid-group > .dashboard-template-climate-overview{
    min-height:7.5cm;
}
.dashboard-template-climate-overview .dashboard-climate-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.dashboard-template-climate-overview .dashboard-climate-name{display:flex;align-items:center;gap:9px;min-width:0;padding-top:3px}
.dashboard-template-climate-overview .dashboard-climate-icon{color:#ff9239;font-size:20px;line-height:1}
.dashboard-template-climate-overview .dashboard-climate-name h3{font-size:16px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-template-climate-overview .dashboard-climate-target{text-align:right;display:flex;flex-direction:column;flex:none;max-width:38%;gap:2px}
.dashboard-template-climate-overview .dashboard-climate-target>span,.dashboard-template-climate-overview .dashboard-climate-current>span,.dashboard-template-climate-overview .dashboard-climate-footer>div>span{font-size:12px;font-weight:500;color:#96a9c3}
.dashboard-template-climate-overview .dashboard-climate-target strong{font-size:23px;line-height:1.1;white-space:nowrap}
.dashboard-template-climate-overview .dashboard-climate-current{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;min-width:0;margin:auto 0}
.dashboard-template-climate-overview .dashboard-climate-current strong{font-size:43px;letter-spacing:-1px;line-height:1.15;white-space:nowrap}
.dashboard-template-climate-overview .dashboard-climate-footer{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;align-items:end}
.dashboard-template-climate-overview .dashboard-climate-footer>div{display:flex;flex-direction:column;align-items:center;min-width:0;gap:5px}
.dashboard-template-climate-overview .dashboard-climate-footer>div:first-child{align-items:flex-start}
.dashboard-template-climate-overview .dashboard-climate-footer>div:first-child>span,.dashboard-template-climate-overview .dashboard-climate-footer>div:first-child strong{text-align:left}
.dashboard-template-climate-overview .dashboard-climate-footer>div:last-child{align-items:flex-end}
.dashboard-template-climate-overview .dashboard-climate-footer>div:last-child>span,.dashboard-template-climate-overview .dashboard-climate-footer>div:last-child strong{text-align:right}
.dashboard-template-climate-overview .dashboard-climate-footer>div>span{overflow-wrap:anywhere;text-align:center}
.dashboard-template-climate-overview .dashboard-climate-footer strong{font-size:13px;overflow-wrap:anywhere;text-align:center;line-height:1.3}
.dashboard-template-climate-overview .dashboard-climate-switch .control-switch{min-height:24px;display:flex;justify-content:center;align-items:center}
.dashboard-template-climate-overview .dashboard-climate-availability{position:absolute;left:14px;top:42px;color:#ffd29e}
.dashboard-template-climate-overview .dashboard-climate-availability[hidden]{display:none}
.dashboard-template-fields{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dashboard-template-fields[hidden]{display:none}
.dashboard-template-fields label{display:flex;flex-direction:column;gap:7px;color:#a9bdd7;font-weight:700;font-size:11px}

.dashboard-grid.editing .dashboard-template-climate-overview:hover{background:#151d2b}
@media(max-width:650px){.dashboard-template-fields{grid-template-columns:1fr}}

/* MET.no-Wetterkarte: drei ruhige Zonen, keine inneren Kartenflächen. */
.dashboard-grid.grouped .dashboard-grid-group > .dashboard-tile.dashboard-template-weather-forecast,
.dashboard-grid.kiosk-gridstack .grid-stack-item-content > .dashboard-tile.dashboard-template-weather-forecast,
.app-icon-picker-preview > .dashboard-tile.dashboard-template-weather-forecast,
.app-card-size-preview > .dashboard-tile.dashboard-template-weather-forecast{
    box-sizing:border-box;min-height:300px;height:300px;padding:0;gap:0;overflow:hidden;
    background:var(--card-background,linear-gradient(150deg,#182639 0%,#101c2d 58%,#0b1726 100%));
    color:var(--card-text-color,#eef3fb);border:1px solid #415775;border-radius:16px;
    box-shadow:inset 0 1px 0 rgba(188,211,244,.08),0 9px 24px rgba(0,0,0,.16);
    justify-content:initial;
}
/* Shared size editor supplies exact geometry; no second scaling mechanism. */
.dashboard-grid.grouped .dashboard-grid-group > .dashboard-tile.dashboard-template-weather-forecast[data-card-scalable],
.dashboard-grid.kiosk-gridstack .grid-stack-item-content > .dashboard-tile.dashboard-template-weather-forecast[data-card-scalable],
.app-card-size-preview > .dashboard-tile.dashboard-template-weather-forecast[data-card-scalable] {
    box-sizing:border-box;width:100%;min-width:0;max-width:100%;
    height:var(--card-height,300px);min-height:var(--card-height,300px);max-height:var(--card-height,300px);
    flex:0 0 var(--card-height,300px);
}
.dashboard-template-weather-forecast [data-dashboard-template-body]{height:100%;min-width:0;min-height:0}
.dashboard-template-weather-forecast .dashboard-weather-shell{
    box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
    height:100%;min-height:0;min-width:0;container:weather-card / inline-size
}
.dashboard-template-weather-forecast .dashboard-weather-header{
    box-sizing:border-box;display:flex;align-items:center;gap:12px;min-width:0;
    padding:10px 17px;border-bottom:1px solid var(--card-accent-color,#4bbdd4)
}
.dashboard-template-weather-forecast .dashboard-weather-header-icon{
    display:grid;place-items:center;flex:none;width:43px;height:43px;color:var(--card-accent-color,#4ddff0)
}
.dashboard-template-weather-forecast .dashboard-weather-header-icon svg{max-width:100%;max-height:100%}
.dashboard-template-weather-forecast .dashboard-weather-header-divider,
.dashboard-template-weather-forecast .dashboard-weather-main-divider{
    display:block;flex:none;align-self:stretch;width:1px;background:var(--card-accent-color,#4bc6df)
}
.dashboard-template-weather-forecast .dashboard-weather-header-text{
    display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0
}
.dashboard-template-weather-forecast .dashboard-weather-header-text h3{
    margin:0;--card-title-fallback:#f4f7ff;font-weight:750;font-size:max(10px,clamp(18px,2.7cqi,25px));line-height:1.1
}
.dashboard-template-weather-forecast .dashboard-weather-location{
    color:var(--card-text-color,#8fcae8);font-size:max(10px,clamp(12px,1.8cqi,16px));line-height:1.15;
    overflow:hidden;white-space:nowrap;text-overflow:ellipsis
}
.dashboard-template-weather-forecast .dashboard-weather-stale{
    margin-left:auto;min-width:0;color:#e0bd7a;font-size:max(10px,clamp(10px,1.5cqi,12px));text-align:right
}
.dashboard-template-weather-forecast .dashboard-weather-main{
    display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);align-items:center;
    gap:14px;min-width:0;min-height:0;padding:12px 18px;border-bottom:1px solid var(--card-accent-color,#4bbdd4)
}
.dashboard-template-weather-forecast .dashboard-weather-main-primary{
    display:flex;align-items:center;gap:14px;min-width:0;min-height:0
}
.dashboard-template-weather-forecast .dashboard-weather-main-icon{
    flex:none;display:grid;place-items:center;width:78px;height:83px
}
.dashboard-template-weather-forecast .dashboard-weather-main-icon svg{max-width:100%;max-height:100%}
.dashboard-template-weather-forecast .dashboard-weather-main-reading{
    display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0
}
.dashboard-template-weather-forecast .dashboard-weather-description{
    color:var(--card-text-color,#f1f5fd);font-size:max(10px,clamp(15px,2.1cqi,23px));font-weight:650;line-height:1.1;
    overflow-wrap:anywhere
}
.dashboard-template-weather-forecast .dashboard-weather-temp{
    color:var(--card-text-color,#f8faff);font-size:max(14px,clamp(30px,4.8cqi,49px));font-weight:780;
    line-height:1.05;white-space:nowrap
}
.dashboard-template-weather-forecast .dashboard-weather-main-stats{
    display:flex;flex-direction:column;justify-content:center;gap:13px;min-width:0;min-height:0;
    padding-left:15px;border-left:1px solid var(--card-accent-color,#4bc6df)
}
.dashboard-template-weather-forecast .dashboard-weather-stat{
    display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:9px;
    align-items:center;min-width:0;color:var(--card-text-color,#f1f5fd)
}
.dashboard-template-weather-forecast .dashboard-weather-stat svg{
    color:var(--card-accent-color,#4bd6e9);width:23px;height:26px
}
.dashboard-template-weather-forecast .dashboard-weather-stat span{
    font-size:max(10px,clamp(11px,1.65cqi,16px));line-height:1.15;overflow-wrap:anywhere
}
.dashboard-template-weather-forecast .dashboard-weather-stat strong{
    font-size:max(10px,clamp(16px,2.55cqi,25px));font-weight:760;line-height:1.1;white-space:nowrap
}
.dashboard-template-weather-forecast .dashboard-weather-hourly{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;
    gap:0;min-height:0;padding:10px 12px 12px;margin:0;
    border:none;border-radius:0;background:transparent
}
.dashboard-template-weather-forecast .dashboard-weather-hour{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:4px;min-width:0;min-height:0;padding:2px 4px;
    border-right:1px solid var(--card-accent-color,#49637e)
}
.dashboard-template-weather-forecast .dashboard-weather-hour:last-child{border-right:none}
.dashboard-template-weather-forecast .dashboard-weather-time{
    color:var(--card-text-color,#f0f5fc);font-size:max(10px,clamp(11px,1.8cqi,16px));line-height:1.1;font-weight:750;white-space:nowrap
}
.dashboard-template-weather-forecast .dashboard-weather-hour-icon{
    height:37px;display:grid;place-items:center
}
.dashboard-template-weather-forecast .dashboard-weather-hour-icon svg{max-width:37px;max-height:37px}
.dashboard-template-weather-forecast .dashboard-weather-hour strong{
    color:var(--card-text-color,#f0f5fc);font-size:max(10px,clamp(12px,2cqi,18px));line-height:1.15;font-weight:760;white-space:nowrap
}
.dashboard-template-weather-forecast .dashboard-weather-placeholder{
    grid-column:1/-1;text-align:center;color:var(--card-text-color,#b6c7db);font-size:max(10px,12px);padding:18px 4px
}

.dashboard-grid.editing .dashboard-template-weather-forecast:hover{
    background:var(--card-background,linear-gradient(150deg,#182639 0%,#101c2d 58%,#0b1726 100%))
}
@container weather-card (max-width:650px){
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main{gap:9px;padding:10px 12px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main-primary{gap:8px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main-icon{width:56px;height:62px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main-stats{padding-left:9px;gap:11px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-stat{grid-template-columns:17px minmax(0,1fr) auto;gap:5px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-stat svg{width:17px;height:21px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-hourly{padding:8px 8px 10px}
}
@container weather-card (max-width:425px){
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-header{gap:8px;padding:8px 10px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-header-icon{width:35px;height:35px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:8px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main-primary{gap:6px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main-icon{width:39px;height:45px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-description{font-size:max(10px,13px)}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-temp{font-size:max(14px,clamp(24px,7cqi,30px))}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-main-stats{gap:8px;padding-left:7px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-stat{grid-template-columns:15px minmax(0,1fr);gap:3px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-stat svg{width:15px;height:18px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-stat span{font-size:max(10px,11px)}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-stat strong{grid-column:2;font-size:max(10px,16px)}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-hourly{padding:8px 4px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-hour-icon{height:31px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-hour-icon svg{width:32px;height:31px}
    .dashboard-template-weather-forecast:not([data-card-scalable]) .dashboard-weather-hour strong{font-size:max(10px,clamp(10px,2.8cqi,12px))}
}

/* Noninteractive weather catalog miniature: original renderer, fixed scaled footprint. */
.dashboard-compact-catalog .weather-catalog-preview-frame {
    box-sizing:border-box;position:relative;width:min(100%,304px);height:120px;
    flex:none;overflow:hidden;pointer-events:none
}
.dashboard-compact-catalog .weather-catalog-preview-frame > .dashboard-template-weather-forecast {
    box-sizing:border-box;display:block;position:absolute;top:0;left:0;
    width:760px;height:300px;min-width:760px;min-height:300px;
    max-width:none;max-height:none;padding:0;overflow:hidden;gap:0;
    color:var(--card-text-color,#f0f4fb);border:1px solid #415775;border-radius:16px;
    background:var(--card-background,linear-gradient(150deg,#182639 0%,#101c2d 58%,#0b1726 100%));
    transform:scale(.4);transform-origin:top left
}

/* Neutraler Editor für deklarativ wiederholbare Text-/Sensor-Feldpaare. */
.dashboard-repeatable{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;min-width:0}
.dashboard-repeatable[hidden]{display:none}
.dashboard-repeatable-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dashboard-repeatable-header strong{color:#a9bdd7;font-size:12px}
.dashboard-repeatable-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;gap:9px;align-items:end;
    background:#182338;border:1px solid #354960;border-radius:9px;padding:12px;min-width:0}
.dashboard-repeatable-row-extra{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1.3fr) auto}
.dashboard-repeatable-row label{display:flex;flex-direction:column;gap:7px;color:#a9bdd7;font-weight:700;font-size:11px;min-width:0}
.dashboard-repeatable-row input,.dashboard-repeatable-row select{min-width:0;width:100%}
.dashboard-repeatable button{background:#21334c;color:#c8defc;border:1px solid #416183;border-radius:7px;
    padding:8px 11px;font:inherit;font-size:12px;cursor:pointer}
.dashboard-repeatable button:disabled{opacity:.42;cursor:not-allowed}
.dashboard-repeatable button:not(:disabled):hover{background:#2c476b}
@media(max-width:700px){.dashboard-repeatable-row{grid-template-columns:minmax(0,1fr) auto}
    .dashboard-repeatable-row label:nth-child(2){grid-column:1/-1;grid-row:2}}

@media(max-width:700px){
    .dashboard-repeatable-row-extra{grid-template-columns:minmax(0,1fr) auto}
    .dashboard-repeatable-row-extra label:nth-child(3){grid-column:1/-1;grid-row:3}
}

/* Native content layout declarations, not scaling rules. */
.dashboard-template-switch-button {--card-content-padding:7px 14px 8px;--card-content-gap:6px;}
.dashboard-template-video-stream {--card-content-padding:0;--card-content-justify:center;}
.dashboard-template-weather-forecast {--card-content-padding:0;--card-content-justify:flex-start;}
.dashboard-template-weather-forecast[data-card-content-host] .dashboard-weather-shell {grid-template-rows:auto minmax(min-content,1fr) auto;}
