/* Browser fullscreen belongs to display chrome, outside the music transport. */
html[data-scene] #browser-fullscreen{display:grid;place-items:center;box-sizing:border-box;flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:7px;border:1px solid #ffffff35;border-radius:50%;background:#ffffff04;color:white;}
#browser-fullscreen svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;}
html[data-scene] #browser-fullscreen:hover,html[data-scene] #browser-fullscreen[aria-pressed=true]{background:#ffffff15;border-color:#ffffff70;}
html[data-scene] #simple-today .today-close{position:relative;display:grid;place-items:center;box-sizing:border-box;width:30px;height:30px;min-width:30px;min-height:30px;flex:0 0 30px;margin:0;padding:0;border:1px solid #ffffff47;border-radius:50%;background:#ffffff04;color:white;font-size:0;}
#simple-today .today-close::before,#simple-today .today-close::after{content:'';position:absolute;left:50%;top:50%;width:12px;height:1.5px;background:currentColor;border-radius:1px;transform:translate(-50%,-50%) rotate(45deg);}
#simple-today .today-close::after{transform:translate(-50%,-50%) rotate(-45deg);}
#simple-today .simple-today-head{align-items:center;}
#simple-today #simple-task-count{margin-left:auto;}
/* The scene view shows only a small task list, sharing Today's completion state. */
#scene-today{position:fixed;z-index:16;left:max(28px,env(safe-area-inset-left));bottom:max(28px,env(safe-area-inset-bottom));width:min(320px,calc(100vw - 56px));color:#fff;isolation:isolate;text-shadow:0 1px 4px #0006;}
#scene-today[hidden]{display:none;}
#scene-today::before{content:'';position:absolute;z-index:-1;inset:-26px -24px;background:radial-gradient(ellipse at left center,#00000038,transparent 75%);filter:blur(12px);pointer-events:none;}
#scene-today .scene-today-heading{display:flex;align-items:center;gap:12px;min-height:28px;margin:0 0 4px;padding:0;border:0;background:none;color:#ffffffce;font:400 12px/1.5 ForestSans,sans-serif;text-shadow:inherit;}
.scene-today-count{font-variant-numeric:tabular-nums;color:#ffffffa6;}
#scene-today ul{list-style:none;max-height:min(28dvh,180px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent;padding:0 4px 0 0;margin:0;}
#scene-today li{margin:0;padding:0;}
#scene-today li button{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:4px 0;border:0;background:none;color:white;text-align:left;font:400 14px/1.55 ForestSans,sans-serif;text-shadow:inherit;}
.scene-task-check{box-sizing:border-box;display:grid;place-items:center;flex:0 0 16px;width:16px;height:16px;border:1px solid #ffffffb0;border-radius:50%;}
.scene-task-check svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;visibility:hidden;}
#scene-today [aria-checked=true] .scene-task-check{background:#ffffff20;}
#scene-today [aria-checked=true] svg{visibility:visible;}
#scene-today [aria-checked=true] .scene-task-text{color:#ffffffa6;text-decoration:line-through;text-decoration-color:#ffffff55;}
.scene-task-text{min-width:0;overflow-wrap:anywhere;}
#scene-today button:focus-visible{outline:1px solid #fff;outline-offset:3px;border-radius:4px;}
.scene-today-status{font:400 12px/1.5 ForestSans,sans-serif;margin:6px 0;}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 #scene-today{left:max(20px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));width:min(300px,calc(100vw - 40px));}
 #scene-today li button{min-height:44px;}
 #scene-today .scene-today-heading{min-height:36px;}
 html[data-scene] #simple-today .today-close{width:36px;height:36px;min-width:36px;min-height:36px;flex-basis:36px;}
 html[data-scene] #browser-fullscreen{width:38px;height:38px;min-height:38px;flex-basis:38px;}
}
@media(prefers-reduced-motion:reduce){#scene-today{transition:none;}}
html[data-scene] body.scene-ui-hidden .masthead{opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
/* A persistent choice, accessible before entering the scene-only view. */
html[data-scene] #simple-today .today-scene-preference{display:flex;align-items:center;gap:9px;min-height:36px;margin:6px 0 0;font:400 13px/1.4 ForestSans,sans-serif;color:#ffffffcf;cursor:pointer;}
#today-scene-visible{appearance:none;-webkit-appearance:none;box-sizing:border-box;flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:0;padding:0;border:1px solid #ffffff60;border-radius:4px;background:transparent;cursor:pointer;}
#today-scene-visible:checked{border-color:#ffffffa0;background:#ffffff16 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;}
#today-scene-visible:focus-visible{outline:1px solid white;outline-offset:3px;}
.scene-today-header{display:flex;align-items:center;justify-content:space-between;gap:12px;}
#scene-today .scene-today-heading{margin-bottom:0;}
#scene-today .scene-today-hide{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:7px;border:0;background:transparent;color:#ffffffbf;opacity:.65;}
.scene-today-hide svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;}
#scene-today .scene-today-hide:hover,#scene-today .scene-today-hide:focus-visible{opacity:1;color:white;}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){html[data-scene] #simple-today .today-scene-preference{min-height:44px;}#scene-today .scene-today-hide{width:44px;height:44px;min-height:44px;flex-basis:44px;}}
