:root{--paper:#f7f6f2;--ink:#343432;--muted:#78756f;--line:#ddd9d1;--plum:#80024e;--teal:#40786f;--serif:Georgia,"Songti SC","STSong","Yu Mincho",serif;color:var(--ink);background:var(--paper);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}button,a,input,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--plum);outline-offset:5px}::selection{background:#e4d1df}button{ -webkit-tap-highlight-color:transparent }[hidden]{display:none!important}.skip{position:absolute;top:-100px}.skip:focus{top:8px;left:20px;background:var(--paper);padding:8px;z-index:50}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px 32px}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand>span:last-child{font:13px Georgia,"Songti SC",serif;letter-spacing:.05em}.monogram{font:500 44px/1 Georgia;color:var(--plum)}.site-header nav{display:flex;gap:29px;align-items:center}.site-header nav a{font-size:14px;min-height:44px;display:inline-flex;align-items:center}.site-header nav a[aria-current]{color:var(--plum)}a:hover{color:var(--plum)}
main{max-width:1320px;margin:auto;padding:0 52px;min-height:calc(100vh - 200px)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:400}button{border:0;background:none}.eyebrow{font-size:11px;letter-spacing:.14em;color:var(--muted)}.accent{color:var(--plum)}.serif{font-family:var(--serif)}
.collection-heading{padding:65px 0 38px;display:flex;justify-content:space-between;gap:40px;align-items:flex-end}.collection-heading h1{font-size:clamp(52px,7vw,86px);letter-spacing:-.055em;line-height:1.15;margin:14px 0 0}.collection-heading h1 em{color:var(--plum);font-weight:400;font-size:.66em;margin-left:17px;letter-spacing:-.04em}.collection-heading .intro{max-width:245px;font-size:14px;color:var(--muted);line-height:1.9;margin-bottom:5px}.collection-heading .intro span{display:block;color:var(--ink)}
.collection-toolbar{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:0 0 15px;border-bottom:1px solid var(--line);margin-bottom:28px}.filters{display:flex;gap:26px}.filters button{position:relative;padding:10px 0;font-size:13px;min-height:44px;color:var(--muted)}.filters button[aria-pressed=true]{color:var(--plum)}.filters button[aria-pressed=true]::after{content:'';height:2px;background:var(--plum);position:absolute;bottom:-16px;left:0;right:0}.collection-note{font-size:11px;color:var(--muted);margin:0}
.collection-grid{display:grid;grid-template-columns:minmax(0,1.52fr) minmax(0,1fr);gap:28px 34px;align-items:start}.specimen{min-width:0}.specimen.featured{grid-row:span 2}.specimen-stage{position:relative;overflow:hidden;background:#eae6e5;border-radius:3px}.featured .specimen-stage{height:654px}.specimen:not(.featured) .specimen-stage{height:260px}.specimen-stage iframe{width:100%;height:100%;border:0;display:block}.specimen:not(.featured) iframe{position:absolute;width:145%;height:145%;left:-22.5%;top:-22.5%;transform:scale(.69)}
.specimen-index{position:absolute;left:17px;top:14px;z-index:1;color:#fff9;font:12px Georgia;pointer-events:none}.quiet .specimen-index{color:#887988}.stage-link{position:absolute;inset:0;z-index:2}.stage-link:focus-visible{outline-offset:-5px}.specimen-label{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:15px 0 0}.specimen-label h2{font-size:25px;margin:0;line-height:1.35}.specimen-label h2 span{color:var(--muted);font-style:italic;font-size:17px;margin-left:12px}.enter-link{display:flex;align-items:center;gap:12px;min-height:44px;font-size:12px;white-space:nowrap;color:var(--plum)}.enter-link .arrow{font-size:20px;transition:transform .2s}.enter-link:hover .arrow{transform:translate(2px,-2px)}.specimen-subline{display:flex;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px;margin:1px 0 0}.specimen-subline>span:last-child{font-size:10px;letter-spacing:.04em}.collection-grid.filtered{grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}.collection-grid.filtered .specimen-stage{height:440px}.collection-grid.filtered iframe{position:static;width:100%;height:100%;transform:none}.collection-ending{display:flex;gap:36px;align-items:baseline;border-top:1px solid var(--line);margin-top:56px;padding:23px 0 12px}.collection-ending p{font:italic 20px var(--serif);margin:0;color:var(--muted)}.collection-ending span{font-size:12px;color:var(--muted)}
footer{max-width:1320px;margin:60px auto 0;padding:0 52px 30px;text-align:right;font-size:12px;color:var(--muted)}footer a{min-height:44px;display:inline-flex;align-items:center}
.lab-breadcrumb{display:flex;align-items:center;gap:12px;padding:29px 0 23px;font-size:12px;color:var(--muted)}.lab-breadcrumb a{min-height:32px;display:inline-flex;align-items:center;gap:10px}.lab-breadcrumb .crumb-separator{opacity:.45}.lab-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;padding-bottom:28px}.lab-title-line{display:flex;gap:17px;align-items:baseline}.lab-title-line h1{font-size:62px;line-height:1.15;letter-spacing:-.04em;margin:0}.lab-title-line .english{font:italic 30px Georgia;color:var(--plum)}.lab-heading p{max-width:580px;font-size:13px;color:var(--muted);margin:17px 0 0;line-height:1.85}.lab-sequence{font:14px Georgia;color:var(--muted);margin-bottom:5px}.lab-sequence b{color:var(--plum);font-weight:400}
.workspace{border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) 260px;min-width:0}.preview-area{min-width:0;padding-right:28px;border-right:1px solid var(--line)}.preview-toolbar{height:57px;display:flex;align-items:center;justify-content:space-between;gap:16px}.preview-status{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.status-dot{width:5px;height:5px;background:var(--teal);border-radius:50%}.preview-modes{display:flex;align-items:center;gap:6px}.preview-modes button{font-size:11px;color:var(--muted);padding:6px 10px;min-height:35px;border-radius:3px}.preview-modes button[aria-pressed=true]{color:var(--ink);background:#eae7e0}.preview-stage{position:relative;width:100%;height:510px;background:#e8e5df;overflow:hidden;border-radius:3px;display:flex;justify-content:center;align-items:center}.preview-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;transition:width .25s;left:50%;transform:translateX(-50%);background:var(--paper)}.preview-stage[data-size=compact] iframe{width:min(100%,360px)}.preview-stage iframe.trial{visibility:hidden;pointer-events:none}.preview-bottom{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;color:var(--muted);font-size:11px}.preview-bottom span:last-child{white-space:nowrap;font-size:10px}
.controls-panel{padding:18px 0 0 28px;min-width:0}.control-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.control-heading h2{font-family:inherit;font-size:15px;line-height:1.4;margin:0;font-weight:500}.text-button{padding:6px 0;min-height:35px;font-size:11px;color:var(--muted)}.text-button:hover{color:var(--plum)}.parameter{display:block;margin:0 0 25px}.parameter-head{display:flex;justify-content:space-between;font-size:12px;margin-bottom:14px}.parameter output{font:12px Georgia;color:var(--muted)}input[type=range]{display:block;width:100%;accent-color:var(--plum);height:15px;margin:0;cursor:pointer}input[type=color]{width:100%;height:31px;border:1px solid var(--line);border-radius:3px;padding:3px;background:#eeece6;cursor:pointer}.control-notice{font-size:10px;color:var(--muted);line-height:1.7;min-height:32px;margin:0 0 23px}.preset-label{font-size:10px;color:var(--muted);margin:27px 0 10px}.presets{display:flex;gap:8px}.presets button{border:1px solid var(--line);padding:6px 13px;font-size:11px;border-radius:3px}.presets button[aria-pressed=true]{border-color:#ac7b99;color:var(--plum);background:#ece1e8}.export-actions{border-top:1px solid var(--line);margin-top:32px;padding-top:25px;display:grid;gap:9px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--plum);color:#fff;border:1px solid var(--plum);min-height:44px;padding:10px 17px;border-radius:3px;font-size:12px}.primary:hover{background:#65003d}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);min-height:42px;padding:9px 15px;background:transparent;border-radius:3px;font-size:12px}.secondary:hover{border-color:#a19a8d}.export-note{font-size:10px;color:var(--muted);margin:1px 0 0;line-height:1.7}
.error-banner{padding:13px 16px;border-left:2px solid var(--plum);background:#efe4e9;font-size:12px;margin:0 0 14px;overflow-wrap:anywhere}.error-banner strong{display:block;margin-bottom:3px}.code-section{margin-top:26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.code-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;padding:18px 0;text-align:left;gap:15px}.code-toggle>span:first-child{font-size:14px}.code-toggle small{font-size:11px;color:var(--muted);margin-left:15px;font-weight:400}.code-toggle .plus{font:24px Georgia;color:var(--plum)}.code-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:0 0 12px}.code-tabs{display:flex;gap:21px}.code-tabs button{font-size:12px;padding:9px 1px;color:var(--muted);min-height:40px}.code-tabs button[aria-selected=true]{color:var(--plum);box-shadow:0 1px var(--plum)}.run-button{border:1px solid var(--line);border-radius:3px;font-size:11px;padding:8px 13px;min-height:39px}.code-editor{width:100%;min-height:315px;resize:vertical;border:1px solid var(--line);background:#efede7;color:#46433e;padding:20px 22px;font:12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre;tab-size:2;border-radius:3px}.code-help{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted);padding:8px 0 15px}.dirty-label{color:var(--plum)}
.lab-notes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:80px;padding:36px 0 34px}.lab-notes h2{font-family:inherit;font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 14px}.lab-notes p{font:18px/1.85 var(--serif);margin:0;max-width:570px}.implementation{border-left:1px solid var(--line);padding-left:30px}.implementation p{font-family:inherit;font-size:12px;line-height:1.9;color:var(--muted)}.implementation a{display:inline-block;border-bottom:1px solid #cac3b7;font-size:11px;margin:9px 16px 0 0;min-height:26px}.next-specimen{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 0;border-top:1px solid var(--line)}.next-specimen>span{font-size:11px;color:var(--muted)}.next-specimen a{font:25px var(--serif);display:flex;gap:28px;align-items:center;min-height:44px}.next-specimen a span{font-size:19px;color:var(--plum)}
.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:90;background:#343432;color:#fff;padding:12px 22px;max-width:calc(100% - 35px);font-size:12px;box-shadow:0 8px 20px #0002;border-radius:4px;margin:0;text-align:center}dialog{width:min(640px,calc(100% - 32px));border:1px solid var(--line);border-radius:5px;background:var(--paper);padding:28px;color:var(--ink)}dialog::backdrop{background:#34343270}dialog .close{float:right}dialog h2{font-size:30px;margin:20px 0 14px}dialog p{font-size:12px;color:var(--muted)}dialog textarea{width:100%;height:240px;font:11px/1.6 monospace;padding:12px;border:1px solid var(--line);background:#eeece6;white-space:pre}dialog .dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:16px}
@media(min-width:1450px){.featured .specimen-stage{height:702px}.specimen:not(.featured) .specimen-stage{height:284px}}
@media(max-width:1000px){main{padding:0 32px}.collection-heading{padding-top:45px}.featured .specimen-stage{height:590px}.specimen:not(.featured) .specimen-stage{height:230px}.specimen-label{flex-wrap:wrap;gap:0}.enter-link{margin-left:auto;font-size:11px}.specimen-label h2{font-size:23px}.specimen-label h2 span{font-size:15px;margin-left:8px}.collection-grid{gap:24px}.workspace{grid-template-columns:minmax(0,1fr) 220px}.controls-panel{padding-left:22px}.preview-area{padding-right:22px}.lab-notes{gap:35px}.preview-stage{height:470px}.lab-title-line h1{font-size:54px}}
@media(max-width:720px){.site-header{padding:15px 22px;gap:14px}.brand>span:last-child{font-size:11px}.brand>span:last-child span{display:none}.monogram{font-size:38px}.site-header nav{gap:16px}.site-header nav a{font-size:12px}.site-header nav>a:first-child{display:none}main{padding:0 22px}.collection-heading{padding:40px 0 26px;display:block}.collection-heading h1{font-size:54px}.collection-heading h1 em{display:block;font-size:32px;line-height:1.2;margin:13px 0 0}.collection-heading .intro{max-width:100%;margin:21px 0 0;font-size:12px}.collection-heading .intro span{display:inline;margin-right:5px}.collection-toolbar{gap:12px;margin-bottom:22px}.filters{gap:25px}.filters button{font-size:12px}.collection-note{display:none}.collection-grid,.collection-grid.filtered{display:block}.specimen{margin-bottom:31px}.featured .specimen-stage{height:470px}.specimen:not(.featured) .specimen-stage{height:355px}.specimen:not(.featured) iframe{position:static;width:100%;height:100%;transform:none}.specimen-label{flex-wrap:nowrap}.specimen-label h2{font-size:24px}.specimen-label h2 span{font-size:16px}.specimen-subline{font-size:11px}.collection-ending{display:block;margin-top:35px;padding-top:24px}.collection-ending p{font-size:20px;margin-bottom:10px}.collection-ending span{font-size:11px}footer{padding:0 22px 22px;margin-top:34px}.lab-breadcrumb{padding:20px 0}.lab-heading{padding-bottom:23px;gap:10px}.lab-title-line{display:block}.lab-title-line h1{font-size:47px;display:inline}.lab-title-line .english{font-size:25px;margin-left:13px}.lab-heading p{font-size:12px;line-height:1.9;margin-top:14px}.lab-sequence{display:none}.workspace{display:block}.preview-area{border:0;padding-right:0}.preview-toolbar{height:51px}.preview-stage{height:440px}.preview-bottom{font-size:10px;padding-bottom:18px}.preview-bottom span:last-child{font-size:9px}.controls-panel{border-top:1px solid var(--line);padding:19px 0 0}.control-heading{margin-bottom:20px}.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.parameter{margin-bottom:0}.parameter:last-child{grid-column:1/-1}.parameter-head{margin-bottom:9px}.control-notice{min-height:0;margin:14px 0 0}.preset-label{margin:18px 0 8px}.export-actions{grid-template-columns:1fr 1fr;margin-top:22px;padding-top:20px}.export-note{grid-column:1/-1;font-size:10px}.code-section{margin-top:23px}.code-toggle small{display:none}.code-help{display:block;line-height:1.8}.code-editor{min-height:300px;padding:14px;font-size:11px}.lab-notes{grid-template-columns:1fr;gap:27px;padding:30px 0}.lab-notes p{font-size:17px}.implementation{border:0;padding:0}.implementation p{font-size:11px}.next-specimen a{font-size:23px}.code-tabs{gap:16px}.code-toolbar{gap:8px}.run-button{font-size:10px;padding:8px 10px}}
.collection-toolbar{gap:20px;margin-bottom:0}.filters{gap:22px;flex-wrap:wrap}.filters button[aria-pressed=true]::after{bottom:-16px}.collection-search{display:flex;align-items:center;gap:7px;color:var(--muted);border-bottom:1px solid var(--line);flex:none}.collection-search>span{font:24px Georgia}.collection-search input{width:155px;min-height:38px;background:none;border:0;color:var(--ink);font-size:12px;padding:5px 0;outline-offset:2px}.collection-style-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 0 25px}.style-filters{display:flex;gap:7px;align-items:center}.style-filters button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 10px;font-size:11px;border-radius:3px;color:var(--muted)}.style-filters button[aria-pressed=true]{background:#eae4e6;color:var(--plum)}.filter-label{font-size:10px;color:var(--muted);margin-right:9px}.style-dot{display:inline-block;width:9px;height:9px;border-radius:50%;border:1px solid #c4b8ad;background:#e9e3d9;flex:none}.style-dot.glass{background:linear-gradient(135deg,#e6d4bb,#8ea99d);border-color:#98afa6}.style-dot.soft{background:#d6c6d5;border-color:#baa3ba}.style-dot.all{display:none}.object-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:30px 28px}.object-grid .specimen{grid-column:span 4}.object-grid .featured{grid-column:span 7;grid-row:span 2}.object-grid .specimen:nth-child(2),.object-grid .specimen:nth-child(3){grid-column:span 5}.object-grid .featured .specimen-stage{height:682px}.object-grid .specimen:not(.featured) .specimen-stage{height:280px}.object-grid .object-specimen .specimen-index{color:#766f65}.object-grid .object-specimen .specimen-stage iframe{width:145%;height:145%;left:-22.5%;top:-22.5%;position:absolute;transform:scale(.69)}.object-grid .object-specimen.featured .specimen-stage iframe{position:static;width:100%;height:100%;transform:none}.specimen-material{position:absolute;bottom:13px;right:13px;font-size:9px;line-height:1.2;padding:5px 7px;background:#f7f6f2dd;color:#655d63;border-radius:3px;pointer-events:none}.object-grid .specimen-label h2{font-size:24px}.object-grid .specimen-subline{font-size:11px}.object-grid .specimen-subline>span:last-child{font-size:9px}.object-grid.filtered{grid-template-columns:repeat(2,minmax(0,1fr))}.object-grid.filtered .specimen,.object-grid.filtered .specimen:nth-child(2),.object-grid.filtered .specimen:nth-child(3){grid-column:auto}.object-grid.filtered .specimen-stage{height:360px}.collection-empty{text-align:center;padding:75px 20px 95px;border-top:1px solid var(--line)}.collection-empty h2{font-size:32px;margin:18px 0 12px}.collection-empty p{font-size:13px;color:var(--muted);margin-bottom:23px}.object-heading .lab-title-line{display:block}.object-heading .lab-title-line h1{font-size:clamp(36px,4.5vw,58px);line-height:1.3}.object-heading .lab-title-line .english{display:block;font-size:25px;margin:10px 0 0}.preview-stage{height:var(--preferred-height,510px)}.lab-styles{padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid var(--line)}.lab-styles h2{font:500 13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin:0 0 13px}.lab-style-options{display:flex;flex-wrap:wrap;gap:8px}.lab-style-options a{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:3px;min-height:39px;padding:7px 12px;font-size:11px}.lab-style-options a[aria-current]{color:var(--plum);border-color:#ac7b99;background:#eee3ea}.lab-styles p{font-size:10px;color:var(--muted);margin:11px 0 0}.object-states{display:flex;gap:10px;flex-wrap:wrap;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:19px;font-size:10px;color:var(--muted)}.object-states>span:first-child{margin-right:8px}.state-label{padding:3px 8px;border:1px solid var(--line);border-radius:20px}.code-section{margin-top:18px}.lab-sequence{font:12px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;white-space:nowrap}
@media(max-width:1000px){.filters{gap:15px}.collection-search input{width:130px}.object-grid{gap:28px 22px}.object-grid .specimen{grid-column:span 6}.object-grid .featured{grid-column:span 6}.object-grid .specimen:nth-child(2),.object-grid .specimen:nth-child(3){grid-column:span 6}.object-grid .featured .specimen-stage{height:670px}.lab-style-options{gap:5px}.lab-style-options a{padding:7px 9px}}
@media(max-width:720px){.collection-toolbar{display:block;padding-bottom:0}.filters{gap:19px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%;padding-bottom:8px}.filters button{flex:none}.filters button[aria-pressed=true]::after{bottom:0}.collection-search{border-bottom:0;margin:9px 0}.collection-search input{width:100%;font-size:12px}.collection-style-row{padding:11px 0 22px}.style-filters{gap:5px;flex-wrap:wrap}.filter-label{margin-right:4px}.style-filters button{padding:6px 9px;min-height:36px}.object-grid,.object-grid.filtered{display:block}.object-grid .featured .specimen-stage{height:470px}.object-grid .specimen:not(.featured) .specimen-stage,.object-grid.filtered .specimen-stage{height:335px}.object-grid .object-specimen .specimen-stage iframe{width:145%;height:145%;left:-22.5%;top:-22.5%;position:absolute;transform:scale(.69)}.object-grid .object-specimen.featured .specimen-stage iframe{position:static;width:100%;height:100%;transform:none}.object-heading .lab-title-line h1{display:block;font-size:35px}.object-heading .lab-title-line .english{font-size:22px;margin:8px 0 0}.lab-styles{padding-bottom:18px;margin-bottom:20px}.lab-styles p{font-size:10px}.lab-style-options a{padding:8px 13px;min-height:42px}.preview-stage{height:var(--preferred-height,510px)}.object-states{gap:7px;padding-top:16px}.lab-notes{padding-top:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.style-overview-intro{display:flex;align-items:baseline;justify-content:space-between;gap:24px;border-top:1px solid var(--line);padding:23px 0 26px;margin-top:18px}.style-overview-intro h2{font-size:27px;margin:0}.style-overview-intro p{font-size:12px;color:var(--muted);margin:0}.style-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.style-chapter{min-width:0}.style-chapter-label{padding:0 0 17px}.style-chapter-label .eyebrow{font-size:9px;letter-spacing:.09em}.style-chapter-label h2{font-size:42px;line-height:1.2;margin:9px 0 0}.style-chapter-label h2 a{display:flex;align-items:center;justify-content:space-between;gap:10px}.style-chapter-label h2 span{font:22px Georgia;color:var(--plum)}.style-chapter-stage{position:relative;height:355px;overflow:hidden;background:#e9e5e8;border-radius:3px}.style-chapter-stage iframe{border:0;width:100%;height:100%;display:block;pointer-events:none}.style-chapter-caption{font:italic 18px/1.5 var(--serif);margin:20px 0 10px}.style-chapter-description{font-size:12px;line-height:1.9;color:var(--muted);margin:0;min-height:68px;max-width:30em}.style-chapter-enter{display:inline-flex;align-items:center;gap:25px;font-size:12px;color:var(--plum);min-height:44px;margin-top:9px}.style-chapter-enter span{font-size:19px}.collection-breadcrumb{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 0 18px;font-size:12px;color:var(--muted)}.collection-breadcrumb>a{display:inline-flex;align-items:center;min-height:40px}.collection-breadcrumb nav{display:flex;gap:24px}.collection-breadcrumb nav a{display:inline-flex;align-items:center;gap:7px;min-height:40px}.collection-breadcrumb a[aria-current]{color:var(--plum)}.style-collection-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:44px;padding:20px 0 40px}.style-collection-heading h1{font-size:clamp(58px,6vw,78px);line-height:1.2;letter-spacing:-.045em;margin:11px 0 0}.style-collection-heading h1 em{font-size:.43em;letter-spacing:-.03em;font-weight:400;color:var(--plum);margin-left:24px}.style-collection-heading>p{font-size:13px;line-height:1.9;color:var(--muted);max-width:290px;margin:0 0 6px}.collection-context{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px;margin:0;padding:18px 0 25px}.collection-context>span{font-size:10px}.lab-breadcrumb{flex-wrap:wrap;row-gap:0}
@media(max-width:1000px){.style-overview{gap:22px}.style-chapter-stage{height:330px}.style-chapter-description{min-height:92px}.style-collection-heading{gap:24px}.style-collection-heading h1 em{display:block;margin:12px 0 0}.style-collection-heading>p{max-width:270px}}
@media(max-width:720px){.style-overview-intro{display:block;margin-top:5px;padding:19px 0 24px}.style-overview-intro h2{font-size:25px}.style-overview-intro p{font-size:12px;margin:9px 0 0;line-height:1.9}.style-overview{display:block}.style-chapter{padding-bottom:28px;margin-bottom:27px;border-bottom:1px solid var(--line)}.style-chapter:last-child{margin-bottom:0;border-bottom:0}.style-chapter-label{padding-bottom:16px}.style-chapter-label h2{font-size:37px}.style-chapter-stage{height:370px}.style-chapter-description{min-height:0;max-width:none}.style-chapter-caption{margin-top:17px}.style-chapter-enter{margin-top:8px}.collection-breadcrumb{gap:12px;padding:18px 0 15px;font-size:11px}.collection-breadcrumb nav{gap:13px}.collection-breadcrumb nav a{gap:5px;min-height:44px}.style-collection-heading{display:block;padding:12px 0 23px}.style-collection-heading h1{font-size:53px}.style-collection-heading h1 em{font-size:25px;margin:8px 0 0}.style-collection-heading>p{font-size:12px;margin:19px 0 0;max-width:31em}.collection-context{font-size:10px;padding:13px 0 21px}.collection-context>span{display:none}.lab-breadcrumb{gap:8px;font-size:10px}.next-specimen a{flex-wrap:wrap;gap:4px 12px;text-align:right;justify-content:flex-end}.next-specimen a span{font-size:15px}}

/* Programmatic route focus announces the new screen without outlining the whole page. */
main:focus{outline:none}

/* Shared background choices live inside the existing scrolling parameter pane. */
.parameter-background{min-width:0;grid-column:1/-1}.parameter-background>select[hidden]{display:none!important}.background-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.background-option{display:block;min-width:0;width:100%;padding:3px;border:1px solid var(--line);border-radius:5px;text-align:left;color:var(--ink);background:transparent;transition:border-color .15s,background .15s,box-shadow .15s}.background-option:hover:not(:disabled){border-color:#a77b98;background:#eee7eb}.background-option[aria-checked=true]{border-color:var(--plum);background:#eee6eb;box-shadow:0 0 0 1px var(--plum)}.background-option:focus-visible{outline:2px solid var(--plum);outline-offset:3px}.background-option:disabled{cursor:default;opacity:.5}.background-preview{position:relative;display:block;height:48px;overflow:hidden;border-radius:3px;background-size:cover!important;background-position:center!important}.background-preview-glass{position:absolute;inset:10px 22%;border-radius:5px;border:1px solid #ffffffb3;background:#ffffff38;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);box-shadow:0 2px 6px #252f391a}.background-check{position:absolute;top:3px;right:3px;display:none;width:17px;height:17px;border-radius:50%;text-align:center;background:var(--plum);color:#fff;font:11px/17px sans-serif}.background-option[aria-checked=true] .background-check{display:block}.background-option-label{display:block;font-size:10px;line-height:1.5;padding:5px 3px 2px;overflow-wrap:anywhere}.background-option[aria-checked=true] .background-option-label{color:var(--plum)}.background-description{min-height:2.8em;margin:11px 0 3px;font-size:10px;line-height:1.6;color:var(--muted)}.parameter-background .background-hint{margin:0;font-size:10px}
@media(max-width:720px){.background-preview{height:58px}.background-option-label{font-size:12px}.background-description,.parameter-background .background-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){.background-option{transition:none}}
@media(forced-colors:active){.background-option[aria-checked=true]{outline:2px solid Highlight;border-color:Highlight;box-shadow:none}.background-check{forced-color-adjust:none;background:Highlight;color:HighlightText}}

/* A combination needs working space; its tools sit beneath the shared preview. */
.object-grid .scene-specimen{grid-column:span 6}.object-grid .scene-specimen .specimen-stage{height:345px}.object-grid .scene-specimen iframe{position:absolute;width:160%;height:160%;left:-30%;top:-30%;transform:scale(.625)}.object-grid .scene-specimen .specimen-index{color:#766f65}
.scene-workspace{display:block}.scene-workspace .preview-area{padding-right:0;border-right:0}.scene-workspace .controls-panel{padding:25px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:30px}.scene-workspace .lab-styles{border:0;padding:0;margin:0}.scene-workspace .parameters-block{border-left:1px solid var(--line);padding-left:28px}.scene-workspace .control-heading{margin-bottom:18px}.scene-workspace .controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.scene-workspace .parameter{margin-bottom:0}.scene-workspace .parameter-head{margin-bottom:8px}.scene-workspace .control-notice{min-height:0;margin:15px 0 0}.scene-workspace .preset-label{margin:15px 0 8px}.scene-workspace .export-actions{margin:0;padding:0 0 0 28px;border-top:0;border-left:1px solid var(--line);align-content:start}.scene-workspace .export-note{margin-top:4px}
@media(max-width:1000px){.scene-workspace .controls-panel{gap:20px}.scene-workspace .parameters-block,.scene-workspace .export-actions{padding-left:20px}.scene-workspace .controls-grid{grid-template-columns:1fr;gap:15px}}
@media(max-width:720px){.object-grid .scene-specimen .specimen-stage{height:340px}.object-grid .scene-specimen iframe{position:absolute;width:160%;height:160%;left:-30%;top:-30%;transform:scale(.625)}.scene-workspace .controls-panel{display:block;padding-top:20px}.scene-workspace .lab-styles{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.scene-workspace .parameters-block{padding-left:0;border:0}.scene-workspace .controls-grid{grid-template-columns:1fr 1fr}.scene-workspace .export-actions{padding:20px 0 0;margin-top:20px;border:0;border-top:1px solid var(--line)}}

/* The library is a separate document; its language and error UI do not touch the homepage. */
.site-languages{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px;color:var(--muted)}.site-languages button{min-height:44px;padding:0 2px}.site-languages [aria-pressed=true]{color:var(--plum);text-decoration:underline;text-underline-offset:5px}.runner-boundary,.sample-language-notice{font-size:11px;line-height:1.9;color:var(--muted)}.runner-boundary{padding:15px 18px;margin:0;border-bottom:1px solid var(--line)}.sample-language-notice{margin:0 0 23px;max-width:700px}.export-actions .view-source{text-align:center;min-height:44px}.collection-empty h1{font-size:clamp(30px,5vw,46px);overflow-wrap:anywhere}.collection-empty>.text-button{display:block;min-height:44px;margin-top:15px}.collection-empty>p{max-width:42em;margin-left:auto;margin-right:auto}.style-chapter-label h2,.style-collection-heading h1,.specimen-label h2,.lab-title-line h1{overflow-wrap:anywhere}.style-chapter-description{white-space:pre-line}html[lang=ja]{--serif:"Hiragino Mincho ProN","Yu Mincho",Georgia,serif}
@media(max-width:720px){.site-header{flex-wrap:wrap;gap:8px 20px}.site-header nav{gap:12px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}.site-header nav a{font-size:12px}.site-languages{gap:5px}.runner-boundary{font-size:10px;padding:13px 14px}.sample-language-notice{font-size:10px}.export-actions .view-source{grid-column:1/-1}.style-chapter-label h2{font-size:34px}}

/* Group material controls by intent; keep the specimen as the visual focus. */
.parameter-groups{border-top:1px solid var(--line)}.parameter-group{border-bottom:1px solid var(--line)}.parameter-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;min-height:47px;font-size:12px;list-style:none;user-select:none}.parameter-group summary::-webkit-details-marker{display:none}.parameter-group summary>span{color:var(--plum);font-size:18px;transition:transform .15s}.parameter-group[open] summary>span{transform:rotate(45deg)}.parameter-group[open] summary{color:var(--plum)}.parameter-group .controls-grid{display:grid;grid-template-columns:1fr;gap:22px;padding:7px 0 22px}.parameter-group .parameter{margin:0;min-width:0}.parameter-group .parameter:last-child{grid-column:auto}.parameter-head{gap:10px}.parameter-head output{font-variant-numeric:tabular-nums;white-space:nowrap}.parameter select{display:block;min-height:43px;width:100%;border:1px solid var(--line);border-radius:3px;padding:8px 10px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px}.parameter input[type=color]{display:block;width:100%;height:38px;padding:4px;border:1px solid var(--line);border-radius:3px;background:transparent;cursor:pointer}.parameter-hint{font-size:10px;color:var(--muted);line-height:1.8;margin:0 0 17px}.parameter-groups+.control-notice{margin-top:15px}.presets{flex-wrap:wrap}.scene-workspace .parameter-group .controls-grid{grid-template-columns:1fr 1fr;gap:20px 18px}.scene-workspace .parameter-group .parameter:only-child{grid-column:1/-1}
@media(max-width:1000px) and (min-width:721px){.scene-workspace .parameter-group .controls-grid{grid-template-columns:1fr}}
@media(max-width:720px){.parameter-group .controls-grid,.scene-workspace .parameter-group .controls-grid{grid-template-columns:1fr 1fr;gap:24px 20px}.parameter-group .parameter:only-child{grid-column:1/-1}.parameter-group summary{min-height:48px}.parameter-hint{font-size:11px}.parameters-block .control-heading{margin-bottom:14px}.parameter-head{font-size:11px}}

/* Shared colour editors are compact, labelled and reachable without a picker. */
.palette-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:4px 0 13px}.palette-presets button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;font-size:10px;border:1px solid var(--line);border-radius:3px;padding:5px 4px}.palette-presets i{width:10px;height:10px;flex:none;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #0001}.palette-presets [aria-pressed=true]{background:#eae4e7;color:var(--plum);border-color:#a77b98}.parameter-color .parameter-head{margin-bottom:9px}.color-editor{display:grid;grid-template-columns:35px minmax(0,1fr);gap:8px}.parameter-color .color-editor input[type=color]{height:39px;padding:2px;border-radius:3px}.hex-input{display:flex;align-items:center;gap:7px;min-width:0;border:1px solid var(--line);border-radius:3px;padding:0 9px}.hex-input>span,.rgb-inputs label>span{font-size:9px;color:var(--muted)}.hex-input input{min-width:0;width:100%;min-height:37px;border:0;background:transparent;color:var(--ink);font:11px ui-monospace,SFMono-Regular,monospace;padding:3px 0}.rgb-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:7px}.rgb-inputs label{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:3px;padding:0 7px;min-width:0}.rgb-inputs input{width:100%;min-width:0;min-height:33px;padding:4px 0;border:0;background:transparent;font-size:11px;color:var(--ink);appearance:textfield}.rgb-inputs input::-webkit-inner-spin-button{appearance:none}.color-error{font-size:10px;line-height:1.7;color:#a34448;margin:8px 0 0}.color-editor:has([aria-invalid=true]) .hex-input,.rgb-inputs:has([aria-invalid=true]) label{border-color:#a34448}.parameter-group .controls-grid:has(.parameter-color){gap:24px}.scene-workspace .parameter-group .controls-grid:has(.parameter-color){grid-template-columns:1fr}.style-chapter{display:flex;flex-direction:column}.style-chapter-enter{align-self:flex-start}.style-chapter-stage{flex:none}
@media(max-width:720px){.parameter-group .controls-grid:has(.parameter-color){grid-template-columns:1fr}.parameter-color .color-editor{grid-template-columns:42px minmax(0,1fr)}.parameter-color .color-editor input[type=color],.hex-input input,.rgb-inputs input{min-height:42px}.rgb-inputs input{font-size:13px}.palette-presets button{min-height:43px;font-size:12px}.color-error{font-size:11px}}

@media(max-width:720px){.hex-input input,.rgb-inputs input,.parameter select{font-size:16px}}

.color-role-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 19px}.color-role-options button{border:1px solid var(--line);border-radius:3px;min-height:36px;font-size:10px;padding:5px}.color-role-options [aria-pressed=true]{border-color:#a77b98;color:var(--plum);background:#eee6eb}.color-role-options [data-invalid=true]{border-color:#a34448}.scene-workspace .color-role-options{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:720px){.color-role-options{grid-template-columns:repeat(2,minmax(0,1fr))}.color-role-options button{min-height:43px;font-size:12px}}

/* A bounded workbench keeps the result visible while its controls scroll. */
.workspace,.workspace.scene-workspace{height:var(--workbench-height,min(820px,calc(100dvh - 24px)));display:grid;grid-template-columns:minmax(0,1fr) 288px;grid-template-rows:44px minmax(0,1fr);overflow:hidden;scroll-margin-top:12px;border-bottom:1px solid var(--line)}
.workbench-bar{grid-column:1/-1;display:flex;align-items:center;gap:16px;min-width:0;border-bottom:1px solid var(--line);font-size:11px;background:var(--paper)}.workbench-bar>a{color:var(--plum);flex:none;min-height:40px;display:flex;align-items:center}.workbench-bar>strong{font-weight:500;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.workbench-actions{margin-left:auto;display:flex;gap:20px;align-items:center;flex:none}.workbench-actions button{font-size:11px;white-space:nowrap;min-height:40px}
.workspace .preview-area{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;padding:0 24px 0 0;border-right:1px solid var(--line);overflow:hidden}.workspace .preview-toolbar{height:46px;grid-row:1}.workspace .error-banner{grid-row:2;max-height:100px;overflow:auto;margin-bottom:8px}.workspace .preview-stage{height:100%;min-height:0;grid-row:3}.workspace .preview-bottom{grid-row:4;min-height:38px;max-height:68px;overflow:auto;font-size:10px;padding:9px 0;align-items:flex-start}.workspace .preview-bottom span:last-child{font-size:9px}
.workspace .controls-panel{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:17px 12px 26px 24px;display:block;border:0;scroll-padding-block:16px}.workspace .controls-panel:focus-visible{outline:2px solid var(--plum);outline-offset:-3px}.workspace .lab-styles{padding:0 0 17px;margin-bottom:17px;border-bottom:1px solid var(--line)}.workspace .parameters-block{padding:0;border:0}.workspace .control-heading{margin-bottom:14px;gap:10px}.panel-scroll-hint{font-size:9px;font-weight:400;color:var(--muted)}.workspace .parameter-group .controls-grid{grid-template-columns:1fr;gap:22px}.workspace .export-actions{margin-top:23px;padding:20px 0 0;border:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr;gap:9px}.workspace .export-note{margin-top:4px}.code-section{scroll-margin-top:20px}.code-toolbar-actions{display:flex;gap:16px;align-items:center}
@media(max-width:1000px) and (min-width:721px){.workspace,.workspace.scene-workspace{grid-template-columns:minmax(0,1fr) 266px}.workspace .preview-area{padding-right:18px}.workspace .controls-panel{padding-left:18px}.workbench-actions{gap:14px}}
@media(max-width:720px){.workspace,.workspace.scene-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:42px minmax(0,52%) minmax(0,1fr);scroll-margin-top:12px}.workspace[data-preview-size=compact]{grid-template-rows:42px minmax(0,36%) minmax(0,1fr)}.workbench-bar{gap:9px;font-size:10px}.workbench-bar>a{min-height:40px}.workbench-actions{gap:10px}.workbench-actions button{font-size:10px}.workspace .preview-area{grid-column:1;grid-row:2;padding:0;border:0;border-bottom:1px solid var(--line)}.workspace .preview-toolbar{height:35px;gap:8px}.workspace .preview-status{font-size:10px}.workspace .preview-modes button{min-height:32px;padding:4px 9px;font-size:10px}.workspace .preview-bottom{min-height:0;max-height:36px;padding:4px 0;font-size:9px;line-height:1.5}.workspace .preview-bottom span:last-child{display:none}.workspace .controls-panel{grid-column:1;grid-row:3;padding:14px 10px 24px 0;scroll-padding-block:16px;border:0}.workspace .lab-styles{padding-bottom:14px;margin-bottom:14px}.workspace .lab-styles h2{font-size:12px;margin-bottom:9px}.workspace .lab-style-options a{min-height:39px;padding:5px 12px}.workspace .lab-styles p{display:none}.workspace .export-actions{grid-template-columns:1fr 1fr}.workspace .export-actions .export-note,.workspace .export-actions .view-source{grid-column:1/-1}.workspace .error-banner{max-height:64px;font-size:10px;padding:8px 11px}.code-toolbar{flex-wrap:wrap}.code-toolbar-actions{gap:12px;margin-left:auto}.code-toolbar-actions .text-button{font-size:10px}}

/* Functional motion for the library shell, independent from specimen settings. */
.settings-block{padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid var(--line);min-width:0}.settings-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:13px}.settings-heading h2{font-size:13px;font-weight:600;margin:0}.settings-heading>span,.settings-select-label{font-size:10px;color:var(--muted)}.settings-select-label{display:block}.settings-select-label select{display:block;width:100%;min-height:43px;margin-top:7px;padding:8px 10px;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px}.settings-status{font-size:11px;line-height:1.7;margin:10px 0;color:var(--plum);overflow-wrap:anywhere}.settings-save-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px}.settings-save-actions>.secondary{padding:8px 11px;min-height:38px;font-size:11px}.settings-save-actions>.text-button{font-size:10px;min-height:36px}.settings-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px 15px;margin-top:7px}.settings-tools button{font-size:10px;min-height:33px}.settings-storage-note{font-size:10px;color:var(--muted);line-height:1.8;margin:7px 0 0}.settings-storage-error{color:#99444c;font-size:11px;line-height:1.8;overflow-wrap:anywhere;margin:9px 0 0}.settings-block button[hidden]{display:none}
.settings-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:27px 30px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);box-shadow:0 20px 100px #28232126}.settings-dialog::backdrop{background:#28232165;backdrop-filter:blur(4px)}.settings-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}.settings-dialog-head h2{font-family:var(--serif);font-size:29px;font-weight:400;margin:0;line-height:1.3}.settings-dialog-head button{flex:none;font-size:12px;min-height:36px}.settings-dialog p{font-size:12px;line-height:1.9;margin:0 0 18px}.settings-dialog label{display:block;font-size:12px;line-height:1.7;min-width:0}.settings-dialog input:not([type=file]){display:block;width:100%;box-sizing:border-box;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:3px;padding:12px;margin-top:8px;font:inherit;font-size:16px;min-height:46px}.settings-dialog textarea{display:block;box-sizing:border-box;width:100%;height:240px;min-height:100px;max-height:40dvh;resize:vertical;background:#eeece7;border:1px solid var(--line);padding:12px;border-radius:3px;color:var(--ink);font:11px/1.7 ui-monospace,monospace;margin:9px 0 0;white-space:pre;overflow:auto}.settings-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}.settings-dialog-actions button{font-size:12px;min-height:43px;padding:10px 18px}.settings-dialog .settings-dialog-feedback{margin:15px 0 0;color:var(--plum);overflow-wrap:anywhere}.settings-dialog-feedback:empty{display:none}.settings-export-formats{display:flex;gap:8px;margin-bottom:12px}.settings-export-formats button{min-height:38px;padding:6px 18px;font-size:12px}.settings-export-formats [aria-pressed=true]{border-color:var(--plum);color:var(--plum);background:#eae4e7}.settings-file-label{margin-bottom:20px}.settings-file-label input{display:block;width:100%;font-size:12px;margin-top:8px}.settings-block button:disabled,.settings-select-label select:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.settings-heading h2{font-size:12px}.settings-heading>span,.settings-select-label,.settings-storage-note{font-size:11px}.settings-tools button{min-height:40px;font-size:11px}.settings-save-actions>.secondary,.settings-save-actions>.text-button{min-height:41px;font-size:11px}.settings-select-label select{min-height:44px;font-size:13px}.settings-dialog{padding:22px 20px}.settings-dialog-head h2{font-size:25px}.settings-dialog textarea{font-size:11px;height:210px}.settings-dialog-actions button{flex:1;white-space:nowrap}}
.preview-tools{display:flex;align-items:center;gap:14px}.preview-tools .replay-button{min-height:35px;color:var(--plum);font-size:11px;white-space:nowrap}.workbench-actions button,.lab-style-options a,.palette-presets button,.color-role-options button,.presets button,.primary,.secondary,.run-button{transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease,translate 160ms cubic-bezier(.2,0,0,1)}
@media(hover:hover){.workbench-actions button:hover,.lab-style-options a:hover,.palette-presets button:hover,.presets button:hover,.primary:hover,.secondary:hover{translate:0 -1px}}
.workbench-actions button:active,.lab-style-options a:active,.palette-presets button:active,.presets button:active,.primary:active,.secondary:active{translate:0 1px}
@supports(interpolate-size:allow-keywords){.parameter-group{interpolate-size:allow-keywords}.parameter-group::details-content{block-size:0;overflow:clip;transition:block-size 220ms cubic-bezier(.2,0,0,1),content-visibility 220ms allow-discrete}.parameter-group[open]::details-content{block-size:auto}}
@media(max-width:720px){.preview-tools{gap:6px}.preview-tools .replay-button{font-size:10px;min-height:32px}.preview-modes{gap:0}.preview-modes button{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.product-scene-options{display:grid;border-top:1px solid var(--line)}.product-scenes h2{font-family:inherit;font-size:15px;font-weight:500;line-height:1.5;margin:0 0 12px}.product-scenes-intro,.product-capability-note p{font-size:11px;line-height:1.8;color:var(--muted)}.product-scene-options button{display:flex;align-items:center;gap:12px;text-align:left;min-height:48px;padding:10px 8px;border-bottom:1px solid var(--line);font-size:12px}.product-scene-options button>span{color:var(--muted);font:11px Georgia,serif}.product-scene-options button[aria-pressed=true]{color:var(--plum);background:color-mix(in srgb,var(--plum) 7%,transparent);box-shadow:inset 2px 0 var(--plum)}.product-capability-note{margin-top:24px}.product-capability-note h2{font-size:12px}.product-provenance{font-size:11px;line-height:1.8;color:var(--muted)}.product-provenance summary{cursor:pointer;padding:10px 0;color:var(--plum)}.product-provenance p{overflow-wrap:anywhere}.product-workspace .preview-stage[data-size=compact] iframe{width:min(100%,390px)}.preview-status[data-status=loading] .status-dot{background:var(--muted)}.preview-status[data-status=error] .status-dot{background:#a34448}
@media(max-width:720px){.workspace.product-workspace{grid-template-rows:42px minmax(0,72%) minmax(0,1fr)}.product-scenes-intro{margin:0 0 8px}.product-scene-options{grid-template-columns:1fr 1fr}.product-scene-options button{min-height:44px;font-size:11px;gap:6px}.product-scenes .product-capability-note{margin-top:18px}}
.object-grid .product-specimen .specimen-stage{background:#eeece6}.object-grid .product-specimen .specimen-index{top:11px;left:15px;color:var(--muted)}.object-grid .product-specimen .specimen-stage iframe{position:absolute;left:0;top:36px;width:160%;height:calc((100% - 36px)*1.6);transform:scale(.625);transform-origin:top left}
.product-theme-panel:not(:empty){margin-top:25px;padding-top:22px;border-top:1px solid var(--line)}.product-theme-panel .lab-style-options button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 12px;font-size:12px;border:1px solid var(--line);border-radius:3px}.product-theme-panel .lab-style-options button[aria-pressed=true]{background:#eee6eb;color:var(--plum);border-color:#a77b98}.product-theme-panel .palette-presets{margin-top:14px}.product-theme-panel .parameter-color{padding:0}.product-theme-panel input[aria-invalid=true]{outline:1px solid #a34448;outline-offset:-1px}

.workspace.product-workspace[data-focus-preview=true]{grid-template-columns:minmax(0,1fr)}.product-workspace[data-focus-preview=true] .preview-area{grid-column:1/-1}.product-workspace[data-focus-preview=true] .controls-panel{display:none}@media(max-width:720px){.workspace.product-workspace[data-focus-preview=true]{grid-template-rows:42px minmax(0,1fr)}}

/* Scene navigation belongs to the preview, apart from the appearance inspector. */
main.product-lab-page{max-width:1920px;padding-inline:clamp(20px,2.5vw,52px)}
.workspace.product-workspace{grid-template-rows:44px 52px minmax(0,1fr)}
.product-scene-navigation{grid-column:1/-1;grid-row:2;min-width:0;overflow:hidden;border-bottom:1px solid var(--line)}
.product-scene-navigation .product-scene-options{display:flex;gap:24px;height:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;border:0;padding:0 2px}
.product-scene-navigation [role=tab]{position:relative;flex:none;white-space:nowrap;min-height:44px;padding:10px 2px;border:0;font-size:12px;box-shadow:none;background:none;color:var(--muted)}
.product-scene-navigation [role=tab][aria-selected=true]{color:var(--plum);box-shadow:inset 0 -2px var(--plum)}
.product-scene-navigation [role=tab]:focus-visible{outline-offset:-4px}
.product-workspace .preview-area,.product-workspace .controls-panel{grid-row:3}
.product-workspace .preview-area{grid-column:1}
.product-workspace .controls-panel{grid-column:2}
.product-workspace .product-theme-panel{margin:0;padding:0;border:0}
.product-workspace .preview-stage iframe{inset:auto;max-width:none;transition:none;transform-origin:top left}
.product-workspace .preview-bottom [data-product-viewport]{font-variant-numeric:tabular-nums}
@media(max-width:720px){
 .workspace.product-workspace{grid-template-rows:42px 52px minmax(0,56%) minmax(0,1fr)}
 .product-workspace .controls-panel{grid-column:1;grid-row:4;padding-top:17px}
 .product-scene-navigation .product-scene-options{gap:20px}
 .product-scene-navigation [role=tab]{font-size:12px}
 .workspace.product-workspace[data-focus-preview=true]{grid-template-rows:42px 52px minmax(0,1fr)}
 .product-workspace .preview-bottom span:last-child{display:block}
}
