:root{--header-h: 56px;--ink: #252C30;--ink-2: #4E5E65;--ink-3: #707C83;--line: #E4E9EC;--paper: #F3F5F6;--accent: #167C73;--accent-soft: #E8F3F0}html,body,#root{height:100%;margin:0}body{background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}.nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}.muted{color:var(--ink-3)}.mono{font-family:ui-monospace,Menlo,Consolas,Courier New,monospace;font-size:12px}.json-view{margin:0;padding:10px 12px;font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-all;background:#faf8f3;border:1px solid var(--line);border-radius:8px}.ant-card{box-shadow:none;border-color:var(--line)!important;border-radius:6px}.ant-table-wrapper .ant-table{border-radius:6px}.ant-table-wrapper .ant-table-thead>tr>th{font-weight:600;color:var(--ink-2);white-space:nowrap}.ant-table-wrapper .ant-table-container{border-radius:6px;overflow:hidden}.cfg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,560px),1fr));gap:24px;align-items:start;max-width:1480px}.cfg-grid>.ant-card{border:0;border-radius:0;background:transparent}.cfg-grid>.ant-card>.ant-card-head{padding:0;border-bottom:1px solid var(--line)}.cfg-grid>.ant-card>.ant-card-body{padding:18px 0}.cfg-grid>.span-all{grid-column:1 / -1}.field{display:flex;flex-direction:column;gap:4px;min-width:0}.field>label{font-size:12px;color:var(--ink-2)}.field-row{display:flex;flex-wrap:wrap;gap:12px 24px}.brand{display:flex;align-items:center;gap:10px;height:64px;padding:0 16px;overflow:hidden}.brand-mark{flex:none;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#f5a05a,#ea7a2a);color:#fff;display:grid;place-items:center;font-weight:700;font-size:16px;letter-spacing:-.5px}.brand-title{font-weight:700;font-size:15px;color:var(--ink);line-height:1.15;white-space:nowrap}.brand-sub{font-size:11px;color:var(--ink-3);white-space:nowrap}.ant-layout-sider-collapsed .brand{padding:0 15px}.app-sider{border-right:1px solid var(--line);position:sticky;top:0;height:100vh;overflow:hidden}.app-sider .ant-layout-sider-children{display:flex;flex-direction:column}.app-sider .ant-menu{flex:1;overflow-y:auto;overflow-x:hidden;border-inline-end:0!important}.app-header{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.app-crumb{min-width:0;flex:1;display:flex;align-items:center;gap:6px;font-size:14px;overflow:hidden;white-space:nowrap}.app-crumb a{color:var(--ink-3)}.app-crumb a:hover{color:var(--accent)}.app-crumb .sep{color:#c9bfaf}.app-crumb .cur{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}.page-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:16px}.page-head h1{margin:0;font-size:20px;font-weight:700;color:var(--ink);line-height:1.3}.page-head p{margin:4px 0 0;color:var(--ink-3);font-size:13px;max-width:72ch}.page-head-extra{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--paper)}.login-card{width:min(380px,100%)}.login-card .brand{height:auto;padding:0;margin-bottom:20px}.wb{display:flex;flex-direction:column;height:calc(100dvh - var(--header-h) - 32px);min-height:640px;gap:12px}.wb-header{flex:none;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff}.wb-heading-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;padding:10px 16px;border-bottom:1px solid var(--line)}.wb-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0}.wb-title{font-size:18px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-summary{display:flex;gap:16px;font-size:12px;color:var(--ink-3)}.wb-summary b{color:var(--ink);margin-left:4px}.wb-model{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:12px;color:var(--ink-3);min-width:0}.wb-model>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-steps{padding:10px 12px;overflow-x:auto}.wb-steps .ant-steps-label-vertical .ant-steps-item{flex:1 1 0!important;min-width:0;overflow:visible}.wb-steps .ant-steps-label-vertical .ant-steps-item-content{width:auto;margin-top:4px}.wb-steps .ant-steps.ant-steps-label-vertical .ant-steps-item .ant-steps-item-icon{margin-inline-start:calc(50% - 12px)!important}.wb-steps .ant-steps.ant-steps-label-vertical .ant-steps-item .ant-steps-item-tail{margin-inline-start:50%!important;padding:3.5px 16px!important}.wb-steps .ant-steps-item-title{font-size:12px;padding-inline-end:0;line-height:18px;white-space:nowrap}.wb-steps .ant-steps-item{cursor:pointer}.wb-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(280px,23vw,330px);gap:10px;min-height:0;flex:1}.wb-stage{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.wb-toolbar{display:flex;flex:none;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:8px 12px;border-bottom:1px solid var(--line)}.wb-toolbar-right{display:flex;align-items:center;gap:6px;margin-left:auto}.wb-layers{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:5px 12px;background:#fbfcfc;border-bottom:1px solid var(--line);font-size:12px}.wb-layers .ant-checkbox-wrapper{font-size:12px;margin:0}.wb-opacity{display:flex;gap:8px;align-items:center;color:var(--ink-3)}.wb-opacity .ant-slider{width:78px;margin:4px 5px}.wb-stage-body{flex:1;min-height:0;position:relative}.wb-panel{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);overflow:hidden;min-width:0;min-height:0;border-radius:8px}.wb-panel-head{padding:12px 14px;border-bottom:1px solid var(--line);background:#fbfcfc}.wb-panel-head>b{font-size:15px}.wb-step-desc{display:block;margin-top:4px;font-size:12px;color:var(--ink-3)}.wb-body{flex:1;min-height:0;overflow:auto;padding:14px;overscroll-behavior:contain;overflow-wrap:anywhere}.wb-footer{display:flex;align-items:center;justify-content:space-between;flex:none;gap:8px;padding:10px 14px;border-top:1px solid var(--line)}.wb-body .ant-space-item{min-width:0;max-width:100%}.wb-body .ant-space-horizontal{flex-wrap:wrap}.wb-body .ant-radio-group{display:flex;flex-wrap:wrap;gap:6px}.wb-body .ant-radio-button-wrapper{border:1px solid var(--line);border-radius:4px}.wb-body .ant-radio-button-wrapper:before{display:none}.wb-body .ant-alert-message{overflow-wrap:anywhere}.wb-body .ant-card-head-title{white-space:normal}.wb-jobbar{padding:8px;max-height:160px;overflow:auto;border-bottom:1px solid var(--line);flex:none}.wb-jobbar .ant-space{flex-wrap:wrap}.wb-parameter-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.wb-parameter-grid .ant-input-number,.wb-parameter-grid .ant-input-number-group-wrapper{width:100%}.wb-image-choice{display:flex;flex-direction:column;padding:4px;gap:5px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer;font:inherit;font-size:12px}.wb-image-choice.active{border-color:var(--accent);background:var(--accent-soft)}.wb-instruction{margin:0 0 14px;font-size:12px;color:var(--ink-3);line-height:1.7}.wb-review-current{padding:12px;background:#f7faf9;border:1px solid #d5e7e2;border-radius:6px}.wb-review-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}.wb-review-title b{min-width:0;overflow-wrap:anywhere}.wb-review-title .ant-tag{flex:none;margin:0}.wb-review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.wb-review-actions .ant-btn{min-width:0;padding-inline:6px}.wb-review-help{font-size:12px;line-height:1.6;color:var(--ink-3);margin:9px 0 0}.wb-repair-controls{margin-top:12px;border-color:#dfc58c!important}.wb-repair-controls .wb-review-actions{margin:12px 0 0}.wb-repair-tools{display:grid;gap:8px;margin-top:12px}.wb-repair-radius{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px;font-size:12px}.wb-repair-radius .ant-slider{margin:8px 4px}.wb-review-list-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px;font-size:13px}.wb-review-list-heading span{color:var(--ink-3);font-size:12px}.wb-candidates{display:flex;flex-direction:column;gap:6px;max-height:310px;overflow-y:auto}.wb-candidate{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer;text-align:left;color:var(--ink);font:inherit}.wb-candidate:hover{border-color:#8fb8b0}.wb-candidate.active{border-color:var(--accent);background:var(--accent-soft)}.wb-candidate:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.wb-candidate-number{flex:none;width:22px;height:22px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:50%;font-size:11px}.wb-candidate-details{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px}.wb-candidate-details b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.wb-candidate-details>span{font-size:11px;color:var(--ink-3)}.wb-candidate .ant-tag{flex:none;margin:0}.wb-previews{flex:none;padding:6px 10px 8px;background:#fff;border-top:1px solid var(--line)}.wb-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.wb-preview-heading>div{display:flex;align-items:center;gap:10px;min-width:0}.wb-preview-heading b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-preview-heading .ant-tag{flex:none;margin:0}.wb-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.wb-preview-grid.has-repair{grid-template-columns:repeat(4,minmax(0,1fr))}.wb-preview-grid figure{margin:0;min-width:0;border:1px solid var(--line);border-radius:6px;overflow:hidden}.wb-preview-grid figcaption{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;min-height:34px;padding:6px 8px;font-size:12px;font-weight:600;background:#f5f8f8}.wb-preview-grid figcaption span{font-size:11px;font-weight:400;color:var(--ink-3)}.wb-crop,.wb-color-preview{height:clamp(86px,12dvh,140px);position:relative;background:#f4f6f6}.wb-focus{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100dvh;min-height:0;padding:8px;gap:6px;background:#eef2f2}.wb-focus .wb-heading-row{padding:4px 12px}.wb-focus .wb-steps{padding:4px 10px}.wb-focus .wb-layout{grid-template-columns:minmax(0,1fr) clamp(260px,21vw,310px);gap:6px}.wb-focus .wb-previews{padding:4px 8px 6px}.wb-focus .wb-preview-heading{margin-bottom:4px}.wb-focus .wb-preview-grid figcaption{min-height:26px;padding:3px 6px}.wb-focus .wb-crop,.wb-focus .wb-color-preview{height:clamp(72px,10dvh,110px)}.wb-crop svg,.wb-color-preview img{display:block;width:100%;height:100%;object-fit:contain}.wb-mask-preview .wb-crop{background:#171c20}.wb-mask-preview .wb-preview-message{color:#ddd}.wb-preview-message{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;padding:12px;color:var(--ink-3);font-size:12px;text-align:center}.wb-repair-result{border-color:#dba547!important}.wb-repair-result figcaption{background:#fff7e6}.wb-previews-empty{display:flex;flex-direction:column;gap:8px;color:var(--ink-3);font-size:12px}.stage-hud{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:2px;padding:2px 4px;border-radius:8px;background:#ffffffeb;box-shadow:0 1px 4px #0000001f;font-size:12px;color:#555;-webkit-user-select:none;user-select:none}.stage-hud .ant-btn{color:#555}.stage-hud-pct{min-width:44px;text-align:center;cursor:pointer;font-variant-numeric:tabular-nums}.stage-hud-pct:hover{color:var(--accent)}.stage-hud-dim{padding:0 6px 0 4px;color:#888;border-left:1px solid #E5E1D8;margin-left:4px}.stage-hint{position:absolute;left:10px;bottom:10px;max-width:calc(100% - 300px);font-size:12px;color:#6b6b6b;background:#ffffffd9;padding:2px 8px;border-radius:6px;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#d9d2c4;border-radius:6px;border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-track{background:transparent}*{box-sizing:border-box;letter-spacing:0}.app-content{padding:24px;min-width:0}.editor-content{padding:16px}.settings-form{max-width:760px;padding:0 0 24px}.section-heading{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);margin:0 0 20px;padding:12px 0}.section-heading h2{font-size:16px;margin:0}.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-fields .ant-input-number{width:100%}.generation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.generation-options .ant-input-number-group-wrapper,.generation-options .ant-input-number{width:100%}.form-actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:8px}.dashboard-actions{padding:16px 0}.dashboard-actions h2{font-size:16px;margin:0 0 16px}.ant-btn{box-shadow:none}.ant-form-item-label>label{color:var(--ink-2)}.ant-table-wrapper{overflow:auto}.ant-table-thead>tr>th{white-space:nowrap}.wb-body .ant-input-number-group-wrapper{max-width:100%}.brand-mark{background:var(--accent)!important;border-radius:6px!important}.wb-toolbar{min-height:49px}.subject-page{max-width:1280px;margin:0 auto;padding-bottom:24px}.subject-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:4px 0 18px;border-bottom:1px solid var(--line)}.subject-page-head .ant-typography{margin:0}.subject-page-head h2.ant-typography{font-size:24px;line-height:1.25}.subject-page-head p.ant-typography{margin-top:6px;color:var(--ink-3)}.subject-info{margin-top:16px}.subject-summary{display:flex;gap:0;margin:18px 0 26px;color:var(--ink-2)}.subject-summary span{padding:0 18px;border-left:1px solid var(--line);font-size:13px}.subject-summary span:first-child{padding-left:0;border-left:0}.subject-summary b{margin-right:5px;color:var(--ink);font-size:18px;font-variant-numeric:tabular-nums}.subject-list-section{border-top:1px solid var(--line)}.subject-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 12px}.subject-list-head .ant-typography{display:block;margin:0}.subject-list-head h4.ant-typography{margin-bottom:3px;font-size:16px}.subject-table .ant-table-thead>tr>th{background:#f5f7f8}.subject-table .ant-table-tbody>tr>td{vertical-align:middle}.subject-standard-cell{width:68px;height:68px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);background:#fff}.subject-name{display:flex;flex-direction:column;gap:3px;min-width:0}.subject-name b{color:var(--ink)}.subject-name span{color:var(--ink-3);font-family:ui-monospace,Menlo,Consolas,Courier New,monospace;font-size:12px}.subject-modal .ant-modal-body{max-height:min(650px,70vh);overflow-y:auto;padding-top:18px}.subject-form-section{margin-bottom:22px}.subject-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.subject-section-heading>div{display:flex;flex-direction:column;gap:3px}.subject-section-heading .ant-typography-secondary{font-size:12px}.subject-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}.subject-fields .subject-description{grid-column:span 3}.subject-fields .ant-form-item{margin-bottom:14px}.subject-standard-picker{border-top:1px solid var(--line);padding-top:18px}.subject-source-switch{margin-bottom:14px}.subject-source-switch .ant-radio-button-wrapper{min-width:126px;text-align:center}.subject-upload{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;min-height:42px}.subject-upload .ant-upload-wrapper{line-height:1}.subject-upload .ant-upload-list{margin-top:6px}.subject-generate-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;background:var(--accent-soft);border:1px solid #C9E3DD}.subject-generate-bar>div{display:flex;flex-direction:column;gap:3px}.subject-generate-bar .ant-typography-secondary{font-size:12px}.subject-generate-bar .ant-btn{flex:none}.subject-draft{margin-top:14px}.subject-draft-status{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}.subject-draft-status .ant-typography{display:block;margin:0}.subject-draft-status p.ant-typography{margin-top:3px;font-size:12px}.subject-draft-warning{margin-bottom:10px}.subject-candidate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.subject-candidate{display:flex;flex-direction:column;min-width:0;padding:6px;border:1px solid var(--line);border-radius:6px;color:var(--ink-2);background:#fff;cursor:pointer;font:inherit;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s}.subject-candidate:hover{border-color:#8fb8b0;background:#fbfefd}.subject-candidate.active{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.subject-candidate img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f8fafa}.subject-candidate-footer{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;padding:7px 3px 2px;font-size:12px}.subject-candidate-footer>span:last-child{overflow:hidden;color:var(--ink-3);text-align:right;text-overflow:ellipsis;white-space:nowrap}.subject-candidate-picked{color:var(--accent)!important}.subject-current-version{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding:10px 12px;background:#f7f9f9;border:1px solid var(--line)}.subject-current-version .ant-typography{display:block;margin:0}.subject-current-version p.ant-typography{margin-top:3px;font-size:12px}@media (max-width: 1000px){.wb{height:auto;min-height:0}.wb-layout{grid-template-columns:minmax(0,1fr)}.wb-stage-body{min-height:380px;height:52dvh;flex:none}.wb-panel{width:100%}.wb-parameter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-steps .ant-steps{min-width:620px}.wb-body{max-height:none;overflow:visible}.app-header .ant-btn{padding-inline:8px}}@media (max-width: 600px){.app-content,.editor-content{padding:12px}.app-sider{width:48px!important;min-width:48px!important;max-width:48px!important;flex-basis:48px!important}.app-sider .brand{padding:8px}.app-sider .brand-mark{width:32px}.app-sider .ant-menu-inline-collapsed{width:48px}.app-sider .ant-menu-inline-collapsed>.ant-menu-item,.app-sider .ant-menu-item-group-list>.ant-menu-item{padding-inline:8px!important}.app-header>.ant-space .ant-btn>span:not(.ant-btn-icon){display:none}.page-head h1{font-size:18px}.page-head-extra{width:100%}.wb-toolbar{padding:8px;gap:8px}.wb-toolbar>.ant-segmented:first-child{max-width:100%;overflow-x:auto}.wb-toolbar-right{margin-left:0}.wb-panel-head,.wb-body,.wb-footer{padding:12px}.wb-heading-row{padding:10px 12px;gap:10px}.wb-model{display:none}.wb-summary{width:100%}.wb-preview-grid,.wb-preview-grid.has-repair{grid-template-columns:minmax(0,1fr)}.wb-preview-heading{flex-wrap:wrap}.wb-crop,.wb-color-preview{height:200px}.wb-parameter-grid{grid-template-columns:minmax(0,1fr)}.wb-steps .ant-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;gap:12px 0}.wb-steps .ant-steps-item-tail{display:none}.wb-steps .ant-steps-item-title{font-size:11px}.wb-steps .ant-steps-item{padding:0!important}.settings-fields{grid-template-columns:1fr;gap:0}.stage-hud-dim{display:none}.subject-page-head{align-items:stretch;flex-direction:column}.subject-page-head .ant-btn{width:100%}.subject-summary{flex-wrap:wrap;gap:8px 0;margin-bottom:18px}.subject-summary span{padding:0 12px}.subject-list-head{align-items:flex-start}.subject-fields{grid-template-columns:1fr}.subject-fields .subject-description{grid-column:auto}.subject-candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-generate-bar{align-items:stretch;flex-direction:column}.subject-generate-bar .ant-btn{width:100%}.subject-draft-status{align-items:flex-start;flex-direction:column}}.wb-focus .wb-review-actions{grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width: 1000px){.wb-focus{height:100dvh;overflow-y:auto}.wb-focus .wb-layout{display:block}.wb-focus .wb-stage{height:72dvh;min-height:440px}.wb-focus .wb-stage-body{flex:1;min-height:0;height:auto}.wb-focus .wb-panel{margin-top:6px}}
