[data-editor-desk]{grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);gap:0;align-items:start;font-family:var(--sans)}
[data-editor-desk] > .studio-panel{min-width:0}
[data-editor-desk] .studio-paper{border-left:1px solid var(--line);background:var(--paper-2)}
[data-editor-desk] .studio-paper .studio-toolbar{align-items:flex-start}
[data-editor-desk] .studio-canvas{display:block;object-fit:contain;width:100%;max-height:min(60vh,610px);margin:auto;background:var(--paper);border:1px solid var(--line);border-radius:8px}
[data-editor-desk][data-layout="template"] .studio-canvas{height:min(64vh,590px)}
[data-editor-desk] .editor-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
[data-editor-desk] .editor-tools > :is(button,a),[data-editor-desk] .common-button{min-height:40px}
[data-editor-desk] .studio-field{min-width:0;font-weight:700}
[data-editor-desk] .studio-field :is(input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea){max-width:100%;min-width:0;background:var(--paper);font-weight:400}
[data-editor-desk] :is(input,select,textarea,summary,button,a):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[data-editor-desk] .studio-line{min-width:0}
[data-editor-desk] .study-references:empty,[data-editor-desk] [hidden]{display:none!important}
[data-editor-desk] .study-references{display:flex;flex-wrap:wrap;gap:8px}
[data-editor-desk] .study-references figure{min-width:0;margin:0}
[data-editor-desk] .study-references .studio-ref{width:min(98px,24vw);height:92px;object-fit:contain}
[data-editor-desk] .editor-jump{display:none}
[data-editor-desk] details.editor-fold{border-block-start:1px solid var(--line);padding-block-start:9px}
[data-editor-desk] details.editor-fold > summary{cursor:pointer;font-weight:700;color:var(--berry-ink);margin-bottom:8px}
[data-gf-tool="oc-outfit-ideas"] > [data-catalog],[data-gf-tool="oc-pose-ideas"] > [data-catalog]{display:none}
[data-study-library] [data-catalog]{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:385px;overflow:auto;margin:0;padding:2px 3px 3px;scrollbar-gutter:stable}
[data-study-library] .studio-example{padding:0;min-width:0}
[data-study-library] .render-thumb{min-height:0;aspect-ratio:1.9;display:grid;place-items:center;overflow:hidden}
[data-study-library] .render-thumb canvas{width:100%;height:auto}
[data-study-library] .example-copy{padding:6px;min-width:0}
[data-study-library] .example-copy h3{font-size:.9rem;line-height:1.15;margin:3px 0}
[data-study-library] .example-copy p:not(.example-tag){font-size:.81rem;line-height:1.24;margin-block:4px}
[data-study-library] .example-copy .common-button{font-size:.78rem;padding-inline:7px}
[data-study-library] .example-tag{font-size:.7rem}
[data-editor-desk] .studio-code{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:720px){
  [data-editor-desk].studio-desk{grid-template-columns:minmax(0,1fr)}
  [data-editor-desk].studio-desk > .studio-paper{grid-row:auto;border-left:0;border-top:1px solid var(--line);border-bottom:0}
  [data-editor-desk] > .studio-panel{padding:13px}
  [data-editor-desk].studio-desk > .studio-paper .studio-canvas{height:auto;max-height:360px}
  [data-editor-desk][data-layout="template"] > .studio-paper .studio-canvas{height:min(58vh,430px);max-height:none}
  [data-editor-desk] .editor-jump{display:inline-flex;align-items:center;min-height:36px;color:var(--berry-ink);font-weight:700}
  [data-editor-desk] .studio-field :is(input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea){font-size:16px}
  [data-editor-desk] :is(.studio-grid2,.studio-grid3,.studio-grid4){grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
}
@media(max-width:380px){
 [data-editor-desk] :is(.studio-grid3,.studio-grid4){grid-template-columns:minmax(0,1fr)}
}

[data-oc-editor-guide]{margin-block:25px;scroll-margin-top:80px}
[data-oc-editor-guide] > h2{margin-bottom:5px}
[data-oc-editor-guide] > p{color:var(--muted);margin:0 0 12px}
.editor-example-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:780px}
.editor-example-grid[data-pair]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
.editor-example-grid figure{min-width:0;margin:0;padding:8px;background:var(--white);border:1px solid var(--line);border-radius:8px}
.editor-example-grid a{display:block}
.editor-example-grid img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;background:var(--paper-2);border-radius:5px}
.editor-example-grid[data-pair] img{aspect-ratio:4/3}
.editor-example-grid figcaption{margin-top:6px;color:var(--muted);font-size:.87rem}
.editor-example-grid figcaption strong{display:block;color:var(--ink);font-weight:800;margin-bottom:2px}
.editor-how ol{list-style:decimal;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px;padding-left:21px}
.editor-how li{padding-left:1px}
.editor-how li::marker{color:var(--berry-ink);font-weight:800}
.editor-how strong{display:block}
.editor-how p{font-size:.90rem;color:var(--muted);margin:2px 0 0}
@media(max-width:600px){.editor-how ol{grid-template-columns:minmax(0,1fr);gap:6px}.editor-example-grid[data-pair] figure{padding:5px}}

