.study-references{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.study-references:empty{display:none}.study-references figure{padding:7px;background:#fff;border:1px solid var(--line);border-radius:8px}
.catalog .example-copy{flex:1}
.catalog .example-copy .common-button{align-self:end}
.catalog .render-thumb{border-bottom:1px solid var(--line)}

[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-pose-ideas"]) > .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-pose-ideas"]) > .studio-intro h1{white-space:nowrap}}
@media(max-width:720px){.shell:has(> [data-gf-tool="oc-pose-ideas"]) > .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}}

.study-presets{display:grid;gap:5px}
.study-presets > h3{font:800 .88rem/1.2 var(--sans);margin:0}
.study-presets-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:4px;min-width:0}
.study-presets button{min-width:0;display:grid;align-content:start;gap:4px;background:white;border:1px solid var(--line);padding:3px;border-radius:7px;cursor:pointer;text-align:left;font:700 .73rem/1.1 var(--sans);color:var(--ink);overflow-wrap:break-word}
.study-presets button:hover{border-color:var(--berry-ink)}
.study-presets button[aria-pressed=true]{background:var(--lav);color:var(--berry-ink);border-color:var(--berry-ink);box-shadow:0 0 0 1px var(--berry-ink)}
.study-presets button canvas{width:100%;height:auto;display:block;border-radius:4px}
.study-presets button span{padding:0 2px 3px}
[data-study-library] > summary{min-height:30px}
.editor-example-grid[data-pair]{position:relative;gap:22px}
.editor-example-grid[data-pair] > figure+figure::before{position:absolute;content:"→";display:grid;place-items:center;left:50%;top:42%;transform:translate(-50%,-50%);width:25px;height:25px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--berry-ink);font-weight:800}
.editor-artwork-link{margin-top:11px;color:var(--muted)}
.editor-artwork-link a{color:var(--berry-ink);font-weight:800}
@media(max-width:580px){
  .study-presets-track{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(72px,23%);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;scrollbar-width:thin}
  .study-presets button{scroll-snap-align:start}
  .editor-example-grid[data-pair]{gap:14px}
  .editor-example-grid[data-pair] > figure+figure::before{width:19px;height:19px;top:37%}
}

[data-study-art][hidden]{display:none}
.study-presets button img{width:100%;height:auto;display:block;border-radius:4px}
