/* CSI weather: optional guided screen. No effect on PDF or printed reports. */
#csiWeatherPage .csi-location-heading-row {
    display:flex; align-items:flex-start; justify-content:space-between; gap:10px; min-width:0;
}
#csiWeatherPage .csi-location-heading-row #locTitle { min-width:0; flex:1 1 auto; overflow-wrap:anywhere; }
#csiWeatherGuideBtn {
    flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
    min-height:44px; padding:7px 12px; margin-top:-4px; border:1px solid #c7d2fe; border-radius:10px;
    background:#fff; color:#4338ca;
    font-family:inherit; font-size:calc(13px * var(--csi-text-scale, 1)); font-weight:700;
    line-height:1.4; white-space:nowrap; cursor:pointer;
}
#csiWeatherGuideBtn:hover { background:#eef2ff; border-color:#818cf8; }
#csiWeatherGuideWelcome {
    display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:10px;
    margin:0 var(--csi-panel-gutter,20px) 10px; padding:9px 12px;
    border:1px solid #c7d2fe; border-radius:12px; background:#eef2ff; color:#3730a3;
}
#csiWeatherGuideWelcome[hidden] { display:none !important; }
#csiWeatherGuideWelcome p { margin:0; font-size:calc(13px * var(--csi-text-scale,1)); line-height:1.5; overflow-wrap:anywhere; }
#csiWeatherGuideWelcome > div { display:flex; flex-shrink:0; align-items:center; gap:6px; }
#csiWeatherGuideWelcome button {
    min-height:44px; padding:7px 9px; border:1px solid transparent; border-radius:8px;
    font-family:inherit; font-size:calc(13px * var(--csi-text-scale,1)); font-weight:700;
    line-height:1.4; cursor:pointer; white-space:nowrap;
}
#csiWeatherGuideStart { background:#4338ca; color:#fff; }
#csiWeatherGuideLater { background:transparent; color:#4338ca; }
#csiWeatherGuideOverlay {
    position:fixed; inset:0; z-index:100100; overflow:hidden; overscroll-behavior:contain;
    isolation:isolate; color:#172554;
}
#csiWeatherGuideOverlay[hidden] { display:none !important; }
.csi-guide-shade { position:absolute; background:rgba(15,23,42,.68); pointer-events:none; }
#csiWeatherGuideSpotlight {
    position:absolute; border:2px solid #c7d2fe; border-radius:10px; box-sizing:border-box;
    box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 24px rgba(129,140,248,.65); pointer-events:none;
}
#csiWeatherGuideSpotlight[hidden] { display:none; }
#csiWeatherGuideCard {
    position:absolute; display:flex; flex-direction:column; box-sizing:border-box; min-width:0;
    width:min(440px,calc(100vw - 24px)); max-height:calc(100dvh - 24px);
    padding:18px; border:1px solid #dbe1f3; border-radius:18px; background:#fff;
    box-shadow:0 18px 65px rgba(15,23,42,.35); outline:none; overflow:hidden;
    font-family:inherit; text-align:left;
}
.csi-guide-card-top { display:flex; flex:0 0 auto; justify-content:space-between; align-items:center; gap:8px; }
#csiWeatherGuideProgress { color:#4338ca; font-size:calc(13px * var(--csi-text-scale,1)); font-weight:800; line-height:1.5; }
#csiWeatherGuideClose {
    flex:0 0 auto; min-height:44px; padding:7px 8px; border:0; border-radius:8px;
    background:#f1f5f9; color:#475569; font-family:inherit;
    font-size:calc(13px * var(--csi-text-scale,1)); font-weight:700; line-height:1.4; cursor:pointer;
}
#csiWeatherGuideClose span { font-size:20px; line-height:1; vertical-align:-1px; }
.csi-guide-card-content {
    min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable;
    padding:12px 2px 4px; -webkit-overflow-scrolling:touch;
}
#csiWeatherGuideLabel { margin:0 0 8px; color:#64748b; font-size:calc(12px * var(--csi-text-scale,1)); font-weight:700; line-height:1.5; }
#csiWeatherGuideTitle {
    margin:0 0 12px; color:#172554; font-size:calc(19px * var(--csi-text-scale,1));
    font-weight:800; line-height:1.45; word-break:keep-all; overflow-wrap:anywhere; outline:none;
}
#csiWeatherGuideText { margin:0; color:#334155; font-size:calc(15px * var(--csi-text-scale,1)); line-height:1.75; word-break:keep-all; overflow-wrap:anywhere; }
#csiWeatherGuideNote { margin:14px 0 0; padding:10px 12px; border-radius:10px; background:#f1f5f9; color:#475569; font-size:calc(12px * var(--csi-text-scale,1)); line-height:1.65; word-break:keep-all; overflow-wrap:anywhere; }
.csi-guide-card-actions { display:flex; flex:0 0 auto; justify-content:space-between; gap:10px; padding-top:14px; }
.csi-guide-card-actions button {
    min-width:74px; min-height:44px; padding:10px 16px; border:1px solid #cbd5e1; border-radius:10px;
    background:#fff; color:#334155; font-family:inherit; font-size:calc(14px * var(--csi-text-scale,1));
    font-weight:800; line-height:1.5; cursor:pointer; white-space:normal; overflow-wrap:anywhere;
}
#csiWeatherGuideNext { margin-left:auto; border-color:#4338ca; background:#4338ca; color:#fff; }
#csiWeatherGuidePrev:disabled { opacity:.45; cursor:default; }
#csiWeatherGuideBtn:focus-visible, #csiWeatherGuideWelcome button:focus-visible,
#csiWeatherGuideCard button:focus-visible { outline:3px solid #818cf8; outline-offset:3px; }
@media (max-width:680px) {
    #csiWeatherGuideBtn { min-height:44px; padding-inline:9px; }
    #csiWeatherGuideWelcome { gap:7px; flex-wrap:wrap; margin-inline:12px; padding:9px 11px; }
    #csiWeatherGuideWelcome p { flex:1 1 150px; }
    #csiWeatherGuideWelcome > div { margin-left:auto; }
    #csiWeatherGuideCard { padding:14px; border-radius:15px; }
    .csi-guide-card-actions { gap:8px; padding-top:12px; }
    .csi-guide-card-actions button { min-width:66px; padding:9px 12px; }
}
@media (max-width:1023px) {
    #weatherSidePanel[data-compact-collapsed="true"] #csiWeatherGuideWelcome { display:none !important; }
}
@media (max-width:1023px) and (max-height:600px) {
    #csiWeatherGuideWelcome { display:none !important; }
}
@media (prefers-reduced-motion:reduce) {
    #csiWeatherGuideOverlay *, #csiWeatherGuideWelcome { scroll-behavior:auto !important; transition:none !important; }
}
@media print {
    #csiWeatherGuideBtn, #csiWeatherGuideWelcome, #csiWeatherGuideOverlay { display:none !important; }
}
