/* A short default path, with detailed controls available in place. */
.header-inner{min-height:76px;padding-top:10px;padding-bottom:10px}
.workspace{padding-top:16px}.mode-bar{padding:10px 14px;gap:18px;margin-bottom:8px}
.mode-bar h2{font-size:14px;white-space:nowrap}.mode-button{min-height:44px;padding:8px 12px}
.workflow-intro{font-size:14px;color:var(--theme-muted);margin:0 0 16px}
.panel-section{padding:18px 20px}.section-title{margin-bottom:12px}.segmented{margin-bottom:12px}
.field input::placeholder,.field textarea::placeholder{color:#617269}
.field-title{flex-wrap:wrap}.origin-label{font-size:12px;font-weight:400;color:var(--theme-muted)}
.optional-details{margin:12px 0;border:1px solid var(--theme-line);border-radius:9px;background:var(--theme-panel)}
.optional-details>summary,.picture-settings>summary{min-height:44px;padding:10px 12px;cursor:pointer;font-size:14px;font-weight:600;list-style-position:inside}
.optional-details>summary>span,.picture-settings>summary>span{float:right;color:var(--theme-muted);font-size:12px;font-weight:400}
.optional-details[open]>summary>span,.picture-settings[open]>summary>span{display:none}
.optional-details>div{padding:0 12px 6px}.optional-details textarea{display:block}
.level-option{padding:8px 12px;margin:8px 0}.level-label{min-height:36px;font-size:14px}
.level-summary{font-size:13px;color:var(--theme-muted);margin:0 0 2px 25px}
.level-tuning{margin:2px 0 0 25px}.level-tuning>summary{cursor:pointer;color:var(--theme-accent);font-size:13px;min-height:36px;display:flex;align-items:center;gap:6px}
.level-tuning>summary::after{content:'펼치기 ⌄';font-size:12px;margin-left:auto}.level-tuning[open]>summary::after{content:'접기 ⌃'}
.type-counts{margin-top:0;padding-top:6px}.type-count-row{font-size:14px}.type-count-row select{min-height:44px}
#level-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
#level-options .level-option{margin:0;padding:8px;min-width:0}.level-heading{display:block}.level-total{display:none}
.level-label{font-size:13px;gap:6px;min-height:36px}.level-summary{margin-left:0;font-size:12px}.level-tuning{margin-left:0}
.level-tuning>summary{font-size:12px}.level-tuning>summary::after{content:'⌄';font-size:14px}.level-tuning[open]>summary::after{content:'⌃'}
.level-tuning[open] .type-counts{grid-template-columns:1fr}
.quick-create{padding-top:0;display:flex;flex-direction:column}.quick-create .primary{margin-top:0;min-height:48px;font-size:16px;order:0}
#quick-summary{order:1;margin-top:6px}#quick-help{order:2}#form-error{order:3}
.quick-create>p:last-child{margin-top:6px}.panel-section>.small.muted{font-size:14px}
.input-panel>.panel-section:first-child{padding-top:14px;padding-bottom:12px}.input-panel>.panel-section:first-child .optional-details{margin-bottom:0}
.segmented{margin-bottom:8px}.field{margin:10px 0}.workflow-intro{margin-bottom:12px}.workspace{padding-top:12px}
.picture-settings{border-top:1px solid var(--theme-line)}.picture-settings>summary{padding:0;min-height:44px}
.picture-settings>div{padding-top:8px}.creation-panel{padding:18px 20px}.creation-panel .workflow-steps{display:none}
.creation-panel .small{font-size:14px}.preview-stage:has(.empty-preview:not([hidden])){min-height:450px;padding:18px}
.empty-preview{min-height:412px;padding:28px 24px;align-items:stretch;text-align:left;box-shadow:none;border-radius:8px;background:var(--theme-panel)}
.empty-preview h3{margin:8px 0 22px;font-size:24px;color:var(--theme-text)}
.journey{counter-reset:journey;list-style:none;margin:0;padding:0;display:grid;gap:22px}
.journey li{padding-left:42px;position:relative}.journey li::before{counter-increment:journey;content:counter(journey);position:absolute;left:0;top:1px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--theme-raised);color:var(--theme-accent);font-weight:700}
.journey strong,.journey span{display:block}.journey strong{font-size:16px}.journey span{font-size:14px;color:var(--theme-muted);margin-top:3px}
.empty-preview .example-note{font-size:12px;color:var(--theme-muted);margin:22px 0 14px}.empty-preview .button{align-self:start}
.request-status{color:var(--theme-accent);font-size:15px;font-weight:600;margin:12px 0}
.prompt-actions{margin:16px 0}.prompt-actions .primary{min-height:48px}.modal .optional-details{margin-top:18px}
#prompt-text{border:0;border-top:1px solid var(--theme-line);font-size:14px;background:var(--theme-input);color:var(--theme-text);line-height:1.7}
.page-row{flex-wrap:wrap;gap:6px}

