/* Accepted word-game geometry; only the owner-approved semantic button colours are applied. */
.task-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--atlas-space-3,12px);width:100%;min-width:0}
.task-stage .question-panel{max-width:100%;width:min(100%,670px)}
.task-stage .next-button,.task-stage .adjust-button,.task-stage .task-help{width:min(100%,540px);white-space:normal}
.task-stage .word-row{flex-wrap:wrap}
.task-word-grid{display:grid;width:100%;gap:12px}.task-word-grid .word-tile{font-size:clamp(20px,3.5vw,38px);overflow-wrap:anywhere;opacity:.75}.task-word-grid .task-current-word{opacity:1;outline:3px solid var(--atlas-focus);outline-offset:3px}
.task-help{margin:12px 0;text-align:center}.task-help summary{min-height:48px;display:grid;place-items:center;border:1px solid var(--role-help-line);border-radius:16px;padding:10px 14px;cursor:pointer}.task-help p{line-height:1.5;text-align:center}
.task-shell .sheet{display:grid;gap:12px}.task-shell .sheet h2,.task-shell .sheet-copy,.task-shell .sheet-kicker,.task-shell .choice-title{text-align:center}.task-shell .sheet .quiet-action{margin-top:0;border:1px solid;border-radius:17px;padding:10px 15px;box-shadow:var(--ui-shadow)}
.task-shell .choice-title{margin-bottom:0}.task-shell .status{flex-direction:column;align-items:center;justify-content:center;text-align:center}.task-shell .status-numbers{margin-left:0}.task-shell .topbar [data-task-role]{border:1px solid}
html[data-theme] .task-shell [data-task-role='help']:not(:disabled){background:var(--role-help-face);color:var(--role-help-ink);border-color:var(--role-help-line)}
html[data-theme] .task-shell [data-task-role='joint']:not(:disabled){background:var(--role-joint-face);color:var(--role-joint-ink);border-color:var(--role-joint-line)}
html[data-theme] .task-shell [data-task-role='creative']:not(:disabled){background:var(--role-creative-face);color:var(--role-creative-ink);border-color:var(--role-creative-line)}
html[data-theme] .task-shell [data-task-role='household']:not(:disabled){background:var(--role-household-face);color:var(--role-household-ink);border-color:var(--role-household-line)}
html[data-theme] .task-shell [data-task-role='utility']:not(:disabled){background:var(--role-utility-face);color:var(--role-utility-ink);border-color:var(--role-utility-line)}
html[data-theme] .task-shell [data-task-role='primary']:not(:disabled){background:var(--ui-primary);color:var(--ui-primary-text);border-color:var(--ui-primary-line)}
html[data-theme] .task-shell [aria-pressed='true']:not(:disabled){outline:3px solid #277970;outline-offset:2px;box-shadow:0 0 0 2px rgba(239,191,97,.56),0 6px 12px rgba(24,73,68,.12)}
.task-shell button:disabled{background:var(--ui-inset);color:var(--ui-muted);border-color:var(--ui-line);box-shadow:none}

/* One spacing owner: inherited sheet margins do not add to the accepted 12px gap. */
.task-shell .sheet>h2,.task-shell .sheet>.sheet-copy,.task-shell .sheet>.task-help,.task-shell .sheet>.primary,.task-shell .sheet>.quiet-action,.task-shell .sheet>.choice-title,.task-shell .sheet>.choice-row{margin:0}
.task-stage>.task-help{margin:0}.task-shell .sheet .settings-list{margin:0}

/* The accepted pause ID otherwise outranks the semantic role. */
html[data-theme] .task-shell #pause-btn[data-task-role="creative"]:not(:disabled){background:var(--role-creative-face);color:var(--role-creative-ink);border-color:var(--role-creative-line)}

/* Inherited large heading size: sequence-demo/style.css .large-type .status h1. */
.large-type .task-shell .sheet h2{font-size:1.35rem}

/* Accepted body token only under the two inherited large-text markers. */
:is(.large-type,.atlas-large-text) .task-shell .iskavio-support-note p{font-size:var(--atlas-type-body)!important}

/* Existing full-width stimulus wrapper: words-demo/words.css .sample-stage and task-stage. */
.task-shell #task-host{width:100%;min-width:0}

/* Exact role colours also outrank inherited primary-class ID specificity; selection and disabled remain original. */
html[data-theme] .task-shell #app :is(button.primary,button.next-button,button.family-secondary)[data-task-role="help"]:not(:disabled):not([aria-pressed="true"]):not(.selected){background:var(--role-help-face)!important;color:var(--role-help-ink)!important;border-color:var(--role-help-line)!important}
html[data-theme] .task-shell #app :is(button.primary,button.next-button,button.family-secondary)[data-task-role="joint"]:not(:disabled):not([aria-pressed="true"]):not(.selected){background:var(--role-joint-face)!important;color:var(--role-joint-ink)!important;border-color:var(--role-joint-line)!important}
html[data-theme] .task-shell #app :is(button.primary,button.next-button,button.family-secondary)[data-task-role="creative"]:not(:disabled):not([aria-pressed="true"]):not(.selected){background:var(--role-creative-face)!important;color:var(--role-creative-ink)!important;border-color:var(--role-creative-line)!important}
html[data-theme] .task-shell #app :is(button.primary,button.next-button,button.family-secondary)[data-task-role="household"]:not(:disabled):not([aria-pressed="true"]):not(.selected){background:var(--role-household-face)!important;color:var(--role-household-ink)!important;border-color:var(--role-household-line)!important}
html[data-theme] .task-shell #app :is(button.primary,button.next-button,button.family-secondary)[data-task-role="utility"]:not(:disabled):not([aria-pressed="true"]):not(.selected){background:var(--role-utility-face)!important;color:var(--role-utility-ink)!important;border-color:var(--role-utility-line)!important}

/* Exact original native canvas/photo component: accepted family-pilot.css58. */
.task-shell .family-photo-preview{display:block;width:min(100%,280px);max-height:240px;object-fit:cover;border-radius:17px;border:2px solid #f9f2dc;box-shadow:0 8px 18px #15382d33}

/* Exact accepted sheet copy/heading/action tokens; native event nodes retained. */
.task-shell .sheet :is([data-family-reading],[data-family-drawing]) :is(h3,h4){color:inherit;margin:0}
.task-shell .sheet :is([data-family-reading],[data-family-drawing]) p{margin:0}
.task-shell [data-family-reading] [data-reading-sync-status]:empty{display:none}
.task-shell :is(button.family-primary,button.family-secondary):not(.word-answer){font-size:var(--atlas-type-action)}

/* Accepted large-type single-column pattern: sequence-demo/style.css51. Normal support untouched. */
:is(.large-type,.atlas-large-text) .task-shell .iskavio-support-inline{grid-template-columns:minmax(0,1fr)}
:is(.large-type,.atlas-large-text) .task-shell .iskavio-support-inline>button{justify-self:end}

/* Direct native family captions/copy use the accepted task-stage spacing owner. */
.task-shell :is([data-family-reading],[data-family-drawing]).task-stage>:is(p,h3,h4){margin:0!important}

/* Adopted menu labels inherit the accepted sheet ink; field labels retain their component. */
.task-shell .sheet label.sequence-caption{color:inherit}

/* Exact original chooser boundaries use accepted sheet heading ink and spacing. */
.task-shell .sheet :is([data-reading-stories],[data-reading-learning])>:is(h3,h4){color:inherit;margin:0!important}
/* Native question status paragraphs keep the original accepted form row gap. */
.task-shell [data-family-reading] form.question-panel>p{margin:0}

/* Only marked native Family3 choosers separate their open summary from the accepted action group. */
.task-shell details.family-goal-details[data-shell-native-chooser][open]>summary{margin-bottom:var(--atlas-space-3)}

/* Exact native album photo centering: accepted family-pilot.css249. */
.task-shell [data-drawing-album] .family-block>img.family-photo-preview{margin-inline:auto}
/* Only late native album body direct children use accepted task-stage grid/gap12. */
.task-shell [data-shell-album-body]{display:grid;gap:var(--atlas-space-3)}
/* Original family-support textarea width/box-sizing contract: family-pilot.css91. */
.task-shell [data-shell-album-body] .family-support textarea{display:block;box-sizing:border-box;width:100%;min-width:0}

/* Native album summary retains its own boundary, never the chooser marker. */
.task-shell [data-drawing-album][open]>summary{margin-bottom:var(--atlas-space-3)}
/* Original late support form uses the accepted question-panel spacing owner. */
.task-shell [data-shell-album-body] form.question-panel>p{margin:0}
.task-shell [data-shell-album-body] form.question-panel>p:empty{display:none}
/* Remaining original textarea geometry: family-pilot.css91; current theme and font preserved. */
.task-shell [data-shell-album-body] .family-support textarea{min-height:100px;padding:12px;border-radius:12px;line-height:1.5;resize:vertical}

/* Owner16.10: only the marked everyday story/explanation copy and its exact semantic analogues.
   Accepted body role: figure-friends.css .sheet-copy and family-pilot.css goal body. */
.task-shell [data-marked-practice-copy],.task-shell .feedback-panel [data-marked-practice-copy]{font-size:max(calc(1.1rem * var(--atlas-text-scale)),clamp(.96rem,2.1vw,1.13rem));line-height:1.5;text-align:center}
.task-shell [data-marked-practice-copy] strong{font-size:inherit}
