:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#303331;background:#f5f5f3;font-size:14px;font-synthesis:none;--line:#dedfdb;--muted:#777b76;--blue:#3163d5}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.45}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button,a,input{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--blue)}[hidden]{display:none!important}.skip{position:absolute;top:-80px;z-index:100;background:white;padding:12px}.skip:focus{top:6px}.topbar{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:24px;background:#fafaf8}.brand{font-size:25px;font-weight:650;letter-spacing:-1.5px}.brand-dot{color:var(--blue)}.divider{color:#c2c4be;font-size:21px;font-weight:300}.topbar h1{font-size:14px;font-weight:500;margin:0;color:#646962}.top-right{margin-left:auto;display:flex;gap:28px;align-items:center}.top-right>a{font-size:12px;color:#767a74}.top-right button{display:flex;align-items:center;gap:9px;font-size:12px;padding:4px 0}.avatar{display:grid;place-items:center;width:27px;height:27px;background:#e8e9e3;border:1px solid #d6d8ce;border-radius:50%;font-size:11px}#account-menu{inset:58px 20px auto auto;margin:0;padding:20px;border:1px solid var(--line);border-radius:8px;background:#fafaf8;box-shadow:0 10px 30px #0001}#account-menu p{font-size:13px}#account-menu small{color:var(--muted)}.workspace{display:grid;grid-template-columns:260px minmax(0,1fr);height:calc(100dvh - 64px);min-height:520px}.library{display:flex;flex-direction:column;padding:30px 18px 20px;border-right:1px solid var(--line);background:#fafaf8;min-height:0;overflow:auto}.library-title{padding:0 8px 23px}.library h2{display:flex;align-items:center;gap:10px;margin:0;font-size:13px;font-weight:600}.library h2 span{font-size:11px;color:#85897f;font-weight:400}.primary{background:var(--blue);color:#fff;border:1px solid #2a56bd;border-radius:5px;font-weight:500;min-height:40px;padding:10px 15px}.primary:hover{background:#2858c6}.new-head{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 7px 24px}.new-head span{font-size:19px;line-height:15px}.head-list{display:grid;gap:7px}.head-row{display:flex;align-items:center;text-align:left;padding:9px;border-radius:6px;gap:12px;width:100%;min-width:0;border:1px solid transparent;min-height:72px}.head-row:hover{background:#f0f1ed}.head-row[aria-pressed=true]{background:#ebeff8;border-color:#d4ddf0}.head-row img,.job-icon{width:44px;height:52px;object-fit:cover;object-position:center 35%;border-radius:3px;flex-shrink:0;background:#e4e5e0}.head-row span{min-width:0;display:grid;gap:7px}.head-row strong{font-size:13px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.head-row small{font-size:11px;color:#8b9087}.head-row[aria-pressed=true] small{color:#6280ba}.library-bottom{margin-top:auto;padding:40px 8px 0;display:grid;gap:10px}.preview-label{font-size:10px;letter-spacing:.03em;color:#92958d}.library-bottom button{text-align:left;padding:0;min-height:25px;font-size:11px;color:#73796f}.library-bottom button:hover{color:var(--blue)}.job-row{border:1px solid #d7e1f4;background:#f1f4fb;margin-bottom:14px}.job-icon{display:grid!important;place-items:center;font-size:22px;color:#5a78b5;background:#e6edf9}.job-row small{color:#5b74a0}.work-preview{min-width:0;display:flex;flex-direction:column;padding:24px 30px 0;overflow:hidden}.viewer-toolbar{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.selected-title{display:flex;align-items:baseline;gap:12px;min-width:0}.selected-title h2{font-size:17px;font-weight:500;letter-spacing:-.3px;margin:0}.selected-title>span{font-size:11px;color:#94988e}.toolbar-actions{display:flex;gap:20px;align-items:center}.segmented{display:flex;padding:3px;border:1px solid #dadcd5;border-radius:6px;background:#eeefe9;gap:2px}.segmented button{font-size:11px;min-height:29px;padding:6px 12px;border-radius:3px}.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #0001}.toolbar-actions>a{font-size:12px;padding:10px 0;white-space:nowrap}.toolbar-actions>a span{margin-left:8px}.toolbar-actions>a:hover{color:var(--blue)}.stage{position:relative;flex:1;min-height:260px;border:1px solid #343635;border-radius:7px;overflow:hidden;background:linear-gradient(#343636,#3b3c3a)}.head-canvas{position:absolute;inset:0}.head-canvas canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}.model-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#c1c4bd}.source{position:absolute;bottom:22px;left:22px;margin:0;pointer-events:none}.source img{display:block;width:74px;height:88px;object-fit:cover;object-position:center 35%;border-radius:4px;border:1px solid #ffffff30}.source figcaption{font-size:10px;color:#b6b9b1;margin-top:7px}.stage-help{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.02em;color:#b1b5ac;pointer-events:none;white-space:nowrap}.stage-status{position:absolute;top:20px;left:20px;color:#d2d8e2;font-size:12px;pointer-events:none}.viewer-bottom{height:64px;display:flex;align-items:center;justify-content:space-between}.viewer-bottom button{font-size:11px;min-height:34px;padding:7px 12px;color:#7a7e75;border-radius:4px}.viewer-bottom button[aria-pressed=true]{background:#e8eae2;color:#30382c}.angle-controls{display:flex;gap:5px}.angle-controls button:nth-child(4){font-size:18px;margin-left:8px}.viewer-bottom>[data-expression-toggle][aria-pressed=true]::before{content:"";display:inline-block;width:5px;height:5px;border-radius:100%;background:#6f8263;margin:0 7px 2px 0}.preview-recovery{position:absolute;top:30%;left:10%;right:10%;background:#fff;padding:22px;border-radius:5px}.preview-recovery button{border:1px solid var(--line);padding:10px}dialog{width:410px;max-width:calc(100% - 32px);padding:26px;border:1px solid #d5d8ce;border-radius:9px;color:#303331;background:#fafaf8;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#10151166;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.dialog-heading h2{font-size:19px;letter-spacing:-.4px;font-weight:500;margin:0}.close{font-size:23px;width:32px;height:32px;color:#6a7065}.dropzone{position:relative;display:flex;align-items:center;justify-content:center;height:205px;border:1px dashed #bac2b0;border-radius:5px;background:#f0f1eb;cursor:pointer;overflow:hidden}.dropzone.drag-over{background:#e8eefb;border-color:var(--blue)}.dropzone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.dropzone:focus-within{outline:2px solid var(--blue);outline-offset:3px}.dropzone img{height:100%;width:100%;object-fit:contain;padding:8px}.dropzone b{font-size:13px;font-weight:500}.dropzone small{display:block;font-size:11px;color:#848a7b;margin-top:10px}.name-label{display:block;font-size:12px;margin:22px 0 9px}#new-name{width:100%;border:1px solid #d6dacf;background:#fff;padding:11px 12px;border-radius:4px}.form-error{font-size:12px;line-height:1.5;color:#a94e40;margin:12px 0;min-height:18px}.generate-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.generate-row>span{font-size:12px;color:#858c7b}.generate-row .primary{font-size:12px}.generate-row .primary span{margin-left:12px}.dialog-note{font-size:10px;color:#8f9587;line-height:1.5;margin:18px 0 0}.progress-name{color:#78816d;font-size:13px;margin-top:0}.progress-bar{height:5px;background:#e0e4da;border-radius:10px;overflow:hidden;margin:30px 0 16px}.progress-bar span{display:block;width:58%;height:100%;background:var(--blue);border-radius:10px}.progress-details{display:flex;justify-content:space-between;gap:10px;font-size:11px}.progress-details strong{font-weight:500;color:var(--blue)}.progress-hint{font-size:12px;color:#7b8370;margin-top:30px}.dismiss{font-size:11px;color:#7a806e;text-decoration:underline;padding:0;min-height:32px;margin-top:10px}
@media(min-width:1600px){.workspace{grid-template-columns:290px minmax(0,1fr)}.work-preview{padding:30px 40px 0}.library{padding-top:38px}.source img{width:90px;height:108px}}
@media(max-width:850px){.workspace{grid-template-columns:210px minmax(0,1fr)}.topbar{padding:0 20px}.library{padding:24px 10px 16px}.work-preview{padding:18px 18px 0}.toolbar-actions{gap:12px}.selected-title>span{display:none}.segmented button{padding:6px 9px}.source img{width:52px;height:64px}.stage-help{left:auto;right:16px;transform:none;font-size:9px}.source{left:16px;bottom:20px}}
@media(max-width:620px){.topbar{height:56px;padding:0 17px;gap:16px}.topbar h1{font-size:12px}.top-right{gap:16px}.top-right button>span:last-child{display:none}.workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 56px)}.library{padding:18px 16px 14px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:12px;overflow:visible}.library-title{padding:0;align-self:center}.new-head{margin:0;min-height:36px;font-size:12px;padding:8px 12px}.head-list{grid-column:1/-1;display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.head-row{min-height:54px;gap:8px;padding:7px;flex:1;min-width:105px}.head-row img{width:30px;height:38px}.head-row strong{font-size:11px}.head-row small{font-size:9px}.library-bottom{grid-column:1/-1;padding:0;display:flex;justify-content:space-between;align-items:center;margin:0}.library-bottom button{font-size:10px}.preview-label{font-size:9px}#job-list:not(:empty){grid-column:1/-1}#job-list:empty{display:none}.job-row{margin:0}.job-icon{width:30px;height:38px}.work-preview{padding:12px 16px 0;min-height:490px;flex:1}.viewer-toolbar{margin:0 0 12px;gap:8px}.selected-title h2{font-size:14px}.toolbar-actions{gap:14px}.toolbar-actions>a{font-size:11px}.toolbar-actions>a span{margin-left:3px}.segmented button{font-size:10px;padding:6px 9px;min-height:30px}.stage{min-height:390px}.stage-help{font-size:9px;bottom:20px}.source img{width:48px;height:58px}.viewer-bottom{height:54px}.viewer-bottom button{padding:8px 10px;min-height:38px}.top-right>a{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@media(max-width:360px){.topbar{gap:12px}.top-right>a{display:none}.viewer-toolbar{flex-wrap:wrap;row-gap:10px}.selected-title{flex-basis:100%}.toolbar-actions{width:100%;justify-content:space-between}.stage-help{font-size:8px;right:10px}.source{left:10px}.library{padding-left:12px;padding-right:12px}.head-row{min-width:110px}.generate-row{align-items:flex-start;flex-direction:column}.generate-row .primary{width:100%}}
/* Workshop: squared controls and a visible account balance. */
button,.primary,.segmented,.segmented button,.head-row,.head-row img,.stage,.source img,dialog,.dropzone,#new-name,.preview-recovery,#account-menu{border-radius:2px}.avatar{border-radius:3px;width:34px;height:34px;background:#e7ebf3;color:#3e567e;border-color:#d7dfec;font-weight:600}.top-right #account-button{gap:12px;padding:0}.account-identity{display:grid;gap:3px;text-align:left}.account-identity b{font-weight:550;font-size:12px}.account-identity small{font-size:10px;color:#868b80}.credit-balance{border-left:1px solid var(--line);padding:9px 0 9px 15px;margin-left:6px;color:#7b8274;font-size:11px;white-space:nowrap}.credit-balance b{color:#335cad;font-weight:600;font-variant-numeric:tabular-nums}.account-chevron{color:#8a9180;margin-left:3px}.canvas-views{position:absolute;z-index:3;top:16px;left:16px;display:flex;border:1px solid #ffffff29;background:#2b2e2def;padding:3px;gap:2px;max-width:calc(100% - 32px)}.canvas-views button{font-size:11px;padding:8px 12px;color:#b9c0b8;min-height:32px;white-space:nowrap}.canvas-views button:hover{background:#ffffff0d;color:#fff}.canvas-views button[aria-pressed=true]{background:#eef0ea;color:#2b342b}.stage-status{top:68px}.top-right{gap:24px}
@media(max-width:620px){.topbar{height:66px}.topbar .top-right>a{display:none}.top-right #account-button{gap:8px}.top-right #account-button>span:last-child{display:none}.account-identity small{display:none}.credit-balance{display:block!important;margin-left:0;padding:7px 0 7px 9px;font-size:10px}.account-identity b{font-size:11px}.avatar{height:28px;width:28px}.topbar{gap:12px}.workspace{min-height:calc(100dvh - 66px)}.canvas-views{top:12px;left:12px;max-width:calc(100% - 24px)}.canvas-views button{font-size:10px;padding:7px 10px}.viewer-toolbar{flex-wrap:nowrap}.selected-title{flex-basis:auto}.toolbar-actions{width:auto}.stage-help{bottom:20px}}
@media(max-width:360px){.topbar h1,.topbar .divider{display:none}.canvas-views button{padding:7px 8px}.canvas-views{left:8px;max-width:calc(100% - 16px)}.top-right #account-button{gap:6px}.credit-balance{padding-left:7px}.topbar{padding:0 12px}.brand{font-size:23px}}
.brand{font-size:19px;letter-spacing:-.65px;white-space:nowrap}.topbar h1{font-size:14px;color:#474d43}
@media(max-width:620px){.brand{font-size:16px}.topbar h1{font-size:12px}.topbar{gap:10px}}
@media(max-width:360px){.topbar{flex-wrap:wrap;height:auto;min-height:76px;padding-top:10px;padding-bottom:10px;row-gap:8px}.topbar .divider{display:none}.topbar h1{display:block;order:3;flex-basis:100%;margin:0;font-size:11px}.brand{font-size:15px}.top-right{gap:8px}.top-right #account-button{gap:5px}.avatar{width:24px;height:24px}.account-identity b{font-size:10px}.credit-balance{font-size:9px;padding-left:5px}.workspace{min-height:calc(100dvh - 76px)}}
/* Product title leads; research identity stays quiet. */
.topbar .brand{font-size:12px;font-weight:500;letter-spacing:.02em;color:#7b8075}.topbar h1{font-size:23px;font-weight:600;letter-spacing:-.8px;color:#292f27}.topbar .divider{color:#d5d8cf;font-size:18px}
@media(max-width:620px){.topbar .brand{font-size:10px}.topbar h1{font-size:20px;letter-spacing:-.6px}.topbar{height:auto;min-height:76px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;row-gap:9px}.topbar h1{order:3;flex-basis:100%;margin:0}.topbar .divider{display:none}.top-right{margin-left:auto}.workspace{min-height:calc(100dvh - 92px)}}
/* Material spheres keep the viewer controls easy to scan. */
.canvas-views{gap:3px;padding:4px}.canvas-views button{display:flex;align-items:center;gap:7px;padding:6px 10px;min-height:38px}.view-sphere{display:block;width:25px;height:25px;flex-shrink:0}.mode-label{font-size:9px;letter-spacing:.01em}.wire-sphere{color:#c6cfc8}.canvas-views button[aria-pressed=true] .wire-sphere{color:#405047}.primary{background:#34784e;border-color:#2b6842}.primary:hover{background:#296440}.primary:focus-visible{outline-color:#34784e}.primary:disabled{cursor:default}.stage-status{top:76px}
@media(max-width:620px){.canvas-views button{flex-direction:column;gap:4px;padding:6px 10px;min-width:48px;min-height:52px}.view-sphere{width:23px;height:23px}.mode-label{font-size:8px}.canvas-views{gap:2px;padding:3px}.stage-status{top:85px}}
@media(max-width:360px){.canvas-views button{padding:5px 7px;min-width:43px}.mode-label{font-size:8px}.canvas-views{gap:0}}
.canvas-download{position:absolute;z-index:4;top:16px;right:16px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:10px 14px;border:1px solid #d5dccf;border-radius:2px;background:#f3f5ef;color:#28382b;font-size:12px;font-weight:600;box-shadow:0 2px 6px #0002}.canvas-download svg{width:17px;height:17px}.canvas-download:hover{background:#fff;border-color:#fff}.canvas-download:focus-visible{outline:2px solid #9fcea9;outline-offset:3px}
@media(max-width:850px){.canvas-download{top:auto;bottom:18px;right:16px}.stage-help{bottom:72px;left:50%;right:auto;transform:translateX(-50%)}}
@media(max-width:620px){.canvas-download{min-height:40px;font-size:11px;padding:9px 12px;bottom:20px;right:12px}.stage-help{bottom:76px;font-size:9px}}
.viewer-about{margin:0 0 17px;padding:0 0 16px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6;color:#777e70;max-width:100%;flex-shrink:0}
@media(max-width:620px){.viewer-about{font-size:11px;margin-bottom:10px;padding-bottom:12px;line-height:1.55}}
.viewer-about p{margin:0}.viewer-about p+p{margin-top:7px}.viewer-about a{color:#495e49;text-decoration:underline;text-decoration-color:#abb5a4;text-underline-offset:3px}.viewer-about a:hover{color:#273f29}
.workspace-lighting{display:flex;align-items:center;gap:9px;font-size:11px;color:#7a7e75}.workspace-lighting select{font:inherit;color:#414b3b;border:1px solid #d7dccf;border-radius:2px;background:#fafbf7;padding:7px 27px 7px 9px;min-height:34px;max-width:145px;cursor:pointer}.workspace-lighting select:focus-visible{outline:2px solid #34784e;outline-offset:3px}.viewer-bottom{gap:10px;flex-wrap:wrap;min-height:64px;height:auto;padding:10px 0}.angle-controls{margin-left:auto}
@media(max-width:620px){.workspace-lighting{gap:6px;font-size:10px}.workspace-lighting select{min-height:36px;max-width:122px}.viewer-bottom{justify-content:flex-start;gap:7px}.angle-controls{gap:0}.viewer-bottom .angle-controls button{padding:7px 8px}.angle-controls button:nth-child(4){margin-left:2px}}
@media(max-width:360px){.workspace-lighting>span{display:none}.workspace-lighting select{max-width:112px}.viewer-bottom .angle-controls button{padding:7px 7px}}
/* GitHub-inspired dark workspace. */
:root{color-scheme:dark;background:#0d1117;color:#e6edf3;--line:#30363d;--muted:#8b949e;--blue:#58a6ff}
body{background:#0d1117;color:#e6edf3}.topbar{background:#010409;border-color:#30363d}.topbar .brand{color:#8b949e}.topbar h1{color:#f0f6fc}.topbar .divider{color:#30363d}.top-right>a{color:#8b949e}.top-right>a:hover{color:#58a6ff}.avatar{background:#21262d;color:#c9d1d9;border-color:#30363d}.account-identity small,.credit-balance{color:#8b949e}.credit-balance b{color:#79c0ff}.account-chevron{color:#8b949e}.library{background:#0d1117;border-color:#30363d}.library h2 span,.head-row small{color:#8b949e}.head-row:hover{background:#161b22}.head-row[aria-pressed=true]{background:#161b22;border-color:#388bfd66;box-shadow:inset 3px 0 #2f81f7}.head-row[aria-pressed=true] small{color:#79c0ff}.head-row img,.job-icon{background:#21262d}.preview-label{color:#6e7681}.library-bottom button{color:#8b949e}.library-bottom button:hover{color:#58a6ff}.primary{background:#238636;border-color:#2ea043;color:#fff;box-shadow:0 1px 0 #ffffff1a inset}.primary:hover{background:#2ea043;border-color:#3fb950}.primary:focus-visible{outline-color:#3fb950}.primary:disabled{background:#1b4725;border-color:#264e2d;color:#7d9682}.work-preview{background:#0d1117}.viewer-about{color:#8b949e;border-color:#21262d}.viewer-about a{color:#58a6ff;text-decoration-color:#58a6ff66}.viewer-about a:hover{color:#79c0ff}.selected-title>span{color:#8b949e}.stage{border-color:#30363d;background:linear-gradient(#161b22,#1c2128)}.canvas-views{background:#0d1117ed;border-color:#30363d}.canvas-views button{color:#8b949e}.canvas-views button:hover{background:#21262d;color:#e6edf3}.canvas-views button[aria-pressed=true]{background:#30363d;color:#f0f6fc}.canvas-views button[aria-pressed=true] .wire-sphere{color:#e6edf3}.wire-sphere{color:#8b949e}.canvas-download{background:#21262d;border-color:#484f58;color:#f0f6fc;box-shadow:0 1px 0 #ffffff0a inset}.canvas-download:hover{background:#30363d;border-color:#8b949e}.source img{border-color:#484f58}.source figcaption,.stage-help{color:#8b949e}.stage-status,.model-loading{color:#c9d1d9}.viewer-bottom button{color:#8b949e}.viewer-bottom button:hover{background:#161b22;color:#e6edf3}.viewer-bottom button[aria-pressed=true]{background:#21262d;color:#f0f6fc}.workspace-lighting{color:#8b949e}.workspace-lighting select{background:#21262d;border-color:#30363d;color:#c9d1d9}.workspace-lighting select:focus-visible{outline-color:#58a6ff}dialog,#account-menu{background:#161b22;color:#e6edf3;border-color:#30363d;box-shadow:0 16px 70px #0008}dialog::backdrop{background:#010409a8}.close{color:#8b949e}.dropzone{background:#0d1117;border-color:#484f58}.dropzone.drag-over{background:#13233b;border-color:#58a6ff}.dropzone small,.generate-row>span,.dialog-note,.progress-hint,.progress-name{color:#8b949e}#new-name{background:#0d1117;color:#e6edf3;border-color:#30363d}#new-name::placeholder{color:#6e7681}.form-error{color:#ff7b72}.job-row{background:#111d2e;border-color:#1f6feb66}.job-row small{color:#79c0ff}.job-icon{color:#79c0ff;background:#172940}.progress-bar{background:#30363d}.progress-bar span{background:#238636}.progress-details strong{color:#3fb950}.dismiss{color:#8b949e}.preview-recovery{background:#161b22;color:#e6edf3;border:1px solid #30363d}.skip{background:#21262d;color:#f0f6fc}
/* Subtle GitHub-style button rounding. */
button,.primary,.canvas-download,.workspace-lighting select{border-radius:6px}.canvas-views{border-radius:7px}.canvas-views button{border-radius:4px}.head-row{border-radius:6px}
