/* A viewport-anchored trigger stays under the pointer in both states. */
#sidebar-toggle{position:fixed;left:max(14px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));z-index:9;width:44px;height:44px;margin:0;padding:10px;border-radius:14px;border:1px solid #a4bbb159;background:rgba(241,247,243,.94);color:#355e50;box-shadow:0 3px 12px #244e3912;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background .2s,box-shadow .2s}
#sidebar-toggle:hover{background:#e0ece5;box-shadow:0 4px 16px #244e3920}#sidebar-toggle svg{width:24px;height:24px;stroke-width:1.6}.sidebar-arrow{transition:transform .2s}
.sidebar-collapsed .topbar{padding-left:76px}
body:not(.sidebar-collapsed) .sidebar{padding-top:76px}
#world-clocks .clock-row{display:grid;grid-template-columns:minmax(0,1fr) 64px 18px;gap:6px;align-items:center}
#world-clocks .clock-row>div{min-width:0;min-height:0}#world-clocks .clock-row time{grid-column:2;grid-row:1;text-align:right;font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.6px}
#world-clocks .clock-remove{grid-column:3;grid-row:1;margin:0;padding:0;width:18px}#world-clocks .clock-row small{line-height:1.5;overflow-wrap:anywhere}#world-clocks .clock-row strong{overflow-wrap:anywhere}
.calendar-live-date{font-variant-numeric:tabular-nums;line-height:1.6}
@media(max-width:900px){
 .topbar,.sidebar-collapsed .topbar{padding-left:72px;min-height:68px}
 body:not(.sidebar-collapsed) .sidebar{position:fixed;inset:72px auto 12px 12px;width:min(320px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 84px);overflow-y:auto;z-index:8;padding:20px;border:1px solid #c5d5cb;border-radius:18px;box-shadow:0 16px 45px #213f3630;background:rgba(241,247,243,.95);align-items:stretch}
 .sidebar .side-nav{display:grid;grid-template-columns:1fr;gap:5px}.sidebar .nav-link{justify-content:flex-start;font-size:13px!important;padding:11px 12px}.sidebar .sidebar-bottom{margin-top:auto;padding-top:20px}
 #world-clocks{display:grid;grid-template-columns:1fr;gap:6px}#world-clocks .clock-heading{display:block}#world-clocks .clock-row{padding:10px 11px}#world-clocks .clock-row strong{font-size:12px}#world-clocks .clock-row small{font-size:10px}#world-clocks .add-clock{width:100%}
 .sidebar .brand{display:flex;margin:0 0 20px}.sidebar .brand>span:last-child{font-size:15px}.topbar .breadcrumbs{min-width:0;font-size:8px}.topbar-right{gap:8px}
}
@media(max-width:400px){.topbar .breadcrumbs>span{display:none}.topbar{padding-right:12px}.topbar .live-indicator{display:none}}
@media(prefers-reduced-motion:reduce){#sidebar-toggle,.sidebar-arrow{transition:none}}

/* Completion is its own section, separated from the date and GMT metadata. */
.overview-event-dialog .event-status-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0;padding:14px 0;border-top:1px solid #728f7930;border-bottom:1px solid #728f7930}
.event-status-label{font:10px var(--mono);letter-spacing:.08em;color:#6c7e72;flex-shrink:0}
.event-status-actions .detail-complete-toggle{margin:0;min-height:42px;padding:10px 15px;border-radius:999px;border:1px solid #759c8555;background:#e4eee78c;color:#335e49;line-height:1.5;font-size:12px}
.event-status-actions .detail-complete-toggle:hover{background:#dceadf}
.event-status-actions .detail-complete-toggle[aria-pressed=true]{background:#355e49;border-color:#355e49;color:white}
@media(max-width:420px){.overview-event-dialog .event-status-actions{gap:10px;margin:18px 0;padding:12px 0}.event-status-label{font-size:9px}.event-status-actions .detail-complete-toggle{padding:10px 12px}}
