:root{--blue:#083e92;--ink:#1c3149;--muted:#64758a;--line:#d7e0e9;--soft:#f3f6f9;--fade:18.75%}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}h1,h2,p,figure{margin:0}button,input,select,textarea{font:inherit}button,.button{border:1px solid #b9c8db;border-radius:4px;background:#fff;color:var(--blue);font-size:12px;font-weight:650;min-height:38px;padding:9px 13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:hover,.button:hover{background:#edf3fa}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#062e6f}a{color:var(--blue);text-underline-offset:3px}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #b88049;outline-offset:3px}input[type=search],input[type=text],input[type=number],input:not([type]){border:1px solid #cbd7e3;border-radius:4px;color:var(--ink);background:#fff;min-height:38px;padding:8px 10px;min-width:0}input[type=checkbox],input[type=range]{accent-color:var(--blue)}.site-header{max-width:1700px;margin:auto;padding:20px 30px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.wordmark{font:700 30px/1 Georgia,serif;text-decoration:none;letter-spacing:-.05em}.page-label{font-size:9px;letter-spacing:.2em;color:var(--muted)}.site-header nav{margin-left:auto;display:flex;gap:23px;font-size:12px}.site-header nav a{text-decoration:none}main{max-width:1700px;margin:auto;padding:0 30px}.intro{display:flex;justify-content:space-between;align-items:end;gap:35px;padding:30px 0 23px}.eyebrow{font-size:9px;font-weight:750;letter-spacing:.15em;color:var(--blue);margin-bottom:8px}h1{font:400 47px/1.05 Georgia,serif;letter-spacing:-.035em}.intro p:not(.eyebrow){max-width:590px;color:var(--muted);font-size:13px;margin-top:13px}.document-tools{display:flex;flex-wrap:wrap;justify-content:end;gap:8px;max-width:500px}.document-tools input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.button:has(input:focus-visible){outline:3px solid #b88049;outline-offset:3px}.export-menu{position:relative}.export-menu>summary{list-style:none}.export-menu>div{position:absolute;z-index:20;right:0;top:calc(100% + 7px);width:265px;padding:14px;background:#fff;box-shadow:0 6px 25px #18324a25;border:1px solid var(--line);border-radius:5px}.export-menu p{font-size:11px!important;margin:0 0 10px!important}.export-menu button{display:flex;width:100%;margin-top:7px;justify-content:start}.status{min-height:37px;border-top:3px solid var(--blue);background:#f5f8fc;padding:9px 13px;font-size:12px;color:var(--muted);margin-bottom:20px}.status.error{color:#8b322e;background:#fff2ee;border-color:#a6483b}.editor{display:grid;grid-template-columns:265px minmax(0,1fr);gap:25px;align-items:start}.library-panel{border:1px solid var(--line);border-radius:5px;padding:16px;position:sticky;top:15px;max-height:calc(100vh - 35px);display:flex;flex-direction:column;min-height:400px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}h2{font:400 23px/1.12 Georgia,serif;letter-spacing:-.025em}.panel-heading h2{font-size:22px}.text-button{border:0;padding:4px 0;min-height:32px;background:none;font-size:11px}.search-label{font-size:10px;color:var(--muted);margin-bottom:5px}.category-tabs{display:flex;gap:4px;margin-top:12px}.category-tabs button{flex:1;border:0;background:#eef3f8;padding:7px 5px;font-size:11px;min-height:32px}.category-tabs button[aria-pressed=true]{background:var(--blue);color:white}.small{font-size:11px;color:var(--muted)}#library-summary{margin:11px 0}.asset-library{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(138px,max-content);gap:10px;overflow:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:0;padding:2px;align-content:start}.library-panel>:not(.asset-library){flex-shrink:0}.asset-card{display:flex;flex-direction:column;align-items:stretch;justify-content:start;text-align:left;padding:5px;border-color:#dbe3eb;min-width:0;min-height:138px;gap:5px;position:relative}.asset-card>*{flex-shrink:0}.asset-card img{width:100%;height:75px;flex:0 0 75px;object-fit:contain;display:block;background:repeating-conic-gradient(#e7edf0 0% 25%,#f6f8fa 0% 50%) 50%/14px 14px;border-radius:2px}.asset-card .asset-name{font-size:10px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}.asset-card .asset-status{font-size:9px;color:var(--muted);font-weight:400}.asset-card .asset-source{font-size:9px;line-height:1.35;color:var(--muted);font-weight:400;overflow-wrap:anywhere}.asset-card[draggable=true]{cursor:grab}.asset-card[draggable=true]:active{cursor:grabbing}.asset-card.pending{opacity:.55}.empty-library{font-size:12px;color:var(--muted);grid-column:1/-1;padding:20px 0;line-height:1.6}.library-help{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:13px}.scene-toolbar{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:15px}.title-label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;max-width:410px}.title-label input{font-size:16px;font-weight:600}.history-tools{display:flex;gap:6px}.canvas-options{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;margin-bottom:15px;color:var(--muted)}.canvas-options>div{display:flex;flex-wrap:wrap;gap:12px}.canvas-options label{display:flex;align-items:center;gap:5px}.canvas-options strong{color:var(--blue)}.canvas-scroll{overflow:auto;overscroll-behavior-x:contain;border:1px solid #c6d3e1;border-radius:4px;background:#f6f8fa;padding:14px 14px 8px}.canvas-shell{min-width:0}.canvas-shell.large{min-width:1100px}.ruler{display:flex;justify-content:space-between;color:#667991;font-size:9px;line-height:1.2}.ruler-top{padding:0 0 10px}.ruler-top span:nth-child(3){color:var(--blue);font-weight:700}.ruler-bottom{padding:8px 0 0}.ruler-bottom span{width:50%;text-align:center}.stage{position:relative;width:100%;aspect-ratio:92/32;background:repeating-conic-gradient(#e5ebef 0% 25%,#f7f9fb 0% 50%) 50%/24px 24px;overflow:hidden;isolation:isolate;touch-action:none;user-select:none}.stage.glass{background:linear-gradient(145deg,#a9bbc1,#dee7e6 46%,#879a9e)}.stage.drop-ready{outline:3px solid var(--blue);outline-offset:-3px}.art-layer,.selection-layer,.guides{position:absolute;inset:0}.art-layer{mask-image:linear-gradient(to bottom,transparent 0,#000 var(--fade));-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--fade))}.art-layer.no-fade{mask-image:none;-webkit-mask-image:none}.scene-item{position:absolute;transform-origin:center;cursor:grab;touch-action:none}.scene-item:active{cursor:grabbing}.scene-item img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.missing-item{border:1px dashed #8d6b4c;background:#fff9ecb8;color:#6d533b;display:flex;align-items:center;justify-content:center;text-align:center;font-size:10px;line-height:1.2;padding:6px}.selection-layer,.guides{pointer-events:none}.selection-box{position:absolute;transform-origin:center;border:1.5px solid #0a4db3;box-shadow:0 0 0 1px #fff9;pointer-events:none}.resize-handle{position:absolute;width:15px;height:15px;min-height:0;padding:0;background:#fff;border:2px solid #0a4db3;border-radius:50%;pointer-events:auto;touch-action:none}.resize-handle[data-corner=nw]{left:-8px;top:-8px;cursor:nwse-resize}.resize-handle[data-corner=ne]{right:-8px;top:-8px;cursor:nesw-resize}.resize-handle[data-corner=se]{right:-8px;bottom:-8px;cursor:nwse-resize}.resize-handle[data-corner=sw]{left:-8px;bottom:-8px;cursor:nesw-resize}.guides .seam{position:absolute;left:50%;top:0;bottom:0;border-left:1px dashed #0b4a9f99;box-shadow:1px 0 0 #ffffffb3}.fade-guide{position:absolute;left:0;right:0;top:var(--fade);border-top:1px dotted #4e759388}.fade-guide span{position:absolute;left:7px;top:2px;font-size:8px;letter-spacing:.06em;color:#426486;background:#ffffff9e;padding:1px 4px}.pane-label{position:absolute;bottom:7px;font-size:8px;letter-spacing:.08em;color:#38556f;background:#ffffffbe;padding:3px 5px}.pane-left{left:7px}.pane-right{right:7px}.empty-scene{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#446078;pointer-events:none}.empty-scene p{font:400 25px/1.1 Georgia,serif}.empty-scene span{font-size:11px;margin-top:8px}.empty-scene[hidden]{display:none}.under-canvas{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px;color:var(--muted);font-size:10px}.under-canvas label{display:flex;align-items:center;gap:8px;white-space:nowrap}.under-canvas input{width:100px}.under-canvas output{width:35px;color:var(--blue);font-weight:650}.arrangement-tools{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin:17px 0 22px}.arrangement-tools>button:first-child{font-size:11px}.danger{color:#8b3b36}.selection-panel{border:1px solid var(--line);border-radius:5px;padding:17px;background:#fcfdfe}.selection-heading{display:flex;justify-content:space-between;gap:15px;align-items:baseline;margin-bottom:17px}.selection-heading h2{font-size:24px}.selection-heading p{font-size:10px;color:var(--muted);max-width:390px}fieldset{padding:0;border:0;margin:0;min-width:0}.measurement-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.measurement-fields label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted)}.measurement-fields input{width:100%;font-size:13px}.layer-tools{display:flex;gap:7px;margin-top:13px;flex-wrap:wrap}.layer-tools button{font-size:11px;min-height:34px;padding:7px 11px}.layer-list-panel{margin-top:15px;font-size:12px}.layer-list-panel summary{cursor:pointer;color:var(--blue);padding:8px 0}.layer-list-panel summary span{font-size:10px;color:var(--muted);margin-left:8px}#layer-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:7px}#layer-list button{justify-content:start;text-align:left;min-width:0;font-size:10px;padding:7px;gap:8px}#layer-list button[aria-pressed=true]{background:#eaf2ff;border-color:#547aac}#layer-list img{width:30px;height:25px;object-fit:contain}.study-reference{padding:13px;border:1px solid var(--line);border-radius:4px;background:#f3f6f8;margin-bottom:18px}.study-reference img{display:block;width:100%;max-height:250px;object-fit:contain}.study-reference figcaption{margin-top:9px;font-size:10px;color:var(--muted)}.study-reference[hidden]{display:none}footer{padding:24px 0 35px;margin-top:30px;border-top:2px solid var(--blue);font-size:11px;color:var(--muted);display:grid;grid-template-columns:1.5fr 1fr;gap:12px 30px}footer p{max-width:830px}footer a{font-size:11px}dialog{border:1px solid #b6c6d6;border-radius:6px;max-width:min(520px,calc(100vw - 35px));padding:25px;color:var(--ink)}dialog::backdrop{background:#18324a70}dialog h2{font-size:29px;margin-bottom:13px}dialog p{font-size:13px;color:var(--muted);margin-bottom:23px}dialog form>div{display:flex;justify-content:end;gap:10px}dialog textarea{width:100%;height:120px;resize:vertical;border:1px solid var(--line);padding:10px;margin-bottom:18px;font-size:11px}.notice{padding:15px;background:#fff5df;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(max-width:1150px){.intro{display:block}.document-tools{margin-top:22px;justify-content:start;max-width:none}.editor{grid-template-columns:230px minmax(0,1fr);gap:18px}.library-panel{padding:13px}.panel-heading{display:block}.panel-heading button{margin-top:5px}.under-canvas{align-items:start;flex-direction:column}.selection-heading{display:block}.selection-heading p{margin-top:8px}.canvas-options{align-items:start;flex-direction:column}#layer-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.site-header{padding:18px;gap:13px}.wordmark{font-size:27px}.page-label{display:none}.site-header nav{font-size:10px;gap:14px}main{padding:0 18px}.intro{padding:26px 0 20px}h1{font-size:43px}.intro p:not(.eyebrow){font-size:12px}.document-tools{gap:7px}.document-tools>button,.document-tools>.button,.document-tools>.export-menu{flex:1 1 calc(50% - 8px)}.export-menu>summary{width:100%}.export-menu>div{right:0;max-width:calc(100vw - 40px)}.editor{display:flex;flex-direction:column;gap:20px}.library-panel{position:static;min-height:0;max-height:none;width:100%;padding:13px}.panel-heading{display:flex;align-items:center;margin-bottom:10px}.panel-heading button{margin:0}.search-label{display:none}.category-tabs{margin-top:9px}.asset-library{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(122px,max-content);max-height:190px;min-height:0;gap:8px;flex:0 1 auto}.asset-card{min-height:122px}.asset-card img{height:62px;flex-basis:62px}.asset-card .asset-name{font-size:9px}.asset-card .asset-status{font-size:8px}.library-help{padding-top:9px;margin-top:10px;font-size:9px}.work-panel{width:100%;min-width:0}.scene-toolbar{gap:10px}.title-label input{font-size:13px;width:100%}.history-tools{gap:4px}.history-tools button{font-size:10px;padding:8px}.canvas-options{font-size:10px;gap:9px}.canvas-options>div{gap:13px}.canvas-scroll{padding:11px 9px 8px}.canvas-shell{min-width:0}.canvas-shell.large{min-width:740px}.ruler{font-size:8px}.under-canvas{font-size:10px;gap:12px}.under-canvas input{width:130px}.arrangement-tools{gap:12px;margin:17px 0}.selection-panel{padding:14px}.measurement-fields{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.layer-tools button{flex:1 1 calc(50% - 7px)}.selection-heading h2{font-size:23px}footer{display:block;font-size:10px;margin-top:24px}footer p{margin-bottom:12px}.status{font-size:11px;padding:9px 11px}.resize-handle{width:20px;height:20px}.resize-handle[data-corner=nw],.resize-handle[data-corner=ne]{top:-10px}.resize-handle[data-corner=sw],.resize-handle[data-corner=se]{bottom:-10px}.resize-handle[data-corner=nw],.resize-handle[data-corner=sw]{left:-10px}.resize-handle[data-corner=ne],.resize-handle[data-corner=se]{right:-10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.source-reference-toggle{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin-top:12px}.source-reference-toggle input{margin:0}

.document-name{flex:1;min-width:0;max-width:410px}.document-name .title-label{max-width:none}.save-state{font-size:10px;color:var(--muted);margin-top:6px;min-height:15px}.save-state::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;background:#8b9caf}.save-state[data-state=saved]::before{background:#43856a}.save-state[data-state=saving]::before,.save-state[data-state=loading]::before{background:#b77b38}.save-state[data-state=error]{color:#943e34}.save-state[data-state=error]::before{background:#943e34}



/* Large item library beneath the scene. */
.editor{display:block}.work-panel{width:100%;min-width:0}
.library-panel{position:static;width:100%;min-width:0;min-height:0;max-height:none;margin:0 0 24px;padding:22px;background:#f8fafc;display:block}
.library-panel .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 17px}.library-panel h2{font-size:29px}.library-panel .eyebrow{margin-bottom:5px}.library-actions{display:flex;align-items:center;gap:20px}.library-actions .text-button{margin:0}.library-arrows{display:flex;gap:8px}.library-arrows button{width:44px;min-height:44px;padding:0;font-size:24px;background:white}.library-controls{display:flex;align-items:end;justify-content:space-between;gap:20px}.library-search{flex:1 1 270px;max-width:390px;min-width:0}.library-search .search-label{display:block;font-size:11px;margin:0 0 6px}.library-search input{width:100%;min-height:42px}.category-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0}.category-tabs button{flex:0 0 auto;min-width:70px;min-height:42px;padding:9px 15px;font-size:12px}.library-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:12px 0}.library-meta #library-summary{margin:0}.library-meta .source-reference-toggle{margin:0;font-size:11px}#library-availability{margin-bottom:12px}
.asset-library{display:flex;grid-template-columns:none;align-items:stretch;gap:14px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scroll-snap-type:x proximity;scroll-padding:5px;min-width:0;min-height:0;max-height:none;padding:5px 5px 14px;flex:none;scrollbar-color:#90a8c4 #e7edf3;scrollbar-width:auto}
.asset-card{flex:0 0 210px;width:210px;min-width:210px;min-height:253px;padding:10px;gap:9px;background:#fff;scroll-snap-align:start}.asset-card img{height:165px;flex:0 0 165px}.asset-card .asset-name{font-size:14px;line-height:1.3}.asset-card .asset-status{font-size:11px}.asset-card .asset-source{font-size:10px;line-height:1.4}.asset-library .empty-library{flex:1;min-width:240px;min-height:140px;padding:35px 12px}.library-help{font-size:11px;margin:12px 0 0;padding-top:12px}
@media(max-width:740px){.library-panel{padding:14px;margin-bottom:20px}.library-panel .panel-heading{align-items:start;gap:12px;margin-bottom:14px}.library-panel h2{font-size:25px}.library-panel .eyebrow{font-size:8px}.library-actions{flex-direction:column-reverse;align-items:end;gap:4px}.library-actions .text-button{font-size:10px}.library-arrows{gap:6px}.library-controls{display:block}.library-search{max-width:none}.category-tabs{margin-top:12px;gap:6px}.category-tabs button{min-width:0;min-height:40px;padding:8px 13px;font-size:11px}.library-meta{align-items:start;flex-direction:column;gap:8px}.asset-card{flex-basis:176px;width:176px;min-width:176px;min-height:231px;padding:9px;gap:8px}.asset-card img{height:146px;flex-basis:146px}.asset-card .asset-name{font-size:13px}.asset-card .asset-status{font-size:11px}.asset-card .asset-source{font-size:10px}.library-help{font-size:10px;line-height:1.5}}

/* Named scenes and the full, vertically browsable item gallery. */
.scene-manager{display:flex;align-items:end;flex-wrap:wrap;gap:12px 16px;padding:15px;background:#f4f7fb;border:1px solid var(--line);border-radius:5px;margin-bottom:18px}.scene-manager>label{display:flex;flex:1 1 250px;max-width:440px;min-width:0;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.scene-manager select{width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #bdccdd;background:white;border-radius:4px;color:var(--ink);font-size:14px}.scene-manager>div{display:flex;gap:8px;flex-wrap:wrap}.scene-manager>p{flex-basis:100%;font-size:11px;color:var(--muted)}#scene-workspace{scroll-margin-top:15px}
.asset-gallery-section{margin-top:30px;border-top:2px solid var(--blue);padding-top:23px}.gallery-heading h2{font-size:34px}.gallery-heading .small{margin-top:9px}.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;position:sticky;top:0;z-index:15;padding:13px 0;background:#fffffff5;border-bottom:1px solid var(--line);margin-bottom:18px;backdrop-filter:blur(5px)}.gallery-toolbar p{font-size:12px;color:var(--muted)}.gallery-toolbar p.error{color:#943e34}.gallery-toolbar a{flex-shrink:0;font-size:12px;font-weight:700;padding:8px 10px;border:1px solid #b9c8db;border-radius:4px;background:white;text-decoration:none}
.asset-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:18px;align-items:stretch}.asset-gallery .asset-card{width:100%;min-width:0;min-height:314px;padding:13px;gap:10px}.asset-gallery .asset-card img{height:236px;flex-basis:236px}.asset-gallery .asset-card .asset-name{font-size:16px}.asset-gallery .asset-card .asset-source{font-size:11px}.asset-gallery .empty-library{grid-column:1/-1;padding:30px 0}
@media(max-width:740px){.scene-manager{padding:12px;gap:10px}.scene-manager>label{flex-basis:100%;max-width:none}.scene-manager>div{width:100%}.scene-manager>div button{flex:1;font-size:11px}.scene-manager>p{font-size:10px}.asset-gallery-section{margin-top:25px}.gallery-heading h2{font-size:30px}.gallery-toolbar{gap:10px;align-items:start}.gallery-toolbar p{font-size:11px}.gallery-toolbar a{font-size:11px;padding:8px}.asset-gallery{grid-template-columns:minmax(0,1fr);gap:16px}.asset-gallery .asset-card{min-height:306px}.asset-gallery .asset-card img{height:230px;flex-basis:230px}}

/* Each saved scene keeps its own pane format. */
@media(max-width:740px){.site-header{flex-wrap:wrap}.site-header nav{flex:1 1 100%;min-width:0;margin-left:0;flex-wrap:wrap}}
.scene-manager>label.new-scene-format{flex:0 1 245px}.canvas-shell.single-pane{max-width:850px;margin-inline:auto}.canvas-shell.single-pane.large{min-width:850px}.canvas-shell.single-pane .ruler-top span:nth-child(3){color:#667991;font-weight:400}.canvas-shell.single-pane .ruler-bottom span{width:100%}
@media(max-width:740px){.scene-manager>label.new-scene-format{flex-basis:100%}.canvas-shell.single-pane.large{min-width:600px}}
