:root{color-scheme:light;--ink:#192a3d;--muted:#5e6e7f;--line:#dce3eb;--blue:#255dc5;--blue-hover:#194ba8;--blue-soft:#eaf1fe;--surface:#fff;--wash:#f3f6fa;--danger:#a73737;--success:#276b51;--navy:#182c45;--radius:7px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--wash);color:var(--ink)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button:disabled{cursor:not-allowed;opacity:.55}input,textarea,select{width:100%;min-width:0;border:1px solid #bdcbdc;border-radius:var(--radius);background:#fff;color:var(--ink);padding:10px 12px;transition:border-color .16s ease}input::placeholder,textarea::placeholder{color:#69798b}input:focus,textarea:focus,select:focus{outline:2px solid #b2cafa;outline-offset:1px;border-color:var(--blue)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #87aef5;outline-offset:3px}input[type=checkbox],input[type=radio]{width:17px;height:17px;margin:0;accent-color:var(--blue);flex-shrink:0}input:disabled,select:disabled,textarea:disabled{background:#edf1f6;color:#617184}textarea{resize:vertical;line-height:1.7}label{display:block;font-size:13px;font-weight:550}label>input:not([type=checkbox]):not([type=radio]),label>textarea,label>select{margin-top:7px}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-size:13px;font-weight:550;margin-bottom:8px}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.35;letter-spacing:-.025em;font-weight:650}h2{font-size:17px;line-height:1.4;font-weight:650}h3{font-size:14px;font-weight:600}small{font-size:12px;font-weight:400}.muted,.hint,.section-description,.subtle-label{color:var(--muted)}.hint{font-size:12px;font-weight:400;line-height:1.75;margin-top:8px;display:block}.section-description{font-size:13px;margin:10px 0 20px;max-width:76ch}.subtle-label{font-size:12px}.section-gap{margin-top:22px}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-60px;left:20px;z-index:20;background:#fff;padding:12px}.skip-link:focus{top:10px}.boot{padding:12vh 24px;text-align:center;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid transparent;border-radius:var(--radius);font-size:13px;font-weight:550;line-height:1.5;transition:background .16s ease,border-color .16s ease;min-height:42px;text-decoration:none!important}.button.primary{background:var(--blue);color:#fff}.button.primary:hover:enabled,.button.primary[href]:hover{background:var(--blue-hover)}.button.secondary{background:#fff;border-color:#bdcbdc;color:#31465e}.button.secondary:hover:enabled{background:#f6f9fd;border-color:#8ca5c2}.button.small{padding:7px 12px;font-size:12px;min-height:35px}.button.danger{color:var(--danger);background:#fff;border-color:#e7c4c0}.text-button{padding:5px 0;background:none;border:0;color:var(--blue);font-size:12px;font-weight:550;min-height:32px;text-align:left}.text-button:hover{text-decoration:underline}.text-button.danger{color:var(--danger)}.full{width:100%}.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.error-text{color:var(--danger);font-size:13px;margin:12px 0;overflow-wrap:anywhere}.inline-notice{background:#f5f1e8;border:1px solid #ded1b8;color:#735820;border-radius:7px;padding:12px;font-size:12px;margin:20px 0}.check-label{display:flex;gap:8px;align-items:center;font-weight:400;font-size:13px}
.auth{width:min(440px,calc(100% - 40px));margin:9vh auto 40px}.auth-brand{display:flex;gap:10px;align-items:center;justify-content:center;font-size:20px;font-weight:650;color:var(--navy);margin-bottom:30px}.auth-brand .icon{width:24px;height:24px;color:var(--blue)}.auth-body{background:#fff;border:1px solid var(--line);border-radius:14px;padding:34px}.auth-body h1{font-size:25px}.auth-body>.muted{font-size:13px;margin:8px 0 24px}.auth-body form>label{margin-top:17px}.auth-body .primary{margin-top:25px}.auth-foot{color:var(--muted);font-size:12px;margin-top:20px;line-height:1.8}
.app{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#d7e3f1;position:sticky;top:0;height:100vh;padding:27px 18px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:flex-start;gap:11px;color:#fff;text-decoration:none!important;padding:4px 12px 26px;font-size:18px;font-weight:650;white-space:nowrap}.brand .icon{width:23px;height:23px;margin-top:2px;color:#a9c9fb}.brand small{display:block;color:#bdcde0;font-size:11px;letter-spacing:.04em;margin-top:4px;font-weight:400}.nav{display:flex;flex-direction:column;gap:6px;margin-top:17px}.nav a{color:#cbd9e9;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:7px;font-size:13px;text-decoration:none;min-height:45px}.nav a:hover{background:#223b59;color:#fff}.nav a[aria-current=page]{background:#29486e;color:#fff;font-weight:600}.sidebar-bottom{margin-top:auto;padding:18px 12px 0;border-top:1px solid #3b4e64}.sidebar-bottom p{font-size:12px;color:#d7e3f1;margin-bottom:9px}.sidebar-bottom small{font-size:11px;line-height:1.9;color:#b3c4d8}.workarea{min-width:0;display:flex;flex-direction:column}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 36px}.worker-state{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.status-dot{width:7px;height:7px;border-radius:50%;background:#7e8ea1;flex-shrink:0}.status-dot.active{background:var(--success)}.status-dot.error{background:var(--danger)}.user-actions{display:flex;align-items:center;gap:12px;font-size:12px}.role-label{padding:1px 6px;border:1px solid var(--line);border-radius:4px;font-size:10px;color:var(--muted)}.notice{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;background:#eaf1fe;color:#244c8a;padding:12px 36px;font-size:13px;border-bottom:1px solid #bdd1f3;overflow-wrap:anywhere}.notice.error{background:#fff0ed;color:#943327;border-color:#e9beb5}.notice.success{background:#ecf6f0;color:#24613f;border-color:#c2dec9}.notice button{border:0;background:transparent;color:inherit;font-size:12px;white-space:nowrap}.page{width:100%;max-width:1320px;margin:0 auto;padding:34px 36px 52px}main{flex:1;min-width:0;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.page-heading p{font-size:13px;color:var(--muted);margin-top:9px}.page-footer{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding:18px 36px;border-top:1px solid var(--line)}
.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.section-heading>.muted{font-size:12px}.section-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line)}.section-tabs button{color:var(--muted);padding:10px 0 13px;border:0;border-bottom:2px solid transparent;background:none;font-size:13px;font-weight:550}.section-tabs button.selected{color:var(--blue);border-bottom-color:var(--blue)}.section-tabs span{font-size:11px;padding:1px 6px;border-radius:4px;background:#e6edf6;margin-left:5px}.list-toolbar{display:flex;align-items:center;gap:12px;margin:20px 0 16px}.search-field{flex:1;max-width:370px}.list-toolbar input,.list-toolbar select{margin:0!important;font-size:12px}.filter-field{width:160px}.list-toolbar>.button:last-child{margin-left:auto}.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-weight:550;color:var(--muted);background:#f8fafc;white-space:nowrap;font-size:11px}th,td{padding:15px 17px;border-bottom:1px solid #e6ebf1;vertical-align:top}tr:last-child td{border-bottom:0}td strong{font-weight:550;font-size:13px}td small{display:block;color:var(--muted);font-size:11px;margin-top:4px;max-width:42ch;overflow-wrap:anywhere}.table-action{display:flex;gap:14px;flex-wrap:wrap}.table-action .text-button{padding:0;min-height:26px;white-space:nowrap}.date-cell{white-space:nowrap;font-variant-numeric:tabular-nums;color:#4b6179}.badge{display:inline-flex;align-items:center;font-size:11px;white-space:nowrap;padding:2px 7px;border-radius:4px;background:#edf1f6;color:#526277;font-weight:500}.badge.active{background:#eaf1fe;color:#265894}.badge.success{background:#eaf5ee;color:#256147}.badge.warning{background:#fbf3e4;color:#805e19}.badge.error{background:#faedeb;color:#9d3a32}.empty-state{text-align:center;padding:52px 24px;color:var(--muted)}.empty-state .icon{width:29px;height:29px;color:#7189a4;margin-bottom:12px}.empty-state strong{display:block;color:#425a76;font-size:14px;font-weight:550}.empty-state p{font-size:12px;line-height:1.8;max-width:54ch;margin:8px auto 0}.empty-state .button{margin-top:20px}.back-button{margin-bottom:17px}.detail-summary{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0 30px;padding:18px 22px;background:#fff;border:1px solid var(--line);border-radius:12px}.detail-summary div{min-width:130px}.detail-summary dt{font-size:11px;color:var(--muted)}.detail-summary dd{font-size:13px;margin:5px 0 0}.detail-section{margin-top:28px}.detail-section h2{margin-bottom:15px}.result-text{white-space:pre-wrap;font-size:13px;line-height:1.8;max-width:75ch;overflow-wrap:anywhere}.result-evidence{margin-top:10px;display:flex;gap:14px;flex-wrap:wrap}.result-evidence a{font-size:12px}.result-snapshot{margin-top:12px;font-size:12px}.result-snapshot summary{color:var(--muted)}.result-snapshot p{padding-top:12px;white-space:pre-wrap}.inline-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.inline-row:last-child{border-bottom:0}.inline-row strong{font-size:13px;font-weight:550}.inline-row small{display:block;font-size:12px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.compose-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:30px;align-items:start}.compose-main{background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px}.form-section{padding-bottom:27px;margin-bottom:28px;border-bottom:1px solid var(--line)}.compose-main>.form-section:last-child{margin-bottom:0;padding-bottom:0;border:0}.environment-list{max-height:255px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px}.environment-row{display:flex;gap:10px;padding:11px;border:1px solid var(--line);border-radius:7px;align-items:flex-start;cursor:pointer;font-size:12px;font-weight:400;background:#fff}.environment-row:hover{background:#f6f9fd}.environment-row:has(input:checked){background:#eaf1fe;border-color:#93b4e8}.environment-row input{margin-top:3px}.environment-row strong{font-size:12px;font-weight:550;display:block;overflow-wrap:anywhere}.environment-row small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.environment-row.blocked{background:#faf4f2}.environment-list>.empty-state{grid-column:1/-1;width:100%;padding:25px 12px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.max-field{max-width:380px}.range-row{display:flex;gap:10px;align-items:center;margin-top:8px;color:var(--muted);font-size:12px}.range-row input{width:95px;margin:0!important}.generation-actions{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:16px}.inline-label{display:flex;gap:10px;align-items:center;font-weight:400}.inline-label input{width:68px;margin:0!important}.candidate-panel{background:#edf4fd;border:1px solid #c4d7f0;border-radius:7px;padding:16px;margin-top:23px}.variant-row{margin-top:17px}.variant-row .section-heading{margin-bottom:7px}.variant-row label{font-size:12px;color:#53657a}.variant-row textarea{min-height:103px}.recipe-row{display:grid;grid-template-columns:minmax(120px,1fr) 65px 14px 65px auto;gap:8px;align-items:end;margin-top:15px}.recipe-row>span{padding-bottom:11px;color:var(--muted);font-size:12px;text-align:center}.recipe-row label{font-size:11px;color:var(--muted)}.recipe-row input,.recipe-row select{font-size:12px;padding:9px}.recipe-row .text-button{padding-bottom:9px;color:var(--danger)}.recipe-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:20px}.recipe-footer strong{font-size:12px;color:#425a76;font-weight:550}.mode-options label{display:flex;gap:10px;align-items:flex-start;padding:12px 0;font-weight:400}.mode-options input{margin-top:3px}.mode-options strong{display:block;font-size:13px;font-weight:550}.mode-options small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.compose-summary{position:sticky;top:24px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px 20px}.compose-summary h2{font-size:16px}.summary-list{margin:25px 0}.summary-list>div{display:flex;justify-content:space-between;gap:12px;margin:15px 0;font-size:12px;align-items:flex-start}.summary-list dt{color:var(--muted);flex-shrink:0}.summary-list dd{margin:0;text-align:right;font-weight:550;overflow-wrap:anywhere}.compose-summary .button.primary{margin-top:5px}
.upload-button{position:relative;cursor:pointer}.upload-button:focus-within{outline:3px solid #87aef5;outline-offset:3px}.image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:16px}.image-gallery>.empty-state{grid-column:1/-1;width:100%}.image-item{min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.image-item img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#eaf0f6}.image-meta{padding:9px 11px}.image-meta strong{display:block;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-meta .text-button{font-size:11px;color:var(--danger)}.template-layout{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:start}.template-list{margin-top:12px}.template-list .inline-row p{font-size:12px;color:var(--muted);margin-top:7px;white-space:pre-wrap;max-height:90px;overflow:auto}.surface-form{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;display:flex;flex-direction:column;gap:17px}.surface-form h3{font-size:15px;margin-bottom:3px}.surface-form>.button{align-self:flex-start}.surface-form .hint{margin-top:-8px}.compact-form{padding:22px 0 4px}.compact-form>.button{justify-self:start}.choice-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.choice-list label{display:flex;align-items:center;gap:7px;font-weight:400;font-size:12px}summary{cursor:pointer;color:#455b74;font-size:13px;font-weight:550}details[open]>summary{margin-bottom:12px}.admin-source-path{font-size:11px;overflow-wrap:anywhere;color:var(--muted)}
@media(min-width:1600px){.app{grid-template-columns:235px minmax(0,1fr)}.page{padding-top:42px}.compose-layout{grid-template-columns:minmax(0,1fr) 290px;gap:35px}.compose-main{padding:32px}}
@media(max-width:1180px){.app{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:16px;padding-left:8px;gap:9px}.topbar{padding-left:25px;padding-right:25px}.page{padding:28px 25px 40px}.compose-layout{grid-template-columns:1fr}.compose-summary{position:static}.summary-list{display:grid;grid-template-columns:1fr 1fr;column-gap:35px}.compose-summary>.section-gap{max-width:430px}.compose-summary>.button{width:auto;min-width:200px}.compose-summary>.hint{max-width:65ch}.environment-list{max-height:230px}.template-layout{gap:25px}.page-footer{padding-left:25px;padding-right:25px}}
@media(max-width:760px){.app{display:block}.sidebar{position:static;height:auto;padding:17px 18px 0}.brand{padding:0 0 12px;font-size:17px;align-items:center}.brand span{display:flex;align-items:center;gap:14px}.brand small{margin:0;font-size:11px}.brand .icon{margin:0;width:21px;height:21px}.nav{flex-direction:row;gap:4px;margin:0;overflow:auto}.nav a{white-space:nowrap;gap:6px;padding:10px 11px;font-size:12px;border-radius:6px 6px 0 0;min-height:44px}.nav a .icon{width:16px;height:16px}.sidebar-bottom{display:none}.topbar{height:auto;min-height:60px;padding:12px 20px;flex-wrap:wrap;gap:8px}.user-actions{gap:8px;font-size:11px}.worker-state{font-size:11px}.notice{padding:12px 20px}.page{padding:27px 20px 35px}.page-heading{gap:16px;align-items:flex-start;margin-bottom:24px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px}.page-heading>.button{padding:9px 11px;white-space:nowrap;font-size:12px}.page-heading>.subtle-label{display:none}.list-toolbar{flex-wrap:wrap;gap:9px;margin-top:17px}.search-field{max-width:none;flex:1;min-width:160px}.filter-field{width:135px}.list-toolbar>.button:last-child{margin-left:0}.section-tabs{gap:23px}.table-wrap{border-radius:8px}th,td{padding:12px 13px}.compose-main{padding:21px 17px;border-radius:10px}.field-grid{grid-template-columns:1fr;gap:16px}.environment-list{grid-template-columns:1fr;max-height:250px}.recipe-row{grid-template-columns:minmax(90px,1fr) 54px 10px 54px;gap:6px}.recipe-row .text-button{grid-column:1/-1;justify-self:end;padding:0;min-height:25px}.recipe-row input,.recipe-row select{padding:9px 6px}.generation-actions{flex-wrap:wrap}.recipe-footer{align-items:flex-start}.summary-list{display:block}.compose-summary{padding:22px 20px}.compose-summary>.button{width:100%}.template-layout{grid-template-columns:1fr;gap:28px}.surface-form{padding:20px 17px}.image-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.image-meta{padding:7px 8px}.image-meta strong{font-size:10px}.section-heading{gap:12px;flex-wrap:wrap}.page-footer{padding:16px 20px;flex-wrap:wrap;gap:5px;font-size:10px}.auth{margin-top:7vh}.auth-body{padding:27px 24px}.detail-summary{gap:20px;padding:16px}.form-section{margin-bottom:25px;padding-bottom:25px}}
@media(max-width:380px){.nav a{padding-left:8px;padding-right:8px}.nav a .icon{display:none}.page{padding-left:15px;padding-right:15px}.page-heading>.button .icon{display:none}.image-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.role-label{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:760px){.table-wrap table{min-width:660px}.table-wrap td:first-child{min-width:190px}.table-wrap td:last-child{min-width:100px}}

.action-group{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#shutdown-service{color:var(--muted)}
