:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#342d29;background:#f7f5f0;font-size:14px;--accent:#984e3d;--muted:#82766d;--line:#e8e1d9;--white:#fffefb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #cc9d82;outline-offset:3px}[hidden]{display:none!important}.topbar{height:76px;padding:0 max(28px,calc((100vw - 1280px)/2));border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fffefbc9}.brand{display:flex;gap:12px;align-items:center;font-weight:650;font-size:18px;text-decoration:none;letter-spacing:.8px}.top-end{display:flex;gap:16px;align-items:center;color:var(--muted)}.trial{padding:6px 10px;border:1px solid #e3d8ca;border-radius:6px;font-size:12px}main{max-width:1280px;margin:auto;padding:42px 28px 20px}.intro{display:flex;justify-content:space-between;align-items:end;margin-bottom:29px;gap:20px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2.8px;color:var(--accent)}h1{font-size:28px;font-weight:600;letter-spacing:.5px;margin:11px 0 0}h2{font-size:18px;letter-spacing:.2px;margin:0}h3{font-size:16px;font-weight:550}.intro p,.results-heading p,.welcome p{color:var(--muted);line-height:1.7;margin:8px 0 0}.workspace{display:grid;grid-template-columns:414px minmax(0,1fr);gap:30px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 24px #51311a04}.request-panel{padding:25px}.section-title,.results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title{margin-bottom:23px}.text-button{border:0;background:none;padding:0;color:var(--accent)}fieldset{border:0;padding:0;margin:0 0 25px;min-width:0}legend{display:flex;gap:11px;color:var(--accent);font-size:11px;font-weight:650;letter-spacing:1px;padding:0;margin-bottom:15px}legend span{color:#584b43;font-size:13px;letter-spacing:0}.source-options{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:13px}.choice{display:flex;align-items:center;gap:5px;font-size:12px;color:#65584f;cursor:pointer}.choice input{accent-color:var(--accent);margin:0}.source-preview{padding:10px;background:#f6f2ec;border:1px solid #ede5dc;border-radius:9px;display:flex;gap:13px;align-items:center}.source-preview img{width:84px;height:87px;object-fit:cover;border-radius:5px;background:#e9e1d8}.source-preview strong{font-size:13px;font-weight:550}.source-preview p{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 0}.upload-button{display:inline-block;font-size:12px;border-bottom:1px solid #b9927d;color:var(--accent);padding:3px 0;margin-top:5px;cursor:pointer}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}.field-label{display:block;margin:0 0 8px;font-size:12px;font-weight:550}.field-label span{font-size:10px;font-weight:400;color:#a09082;margin-left:6px}textarea,input:not([type=radio]):not([type=color]):not([type=file]),select{width:100%;border:1px solid #dfd6cc;border-radius:7px;background:#fffefb;color:#342d29;padding:11px 12px;line-height:1.5}textarea{resize:vertical;min-height:70px}textarea::placeholder,input::placeholder{color:#b3a599}.two-fields{display:grid;grid-template-columns:1.25fr 1fr;gap:12px;margin-top:16px}.color-field{border:1px solid #dfd6cc;border-radius:7px;display:flex;align-items:center;padding:7px 9px;height:45px;gap:7px;font-family:ui-monospace,monospace;font-size:11px}input[type=color]{border:0;padding:0;width:28px;height:28px;background:none;cursor:pointer}.swatches{display:flex;gap:13px;margin:13px 0 22px}.swatch{display:flex;align-items:center;gap:5px;font-size:11px;border:0;padding:0;background:none;color:var(--muted)}.swatch:before{content:"";width:12px;height:12px;background:var(--swatch);border:1px solid #0000000a;border-radius:50%}.form-note{font-size:11px;color:#99877a;line-height:1.7;margin:0 0 16px}.primary,.secondary{border-radius:7px;padding:10px 15px;border:1px solid transparent;font-weight:500;line-height:1.5;white-space:nowrap}.primary{background:var(--accent);color:#fff8ef}.primary:hover{background:#803e30}.primary span{margin-left:10px}.secondary{background:#fffefb;border-color:#e1d8cd;color:#786357}.secondary:hover{background:#f4eee7}.full{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 15px}.error{color:#aa3228;font-size:12px;line-height:1.65;white-space:pre-wrap}.error:empty{display:none}.submit-status{color:var(--muted);font-size:12px;margin:10px 0 0;line-height:1.6}.submit-status:empty{display:none}.results-heading{margin:2px 0 20px}.results-heading h2{display:flex;align-items:center;gap:8px}.results-heading p{font-size:12px}.count{font-size:11px;background:#eee7dc;border-radius:30px;padding:3px 7px;color:#8b7261;font-weight:500}.orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.empty{grid-column:1/-1;min-height:460px;border:1px dashed #dcd1c4;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a89382;text-align:center;padding:25px}.empty-mark{font-size:44px;color:#b89277;margin-bottom:8px}.empty h3{color:#7a6556;margin:9px 0}.empty p{font-size:12px}.order-card{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}.order-image-button{display:block;padding:0;border:0;background:#f0ebe4;width:100%;position:relative}.order-image-button img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.image-hint{position:absolute;bottom:10px;right:10px;background:#fffefbe8;color:#695342;font-size:10px;padding:5px 8px;border-radius:5px}.card-body{padding:15px}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;color:#ab9786;margin-bottom:11px}.badge{background:#f4e8db;color:#9d6d39;border-radius:4px;padding:4px 6px;font-size:10px}.badge.confirmed{color:#447657;background:#e9f0e8}.badge.cancelled{color:#8d8982;background:#eceae7}.badge.failed{color:#a74437;background:#f9e8e4}.card-text{white-space:pre-wrap;font-weight:500;font-size:17px;line-height:1.6;margin:0 0 9px;overflow-wrap:anywhere}.card-spec{font-size:11px;display:flex;gap:8px;align-items:center;color:#8b7767}.color-dot{display:inline-block;width:10px;height:10px;border-radius:50%;border:1px solid #0000000c}.card-note{font-size:11px;line-height:1.7;color:#948273;margin:10px 0}.card-time{font-size:10px;color:#ad9a89;margin:11px 0}.card-actions{display:flex;flex-wrap:wrap;gap:7px;padding-top:12px;border-top:1px solid #eee7df}.card-actions button,.card-actions a{font-size:11px;padding:6px 9px;text-decoration:none}.cancel-action{font-size:11px;border:0;background:none;color:#ab9585;margin-left:auto;padding:6px 0!important}.welcome{padding:24px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.welcome form{display:flex;gap:10px;max-width:360px}.welcome form input{min-width:0}.welcome .error{width:100%;margin:0}footer{font-size:10px;color:#b7a898;text-align:center;margin-top:34px}footer span{padding:0 8px}dialog{border:1px solid var(--line);border-radius:14px;padding:18px;background:var(--white);color:#342d29;max-width:calc(100vw - 30px)}dialog::backdrop{background:#2d211b99;backdrop-filter:blur(3px)}.dialog-bar{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:12px}#image-dialog{width:820px}#large-image{display:block;width:100%;max-height:74vh;object-fit:contain;background:#f5f1eb}#image-description{color:var(--muted);white-space:pre-wrap;font-size:12px;margin-bottom:0}#action-dialog{width:400px;padding:25px}#action-description{color:var(--muted);line-height:1.8}.dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:24px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1500px){main{padding-top:52px}.workspace{gap:40px}}@media(max-width:1050px){.workspace{grid-template-columns:360px minmax(0,1fr);gap:22px}.request-panel{padding:20px}.orders{grid-template-columns:1fr}.intro p{display:none}}@media(max-width:680px){.topbar{height:64px;padding:0 18px}.brand{font-size:16px}.top-end{gap:8px}.trial{font-size:10px}main{padding:25px 16px 20px}h1{font-size:23px}.intro{margin-bottom:23px}.workspace{grid-template-columns:1fr;gap:27px}.request-panel{padding:20px}.orders{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card-body{padding:11px}.card-text{font-size:14px}.card-meta{font-size:9px}.card-actions{gap:5px}.card-actions button,.card-actions a{font-size:10px;padding:5px 7px}.cancel-action{margin-left:0}.welcome{padding:20px}.welcome form{width:100%;max-width:100%}.empty{min-height:260px}.source-preview img{width:78px;height:82px}.field-label span{font-size:10px}.card-spec{flex-wrap:wrap;gap:5px}.top-end #session-name{font-size:11px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
/* Intake and order tracking, based on the scarf team's real briefs. */
.spaced{margin-top:16px}.muted{color:var(--muted);font-size:11px;margin-left:auto}#source-fields{margin-top:23px}.form-details{border-top:1px solid var(--line);padding:15px 0}.form-details>summary{cursor:pointer;color:#685448;font-size:13px;font-weight:600;line-height:1.7}.form-details>summary span{font-size:11px;color:var(--muted);float:right}.form-details[open]>summary{margin-bottom:15px}.form-details .form-note{margin-top:8px}.attachment-picker{display:flex;align-items:center;gap:14px}.attachment-picker select{min-width:0;flex:1}.attachment-picker .upload-button{position:relative;white-space:nowrap}.attachment-picker input{position:absolute;width:1px;height:1px;opacity:0}.attachment-list{display:grid;gap:8px;margin-top:12px}.attachment-item{display:flex;gap:9px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:7px;background:#faf8f4}.attachment-item img{height:45px;width:45px;object-fit:contain;border-radius:4px;background:#eee8df}.attachment-item>div{flex:1;min-width:0}.attachment-item strong,.attachment-item span{display:block;font-size:11px}.attachment-item span{color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:4px}.attachment-item button{font-size:11px}.quick-options{display:flex;gap:18px;margin-top:10px}.quick-options button{font-size:11px}.route-hint{font-size:11px;line-height:1.8;padding:11px 13px;background:#f4eee5;color:#7d6555;border-radius:7px;margin:18px 0 12px}.order-filters{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 13px}.filter-button{padding:7px 11px;border-radius:20px;border:1px solid var(--line);background:#fffdf8;color:#807267;font-size:12px}.filter-button.active{color:#fffaf5;background:#8b4e3d;border-color:#8b4e3d}.order-search{margin-bottom:18px}.customer-ref{font-size:16px;font-weight:650;margin:5px 0 11px;overflow-wrap:anywhere}.card-note{overflow-wrap:anywhere;white-space:pre-wrap}.card-time{white-space:pre-line}.card-references{font-size:11px;margin:12px 0;color:#82634f}.card-references summary{cursor:pointer}.reference-link{display:block;text-align:left;border:0;background:none;color:#82634f;text-decoration:underline;padding:7px 0;font-size:11px;overflow-wrap:anywhere;max-width:100%}.review-explanation{color:#987145;background:#fbf4e8;padding:10px;border-radius:7px;font-size:11px;line-height:1.8}.badge.queued{background:#f2e8d8;color:#8b7048}.badge.rendering{background:#e2ece8;color:#456c5c}.board-note{margin-top:18px}#history-dialog{width:690px}.history-version{padding:8px 0 22px;border-bottom:1px solid var(--line);margin-bottom:16px}.history-version h3{font-size:15px;color:#7e5844}.history-version .card-text{font-size:18px;margin:8px 0}.card-spec{flex-wrap:wrap}.results-heading #list-status{font-size:11px;color:#967c68}.intro h1{font-size:26px}.intro p{font-size:13px}.request-panel{padding:23px}.card-actions{flex-wrap:wrap}.card-actions .secondary,.card-actions .primary{padding:7px 10px;font-size:11px}.order-image-button:focus-visible{outline-offset:-3px}.form-note:empty{display:none}
@media(max-width:680px){.orders{grid-template-columns:1fr}.request-panel{padding:19px}.intro h1{font-size:22px}.order-filters{gap:5px}.filter-button{padding:6px 9px;font-size:11px}.card-body{padding:18px}.card-text{font-size:18px}.card-meta{font-size:11px}.card-actions button,.card-actions a{font-size:12px!important}.card-note{font-size:12px}.card-time{font-size:11px}.results-heading{align-items:flex-start}.source-options{font-size:12px}}
#composition-dialog{width:700px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:22px}.compose-brief{padding:12px 14px;background:#f8f4ee;border:1px solid var(--line);border-radius:8px;margin-bottom:16px}.compose-brief>summary{cursor:pointer;font-size:12px;font-weight:600;color:#70584a}.compose-brief .card-text{margin-top:12px}.compose-images{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.compose-images figure{margin:0;background:#f5f1eb;border:1px solid var(--line);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}.compose-images img{display:block;width:100%;height:210px;object-fit:contain;background:#fff}.compose-images figcaption{font-size:11px;color:var(--muted);padding:8px 10px;border-top:1px solid var(--line)}#compose-pattern-empty{display:flex;align-items:center;justify-content:center;height:210px;margin:0;font-size:12px;color:var(--muted)}.compose-help{margin-top:8px}#compose-requirements .card-note:last-child{margin-bottom:0}#composition-dialog .dialog-actions{margin-top:15px}@media(max-width:680px){#composition-dialog{padding:17px}.compose-images img,#compose-pattern-empty{height:150px}#composition-dialog .two-fields{grid-template-columns:1fr}#composition-dialog .primary{width:100%}}

