.tsr-shl{padding:clamp(24px,4vw,52px) 0;background:#f4f7fb;color:#152344;scroll-margin-top:80px}
.tsr-shl h2,.tsr-shl h3,.tsr-shl p{margin:0 0 .8rem}
.tsr-shl__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.tsr-shl__card{min-width:0;margin:0;padding:14px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;overflow-wrap:anywhere}
.tsr-shl__card h3{font-size:1rem}
.tsr-shl__card dl,.tsr-shl__card dd{margin:0}
.tsr-shl__metric{margin:.3rem 0}
.tsr-shl__metric dt,.tsr-shl__metric span{font-size:.86rem;color:#455475}
.tsr-shl__metric span{display:block}
.tsr-shl__notice{font-weight:600}
.tsr-shl__periods{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.tsr-shl__periods button{min-height:44px;padding:8px 12px;color:#172755;background:#fff;border:1px solid #b5c2d8;border-radius:7px}
.tsr-shl__periods button[aria-pressed=true]{background:#172755;color:#fff}
.tsr-shl__periods button:focus-visible{outline:2px solid #1760ba;outline-offset:2px}
.tsr-shl__plot{margin:0 0 10px}
.tsr-shl__plot svg{display:block;width:100%;height:auto;aspect-ratio:30/7;background:#f4f8fc}
.tsr-shl__plot p{margin:.5rem 0 0}
@media(max-width:720px){.tsr-shl__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tsr-shl__card{padding:10px}.tsr-shl__metric span{font-size:.79rem}}
.tsr-shl__protection{--shl-protection-ink:#455475}
.tsr-shl__protection[data-shl-protection=normal]{--shl-protection-ink:#146b3a}
.tsr-shl__protection[data-shl-protection=alarm]{--shl-protection-ink:#9e2926}
.tsr-shl__protection h3{margin:0 0 .35rem;font-size:.86rem;font-weight:600}
.tsr-shl__protection [data-shl-protection-summary]{margin:0 0 .35rem;color:var(--shl-protection-ink);font-size:1.15rem;font-weight:700}
.tsr-shl__protection ul{margin:0;padding:0;list-style:none;font-size:.85rem}
.tsr-shl__protection li+li{margin-top:.18rem}
.tsr-shl__topic-icon{display:block;width:20px;height:20px;margin:0 0 5px;color:var(--shl-topic-ink,#455475)}
.tsr-shl__card[data-shl-block=electricity]{--shl-topic-ink:#9c5700}
.tsr-shl__card[data-shl-block=gas]{--shl-topic-ink:#b84c12}
.tsr-shl__card[data-shl-block=water]{--shl-topic-ink:#08779b}
.tsr-shl__card[data-shl-block=temperature]{--shl-topic-ink:#a83424}
.tsr-shl__card[data-shl-block=heating]{--shl-topic-ink:#954915}
.tsr-shl__card[data-shl-block=airQuality]{--shl-topic-ink:#157063}
.tsr-shl__protection .tsr-shl__topic-icon{color:var(--shl-protection-ink)}

/* Monitoring cards and independent history panels. */
.tsr-shl[data-shl-ui="2"] .tsr-shl__grid{align-items:stretch;gap:12px}
.tsr-shl[data-shl-ui="2"] .tsr-shl__card h3{font-size:1rem;line-height:1.25;margin:0 0 .7rem}
.tsr-shl[data-shl-ui="2"] .tsr-shl__metric{margin:.5rem 0}
.tsr-shl[data-shl-ui="2"] .tsr-shl__metric dt{font-size:.8rem;line-height:1.3}
.tsr-shl[data-shl-ui="2"] .tsr-shl__metric dd{line-height:1.35;font-variant-numeric:tabular-nums}
.tsr-shl[data-shl-ui="2"] .tsr-shl__metric[data-shl-primary] dd{font-size:clamp(1.24rem,2.2vw,1.52rem)}
.tsr-shl[data-shl-ui="2"] .tsr-shl__metric[data-shl-status=unknown] dd{color:#53617a}
.tsr-shl[data-shl-ui="2"] .tsr-shl__metric[data-shl-status=error] dd{color:#9e2926}
.tsr-shl[data-shl-ui="2"] .tsr-shl__protection [data-shl-protection-summary]{font-size:clamp(1.24rem,2.2vw,1.52rem);border-inline-start:3px solid var(--shl-protection-ink);padding-inline-start:8px}
.tsr-shl__history{margin-top:24px}
.tsr-shl__history-intro,.tsr-shl__axis-caption{font-size:.85rem;color:#455475}
.tsr-shl__history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.tsr-shl__history-grid .tsr-shl__plot{margin:0;padding:12px 14px}
.tsr-shl__history-grid figcaption{font-weight:700;line-height:1.35}
.tsr-shl__history-grid .tsr-shl__plot [data-shl-summary]{font-size:.87rem;line-height:1.4;color:#455475}
.tsr-shl__history-grid [hidden]{display:none!important}
.tsr-shl__history-grid .tsr-shl__plot svg{aspect-ratio:360/104;margin-top:9px;border-radius:4px}
.tsr-shl__axis{display:flex;justify-content:space-between;gap:2px;margin:3px 9px;color:#455475;font-size:.75rem;font-variant-numeric:tabular-nums}
.tsr-shl__axis-caption{display:block;text-align:right;font-size:.72rem;margin-inline-end:8px}
.tsr-shl__history-details{margin-top:.6rem;font-size:.84rem}
.tsr-shl__history-details ol{max-height:15rem;overflow:auto;margin:.5rem 0 0;padding-inline-start:1.2rem}
.tsr-shl__history-details li{margin:.25rem 0}
.tsr-shl__history-details summary{cursor:pointer}
.tsr-shl__history-details summary:focus-visible{outline:2px solid #1760ba;outline-offset:2px}
.tsr-shl__history-legend{color:#455475;font-size:.83rem;margin-top:10px!important}
@media(max-width:900px){.tsr-shl[data-shl-ui="2"] .tsr-shl__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tsr-shl__history-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.tsr-shl[data-shl-ui="2"] .tsr-shl__grid{grid-template-columns:minmax(0,1fr)}.tsr-shl[data-shl-ui="2"]>.container{padding-inline-end:32px}}
.tsr-shl__axis{display:block;position:relative;height:1.25em}
.tsr-shl__axis span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.tsr-shl__axis span:first-child{transform:none}.tsr-shl__axis span:last-child{transform:translateX(-100%)}
.tsr-shl__card[data-shl-block=climate]{--shl-topic-ink:#126c91}
.tsr-shl__card[data-shl-block=curtains]{--shl-topic-ink:#71419c}

.tsr-shl__curtain{min-width:0}
.tsr-shl__curtain-reading{display:flex;align-items:center;gap:12px}
.tsr-shl__curtain-window{color:var(--shl-topic-ink,#71419c);flex:none}
.tsr-shl__curtain-reading strong{display:block;font-size:1.45rem;line-height:1.15}
.tsr-shl__curtain-reading span,.tsr-shl__curtain-scale{color:#455475;font-size:.8rem}
.tsr-shl__curtain-scale{display:flex;justify-content:space-between;margin:8px 0 4px}
.tsr-shl__curtain-track{height:6px;border-radius:6px;background:#e8edf5;overflow:hidden}
.tsr-shl__curtain-track span{display:block;width:0;height:100%;background:var(--shl-topic-ink,#71419c);border-radius:inherit}
@media(prefers-reduced-motion:no-preference){.tsr-shl__curtain-track span{transition:width .2s ease-out}}

.tsr-shl[data-shl-visual-cards="2"] :is(.tsr-shl__curtain-head,.tsr-shl__protection-head){display:flex;align-items:center;gap:7px;margin:0 0 9px}
.tsr-shl[data-shl-visual-cards="2"] :is(.tsr-shl__curtain-head,.tsr-shl__protection-head) .tsr-shl__topic-icon{margin:0;flex:none}
.tsr-shl[data-shl-visual-cards="2"] :is(.tsr-shl__curtain-head,.tsr-shl__protection-head) h3{margin:0;font-size:clamp(1.03rem,1.3vw,1.18rem)}
.tsr-shl[data-shl-visual-cards="2"] .tsr-shl__protection [data-shl-protection-summary]{border:0;border-radius:999px;margin:0 0 0 auto;padding:.2em .6em;font-size:.84rem;line-height:1.25;text-align:center;background:#edf1f8}
.tsr-shl[data-shl-visual-cards="2"] [data-shl-protection=normal] [data-shl-protection-summary]{background:#e6f4eb}
.tsr-shl[data-shl-visual-cards="2"] [data-shl-protection=alarm] [data-shl-protection-summary]{background:#fbe9e8}
.tsr-shl__protection-rows>div{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;padding:.35rem 0;border-block-start:1px solid #e4eaf2;font-size:clamp(.98rem,1.2vw,1.08rem);line-height:1.3}
.tsr-shl__protection-rows dt,.tsr-shl__protection-note{color:#455475}
.tsr-shl__protection-rows dd{font-weight:650;text-align:right}
.tsr-shl[data-shl-visual-cards="2"] .tsr-shl__protection-note{margin:.2rem 0 0;font-size:.78rem;line-height:1.3}
.tsr-shl__curtain-reading{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tsr-shl__curtain-window{display:block;width:100%;max-width:170px;height:auto}
.tsr-shl__curtain-value{text-align:center}
.tsr-shl__curtain-reading strong{font-size:clamp(1.65rem,2.25vw,2rem);font-variant-numeric:tabular-nums}
.tsr-shl__curtain-scale{margin:4px 0 3px}
.tsr-shl__curtain-track{height:8px}
@media(max-width:520px){
  .tsr-shl[data-shl-visual-cards="2"] .tsr-shl__protection-panel{min-block-size:140px}
  .tsr-shl[data-shl-visual-cards="2"] .tsr-shl__curtain{min-block-size:120px}
  .tsr-shl[data-shl-visual-cards="2"] .tsr-shl__curtain-window{max-width:148px;max-height:83px}
  .tsr-shl[data-shl-visual-cards="2"] .tsr-shl__curtain-head{margin-bottom:7px}
}
