/* Universal charger status tile, content-driven height and established DCW palette. */
.dashboard-tile.dashboard-template-charger-card{
    box-sizing:border-box;
    width:100%;height:auto;min-height:220px;
    display:flex;flex-direction:column;gap:14px;
    padding:18px 20px 16px;
    color:var(--card-text-color,#eef3fb);
    border:1px solid #415775;border-radius:18px;
    background:var(--card-background,linear-gradient(150deg,#182639 0%,#101c2d 58%,#0b1726 100%));
    box-shadow:inset 0 1px 0 rgba(188,211,244,.06),0 9px 24px rgba(0,0,0,.16);
    overflow:hidden;container:charger-card / inline-size;
}
.dashboard-template-charger-card .dashboard-template-charger-top{
    display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;
}
.dashboard-template-charger-card .dashboard-template-charger-heading{
    margin:0;min-width:0;font-size:21px;font-weight:750;line-height:1.2;
    color:#f6f9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.dashboard-template-charger-card .dashboard-template-charger-status{
    flex:0 1 auto;max-width:55%;min-width:0;
    padding:7px 11px;border-radius:999px;
    border:1px solid rgba(143,174,214,.34);background:rgba(34,50,71,.7);
    font-size:12px;font-weight:650;color:var(--card-text-color,#dfe9f7);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.dashboard-template-charger-card[data-charger-state="active"] .dashboard-template-charger-status{
    background:rgba(35,82,57,.55);border-color:rgba(96,170,115,.55);color:var(--card-text-color,#eaf7ec);
}
.dashboard-template-charger-card[data-charger-state="paused"] .dashboard-template-charger-status{
    background:rgba(77,90,33,.45);border-color:rgba(176,189,97,.42);color:var(--card-text-color,#f2f7d6);
}
.dashboard-template-charger-card .dashboard-template-charger-body{
    flex:1;display:flex;flex-direction:column;gap:15px;min-width:0;
}
.dashboard-template-charger-card .dashboard-template-charger-battery{
    display:flex;flex-direction:column;gap:8px;min-width:0;
}
.dashboard-template-charger-card .dashboard-template-charger-battery-reading{
    display:flex;align-items:baseline;gap:14px;
}
.dashboard-template-charger-card .dashboard-template-charger-battery-reading strong{
    color:var(--card-text-color,#fff);font-size:46px;line-height:1;font-weight:750;letter-spacing:-.03em;
    white-space:nowrap;font-variant-numeric:tabular-nums;
}
.dashboard-template-charger-card .dashboard-template-charger-battery-reading span{
    color:var(--card-text-color,#b9cae4);font-size:14px;
}
.dashboard-template-charger-card .dashboard-template-charger-progress{
    width:100%;height:9px;flex:none;overflow:hidden;
    border-radius:999px;background:rgba(255,255,255,.12);
}
.dashboard-template-charger-card .dashboard-template-charger-progress>span{
    display:block;height:100%;border-radius:inherit;
    background:linear-gradient(90deg,#76b4ff,#4f83d6);
}
.dashboard-template-charger-card .dashboard-template-charger-details{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
    min-width:0;
}
.dashboard-template-charger-card .dashboard-template-charger-chip{
    display:flex;flex-direction:column;align-items:flex-start;gap:7px;
    min-width:0;padding:10px 12px;border-radius:11px;
    background:rgba(20,31,47,.62);border:1px solid rgba(65,87,117,.85);
}
.dashboard-template-charger-card .dashboard-template-charger-chip span{
    color:var(--card-text-color,#a9bdd7);font-size:11px;line-height:1.2;
}
.dashboard-template-charger-card .dashboard-template-charger-chip strong{
    color:var(--card-text-color,#f8fbff);font-size:17px;font-weight:730;line-height:1.2;
    min-width:0;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* Preview is the same renderer, with smaller typography only. */
.dashboard-compact-catalog .dashboard-compact-catalog-preview.dashboard-template-charger-card{
    width:100%;min-height:0;height:auto;padding:12px;gap:9px;pointer-events:none;
}
.dashboard-compact-catalog .dashboard-template-charger-card .dashboard-template-charger-heading{font-size:16px}
.dashboard-compact-catalog .dashboard-template-charger-card .dashboard-template-charger-status{font-size:10px;padding:5px 8px}
.dashboard-compact-catalog .dashboard-template-charger-card .dashboard-template-charger-body{gap:10px}
.dashboard-compact-catalog .dashboard-template-charger-card .dashboard-template-charger-battery-reading strong{font-size:33px}
.dashboard-compact-catalog .dashboard-template-charger-card .dashboard-template-charger-chip{padding:7px 9px}
.dashboard-compact-catalog .dashboard-template-charger-card .dashboard-template-charger-chip strong{font-size:14px}
@container charger-card (max-width:450px){
    .dashboard-template-charger-card:not([data-card-scalable]) .dashboard-template-charger-top{align-items:flex-start;flex-direction:column}
    .dashboard-template-charger-card:not([data-card-scalable]) .dashboard-template-charger-status{max-width:100%}
    .dashboard-template-charger-card:not([data-card-scalable]) .dashboard-template-charger-details{grid-template-columns:1fr}
    .dashboard-template-charger-card:not([data-card-scalable]) .dashboard-template-charger-chip{flex-direction:row;justify-content:space-between}
}

/* Reuse existing compact dialog controls; scope only this template's field layout. */
.dashboard-compact-template-inputs label{display:flex;flex-direction:column;gap:6px}
/* Text fields use the same existing compact-dialog control dimensions and palette as selects. */
.dashboard-compact-template-inputs input[type="text"]{
    width:100%;min-width:0;min-height:42px;padding:9px 12px;
    background:#26384d;color:#e8f0fb;border:1px solid #405773;border-radius:9px;
    font:inherit;font-size:14px;
}
.dashboard-compact-template-inputs input[type="text"]:focus-visible{
    outline:2px solid #04b8e4;outline-offset:2px;
}

.dashboard-template-charger-card .dashboard-template-charger-heading-group{
    display:flex;flex-direction:column;min-width:0;gap:3px;
}
.dashboard-template-charger-card .dashboard-template-charger-subtitle{
    color:var(--card-text-color,#b9cae4);font-size:12px;line-height:1.3;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* Native spacing for the shared content container; the central component owns zoom. */
.dashboard-template-charger-card {
    --card-content-padding:18px 20px 16px;
    --card-content-gap:14px;
    --card-content-justify:flex-start;
    --card-title-default:#f6f9ff;
}
