:root{font-family:PingFang SC,Microsoft YaHei,Noto Sans SC,system-ui,sans-serif;color:#1d2932;background:#f6f8fc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #4968d8;outline-offset:2px}img,video{display:block;max-width:100%}.shell{min-height:100dvh;display:flex}.sidebar{width:222px;flex:0 0 222px;display:flex;flex-direction:column;background:#fff;color:#1f2937;border-right:1px solid #e5eaf2;min-height:100dvh;padding:19px 10px 18px}.brand{display:flex;gap:10px;align-items:center;min-height:50px;padding:0 9px 21px;margin-bottom:15px;border-bottom:1px solid #edf0f5;white-space:nowrap}.brand-mark{width:34px;height:34px;display:grid;place-items:center;background:#27344a;color:#fff;border-radius:6px;font-weight:800;font-size:17px}.brand strong{display:block;font-size:15px;font-weight:700}.brand small{display:block;margin-top:2px;font-size:9px;color:#8792a3;letter-spacing:1px}.nav{display:grid;gap:5px}.nav-item{border:1px solid transparent;background:transparent;color:#526276;width:100%;min-height:44px;display:flex;align-items:center;gap:12px;text-align:left;padding:0 13px;border-radius:6px;font-weight:600}.nav-item:hover{background:#f4f7fc;color:#244785}.nav-item.active{border-color:#d8e3fa;background:#f0f5ff;color:#3158a6;box-shadow:0 2px 9px #4666a00d}.nav-chevron{margin-left:auto;opacity:.75}.sidebar-bottom{margin-top:auto;padding:16px 13px 0;border-top:1px solid #edf0f5;font-size:11px;color:#748398;line-height:1.5;overflow-wrap:anywhere}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4968d8;margin-right:7px}.workspace{flex:1;min-width:0;background:#f6f8fc}.topbar{min-height:64px;background:#fff;border-bottom:1px solid #e5eaf2;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:12px}.topbar-title,.topbar-actions{display:flex;align-items:center;gap:16px}.topbar-title strong{font-size:15px}.topbar-divider{height:17px;width:1px;background:#dce2ed}.topbar-subtitle{color:#8491a4;font-size:12px}.mobile-brand,.mobile-nav{display:none}.credits{color:#3d59ba;font-size:15px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}.credits small{color:#7b879b;font-size:11px;font-weight:500}.icon-button{flex:0 0 auto;width:32px;height:32px;display:inline-grid;place-items:center;border:0;background:transparent;color:#718097;border-radius:5px;padding:0}.icon-button:hover{background:#edf2ff;color:#3d59ba}.plain-button{display:inline-flex;align-items:center;gap:7px;color:#3d59ba;border:0;background:none;font-weight:700}.toast{margin:18px 30px 0;border:1px solid #cbd8f8;background:#eef3ff;color:#3654aa;border-radius:6px;padding:9px 12px;display:flex;align-items:center;gap:8px;font-size:13px}.toast.danger{border-color:#f0c7ba;background:#fff2ed;color:#aa4d36}.toast span{flex:1;overflow-wrap:anywhere}.main-grid{display:grid;grid-template-columns:minmax(0,1fr) 284px;max-width:1550px;margin:0 auto;min-height:calc(100dvh - 64px)}.work-area{min-width:0;padding:28px 32px 72px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:22px}.section-heading h1{font-size:23px;line-height:1.3;margin:3px 0 0;font-weight:750}.eyebrow{font-size:10px;font-weight:700;color:#4968d8;margin:0;letter-spacing:1px}.section-caption,.muted{font-size:12px;color:#8491a4}.section-caption{padding-bottom:3px;text-align:right}.form-surface{background:#fff;border:1px solid #e0e6f0;border-radius:8px;padding:24px;display:grid;gap:20px}.field{display:grid;gap:8px;min-width:0;color:#293649;font-size:13px;font-weight:650}.field>span:first-child{line-height:1.4}.field small{color:#8995a7;font-size:11px;font-weight:400}.field em{font-style:normal;color:#ce6a4e;font-size:11px;font-weight:500}.field input:not([type=file]),.field select,.field textarea,.reference-filters select,.search-input input{display:block;width:100%;min-width:0;color:#243247;border:1px solid #d7dfeb;border-radius:5px;background:#fff;padding:10px 12px;font-size:13px;font-weight:400}.field input:not([type=file]),.field select,.reference-filters select,.search-input input{min-height:41px}.field textarea{resize:vertical;min-height:82px;line-height:1.65}.field input::placeholder,.field textarea::placeholder,.search-input input::placeholder{color:#a1aabb}.form-row{display:flex;gap:14px}.form-row>.field{flex:1 1 0}.upload-line{position:relative;display:flex;align-items:center;gap:9px;min-height:45px;border:1px dashed #aebbd2;background:#f7f9fd;color:#4562bb;border-radius:5px;padding:10px 13px;font-size:12px;font-weight:500;overflow:hidden;overflow-wrap:anywhere}.upload-line:hover{background:#edf2ff;border-color:#4968d8}.upload-line input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.source-preview{width:min(180px,100%);height:150px;object-fit:contain;background:#eef1f6;border-radius:4px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:16px;border-top:1px solid #edf0f5}.form-footer>span{color:#8995a7;font-size:11px;line-height:1.5}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;border-radius:5px;padding:8px 16px;white-space:nowrap;font-size:13px;font-weight:700}.primary-button{border:1px solid #405fcf;color:#fff;background:#4968d8}.primary-button:hover:not(:disabled){background:#3d58bc}.secondary-button{color:#405dbb;border:1px solid #ccd7ef;background:#fff}.secondary-button:hover:not(:disabled){background:#f0f4ff}.segmented{display:inline-flex;border:1px solid #dce3ef;border-radius:6px;background:#f2f5fa;padding:3px;gap:2px;max-width:100%}.segmented button{border:0;border-radius:4px;background:transparent;color:#6d7b8f;font-size:12px;font-weight:650;min-height:31px;padding:5px 14px}.segmented button.active{color:#405dbb;background:#fff;box-shadow:0 1px 3px #2437551c}.rights-line{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#65748a;line-height:1.5}.rights-line input{accent-color:#4968d8;margin:2px 0 0}.result-section{margin-top:32px;padding-top:21px;border-top:1px solid #dce3ef}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.result-title{display:flex;align-items:center;gap:9px;min-width:0}.unsaved-status{color:#a35729;background:#fff0df;border-radius:4px;padding:3px 7px;font-size:11px;font-weight:700;white-space:nowrap}.result-heading h2,.result-heading h3{margin:0;font-size:16px;line-height:1.4}.result-heading h3{font-size:14px}.task-summary{min-height:40px;display:flex;flex-wrap:wrap;align-items:center;gap:9px 13px;font-size:12px;color:#68778d;margin-bottom:16px}.status{padding:4px 9px;border-radius:4px;color:#725b29;background:#f8edcf;font-size:11px;font-weight:700;white-space:nowrap}.status.succeeded,.status.partial_succeeded{color:#285b7e;background:#e2f2fa}.status.failed,.status.cancelled{color:#ab5139;background:#fbe5db}.error-text{color:#b75038;overflow-wrap:anywhere}.empty-state{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#8d9aab;border:1px dashed #d7dfeb;border-radius:6px;font-size:12px;text-align:center;padding:22px}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.image-result{min-width:0;background:#fff;border:1px solid #e0e6f0;border-radius:6px;overflow:hidden}.image-result img{width:100%;height:220px;object-fit:contain;background:#eef1f6}.image-result>div{min-height:40px;display:flex;align-items:center;justify-content:space-between;padding:3px 7px 3px 12px;color:#5e6d81;font-size:12px}.image-result>.media-failure{height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:16px;background:#eef1f6;color:#68788d;text-align:center}.video-result{display:grid;justify-items:start;gap:13px}.video-result video{width:min(100%,620px);max-height:560px;background:#161d2b;border-radius:5px}.video-result .empty-state{width:min(100%,620px)}.history-panel{border-left:1px solid #e5eaf2;background:#fafbfd;min-width:0;padding:25px 14px}.history-heading,.history-heading>div{display:flex;align-items:center;gap:8px}.history-heading{justify-content:space-between;margin:0 4px 12px;color:#526278;font-size:13px}.history-empty{display:flex;align-items:center;gap:8px;color:#96a2b2;font-size:12px;padding:21px 12px}.history-error{color:#a44f45;flex-wrap:wrap}.history-retry{margin-left:auto;border:0;background:transparent;color:#405dbb;font-size:12px;font-weight:600;cursor:pointer}.history-retry:hover{text-decoration:underline}.history-item{display:flex;align-items:center;width:100%;text-align:left;gap:9px;border:1px solid transparent;border-radius:6px;background:transparent;padding:10px 8px;min-height:62px;color:#95a2b3}.history-item:hover{background:#eef3ff}.history-item.active{border-color:#ccd9f8;background:#edf3ff}.history-more{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:36px;margin-top:9px;border:1px solid #d6dfef;border-radius:5px;background:#fff;color:#405dbb;font-size:12px;cursor:pointer}.history-more:hover{background:#f0f4ff}.history-more:disabled{opacity:.65;cursor:wait}.history-icon{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:5px;background:#e7edfb;color:#4968c5}.history-copy{min-width:0;flex:1;display:grid;gap:4px}.history-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2e3d51;font-size:12px;font-weight:650}.history-copy small{color:#8b98aa;font-size:10px}.status-text{margin-left:4px;color:#ab7633}.status-text.succeeded{color:#28749a}.status-text.failed{color:#ba6655}.reference-section{margin:0 0 27px;padding-bottom:25px;border-bottom:1px solid #dce3ef}.reference-filters{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,1.5fr);gap:12px;margin-bottom:14px}.search-input{position:relative;min-width:0}.search-input svg{position:absolute;top:12px;left:11px;color:#8594a8}.search-input input{padding-left:37px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.template-item{position:relative;min-width:0;border:1px solid #dce3ef;background:#fff;border-radius:6px;overflow:hidden;padding:0;text-align:left}.template-item:hover,.template-item.chosen{border-color:#4968d8}.template-item img,.template-placeholder{width:100%;height:120px;object-fit:cover;background:#e9eef7}.template-placeholder{display:grid;place-items:center;color:#7790b9}.template-info{display:grid;gap:4px;padding:10px;min-height:57px}.template-info strong{color:#29384d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.template-info small{color:#8996a8;font-size:10px}.template-check{position:absolute;top:8px;right:8px;color:#fff;background:#4968d8;border-radius:50%;padding:3px;width:23px;height:23px}.empty-mini{color:#8996a8;padding:30px 0;font-size:12px}.pagination{display:flex;align-items:center;justify-content:center;gap:13px;margin:16px 0 0;color:#7e8ca0;font-size:12px}.pagination button{color:#405dbb;background:transparent;border:0;padding:7px}.reference-detail{position:relative;margin-top:17px;padding:15px 0 0;border-top:1px solid #e0e6f0}.reference-detail>strong{display:block;padding-right:30px;color:#2a3b50;font-size:13px}.reference-detail p{color:#68788e;white-space:pre-wrap;line-height:1.6;font-size:12px;max-height:150px;overflow:auto}.detail-close{position:absolute;right:0;top:8px}.reference-media{display:flex;gap:7px;overflow-x:auto}.reference-media img{height:95px;width:75px;flex:0 0 75px;object-fit:cover;border-radius:4px}.graphic-form{margin-top:0}.graphic-form .result-heading{margin:0}.graphic-result{display:grid;gap:17px}.graphic-result .result-heading{margin:0}.prompt-heading{padding-top:4px}.prompt-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;border-top:1px solid #e4eaf3;padding-top:14px}.prompt-row>div{display:grid;align-content:start;gap:6px}.prompt-row strong{font-size:12px;color:#34455c}.prompt-row small{font-size:11px;color:#8b99ac;line-height:1.5}.prompt-row textarea{min-width:0;width:100%;border:1px solid #d7dfeb;border-radius:5px;padding:9px 11px;font-size:12px;color:#30435d;line-height:1.6;resize:vertical}.graphic-actions{display:flex;flex-wrap:wrap;gap:9px;padding-top:5px}.plan-image-section{border-top:1px solid #e2e8f1;padding-top:12px}.auth-page{min-height:calc(100dvh - 64px);display:grid;place-items:center;padding:35px 18px}.auth-panel{width:min(100%,390px);background:#fff;border:1px solid #dce3ef;border-radius:8px;padding:30px;box-shadow:0 12px 35px #273b610b}.auth-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:6px;background:#e8efff;color:#4968c5}.auth-panel h1{font-size:20px;margin:19px 0 7px}.auth-panel p{font-size:12px;color:#7d8ba0;line-height:1.6;margin:0 0 21px}.auth-switch{display:flex;width:100%;margin-bottom:20px}.auth-switch button{flex:1}.auth-panel form{display:grid;gap:16px}.auth-error{color:#af513a!important;margin:0!important}.auth-submit{width:100%;margin-top:4px}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1100px){.sidebar{width:190px;flex-basis:190px}.main-grid{grid-template-columns:minmax(0,1fr) 240px}.work-area{padding-left:22px;padding-right:22px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.shell{display:block}.sidebar{display:none}.topbar{min-height:55px;padding:0 16px}.mobile-brand{display:inline;color:#3d59ba;font-weight:800}.topbar-title{gap:11px}.topbar-title strong{font-size:14px}.topbar-divider,.topbar-subtitle{display:none}.mobile-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:54px;background:#fff;border-bottom:1px solid #e0e6f0}.mobile-nav button{display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-bottom:2px solid transparent;background:none;color:#8190a3;min-width:0;padding:7px 3px;font-size:12px;font-weight:650;white-space:nowrap}.mobile-nav button.active{border-bottom-color:#4968d8;color:#405dbb}.main-grid{display:block;min-height:auto}.work-area{padding:23px 18px 35px}.history-panel{border-left:0;border-top:1px solid #dce3ef;padding:18px}.history-item{max-width:700px}.auth-page{min-height:calc(100dvh - 109px)}.toast{margin:13px 18px 0}}@media(max-width:520px){.work-area{padding:20px 14px 30px}.section-heading{display:block;margin-bottom:17px}.section-heading h1{font-size:21px}.section-caption{display:block;text-align:left;margin-top:6px}.form-surface{padding:17px 14px;gap:17px}.form-row{flex-wrap:wrap;gap:14px 10px}.form-row>.field{flex-basis:calc(50% - 5px)}.form-footer{align-items:stretch;flex-direction:column}.form-footer .primary-button{width:100%}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.template-item img,.template-placeholder{height:105px}.reference-filters{grid-template-columns:1fr}.prompt-row{grid-template-columns:1fr;gap:8px}.graphic-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.graphic-actions .primary-button{grid-column:1 / -1}.graphic-actions button{white-space:normal;line-height:1.3}.image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.image-result img{height:180px}.image-result>.media-failure{height:180px}.auth-panel{padding:24px}}@media(prefers-reduced-motion:reduce){.spin{animation-duration:2s}}