.compose-source-stage{position:relative;max-width:100%;align-self:center}.compose-source-overlay{position:absolute;inset:0;pointer-events:none}.compose-source-overlay svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}#compose-quad{fill:#287aba33;stroke:#176dab;stroke-width:2;vector-effect:non-scaling-stroke}.compose-point{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#176dab;color:#fff;font:bold 12px system-ui;box-shadow:0 0 0 2px #fff}.compose-images.custom-placement{grid-template-columns:minmax(0,1fr)}.custom-placement #compose-source{width:auto;height:auto;max-width:100%;max-height:420px;object-fit:fill;cursor:crosshair}.custom-placement #compose-pattern-image,.custom-placement #compose-pattern-empty{height:110px}.compose-custom-controls{padding:12px;border:1px solid var(--line);border-radius:8px;margin-bottom:16px;background:#f5f8fb}#compose-point-status{font-size:12px;color:#176dab;margin:8px 0}.compose-point-actions{display:flex;gap:8px}.compose-point-actions button{font-size:11px;padding:8px 10px}

.library-entry{font-size:12px;margin:0 0 12px}.library-entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:12px}.library-entry-actions button{font-size:12px}#library-dialog{width:900px;max-height:calc(100dvh - 32px);overflow:auto;padding:24px}.library-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.library-tabs [aria-pressed=true]{background:#984e3d;color:#fff8ef;border-color:#984e3d}.library-search{display:flex;gap:9px;margin-bottom:12px}.library-search input{min-width:0;flex:1}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.library-card{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--white);padding-bottom:12px;display:flex;flex-direction:column;align-items:stretch}.library-preview{border:0;padding:0;background:#f1ece5;display:block;cursor:zoom-in}.library-preview img{display:block;width:100%;aspect-ratio:1;object-fit:contain}.library-kind{font-size:10px;color:var(--accent);margin:10px 12px 0}.library-card h3{font-size:13px;line-height:1.5;margin:4px 12px 7px;overflow-wrap:anywhere}.library-card .form-note{margin:0 12px 12px;font-size:10px;overflow-wrap:anywhere}.library-card>.secondary{margin:auto 12px 0;font-size:11px;padding:7px 9px}.library-empty{grid-column:1/-1;padding:35px 12px;text-align:center;color:var(--muted);font-size:12px}.library-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:20px 0;font-size:12px;color:var(--muted)}.library-pagination button{font-size:12px}.library-import-failures{font-size:11px;line-height:1.8;color:#aa3228;max-height:200px;overflow:auto;padding-left:20px}.library-file-fallback{margin-top:12px;font-size:11px;color:var(--muted)}.library-file-fallback summary{cursor:pointer;margin-bottom:10px}#library-import input[type=file]{display:block;max-width:100%;font-size:12px}#library-import .spaced{margin-top:14px}@media(max-width:680px){#library-dialog{padding:16px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-tabs button{font-size:12px;padding:8px 10px}}

.workspace-nav{display:flex;gap:16px;font-size:12px}.workspace-nav a{text-decoration:none}.workspace-nav a:hover{color:var(--accent);text-decoration:underline}@media(max-width:680px){.workspace-nav{gap:10px;font-size:11px}.top-end .trial{display:none}}
.welcome form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto;align-items:stretch;width:min(100%,560px);max-width:none}.welcome form button{min-width:132px}.welcome form input{min-width:0}.welcome form input[hidden]{display:none!important}@media(max-width:680px){.welcome form{grid-template-columns:1fr;gap:10px}.welcome form button{width:100%}}
