.drawing-sheet{width:1080px;padding:26px;overflow:auto}
.drawing-sheet .sheet-header{margin-bottom:18px}
.drawing-sheet .sheet-header h2{font-size:25px;letter-spacing:-.5px}
.drawing-sheet .sheet-header p{max-width:630px}
.draft-layout{display:grid;grid-template-columns:minmax(0,1fr) 238px;gap:26px}
.draft-editor{min-width:0}
/* Reuse the scene's paper-tools, tool, ink-dots and view-controls styles. */
.draft-tools.paper-tools{isolation:isolate;gap:10px;padding:12px 0 0;justify-content:center}
.draft-tools .width-tool{display:inline-flex}
.draft-canvas-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.draft-view-controls.view-controls{position:static;width:max-content}.draft-view-controls #draft-fit{min-width:52px;font-size:11px;font-variant-numeric:tabular-nums}
.draft-canvas-controls .playback-tool{flex-direction:row;align-items:center;gap:7px;min-height:36px;font-size:10px}.draft-canvas-controls .playback-tool svg{width:28px;height:28px}
.draft-board{position:relative;border:1px solid #dce5d9;border-radius:16px;overflow:hidden;background:#fff;box-shadow:inset 0 0 24px #25313703}
.draft-board canvas{display:block;width:100%;height:clamp(220px,calc(100dvh - 425px),550px);touch-action:none;outline-offset:-4px;user-select:none}
.draft-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;color:#77877a;gap:8px}
.draft-empty strong{font-size:20px;font-weight:500}.draft-empty span{font-size:12px}
.draft-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px}
.draft-status{font-size:11px;color:var(--muted);margin:7px 0;line-height:1.6}
.draft-current-preview{font-size:11px;color:#65785c;white-space:nowrap}
.draft-gallery{position:relative;min-width:0;border-inline-start:1px solid #edf0eb;padding-inline-start:22px}
.draft-gallery-content{position:absolute;inset:0 0 0 22px;display:flex;flex-direction:column;min-height:0}
.draft-gallery header{padding:2px 0 14px}.draft-gallery h3{font-size:16px;font-weight:550;color:#2b352b;letter-spacing:-.3px}
.draft-gallery header p{font-size:11px;color:#8c948d;margin-top:3px}
.draft-preview-list{position:relative;overflow:auto;flex:1;min-height:0;padding:0 5px 0 0;scrollbar-width:thin;scrollbar-color:#cbd3c7 transparent;overscroll-behavior:contain}
.draft-preview-heading{font-size:10px;letter-spacing:1px;color:#919b90;padding:14px 10px 7px;text-transform:uppercase}
.draft-preview-row{display:flex;align-items:center;gap:13px;min-height:76px;padding:4px 10px;border-radius:12px;cursor:pointer;position:relative;outline-offset:-2px;transition:background .15s;color:#6b746b}
.draft-preview-row:hover{background:#f6f8f3}.draft-preview-row[aria-selected=true]{background:#edf3e8;color:#263e27}
.draft-preview-row[aria-selected=true]::after{content:'';width:5px;height:5px;border-radius:50%;background:#789c69;margin-inline-start:auto;flex-shrink:0}
.draft-preview-row[aria-disabled=true]{opacity:.4;cursor:default}
.draft-preview-row canvas{width:64px;height:64px;flex-shrink:0;pointer-events:none;border-radius:7px}
.draft-preview-name{font-size:13px;font-weight:500;white-space:nowrap}
.draft-gallery-note{font-size:10px;line-height:1.6;color:#91988e;padding:12px 4px 0;min-height:28px}
.draft-footer{display:flex;align-items:flex-start;gap:24px;justify-content:space-between;border-top:1px solid #edf0eb;margin-top:16px;padding-top:14px}
.draft-meta{flex:1;min-width:0}.draft-meta summary{font-size:12px;color:#838c81;cursor:pointer;padding:10px 0;width:max-content}
.draft-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:8px 0 4px;max-width:620px}
.draft-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}
.draft-fields input{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 12px;color:var(--ink);font:inherit}
.draft-actions{display:flex;gap:10px;justify-content:flex-end}.draft-actions .primary-button{min-width:150px;background:#344839}
.draft-message{font-size:12px;line-height:1.6;color:#91643d}
@media(max-width:900px){.drawing-sheet{padding:22px}.draft-layout{grid-template-columns:minmax(0,1fr) 195px;gap:18px}.draft-gallery{padding-inline-start:14px}.draft-gallery-content{inset-inline-start:14px}.draft-preview-row{gap:8px;padding-inline:7px}.draft-preview-row canvas{width:56px;height:56px}.draft-board canvas{height:clamp(200px,calc(100dvh - 425px),480px)}}
@media(max-width:640px){
 .drawing-sheet{padding:18px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100svh - 24px)}
 .drawing-sheet .sheet-header{margin-bottom:12px}.drawing-sheet .sheet-header h2{font-size:21px}.drawing-sheet .sheet-header p{font-size:11px}
 .draft-layout{display:flex;flex-direction:column;gap:6px}.draft-tools.paper-tools{gap:0;padding:12px 0 0;justify-content:space-between}.draft-tools .tool{min-width:36px;padding-inline:3px;font-size:9px}.draft-tools .tool-divider{margin-inline:2px}.draft-canvas-controls .playback-tool span{display:none}
 .draft-board canvas{height:clamp(180px,calc(100dvh - 610px),340px)}.draft-empty strong{font-size:18px}
 .draft-gallery{border-inline-start:0;border-top:1px solid #edf0eb;padding:12px 0 0}.draft-gallery-content{position:static}.draft-gallery header{padding:0 0 7px}.draft-gallery h3{font-size:13px}.draft-gallery header p,.draft-gallery-note{display:none}
 .draft-preview-list{display:grid;grid-template-columns:1fr 1fr;flex:auto;max-height:150px;gap:2px 4px;padding:0 3px 0 0}
 .draft-preview-heading{grid-column:1/-1;padding:8px 8px 3px}.draft-preview-row{min-height:58px;gap:6px;padding:2px 7px}.draft-preview-row canvas{width:48px;height:48px}.draft-preview-name{font-size:12px}
 .draft-footer{margin-top:12px;padding-top:10px;gap:8px;flex-wrap:wrap}.draft-meta{flex-basis:100%}.draft-meta summary{padding:3px 0}.draft-actions{width:100%;margin-top:3px}.draft-actions .primary-button{flex:1}.draft-fields input{font-size:16px}.draft-fields{gap:10px}
}
@media(prefers-reduced-motion:reduce){.draft-preview-row{transition:none}}

.draft-tutorial{display:flex;flex-direction:column;gap:14px;min-width:0;border-inline-start:1px solid var(--line);padding-inline-start:22px}
.lesson-step-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.lesson-level{padding:5px 8px;border-radius:20px;background:var(--lilac,#eee9fa);color:var(--ink)}
.draft-tutorial progress{appearance:none;width:100%;height:5px;border:0;border-radius:8px;background:#e7e9e2;overflow:hidden}
.draft-tutorial progress::-webkit-progress-bar{background:#e7e9e2;border-radius:8px}.draft-tutorial progress::-webkit-progress-value{background:#82976b;border-radius:8px}.draft-tutorial progress::-moz-progress-bar{background:#82976b;border-radius:8px}
.draft-tutorial h3{font-size:13px;color:#839077;font-weight:500;margin-top:8px}
.lesson-instruction{font-size:19px;line-height:1.7;color:var(--ink);min-height:70px}
.lesson-step-hint{font-size:11px;line-height:1.8;color:var(--muted)}
.lesson-step-actions{display:grid;gap:8px;margin-top:auto}.lesson-replay{border:1px solid var(--outline,#cad0c7);background:var(--cream,#f5f5e9);border-radius:12px;padding:11px 8px;font-size:12px;min-height:44px}.lesson-step-actions .text-button{font-size:12px;min-height:40px}
.lesson-references{font-size:10px;color:var(--muted);line-height:1.8;padding-top:6px;border-top:1px solid var(--line)}.lesson-references summary{cursor:pointer;padding:5px 0}.lesson-references p{margin:6px 0}.lesson-references a{display:block;color:inherit;text-underline-offset:3px;padding:3px 0}
@media(max-width:640px){
 .draft-tutorial{border-inline-start:0;border-top:1px solid var(--line);padding:12px 0 0;gap:8px}
 .draft-tutorial h3{margin-top:0}.lesson-instruction{font-size:16px;line-height:1.5;min-height:0}.lesson-step-hint{font-size:10px}
 .lesson-step-actions{grid-template-columns:1fr 1fr;margin-top:0}.lesson-references{font-size:10px}
 .is-guided .draft-board canvas{height:clamp(230px,40svh,390px)}
}

/* Names and descriptions are edited where they are displayed. */
.draft-heading{flex:1;min-width:0}
.draft-inline-display{display:block;max-width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:start;white-space:normal;overflow-wrap:anywhere;cursor:text;border-radius:5px}
.draft-inline-display:hover{background:var(--lilac)}
.draft-inline-display:focus-visible{outline:2px solid var(--outline);outline-offset:4px}
.draft-heading input{width:100%;max-width:630px;color:inherit;font:inherit;line-height:inherit;border:0;border-bottom:1.5px solid var(--outline);border-radius:0;background:transparent;padding:0;outline-offset:4px}
.draft-heading #draft-hint{font-size:14px}
.draft-footer{justify-content:flex-end}
.draft-message[hidden]{display:none}
