/* The native activity actions stay in normal flow; only the containing header sticks. */
.daily-scene .editor-shell{overflow:auto;overscroll-behavior:contain}
.daily-scene .editor-header{position:sticky;top:0;z-index:10;background:var(--cream);grid-template-columns:auto minmax(0,1fr);min-height:60px;padding:8px 16px;gap:12px;overflow:visible}
.daily-scene .scene-back{margin-top:0;align-self:center}
.daily-scene .editor-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.daily-scene .editor-header-actions #mark-complete,.daily-scene .editor-header-actions .print-button{box-sizing:border-box;flex:none;width:auto;min-height:44px;margin:0;padding:9px 12px;font:700 13px/1.3 var(--font);white-space:normal;text-align:center}
.daily-scene .editor-header-actions #mark-complete{background:var(--paper);color:var(--green)}
.daily-scene .editor-header-actions #mark-complete[aria-pressed=true]{background:var(--green);color:white}
.daily-scene .editor-header-actions .print-actions{display:flex;gap:8px;margin:0;min-width:0}
@media(max-width:650px){
 .daily-scene .editor-header{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px 10px;min-height:0}
 .daily-scene .editor-header .scene-back{grid-column:1 / 3;grid-row:1;justify-self:start;min-height:44px}
 .daily-scene .editor-header-actions{display:contents}
 .daily-scene .editor-header-actions #mark-complete{grid-column:1;grid-row:2}
 .daily-scene .editor-header-actions .print-actions{grid-column:2 / 4;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .daily-scene .editor-header-actions #gift-task-settings{grid-column:3;grid-row:1;justify-self:end;font-size:12px}
 .daily-scene .editor-header-actions #mark-complete,.daily-scene .editor-header-actions .print-button{width:100%;min-width:0;padding:6px 4px;font-size:12px;overflow-wrap:normal}
 .daily-scene .editor-header-actions #mark-complete{gap:3px}
 .daily-scene .editor-header-actions #mark-complete .tool-icon{display:none}
 .daily-scene .editor-layout{flex:none;overflow:visible}
}

/* Pending is an empty neutral box; only a genuine completion displays a tick. */
.daily-scene .editor-header-actions #mark-complete[aria-pressed=false]{background:var(--paper);color:#5e4940;border:1px solid #a48b7b}
#mark-complete .completion-box{display:inline-flex;box-sizing:border-box;flex:0 0 16px;width:16px;height:16px;align-items:center;justify-content:center;border:1.5px solid currentColor;border-radius:3px;background:transparent;line-height:1}
#mark-complete .completion-box::after{content:""}
#mark-complete[aria-pressed=true] .completion-box::after{content:"✓";font-size:13px;font-weight:700}
/* A brief, low-amplitude invitation at the end of each three-second cycle. */
@keyframes complete-today-reminder{0%,86%,100%{transform:translateX(0)}89%,95%{transform:translateX(-2px)}92%,98%{transform:translateX(2px)}}
html:not([data-completion-hidden=true]) #task-dialog[open][data-state=ready] #mark-complete[aria-pressed=false]:not(:disabled):not([aria-disabled=true]):not([hidden]){animation:complete-today-reminder 3s ease-in-out infinite}
#mark-complete:focus-visible{outline:3px solid #80512d;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#task-dialog[open][data-state=ready] #mark-complete[aria-pressed=false]:not(:disabled):not([aria-disabled=true]):not([hidden]){animation:none;text-decoration:underline;text-underline-offset:3px}}

/* Compact native Undo and always-available size access: no paper/fit changes. */
.daily-scene .brush-actions{display:grid;grid-template-columns:minmax(44px,1fr) minmax(100px,1.4fr);gap:8px;position:sticky;top:0;z-index:9;background:var(--paper);margin-bottom:8px}
.daily-scene .brush-actions #undo,.daily-scene #brush-size-toggle{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-width:44px;min-height:44px;margin:0;padding:6px 8px;font:700 13px/1.2 var(--font);border:1px solid var(--green);border-radius:7px;background:var(--paper);color:var(--green);touch-action:manipulation}
.daily-scene .brush-actions #undo:disabled{color:#716b60;border-color:#b9ae99;background:#f1eadc}
#brush-size-panel{position:fixed;inset:auto;box-sizing:border-box;width:min(300px,calc(100vw - 24px));margin:0;padding:14px 18px;border:1px solid var(--green);border-radius:10px;background:var(--paper);color:var(--green);box-shadow:0 5px 18px #0003}
#brush-size-panel:popover-open{display:block}
#brush-size-panel .range-label{display:grid;grid-template-columns:1fr auto;gap:4px;font:700 14px/1.3 var(--font)}
#brush-size-panel #brush-size{grid-column:1 / -1;box-sizing:border-box;width:100%;min-height:44px;margin:0;accent-color:var(--green)}
#brush-size-toggle:focus-visible,#brush-size:focus-visible{outline:3px solid #80512d;outline-offset:3px}
@media(max-width:650px){.daily-scene .tools-panel>.brush-actions{order:0;margin:0;top:var(--brush-sticky-top,110px)}}
