/* Coinseed references: calm dark surfaces, large editorial image studies. */
.reference-dialog{color:#edf0ec;background:#191c1b;border:1px solid #383e3a;border-radius:24px;padding:0;width:min(1240px,calc(100vw - 64px));max-width:none;height:min(930px,calc(100dvh - 48px));max-height:none;overflow:hidden;box-shadow:0 28px 100px #060a08a6}
.reference-dialog[open]{display:flex;flex-direction:column}.reference-dialog::backdrop,.ref-upload-dialog::backdrop{background:#070a09b3;backdrop-filter:blur(10px)}
.reference-dialog button,.ref-upload-dialog button{transition:background .18s,color .18s,border-color .18s,transform .18s}.reference-dialog button:active,.ref-upload-dialog button:active{transform:translateY(1px)}
.reference-dialog button:focus-visible,.ref-upload-dialog button:focus-visible{outline:2px solid #a8c5b2;outline-offset:3px}.reference-dialog [hidden],.reference-draft[hidden]{display:none!important}
.ref-header{display:flex;justify-content:space-between;align-items:flex-start;padding:28px 32px 24px;border-bottom:1px solid #313733;flex-shrink:0}.ref-eyebrow{font-size:10px;font-weight:600;letter-spacing:.16em;color:#9aab9f;margin:0 0 10px}.ref-header h2{font-size:28px;letter-spacing:-.04em;margin:0 0 8px;font-weight:600;color:#f4f4ed}.ref-header p:last-child{margin:0;color:#a4afa7;font-size:13px}
.ref-close{color:#bbc4bd;background:#252c28;border:0;border-radius:50%;font-size:26px;line-height:36px;width:38px;height:38px;flex-shrink:0}.ref-close:hover{background:#3a453d}
.ref-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:0;flex:1}.ref-browser{overflow:auto;padding:22px 28px 18px;scrollbar-width:thin;scrollbar-color:#505f53 transparent}.ref-roles{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:24px}.ref-roles button{padding:12px 5px 13px;background:transparent;border:1px solid transparent;border-radius:10px;text-align:center;color:#aab3ab}.ref-roles button strong{display:block;font-size:15px;font-weight:500;margin-bottom:6px}.ref-roles button span{display:block;font-size:10px;color:#929f95;white-space:nowrap}.ref-roles button:hover{background:#222924}.ref-roles button[aria-pressed=true]{background:#303b32;border-color:#5c715e;color:#e1ebd9}.ref-roles button[aria-pressed=true] span{color:#b7cbb5}
.ref-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.ref-sources{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.ref-sources button{padding:6px 0;background:none;border:0;border-bottom:1px solid transparent;color:#8c9a90;font-size:12px;white-space:nowrap}.ref-sources button[aria-pressed=true]{color:#ecf0e6;border-bottom-color:#a6b89c}.ref-upload-open{border:1px solid #455147;background:#29332c;color:#d4e3d0;border-radius:8px;padding:9px 12px;font-size:12px;white-space:nowrap}.ref-upload-open:hover{background:#3c4a3e}
.ref-search{height:44px;display:flex;align-items:center;gap:11px;background:#111714;border:1px solid #364038;border-radius:9px;padding:0 14px}.ref-search svg{height:17px;width:17px;fill:none;stroke:#91a193;stroke-width:1.6}.ref-search input{border:0;outline:none;background:transparent;color:#dce5dc;width:100%;height:100%;font-size:13px}.ref-search input::placeholder{color:#7f8e83}.ref-search:focus-within{border-color:#95b393;box-shadow:0 0 0 2px #95b3931f}
.ref-results-line{display:flex;justify-content:space-between;gap:10px;color:#7d8b81;font-size:10px;margin:17px 0 13px}.ref-results-line span:first-child{color:#a8b5a9;font-variant-numeric:tabular-nums}.ref-message{font-size:12px;color:#b6c9b4;line-height:1.65;margin:0 0 10px}.ref-message:empty{display:none}.ref-message.is-error,.is-warning{color:#e6bd86!important}.ref-inline-retry{margin-left:12px;color:#c7d9c1;background:transparent;border:1px solid #607363;border-radius:6px;padding:3px 10px}.ref-breadcrumb{display:flex;gap:16px;align-items:center;margin-top:12px;font-size:11px;color:#8d9d90}.ref-breadcrumb button{background:none;border:0;color:#c2d7c0;font-size:12px;padding:0}
.ref-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 15px}.ref-card{min-width:0;position:relative;border-radius:12px;outline:1px solid transparent;outline-offset:4px}.ref-card.is-selected{outline-color:#a9c593}.ref-card-view{display:block;padding:0;border:0;border-radius:9px;overflow:hidden;background:#2f3931;width:100%;text-align:left}.ref-image-frame{position:relative;overflow:hidden;aspect-ratio:4/5;background:#303a32}.ref-image-frame img{width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .25s,transform .3s}.ref-image-frame.is-ready img{opacity:1}.ref-card-view:hover img{transform:scale(1.035)}.ref-card.is-previewed .ref-card-view{outline:2px solid #8ca184;outline-offset:2px}.ref-image-error{color:#bcc9bb;display:flex;align-items:center;justify-content:center;font-size:12px;height:100%;padding:20px;text-align:center}.ref-favorite{position:absolute;top:9px;right:9px;width:29px;height:29px;border:1px solid #ffffff55;background:#20291f80;border-radius:50%;color:white;font-size:20px;line-height:20px;backdrop-filter:blur(8px)}.ref-favorite[aria-pressed=true]{background:#e4ebd3;color:#385137;border-color:#e4ebd3}.ref-card-meta{display:grid;grid-template-columns:1fr 26px;gap:4px 6px;align-items:center;padding:12px 1px 1px}.ref-kind{font-size:10px;color:#94aa95;grid-column:1}.ref-card-meta strong{font-size:12px;font-weight:500;color:#e4e9df;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ref-select{grid-column:2;grid-row:1/3;width:27px;height:27px;padding:0;background:#2a352c;border:1px solid #475b48;border-radius:50%;font-size:18px;color:#bccfb7}.ref-select[aria-pressed=true]{background:#c3d9ad;color:#273720;border-color:#c3d9ad}
.ref-skeleton{aspect-ratio:4/5;border-radius:10px;background:linear-gradient(100deg,#2a322c 25%,#384138 40%,#2a322c 60%);background-size:250% 100%;animation:ref-load 1.5s ease infinite}@keyframes ref-load{to{background-position:-150% 0}}.ref-empty{text-align:center;padding:48px 18px;color:#8e9e91}.ref-empty>span{font-size:50px;line-height:1.2;color:#748a75}.ref-empty h3{font-size:17px;font-weight:500;color:#c6d5c5}.ref-empty p{font-size:12px;line-height:1.8}.ref-empty button,.ref-more{background:transparent;border:1px solid #506651;color:#c6d6bc;border-radius:8px;padding:9px 14px;font-size:12px}.ref-more{display:block;margin:24px auto}.ref-sources-note{margin-top:28px;padding-top:16px;border-top:1px solid #303a32;font-size:11px;color:#7d8e80;line-height:1.8}.ref-sources-note summary{cursor:pointer;color:#9aaa9a}.ref-sources-note a{color:#becdb3;text-decoration:underline;text-underline-offset:3px;margin-right:15px}
.ref-inspector{padding:24px 22px;border-left:1px solid #303a32;background:#151b17;overflow:auto;scrollbar-width:thin}.ref-inspector-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;color:#819584;text-align:center}.ref-preview-outline{width:120px;height:155px;border:1px solid #526754;border-radius:80px 80px 10px 10px;display:grid;place-items:center;font-size:25px;color:#6e856f;transform:rotate(-6deg);margin-bottom:24px}.ref-inspector-empty h3{font-size:17px;font-weight:500;color:#bacfbb;margin-bottom:0}.ref-inspector-empty p{font-size:12px;line-height:1.8}.ref-preview-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.ref-preview-top .ref-eyebrow{margin:0}.ref-preview-close{background:none;border:0;padding:0;font-size:10px;color:#859b86}.ref-large-preview{border-radius:12px;aspect-ratio:4/5;max-height:360px}.ref-large-preview img{object-fit:contain}.ref-inspector h3{font-size:20px;font-weight:500;margin:19px 0 5px;letter-spacing:-.02em}.ref-intent{font-size:12px;color:#91a692;margin:0 0 13px}.ref-tags{display:flex;gap:6px;flex-wrap:wrap}.ref-tags span{background:#28372b;color:#a8c1a6;font-size:10px;padding:4px 8px;border-radius:4px}.ref-source-detail{margin:18px 0;padding-top:14px;border-top:1px solid #314133;font-size:11px;color:#839b87;line-height:1.7}.ref-source-detail strong{font-weight:500;color:#bbceba}.ref-source-detail p{margin:5px 0}.ref-primary{background:#c6d9b1;color:#263222;border:1px solid #c6d9b1;border-radius:9px;padding:12px 20px;font-size:13px;font-weight:600;white-space:nowrap}.ref-primary:hover{background:#dde9cb}.ref-inspector>.ref-primary{width:100%}.ref-preview-favorite{width:100%;margin-top:10px;background:none;border:0;color:#a3bba2;font-size:12px;padding:7px}.ref-text-button{background:none;border:0;color:#bed6b7;font-size:11px;padding:12px 0 0}.ref-detail-note{font-size:10px;color:#87a08a;margin-top:7px}.ref-preview-placeholder{color:#879b89;font-size:12px}
.ref-footer{padding:17px 28px 14px;background:#1d261f;border-top:1px solid #3e4e40;flex-shrink:0}.ref-basket-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.ref-basket-heading strong{font-size:12px;font-weight:500;color:#ceddca}.ref-basket-heading button{background:none;border:0;color:#96ad97;font-size:11px;padding:0}.ref-basket{display:flex;gap:10px;min-height:56px;overflow-x:auto;padding:2px 2px 7px;scrollbar-width:thin;scrollbar-color:#5a6d55 transparent}.ref-basket-empty{font-size:12px;color:#8b9e89;margin:15px 0}.ref-basket-item{position:relative;display:flex;align-items:center;gap:9px;background:#29382b;border:1px solid #41563f;border-radius:8px;padding:5px 27px 5px 5px;flex-shrink:0;min-width:175px}.ref-basket-item .ref-image-frame{height:45px;width:36px;border-radius:4px;flex-shrink:0}.ref-basket-item>div:nth-child(2){max-width:105px}.ref-basket-item span,.ref-basket-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-basket-item span{font-size:10px;color:#9ab993;margin-bottom:4px}.ref-basket-item strong{font-size:11px;font-weight:400;color:#d9e3d2}.ref-basket-remove{position:absolute;top:3px;right:4px;background:none;border:0;color:#b4c6ac;font-size:18px;padding:0 3px}.ref-basket-move{background:none;border:0;color:#96ac91;font-size:12px;position:absolute;right:5px;bottom:3px;padding:1px 2px}.ref-footer-bottom{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-top:10px}.ref-compatibility p{font-size:11px;line-height:1.6;color:#a0b798;margin:0 0 6px;max-width:750px}.ref-compatibility label{font-size:11px;color:#bacbb2;display:flex;align-items:center;gap:7px}.ref-compatibility input,.ref-consent input{accent-color:#b9cfa2;flex-shrink:0;width:14px;height:14px;margin:0}.ref-free-note{font-size:10px;color:#83997f;margin:10px 0 0}
.reference-launch{color:#c4dcc7!important}.reference-draft{background:#18241d;border:1px solid #3b5040;border-radius:12px;margin:0 20px 10px;padding:12px 14px}.ref-draft-head{display:flex;justify-content:space-between;align-items:center}.ref-draft-head strong{font-size:11px;color:#c7dfc5;font-weight:500}.ref-draft-head button,.ref-restore,.reference-draft>button{background:none;border:0;color:#a5cba6;font-size:11px;padding:0}.ref-draft-images{display:flex;gap:8px;overflow:auto;margin:9px 0}.ref-draft-chip{display:flex;align-items:center;gap:6px;background:#273a2c;border:1px solid #3c5a42;border-radius:7px;padding:4px 9px 4px 4px;color:#bfd5bb;font-size:10px;flex-shrink:0}.ref-draft-chip .ref-image-frame{height:32px;width:26px;border-radius:3px}.ref-draft-help{font-size:11px;line-height:1.5;color:#bacbac;margin:6px 0 0}
.ref-upload-dialog{width:min(520px,calc(100vw - 32px));background:#1d261f;color:#dbe5d4;border:1px solid #475d46;border-radius:20px;padding:27px;max-height:90dvh;overflow:auto}.ref-upload-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.ref-upload-heading h2{font-size:23px;letter-spacing:-.03em;margin:0;font-weight:500}.ref-upload-dialog p{color:#a3b39a;font-size:12px;line-height:1.7}.ref-upload-dialog form>label{display:block;font-size:12px;margin:17px 0;color:#c1d2b5}.ref-upload-dialog input[type=text],#ref-upload-title-input{display:block;width:100%;border:1px solid #4b6045;border-radius:8px;background:#162018;color:#d6e1ca;padding:12px;margin-top:9px}.ref-upload-roles{border:0;padding:0;margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.ref-upload-roles legend{font-size:12px;margin-bottom:10px;color:#bbcdb0}.ref-upload-roles label{display:flex;align-items:center;gap:10px;padding:12px 10px;background:#27362a;border:1px solid #41563c;border-radius:8px;font-size:13px}.ref-upload-roles small{display:block;font-size:10px;color:#94ac8b;margin-top:5px}.ref-upload-roles input{accent-color:#b9d39b}.ref-file{padding:16px;border:1px dashed #657e59;border-radius:9px}.ref-file input{display:block;margin:10px 0;font-size:11px;max-width:100%}.ref-file small{font-size:10px;color:#8ea47e}.ref-upload-dialog form>.ref-consent{display:flex;align-items:flex-start;gap:9px;line-height:1.7;font-size:11px}.ref-consent input{margin-top:3px}.ref-upload-dialog .ref-primary{width:100%}
@media(min-width:1200px){.ref-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ref-layout{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1000px){.reference-dialog{width:calc(100vw - 32px)}.ref-layout{grid-template-columns:minmax(0,1fr) 260px}.ref-browser{padding:18px}.ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-inspector{padding:20px 16px}.ref-sources{gap:10px}.ref-roles button span{display:none}.ref-roles button strong{margin:0}.ref-results-line span:last-child{display:none}}
@media(max-width:800px){.reference-dialog{height:100dvh;max-height:100dvh;width:100vw;margin:0;border:0;border-radius:0}.ref-header{padding:22px 18px 18px}.ref-header h2{font-size:24px}.ref-header p:last-child{font-size:11px}.ref-layout{display:block;overflow:auto}.ref-browser{overflow:visible;padding:18px}.ref-inspector{border-left:0;border-top:1px solid #354337;overflow:visible;padding:22px 24px}.ref-inspector:has(.ref-inspector-empty){display:none}.ref-large-preview{max-height:360px;max-width:320px;margin:0 auto}.ref-inspector h3{margin-top:14px}.ref-source-detail{margin:12px 0}.ref-grid{gap:18px 13px}.ref-roles{margin-bottom:17px}.ref-roles button{padding:12px 0}.ref-sources{gap:14px}.ref-tools{align-items:flex-start}.ref-upload-open{padding:7px 9px;font-size:11px}.ref-sources button{font-size:11px}.ref-footer{padding:13px 18px 16px}.ref-footer-bottom{gap:12px;align-items:stretch;flex-direction:column;margin-top:8px}.ref-footer-bottom>.ref-primary{width:100%;padding:11px}.ref-basket-heading{margin-bottom:7px}.ref-basket{min-height:39px;max-height:66px}.ref-basket-empty{margin:8px 0;font-size:10px}.ref-basket-item{min-width:152px}.ref-compatibility p{font-size:10px;margin:0 0 6px}.ref-compatibility label{font-size:10px}.ref-free-note{text-align:center;font-size:9px;margin-top:8px}.ref-draft-help{font-size:10px}.reference-draft{margin:0 10px 8px;padding:10px}.reference-launch{font-size:11px!important}.ref-sources-note{margin-top:22px}}
@media(prefers-reduced-motion:reduce){.reference-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.ref-footer:has(.ref-basket-empty) .ref-basket{min-height:30px}.ref-footer:has(.ref-basket-empty) .ref-basket-empty{margin:7px 0}.ref-footer:has(.ref-basket-empty) .ref-footer-bottom{margin-top:0}.ref-footer:has(.ref-basket-empty) .ref-primary{padding:10px 18px}

.reference-context{display:flex;align-items:center;justify-content:center;gap:14px;padding:10px 16px;background:#293224;border-bottom:1px solid #586444;color:#d5dcbd;font-size:11px;flex-wrap:wrap}.reference-context[hidden]{display:none}.reference-context button{background:transparent;border:1px solid #73845d;border-radius:6px;color:#d7e5bf;padding:5px 9px;font-size:11px}.reference-context button:last-child{background:#c6d9b1;color:#263222;border-color:#c6d9b1}

/* Original libraries: preserve complete garments, feet and all pose angles. */
.ref-libraries{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 20px}.ref-libraries>button{text-align:left;padding:15px 17px;border:1px solid #414b42;background:#232c25;border-radius:10px;color:#dde6d7}.ref-libraries>button>span{font-size:9px;letter-spacing:.14em;color:#94a18e}.ref-libraries strong{display:block;font-size:19px;font-weight:500;letter-spacing:-.03em;margin-top:6px}.ref-libraries small{font-weight:400;font-size:11px;margin-left:10px;color:#a4b49c}.ref-libraries p{margin:5px 0 0;color:#96a690;font-size:11px}.ref-libraries>button:hover,.ref-libraries>button[aria-pressed=true]{background:#35412f;border-color:#90a67b}.ref-roles{margin-bottom:17px}
.ref-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px}.ref-filters>label{font-size:10px;color:#9caf97;display:flex;flex-direction:column;gap:5px;min-width:115px;flex:1}.ref-filters select{font-family:inherit;font-size:11px;background:#253126;color:#d5e2cc;border:1px solid #4a5a43;border-radius:6px;min-height:34px;width:100%;padding:5px 8px}.ref-view-mode{display:flex;border:1px solid #44543f;border-radius:7px;overflow:hidden;min-height:34px}.ref-view-mode button{border:0;border-radius:0;background:transparent;color:#9baa94;font-size:10px;padding:7px 9px;white-space:nowrap}.ref-view-mode button[aria-pressed=true]{background:#3b4b32;color:#e0ead7}
.ref-image-frame{aspect-ratio:2/3;background:#e6e6e2}.ref-image-frame img{object-fit:contain}.ref-card-view:hover img{transform:none}.ref-angle-count{display:block;border:0;background:transparent;color:#9fb696;font-size:10px;padding:7px 0 0}.ref-card-meta strong{font-size:11px}.ref-large-preview{aspect-ratio:2/3;max-height:410px}.ref-large-preview img{object-fit:contain}.ref-inspector h3{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.ref-original-open{display:block;width:100%;margin:9px 0 0;padding:7px 0;background:transparent;border:0;color:#b5cdaa;font-size:11px}.ref-angle-choices{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.ref-angle-choices button{border:1px solid #4e6545;background:#233222;color:#abbfa0;border-radius:6px;font-size:10px;padding:6px 9px}.ref-angle-choices button[aria-pressed=true]{background:#cbddb7;border-color:#cbddb7;color:#27341f}.ref-inspector .ref-tags{max-height:80px;overflow:auto}
.ref-original-dialog{padding:0;width:calc(100vw - 48px);max-width:1600px;height:calc(100dvh - 48px);max-height:none;background:#151b17;border:1px solid #485940;border-radius:14px;color:#dbe4d5;overflow:hidden}.ref-original-dialog[open]{display:flex;flex-direction:column}.ref-original-dialog::backdrop{background:#070a09df;backdrop-filter:blur(12px)}.ref-original-dialog header{display:flex;gap:12px;align-items:center;padding:18px 22px;border-bottom:1px solid #374831;flex-shrink:0}.ref-original-dialog header>div{flex:1;min-width:0}.ref-original-dialog strong{display:block;font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ref-original-dialog header span{display:block;color:#9caf8f;font-size:11px;margin-top:5px}.ref-original-dialog button{color:#cedfc1;background:#293925;border:1px solid #58704a;border-radius:7px;padding:7px 10px;font-size:12px}.ref-original-dialog button:focus-visible{outline:2px solid #cee7b3;outline-offset:3px}#ref-original-close{font-size:23px;line-height:20px}#ref-original-canvas{min-height:0;flex:1;overflow:auto;padding:18px;text-align:center}#ref-original-canvas img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:auto}.ref-original-dialog.is-zoomed #ref-original-canvas img{max-width:none;max-height:none}.ref-original-dialog #ref-original-canvas p{font-size:13px;color:#a3b797}
@media(min-width:1200px){.ref-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ref-layout{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:800px){.ref-libraries{gap:8px;margin-bottom:16px}.ref-libraries>button{padding:12px}.ref-libraries strong{font-size:17px}.ref-libraries small{display:block;margin:3px 0 0;font-size:10px}.ref-libraries p{font-size:9px}.ref-libraries>button>span{font-size:8px}.ref-filters{gap:8px}.ref-filters>label{min-width:95px}.ref-view-mode{width:100%;justify-content:center}.ref-view-mode button{flex:1}.ref-large-preview{max-height:420px}.ref-original-dialog{width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0}.ref-original-dialog header{padding:15px 12px;gap:8px}.ref-original-dialog strong{font-size:12px}.ref-original-dialog button{font-size:10px}#ref-original-canvas{padding:10px}}

/* Keep actual images visible on laptop and phone height, with controls compact. */
.ref-header{padding:19px 24px 17px}.ref-header h2{font-size:25px;margin-bottom:5px}.ref-header .ref-eyebrow{margin-bottom:7px}.ref-header p:last-child{font-size:11px}.ref-browser{padding:16px 22px}.ref-roles{margin-bottom:12px}.ref-roles button{padding:8px 5px}.ref-roles button strong{font-size:13px;margin-bottom:4px}.ref-libraries{margin-bottom:12px;gap:10px}.ref-libraries>button{padding:10px 13px}.ref-libraries strong{font-size:17px;margin-top:4px}.ref-libraries p{font-size:10px;margin-top:3px}.ref-tools{margin-bottom:10px}.ref-search{height:38px}.ref-filters{margin-top:10px}.ref-results-line{margin:12px 0 10px}.ref-footer{padding:11px 22px 9px}.ref-basket-heading{margin-bottom:6px}.ref-basket{min-height:38px;padding-bottom:3px}.ref-basket-item{padding:4px 26px 4px 4px}.ref-basket-item .ref-image-frame{height:34px;width:27px}.ref-footer-bottom{margin-top:6px}.ref-free-note{margin-top:6px}
@media(min-width:801px) and (max-height:850px){.ref-header{padding:12px 22px}.ref-header .ref-eyebrow{display:none}.ref-header h2{font-size:21px}.ref-header p:last-child{display:none}.ref-header .ref-close{height:30px;width:30px;line-height:28px;font-size:22px}.ref-browser{padding:12px 18px}.ref-roles button span{display:none}.ref-roles button strong{margin:0}.ref-libraries>button>span,.ref-libraries p{display:none}.ref-libraries>button{padding:8px 12px}.ref-libraries strong{font-size:14px;margin:0}.ref-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 12px}.ref-card-view>.ref-image-frame{aspect-ratio:1/1}.ref-footer .ref-compatibility p{margin-bottom:3px}.ref-footer .ref-primary{padding:10px 17px}.ref-inspector{padding:16px}.ref-large-preview{max-height:290px}}
@media(max-width:800px){.ref-header{padding:17px 18px 14px}.ref-header h2{font-size:23px}.ref-header p:last-child{font-size:10px}.ref-browser{padding:14px 18px}.ref-roles button{padding:8px 0}.ref-roles button strong{margin:0}.ref-libraries>button>span,.ref-libraries p{display:none}.ref-libraries strong{font-size:15px}.ref-libraries small{display:inline;font-size:9px;margin-left:6px}.ref-libraries>button{padding:10px}.ref-filters>label{font-size:9px}.ref-footer{padding:10px 18px 12px}.ref-basket{min-height:36px}.ref-footer-bottom{margin-top:5px;gap:9px}}
@media(min-width:1200px) and (max-height:850px){.ref-browser{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);align-content:start;column-gap:12px}.ref-browser>*{grid-column:1/-1}.ref-browser>.ref-search{grid-column:1;align-self:end}.ref-browser>.ref-filters{grid-column:2;flex-wrap:nowrap;margin-top:0}.ref-filters>label{min-width:0}.ref-roles,.ref-libraries{margin-bottom:9px}.ref-view-mode button{padding:7px}.ref-results-line{margin-top:10px}}

/* Four reference purposes, with source-specific portrait filters. */
.ref-roles{grid-template-columns:repeat(7,minmax(0,1fr))}.ref-libraries{grid-template-columns:repeat(4,minmax(0,1fr))}.ref-libraries>button{min-width:0}.ref-libraries strong{white-space:nowrap}.ref-libraries small{display:block;margin:3px 0 0}.ref-libraries p{font-size:9px}.ref-collection-note{font-size:10px;line-height:1.5;color:#9aae93;margin:9px 0 0}.ref-card[data-asset-id^="portrait-"] .ref-image-frame{aspect-ratio:4/5}.ref-filters select{min-width:0}.ref-roles button span{font-size:9px}
@media(min-width:801px) and (max-height:850px){.ref-libraries small{display:inline;margin-left:7px;font-size:10px}.ref-collection-note{font-size:9px;margin-top:5px}.ref-card[data-asset-id^="portrait-"] .ref-image-frame{aspect-ratio:6/5}}
@media(max-width:800px){.ref-libraries{gap:6px}.ref-libraries>button{padding:8px 6px}.ref-libraries strong{font-size:14px}.ref-libraries small{display:block;margin:3px 0 0;font-size:9px}.ref-roles{gap:3px}.ref-roles button strong{font-size:12px}.ref-collection-note{font-size:9px}.ref-filters>label{min-width:85px}}

/* Standalone reference workspace. Navigation stays outside the image composer. */
.studio-nav #reference-launch[aria-current=page]{background:#303b32;color:#e1ebd9}
body:has(#reference-launch[aria-current=page]) .studio-nav [data-mode][aria-selected=true]{background:transparent;color:#85858f}
.workspace.has-reference-page>:not(.reference-page):not(dialog){display:none!important}
.workspace>.reference-page{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#191c1b;display:flex;flex-direction:column;overflow:hidden}
.workspace>.reference-page[hidden]{display:none!important}
.reference-page .ref-header{padding:22px 28px 18px;align-items:center;background:#191c1b}
.reference-page .ref-header h2{font-size:26px;line-height:1.3;margin:0 0 5px}
.reference-page .ref-header h2:focus{outline:none}
.reference-page .ref-header .ref-eyebrow{display:block;font-size:10px;letter-spacing:.04em;margin:0 0 5px;color:#8a9b8f}
.reference-page .ref-header p:last-child{display:block;font-size:12px}
.reference-page .ref-header .ref-close{height:auto;width:auto;line-height:1.4;border-radius:7px;padding:8px 12px;font-size:11px;background:transparent;border:1px solid #424b43}
.reference-page .ref-layout{grid-template-columns:minmax(0,1fr) 300px;overflow:hidden;flex:1;min-height:0}
.reference-page .ref-browser{display:block;padding:19px 24px;min-width:0;overflow:auto}
.ref-browser-heading,.ref-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
.ref-browser-heading h3{font-size:15px;font-weight:500;margin:0;color:#e8eee6}
.ref-browser-heading button,.ref-section-heading button{background:transparent;color:#a5bb9c;border:0;font-size:10px;padding:3px 0;white-space:nowrap}
.reference-page .ref-libraries{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 15px}
.reference-page .ref-libraries>button{padding:10px;text-align:left;background:#232a25;border:1px solid #3a443c;border-radius:8px}
.reference-page .ref-libraries>button>span,.reference-page .ref-libraries p{display:none}
.reference-page .ref-libraries strong{font-size:14px;margin:0;font-weight:500}
.reference-page .ref-libraries small{display:block;margin:4px 0 0;font-size:10px;font-weight:400;color:#98a493}
.reference-page .ref-libraries>button[aria-pressed=true]{border-color:#b6cb9c;background:#35412f;color:#e1edce}
.reference-page .ref-tools{margin-bottom:10px}.reference-page .ref-sources{gap:18px}.reference-page .ref-sources button{font-size:11px}
.reference-page .ref-upload-open{padding:7px 10px;font-size:10px}
.reference-page .ref-search{height:36px}.reference-page .ref-search input{font-size:12px}
.reference-page .ref-filters{margin-top:9px;flex-wrap:wrap;gap:7px}
.reference-page .ref-filters>label{min-width:90px}.reference-page .ref-filters select{min-height:31px;font-size:10px}
.reference-page .ref-collection-note{font-size:10px;line-height:1.6;margin-top:9px}
.reference-page .ref-results-line{margin:12px 0 10px}.reference-page .ref-results-line span:last-child{font-size:9px}
.reference-page .ref-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}
.reference-page .ref-card .ref-image-frame{aspect-ratio:4/5}.reference-page .ref-card .ref-image-frame img{object-fit:contain}
.reference-page .ref-card-meta{padding-top:9px}.reference-page .ref-card-meta strong{font-size:10px}
.ref-plan{overflow:auto;background:#151a16;border-left:1px solid #323a32;padding:20px 19px;scrollbar-width:thin;scrollbar-color:#505f53 transparent}
.ref-section-heading h3{margin:0;font-size:11px;font-weight:500;letter-spacing:.02em;color:#bdcbb9}
.ref-base-empty{width:100%;min-height:154px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #65725e;border-radius:10px;background:#212a21;color:#d7e4ce}
.ref-base-empty>span{font-size:25px;line-height:1}.ref-base-empty strong{font-size:13px;font-weight:500}.ref-base-empty small{font-size:9px;color:#90a18b}.ref-base-empty:hover{background:#2c3829;border-color:#a7c191}
.ref-base-image{height:154px;aspect-ratio:auto;border-radius:9px;background:#252f27}.ref-base-image img{object-fit:contain}
.ref-base-actions{display:flex;justify-content:space-between;margin-top:7px}.ref-base-actions button{border:0;background:transparent;color:#adc69e;font-size:10px;padding:3px 0}
.ref-base-help{font-size:10px;line-height:1.6;color:#8f9e8a;margin:8px 0 21px}
.ref-plan-section{margin-bottom:18px}.ref-plan-status{font-size:10px;color:#a6b99a;margin:9px 0 0}
.reference-page #ref-basket{display:flex;flex-direction:column;gap:7px;min-height:0;max-height:none;overflow:visible;padding:0}
.ref-slot{display:flex;align-items:center;min-width:0;background:#202820;border:1px solid #364231;border-radius:8px;overflow:hidden}
.ref-slot.is-replaced{border-color:#647b53;background:#2a3626}
.ref-slot-edit{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:8px;border:0;background:transparent;color:#d3dfcb;text-align:left}
.ref-slot-edit>.ref-image-frame,.ref-slot-mark{display:grid;place-items:center;flex-shrink:0;width:33px;height:39px;border-radius:4px;background:#303b2c;font-size:18px;color:#7e9172}
.ref-slot-edit>span:not(.ref-slot-mark):not(.ref-slot-arrow){min-width:0;flex:1}.ref-slot-edit strong{display:block;font-size:11px;font-weight:500}.ref-slot-edit small{display:block;color:#97a58e;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;max-width:165px}.ref-slot-arrow{font-size:12px;color:#93a985}
.ref-slot-remove{padding:8px;border:0;background:transparent;color:#bdcdb0;font-size:17px}
.ref-legacy{font-size:10px;border:1px solid #7f693f;color:#d8bb81;background:transparent;padding:8px}
.reference-page .ref-inspector{border:0;padding:18px 0 0;background:transparent;overflow:visible;border-top:1px solid #333d30}
.reference-page .ref-inspector:has(.ref-inspector-empty){display:none}
.reference-page .ref-inspector .ref-large-preview{height:230px;max-height:none;aspect-ratio:auto}
.reference-page .ref-inspector h3{font-size:13px}.reference-page .ref-inspector .ref-primary{width:100%;font-size:11px;padding:11px}
.reference-page .ref-inspector .ref-source-detail{font-size:10px}.reference-page .ref-inspector .ref-tags{max-height:60px}
.reference-page .ref-footer{padding:13px 24px 10px;border-top:1px solid #384131;background:#1b221a;flex-shrink:0}
.ref-prompt-label{display:block;font-size:10px;color:#b9c7ae}.ref-prompt-label>span{color:#7e8d76;margin-left:6px}
.ref-prompt-label textarea{display:block;resize:none;min-height:44px;max-height:90px;width:100%;margin-top:6px;padding:9px 11px;color:#d6e1cf;font:inherit;font-size:11px;line-height:1.6;border:1px solid #46513e;border-radius:7px;background:#141b14;outline:none}
.ref-prompt-label textarea:focus{border-color:#9bb785}
.reference-page .ref-footer-bottom{display:flex;flex-direction:row;align-items:center;gap:15px;margin-top:10px}
.reference-page .ref-compatibility{flex:1;min-width:0}.reference-page .ref-compatibility p{font-size:10px;margin:0 0 5px;line-height:1.5}.reference-page .ref-compatibility label{font-size:9px}
.ref-save-actions{display:flex;gap:8px;flex-shrink:0}.ref-secondary{border:1px solid #71835f;border-radius:7px;background:transparent;color:#c4d6b3;padding:10px 13px;font-size:11px}
.reference-page .ref-save-actions .ref-primary{padding:11px 15px;font-size:11px;border-radius:7px;white-space:nowrap}
.reference-page .ref-free-note{font-size:9px;margin:6px 0 0;text-align:right;color:#849477}
@media(min-width:1500px){.reference-page .ref-layout{grid-template-columns:minmax(0,1fr) 330px}.reference-page .ref-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:761px) and (max-height:800px){.reference-page .ref-header{padding:15px 24px 13px}.reference-page .ref-header h2{font-size:22px}.reference-page .ref-header .ref-eyebrow{display:none}.reference-page .ref-browser{padding-top:14px}.ref-plan{padding-top:15px}.ref-base-image,.ref-base-empty{height:125px;min-height:125px}.ref-base-help{margin-bottom:14px}.ref-slot-edit{padding:6px 8px}.ref-slot-edit>.ref-image-frame,.ref-slot-mark{height:33px;width:28px}.reference-page .ref-footer{padding-top:9px}.ref-prompt-label textarea{height:39px;min-height:39px}.reference-page .ref-grid{gap:14px 10px}}
@media(max-width:1050px) and (min-width:761px){.reference-page .ref-layout{grid-template-columns:minmax(0,1fr) 250px}.reference-page .ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-page .ref-browser{padding:15px}.ref-plan{padding:15px}.ref-slot-edit small{max-width:120px}.reference-page .ref-header{padding-left:22px}}
@media(max-width:760px){.workspace>.reference-page{position:absolute}.reference-page .ref-header{padding:18px 16px 14px 58px;min-height:86px}.reference-page .ref-header h2{font-size:21px}.reference-page .ref-header .ref-eyebrow{display:none}.reference-page .ref-header p:last-child{font-size:10px}.reference-page .ref-header .ref-close{font-size:9px;padding:6px;white-space:nowrap}.reference-page .ref-layout{display:flex;flex-direction:column;overflow:auto}.ref-plan{order:0;overflow:visible;border:0;padding:16px;background:#151a16}.reference-page .ref-browser{order:1;overflow:visible;padding:18px 16px}.ref-base-empty{min-height:100px}.ref-base-image{height:140px}.ref-base-help{margin-bottom:15px}.reference-page #ref-basket{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ref-slot-edit{padding:7px;gap:6px}.ref-slot-edit small{max-width:88px}.ref-slot-remove{padding:4px}.ref-plan-section{margin-bottom:0}.reference-page .ref-inspector{margin-top:17px}.reference-page .ref-inspector .ref-large-preview{height:280px}.reference-page .ref-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.reference-page .ref-libraries{margin-bottom:13px}.reference-page .ref-libraries strong{font-size:13px}.reference-page .ref-libraries small{font-size:9px}.reference-page .ref-footer{padding:10px 14px 9px}.reference-page .ref-footer-bottom{flex-direction:column;align-items:stretch;gap:7px;margin-top:7px}.reference-page .ref-save-actions{justify-content:flex-end}.reference-page .ref-save-actions .ref-primary,.ref-secondary{padding:9px 12px;font-size:10px}.reference-page .ref-free-note{font-size:8px}.ref-prompt-label textarea{height:39px;min-height:39px}.reference-page .ref-view-mode{width:auto}.reference-page .ref-compatibility p{font-size:9px}.reference-page .ref-compatibility label{font-size:9px}.reference-page .ref-results-line span:last-child{display:none}}
/* A complete first row remains visible above the fixed editing controls. */
@media(min-width:761px){.reference-page .ref-card .ref-image-frame{aspect-ratio:1/1}}
@media(min-width:761px) and (max-height:800px){.reference-page .ref-card .ref-image-frame{aspect-ratio:6/5}}
@media(min-width:1100px) and (max-height:800px){.reference-page .ref-browser{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(0,1.2fr);align-content:start;column-gap:12px}.reference-page .ref-browser>*{grid-column:1/-1}.reference-page .ref-browser>.ref-search{grid-column:1;align-self:end}.reference-page .ref-browser>.ref-filters{grid-column:2;margin-top:0}.reference-page .ref-filters>label{min-width:80px}}

/* R5: category navigation stays outside both scrolling panes. */
.reference-page .ref-pinned-libraries{flex-shrink:0;padding:12px 24px;margin:0;border-bottom:1px solid #354035;background:#1b221d}
.ref-model-label{display:flex;align-items:center;gap:12px;font-size:11px;color:#bfccb7;margin-bottom:9px}
.ref-model-label select{max-width:310px;min-width:0;padding:7px 10px;border:1px solid #54624b;border-radius:6px;background:#202820;color:#e3ebdc;font:inherit}
#ref-model-count{font-variant-numeric:tabular-nums;color:#bacaab}
.ref-slot:not(.is-replaced){background:#1b211c;border:1px dashed #525d50}
.ref-slot.is-replaced{border:1px solid #c1dc9e;background:#3d4e32;box-shadow:inset 3px 0 #c1dc9e}
.ref-slot-edit strong{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#edf4e6;font-size:12px}
.ref-slot-status{display:inline-block;white-space:nowrap;font-size:9px;font-weight:500;padding:3px 5px;border-radius:3px;background:#30392e;color:#b7c0b1}
.is-replaced .ref-slot-status{background:#d0e6ad;color:#233019}
.is-replaced .ref-slot-edit small{color:#d4e0c8}
.ref-slot-edit small{max-width:190px}.ref-slot-arrow{display:none}
.ref-card-view{touch-action:manipulation;user-select:none}
@media(max-width:760px){.reference-page .ref-pinned-libraries{padding:9px 14px;margin:0}.ref-model-label{gap:6px;flex-wrap:wrap;font-size:10px}.ref-model-label select{flex:1;max-width:none;padding:6px}.ref-model-label #ref-model-count{width:100%}.ref-slot-edit strong{font-size:10px;gap:3px}.ref-slot-status{font-size:8px;padding:2px 3px}.ref-slot-edit small{max-width:100px}.reference-page .ref-results-line span:last-child{display:inline}}

/* Styling workspace: compact fixed navigation, full-height gallery, one plan rail. */
.reference-page .ref-header{display:flex;align-items:center;gap:18px;min-height:60px;padding:9px 16px;background:#191f1a}
.reference-page .ref-header h2{font-size:18px;white-space:nowrap;margin:0;letter-spacing:0}
.reference-page .ref-header .ref-eyebrow{display:none}
.reference-page .ref-header .ref-close{font-size:10px;padding:7px 9px}
.reference-page .ref-header .ref-pinned-libraries{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-width:570px;margin:0;padding:0;border:0;background:none}
.reference-page .ref-pinned-libraries>button{padding:8px 10px;border-radius:6px}
.reference-page .ref-pinned-libraries strong{font-size:13px;display:flex;align-items:baseline;gap:8px}
.reference-page .ref-pinned-libraries small{display:inline;margin:0;font-size:9px;white-space:nowrap}
.reference-page .ref-close{margin-left:auto}
.reference-page .ref-layout{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 286px;min-height:0;overflow:hidden}
.reference-page .ref-browser{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,.9fr);column-gap:12px;align-content:start;overflow:auto;padding:12px 16px 20px}
.reference-page .ref-browser>*{grid-column:1/-1}
.reference-page .ref-tools{grid-column:1;margin:0;min-height:34px;gap:8px}.reference-page .ref-sources{gap:12px;flex-wrap:nowrap}.reference-page .ref-sources button{font-size:10px}
.reference-page .ref-upload-open{font-size:10px;padding:6px 8px}.reference-page .ref-search{grid-column:2;height:34px;padding:0 9px}.reference-page .ref-search input{font-size:11px}
.reference-page .ref-filters{grid-column:1/-1;display:flex;gap:7px;margin:9px 0 0;flex-wrap:nowrap}.reference-page .ref-filters>label{min-width:0;max-width:230px}.reference-page .ref-filters select{min-height:29px;font-size:10px}
.reference-page .ref-filters:not(:has(>:not([hidden]))){display:none}.reference-page .ref-collection-note{display:none}
.reference-page .ref-results-line{margin:10px 0 9px;align-items:center}.reference-page .ref-message{font-size:10px;margin-bottom:8px}
.reference-page .ref-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:15px 12px;align-items:start}
.reference-page .ref-card .ref-image-frame{aspect-ratio:3/4}.reference-page .ref-card-meta{padding:7px 0 0}.reference-page .ref-card-meta strong{font-size:10px}.reference-page .ref-kind{font-size:9px}
.reference-page .ref-plan{overflow:auto;position:static;padding:12px;min-width:0;scrollbar-gutter:stable;background:#171d18}
.reference-page .ref-section-heading{margin-bottom:8px}.reference-page .ref-section-heading h3{font-size:11px}.reference-page .ref-section-heading button{font-size:9px}
.reference-page #ref-base{display:flex;gap:10px;align-items:center}.reference-page .ref-base-empty{min-height:53px;height:53px;display:grid;grid-template-columns:28px 1fr;column-gap:8px;row-gap:3px;padding:8px 12px;text-align:left;justify-content:start}
.reference-page .ref-base-empty>span{grid-row:1/3;font-size:23px}.reference-page .ref-base-empty strong{font-size:11px}.reference-page .ref-base-empty small{font-size:9px}
.reference-page .ref-base-image{width:50px;height:62px;min-height:62px;flex-shrink:0;aspect-ratio:auto}.reference-page .ref-base-actions{display:flex;gap:12px;align-items:center;flex:1;margin:0}.reference-page .ref-base-help{font-size:9px;margin:6px 0 14px}
.reference-page #ref-basket{display:grid;grid-template-columns:1fr;gap:7px}.reference-page .ref-slot{min-height:53px}.reference-page .ref-slot-edit{padding:7px;gap:7px}.reference-page .ref-slot-edit>span:not(.ref-slot-mark):not(.ref-slot-arrow){min-width:0}
.reference-page .ref-slot-edit>.ref-image-frame,.reference-page .ref-slot-mark{width:28px;height:36px}.reference-page .ref-slot-edit strong{font-size:11px;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:5px}.reference-page .ref-slot-status{font-size:8px;padding:2px 4px}.reference-page .ref-slot-edit small{max-width:122px;font-size:9px;margin-top:3px}
.ref-random{align-self:center;flex-shrink:0;margin-right:6px;padding:6px;border:1px solid #6d7b60;border-radius:5px;background:#34432a;color:#d7e6c7;font-size:10px;white-space:nowrap}.ref-random:hover:not(:disabled){background:#4a6038;border-color:#aac88e}.ref-random:disabled{opacity:.45}.reference-page .ref-slot-remove{padding:4px 6px 4px 0;font-size:15px}
.reference-page .ref-plan-status{font-size:9px;margin:8px 0 12px}.reference-page .ref-plan-section{margin:0}
.reference-page .ref-footer{padding:12px 0 0;margin:0;border-top:1px solid #354230;background:none}
.reference-page .ref-model-label{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px;font-size:10px}.reference-page .ref-model-label>span{margin-left:auto;font-size:9px}.reference-page .ref-model-label>.studio-select,.reference-page .ref-model-label>select{order:2;flex-basis:100%;max-width:100%;width:100%}
.reference-page .ref-prompt-label{font-size:10px}.reference-page .ref-prompt-label textarea{margin-top:5px;height:57px;min-height:57px;font-size:10px;padding:8px}
.reference-page .ref-footer-bottom{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin-top:9px}.reference-page .ref-compatibility:has(p:not(.is-warning)){display:none}.reference-page .ref-compatibility p{font-size:10px;margin:0;line-height:1.65}
.reference-page .ref-save-actions{display:grid;grid-template-columns:auto 1fr;gap:7px}.reference-page .ref-save-actions .ref-primary,.reference-page .ref-secondary{font-size:10px;padding:10px 8px}.reference-page .ref-free-note{font-size:8px;margin-top:7px;text-align:center}
.reference-page>.ref-inspector{position:absolute;inset:60px 0 0 auto;z-index:3;width:286px;margin:0;padding:13px;background:#1a241b;border-left:1px solid #526448;box-shadow:-12px 0 32px #0004;overflow:auto;scrollbar-width:thin}
.reference-page>.ref-inspector:has(.ref-inspector-empty){display:none}.reference-page .ref-inspector .ref-preview-top{position:sticky;top:-13px;background:#1a241b;z-index:1;margin:-13px -13px 12px;padding:13px}.reference-page .ref-preview-close{border:1px solid #728267;border-radius:5px;padding:5px 8px;color:#dfebd5}
.reference-page .ref-inspector .ref-large-preview{height:260px;max-height:none;aspect-ratio:auto;object-fit:contain}.reference-page .ref-inspector .ref-eyebrow{display:block;font-size:10px}
#ref-plan-toggle{display:none}
/* A compact attached plan tile lives inside the prompt, on its right edge. */
.workspace .composer-prompt:has(>.reference-draft:not([hidden])) #prompt{padding-right:96px}.workspace .composer-prompt:has(>.reference-draft:not([hidden])) .field-heading{right:96px}
.workspace .composer-prompt>.reference-draft{position:absolute;right:0;top:3px;width:80px;height:80px;margin:0;padding:0;border:1px solid #a6c688;border-radius:9px;background:#c9dfb1;overflow:hidden}
.reference-draft>.ref-design-tile{display:flex;width:100%;height:100%;padding:9px 5px;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:transparent;color:#304525;border:0}
.ref-design-tile .icon{width:23px;height:23px}.ref-design-tile strong{font-size:11px;font-weight:600}.ref-design-tile span{font-size:9px;color:#4f653f}.reference-draft>.ref-design-tile:hover{background:#dfedcb}.ref-design-tile:focus-visible{outline:2px solid #263e20;outline-offset:-4px}.reference-draft.has-error{border-color:#ddb566!important}
@media(max-width:1100px) and (min-width:761px){.reference-page .ref-header{gap:10px;padding-inline:12px}.reference-page .ref-pinned-libraries strong{display:block}.reference-page .ref-pinned-libraries small{display:none}.reference-page .ref-layout{grid-template-columns:minmax(0,1fr) 264px}.reference-page>.ref-inspector{width:264px}.reference-page .ref-browser{grid-template-columns:1fr;padding-inline:12px}.reference-page .ref-tools,.reference-page .ref-search{grid-column:1}.reference-page .ref-search{margin-top:8px}.reference-page .ref-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}}
@media(max-width:760px){.reference-page .ref-header{display:grid;grid-template-columns:1fr auto auto;gap:9px;padding:12px 12px 9px 56px;min-height:100px}.reference-page .ref-header h2{font-size:17px}.reference-page .ref-header .ref-close{grid-column:3;grid-row:1;margin:0;font-size:9px}.reference-page .ref-header #ref-plan-toggle{display:block;grid-column:2;grid-row:1;background:#35462a;color:#d8e8c7;border:1px solid #637c50;border-radius:5px;font-size:10px;padding:7px}
.reference-page .ref-header .ref-pinned-libraries{grid-column:1/-1;margin-left:-44px;max-width:none;grid-template-columns:repeat(4,minmax(0,1fr))}.reference-page .ref-pinned-libraries strong{display:flex;justify-content:center;font-size:12px}.reference-page .ref-pinned-libraries small{display:none}.reference-page .ref-pinned-libraries>button{padding:7px}
.reference-page .ref-layout{display:block;overflow:hidden;position:relative}.reference-page .ref-browser{height:100%;display:grid;grid-template-columns:1fr;padding:10px 12px;overflow:auto}.reference-page .ref-tools,.reference-page .ref-search{grid-column:1}.reference-page .ref-search{margin-top:8px}.reference-page .ref-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.reference-page .ref-results-line span:last-child{display:inline}.reference-page .ref-view-mode{width:auto}
.reference-page .ref-plan{display:none;height:100%;overflow:auto;padding:12px 16px}.reference-page.show-ref-plan .ref-plan{display:block}.reference-page.show-ref-plan .ref-browser{display:none}.reference-page>.ref-inspector{top:103px;width:min(340px,100%);padding:14px}.reference-page .ref-slot-edit small{max-width:190px}.reference-page .ref-base-empty{min-height:53px}.reference-page .ref-footer{padding-top:12px}.reference-page .ref-model-label{gap:6px}.reference-page .ref-model-label #ref-model-count{width:auto}.reference-page .ref-slot-status{font-size:9px}
.workspace .composer-prompt>.reference-draft{width:68px;height:72px}.workspace .composer-prompt:has(>.reference-draft:not([hidden])) #prompt{padding-right:80px}.workspace .composer-prompt:has(>.reference-draft:not([hidden])) .field-heading{right:80px}}
.reference-page .ref-header .ref-pinned-libraries p{display:none}
@media(min-width:1101px){.reference-page .ref-browser>.ref-tools{grid-column:1}.reference-page .ref-browser>.ref-search{grid-column:2;align-self:start}.reference-page .ref-browser>.ref-filters{grid-column:1/-1}}
/* The current compact composer has a 43px input row; keep the tile inside it. */
.workspace .glass-dock .composer-prompt:has(>.reference-draft:not([hidden])){position:relative}
.workspace .glass-dock .composer-prompt>.reference-draft{right:3px;top:0;width:44px;height:43px;border-radius:6px}
.workspace .glass-dock .reference-draft>.ref-design-tile{position:relative;padding:4px 1px;gap:3px}
.workspace .glass-dock .ref-design-tile .icon{width:17px;height:17px}.workspace .glass-dock .ref-design-tile strong{font-size:8px;line-height:10px}.workspace .glass-dock .ref-design-tile span{display:none}.workspace .glass-dock .ref-design-tile::after{content:attr(data-count);position:absolute;right:3px;top:1px;font-size:8px;line-height:10px;color:#415933}
.workspace .glass-dock .composer-prompt:has(>.reference-draft:not([hidden])) #prompt{padding-right:58px}
.workspace .glass-dock .glass-surface:has(.reference-draft:not([hidden])) .dock-expand{right:72px}
.workspace .glass-dock .has-expand-control .composer-prompt:has(>.reference-draft:not([hidden])) #prompt{padding-right:94px}
