[hidden]{display:none!important}.web-login{min-height:100vh;display:grid;place-items:center;padding:24px}.web-login form{width:400px;max-width:100%;padding:32px}.web-login h1{margin:24px 0 8px}.web-login p{color:var(--muted);line-height:1.7;margin-bottom:20px}.web-login small{display:block;color:var(--muted);line-height:1.8;margin-top:20px}.web-login .primary{width:100%}.web-error{color:#d46857!important}.web-page-title{display:flex;align-items:center;gap:12px}.web-page-actions{display:flex;align-items:center;gap:8px}.web-page-actions input{width:210px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:9px}.web-save-state{font-size:12px;color:var(--muted)}.web-reference{max-width:100%;height:230px;object-fit:contain}.web-note{background:var(--accent-soft);color:var(--text);padding:12px 16px;line-height:1.8;font-size:12px}.web-source-list{display:flex;flex-wrap:wrap;gap:16px;padding:20px}.web-source-list figure{width:180px;margin:0}.web-source-list img{width:100%;height:220px;object-fit:contain;background:var(--soft)}.web-source-list figcaption{font-size:12px;margin-top:8px;overflow-wrap:anywhere}.web-project-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;justify-content:space-between;align-items:center}.web-project-row p{font-size:12px;color:var(--muted);margin-top:6px}.web-empty{color:var(--muted);padding:28px 0}.web-readiness{line-height:1.8;font-size:12px;color:var(--muted)}.web-readiness strong{color:var(--text)}.web-inline-field{display:flex;gap:8px}.web-inline-field .field{flex:1;min-width:0}.web-upload-progress{color:var(--accent);font-size:12px}.web-asset-download{font-size:12px;color:var(--accent)}.to-upload input[type=file],.to-model-picker input{cursor:pointer}.to-input-panel .to-options{grid-template-columns:repeat(2,minmax(0,1fr))}.web-full-field{width:100%;padding:10px;background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:5px}.web-caption{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.8}.web-asset-actions{display:flex;justify-content:space-between;margin-top:4px}.web-asset-actions button{font-size:11px;padding:4px 8px}.to-runbar .primary:disabled{opacity:.55;cursor:not-allowed}.web-coming{max-width:540px;margin:auto;padding:36px;line-height:1.9}.web-coming p{color:var(--muted);font-size:13px}.web-coming h2{margin-bottom:12px}.web-coming .field{margin-top:24px}.web-coming textarea{height:130px}@media(max-width:1180px){.web-page-actions input{width:140px}.web-page-actions{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:800px){.web-page-title{align-items:flex-start;flex-direction:column}.web-page-actions{width:100%;justify-content:flex-start}.web-page-actions input{flex:1}.top-actions .preview-badge{display:none}}
.nav-item>.nav-text{width:auto;flex:1;white-space:nowrap;font-size:13px}.web-page-actions{margin-left:auto}.web-page-title .subtitle{margin-right:auto}.to-clothes-grid:has(>div:only-child){grid-template-columns:1fr}

/* Global upload status: a small floating card while image bytes are in flight. */
#upload-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;pointer-events:none;background:#07141b1f;backdrop-filter:blur(2px);animation:upload-overlay-in .16s ease-out}
.upload-overlay-card{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;gap:8px 12px;align-items:center;min-width:280px;max-width:min(420px,calc(100vw - 32px));padding:18px 20px 14px;border:1px solid #18aeb5;border-radius:12px;background:var(--panel,#fff);color:var(--text,#142c33);box-shadow:0 18px 50px #07141b33,0 0 0 4px #18aeb51a}
.upload-overlay-spinner{grid-row:1 / span 2;width:34px;height:34px;border:4px solid #bfe6e7;border-top-color:#18aeb5;border-radius:50%;animation:upload-overlay-spin .8s linear infinite}
.upload-overlay-card strong{display:block;font-size:15px;line-height:1.3}
.upload-overlay-card small{display:block;margin-top:3px;color:var(--muted,#5c7278);font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upload-overlay-track{grid-column:2;height:5px;margin-top:2px;overflow:hidden;border-radius:99px;background:#d9eeee}
.upload-overlay-track span{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#18aeb5,#61d6d2);animation:upload-overlay-track 1.15s ease-in-out infinite}
@keyframes upload-overlay-spin{to{transform:rotate(360deg)}}
@keyframes upload-overlay-track{0%{transform:translateX(-110%)}50%{transform:translateX(115%)}100%{transform:translateX(270%)}}
@keyframes upload-overlay-in{from{opacity:0}to{opacity:1}}

/* Upload status stays on the image card; never blocks the page or other controls. */
.to-upload.upload-inline-active,.pattern-reference-card.upload-inline-active,.to-model-drop.upload-inline-active{position:relative;overflow:hidden}
.upload-inline-status{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px;background:#07141bd9;color:#fff;text-align:center;pointer-events:none;backdrop-filter:blur(2px)}
.upload-inline-spinner{width:30px;height:30px;border:3px solid #ffffff45;border-top-color:#5ee0da;border-radius:50%;animation:upload-inline-spin .75s linear infinite}
.upload-inline-status strong{font-size:13px;line-height:1.3;color:#fff}
.upload-inline-status small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.3;color:#d7eeef}
@keyframes upload-inline-spin{to{transform:rotate(360deg)}}
.top-balance{display:flex;align-items:baseline;gap:4px;border:1px solid #d8e7e4;background:#f4fbf8;color:#245b57;border-radius:5px;padding:6px 9px;line-height:1;white-space:nowrap}
.top-balance b{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.top-balance small{font-size:9px;color:#6f8f8a}
.top-balance-ai{background:#fbf7ec;border-color:#eadfc5;color:#765a2b}
.top-balance-ai small{color:#9a8154}
.theme-dark .top-balance{background:#12333a;border-color:#2a5a5d;color:#8fe4df}
.theme-dark .top-balance small{color:#79a5a6}
.theme-dark .top-balance-ai{background:#332c1e;border-color:#5a4b2d;color:#e4c987}
.theme-dark .top-balance-ai small{color:#b09a6b}
@media(max-width:1180px){.top-balance small{display:none}.top-balance{padding:6px 7px}}
@media(max-width:800px){.top-balance{display:none}}
