:root{--bg:#f4f7fb;--panel:#fff;--ink:#172033;--muted:#758098;--line:#e6eaf1;--brand:#315efb;--ok:#0d9f6e;--warn:#d9822b;--bad:#d6455d;--shadow:0 10px 30px rgba(31,45,80,.07)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}.hidden{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{width:230px;background:#111a2e;color:#dbe4ff;display:flex;flex-direction:column;padding:20px 14px;position:fixed;inset:0 auto 0 0}.brand{font-size:18px;font-weight:700;display:flex;align-items:center;gap:10px;padding:4px 12px 24px}.brand-mark{height:42px;width:42px;border-radius:12px;background:linear-gradient(135deg,#6e8bff,#315efb);color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:-1px}.brand-mark.small{height:30px;width:30px;border-radius:9px;font-size:11px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{border:0;background:transparent;color:#aebbdc;text-align:left;padding:11px 14px;border-radius:9px;cursor:pointer;font:inherit}.sidebar nav button:hover,.sidebar nav button.active{background:#24345e;color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid #293451;padding:14px 10px;color:#aebbdc;display:flex;justify-content:space-between;align-items:center}.link-btn{border:0;background:none;color:#90aaff;cursor:pointer}.content{margin-left:230px;width:calc(100% - 230px);padding:24px 30px 50px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.topbar h2{margin:0 0 3px;font-size:24px}.muted{color:var(--muted)}button{font:inherit}.primary,.ghost,.danger,.mini{border:0;border-radius:8px;padding:9px 15px;cursor:pointer}.primary{background:var(--brand);color:#fff}.primary:hover{background:#214bd8}.ghost{background:#fff;color:#435273;border:1px solid var(--line)}.danger{background:#fff0f2;color:var(--bad)}.mini{padding:5px 9px;background:#eef2ff;color:#315efb;font-size:12px}.full{width:100%;margin-top:12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.card{padding:18px}.card .value{font-size:28px;font-weight:700;margin-top:8px}.card .label{color:var(--muted)}.panel{padding:20px;margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel-head h3{margin:0;font-size:16px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:680px}th,td{text-align:left;padding:11px 9px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:12px;color:var(--muted);font-weight:600}tr:last-child td{border-bottom:0}.status{display:inline-flex;padding:3px 8px;border-radius:99px;font-size:12px;background:#f0f2f6;color:#5c687e}.status.success,.status.alive{background:#e5f8f1;color:var(--ok)}.status.failed,.status.canceled,.status.auth_failed,.status.mfa_failed,.status.disabled{background:#fff0f2;color:var(--bad)}.status.running,.status.queued,.status.retrying{background:#eaf0ff;color:#315efb}.status.paused,.status.waiting_resource,.status.unknown,.status.network_error,.status.risk,.status.error{background:#fff6e8;color:var(--warn)}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.toolbar input,.toolbar select,.toolbar textarea,input,select,textarea{border:1px solid #dbe1ec;border-radius:8px;padding:9px 10px;background:#fff;color:var(--ink);font:inherit}input,select{height:38px}textarea{width:100%;min-height:150px;resize:vertical}label{display:flex;flex-direction:column;gap:6px;color:#59657b;font-size:13px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-grid .wide{grid-column:1/-1}.actions{display:flex;gap:9px;justify-content:flex-end;margin-top:16px}.error{color:var(--bad);min-height:20px;margin-top:9px}.toast{position:fixed;right:24px;top:20px;z-index:30;padding:12px 18px;border-radius:9px;background:#172033;color:#fff;box-shadow:var(--shadow)}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#edf2ff,#f8faff)}.login-card{width:min(390px,calc(100% - 30px));background:#fff;border:1px solid var(--line);border-radius:17px;padding:34px;box-shadow:var(--shadow)}.login-card .brand-mark{margin:auto}.login-card h1{text-align:center;margin:15px 0 2px}.login-card p{text-align:center;margin:0 0 23px}.login-card form{display:flex;flex-direction:column;gap:14px}.empty{padding:30px;text-align:center;color:var(--muted)}.progress{height:7px;background:#edf0f5;border-radius:9px;overflow:hidden}.progress>i{display:block;height:100%;background:var(--brand)}.kv{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.kv div{padding:12px;background:#f7f9fc;border-radius:9px}.kv b{display:block;font-size:19px;margin-top:4px}.selection-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0 14px;border-bottom:1px solid var(--line);margin-bottom:10px}.selection-toolbar button:disabled{opacity:.45;cursor:not-allowed}.check-label{display:inline-flex;flex-direction:row;align-items:center;gap:7px;white-space:nowrap;color:var(--ink)}.check-label input,.resource-check,.validation-check{width:16px;height:16px;accent-color:var(--brand)}.selection-hint{margin-left:auto}.resource-tabs{width:100%}.resource-tabs .muted{margin-left:auto}.card-sub{font-size:12px;margin-top:4px}.modal-backdrop{position:fixed;inset:0;background:rgba(17,26,46,.46);z-index:20;display:grid;place-items:center;padding:20px}.modal-card{background:var(--panel);border-radius:14px;box-shadow:0 20px 60px rgba(17,26,46,.28);width:min(760px,100%);max-height:90vh;overflow:auto;padding:22px}.modal-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card input{width:100%}.modal-card .panel-head{position:sticky;top:0;background:var(--panel);z-index:1;padding-bottom:8px}.resource-tabs a,.toolbar a{display:inline-flex;align-items:center;text-decoration:none}.weekday-picker{display:flex;gap:12px;flex-wrap:wrap;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fafbfe}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:16px}.pagination button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:900px){.sidebar{width:70px;padding:14px 8px}.brand span:last-child,.sidebar-bottom span{display:none}.brand{padding:4px 11px 24px}.sidebar nav button{font-size:0;text-align:center;padding:12px}.sidebar nav button:before{content:"●";font-size:16px}.content{margin-left:70px;width:calc(100% - 70px);padding:18px}.cards{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.kv{grid-template-columns:1fr 1fr}.modal-card .form-grid{grid-template-columns:1fr}}

/* v2.2 operations-console polish: readable dense tables, stable controls and a log view that remains useful while the worker is running. */
.content{max-width:1800px}.panel{overflow:hidden}.panel-head{gap:16px}.panel-head>div:first-child{min-width:0}.table-wrap{border:1px solid var(--line);border-radius:10px}.table-wrap table{margin:0}.table-wrap thead th{position:sticky;top:0;z-index:2;background:#f8faff;box-shadow:0 1px 0 var(--line)}tbody tr{transition:background .15s ease}tbody tr:hover{background:#f8faff}td{vertical-align:middle}.toolbar input,.toolbar select,.log-filterbar input,.log-filterbar select{min-width:130px}.primary,.ghost,.danger,.mini{transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.primary:hover,.ghost:hover,.danger:hover,.mini:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(49,94,251,.12)}button:disabled{transform:none!important;box-shadow:none!important}.eyebrow{font-size:11px;letter-spacing:.14em;color:var(--brand);font-weight:700;margin-bottom:5px}.log-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(120deg,#fff,#f3f6ff);padding:24px 26px}.log-hero h3{margin:0;font-size:21px}.log-hero p{margin:4px 0 0}.log-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.log-stat{display:flex;align-items:center;gap:12px;padding:15px 18px}.log-stat b{display:block;font-size:25px;margin-top:2px}.stat-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}.stat-dot.info{background:#5d7dff}.stat-dot.error{background:var(--bad)}.stat-dot.warning{background:var(--warn)}.stat-dot.success{background:var(--ok)}.log-console{padding:0}.log-filterbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:15px 18px;background:#fbfcff;border-bottom:1px solid var(--line)}.log-search{display:flex;align-items:center;gap:7px;flex:1 1 250px;border:1px solid #dbe1ec;border-radius:8px;background:#fff;padding-left:10px}.log-search span{font-size:19px;color:var(--muted)}.log-search input{border:0!important;outline:0;width:100%;min-width:0}.log-filterbar select{background:#fff}.log-toggle{display:inline-flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap;color:#59657b;margin-left:auto}.log-toggle input{width:16px;height:16px;accent-color:var(--brand)}.log-caption{padding:10px 18px 0;color:var(--muted);font-size:12px}.log-table-wrap{border:0;border-radius:0;margin-top:8px}.log-table{min-width:1040px}.log-table th,.log-table td{padding:12px 14px}.log-table th:last-child,.log-table td:last-child{min-width:300px;white-space:normal}.log-row.log-error{background:rgba(214,69,93,.025)}.log-row.log-warning{background:rgba(217,130,43,.025)}.log-job{font-weight:600;max-width:190px;overflow:hidden;text-overflow:ellipsis}.log-time{white-space:nowrap;color:#59657b;font-variant-numeric:tabular-nums}.log-message{font-weight:600;color:var(--ink)}.log-hint{font-size:12px;color:#6f7b91;margin-top:3px;line-height:1.45}.log-details{margin-top:5px;font-size:11px}.log-details summary{cursor:pointer;color:var(--brand)}.log-details code{display:block;color:#6d7585;white-space:pre-wrap;word-break:break-word;margin-top:3px}.log-empty{padding:52px 20px}.empty-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:#e5f8f1;color:var(--ok);font-size:20px}.preflight-summary{padding:12px 16px;background:#f7f9fc;border-radius:9px;margin-bottom:14px;color:#59657b}.preflight-summary b{font-size:22px;color:var(--ok);margin:0 5px}.preflight-summary .bad-number{color:var(--bad)}.preflight-modal{width:min(900px,100%)}
@media(max-width:900px){.log-stats{grid-template-columns:repeat(2,1fr)}.log-hero{align-items:flex-start;gap:14px;flex-direction:column}.log-toggle{margin-left:0}.content{overflow:hidden}}
@media(max-width:520px){.log-stats{grid-template-columns:1fr}.log-filterbar{padding:12px}.log-filterbar select,.log-filterbar button{flex:1 1 42%}.log-search{flex-basis:100%}}
.job-progress-head{display:flex;align-items:center;gap:12px;margin:3px 0 7px}.job-progress-head b{margin-left:auto}.job-progress{height:9px;margin-bottom:17px}.ok-number{color:var(--ok)}.bad-number{color:var(--bad)}.notice{border-radius:10px;padding:12px 16px;margin:0 0 18px;border:1px solid var(--line)}.notice-warn{background:#fff8ec;color:#8a5a1e;border-color:#f2dfb8}.job-item-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0 14px}.job-item-toolbar input{margin-left:auto;min-width:240px}.segmented{display:inline-flex;background:#f1f4fa;border-radius:9px;padding:3px;gap:3px}.segmented button{border:0;background:transparent;color:#68758d;padding:6px 11px;border-radius:7px;cursor:pointer;font:inherit;font-size:13px}.segmented button.active{background:#fff;color:var(--brand);box-shadow:0 1px 4px rgba(31,45,80,.12)}.row-hint{display:block;color:#8a6a36;margin-top:3px;white-space:normal}.item-table th:last-child,.item-table td:last-child{min-width:60px}
.cell-message{max-width:280px;white-space:normal;color:#6c7890}.resource-tabs{padding:2px}.resource-tabs button{font-weight:600}.resource-tabs .ghost,.resource-tabs .primary{white-space:nowrap}.resource-tabs a{white-space:nowrap}
.hint-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:99px;background:#edf3ff;color:#315efb;font-size:12px;font-weight:600}.panel-head>div>h3{margin-bottom:2px}

/* Keep operator tables compact without forcing every field onto one line. */
.item-table{min-width:1120px}.item-table th:nth-child(3),.item-table td:nth-child(3){min-width:330px;white-space:normal}.item-table th:nth-child(4),.item-table td:nth-child(4){min-width:175px;white-space:normal}.item-table th:nth-child(5),.item-table td:nth-child(5){min-width:220px;white-space:normal}.item-table td:first-child{position:sticky;left:0;background:inherit;z-index:1}.item-table thead th:first-child{left:0;z-index:3}.row-sub{display:block;color:var(--muted);margin-top:4px;font-size:11px}.reason-chip{display:inline-flex;margin-top:6px;padding:2px 7px;border-radius:99px;background:#fff4e5;color:#9b6524}.run-meta{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;color:var(--muted);font-size:12px}.run-meta span:first-child{grid-column:1/-1}.run-meta b{color:var(--ink);font-weight:600}.stage-pills{display:flex;gap:5px;flex-wrap:wrap}.stage-pills span{padding:3px 7px;border-radius:99px;background:#f0f2f6;color:#8a93a5;font-size:11px}.stage-pills span.done{background:#e5f8f1;color:var(--ok)}.preflight-modal table td:nth-child(3){white-space:normal;min-width:260px}.status.info{background:#edf3ff;color:#315efb}.status.warning{background:#fff6e8;color:var(--warn)}.status.error{background:#fff0f2;color:var(--bad)}

/* v2.2.2: operator timeline.  The old seven-column audit table exposed IDs
   and implementation noise; this feed emphasizes what happened and what to do. */
.log-feed{padding:8px 20px 2px}.log-entry{display:grid;grid-template-columns:142px minmax(0,1fr);gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.log-entry:last-child{border-bottom:0}.log-rail{position:relative;padding-left:20px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.log-rail:after{content:"";position:absolute;left:5px;top:20px;bottom:-30px;width:1px;background:var(--line)}.log-entry:last-child .log-rail:after{display:none}.log-dot{position:absolute;left:0;top:5px;width:11px;height:11px;border-radius:50%;background:#6f8bff;box-shadow:0 0 0 4px #edf2ff}.log-error .log-dot{background:var(--bad);box-shadow:0 0 0 4px #fff0f2}.log-warning .log-dot{background:var(--warn);box-shadow:0 0 0 4px #fff6e8}.log-entry-main{min-width:0}.log-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:7px}.log-context{display:flex;align-items:center;gap:7px;min-width:0;color:#536079}.log-context strong{color:var(--ink);font-size:14px}.context-divider{color:#b0b7c5}.log-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.log-tags>span:not(.status){display:inline-flex;padding:3px 8px;border-radius:99px;background:#f2f4f8;color:#657086;font-size:11px}.log-message{font-size:15px;font-weight:700;color:var(--ink);line-height:1.5}.log-advice{display:flex;align-items:flex-start;gap:10px;background:#fff8eb;border:1px solid #f2dfb8;border-radius:8px;padding:9px 11px;margin-top:9px;color:#765020}.log-advice b{flex:0 0 auto;font-size:11px;background:#f0d49b;padding:2px 6px;border-radius:4px}.log-entry-actions{display:flex;align-items:center;gap:16px;margin-top:7px;min-height:20px}.log-entry-actions .link-btn{padding:0;font-size:12px}.log-entry-actions .log-details{margin:0}.log-entry-actions .log-details code{background:#f6f7fa;padding:8px 10px;border-radius:6px;margin-top:7px}.log-empty{padding:60px 20px}
@media(max-width:760px){.log-entry{grid-template-columns:1fr;gap:5px}.log-rail{padding-left:20px}.log-rail:after{display:none}.log-entry-head{flex-direction:column}.log-tags{justify-content:flex-start}.item-table{min-width:980px}}
/* v2.3: responsive operator feedback without reloading input state. */
:root{--bg:#f3f6fc;--brand:#3c5ef5;--line:#e4eaf4;--shadow:0 6px 24px rgba(23,40,82,.045)}
button,a,input,select,textarea{transition:background-color .15s,border-color .15s,box-shadow .15s,transform .12s}
button:focus-visible,a:focus-visible{outline:3px solid #a6b8ff;outline-offset:3px}
button:not(:disabled):hover{box-shadow:0 3px 9px #23458216;filter:brightness(.98)}
button:not(:disabled):active{transform:translateY(1px)}
button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}
input:focus,textarea:focus,select:focus{outline:none;border-color:#849af9;box-shadow:0 0 0 3px #315efb12}
input[type=checkbox]{width:17px;height:17px;accent-color:var(--brand);cursor:pointer}
.table-wrap tbody tr:hover{background:#f7f9ff}.table-wrap tr.is-selected{background:#eff3ff}
.selection-toolbar{gap:10px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:12px}
.job-selection{position:sticky;top:0;background:var(--panel);z-index:3}
.row-actions{min-width:175px}.row-actions button{margin:2px}.mini.danger{color:#bd3c57;background:#fff0f3}
.job-table td:nth-child(2){min-width:180px}.job-table .row-sub{font-family:ui-monospace,monospace;font-size:10px;opacity:.7}
.card{border-top:3px solid #dfe6ff}.card .value{letter-spacing:-.5px}.content{max-width:2400px}
.modal-backdrop{backdrop-filter:blur(4px);background:#17203366}.modal-card{animation:dialog-in .16s ease-out;box-shadow:0 22px 90px #17203333}.confirm-card{max-width:480px}.confirm-card p{line-height:1.85;color:#52627d;white-space:pre-wrap}
.plain-secret{font:13px ui-monospace,Consolas,monospace;user-select:all;padding:4px 7px;background:#f2f5fb;border-radius:5px}
.is-busy:before{content:"";display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-right:6px;vertical-align:-2px;animation:busy-spin .7s linear infinite}
#toast{max-width:min(620px,90vw);white-space:normal;box-shadow:0 8px 28px #17203326}
@keyframes busy-spin{to{transform:rotate(360deg)}}@keyframes dialog-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:18px}.panel{padding:18px}.selection-toolbar small{width:100%}}

.secret-field{display:flex;align-items:center;gap:8px}.secret-field input{flex:1;min-width:0}.secret-field .link-btn{padding:7px 10px;color:var(--brand);background:#eef2ff;border-radius:7px;white-space:nowrap}

.status.paused,.status.session_missing{background:#fff5df;color:#91611e}.status.stopping{background:#ffedeb;color:#a44236}.status.session_expired{background:#fff2dd;color:#9b6100}
.editor-section{font-weight:650;color:var(--text);border-bottom:1px solid var(--line);padding-bottom:8px;margin-top:8px}.modal-card input:focus,.modal-card select:focus{box-shadow:0 0 0 3px #4262ff16}.selection-toolbar select{min-width:230px}

/* v2.5 account center: one account-centric surface for credentials, session
   health and authorization lifecycle. */
.account-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.account-cards .card{padding:16px 18px}.account-cards .value{font-size:26px}.monitor-panel{background:linear-gradient(120deg,#fff,#f7f9ff)}.monitor-panel .panel-head{margin-bottom:0}.monitor-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end;gap:12px;border-top:1px solid var(--line);margin-top:15px;padding-top:15px}.monitor-form .switch-line{height:38px;display:flex;flex-direction:row;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}.monitor-form .switch-line input{flex:0 0 auto}.account-panel>.panel-head{align-items:flex-start}.account-panel>.panel-head .toolbar{justify-content:flex-end}.account-table{min-width:1500px}.account-table th:nth-child(2),.account-table td:nth-child(2){min-width:245px}.account-table th:nth-child(6),.account-table td:nth-child(6){min-width:215px}.account-table th:nth-child(8),.account-table td:nth-child(8){min-width:230px;white-space:normal}.automation-switches{display:flex;gap:8px;flex-wrap:wrap}.automation-switches label{display:inline-flex;flex-direction:row;align-items:center;gap:4px;padding:3px 7px;border:1px solid var(--line);border-radius:99px;background:#fafbfe;color:#536079;font-size:11px}.automation-switches input{width:14px;height:14px}.status.active{background:#e5f8f1;color:var(--ok)}.status.not_authorized,.status.access_expired{background:#f0f2f6;color:#667085}.status.needs_reauthorize,.status.error{background:#fff0f2;color:var(--bad)}.status.refreshing{background:#eaf0ff;color:var(--brand)}.status.network_error{background:#fff6e8;color:var(--warn)}
@media(max-width:1280px){.account-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.monitor-form{grid-template-columns:repeat(2,minmax(0,1fr))}.account-panel>.panel-head{flex-direction:column}.account-panel>.panel-head .toolbar{justify-content:flex-start;width:100%}}
@media(max-width:700px){.account-cards,.monitor-form{grid-template-columns:1fr 1fr}.account-panel>.panel-head .toolbar>*{flex:1 1 45%}}

/* Task-centre account picker: local filtering with a stable, scrollable list. */
.account-picker{width:min(980px,100%);display:flex;flex-direction:column;overflow:hidden}.account-picker>.panel-head{flex:0 0 auto}.account-picker>.toolbar{flex:0 0 auto;padding-bottom:12px}.account-picker>.toolbar input{flex:1 1 260px}.account-picker #account-picker-table{min-height:180px;overflow:auto;border-radius:10px}.account-picker .picker-table{max-height:55vh}.account-picker .picker-table table{min-width:760px}.account-picker .actions{flex:0 0 auto;padding-top:2px}.account-picker tr.is-selected{background:#eff3ff}