.mobile-action{display:none}.button:focus-within:has(input[type=file]){outline:3px solid var(--theme-focus);outline-offset:3px}
html[data-theme=dark] .field input::placeholder,html[data-theme=dark] .field textarea::placeholder{color:#92aa99}
html[data-theme=dark] .empty-preview,html[data-theme=dark] .optional-details{background:var(--theme-panel)}
@media(max-width:1100px) and (min-width:851px){.header-actions{gap:4px}.save-status{display:none}.brand p{max-width:180px}.header-inner,.workspace{padding-left:20px;padding-right:20px}.columns{grid-template-columns:400px minmax(0,1fr)}.mode-bar{gap:10px}}
@media(max-width:850px){
 .workspace{padding-top:12px;padding-bottom:96px}.mode-bar{display:block;margin-bottom:10px}.mode-bar h2{margin-bottom:8px}.mode-options{gap:6px}.mode-button strong{font-size:13px}
 .workflow-intro{font-size:13px}.workspace-nav{margin-top:0;margin-bottom:12px}.mobile-action{position:fixed;bottom:0;left:0;right:0;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:var(--theme-panel);border-top:1px solid var(--theme-line)}
 .mobile-action>span{font-size:13px;line-height:1.4;max-width:50%;color:var(--theme-text)}.mobile-action .button{min-height:48px}
 body:has(dialog[open]) .mobile-action,body:has(input:not([type=checkbox]):focus,textarea:focus) .mobile-action{display:none}
 .toast{bottom:86px}.page-row .request-assignment{margin-left:0}.empty-preview h3{font-size:21px}
}
@media(max-width:520px){
 .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 16px;gap:6px}.brand{grid-column:1;grid-row:1;width:auto}.brand-logo,html[data-logo="2"] .brand-logo{width:38px;height:38px}.brand h1{font-size:22px}.brand p{font-size:12px}.header-actions{display:contents}.header-actions .button{min-height:44px;padding:7px 9px}
 .header-actions #open-library{grid-column:1;grid-row:2;justify-self:start}.header-actions #open-guide{grid-column:2;grid-row:2}.header-actions .theme-switcher{grid-column:2;grid-row:1;justify-self:end}.mode-bar h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .header-actions #open-library span{display:inline}.save-status{display:none}.theme-switcher button{min-height:34px}.theme-switcher span{display:none}
 .panel-section{padding:16px}.section-title h2{font-size:17px}.learning-section-title .button{font-size:12px;min-height:44px;padding:6px}
 .image-import{padding:14px}
 .empty-preview{padding:24px 16px}.journey{gap:18px}.journey strong{font-size:15px}.empty-preview .example-note{font-size:13px}
 .modal{padding:18px}.prompt-actions{display:grid;grid-template-columns:1fr 1fr}.prompt-actions .primary{grid-column:1/-1}
}
@media(max-width:359px){#level-options{grid-template-columns:1fr}.learning-section-title{gap:5px}.section-title h2{font-size:15px}.step{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.mobile-action{display:none!important}}
.hint-control{margin:14px 0;padding:12px;border:1px solid var(--theme-line);border-radius:9px;background:var(--theme-raised)}
.hint-control>label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-size:14px;font-weight:600}
.hint-control input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none;accent-color:var(--theme-accent)}
.hint-control p{font-size:13px;margin:6px 0 0}.hint-image-control{border-top:1px solid var(--theme-line);padding-top:10px;margin-top:12px}
.hint-image-control img{max-width:100px;max-height:90px;object-fit:contain}.hint-image-control input{max-width:100%}

