/* Calm is the chosen working direction; playful remains a review option. */
.studio[data-look][open]{grid-template-columns:minmax(0,1fr);grid-template-rows:52px minmax(0,1fr) auto;background:#fff;color:#333d37}
.studio[data-look] .studio-header{background:transparent;border:0;padding:4px 12px;min-height:52px;gap:8px}
.studio[data-look] .studio-identity{position:relative;gap:0;max-width:160px}
.studio[data-look] .studio-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.studio[data-look] .mode-symbol{position:absolute;left:12px;width:17px;height:17px;pointer-events:none;z-index:1;display:grid;place-items:center}
.studio[data-look] #studio-mode{padding:8px 6px 8px 35px;max-width:160px;min-height:44px;font-size:12px;font-weight:650;border-radius:15px;letter-spacing:-.01em}
.studio[data-look] .studio-header-tools{gap:6px}
.studio[data-look] .studio-header-tools .tool-button{width:42px;min-width:42px;height:42px;min-height:42px;padding:10px;border-radius:50%;letter-spacing:0;display:grid;place-items:center}
.studio[data-look] .studio-header svg{width:20px;height:20px}
.studio[data-look] .studio-menu{top:52px}
.studio[data-look] .drawing-area{background:transparent}
.studio[data-look] .studio-dock{width:calc(100% - 20px);max-width:410px;min-width:0;margin:0 auto 10px;padding:4px 7px 5px;border:1px solid #e6e8e1;border-radius:25px;background:#fbfcf8;box-shadow:0 5px 24px #3344330a;z-index:2}
.studio[data-look] .palette{border:0;background:transparent;padding:0;min-height:44px;gap:0;display:flex;justify-content:center;grid-row:auto;grid-column:auto}
.studio[data-look] .palette .color{border:0;border-radius:50%;height:44px;flex:1 1 40px;max-width:44px;min-width:0;width:auto;padding:0}
.studio[data-look] .color::before{inset:9px 7px;border:1px solid #00000012;transition:inset .12s,box-shadow .12s}
.studio[data-look] .color[aria-pressed=true]::before{inset:6px 4px;box-shadow:0 0 0 2px #fbfcf8,0 0 0 3px #566050}
.studio[data-look] .color[data-color="#FFFFFF"]::before{border:1.5px solid #26302b;background:white}
.studio[data-look] .color span{font-size:12px;text-shadow:none;color:#203529}
.studio[data-look] .studio-controls{background:transparent;min-height:42px;padding:2px 0 0;position:static;width:auto;margin:0;gap:0;flex-direction:row}
.studio[data-look] .studio-controls[hidden]{display:none}
.studio[data-look] .brush-sizes{gap:7px;padding:0}
.studio[data-look] .brush-sizes button{width:58px;min-width:58px;height:40px;border-radius:13px;border:1px solid transparent;background:transparent;color:#6c776b;padding:8px 14px}
.studio[data-look] .brush-sizes button[aria-pressed=true]{background:#e6ece0;border-color:#d6decf;color:#304b35}
.studio[data-look] .brush-sizes svg{width:26px;height:24px}
.studio[data-look] .studio-status{bottom:5px;background:#f5f8f0eb;color:#54634f}
.studio[data-look=calm] .studio-header-tools .tool-button,.studio[data-look=calm] #studio-mode{background:#f6f7f3;border:1px solid #e9ebe4}
.studio[data-look=calm] #close-studio{background:#3c5443;color:white;border-color:#3c5443}
.studio[data-look=calm] .paper{box-shadow:none}
.studio[data-look=playful][open]{background:#eaf3f4;color:#30464d}
.studio[data-look=playful] .studio-header{padding-inline:10px}
.studio[data-look=playful] #studio-mode{background:#fffefa;border:1.5px solid #c9dce0;box-shadow:0 2px 0 #cfdee0;border-radius:14px}
.studio[data-look=playful] .studio-header-tools .tool-button{background:#fffefa;border:1.5px solid #c9dce0;box-shadow:0 2px 0 #cfdee0;border-radius:14px}
.studio[data-look=playful] #close-studio{background:#f3ae8d;border-color:#dc9271;box-shadow:0 2px 0 #df9a7c;color:#643a27}
.studio[data-look=playful] .paper{border-radius:16px;box-shadow:0 3px 15px #5072760b}
.studio[data-look=playful] .drawing-area{padding:0 6px}
.studio[data-look=playful] .studio-dock{margin-bottom:12px;background:#fffcf3;border:1.5px solid #d7dfca;box-shadow:0 4px 0 #d6e0d1;border-radius:22px;padding:5px 7px}
.studio[data-look=playful] .color::before{border:1px solid #00000018;inset:8px 6px}
.studio[data-look=playful] .color[aria-pressed=true]::before{inset:5px 3px;box-shadow:0 0 0 2px #fffcf3,0 0 0 3.5px #617c6a}
.studio[data-look=playful] .color[data-color="#FFFFFF"]::before{border:1.5px solid #26302b}
.studio[data-look=playful] .brush-sizes{gap:9px}
.studio[data-look=playful] .brush-sizes button{border-radius:11px;padding:5px 15px;color:#748b83}
.studio[data-look=playful] .brush-sizes button[aria-pressed=true]{background:#e5eddc;border:1.5px solid #c5d5b8;color:#3e6e54;box-shadow:0 2px 0 #d0dec5}
.studio[data-look=playful] .brush-sizes svg{height:28px;width:25px}
@media(max-width:359px){.studio[data-look] .studio-header{padding-inline:7px;gap:3px}.studio[data-look] .studio-header-tools{gap:3px}.studio[data-look] #studio-mode{font-size:11px;max-width:144px;padding-left:30px}.studio[data-look] .mode-symbol{left:9px;width:15px}.studio[data-look] .studio-header-tools .tool-button{width:40px;min-width:40px;height:42px}.studio[data-look] .studio-dock{width:calc(100% - 12px);padding-inline:4px}.studio[data-look] .color::before{inset-inline:6px}.studio[data-look] .color[aria-pressed=true]::before{inset-inline:3px}}
@media(max-height:450px) and (orientation:landscape){.studio[data-look][open]{grid-template-columns:minmax(0,1fr) 144px;grid-template-rows:52px minmax(0,1fr)}.studio[data-look] .studio-header{grid-column:1/-1}.studio[data-look] .studio-dock{grid-row:2;grid-column:2;align-self:center;width:140px;max-width:none;margin:0 3px 5px 0;padding:4px 2px;border-radius:18px}.studio[data-look] .palette{display:grid;grid-template-columns:repeat(3,44px);grid-auto-rows:44px;align-content:start;min-height:0}.studio[data-look] .palette .color{width:44px;max-width:none;height:44px}.studio[data-look] .studio-controls{height:42px;min-height:42px;position:static;display:flex}.studio[data-look] .studio-controls[hidden]{display:none}.studio[data-look] .brush-sizes{gap:0;flex-direction:row}.studio[data-look] .brush-sizes button{width:44px;min-width:44px;padding:7px}.studio[data-look] .studio-controls{width:100%}}
@media(prefers-reduced-motion:reduce){.studio[data-look] .color::before{transition:none}}
.studio[data-look=calm] #studio-mode:focus-visible{outline:2px solid #73886d;outline-offset:2px}
.studio[data-look=playful] #studio-mode:focus-visible{outline:2px solid #688992;outline-offset:2px}

/* A separate header slot keeps the color example outside all paint geometry. */
.studio[data-look][open]{grid-template-rows:auto minmax(0,1fr) auto}
.studio[data-look] .studio-header{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:8px;width:100%;max-width:900px;min-height:90px;margin:0 auto;padding:6px 12px}
.studio[data-look] .studio-reference{grid-column:1;grid-row:1;margin:0;width:64px;height:78px;padding:3px;border:1px solid #e0e6dc;border-radius:11px;background:#fff;display:grid;place-items:center;overflow:hidden}
.studio-reference img{width:100%;height:100%;min-height:0;object-fit:contain;display:block}
.studio[data-look] .studio-identity{grid-column:2;grid-row:1;width:100%;min-width:0}
.studio[data-look] #studio-mode{width:100%;max-width:100%;min-width:0}
.studio[data-look] .studio-header-tools{grid-column:3;grid-row:1}
.studio[data-look] .studio-menu{top:calc(100% - 2px)}
.studio[data-look] .drawing-area{align-items:start}
@media(max-width:359px){.studio[data-look] .studio-header{grid-template-columns:52px minmax(0,1fr) auto;gap:5px;min-height:74px;padding:4px 7px}.studio[data-look] .studio-reference{width:52px;height:64px;padding:2px;border-radius:9px}}
@media(max-height:450px) and (orientation:landscape){.studio[data-look][open]{grid-template-rows:64px minmax(0,1fr)}.studio[data-look] .studio-header{grid-template-columns:44px minmax(0,1fr) auto;min-height:64px;padding-block:4px}.studio[data-look] .studio-reference{width:44px;height:54px;padding:2px;border-radius:8px}}

/* Collection pages keep the artwork and its natural aspect ratio. */
.scenes-intro{padding-block:34px 28px}
.scenes-intro p{margin-block:15px 20px;color:var(--muted)}
.scene-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,165px),1fr));gap:14px;padding-bottom:48px}
.scene-card{display:block;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-decoration:none}
.scene-card:hover{border-color:var(--green)}
.scene-card img{width:100%;aspect-ratio:4/5;object-fit:contain;padding:6px}
.scene-card span{display:block;padding:8px 10px 12px;font-size:.88rem;font-weight:650;overflow-wrap:anywhere}
.studio[data-scene][data-look] .studio-header{grid-template-columns:minmax(0,1fr) auto;min-height:52px}
.studio[data-scene][data-look] .studio-identity{grid-column:1;max-width:none}
.studio[data-scene][data-look] .studio-title{position:static;width:auto;height:auto;clip:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.studio[data-scene][data-look] .studio-header-tools{grid-column:2}
.studio[data-scene] .paper{aspect-ratio:auto}
@media(max-width:430px){.scene-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-height:450px) and (orientation:landscape){.studio[data-scene][data-look][open]{grid-template-rows:52px minmax(0,1fr)}}
@media print{.print-page[data-orientation=landscape]{page:scene-landscape}.print-page[data-orientation=landscape] img{max-height:174mm}}
@page scene-landscape{size:A4 landscape;margin:12mm}
.scene-page .detail-layout>*{min-width:0}
.scene-page .detail-copy h1,.scene-page .breadcrumbs span{overflow-wrap:anywhere}

/* A fixed phone-friendly stage with independently positioned, unstretched artwork. */
.studio[data-scene][data-look] .drawing-area{display:flex;align-items:center;justify-content:center;padding:4px 8px;min-width:0}
.scene-stage{position:relative;overflow:hidden;flex:none;background:white;touch-action:none}
.studio[data-scene] .scene-stage .paper{position:absolute;max-width:none;max-height:none}
.scene-stage[data-moving=true],.scene-stage[data-moving=true] canvas{cursor:grab}
.scene-stage[data-moving=true]:active,.scene-stage[data-moving=true]:active canvas{cursor:grabbing}
.studio[data-scene][data-look] .scene-view-tool{font-size:22px;font-weight:550;padding:0}
.studio[data-scene][data-look] .scene-view-tool[hidden]{display:none}
.studio[data-scene][data-look] .scene-view-tool[aria-pressed=true]{background:#dce9d8;border-color:#a6ba9f}
@media(orientation:portrait){
  .studio[data-scene][data-look][open]{grid-template-rows:52px minmax(0,1fr) auto;background:#f5f7f2}
  .studio[data-scene][data-look] .studio-dock{margin-bottom:max(7px,env(safe-area-inset-bottom));background:#fff}
  .studio[data-scene][data-look] .scene-stage{border-radius:10px;box-shadow:0 0 0 1px #dce4d8}
}
.print-options{margin-bottom:12px}
.print-options summary{cursor:pointer;font-weight:650;font-size:.9rem}
.print-options label{display:block;font-size:.84rem;margin:8px 0 4px}
.print-options textarea{display:block;width:100%;max-width:390px;padding:8px;font:inherit;border:1px solid var(--line);border-radius:8px;margin-bottom:8px}
@media print{
  .scene-page .print-page img{max-height:218mm}
  .scene-page .print-page[data-orientation=landscape] img{max-height:132mm}
  .scene-page .print-page{page:scene-portrait}
  .scene-page .print-page[data-orientation=landscape]{page:scene-landscape}
  .printed-notes{margin-top:4mm;font-size:10pt;break-inside:avoid}
  .printed-notes hr{height:7mm;border:0;border-bottom:1px solid #ccc;margin:0}
  .printed-note-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.35;margin-top:2mm}
}
@page scene-portrait{size:A4 portrait;margin:12mm}

/* The sample starts in the header and can be placed anywhere in the studio. */
.studio[data-scene][data-look][data-numbered-art] .studio-header{position:static;grid-template-columns:64px minmax(0,1fr) auto;min-height:86px}
.studio[data-scene][data-look][data-numbered-art] .studio-identity{grid-column:2;max-width:160px}
.studio[data-scene][data-look][data-numbered-art] .studio-header-tools{grid-column:3}
.studio[data-scene][data-look][data-numbered-art] .studio-title{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0)}
@media(orientation:portrait){
  .studio[data-scene][data-look][data-numbered-art][open]{grid-template-rows:auto minmax(0,1fr) auto}
}
.studio[data-numbered-art] .studio-menu{top:68px;right:max(12px,calc((100% - 876px)/2));z-index:9}
.studio[data-numbered-art] .scene-reference-slot{grid-column:1;grid-row:1;align-self:center}
.scene-reference{position:relative;width:64px;height:76px;padding:3px;border:1px solid #dce4d8;border-radius:11px;background:white;box-shadow:0 2px 8px #26302b15}
.scene-reference.is-floating{position:absolute;z-index:7}
.scene-reference img{display:block;width:100%;height:100%;object-fit:contain;cursor:grab;touch-action:none;user-select:none}
.scene-reference img:active{cursor:grabbing}
#reference-hide{position:absolute;bottom:-4px;right:-4px;width:26px;height:26px;border:1px solid #dce4d8;border-radius:50%;background:white;color:#304b35;font:700 17px/1 system-ui;cursor:pointer}
#reference-show{min-height:42px;padding:4px;width:100%;font-size:.66rem}
@media(max-width:359px),(max-height:450px) and (orientation:landscape){
  .studio[data-scene][data-look][data-numbered-art] .studio-header{grid-template-columns:48px minmax(0,1fr) auto;min-height:68px}
  .scene-reference{width:44px;height:57px}
  #reference-hide{width:24px;height:24px}
  #reference-show{font-size:.6rem}
}
.scene-card-detail{display:block;text-decoration:none}
.scene-card-play{display:block;margin:0 10px 10px;padding:7px 9px;width:fit-content;border-radius:8px;background:#edf3e8;color:#304b35;font-size:.82rem;font-weight:650;text-decoration:none}
.scene-print{margin-block:26px 20px}
.scene-print h2{font-size:1.05rem;margin:0 0 6px}
.scene-print-option,.scene-next{display:flex;gap:6px 18px;flex-wrap:wrap}
.scene-next{padding-top:12px;border-top:1px solid var(--line)}
