/* A shared, nonmodal notice survives route changes and preserves draft forms. */
:root{--sidethread-update-height:0px}
html.sidethread-has-update body{padding-top:var(--sidethread-update-height)!important}
#sidethread-update-notice{box-sizing:border-box;position:fixed;inset:0 0 auto;z-index:2147483000;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px max(20px,env(safe-area-inset-right)) 14px max(20px,env(safe-area-inset-left));border:0;border-bottom:1px solid #80658e;background:#211a2b;color:#f8f4fa;font:400 14px/1.45 system-ui,-apple-system,Arial,sans-serif;box-shadow:0 6px 28px #0005;text-align:left;isolation:isolate;max-height:50dvh;overflow:auto}
#sidethread-update-notice[hidden]{display:none!important}
#sidethread-update-notice *{box-sizing:border-box}
#sidethread-update-notice[data-status="required"]{background:#281d23;border-bottom-color:#d692a0}
#sidethread-update-notice .st-update-copy{min-width:0;max-width:900px}
#sidethread-update-notice .st-update-title{display:block;font-size:15px;font-weight:700;letter-spacing:0;color:#edd6fc}
#sidethread-update-notice[data-status="required"] .st-update-title{color:#ffb6c0}
#sidethread-update-notice p{margin:3px 0 0;font-size:14px;line-height:1.45;letter-spacing:0;color:#ede5f0;overflow-wrap:anywhere}
#sidethread-update-notice .st-update-version{display:block;color:#bfb3c8;font-size:12px;line-height:1.4;margin-top:3px}
#sidethread-update-notice .st-update-actions{display:flex;align-items:center;gap:9px;flex-shrink:0;flex-wrap:wrap}
#sidethread-update-notice a,#sidethread-update-notice button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 13px;border:1px solid #675371;border-radius:10px;margin:0;font:600 13px/1.25 system-ui,-apple-system,Arial,sans-serif;text-decoration:none;cursor:pointer;white-space:normal;letter-spacing:0;transform:none;background:transparent;color:#eee3f5}
#sidethread-update-notice a{background:#dec3f0;border-color:#dec3f0;color:#201527}
#sidethread-update-notice a:focus-visible,#sidethread-update-notice button:focus-visible{outline:3px solid #fff;outline-offset:2px}
#sidethread-update-notice a:hover{background:#f0defb}
#sidethread-update-notice button:hover{background:#ffffff12}
#sidethread-update-notice[data-compact="true"] p,#sidethread-update-notice[data-compact="true"] .st-update-version{display:none}
html.sidethread-has-update .sidebar,html.sidethread-has-update .modal-backdrop{top:var(--sidethread-update-height)}
html.sidethread-has-update .shell{min-height:calc(100dvh - var(--sidethread-update-height))}
html.sidethread-has-update .site-header{top:var(--sidethread-update-height)}
@media(max-width:650px){#sidethread-update-notice{align-items:stretch;flex-direction:column;gap:10px;padding:12px 16px}#sidethread-update-notice .st-update-actions{gap:8px}#sidethread-update-notice a{flex:1}#sidethread-update-notice[data-compact="true"]{gap:7px}#sidethread-update-notice[data-compact="true"] .st-update-title{font-size:13px}#sidethread-update-notice[data-compact="true"] a,#sidethread-update-notice[data-compact="true"] button{min-height:38px;padding:7px 10px}}
/* Glasses reserve screen space for the notice, including the radial planners. */
html[data-sidethread-endpoint="glasses"].sidethread-has-update #viewport{height:calc(100dvh - var(--sidethread-update-height))}
html[data-sidethread-endpoint="glasses"] #sidethread-update-notice{gap:8px;padding:10px 18px;flex-direction:column;align-items:stretch;max-height:45dvh}
html[data-sidethread-endpoint="glasses"] #sidethread-update-notice .st-update-title{font-size:20px}
html[data-sidethread-endpoint="glasses"] #sidethread-update-notice p{font-size:17px;line-height:1.32}
html[data-sidethread-endpoint="glasses"] #sidethread-update-notice .st-update-version{font-size:14px}
html[data-sidethread-endpoint="glasses"] #sidethread-update-notice .st-update-actions{display:flex;gap:8px}
html[data-sidethread-endpoint="glasses"] #sidethread-update-notice a,html[data-sidethread-endpoint="glasses"] #sidethread-update-notice button{min-height:44px;font-size:16px;padding:8px 12px;flex:1}
html[data-sidethread-endpoint="glasses"] #sidethread-update-notice[data-compact="true"]{gap:6px}
html[data-sidethread-endpoint="glasses"].sidethread-has-update #tracker,html[data-sidethread-endpoint="glasses"].sidethread-has-update #planner,html[data-sidethread-endpoint="glasses"].sidethread-has-update #focus,html[data-sidethread-endpoint="glasses"].sidethread-has-update #focus-presets{transform:translate(-50%,-50%) scale(var(--sidethread-glasses-scale,1))}
html[data-sidethread-endpoint="glasses"].sidethread-has-update #timer-name{font-size:clamp(23px,8vmin,48px)}
html[data-sidethread-endpoint="glasses"].sidethread-has-update #timer-name.long{font-size:clamp(23px,5.6vmin,34px)}