/* The introduction belongs to this editor page. */
.shell:has(> [data-gf-tool="oc-reference-sheet-maker"]) > .studio-intro h1{font-size:clamp(1.85rem,3vw,2.5rem);line-height:1.08}
@media(min-width:900px){.shell:has(> [data-gf-tool="oc-reference-sheet-maker"]) > .studio-intro h1{white-space:nowrap}}
@media(max-width:720px){.shell:has(> [data-gf-tool="oc-reference-sheet-maker"]) > .studio-intro h1{font-size:28px;white-space:normal}}
[data-editor-desk].studio-desk{border:2px solid var(--ink);box-shadow:0 5px 0 var(--ink);margin-block-end:5px}
[data-editor-desk] > .studio-paper{background-color:var(--paper-2);background-image:radial-gradient(#dac9b6 1px,transparent 1px);background-size:15px 15px}
[data-editor-desk] .primary-button,.template-mobile-bar .primary-button{border:2px solid var(--ink);box-shadow:0 2px 0 var(--ink);font-weight:800}
[data-editor-desk] .primary-button:not(:disabled):active,.template-mobile-bar .primary-button:active{transform:translateY(2px);box-shadow:none}
.editor-member-note{margin:0;font-size:.89rem;color:var(--muted)}
.editor-member-note button{cursor:pointer;border:0;background:none;padding:4px 0;color:var(--berry-ink);text-decoration:underline;font:inherit;font-weight:800}
.editor-member-note button:focus-visible,.editor-segments button:focus-visible,.study-presets button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.editor-member-note button + span{margin-inline-start:.35rem}
@media print{body[data-print-template] [data-editor-desk].studio-desk{border:0;box-shadow:none;margin:0}body[data-print-template] [data-editor-desk] > .studio-paper{background:white}.template-mobile-bar{display:none!important}}
[data-editor-desk] > .studio-paper .studio-canvas{border:2px solid var(--ink);box-shadow:0 2px 0 var(--ink)}
@media print{body[data-print-template] [data-editor-desk] > .studio-paper .studio-canvas{border:0;box-shadow:none}}

[data-layout="reference-desk"].studio-desk > .studio-paper{align-self:stretch;display:flex;flex-direction:column;min-height:0}
.reference-stage{flex:1;display:grid;place-items:center;min-height:230px}
.reference-stage > *{grid-area:1/1;min-width:0}
.reference-stage.is-empty canvas{opacity:0;pointer-events:none}
.reference-empty{justify-self:stretch;align-self:stretch;display:grid;place-items:center;align-content:center;text-align:center;gap:7px;padding:13px}
.reference-empty p{margin:3px 0 0;color:var(--muted)}
.reference-empty button:not(.primary-button){cursor:pointer;border:0;background:none;padding:6px 0;color:var(--berry-ink);text-decoration:underline;font-family:var(--sans);font-weight:800}
[data-layout="reference-desk"].studio-desk > .studio-paper .studio-canvas{margin:0;max-height:none}
@media(max-width:720px){.reference-stage.is-empty{min-height:184px}.reference-stage.is-empty .studio-canvas{height:1px}}
.reference-stage.is-empty .reference-empty{border:2px solid var(--ink);border-radius:8px;background:var(--paper);box-shadow:0 2px 0 var(--ink)}
@media(max-width:720px){[data-editor-desk] [data-sheet-profile]{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}}

.sheet-gallery-request{padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--paper-2)}
.sheet-gallery-request p{margin:0;color:var(--ink)}
.sheet-gallery-original{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--white);font-size:.9rem;line-height:1.35}
.sheet-gallery-original img{flex:0 0 auto;width:clamp(136px,40vw,192px);aspect-ratio:3/2;height:auto;background:var(--paper-2);object-fit:contain;border-radius:5px}
.sheet-gallery-original>div{min-width:0}
.sheet-gallery-original a{color:var(--berry-ink);text-decoration:underline}
#reference-desk-preview{scroll-margin-top:72px}
@media(max-width:720px){.sheet-gallery-original .sheet-edit-views{display:flex;margin-top:4px}}
