:root{color-scheme:light;--navy:#1b3558;--teal:#168b8a;--orange:#e9804f;--ink:#23344a;--muted:#637080;--line:#e0e5e9;--bg:#fff;--soft:#f5f7f8;--brand:#1b3558;--brand-dark:#142943;--ok:#176b56;--bad:#b43439;--warn:#8c561d;--radius:12px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.6}html{scroll-behavior:smooth;scroll-padding-top:85px}::selection{background:#cce8e6;color:var(--navy)}a{color:inherit;text-decoration:none;text-underline-offset:4px}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{touch-action:manipulation}button{cursor:pointer}button,.button-link{border:1px solid transparent;border-radius:9px;background:var(--navy);color:white;font-weight:600;padding:10px 18px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .16s,color .16s}button:hover,.button-link:hover{background:#294d73}button:disabled{cursor:not-allowed;background:#e4e8ec;color:#697481}.secondary{background:white;color:var(--ink);border-color:var(--line)}.secondary:hover,.ghost:hover{background:#eaf0f3}.ghost{background:transparent;color:var(--muted);padding:7px 12px}.danger{color:var(--bad);background:#fff1f1;border-color:#f0d7d7}.danger:hover{background:#fbe2e2}.link-button{background:none;color:#147675;min-height:36px;padding:4px;font-weight:600}.link-button:hover{background:none;text-decoration:underline}.hidden{display:none!important}:focus-visible{outline:3px solid #168b8a;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{color:var(--navy);line-height:1.35;letter-spacing:-.025em}h1{font-size:30px;font-weight:650}h2{font-size:18px;font-weight:650}p{line-height:1.8}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.skip-link{position:fixed;top:-60px;left:20px;background:var(--navy);color:white;padding:12px;z-index:200}.skip-link:focus{top:8px}.topbar{height:66px;position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:white;border-bottom:1px solid var(--line);gap:20px}.topbar-brand{display:flex;align-items:center;gap:20px;min-width:0}.topbar-brand img{width:152px;height:auto;display:block}.product-name{padding-left:20px;border-left:1px solid var(--line);font-size:14px;font-weight:600;color:var(--muted)}.topbar-actions{display:flex;align-items:center;gap:16px;min-width:0}.topbar-actions>span{max-width:260px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:12px}.topbar-actions button{white-space:nowrap;font-size:12px}.auth-scene{min-height:calc(100svh - 66px);display:grid;grid-template-columns:1.15fr 1fr;position:relative;background:#f4f8fa;padding:70px max(6vw,24px) 100px;gap:8vw;align-items:center}.auth-story{min-height:400px;position:relative;z-index:1;padding:20px 0}.auth-scene:before{content:"";position:absolute;inset:0;background:url('/assets/brand/world-map.png') center/cover no-repeat;opacity:.62;pointer-events:none}.story-symbol{width:52px;height:52px;border-radius:13px;margin-bottom:26px}.auth-story h1{font-size:clamp(30px,3.3vw,48px);line-height:1.5;letter-spacing:-.03em;margin-bottom:24px}.auth-story>p{font-size:16px;color:#48647b;line-height:2}.story-caption{display:flex;gap:25px;margin-top:48px;color:#426773;font-size:12px}.story-caption span+span{border-left:1px solid #a3bec7;padding-left:25px}.auth-card{position:relative;z-index:1;max-width:420px;width:100%;justify-self:center;padding:38px;background:#fff;border-radius:16px;box-shadow:0 14px 40px #17314b0d}.auth-card h2{font-size:27px;margin-bottom:8px}.auth-subtitle{color:var(--muted);margin-bottom:30px}.auth-card>label{margin-bottom:20px}.auth-card>button{width:100%;margin-top:6px}.auth-switch{display:flex;align-items:center;justify-content:center;gap:5px;font-size:13px;margin-top:16px}.auth-help{text-align:center;border-top:1px solid var(--line);padding-top:22px;margin:22px 0 0}.auth-footer{position:absolute;bottom:28px;left:0;width:100%;text-align:center;color:#536c7d;font-size:12px}.auth-footer span{padding:0 10px}.app-layout,.admin-layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:calc(100svh - 66px)}.sidebar,.admin-sidebar{position:sticky;top:66px;height:calc(100svh - 66px);display:flex;flex-direction:column;background:var(--soft);padding:28px 18px 22px;border-right:1px solid var(--line);gap:28px;overflow:auto}.workspace-label{display:flex;align-items:center;gap:11px;padding:0 9px}.workspace-label img{width:36px;height:36px;border-radius:9px}.workspace-label strong{display:block;font-size:15px}.workspace-label span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.side-nav{display:grid;gap:6px}.side-nav a{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:8px;color:#546272;font-weight:500}.side-nav a:hover{background:#e9eef1}.side-nav a.active{background:#e4efee;color:#176665;font-weight:650}.side-nav a.active svg{color:#168b8a}.sidebar-note{padding:20px 12px;border-top:1px solid var(--line);margin-top:12px}.sidebar-note p{font-size:14px;line-height:1.9;color:var(--navy);margin-bottom:10px}.sidebar-note>span{color:var(--muted);font-size:11px;line-height:1.8;display:block}.sidebar-bottom{margin-top:auto;display:grid;gap:16px;padding:0 12px;font-size:12px;color:var(--muted)}.connection{display:flex;align-items:center;gap:8px}.connection i{width:6px;height:6px;border-radius:50%;background:var(--teal)}.admin-link{display:flex;justify-content:space-between}.admin-link:hover{color:var(--teal)}.content{width:100%;min-width:0;padding:46px max(4vw,24px) 22px;display:flex;flex-direction:column}.creation-view{max-width:820px;width:100%;margin:0 auto}.page-heading{text-align:center;margin:0 0 28px}.heading-mark{display:inline-flex;color:var(--teal);margin-bottom:12px}.heading-mark svg{width:31px;height:31px;stroke-width:1.4}.page-heading h1{font-size:30px;margin-bottom:10px}.page-heading p{color:var(--muted);font-size:14px;margin-bottom:0}.composer{border:1px solid #d9e1e6;border-radius:16px;padding:26px;background:#fff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:550;min-width:0}input:not([type=checkbox]):not([type=range]),select,textarea{width:100%;min-height:44px;border:1px solid #d8dfe5;border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;outline-offset:2px;caret-color:var(--teal)}input::placeholder,textarea::placeholder{color:#697887;font-weight:400}input:hover,select:hover,textarea:hover{border-color:#9dabb7}input:disabled,select:disabled{background:#f4f6f8;color:#687584;cursor:not-allowed}.optional{font-weight:400;color:var(--muted);font-size:11px;margin-left:5px}label .optional{display:inline;position:absolute;right:0;top:0}.title-fields label{position:relative}.requirements-label{display:block;margin-top:24px;margin-bottom:8px}textarea{resize:vertical;line-height:1.9;min-height:145px;font-size:14px}.upload-panel{display:flex;gap:14px;align-items:center;background:#f7f9fa;padding:18px;border:1px dashed #c8d4db;border-radius:10px;margin-top:20px}.upload-panel>svg{color:var(--teal);width:23px;height:23px}.upload-panel strong{font-size:13px}.upload-panel p{font-size:12px;color:var(--muted);margin:3px 0 0}.upload-button{margin-left:auto;background:#fff;border:1px solid #cad5dc;padding:8px 13px;border-radius:7px;cursor:pointer;white-space:nowrap;min-height:38px;position:relative;overflow:hidden}.upload-button:focus-within{outline:3px solid var(--teal);outline-offset:3px}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-list{display:flex;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:11px;padding:10px 0 4px;overflow-wrap:anywhere}.file-list span{background:#f0f5f6;padding:3px 8px;border-radius:5px;max-width:100%}.brief-options{margin-top:18px}.template-notice{margin:12px 0 0;padding:10px 12px;background:#fff5eb;border-radius:7px;color:#80511e;font-size:12px}.generation-settings{border-top:1px solid var(--line);margin-top:24px}summary{cursor:pointer;display:flex;align-items:center;gap:12px;list-style:none;min-height:56px;font-size:13px;font-weight:600}summary::-webkit-details-marker{display:none}summary>svg{margin-left:auto;width:16px}.summary-hint{color:var(--muted);font-weight:400;font-size:12px}details[open]>summary svg{transform:rotate(180deg)}.settings-body{padding:4px 0 20px}.model-note,.hint{color:var(--muted);font-size:12px;line-height:1.8}.model-note{margin:10px 0 20px}.reasoning-control{position:relative}.reasoning-control output{position:absolute;right:0;font-size:12px;color:#176b69}input[type=range]{width:100%;accent-color:var(--teal);height:20px}.range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:400}.search-options{border:0;padding:0;margin:24px 0 12px}.search-options legend{font-size:13px;font-weight:600;margin-bottom:12px}.search-options .form-grid{gap:8px 20px}.switch-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-weight:400;padding:5px 0}.checks{display:flex;gap:22px;align-items:center}.checks label{flex-direction:row;align-items:center;gap:7px;font-weight:400;white-space:nowrap}input[type=checkbox]{appearance:auto;width:16px;height:16px;accent-color:var(--teal);margin:0}.compose-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding-top:20px}.compose-actions button{min-width:130px}.creation-footnote{text-align:center;color:var(--muted);font-size:12px;margin-top:16px}.footer{display:flex;justify-content:space-between;gap:14px;color:var(--muted);font-size:11px;margin-top:auto;padding-top:44px}.footer span:first-child{font-weight:650;color:#526477}.history-view,.guide-view{width:100%;max-width:1100px;margin:0 auto}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-title h1,.section-title h2{margin:0}.section-title p{margin:8px 0 0;color:var(--muted);font-size:13px}.project-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.card>h2{margin-bottom:20px}.jobs-list{display:grid;gap:12px}.job-row{border-bottom:1px solid var(--line);padding:14px 0;display:grid;gap:12px;overflow-wrap:anywhere}.job-row:first-child{padding-top:0}.job-row strong{font-size:14px}.job-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.job-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.job-actions button{min-height:32px;padding:5px 9px;font-size:12px}.job-row.selected strong{color:#087874}.badge{display:inline-flex;border-radius:5px;padding:3px 7px;font-size:11px;font-weight:600;background:#edf2f7;color:#435c76}.badge.completed{background:#e7f4ee;color:#1a6a4c}.badge.failed,.badge.cancelled{background:#fff0ee;color:#a53b32}.badge.running{background:#e4f4f3;color:#146968}.mini-progress,.progress{height:5px;border-radius:4px;overflow:hidden;background:#eaf0f4;margin-top:12px}.mini-progress span,.progress>div{display:block;height:100%;background:var(--teal)}.progress{height:7px;margin-bottom:18px}.job-detail.empty{min-height:230px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:13px;padding:25px}.empty-state{text-align:center;padding:42px 12px}.empty-state svg{width:34px;height:34px;color:#738b9a;margin-bottom:12px}.empty-state strong{display:block;color:var(--navy);margin-bottom:6px}.empty-state p{font-size:12px;color:var(--muted);margin:0}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin-bottom:18px}.job-detail{overflow-wrap:anywhere}.job-detail h3{font-size:21px}.mono{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.quality-summary{display:grid;gap:4px;background:#eef7f4;padding:12px;border-radius:8px;font-size:12px;color:#24674e;margin:12px 0}.error-box,.boot-error{background:#fff0ee;color:#a53b32;padding:12px;border-radius:8px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.guide-view{max-width:800px}.lead{color:var(--muted);font-size:16px}.guide-steps{padding:0;list-style:none;counter-reset:guide}.guide-steps li{position:relative;padding:24px 0 24px 54px;border-bottom:1px solid var(--line);counter-increment:guide}.guide-steps li:before{content:counter(guide);position:absolute;left:0;top:26px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e5f0ef;color:#176b69;font-weight:650}.guide-steps h2{margin:0 0 8px}.guide-steps p{color:var(--muted);margin:0}.guide-view .button-link{margin-top:24px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;border-radius:10px;padding:12px 20px;box-shadow:0 8px 24px #10243a26;max-width:min(560px,calc(100% - 32px));width:max-content;z-index:100;display:none;overflow-wrap:anywhere}.toast.show{display:block}.security-dialog{border:0;border-radius:14px;max-width:450px;padding:28px;color:var(--ink);box-shadow:0 16px 64px #10243a30}.security-dialog::backdrop{background:#15273a60}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.admin-content{min-width:0;padding:36px;display:grid;align-content:start;gap:24px}.admin-hero{border:0;background:#f4f8fa url('/assets/brand/world-map.png') right center/cover;padding:32px}.admin-hero h1{font-size:28px;margin-bottom:10px}.admin-hero p{color:#496478;max-width:65ch;margin:0}.admin-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-bottom:1px solid var(--line);padding:0 12px 24px}.admin-kpi strong{display:block;font-size:28px;color:var(--navy);font-variant-numeric:tabular-nums}.admin-kpi span{font-size:12px;color:var(--muted)}.admin-table-wrap{overflow:auto;max-width:100%;margin-top:16px}.admin-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.admin-table th{white-space:nowrap;font-weight:600;background:#f5f7f8;color:#526477;padding:12px 10px}.admin-table td{border-bottom:1px solid var(--line);padding:14px 10px;vertical-align:top;max-width:260px;overflow-wrap:anywhere}.admin-table select{min-width:90px}.table-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:160px}.table-actions button{font-size:11px;padding:5px 9px;min-height:32px}.brand-block{display:flex;align-items:center;gap:10px}.brand-logo{width:36px;border-radius:8px}.brand-block strong{display:block}.brand-block span{display:block;font-size:11px;color:var(--muted)}.control-panel{border-top:1px solid var(--line);padding-top:20px}.control-panel p{font-size:12px;color:var(--muted)}.mini-title{font-weight:600;margin-bottom:10px}.admin-content #importTemplateBtn{margin-top:20px}.admin-layout .footer{padding-top:16px}.admin-table button:disabled{background:#f0f2f4}.bad{color:var(--bad)}.ok{color:var(--ok)}
@media(min-width:1550px){.content{padding-top:65px}.page-heading{margin-bottom:38px}}
@media(max-width:1100px){.app-layout,.admin-layout{grid-template-columns:215px minmax(0,1fr)}.sidebar,.admin-sidebar{padding:24px 12px}.content{padding:32px 24px 20px}.composer{padding:22px}.project-grid{grid-template-columns:1fr}.auth-scene{gap:5vw;padding-left:5vw;padding-right:5vw}.auth-card{padding:30px}.admin-content{padding:24px}}
@media(max-width:760px){.topbar{height:60px;padding:0 18px}.topbar-brand img{width:124px}.product-name{padding-left:12px;font-size:12px}.topbar-brand{gap:12px}.topbar-actions>span{display:none}.auth-scene{min-height:calc(100svh - 60px);grid-template-columns:1fr;padding:30px 20px 80px;gap:16px}.auth-story{min-height:0;padding:0;max-width:420px;justify-self:center;width:100%}.story-symbol,.story-caption,.auth-story>p{display:none}.auth-story h1{font-size:27px;margin-bottom:5px}.auth-story h1 br{display:none}.auth-card{max-width:420px;padding:28px}.auth-card h2{font-size:23px}.app-layout,.admin-layout{display:flex;flex-direction:column}.sidebar,.admin-sidebar{position:sticky;top:60px;height:auto;z-index:30;padding:8px 12px;gap:0;border-right:0;border-bottom:1px solid var(--line)}.workspace-label,.sidebar-note,.sidebar-bottom,.admin-sidebar>.brand-block,.admin-sidebar>.control-panel{display:none}.side-nav{display:flex;gap:4px;overflow-x:auto}.side-nav a{white-space:nowrap;padding:9px 12px;font-size:12px;gap:7px}.side-nav svg{width:16px;height:16px}.content{padding:28px 16px 18px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.heading-mark{margin-bottom:8px}.composer{padding:18px}.form-grid{grid-template-columns:1fr;gap:16px}.title-fields{gap:18px}.brief-options{grid-template-columns:1fr 1fr;gap:12px}.upload-panel{padding:12px;gap:10px;flex-wrap:wrap}.upload-panel>svg{display:none}.upload-panel p{font-size:11px}.upload-button{padding:7px 10px;font-size:12px}.summary-hint{font-size:10px}.compose-actions{flex-wrap:wrap;gap:16px}.compose-actions button{margin-left:auto}.checks{gap:16px}.checks label{font-size:12px}.footer{font-size:10px;padding-top:30px}.history-heading{align-items:start}.history-heading h1{font-size:26px}.history-heading button{white-space:nowrap;font-size:12px;padding:8px 12px}.card{padding:18px}.section-title{gap:10px}.section-title h2{font-size:16px}.section-title button{font-size:11px;padding:6px}.admin-content{padding:20px 14px}.admin-hero{padding:24px}.admin-kpis{gap:15px}.admin-kpi strong{font-size:24px}.admin-hero h1{font-size:24px}.admin-hero p{font-size:12px}.admin-table-wrap{border:1px solid var(--line);border-radius:8px}.guide-steps li{padding-left:44px}.auth-footer{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.admin-table{min-width:900px}.admin-table td:first-child{min-width:190px}.admin-table .badge{white-space:nowrap}.product-name{white-space:nowrap}.section-title>button{flex-shrink:0;white-space:nowrap}@media(max-width:760px){.topbar-brand{gap:9px}.product-name{max-width:110px;overflow:hidden;text-overflow:ellipsis;padding-left:9px;font-size:10px}.topbar-actions{gap:0}.topbar-actions button{padding:6px 4px;font-size:11px}.admin-table{min-width:1000px}}