/* Completed images stay in one ordered list. */
.image-import{margin-top:16px;border:1px solid var(--theme-line);border-radius:12px;padding:18px;background:var(--theme-panel)}
.image-import .section-title{flex-wrap:wrap;justify-content:space-between;gap:8px}
.image-import h3{font-size:17px}
.image-import .import-controls{margin:16px 0 12px}
.image-import .import-image-button{position:relative}
.image-import .import-image-button:focus-within{outline:3px solid var(--theme-focus,#73bc9b);outline-offset:3px}
.image-import .import-image-button:has(input:disabled){opacity:.43;cursor:not-allowed}
.page-list .page-row{gap:12px}
.page-list .page-row img{display:block;width:42px;height:56px;object-fit:contain;flex:none}
.page-list .page-name{flex:1;min-width:70px;font-size:14px}
.page-order-actions{display:flex;gap:8px;align-items:center}
.page-order-actions .button{min-height:44px;padding:8px 10px}
@media(max-width:650px){.image-import{padding:14px}.image-import .import-image-button{display:flex;justify-content:center}.page-order-actions{width:100%;justify-content:flex-end}}

/* Keep curriculum guidance short until the teacher opens it. */
.curriculum-help{margin:4px 0 12px;font-size:14px}
.curriculum-help>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;cursor:pointer;list-style:none;color:var(--theme-accent);font-weight:600}
.curriculum-help>summary::-webkit-details-marker{display:none}
.curriculum-help>summary:hover{text-decoration:underline}
.curriculum-help-more,.curriculum-help-less{font-size:13px;white-space:nowrap}
.curriculum-help .curriculum-help-less{display:none}
.curriculum-help[open] .curriculum-help-more{display:none}
.curriculum-help[open] .curriculum-help-less{display:inline}
.curriculum-help-body{padding:12px;background:var(--theme-raised);border-radius:8px}
.curriculum-help-body p+p{margin-top:8px}
.site-info-links{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;margin-top:8px;font-size:14px}
.site-info-links a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.cut-count-fields{margin:12px 0}.cut-count-fields .field{margin:0}.cut-count-summary{margin:8px 0;font-weight:600;color:var(--theme-accent)}
.cut-overrides{margin:16px 0;border-top:1px solid var(--theme-line);padding-top:8px}.cut-overrides>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600}.cut-overrides>summary::before{content:'＋'}.cut-overrides[open]>summary::before{content:'−'}
.cut-override-row{padding:16px 0;border-bottom:1px solid var(--theme-line)}.cut-override-row:last-child{border-bottom:0}.cut-override-row .field{margin:10px 0 4px}.cut-override-row>strong{font-size:14px}.cut-count-help{margin:8px 0}
.cut-overrides>summary{list-style:none;padding:10px 12px;border:1px solid var(--theme-line);border-radius:10px;background:var(--theme-panel)}.cut-overrides>summary::-webkit-details-marker{display:none}.cut-overrides>summary>span:first-child{flex:1}.cut-override-toggle{font-size:13px;white-space:nowrap;color:var(--theme-accent)}.cut-overrides .cut-open{display:none}.cut-overrides[open] .cut-closed{display:none}.cut-overrides[open] .cut-open{display:inline}
