:root{--bg:#f5f4f1;--surface:#fff;--surface-soft:#f8f7f5;--sidebar:#faf9f7;--text:#252435;--muted:#797786;--border:#e6e3e9;--accent:#6e55b8;--accent-soft:#eee8fa;--accent-text:#62469f;--green:#497863;--shadow:0 3px 16px #24223504;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#15151b;--surface:#202027;--surface-soft:#27272f;--sidebar:#1a1a21;--text:#edecf2;--muted:#aaa6b8;--border:#34333e;--accent:#b49ce9;--accent-soft:#353045;--accent-text:#c5afea;--green:#92c9ad;--shadow:0 3px 16px #0000000c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button,input,select,textarea{transition:border-color .15s,background-color .15s}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}svg{flex-shrink:0}p,h1,h2,h3{margin:0}button{color:inherit}.muted{color:var(--muted)}.small{font-size:12px}.center{text-align:center}.eyebrow{letter-spacing:.16em;color:var(--accent-text);font-size:10px;font-weight:700;display:block}.app-shell{--nav-width:212px;grid-template-columns:var(--nav-width) minmax(0, 1fr);min-height:100dvh;display:grid}.app-shell.sidebar-collapsed{--nav-width:76px}.sidebar{width:var(--nav-width);background:var(--sidebar);border-right:1px solid var(--border);z-index:30;flex-direction:column;padding:29px 16px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;gap:10px;margin:0 5px 48px;display:flex}.brand-mark{width:35px;height:39px;color:var(--accent-text);background:var(--accent-soft);border-radius:12px 4px;place-items:center;display:grid}.brand-name{letter-spacing:-.06em;font-size:19px;font-weight:700}.brand-name>span{letter-spacing:.1em;color:var(--muted);margin-top:2px;font-size:7px;font-weight:600;display:block}.nav-caption{color:var(--muted);letter-spacing:.15em;margin:0 15px 13px;font-size:9px}nav{gap:6px;display:grid}.nav-item{width:100%;color:var(--muted);text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:13px;padding:13px 15px;font-size:13px;display:flex}.nav-item:hover{background:var(--surface-soft);color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.nav-dot{background:var(--accent);border-radius:50%;width:5px;height:5px;margin-left:auto}.sidebar-note{border:1px solid var(--border);color:var(--accent-text);border-radius:10px;margin:55px 8px 0;padding:19px 13px}.sidebar-note strong{margin:11px 0 5px;font-size:12px;display:block}.sidebar-note p{color:var(--muted);font-size:11px;line-height:1.7}.sidebar-bottom{gap:15px;margin-top:auto;display:grid}.theme-selector{border:1px solid var(--border);background:var(--surface);border-radius:7px;padding:3px;display:flex}.theme-selector button{color:var(--muted);background:0 0;border:0;border-radius:5px;flex:1;justify-content:center;align-items:center;gap:6px;min-height:34px;display:flex}.theme-selector button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-text)}.sidebar .theme-selector span{display:none}.local-status{color:var(--muted);align-items:center;gap:7px;margin:0 13px;font-size:10px;display:flex}.local-status>span,.status-badge>span{background:var(--green);border-radius:50%;width:5px;height:5px}.collapse-button{border:0;border-top:1px solid var(--border);color:var(--muted);background:0 0;align-items:center;gap:9px;padding:14px 13px 0;font-size:10px;display:flex}.sidebar-collapsed .brand-name,.sidebar-collapsed .nav-caption,.sidebar-collapsed .nav-item span,.sidebar-collapsed .sidebar-note,.sidebar-collapsed .local-status,.sidebar-collapsed .collapse-button span{display:none}.sidebar-collapsed .sidebar{padding-inline:10px}.sidebar-collapsed .brand{margin-inline:auto}.sidebar-collapsed .nav-item{justify-content:center;padding-inline:8px}.sidebar-collapsed .theme-selector{flex-direction:column}.sidebar-collapsed .collapse-button{justify-content:center}.workspace-shell{grid-column:2;min-width:0}.topbar{background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:20px;min-height:72px;padding:14px clamp(20px,2.5vw,44px);display:flex}.breadcrumb{color:var(--muted);align-items:center;gap:12px;font-size:12px;display:flex}.breadcrumb strong{color:var(--text);font-weight:500}.topbar-actions{align-items:center;gap:18px;display:flex}.prototype-label{color:var(--muted);font-size:10px}.workspace{padding:34px clamp(20px,2.5vw,44px) 16px}.page-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px;display:flex}h1{letter-spacing:-.05em;margin:9px 0 8px;font-size:clamp(29px,2.7vw,43px);font-weight:600;line-height:1.2}h1>span{color:var(--accent)}.page-heading p{color:var(--muted);font-size:13px}.button{background:var(--surface);border:1px solid var(--border);border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:10px 13px;font-size:12px;font-weight:600;display:inline-flex}.button:hover{border-color:var(--accent)}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}[data-theme=dark] .button.primary{color:#211c31}.button.subtle{background:0 0}.count{background:var(--surface-soft);min-width:20px;height:20px;color:var(--muted);border-radius:5px;place-items:center;padding-inline:5px;font-size:10px;display:inline-grid}.icon-button{width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:6px;place-items:center;display:inline-grid}.icon-button:hover{background:var(--surface-soft)}.reference-strip{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;margin-bottom:28px;padding:18px}.strip-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.strip-heading strong{font-size:12px;font-weight:600}.strip-heading>span{color:var(--muted);letter-spacing:.12em;font-size:8px}.reference-grid{grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:10px;display:grid}.reference-tile{background:var(--surface-soft);text-align:left;border:1px solid #0000;border-radius:7px;align-items:center;gap:11px;min-width:0;padding:8px;display:flex;position:relative}.reference-tile:hover{border-color:var(--accent)}.tile-art{border-radius:4px;flex-shrink:0;place-items:center;width:45px;height:54px;display:grid;overflow:hidden}.reference-art,.reference-image{object-fit:cover;width:100%;height:100%;display:block}.reference-art{--art-bg:#e9e1d7;--art-shadow:#cfc5b5;--art-highlight:#f7f2e8;--art-ink:#514b49}.tone-violet{--art-bg:#e8e2ef;--art-shadow:#cfc1dd;--art-highlight:#9b83b0;--art-ink:#39323e}.tone-rose{--art-bg:#e9dfe0;--art-shadow:#cebcbe;--art-highlight:#dabbb0;--art-ink:#5a4246}.tone-ink{--art-bg:#e0dfe2;--art-shadow:#c8c5cc;--art-highlight:#f4f0e8;--art-ink:#37323b}.tone-ivory{--art-bg:#e8e6df;--art-shadow:#cfcabf;--art-highlight:#f8f4ec;--art-ink:#514d50}.tile-copy{gap:3px;min-width:0;padding-right:10px;display:grid}.tile-copy>span{color:var(--muted);font-size:9px}.tile-copy strong{overflow-wrap:anywhere;font-size:11px;font-weight:600}.tile-change{color:var(--muted);position:absolute;top:7px;right:5px}.compose-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:clamp(18px,2vw,30px);display:grid}.composer{min-width:0}.composer-heading{justify-content:space-between;align-items:center;gap:10px;margin:0 2px 17px;display:flex}.composer-heading>span:first-child{align-items:center;gap:9px;font-size:13px;font-weight:600;display:flex}.name-field{margin:0 0 16px}.field{color:var(--text);gap:7px;min-width:0;font-size:11px;font-weight:600;display:grid}.field input,.field select,.field textarea,.library-toolbar input,.library-toolbar select{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;color:var(--text);border-radius:6px;padding:10px 11px;font-size:12px;font-weight:400}.field textarea{resize:vertical;line-height:1.7}.field input::placeholder,.field textarea::placeholder{color:var(--muted)}.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--muted)}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.optional{color:var(--muted);font-weight:400}.control-section{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:10px;margin-bottom:12px}.control-section summary{cursor:pointer;align-items:center;gap:12px;padding:17px 18px;list-style:none;display:flex}.control-section summary::-webkit-details-marker{display:none}.section-icon{width:34px;height:34px;color:var(--accent-text);background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;place-items:center;display:grid}.section-heading{gap:3px;min-width:0;display:grid}.section-heading strong{font-size:13px;font-weight:600}.section-heading>span{color:var(--muted);overflow-wrap:anywhere;font-size:10px}.section-chevron{color:var(--muted);margin-left:auto}.control-section[open] .section-chevron{transform:rotate(180deg)}.section-body{gap:14px;padding:0 18px 18px;display:grid}.reference-control{text-align:left;background:var(--surface-soft);border:1px solid var(--border);border-radius:7px;align-items:center;gap:12px;width:100%;min-width:0;padding:9px;display:flex}.reference-control:hover{border-color:var(--accent)}.reference-control>span:nth-child(2){gap:3px;min-width:0;display:grid}.reference-control strong{overflow-wrap:anywhere;font-size:12px;font-weight:600}.reference-control>svg{color:var(--muted);margin-left:auto}.mini-art{border-radius:5px;flex-shrink:0;place-items:center;width:36px;height:42px;display:grid;overflow:hidden}.preserve-note{color:var(--green);align-items:center;gap:6px;font-size:10px;display:flex}.toggle-row{cursor:pointer;align-items:center;gap:12px;display:flex;position:relative}.toggle-row>span:first-child{flex:1;gap:4px;display:grid}.toggle-row strong{font-size:11px;font-weight:600}.toggle-row input{opacity:0;cursor:pointer;width:36px;height:22px;margin:0;position:absolute;right:0}.switch-track{background:var(--muted);pointer-events:none;border-radius:20px;flex-shrink:0;width:36px;height:22px;padding:3px}.switch-track:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;display:block}.toggle-row input:checked+.switch-track{background:var(--accent)}.toggle-row input:checked+.switch-track:after{transform:translate(14px)}.toggle-row input:focus-visible+.switch-track{outline:3px solid var(--accent);outline-offset:3px}.segmented{background:var(--surface-soft);border:1px solid var(--border);border-radius:7px;padding:3px;display:flex}.segmented button{color:var(--muted);background:0 0;border:1px solid #0000;border-radius:5px;flex:1;min-width:0;padding:8px 5px;font-size:11px}.segmented button[aria-pressed=true]{color:var(--accent-text);background:var(--surface);border-color:var(--border);box-shadow:var(--shadow);font-weight:600}.garment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.garment-card{gap:12px;min-width:0;display:grid}.garment-card .eyebrow{font-size:8px}.garment-card .reference-control{gap:7px;padding:6px}.garment-card .reference-control .small{font-size:9px}.support-note{color:var(--muted);background:var(--surface-soft);border-radius:6px;align-items:start;gap:7px;padding:11px;font-size:10px;display:flex}.build-button{width:100%;min-height:45px;margin:5px 0 10px}.build-button>svg:last-child{margin-left:auto}.build-button>svg:first-child{margin-right:auto}.prompt-column{min-width:0;position:sticky;top:20px}.prompt-panel{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;padding:23px 20px 18px}.prompt-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px;display:flex}.prompt-heading h2{letter-spacing:-.04em;margin-top:7px;font-size:20px;font-weight:600}.prompt-heading .eyebrow{font-size:8px}.status-badge{background:var(--surface-soft);color:var(--green);border:1px solid var(--border);white-space:nowrap;border-radius:20px;align-items:center;gap:6px;padding:4px 7px;font-size:9px;display:flex}.status-badge.stale{color:#b77d24}.status-badge.stale>span{background:#b77d24}.preview-tabs{margin-bottom:16px}.prompt-content{scrollbar-width:thin;scrollbar-color:var(--border) transparent;min-height:260px;max-height:calc(100dvh - 370px);padding-right:6px;overflow-y:auto}.prompt-section{border-bottom:1px solid var(--border);padding:15px 0 19px}.prompt-section:first-child{padding-top:4px}.prompt-section:last-child{border:0}.prompt-section>div{align-items:center;gap:9px;margin-bottom:9px;display:flex}.section-number{letter-spacing:.03em;color:var(--accent-text);background:var(--accent-soft);border-radius:4px;place-items:center;width:24px;height:22px;font-size:9px;font-weight:600;display:grid}.prompt-section h3{font-size:11px;font-weight:600}.prompt-section p{color:var(--muted);font-size:12px;line-height:1.9}.prompt-tools{border-top:1px solid var(--border);justify-content:space-between;gap:10px;padding:14px 0 10px;display:flex}.prompt-tools .button{border:none;min-height:30px;padding:7px 2px;font-size:10px}.prompt-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.prompt-actions .button{min-height:42px;padding:9px 8px;font-size:11px}.preview-footnote{color:var(--accent-text);justify-content:center;align-items:center;gap:11px;margin:20px 0;display:flex}.preview-footnote p{font-size:10px;line-height:1.7}.preview-footnote span{color:var(--muted);font-size:9px}.full-prompt{min-height:350px}.checklist-item{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:12px 0;display:flex}.checklist-item>div{flex:1;gap:3px;display:grid}.checklist-item strong{font-size:11px}.checklist-item>svg{color:var(--green)}.edit-badge{color:var(--accent-text);padding-bottom:12px;font-size:10px}.workspace-footer{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;gap:12px;margin-top:32px;padding:17px 0 0;font-size:9px;display:flex}.notice{background:var(--accent-soft);color:var(--accent-text);border:1px solid var(--border);border-radius:8px;align-items:center;gap:10px;margin-bottom:20px;padding:10px 12px;font-size:12px;display:flex}.notice>span{flex:1}.mobile-nav-button,.nav-backdrop{display:none}.skip-link{z-index:100;background:var(--surface);border:1px solid var(--accent);padding:10px;position:fixed;top:-60px;left:10px}.skip-link:focus{top:10px}.reference-dialog{border:1px solid var(--border);background:var(--surface);width:min(740px,100vw - 32px);max-height:calc(100dvh - 48px);color:var(--text);border-radius:14px;margin:auto;padding:27px}.reference-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#12111a80}.dialog-heading{justify-content:space-between;align-items:start;gap:10px;margin-bottom:10px;display:flex}.dialog-heading h2{letter-spacing:-.04em;margin:7px 0;font-size:25px}.picker-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin:23px 0;display:grid}.picker-card{border:1px solid var(--border);background:var(--surface-soft);text-align:left;border-radius:8px;gap:8px;padding:10px;display:grid}.picker-card:hover{border-color:var(--accent)}.picker-card .reference-art{border-radius:5px;height:155px}.picker-card strong{font-size:13px}.picker-card .muted{font-size:11px}.upload-card{text-align:center;border:1px dashed var(--muted);min-height:170px;color:var(--accent-text);cursor:pointer;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:16px;display:flex;position:relative}.upload-card span{color:var(--muted);font-size:10px}.upload-card input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.upload-card:focus-within{outline:3px solid var(--accent);outline-offset:3px}.upload-details{grid-template-columns:100px minmax(0,1fr);gap:18px;padding:16px 0;display:grid}.upload-preview{border-radius:8px;height:130px;overflow:hidden}.upload-details h3{margin-bottom:12px}.upload-details p{margin:10px 0}.dialog-footer{border-top:1px solid var(--border);color:var(--muted);align-items:start;gap:8px;padding-top:16px;font-size:10px;display:flex}.error{color:#d25959}.library-toolbar{gap:12px;margin-bottom:24px;display:flex}.library-toolbar input{flex:1}.library-toolbar select{width:200px}.library-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:18px;display:grid}.library-card{background:var(--surface);border:1px solid var(--border);text-align:left;border-radius:10px;gap:7px;min-width:0;padding:13px;display:grid}.library-card:hover{border-color:var(--accent)}.library-card .reference-art{border-radius:6px;height:180px;margin-bottom:7px}.library-card .eyebrow{font-size:8px}.library-card strong{font-size:14px}.library-card .small{align-items:center;gap:8px;font-size:10px;display:flex}.versions-heading{margin:30px 0 15px;font-size:18px}.version-list{gap:10px;display:grid}.version-card{background:var(--surface);border:1px solid var(--border);text-align:left;border-radius:9px;align-items:center;gap:15px;padding:18px;display:flex}.version-card>span{flex:1;gap:4px;display:grid}.version-card>svg{color:var(--accent-text)}.empty-state{text-align:center;background:var(--surface);border:1px dashed var(--border);color:var(--muted);border-radius:10px;padding:45px 18px}.empty-state>svg{margin:0 auto 12px}.empty-state h3{color:var(--text);margin-bottom:7px}.intro-panel,.settings-panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:clamp(24px,5vw,64px)}.intro-panel>svg{color:var(--accent-text);margin-bottom:22px}.intro-panel p,.settings-panel p{max-width:600px;color:var(--muted);margin:20px 0;line-height:1.9}.intro-panel .button{margin:0 10px 10px 0}.settings-panel h2{margin-top:30px;font-size:18px}.settings-panel .theme-selector{max-width:330px}.confirm-overlay{z-index:60;background:#12111a80;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;width:min(100%,480px);padding:28px}.confirm-card h2{font-size:22px}.confirm-card p{color:var(--muted);margin:18px 0}.confirm-actions{justify-content:flex-end;gap:12px;display:flex}@media (min-width:1800px){.reference-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.tile-art{width:58px;height:65px}.tile-copy strong{font-size:13px}.tile-copy>span{font-size:11px}.field,.prompt-section h3{font-size:13px}.field input,.field textarea,.field select,.prompt-section p{font-size:14px}}@media (max-width:1190px){.app-shell{--nav-width:180px}.compose-grid{grid-template-columns:minmax(0,1fr)}.prompt-column{position:static}.prompt-content{max-height:550px}.sidebar-note{padding:14px 8px}.brand-name{font-size:17px}}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.app-shell,.app-shell.sidebar-collapsed{--nav-width:212px;display:block}.sidebar{transform:translate(-100%)}.sidebar.mobile-open{transform:translate(0)}.sidebar-collapsed .brand-name,.sidebar-collapsed .nav-caption,.sidebar-collapsed .nav-item span,.sidebar-collapsed .sidebar-note,.sidebar-collapsed .local-status{display:revert}.sidebar-collapsed .nav-item{justify-content:flex-start;padding-inline:15px}.sidebar-collapsed .theme-selector{flex-direction:row}.collapse-button{display:none}.mobile-nav-button{display:grid}.nav-backdrop{z-index:29;background:#12111a80;border:0;display:block;position:fixed;inset:0}.topbar{gap:10px;min-height:62px;padding:10px 16px}.topbar-actions{gap:0}.prototype-label{display:none}.topbar-actions .button{padding:8px 10px;font-size:10px}.breadcrumb{gap:7px}.breadcrumb>span{display:none}.workspace{padding:26px 16px 16px}.page-heading{align-items:start;margin-bottom:24px}.page-heading .button{padding:8px;font-size:10px}.page-heading .button>svg{display:none}.page-heading p{font-size:11px}.eyebrow{font-size:8px}.reference-strip{padding:13px}.strip-heading>span{display:none}.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-tile{gap:7px;padding:6px}.tile-art{width:38px;height:48px}.composer-heading .small{font-size:10px}.garment-grid{grid-template-columns:1fr}.garment-card{border:1px solid var(--border);border-radius:8px;padding:12px}.prompt-panel{padding:20px 16px 16px}.workspace-footer{flex-direction:column;gap:6px}.reference-dialog{padding:20px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.library-card{padding:10px}.library-card .reference-art{height:140px}.library-toolbar{flex-direction:column}.library-toolbar select{width:100%}}@media (max-width:380px){.field-grid{grid-template-columns:1fr}.page-heading{flex-direction:column;gap:13px}.topbar-actions .button>span{display:none}.reference-grid,.upload-details{grid-template-columns:1fr}.upload-preview{width:100px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}.field{font-size:12px}.field input,.field select,.field textarea{min-height:42px;font-size:14px}.section-heading strong{font-size:14px}.section-heading>span{font-size:12px}.reference-control strong,.toggle-row strong{font-size:13px}.toggle-row .small{font-size:12px}.prompt-section h3{font-size:13px}.prompt-section p{font-size:14px;line-height:1.8}.segmented button{min-height:38px;font-size:12px}.support-note{font-size:12px}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.field input,.field select,.field textarea{font-size:16px}}.confirm-card{max-height:calc(100dvh - 40px);color:var(--text);margin:auto}.confirm-card::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#12111a80}.mobile-close{display:none}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.sidebar{visibility:hidden}.sidebar.mobile-open{visibility:visible}.mobile-close{display:grid;position:absolute;top:6px;right:6px}.nav-backdrop{left:var(--nav-width)}}.color-field{gap:7px;min-width:0;display:grid}.color-field-label{font-size:12px;font-weight:600}.color-disclosure{border:1px solid var(--border);background:var(--surface);border-radius:8px;min-width:0}.color-disclosure>summary{cursor:pointer;align-items:center;gap:10px;padding:10px;list-style:none;display:flex}.color-disclosure>summary::-webkit-details-marker{display:none}.color-disclosure>summary>span:nth-child(2){overflow-wrap:anywhere;flex:1;min-width:0;font-size:13px;font-weight:600}.color-disclosure small{color:var(--muted);margin-top:2px;font-size:10px;font-weight:400;display:block}.color-preview{border:1px solid var(--border);border-radius:8px;flex-shrink:0;width:30px;height:30px}.color-preview.no-color{background:linear-gradient(135deg, var(--surface-soft) 47%, var(--muted) 48%, var(--muted) 51%, var(--surface-soft) 52%)}.color-editor{gap:12px;padding:3px 12px 12px;display:grid}.color-editor .react-colorful{width:100%;height:150px}.color-editor .react-colorful__saturation{border-bottom:0;border-radius:7px 7px 0 0}.color-editor .react-colorful__hue{border-radius:7px;height:15px;margin-top:10px}.color-editor .react-colorful__pointer{width:20px;height:20px}.color-editor .field{font-size:11px}.color-editor .field input{min-height:34px;padding-block:6px}.color-swatches{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.color-swatches button{border:1px solid var(--border);border-radius:6px;min-height:30px}.color-swatches button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.color-clear{min-height:30px;padding:6px;font-size:11px}.ingredient-icon{color:var(--accent-text);background:var(--accent-soft);border-radius:6px;flex-shrink:0;place-items:center;width:34px;height:38px;display:grid}.text-ingredient-tile{min-height:67px}.text-ingredient-tile .tile-copy>span{font-size:10px}.text-ingredient-tile .tile-copy strong{font-size:11px}.ingredient-editor-field{margin:20px 0}.preset-list{gap:10px;margin:20px 0;display:grid}.text-preset{border:1px solid var(--border);background:var(--surface-soft);text-align:left;border-radius:8px;align-items:start;gap:12px;padding:13px;display:flex}.text-preset:hover{border-color:var(--accent)}.text-preset>svg{color:var(--accent-text)}.text-preset>span{gap:5px;display:grid}.text-preset strong{font-size:13px}.text-preset span>span{color:var(--muted);font-size:12px;line-height:1.6}.dialog-footer{flex-wrap:wrap;justify-content:space-between;align-items:center}.library-card .text-preset-icon{color:var(--accent-text);margin:12px 0}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.color-editor .react-colorful{height:130px}.strip-heading>span{display:none}}.field-grid{align-items:start}.image-analysis{border:1px solid var(--border);border-radius:10px;margin:18px 0;overflow:hidden}.image-analysis summary{cursor:pointer;flex-wrap:wrap;align-items:center;gap:8px;padding:14px;display:flex}.image-analysis-body{gap:14px;padding:0 14px 14px;display:grid}.image-analysis-body p{margin:0;line-height:1.6}.image-analysis input[type=file]{width:100%;min-width:0}.analysis-thumbnail{object-fit:contain;background:var(--surface-soft);border-radius:8px;width:100%;height:180px}.analysis-result{gap:12px;display:grid}.analysis-error{color:var(--accent-text)}.image-analysis button{white-space:normal}button:disabled{cursor:not-allowed;opacity:.55}.image-paste-area{border:1px dashed var(--border);text-align:center;background:var(--surface-soft);cursor:text;border-radius:8px;gap:7px;padding:18px;font-size:13px;display:grid}.image-paste-area:hover,.image-paste-area:focus-visible{border-color:var(--accent)}.image-paste-area:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.selected-image-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.selected-image-row>span{overflow-wrap:anywhere;min-width:0}.library-save-control{gap:12px;padding:14px 0;display:grid}.library-save-control input{width:100%;min-width:0}.library-thumbnail{object-fit:contain;border-radius:8px;width:100%;height:100px}.prompt-action-header{z-index:5;background:var(--surface);padding-bottom:14px;position:sticky;top:12px}.desktop-prompt-actions{flex-wrap:wrap;gap:8px;display:flex}.desktop-prompt-actions .button{flex:auto;min-height:40px;font-size:11px}.mobile-prompt-actions{display:none}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.desktop-prompt-actions{display:none}.mobile-prompt-actions{z-index:40;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);box-shadow:var(--shadow);gap:8px;display:flex;position:fixed;bottom:0;left:0;right:0}.mobile-prompt-actions>.button{flex:1;min-width:0}.mobile-prompt-actions .button{min-height:44px;padding:8px 10px;font-size:12px}body:has(.mobile-prompt-actions){padding-bottom:calc(82px + env(safe-area-inset-bottom))}.prompt-more-wrap{position:relative}.prompt-more-menu{border:1px solid var(--border);background:var(--surface);width:min(250px,100vw - 24px);box-shadow:var(--shadow);border-radius:10px;gap:6px;padding:8px;display:grid;position:absolute;bottom:calc(100% + 16px);left:0}}.section-replacement-dialog .field{margin:16px 0}.replacement-detection{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.replacement-list{gap:10px;margin:18px 0;display:grid}.replacement-item{border:1px solid var(--border);border-radius:10px;min-width:0;padding:12px}.replacement-item.selected{border-color:var(--accent);background:var(--surface-soft)}.replacement-choice{cursor:pointer;align-items:center;gap:10px;min-height:28px;display:flex}.replacement-choice input{width:18px;height:18px;accent-color:var(--accent);flex:none}.replacement-choice strong{flex:1;font-size:13px}.replacement-choice span{font-size:10px}.replacement-footer{background:var(--surface);z-index:1;margin-bottom:-12px;padding:14px 0;position:sticky;bottom:-27px}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.replacement-choice{flex-wrap:wrap}.replacement-choice strong{min-width:130px}.replacement-footer{gap:8px;bottom:-18px}.section-replacement-dialog h2{font-size:22px}}.draft-status{color:var(--muted);margin:0 0 12px;font-size:12px}.pwa-status{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px;padding:12px;font-size:12px;display:flex}.portable-library{border:1px solid var(--border);border-radius:12px;margin:16px 0;padding:14px}.portable-actions,.import-review{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.import-review p{flex-basis:100%}.mobile-bottom-nav,.mobile-workflow{display:none}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.mobile-bottom-nav{z-index:39;padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);display:flex;position:fixed;bottom:0;left:0;right:0}.mobile-bottom-nav button{min-height:52px;color:var(--muted);background:0 0;border:0;border-radius:8px;flex:1;justify-items:center;gap:3px;font-size:11px;display:grid}.mobile-bottom-nav button[aria-current=page]{color:var(--accent-text);background:var(--surface-soft)}.mobile-prompt-actions{bottom:calc(60px + env(safe-area-inset-bottom));gap:6px;padding-bottom:10px}.mobile-prompt-actions .button{padding:8px}body:has(.mobile-bottom-nav){padding-bottom:calc(80px + env(safe-area-inset-bottom))}body:has(.mobile-prompt-actions){padding-bottom:calc(144px + env(safe-area-inset-bottom))}.mobile-workflow{gap:8px;margin:12px 0 20px;display:flex}.mobile-workflow button{flex:1;min-height:44px}.mobile-workflow button[aria-pressed=true]{background:var(--surface-soft);border-color:var(--accent)}[data-mobile-stage=ingredients] .prompt-column,[data-mobile-stage=review] .composer{display:none}[data-mobile-stage=review] .prompt-column{width:100%}.reference-dialog{width:100%;max-width:100%;max-height:100dvh;margin:auto}.reference-dialog textarea,.workspace input,.workspace textarea,.workspace select{font-size:16px}.reference-dialog .dialog-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.pwa-status .button,.replacement-choice{min-height:44px}}.version-group{border:1px solid var(--border);border-radius:12px;margin:12px 0;padding:14px}.version-group>summary{cursor:pointer;min-height:44px}.device-version{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding:12px 0;display:flex}.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.comparison-grid textarea{width:100%}@media (max-width:760px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.comparison-grid{grid-template-columns:minmax(0,1fr)}.page-heading{flex-wrap:wrap;gap:12px;display:flex}.page-heading>div{flex:100%;min-width:0}.page-heading>button{white-space:normal;flex:130px;min-width:0}.workspace-shell,.workspace,.library-toolbar{min-width:0}.mobile-bottom-nav,.mobile-prompt-actions{width:100%}[data-view=compose][data-mobile-stage=review] .page-heading,[data-view=compose][data-mobile-stage=review] .reference-strip{display:none}body{font-size:16px}.workspace{padding:16px 12px}.button,.prompt-tools .button,.topbar-actions .button,.page-heading .button,.mobile-prompt-actions .button,.theme-selector button,.segmented button,.color-clear{white-space:normal;min-width:44px;min-height:48px;font-size:14px}.icon-button{flex:0 0 44px;width:44px;height:44px}.mobile-prompt-actions .button{gap:5px;font-size:13px}.mobile-bottom-nav button{min-height:52px;font-size:12px}.field,.color-field-label,.page-heading p,.reference-control strong,.toggle-row strong,.color-disclosure>summary>span:nth-child(2){font-size:14px}.field input,.field select,.field textarea,.reference-dialog input,.reference-dialog textarea,.reference-dialog select{font-size:16px}.field input:not([type=checkbox]):not([type=radio]),.field select,.reference-tile,.toggle-row,.control-section>summary,.color-disclosure>summary{min-height:48px}.color-swatches{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}.color-swatches button{min-width:44px;min-height:44px}.color-editor .react-colorful__hue{height:44px}.color-editor .react-colorful__pointer{width:28px;height:28px}.sidebar{overscroll-behavior:contain;max-height:100dvh;padding-top:54px;overflow-y:auto}.sidebar .brand{margin-bottom:24px}.sidebar-note{margin-top:20px}:is(.app-shell:has(.sidebar.mobile-open) .mobile-bottom-nav,.app-shell:has(.sidebar.mobile-open) .mobile-prompt-actions){visibility:hidden}.reference-dialog[open]{inset:var(--visual-top,0px) 0 auto;width:100%;max-width:100%;height:min(100dvh, var(--visual-height,100dvh));max-height:min(100dvh, var(--visual-height,100dvh));padding:max(16px, env(safe-area-inset-top)) 16px 0;overscroll-behavior:contain;border-radius:0;margin:0;scroll-padding-block:20px 100px;position:fixed;overflow-y:auto}body:has(dialog[open]){overflow:hidden}.reference-dialog .dialog-heading{align-items:center}.reference-dialog .dialog-heading h2{font-size:24px;line-height:1.25}.reference-dialog .dialog-footer,.replacement-footer{padding:12px 0 max(12px, env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);z-index:2;flex-wrap:wrap;margin-bottom:0;position:sticky;bottom:0}.dialog-footer>.button{flex:120px}.dialog-footer>span{flex-basis:100%}.confirm-card{width:min(440px,100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto}.confirm-actions{flex-wrap:wrap}.confirm-actions>.button{flex:1}.prompt-content{max-height:none;overflow:visible}.full-prompt{min-height:45dvh}.portable-actions>.button{flex:130px}.device-version>span{flex-basis:100%}.version-group>summary,.device-version,.notice,.text-preset,.prompt-section p,.replacement-item,.version-card strong{overflow-wrap:anywhere}.text-preset,.text-preset>span,.replacement-item,.field,.field-grid>*,.device-version>*{min-width:0}.segmented{flex-wrap:wrap}.pwa-status{gap:8px;padding:10px 12px;font-size:13px}.pwa-options{margin-left:auto}.pwa-options>summary{cursor:pointer;min-height:44px;color:var(--accent-text);align-items:center;display:flex}.pwa-options[open]{flex:100%}.pwa-options-actions{flex-wrap:wrap;align-items:center;gap:10px;padding-block:8px;display:flex}.pwa-options-actions>span{flex:100%}:root[data-keyboard-open=true] .mobile-bottom-nav,:root[data-keyboard-open=true] .mobile-prompt-actions{display:none}:root[data-keyboard-open=true] body{padding-bottom:16px}}@media (max-width:380px){.page-heading>button{flex-basis:auto;width:100%}.library-grid,.field-grid{grid-template-columns:minmax(0,1fr)}}
