/* Approved firefly home composition, November 2026. */
#home-view .home-panel{padding:0;border:0;border-radius:0;background:transparent;margin:0 0 12px;box-shadow:none}
#home-view .status-card{display:flex;align-items:center;gap:12px;min-height:88px;padding:18px 16px;border:0;border-radius:20px;background:var(--surface);margin:0}
#home-view .status-card.on{background:#247b39}
#home-view .status-card.off{background:#9d303c}
#home-view .status-card>div{display:block;flex:1;min-width:0}
#home-view .status-card h2{font-size:clamp(22px,6.6vw,30px);line-height:1.15;white-space:normal;color:#fff;letter-spacing:0}
#home-view .status-card p{max-width:none;margin:4px 0 0;text-align:left;font-size:14px;line-height:20px;font-weight:400;color:#e0ede3;overflow-wrap:anywhere}
#home-view .status-card.off p{color:#ffe2e5}
#home-view .status-card.unknown p{color:var(--muted)}
#home-view .status-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#aff1ae;color:#145c2c}
#home-view .status-mark .icon{width:28px;height:28px}
#home-view .status-card.off .status-mark{background:#ffd0d4;color:#8b1f30}
#home-view .status-card.unknown .status-mark{background:var(--raised);color:var(--muted)}
#home-view .status-icon{display:grid;place-items:center;width:48px;height:52px;flex:0 0 48px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#home-view .status-icon::before{display:none}
#home-view .status-icon .icon{display:block;width:48px;height:48px;color:var(--muted)}
#home-view .status-card.on .status-icon .icon{color:#082f17}
#home-view .status-card.off .status-icon .icon{color:#ffd0d4}
#home-view .next-card{padding:0 12px;margin:12px 0 20px;border:0;background:transparent;text-align:left;min-height:0}
#home-view .next-card h2{font-size:15px;line-height:22px;color:var(--muted);font-weight:400}
#home-view .next-card strong{font-size:clamp(25px,7.3vw,32px);line-height:1.2;margin-top:8px;color:var(--text);font-weight:700;letter-spacing:0}
#home-view .next-card p{font-size:14px;line-height:20px;margin-top:4px;color:var(--muted);font-weight:400}
#home-view .timeline-card{padding:0 12px;border:0;background:transparent}
#home-view .timeline{height:20px;border-radius:8px;margin:0}
#home-view .timeline-hours{font-size:13px;line-height:20px;margin:8px 0 0}
#home-view .legend{display:none}
#home-view #schedule-cta{min-height:48px;margin:16px 4px 0;width:calc(100% - 8px);border-radius:14px;gap:16px}
#home-view #schedule-cta>.icon.material-icon{font-size:26px;line-height:1}
#home-view .day-summary{padding:14px 18px 12px;margin:0 0 12px;background:var(--surface);border:0;border-radius:20px;box-shadow:none}
.summary-address{display:flex;align-items:center;gap:10px;width:100%;min-height:32px;margin:0 0 4px;padding:0;background:transparent;text-align:left;font-size:14px;line-height:20px;color:var(--text);font-weight:700}
.summary-address>span{min-width:0;overflow-wrap:anywhere}
.summary-address .icon{width:22px;height:22px;flex:0 0 22px}
.summary-address .summary-chevron{width:18px;height:18px;flex-basis:18px;margin-left:auto;color:var(--muted)}
.summary-address:focus,.summary-address:focus-visible{outline:none;box-shadow:none;background:transparent}
.day-summary h2{font-size:clamp(20px,5.7vw,25px);line-height:1.25;font-weight:700;letter-spacing:0;margin:0 0 14px}
.summary-bar{display:flex;height:12px;width:100%;overflow:hidden;border-radius:8px;background:#283443}
.summary-bar span{height:100%;flex:0 0 auto}
#summary-on-bar{background:var(--yellow)}
#summary-off-bar{background:#596575}
.summary-totals{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:13px;line-height:18px;color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
.summary-totals>span{min-width:0}
.summary-totals>span:last-child{text-align:right}
.summary-note{margin-top:6px;color:var(--muted);font-size:11px;line-height:16px;font-weight:400}
#home-view .advice-card{min-height:150px;padding:16px 18px;border:0;border-radius:20px;margin-bottom:8px}
#home-view .advice-card>div{width:100%}
#home-view .advice-card h2{font-size:16px;line-height:22px;margin-bottom:8px;max-width:100%;position:relative;z-index:2}
#home-view .advice-card p{width:64%;font-size:13px;line-height:20px;font-weight:400;color:var(--muted)}
#home-view .advice-card>img{width:150px;right:-12px;bottom:-14px}
#home-view .advice-card.emergency p{width:60%}
@media(max-width:350px){
  #home-view .status-card{gap:8px;padding:16px 12px}
  #home-view .status-mark{width:34px;height:34px;flex-basis:34px}
  #home-view .status-icon{width:36px;flex-basis:36px}
  #home-view .status-icon .icon{width:36px;height:36px}
  #home-view .status-card h2{font-size:23px}
  #home-view .status-card p{font-size:12px}
  #home-view .day-summary{padding-left:14px;padding-right:14px}
  .summary-totals{font-size:12px;gap:8px}
  #home-view .advice-card p{width:62%}
  #home-view .advice-card>img{width:130px;right:-20px}
}

/* Live schedule countdown and clear power-state colors. */
#home-view .status-card.on{background:#32cd32}
#home-view .status-card.off{background:#ff0000}
#home-view .status-card.on h2,#home-view .status-card.on p{color:#092b0e}
#home-view .status-card.off h2,#home-view .status-card.off p{color:#fff}
#home-view .status-card.on .status-icon .icon,#home-view .status-card.off .status-icon .icon{color:#fff}
#home-view .status-card.on .status-mark{background:#efffef;color:#177e25}
#home-view .status-card.off .status-mark{background:#fff;color:#c40000}
#home-view .next-card p,#home-view .home-panel #next-detail{
  position:static;width:auto;height:auto;padding:0;margin:4px 0 0;
  overflow:visible;clip-path:none;white-space:normal;
  color:var(--muted);font-size:14px;line-height:20px;
  font-variant-numeric:tabular-nums;
}
@media (hover:hover) and (pointer:fine){
  .address-list{scrollbar-width:thin;scrollbar-color:#536174 transparent}
  .address-list::-webkit-scrollbar{display:block;height:5px}
  .address-list::-webkit-scrollbar-thumb{background:#536174;border-radius:5px}
}
