:root{--ink:#17212d;--muted:#7f8a96;--line:#e8edf0;--paper:#f7f9fa;--accent:#6b5ce7;--green:#36af83;--blue:#5b8ae8;--amber:#e1aa4f;--radius:18px;font-family:Manrope,"Microsoft YaHei",sans-serif;color:var(--ink)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{width:245px;flex:none;background:#fff;border-right:1px solid var(--line);padding:30px 18px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;color:#17212d;text-decoration:none;font-size:17px;font-weight:800;letter-spacing:-.8px;margin:3px 10px 62px}.brand-light{font-weight:500}.brand small{display:block;font-size:10px;color:#9ba5b1;letter-spacing:1.1px;margin-top:2px;font-weight:700;text-transform:uppercase}.brand-mark{background:var(--accent);color:#fff;width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:19px;font-weight:800;position:relative}.brand-mark span{position:absolute;font-size:11px;right:4px;top:2px}.side-label,.section-kicker,.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#a6afba}.side-label{margin:0 15px 14px}.sidebar nav{display:grid;gap:5px}.nav-link{height:44px;display:flex;align-items:center;gap:14px;color:#778391;text-decoration:none;padding:0 14px;border-radius:10px;font-size:13px;font-weight:700}.nav-link:hover,.nav-link.active{background:#f2f0ff;color:#6655db}.nav-icon{font-size:19px;width:20px;text-align:center;font-weight:400}.nav-count{margin-left:auto;background:#f0f2f4;border-radius:7px;font-size:10px;padding:3px 7px;color:#8a93a1}.nav-link.active .nav-count{background:#e8e3ff;color:#6655db}.sidebar-bottom{margin-top:auto;font-size:11px;color:#a4acb5;padding:12px 10px;display:flex;align-items:center;gap:8px;white-space:nowrap}.side-dot,.eyebrow-dot{width:7px;height:7px;background:#62c7a1;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #e7f8f0}.main{flex:1;min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 50px}.breadcrumb{font-size:12px;color:#98a1ac;font-weight:600}.breadcrumb span{padding:0 9px;color:#c0c7cd}.top-actions{display:flex;align-items:center;gap:15px}.source-pill{font-size:11px;color:#5b947d;background:#ecf8f2;border:1px solid #dcf0e6;border-radius:99px;padding:7px 12px;font-weight:800}.source-pill.demo{color:#a4742b;background:#fff7e8;border-color:#f7ead0}.icon-button{border:1px solid #e7ebee;background:#fff;color:#7f8a95;width:33px;height:33px;border-radius:9px;font-size:19px;line-height:1}.icon-button:hover{color:var(--accent);border-color:#cabfff}.content{max-width:1520px;margin:auto;padding:40px 50px 30px}.intro{display:flex;justify-content:space-between;gap:25px;align-items:end;margin-bottom:32px}.eyebrow{color:var(--accent);display:flex;align-items:center;gap:10px}.eyebrow-dot{background:var(--accent);box-shadow:0 0 0 4px #ebe8ff}.intro h1{font-size:32px;line-height:1.2;letter-spacing:-1.7px;margin:12px 0 12px;font-weight:800}.period{color:var(--accent)}.intro p{color:#8a95a1;font-size:12px;margin:0;line-height:1.7}.intro-meta{text-align:right;display:grid;gap:4px;color:#9ba5ae;font-size:11px}.intro-meta strong{font-size:12px;color:#52606b}.intro-meta small{font-size:10px}.notice{padding:11px 15px;background:#fff7e8;color:#93652f;border:1px solid #f0dfbc;border-radius:10px;margin-bottom:20px;font-size:12px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:42px}.kpi,.agent-card,.task-section,.credit-section{background:#fff;border:1px solid #e9edf0;border-radius:var(--radius);box-shadow:0 4px 25px #1d2e3a05}.kpi{padding:21px 23px 20px;min-height:168px}.kpi-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:19px;margin-bottom:16px}.kpi-icon.purple{background:#eeeaff;color:#7467e3}.kpi-icon.blue{background:#e9f1ff;color:#608ceb}.kpi-icon.green{background:#e5f8f0;color:#3ba980}.kpi-icon.amber{background:#fff3df;color:#d6a053}.kpi-label{font-size:11px;font-weight:700;color:#91a0ab}.kpi-value{font-size:30px;font-weight:800;letter-spacing:-1.5px;line-height:1.3;margin:2px 0}.kpi-note{font-size:10px;color:#afb9c1}.section{scroll-margin-top:28px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:19px}.section-kicker{color:var(--accent);font-size:9px}.section-heading h2{font-size:19px;letter-spacing:-.7px;margin:6px 0 3px}.section-heading p{font-size:11px;color:#9ba5ad;margin:0;line-height:1.5}.subtle-chip{border:1px solid #e8edf1;border-radius:7px;padding:7px 10px;font-size:10px;color:#8a96a1;font-weight:700;background:#fff;white-space:nowrap}.agent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:42px}.agent-card{padding:20px 21px}.agent-head{display:flex;align-items:center;gap:11px}.avatar{width:39px;height:39px;flex:none;border-radius:11px;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:800}.avatar-0{background:#9a87ed}.avatar-1{background:#6aa5d8}.avatar-2{background:#e2ab77}.avatar-3{background:#78bb9f}.agent-identity{min-width:0}.agent-identity h3{margin:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-identity span{font-size:10px;color:#a8b1bc}.presence{margin-left:auto;white-space:nowrap;display:flex;align-items:center;gap:5px;font-size:9px;color:#a1a9b3;font-weight:800}.presence i{width:6px;height:6px;border-radius:50%;background:#c2c9d0}.presence.fresh{color:#53ad89}.presence.fresh i{background:#53c696;box-shadow:0 0 0 3px #e4f7ec}.agent-task{margin:22px 0 17px;display:grid;gap:7px}.agent-task>span,.agent-stats span,.credit-scope{font-size:10px;color:#a1acb6}.agent-task strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-link,.task-primary{border:0;background:none;padding:0;text-align:left;color:inherit}.task-link:hover,.task-primary:hover strong{color:var(--accent)}.agent-divider{height:1px;background:#eef1f3;margin-bottom:17px}.agent-stats{display:grid;grid-template-columns:1fr .85fr 1fr;gap:7px}.agent-stats div{min-width:0}.agent-stats span{display:block;margin-bottom:6px}.agent-stats strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-stats strong small{font-size:9px;color:#9da9b3}.credit-scope{margin-top:13px;font-size:9px}.lower-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:20px;align-items:start}.task-section,.credit-section{padding:22px}.task-section .section-heading,.credit-section .section-heading{margin-bottom:21px}.task-toolbar{display:flex;gap:9px;margin-bottom:14px}.search-wrap{height:36px;display:flex;align-items:center;gap:7px;border:1px solid #e8ecf0;border-radius:8px;padding:0 10px;flex:1;min-width:0;color:#a8b1ba}.search-wrap span{font-size:19px}.search-wrap input{width:100%;border:0;outline:0;font-size:11px;color:var(--ink);background:transparent}.search-wrap input::placeholder{color:#b0b8bf}.task-toolbar select{border:1px solid #e8ecf0;border-radius:8px;background:#fff;color:#768492;padding:0 10px;font-size:10px;font-weight:700;max-width:110px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:560px;text-align:left}thead{background:#f9fafb}th{height:35px;font-size:9px;color:#a2aab3;font-weight:800;padding:0 10px;white-space:nowrap}td{border-bottom:1px solid #f0f2f3;padding:15px 10px;font-size:10px;color:#66727f;white-space:nowrap}tbody tr:last-child td{border-bottom:0}.task-primary{display:grid;gap:3px;max-width:195px}.task-id{color:#7667e6;font-size:9px;font-weight:800}.task-primary strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-primary small{color:#c59d62;font-size:9px}.owner-cell{display:flex;align-items:center;gap:6px}.mini-avatar{width:20px;height:20px;display:grid;place-items:center;background:#e9e6fb;color:#7466ce;border-radius:6px;font-size:8px;font-weight:800}.muted{color:#abb4bd}.priority{color:#82909c;background:#f2f4f6;border-radius:5px;padding:4px 6px;font-size:9px;font-weight:800}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:5px;font-size:9px;font-weight:800;white-space:nowrap}.badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.badge.ready{background:#fff4e3;color:#c99a51}.badge.running{background:#eaf1ff;color:#608ee6}.badge.delivered{background:#f1edff;color:#8470d9}.badge.accepted{background:#e8f8f1;color:#3da87b}.badge.blocked,.badge.failed{background:#fff0ed;color:#d58370}.spent{font-size:10px;font-weight:700;color:#5c6873}.row-arrow{border:0;background:none;color:#aab3bb;font-size:15px}.row-arrow:hover{color:var(--accent)}.empty,.empty-card{padding:35px;text-align:center;color:#9da8b2;font-size:12px}.empty-card{grid-column:1/-1;background:#fff;border:1px solid var(--line);border-radius:14px}.credit-section{min-height:360px}.credit-group{margin:26px 0}.credit-row{display:flex;align-items:center;justify-content:space-between}.credit-row>div{display:grid;gap:4px}.credit-row strong{font-size:20px;letter-spacing:-.8px}.credit-unit{font-size:12px;font-weight:800}.credit-scope-label,.credit-meta{font-size:10px;color:#a6b0b9}.bar{background:#eef1f4;height:7px;border-radius:99px;margin:13px 0 7px;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,#a395f2,#705fe1);border-radius:99px}.credit-mini-title{border-top:1px solid #eef1f3;padding-top:19px;font-size:10px;font-weight:800;color:#8895a1;margin-bottom:11px}.balance-row{display:flex;justify-content:space-between;font-size:10px;padding:8px 0;color:#85929d}.balance-row strong{color:#42505d}.balance-row small{color:#9aa6b0}.credit-footnote{border-top:1px solid #eef1f3;padding-top:14px;margin-top:18px;color:#a4aeb7;font-size:9px;line-height:1.7}.credit-empty{text-align:center;padding:42px 8px 36px;color:#9da9b2}.credit-empty div{width:46px;height:46px;border-radius:13px;background:#f1efff;color:#8b7de7;display:grid;place-items:center;font-size:24px;margin:0 auto 15px}.credit-empty strong{color:#53616d;font-size:12px}.credit-empty p{font-size:10px;line-height:1.7}footer{font-size:9px;color:#b0b9c1;text-align:center;padding:39px 0 0}footer span{padding:0 9px}.drawer-backdrop{position:fixed;inset:0;background:#16212f80;z-index:8}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(520px,100vw);background:#fff;z-index:9;transform:translateX(100%);transition:transform .25s ease;box-shadow:-20px 0 60px #10192720;overflow:auto}.drawer.open{transform:translateX(0)}.drawer-open{overflow:hidden}.drawer-top{height:65px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 27px;font-size:12px;font-weight:800}.drawer-body{padding:28px}.drawer-kicker{font-size:10px;letter-spacing:1.5px;color:var(--accent);font-weight:800}.drawer-body h2{font-size:24px;letter-spacing:-1px;margin:8px 0 15px}.drawer-body h3{font-size:13px;margin:28px 0 12px}.rework-note{padding:10px 12px;background:#fff8ed;color:#a87b3f;border-radius:8px;font-size:11px;margin-top:15px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 12px;padding:25px 0;border-bottom:1px solid var(--line)}.detail-grid>div{min-width:0;display:grid;gap:5px}.detail-grid span{font-size:10px;color:#a2adb6}.detail-grid strong{font-size:11px;line-height:1.5;word-break:break-word}.drawer pre{font-family:Consolas,"Microsoft YaHei",monospace;font-size:10px;white-space:pre-wrap;word-break:break-word;line-height:1.7;background:#f8fafb;border:1px solid #edf0f2;border-radius:10px;padding:15px;max-height:350px;overflow:auto}@media(max-width:1220px){.content{padding:35px 30px}.topbar{padding:0 30px}.agent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lower-grid{grid-template-columns:1fr}.credit-section{min-height:0}}@media(max-width:780px){.sidebar{width:70px;padding:23px 10px}.brand{margin:3px auto 50px}.brand>span:last-child,.side-label,.nav-link:not(.active),.nav-link.active{font-size:0}.nav-link{justify-content:center;padding:0}.nav-icon{font-size:20px}.nav-count,.sidebar-bottom{display:none}.topbar{height:60px}.content{padding:28px 20px}.intro{align-items:start}.intro-meta{display:none}.kpis{grid-template-columns:repeat(2,1fr);gap:10px}.kpi{min-height:145px;padding:15px}.agent-grid{grid-template-columns:1fr;gap:12px}.intro h1{font-size:27px}.section-heading{align-items:start}.subtle-chip{font-size:9px}.task-section,.credit-section{padding:15px}}@media(max-width:480px){.sidebar{display:none}.intro p{font-size:11px}.content{padding:25px 14px}.topbar{padding:0 15px}.kpi{min-height:133px}.kpi-value{font-size:25px}.section-heading h2{font-size:18px}.task-toolbar{flex-wrap:wrap}.task-toolbar select{height:35px;max-width:none;flex:1}.search-wrap{flex:3;min-width:150px}}
:root{color-scheme:light}
.highlights{display:grid;gap:9px}.highlights>div{background:#f8fafb;border:1px solid #edf0f2;border-radius:9px;padding:11px 13px}.highlights span{font-size:10px;font-weight:800;color:#7c6adf}.highlights p{font-size:11px;line-height:1.6;margin:5px 0 0;color:#465360}.drawer details{margin-top:20px}.drawer summary{font-size:11px;font-weight:700;color:#7767dc;cursor:pointer}
.agent-history{font-size:9px;color:#8d99a3;margin-top:12px;padding-top:10px;border-top:1px dashed #edf0f2}
.badge.waiting{background:#f1f3f6;color:#8593a0}
.publish-trigger,.primary-button{border:0;background:#6b5ce7;color:#fff;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 4px 10px #6b5ce729}.publish-trigger:hover,.primary-button:hover:not(:disabled){background:#5747d2}.primary-button:disabled,.secondary-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.secondary-button{border:1px solid #dcd8f3;background:#fff;color:#6b5ce7;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:800;white-space:nowrap}.secondary-button:hover:not(:disabled){background:#f4f1ff}.publish-dialog{border:0;padding:0;width:min(700px,calc(100vw - 24px));max-height:min(92vh,950px);border-radius:18px;box-shadow:0 24px 80px #17212d35;color:var(--ink)}.publish-dialog[open]{display:flex;flex-direction:column}.publish-dialog::backdrop{background:#17212d90}.publish-head{display:flex;justify-content:space-between;align-items:start;padding:25px 30px 20px;border-bottom:1px solid var(--line)}.publish-head h2{font-size:21px;margin:6px 0 5px;letter-spacing:-.8px}.publish-head p{font-size:11px;color:#93a0aa;margin:0;line-height:1.6}.publish-scroll{overflow:auto;padding:24px 30px;min-height:0}.publish-scroll form{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-field{display:grid;gap:7px;min-width:0}.form-field>span:first-child,.agent-fieldset legend{font-size:11px;font-weight:800;color:#566371}.form-field em{font-style:normal;color:#db7b72}.form-field input:not([type=checkbox]),.form-field select,.form-field textarea{border:1px solid #dfe6eb;background:#fff;border-radius:8px;padding:10px 11px;color:#24313c;font-size:12px;width:100%;outline:0}.form-field textarea{resize:vertical;min-height:76px;line-height:1.6}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#8b7de8;box-shadow:0 0 0 3px #eeeaff}.form-field small,.agent-fieldset small{font-size:9px;color:#a3aeb7;line-height:1.5}.check-field{align-content:start}.check-line{display:flex;align-items:center;gap:7px;font-size:11px;color:#596774}.check-line input{accent-color:#6b5ce7}.agent-fieldset{border:1px solid #e8edf0;border-radius:10px;margin:0;padding:12px 14px;display:grid;gap:11px}.agent-fieldset legend{padding:0 5px}.agent-options{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0}.agent-options .check-line{background:#f8f9fb;border:1px solid #edf0f3;border-radius:7px;padding:7px 9px}.publish-feedback{font-size:11px;line-height:1.5;padding:10px 12px;border-radius:8px;margin-top:18px;background:#f2f0ff;color:#6859c7}.publish-feedback.success{background:#eaf8f1;color:#3b986f}.publish-feedback.error{background:#fff0ec;color:#b96252}.publish-preview{margin-top:18px}.publish-preview>div{font-size:11px;font-weight:800;margin-bottom:8px}.publish-preview pre{font-family:Consolas,"Microsoft YaHei",monospace;font-size:10px;line-height:1.7;white-space:pre-wrap;word-break:break-word;background:#f8fafb;border:1px solid #e8edf0;border-radius:9px;padding:14px;max-height:260px;overflow:auto;margin:0}.publish-actions{border-top:1px solid var(--line);padding:17px 30px;display:flex;align-items:center;justify-content:flex-end;gap:9px}.publish-actions>span{margin-right:auto;font-size:10px;color:#a3adb6}@media(max-width:780px){.publish-dialog{max-height:96vh}.publish-head{padding:18px}.publish-scroll{padding:18px}.publish-actions{padding:13px 18px}}@media(max-width:480px){.topbar .source-pill{display:none}.publish-trigger{padding:8px 10px;font-size:10px}.form-grid{grid-template-columns:1fr}.publish-actions>span{display:none}.publish-actions button{flex:1}}
.limits-section{margin-top:42px}.limit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.limit-card{background:#fff;border:1px solid #e9edf0;border-radius:var(--radius);box-shadow:0 4px 25px #1d2e3a05;padding:20px;min-width:0}.limit-card-head{display:flex;justify-content:space-between;align-items:start;gap:10px;padding-bottom:18px;border-bottom:1px solid #eef1f3}.limit-card-head h3{font-size:13px;margin:0 0 3px}.limit-card-head small{font-size:9px;color:#a5b0b9}.limit-state{font-size:9px;font-weight:800;border-radius:6px;padding:5px 7px;white-space:nowrap;color:#b3814b;background:#fff3e2}.limit-state.allowed{color:#4b9b79;background:#e9f7ef}.limit-state.stopped{color:#cf7365;background:#fff0ed}.limit-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:17px 0}.limit-settings label{font-size:9px;font-weight:800;color:#8995a0;display:grid;gap:5px;min-width:0}.limit-settings input,.limit-settings select{border:1px solid #e5eaf0;background:#fff;border-radius:7px;padding:8px;color:#3b4957;font-size:10px;width:100%;min-width:0;outline:0}.limit-settings input:focus,.limit-settings select:focus,.limit-amount input:focus{border-color:#8b7de8;box-shadow:0 0 0 3px #eeeaff}.limit-periods{display:grid;gap:10px}.limit-period{background:#fafbfc;border:1px solid #edf0f2;border-radius:10px;padding:11px}.limit-period-head,.limit-usage{display:flex;align-items:center;justify-content:space-between}.limit-period-head strong{font-size:11px}.limit-switch{position:relative;width:30px;height:17px;display:inline-flex}.limit-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}.limit-switch span{width:30px;height:17px;background:#d5dce2;border-radius:99px;transition:background .2s}.limit-switch span:after{content:"";display:block;width:11px;height:11px;background:#fff;border-radius:50%;margin:3px;box-shadow:0 1px 3px #0002;transition:transform .2s}.limit-switch input:checked+span{background:#7769e3}.limit-switch input:checked+span:after{transform:translateX(13px)}.limit-switch input:focus-visible+span{outline:3px solid #cbc3ff}.limit-amount{display:flex;align-items:center;gap:7px;margin:9px 0}.limit-amount input{border:1px solid #e3e8ed;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:700;width:100%;min-width:0;outline:0}.limit-amount>span{color:#a2acb5;font-size:9px;white-space:nowrap}.limit-meter{height:5px;background:#e9edf0;border-radius:99px;overflow:hidden}.limit-meter span{display:block;height:100%;background:#796be6;border-radius:99px}.limit-usage{font-size:9px;color:#9ba6af;margin-top:7px}.limit-usage .reached,.limit-usage .unknown{color:#d07866}.limit-usage .within{color:#4b9b79}.limit-card-foot{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:16px}.limit-card-foot small{font-size:9px;color:#a2adb6;line-height:1.4}.limit-card-foot button{font-size:10px;padding:7px 10px}.limit-feedback{margin-top:12px;border-radius:7px;padding:8px 10px;font-size:10px;line-height:1.5}.limit-feedback.success{background:#eaf8f1;color:#3b986f}.limit-feedback.error{background:#fff0ec;color:#b96252}@media(max-width:1220px){.limit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.limit-grid{grid-template-columns:1fr}}
.kpi{display:block;color:inherit;text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s}
.kpi:hover,.kpi:focus-visible{transform:translateY(-2px);border-color:#a99df1;box-shadow:0 8px 28px #6b5ce721;outline:none}
.kpi:focus-visible{outline:2px solid #6b5ce7;outline-offset:3px}


.content>#agents .agent-grid{margin-bottom:0}
.lower-grid{margin-top:36px}

.sidebar .brand{margin-bottom:40px}
.topbar{position:sticky;top:0;z-index:6;gap:16px;box-shadow:0 3px 14px #17212d0b}
.top-actions{min-width:0;gap:12px}
.top-meta{display:flex;align-items:center;gap:13px;color:#8895a1;font-size:11px;white-space:nowrap}
.top-meta strong{color:#4a5865;font-weight:700}
.top-meta #commit{font-family:Consolas,monospace;color:#71808c}
.icon-button.refreshing{color:#6b5ce7;border-color:#cfc8f5}
.refresh-icon{display:inline-block;line-height:1}
.icon-button.refreshing .refresh-icon{animation:refresh-spin 1s linear infinite}
.icon-button.refresh-success{color:#23865f;border-color:#b9e2ce}
.icon-button.refresh-error{color:#bc6053;border-color:#efc8c2}
@keyframes refresh-spin{to{transform:rotate(360deg)}}
#submit-task{position:relative}
#submit-task .submit-spinner{display:none;position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;box-sizing:border-box;animation:refresh-spin .8s linear infinite}
#submit-task.publishing .submit-label{visibility:hidden}
#submit-task.publishing .submit-spinner{display:block}
.section{scroll-margin-top:98px}
.intro{margin-bottom:25px}
.intro h1{margin:0}
.section-heading h2{margin:0}
@media(max-width:900px){.top-meta{gap:7px;font-size:10px}.top-actions{gap:7px}}
@media(max-width:600px){.topbar{height:auto;min-height:76px;align-items:flex-start;padding:9px 14px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.top-meta{order:3;width:100%;justify-content:flex-end}.topbar .source-pill{display:inline-flex}.section{scroll-margin-top:105px}}
.agent-table-wrap{overflow-x:auto;margin-bottom:36px;background:#fff;border:1px solid #e5eaee;border-radius:var(--radius);box-shadow:0 4px 25px #1d2e3a05}
.agent-table{min-width:1080px}
.agent-table th{height:42px;background:#f4f6f9;padding:0 12px}
.agent-table td{padding:14px 12px;font-size:11px;vertical-align:middle}
.agent-table tbody tr:hover{background:#f9f9ff}
.agent-table .agent-sort{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:#687683;font-size:10px;font-weight:800;padding:5px 0;white-space:nowrap}
.agent-table .agent-sort:hover,.agent-table th[aria-sort="ascending"] .agent-sort,.agent-table th[aria-sort="descending"] .agent-sort{color:#6655db}
.agent-table .agent-sort span{font-size:9px;color:#a6aeb8}
.agent-table .agent-table-identity{display:flex;align-items:center;gap:9px;min-width:155px}
.agent-table .agent-table-identity .avatar{width:30px;height:30px;border-radius:8px;font-size:10px}
.agent-table .agent-table-identity strong{display:block}
.agent-table .agent-table-identity small{display:block;color:var(--muted);font-size:11px;max-width:280px;white-space:normal}
.agent-table .agent-description{white-space:pre-wrap!important;overflow-wrap:anywhere}
.agent-table .presence{margin-left:0}
.agent-table .task-link{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lower-grid{display:block}

.deps-dropdown{position:relative;border:1px solid #dfe6eb;border-radius:8px;background:#fff;font-size:12px;color:#3b4957}
.deps-dropdown>summary{list-style:none;padding:10px 11px;cursor:pointer;min-height:39px}
.deps-dropdown>summary::-webkit-details-marker{display:none}
.deps-dropdown>summary:after{content:'▾';float:right;color:#8c98a4}
.deps-dropdown[open]>summary:after{content:'▴'}
.deps-menu{border-top:1px solid #e8edf0;padding:10px;display:grid;gap:8px}
.deps-options{max-height:220px;overflow-y:auto;display:grid;gap:4px}
.deps-options .check-line{padding:8px;border-radius:7px;cursor:pointer;line-height:1.4}
.deps-options .check-line:hover{background:#f4f1ff}
.deps-options .check-line span{overflow-wrap:anywhere}
.deps-empty{font-size:11px;color:#9ba5ad;padding:10px}
.agent-options .check-line{min-width:220px;justify-content:flex-start}
.agent-option-balance{margin-left:auto;color:#66727f;font-size:10px;white-space:nowrap}
.balance-link{border:0;background:none;padding:3px 0;color:#6655db;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.balance-link:hover{color:#4939ba}
.balance-link:focus-visible{outline:2px solid #6b5ce7;outline-offset:3px;border-radius:2px}
.credit-dialog{width:min(820px,calc(100vw - 24px));max-height:90vh;border:0;border-radius:18px;padding:0;color:var(--ink);box-shadow:0 24px 80px #17212d35}
.credit-dialog::backdrop{background:#17212d90}
.credit-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.credit-dialog-head h2{font-size:18px;margin:0}
.credit-trend-content{padding:22px 24px 24px;overflow:auto}
.trend-summary{display:flex;align-items:end;gap:32px;flex-wrap:wrap;margin-bottom:12px}
.trend-summary>div{display:grid;gap:4px}
.trend-summary span,.trend-series-label,.trend-note{font-size:11px;color:#82909c}
.trend-summary strong{font-size:20px;color:#24313c}
.trend-summary strong.down{color:#c36b5c}
.trend-summary strong.up{color:#2b9875}
.trend-series-label{margin-left:auto;display:flex;align-items:center;gap:8px}
.trend-series-label select{font:inherit;border:1px solid #dfe6eb;border-radius:7px;padding:6px;background:#fff;color:#435360}
.credit-chart{display:block;width:100%;height:auto;background:#fafbfe;border:1px solid #eef1f6;border-radius:12px}
.trend-grid-line{stroke:#e5eaf0;stroke-width:1}
.trend-axis-label{fill:#8a97a4;font-size:11px;font-family:Manrope,"Microsoft YaHei",sans-serif}
.trend-line{fill:none;stroke:#6b5ce7;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.trend-dot{fill:#fff;stroke:#6b5ce7;stroke-width:3;cursor:pointer;transition:fill .15s,stroke-width .15s}
.trend-dot:hover,.trend-dot:focus{fill:#6b5ce7;stroke-width:5;outline:none}
.trend-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:22px;padding:14px;background:#f8faf9;border:1px solid var(--line);border-radius:12px}
.trend-controls>label{display:grid;gap:6px;font-size:11px;color:#687a70;min-width:0}
.trend-controls select,.trend-controls input[type=datetime-local]{border:1px solid var(--line);border-radius:7px;padding:8px;background:white;color:var(--ink);font:inherit;max-width:100%}
.trend-controls select:focus,.trend-controls input:focus{outline:2px solid #c7ded2;outline-offset:1px}
.trend-controls .trend-zero{margin-left:auto;align-self:center;justify-items:end;gap:9px}
.credit-point-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#f8faf9;min-height:98px}
.credit-point-detail>div{display:grid;gap:7px;align-content:start;min-width:0}
.credit-point-detail span{font-size:11px;color:#687a70}
.credit-point-detail strong{font-size:15px;color:var(--ink);overflow-wrap:anywhere}
.credit-point-detail small{font-size:11px;color:#82909c;line-height:1.6}
.credit-hover{position:fixed;z-index:10;pointer-events:none;width:min(300px,calc(100vw - 16px));padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 32px #17212d26;display:grid;gap:12px;color:var(--ink)}
.credit-hover[hidden]{display:none}
.credit-hover>div{display:grid;gap:4px}
.credit-hover>div+div{border-top:1px solid var(--line);padding-top:10px}
.credit-hover span,.credit-hover small{font-size:11px;color:#82909c;line-height:1.5}
.credit-hover strong{font-size:14px}
.heartbeat-hover{z-index:100}
[data-heartbeat-agent]{cursor:help}
[data-heartbeat-agent]:focus-visible{outline:2px solid #c7ded2;outline-offset:3px;border-radius:4px}
.view-toggle.credit-view-toggle{display:flex;flex-direction:row;flex-wrap:nowrap;margin:0}
.credit-point-detail[hidden]{display:none}
.credit-history-table{max-height:360px;overflow:auto;border:1px solid var(--line);border-radius:12px}
.credit-history-table table{width:100%;border-collapse:collapse;font-size:11px}
.credit-history-table th{position:sticky;top:0;background:#f8faf9;z-index:1;text-align:left;padding:12px;color:#687a70;white-space:nowrap}
.credit-history-table td{padding:12px;border-top:1px solid var(--line);white-space:nowrap}
.credit-history-table td small{display:block;color:#82909c;margin-top:4px;font-size:10px}
.credit-history-table .up{color:#2b9875;font-weight:700}
.credit-history-table .down{color:#c36b5c;font-weight:700}
.description-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
#description-error{margin-top:12px}
@media(max-width:600px){.credit-point-detail{grid-template-columns:1fr}.trend-controls>label{flex:1 1 140px}.trend-controls .trend-zero{justify-items:start;margin-left:0}.credit-trend-content{padding:16px}.credit-dialog-head{padding:16px}}
.trend-note{margin:11px 0 0;line-height:1.5}
.credit-trend-empty{padding:54px 12px;text-align:center;color:#8a97a4;font-size:12px}
.attention-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.attention-card{position:relative;display:flex;flex-direction:column;gap:10px;border:1px solid #e0e8e4;border-radius:16px;background:#fff;padding:22px;text-align:left;cursor:pointer;color:inherit}.attention-card:hover{border-color:#277770;transform:translateY(-2px)}.attention-kind{font-size:11px;font-weight:750;color:#ad7132;letter-spacing:1px}.attention-card strong{font-size:16px;padding-right:18px}.attention-card small{color:#728079;line-height:1.5}.attention-arrow{position:absolute;right:18px;top:20px;color:#277770}.inbox-clear{display:flex;align-items:center;gap:18px;padding:24px;border-radius:16px;background:#edf5f0}.inbox-clear>span{font-size:26px;color:#277770}.inbox-clear p{margin:6px 0 0;color:#6a7b72;font-size:13px}.agent-connect{padding:0 20px 18px;display:flex;flex-direction:column;gap:9px}.agent-connect button{border:0;background:#edf4ef;border-radius:8px;padding:9px;color:#277770;cursor:pointer;font-weight:700}.agent-connect code{font-size:10px;color:#7b8880;overflow-wrap:anywhere}.view-toggle{display:flex;gap:4px;margin:8px 20px 16px;background:#f0f3f1;border-radius:9px;padding:4px;width:max-content}.view-toggle button{border:0;padding:7px 16px;border-radius:6px;background:transparent;color:#718078;cursor:pointer}.view-toggle .selected{background:white;color:#277770;box-shadow:0 2px 8px #0001}.task-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px;padding:0 18px 20px;align-items:start}.board-lane{min-width:0;overflow-wrap:anywhere;background:#f5f7f5;border-radius:12px;padding:12px}.board-lane h3{display:flex;justify-content:space-between;font-size:12px;margin:3px 0 14px;color:#687a70}.board-lane h3 span{background:#e4ece6;border-radius:4px;padding:0 5px}.board-task{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;margin:9px 0;padding:14px;border:1px solid #e5eae6;border-radius:10px;background:white;text-align:left;cursor:pointer;color:#253e30}.board-task small,.board-task>span:last-child{font-size:10px;color:#7e8a82}.board-task strong{font-size:13px;line-height:1.5}.board-empty{font-size:12px;color:#9aa69f;text-align:center;padding:24px 0}.task-action-bar{display:flex;gap:10px;margin-bottom:22px}.compact-dialog{width:min(520px,90vw)}.action-form{padding:0 28px 28px}#action-form>button[type=submit]{margin-top:20px}.action-form>p{font-size:13px;color:#687a70;line-height:1.7}.badge.cancelled{color:#7d8581;background:#edf0ee}.badge.invalid{color:#aa3b3b;background:#ffeded}.hidden{display:none!important}

.task-delete{border:0;background:transparent;color:#b96252;cursor:pointer;font-size:11px;padding:6px 8px;white-space:nowrap}
.board-task-open{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;border:0;background:transparent;padding:0;text-align:left;color:inherit;cursor:pointer}
.board-task-open small,.board-task-open>span:last-child{font-size:10px;color:#7e8a82}

.report-dialog{width:min(960px,94vw);max-width:94vw;max-height:90vh;padding:0;border:1px solid #dfe6e1;border-radius:16px;box-shadow:0 24px 80px #172d2940;color:#253e30;background:#fff}
.report-dialog[open]{display:flex;flex-direction:column}
.report-dialog::backdrop{background:#172d2966}
.report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 28px;border-bottom:1px solid #e5ebe7;flex-shrink:0}
.report-head h2{font-size:19px;margin:0 0 8px}.report-head p{font-size:12px;margin:0;color:#718078;overflow-wrap:anywhere}
.markdown-preview{padding:24px 32px;overflow:auto;min-height:0;line-height:1.75;font-size:14px;overflow-wrap:anywhere}
.markdown-preview>:first-child{margin-top:0}.markdown-preview h1{font-size:26px}.markdown-preview h2{font-size:21px;border-bottom:1px solid #e5ebe7;padding-bottom:8px}.markdown-preview h3{font-size:17px}
.markdown-preview ul,.markdown-preview ol{padding-left:26px}.markdown-preview li+li{margin-top:5px}
.markdown-preview pre{padding:16px;background:#f5f7f5;border:1px solid #e5ebe7;border-radius:8px;overflow:auto;white-space:pre;overflow-wrap:normal;line-height:1.6}
.markdown-preview code{font-family:Consolas,monospace;font-size:.9em;background:#f0f3f1;padding:2px 5px;border-radius:4px}.markdown-preview pre code{padding:0;background:transparent}
.markdown-preview table{display:block;overflow:auto;border-collapse:collapse;max-width:100%;margin:18px 0}.markdown-preview th,.markdown-preview td{border:1px solid #dfe6e1;padding:8px 12px;text-align:left}.markdown-preview th{background:#f5f7f5}
.markdown-preview blockquote{border-left:4px solid #b5cec1;margin:18px 0;padding:1px 18px;color:#687a70}.markdown-preview a{color:#277770;text-decoration:underline}.markdown-preview img{max-width:100%;height:auto}.markdown-preview hr{border:0;border-top:1px solid #e5ebe7}
.report-trigger{margin-top:12px}@media(max-width:600px){.report-head{padding:18px}.markdown-preview{padding:20px}.report-dialog{max-height:94vh}}

.task-deliverables{margin:24px 0}.delivery-file{display:inline-flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0 8px 8px 0;max-width:100%;overflow-wrap:anywhere}.delivery-file small{font-size:10px;color:#718078;font-weight:400}
.markdown-preview.html-preview{padding:0;overflow:hidden}.html-preview iframe{display:block;width:100%;height:70vh;max-height:calc(90vh - 100px);border:0;background:#fff}

/* Shared request feedback; keep button labels visible while a request is pending. */
button[aria-busy="true"]{cursor:wait}
button[aria-busy="true"]:not(#refresh):not(#submit-task)::after,.loading-spinner{content:"";display:inline-block;width:14px;height:14px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;box-sizing:border-box;vertical-align:middle;animation:refresh-spin .8s linear infinite}
.loading-spinner{margin:0 8px 0 0}

.archived-section{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.archived-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.archived-heading h3{margin:0;font-size:13px}.archived-heading h3 span{color:var(--muted);font-size:11px}.archived-heading button{font-size:12px;color:var(--accent)}.archived-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.archived-task{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;background:#f8faf9;border:1px solid var(--line);border-radius:10px;text-align:left;color:var(--ink)}.archived-task:hover{border-color:var(--accent)}.archived-task small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.archived-task strong{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archived-all{padding:24px;max-height:70vh;overflow:auto}.archived-task:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:600px){.archived-grid{grid-template-columns:repeat(3,minmax(130px,1fr));overflow-x:auto}.archived-all{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.archived-heading{flex-wrap:wrap}}

.overview-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-tile{min-height:0}.tile-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:19px;font-weight:800;margin-bottom:16px}.tile-heading small{font-size:12px;color:var(--muted);font-weight:500}.overview-agents{display:grid;gap:8px}.overview-agent{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:8px 0;border-bottom:1px solid var(--line)}.overview-agent strong{white-space:nowrap}.overview-agent small{font-size:10px;color:var(--muted)}.overview-tasks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.overview-tasks a{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#f5f7f6;border-radius:8px;font-size:12px;text-decoration:none;color:inherit}.overview-tasks a:hover,.tile-heading:hover{color:var(--accent)}.overview-empty{margin:8px 0;color:var(--muted);font-size:12px}
#task-empty{padding:12px 10px}.credit-section{min-height:0}.credit-empty{padding:12px 8px}.credit-empty div{width:32px;height:32px;font-size:18px;margin-bottom:8px}.credit-empty p{margin:6px 0 0}.credit-footnote{margin-top:12px;padding-top:10px}.limit-grid{grid-template-columns:minmax(0,1fr)}.limit-periods{grid-template-columns:repeat(3,minmax(0,1fr))}
.archived-all{display:flex;flex-direction:column;gap:0;padding:12px 24px}.archived-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr) auto auto;align-items:center;gap:14px;text-align:left;border:0;border-bottom:1px solid var(--line);padding:14px 0;background:#fff;color:var(--ink)}.archived-row:last-child{border-bottom:0}.archived-row small,.archived-row>span:last-child{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.archived-row strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archived-row:hover strong{color:var(--accent)}#archived-dialog .drawer{width:min(580px,90vw)}
@media(max-width:600px){.overview-tiles{grid-template-columns:1fr}.limit-periods{grid-template-columns:1fr}.archived-row{grid-template-columns:1fr auto;gap:8px}.archived-row strong{grid-column:1;grid-row:2}.archived-all{padding:12px 16px}}

.credit-section .section-heading{margin-bottom:12px}.credit-empty{padding:4px 8px}.credit-mini-title{padding-top:10px;margin-bottom:6px}#task-empty{padding:8px 10px}.archived-section{margin-top:12px;padding-top:12px}

html{scrollbar-gutter:stable}dialog{scrollbar-gutter:stable}.overview-tile{cursor:pointer}.overview-tile:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.overview-agents{max-height:180px;overflow-y:auto;scrollbar-gutter:stable;padding-right:6px}.overview-agent .balance-link{font-size:13px;white-space:nowrap}.overview-tasks>div{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#f5f7f6;border-radius:8px;font-size:12px}
#credit-dialog{height:min(760px,90vh);overflow:hidden}#credit-dialog[open]{display:flex;flex-direction:column}#credit-dialog .credit-dialog-head{flex:none}#credit-dialog .credit-trend-content{flex:1;min-height:0;scrollbar-gutter:stable}.trend-zero-inactive{visibility:hidden;pointer-events:none}.credit-history-table{max-height:none}.table-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px;font-size:11px;color:var(--muted);white-space:nowrap}.table-pagination[hidden],tr[hidden]{display:none}.table-pagination button{border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:6px 10px}.table-pagination button:disabled{opacity:.4;cursor:default}
.archived-all{display:block}.archived-all table{min-width:0}.archived-all td:first-child{width:100%;white-space:normal}.archived-all .task-primary{max-width:none;width:100%}.archived-all .task-primary strong{white-space:normal;overflow-wrap:anywhere;line-height:1.5}.archived-all .task-id{overflow-wrap:anywhere}.archived-all td{padding:12px 8px}.archived-all th{padding:0 8px}
.limit-grid{gap:12px}.limit-card{padding:14px 16px}.limit-card-head{padding-bottom:10px;align-items:center}.limit-settings{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.limit-settings input,.limit-settings select{padding:6px 8px}.limit-periods{gap:8px}.limit-period{padding:8px 10px}.limit-amount{margin:6px 0}.limit-card-foot{margin-top:10px}.limit-card-foot small{font-size:10px}.limit-feedback{margin-top:8px}@media(max-width:600px){.limit-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.table-pagination{gap:6px;padding:10px 4px}.table-pagination button{padding:6px}.overview-agents{max-height:150px}}

.overview-tile{padding:20px 22px;background:linear-gradient(135deg,#fff,#fafbfd);border:1px solid var(--line)}.overview-tile:hover{transform:none;border-color:#cfd9d4;box-shadow:0 6px 22px #17212d0a}.tile-heading{font-size:19px;letter-spacing:-.7px;margin-bottom:14px}.tile-heading:hover{color:var(--ink)}.tile-heading small{font-size:11px;background:#f0f4f2;border-radius:7px;padding:5px 8px;color:#7f8a96}.overview-agent{font-size:12px;padding:10px 0;align-items:center;border-bottom:1px solid #edf1ef}.overview-agent:last-child{border-bottom:0}.overview-agent>span{font-weight:600;min-width:0;overflow-wrap:anywhere}.overview-agent .balance-link{font-size:12px;font-weight:700}.overview-tasks{gap:10px}.overview-tasks>div{padding:12px 14px;border:1px solid #e9eeeb;border-radius:10px;background:#f8faf9;align-items:center;font-size:11px;color:#7f8a96}.overview-tasks strong{font-size:20px;letter-spacing:-.5px;color:var(--ink)}
#credit-dialog .credit-trend-content.table-view{display:flex;flex-direction:column;overflow:hidden} .table-view .trend-controls,.table-view .trend-summary,.table-view .trend-note{flex:none}.table-view .trend-controls{margin-bottom:12px}.table-view .credit-history-table{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}.credit-linked-task{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px}.credit-task-link{font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:var(--accent)}.credit-history-table td:last-child{min-width:150px;max-width:250px;white-space:normal}#credit-dialog .drawer{width:min(580px,90vw)}

.overview-agent>span,.overview-tasks>div,.overview-tasks strong,.overview-agent .balance-link,.overview-agent small,.tile-heading small{color:var(--ink)}.overview-agent>span{font-weight:600}.overview-agent .balance-link:hover{color:var(--ink)}
#publish-dialog .check-line{cursor:pointer;border-radius:7px;transition:background .15s,box-shadow .15s;color:var(--ink)}#publish-dialog .check-line:hover{background:#f2f0ff;box-shadow:0 0 0 3px #ece8ff}#publish-dialog input[type=checkbox],#publish-dialog input[type=radio]{cursor:pointer;accent-color:var(--accent);transition:box-shadow .15s}#publish-dialog input[type=checkbox]:hover,#publish-dialog input[type=radio]:hover{box-shadow:0 0 0 4px #e8e3ff}#publish-dialog .check-line:focus-within{outline:2px solid #c7bff0;outline-offset:2px}
.trend-dot.task-dot{stroke:#e09b38;fill:#fff0d6}.trend-dot.task-dot:hover,.trend-dot.task-dot:focus{stroke:#bd7d20;fill:#e09b38}
#credit-dialog .credit-trend-content{display:flex;flex-direction:column;gap:8px;overflow:hidden;padding:14px 20px}#credit-dialog .trend-controls{flex:none;margin:0;padding:10px;gap:8px}#credit-dialog .trend-summary{flex:none;margin:0;gap:16px}#credit-dialog .credit-chart{flex:1;min-height:60px;height:0}#credit-dialog .credit-point-detail{flex:none;padding:10px;gap:8px;min-height:0}#credit-dialog .credit-point-detail>div{gap:4px}#credit-dialog .credit-point-detail strong{font-size:12px}#credit-dialog .credit-point-detail small{font-size:10px}#credit-dialog .credit-linked-task{padding-top:6px}#credit-dialog .trend-note{flex:none;margin:0;font-size:10px}.credit-task-filter{flex:none;font-size:12px;margin:2px 0;color:var(--ink)}
#credit-dialog .table-view .credit-history-table{flex:1;min-height:0;overflow:hidden;scrollbar-gutter:auto}#credit-dialog .credit-history-table table{table-layout:fixed;min-width:0;width:100%}#credit-dialog .credit-history-table th{height:32px;padding:6px;font-size:10px}#credit-dialog .credit-history-table td{height:42px;padding:6px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#credit-dialog .credit-history-table td:last-child{min-width:0;max-width:none}#credit-dialog .credit-history-table .credit-task-link{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.4}#credit-dialog .credit-pagination{flex:none;padding:6px 0;justify-content:center}.table-view .trend-zero-inactive{display:none}@media(max-width:600px){#credit-dialog .credit-point-detail{grid-template-columns:repeat(3,minmax(0,1fr))}#credit-dialog .trend-controls>label{flex:1 1 100px}#credit-dialog .trend-controls input,#credit-dialog .trend-controls select{padding:5px;font-size:10px}#credit-dialog .credit-trend-content{padding:10px}.credit-task-filter{font-size:11px}}

.task-point-legend{color:#bd7d20}

.overview-agent>span{color:#66727f;font-size:11px;font-weight:700}.overview-agent .balance-link{color:#6655db;font-size:11px;font-weight:800}.overview-agent .balance-link:hover{color:#4939ba}.overview-agent small{color:#6655db}.overview-tasks>div{color:#687a70;font-size:12px;font-weight:700;background:#f5f7f5}.overview-tasks strong{color:#687a70;background:#e4ece6;border-radius:4px;padding:2px 7px;font-size:12px;letter-spacing:normal;font-weight:700}
#archived-dialog{height:min(760px,90vh);overflow:hidden}#archived-dialog[open]{display:flex;flex-direction:column}#archived-dialog .credit-dialog-head{flex:none}.archived-search-bar{flex:none;padding:14px 20px 0}.archived-all{flex:1;min-height:0;max-height:none;display:flex;flex-direction:column;padding:12px 20px;overflow:hidden;gap:10px}.archived-table-area{flex:1;min-height:0;overflow:hidden}.archived-all table{table-layout:fixed;width:100%;min-width:0}.archived-all th:first-child{width:75%}.archived-all th:last-child{width:35px}.archived-all th{height:32px}.archived-all td{height:62px;padding:8px;font-size:10px}.archived-all .task-primary strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.4}.archived-all .task-id{font-size:9px}.archived-pagination{flex:none;justify-content:center;padding:6px 0}@media(max-width:600px){.archived-all{padding:10px}.archived-search-bar{padding:10px 10px 0}.archived-all th:first-child{width:65%}.archived-all td{height:60px}}

.check-line,label:has(>input[type="checkbox"]):not(.limit-switch),label:has(>input[type="radio"]):not(.limit-switch){width:fit-content;max-width:100%;cursor:pointer;border-radius:7px;transition:background .15s,box-shadow .15s}.check-line:hover,label:has(>input[type="checkbox"]):not(.limit-switch):hover,label:has(>input[type="radio"]):not(.limit-switch):hover{background:#f2f0ff;box-shadow:0 0 0 3px #ece8ff}.check-line:focus-within{outline:2px solid #c7bff0;outline-offset:2px}input[type="checkbox"],input[type="radio"]{cursor:pointer;accent-color:var(--accent)}.limit-switch:hover>span{box-shadow:0 0 0 3px #ece8ff;filter:brightness(.96)}.page-jump{display:inline-flex;align-items:center;gap:4px;font-size:11px;white-space:nowrap}.page-jump select{padding:4px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit}.credit-pagination,.archived-pagination{gap:8px;flex-wrap:wrap}#credit-dialog .credit-history-table td{height:32px;padding:5px 6px}#credit-dialog .credit-history-table .credit-task-link{-webkit-line-clamp:1;line-height:1.5}#credit-dialog .credit-history-table th{height:28px}@media(max-width:600px){.table-pagination{gap:5px;font-size:10px}.page-jump{font-size:10px}}

/* Reserve identical point-detail space for samples with and without a task. */
#credit-dialog .credit-point-detail{height:164px;min-height:164px;max-height:164px;grid-template-rows:76px 58px;align-content:start;overflow:hidden}
#credit-dialog .credit-point-detail>div{overflow:hidden}
#credit-dialog .credit-point-detail strong,#credit-dialog .credit-point-detail small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#credit-dialog .credit-linked-task{margin:0;padding-top:6px}
#credit-dialog .credit-linked-task .credit-task-link{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;text-overflow:ellipsis}
.agent-description .description-pencil{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;border:0;background:transparent;color:inherit;font-size:13px;padding:2px 4px;border-radius:4px;vertical-align:middle}.description-pencil:hover{background:#f2f0ff}.description-pencil:focus-visible{outline:2px solid #c7bff0}.credit-chart{touch-action:pan-y;user-select:none;cursor:crosshair}.credit-range-selection{fill:#6b5ce722;stroke:#6b5ce7;stroke-width:1;pointer-events:none}.agent-option-status{font-size:10px;color:#7f8a96}.agent-options .check-line{flex-wrap:wrap}

/* Keep scrollable dialog content centered and chart geometry stable. */
dialog,dialog .credit-trend-content,dialog .credit-history-table,dialog .markdown-preview{scrollbar-gutter:stable both-edges}
#credit-dialog .credit-trend-content{overflow-y:auto}
#credit-dialog .credit-chart{flex:none;height:250px;min-height:250px}
.text-hover strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}

/* Shared card affordance: match archived tasks without moving the card. */
:root{--card-hover-border:var(--accent)}
:is(.overview-tile,.attention-card,.board-task,.archived-task,.agent-card):hover{border-color:var(--card-hover-border);transform:none;box-shadow:none}
:is(.overview-tile,.attention-card,.board-task,.archived-task,.agent-card){transition:border-color .15s}
.content .intro h1,.content .section-heading h2{font-size:19px;font-weight:800;line-height:1.4;letter-spacing:-.7px;margin:0;color:var(--ink)}
.content .section{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.content .section-heading{margin-bottom:19px}
.content .intro{margin-bottom:19px}
.content .overview-tiles,.content .agent-table-wrap{margin-bottom:0}
/* Fixed tracks keep the view selector and chart independent of label lengths. */
#credit-dialog .credit-trend-content{overflow:hidden;overscroll-behavior:contain}
#credit-dialog .trend-controls{height:92px;overflow:auto;overscroll-behavior:contain}
#credit-dialog .trend-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 154px minmax(0,1fr);height:56px;align-items:center;gap:12px}
#credit-dialog .trend-summary>div{min-width:0}
#credit-dialog .trend-summary strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#credit-dialog .credit-view-toggle{grid-column:3;justify-self:center;width:154px;justify-content:center}
#credit-dialog .credit-view-toggle button{padding:7px 12px;white-space:nowrap}
#credit-dialog .trend-series-label{margin-left:0;min-width:0;overflow:hidden;justify-self:end;white-space:nowrap}
#credit-dialog .trend-series-label select{min-width:0;max-width:100%}
#credit-dialog .credit-chart{flex:1;min-height:0;height:0}
#credit-dialog .trend-note{height:32px;overflow:hidden;line-height:16px}
#credit-dialog .credit-history-table,.archived-table-area{overflow:auto;overscroll-behavior:contain}
:is(dialog,.table-wrap,.agent-table-wrap,.archived-all,.markdown-preview){overscroll-behavior:contain}
.agent-description .description-pencil{padding:0;margin-left:6px;vertical-align:bottom;line-height:1;height:14px}
.description-pencil svg{display:block}
@media(max-width:600px){#credit-dialog .trend-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 130px;gap:6px;height:72px}#credit-dialog .credit-view-toggle{width:130px}#credit-dialog .credit-view-toggle button{padding:7px 8px}#credit-dialog .trend-series-label{grid-column:1/-1;justify-self:end}#credit-dialog .trend-controls{height:116px}}


.board-lane{border:1px solid transparent;transition:border-color .15s}
.overview-tasks>div{transition:border-color .15s}
#credit-dialog .trend-controls{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,1fr) 90px;height:76px;overflow:hidden;align-items:center}
#credit-dialog .trend-controls input[type=datetime-local],#credit-dialog .trend-controls select{width:100%;min-width:0}
@media(max-width:720px){#credit-dialog .trend-controls{grid-template-columns:repeat(2,minmax(0,1fr));height:132px;gap:6px}#credit-dialog .trend-controls .trend-zero{margin-left:0;justify-items:start}}

/* Modal wheel gestures must never scroll the page behind the dialog. */
html:has(dialog[open]){overflow:hidden}

/* Agent options each occupy their own row, including manually entered IDs. */
#agent-options{display:flex;flex-direction:column;align-items:stretch;gap:8px}
#agent-options>.check-line,#agent-options>.form-field{width:100%;min-width:0;flex:none}
.publish-preview pre{max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere}
/* Reserve numeric space so changing counts cannot move adjacent controls. */
.trend-sample-count{display:inline-block;width:4ch;text-align:right;font-variant-numeric:tabular-nums}
.table-pagination{display:grid;grid-template-columns:64px 210px 90px 64px;justify-content:center;align-items:center;gap:8px}
.table-pagination>span{width:210px;text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap}
.table-pagination>button{width:64px}
.table-pagination .page-jump{width:90px;justify-content:center}
.table-pagination .page-jump select{width:44px;font-variant-numeric:tabular-nums}
@media(max-width:540px){.table-pagination{grid-template-columns:60px minmax(0,210px) 60px;gap:6px}.table-pagination>span{width:100%;font-size:10px}.table-pagination>button{width:60px}.table-pagination>button:last-child{grid-column:3;grid-row:1}.table-pagination .page-jump{grid-column:2;grid-row:2;justify-self:center}}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f7f6}.login-card{width:min(400px,100%);padding:32px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 40px #17212d0b}.login-card h1{font-size:25px;margin:12px 0}.login-card>p{font-size:13px;color:#7a8792;margin-bottom:24px}.login-form{display:grid;gap:18px}.login-form .primary-button{padding:12px}.web-account{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:12px 30px 0;font-size:12px;color:#7a8792}.web-account button[hidden]{display:none}body[data-web-role="viewer"] #open-publish,body[data-web-role="viewer"] [data-rework],body[data-web-role="viewer"] #publish-dialog{display:none}body[data-web-role="viewer"] [data-accept],body[data-web-role="viewer"] [data-cancel],body[data-web-role="viewer"] [data-delete],body[data-web-role="viewer"] [data-hide-agent],body[data-web-role="viewer"] [data-edit-description],body[data-web-role="editor"] [data-accept],body[data-web-role="editor"] [data-cancel],body[data-web-role="editor"] [data-delete],body[data-web-role="editor"] [data-hide-agent],body[data-web-role="editor"] [data-edit-description],body[data-web-role="viewer"] .limit-card-foot button,body[data-web-role="editor"] .limit-card-foot button{display:none}body[data-web-role="viewer"] .limit-card input,body[data-web-role="viewer"] .limit-card select,body[data-web-role="editor"] .limit-card input,body[data-web-role="editor"] .limit-card select{pointer-events:none;opacity:.65}

/* Give provider lists room, keeping the task summary compact. */
.overview-tiles{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.overview-agents{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.overview-agent-column{min-width:0}

/* Vertical wheel gestures over page tables continue scrolling the main page. */
.agent-table-wrap,.table-wrap{overscroll-behavior-y:auto}
#credit-dialog .credit-view-toggle{padding:4px;gap:4px}
#credit-dialog .credit-view-toggle button{flex:1;min-width:0;padding:7px 0}
@media(max-width:780px){.overview-tiles{grid-template-columns:1fr}.overview-agents{gap:12px}}

/* Section titles share the page divider, with cards only around their contents. */
.content .lower-grid{border:0;margin:0;padding:0}
.content .lower-grid>.section{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.overview-tiles{grid-template-columns:minmax(0,2.2fr) minmax(240px,1fr)}
.overview-agent{gap:10px}
.overview-agent>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.overview-agent .balance-link{flex:none;white-space:nowrap}
/* The series selector has its own row, including the single-series label. */
#credit-dialog .trend-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 154px;grid-template-rows:44px 30px;height:82px;gap:8px 12px}
#credit-dialog .trend-series-label{grid-column:1/-1;grid-row:2;justify-self:end;max-width:100%;height:30px;white-space:normal}
#credit-dialog .trend-series-label select{max-width:260px;flex:1;min-width:0}
/* Keep every Agent field within the available page width. */
.agent-table-wrap{overflow-x:hidden}
.agent-table{min-width:0;table-layout:fixed;width:100%}
.agent-table th:nth-child(1){width:22%}.agent-table th:nth-child(2){width:10%}.agent-table th:nth-child(3){width:8%}.agent-table th:nth-child(4){width:8%}.agent-table th:nth-child(5){width:8%}.agent-table th:nth-child(6){width:8%}.agent-table th:nth-child(7){width:9%}.agent-table th:nth-child(8){width:7%}.agent-table th:nth-child(9){width:12%}.agent-table th:nth-child(10){width:8%}
.agent-table th,.agent-table td{padding:12px 6px;overflow:hidden;text-overflow:ellipsis}
.agent-table .agent-sort{white-space:normal;gap:3px;font-size:10px}
.agent-table .agent-table-identity{min-width:0;gap:6px}
.agent-table-identity>div{min-width:0;flex:1}
.agent-table .agent-table-identity strong,.agent-table td>span:not(.presence),.agent-table .task-link,.agent-table .balance-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-table .agent-table-identity small{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.agent-table .agent-sort span{flex:none}
@media(max-width:1000px){
  .overview-tiles{grid-template-columns:1fr}
  .agent-table thead tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
  .agent-table thead th{width:auto!important;text-align:left;height:auto;padding:8px}
  .agent-table tbody tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 0;border-bottom:1px solid var(--line)}
  .agent-table td{display:block;border:0;padding:6px 8px;min-width:0;white-space:normal}
  .agent-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:9px;margin-bottom:6px}
  .agent-table .presence{white-space:normal}
  .agent-table .agent-table-identity .avatar{display:none}
}
@media(max-width:600px){
  .agent-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agent-table thead tr{grid-template-columns:repeat(3,minmax(0,1fr))}
  #credit-dialog .trend-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 130px;gap:8px 6px}
}
.agent-table .agent-description{display:flex!important;align-items:center;gap:4px}
.agent-table .agent-description>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-table .description-pencil{flex:none}
.overview-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}
.overview-tasks>div{padding:10px;white-space:nowrap}
/* Chart/table options share one row between the summary and the visual. */
#credit-dialog .trend-controls{grid-template-columns:110px minmax(0,1fr) minmax(0,1fr)}
#credit-dialog .trend-summary{grid-template-rows:44px;height:44px}
.credit-display-options{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin:2px 0}
#credit-dialog .credit-display-options .trend-zero{display:inline-flex;flex-direction:row;align-items:center;gap:8px;margin:0;white-space:nowrap;font-size:12px;color:var(--ink)}
#credit-dialog .credit-display-options .credit-task-filter{margin:0;white-space:nowrap}
#credit-dialog .credit-display-options .trend-series-label{display:flex;align-items:center;margin:0 0 0 auto;min-width:0;flex:0 1 auto;max-width:55%;height:auto;white-space:nowrap}
#credit-dialog .credit-display-options .trend-series-label select{width:auto;min-width:0;max-width:260px;flex:1}
@media(max-width:720px){#credit-dialog .trend-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.credit-display-options{gap:8px}#credit-dialog .credit-display-options .trend-zero,#credit-dialog .credit-display-options .credit-task-filter{font-size:10px}#credit-dialog .credit-display-options .trend-series-label{gap:4px;font-size:10px;max-width:50%}#credit-dialog .credit-display-options .trend-series-label select{padding:5px;font-size:10px}}
/* Separate the client columns and align each balance at the right edge. */
.overview-agents{align-items:stretch}
.overview-agent{justify-content:space-between;gap:6px}
.overview-agent-column+.overview-agent-column{border-left:1px solid #dce3e8;padding-left:18px}

.agent-table .agent-description{gap:2px}
.agent-table .agent-description>span{flex:0 1 auto}
.agent-table .agent-description .description-pencil{margin-left:0}
.section-actions{display:flex;align-items:center;gap:10px}
.section-toggle{border:1px solid var(--line);border-radius:7px;background:#fff;color:#66727f;font-size:11px;font-weight:700;padding:7px 10px;white-space:nowrap}
.section-toggle:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:600px){.overview-agent-column+.overview-agent-column{padding-left:10px}.section-actions{gap:6px}}

#credit-dialog .credit-display-options .trend-zero{cursor:pointer}

/* Keep publisher agent details aligned without widening the dialog. */
#agent-options .publish-agent-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:11px;background:#fff}
.publish-agent-table col{width:23%}
.publish-agent-table .publish-agent-name{width:35%}
.publish-agent-table .publish-agent-model{width:25%}
.publish-agent-table .publish-agent-balance{width:17%}
#agent-options .publish-agent-table th,#agent-options .publish-agent-table td{padding:10px 6px;border-bottom:1px solid var(--line);text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
#agent-options .publish-agent-table th{font-size:10px;color:#566371;background:#f8f9fb;font-weight:800}
#agent-options .publish-agent-table .publish-agent-credit{text-align:right;font-variant-numeric:tabular-nums}
.publish-agent-choice{display:flex;align-items:center;gap:7px;cursor:pointer;min-width:0}
.publish-agent-choice input{flex:none;margin:0}
.publish-agent-choice span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.publish-agent-table tbody tr:hover{background:#f5f3ff}
.publish-agent-choice:focus-within{outline:2px solid #c7bff0;outline-offset:2px;border-radius:3px}
#agent-options .publish-agent-empty{color:var(--muted);text-align:center}
@media(max-width:480px){#agent-options .publish-agent-table th,#agent-options .publish-agent-table td{padding:8px 3px;font-size:10px}.publish-agent-choice{gap:4px}}

.table-sort{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;border:0;background:none;padding:0;color:inherit;font:inherit;font-weight:inherit;text-align:inherit;cursor:pointer}
.table-sort span{flex:none;font-size:9px;color:#a6aeb8}
th[data-table-sort],th[data-agent-sort]{cursor:pointer}
th[aria-sort="ascending"] .table-sort,th[aria-sort="descending"] .table-sort,.table-sort:hover{color:var(--accent)}
.table-sort:focus-visible{outline:2px solid #c7bff0;outline-offset:3px;border-radius:3px}
.publish-agent-table th:last-child .table-sort{justify-content:flex-end}

#agent-options .publish-agent-table .publish-agent-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.text-hover strong{white-space:pre-line}

/* Agent selection details follow the heartbeat card's labels and dividers. */
.agent-detail-hover{width:min(420px,calc(100vw - 16px));gap:12px;padding:18px}
.agent-detail-hover .agent-hover-heading{display:flex;align-items:center;gap:11px}
.agent-hover-heading .avatar{flex:none;width:36px;height:36px;font-size:12px}
.agent-hover-heading>div{display:grid;gap:3px;min-width:0}
.agent-hover-heading strong{font-size:15px;overflow-wrap:anywhere}
.agent-detail-hover .agent-hover-description strong{font-size:12px;font-weight:500;white-space:pre-line}
.agent-hover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0;padding:12px 0;border-top:1px solid var(--line)}
.agent-hover-field{min-width:0;display:grid;gap:4px;align-content:start}
.agent-hover-field dt{font-size:11px;line-height:1.5;color:#82909c}
.agent-hover-field dd{margin:0;font-size:12px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.agent-hover-wide{grid-column:1/-1}
.agent-detail-hover .agent-hover-expiry{border-top:1px solid var(--line);padding-top:10px;gap:3px}
@media(max-height:700px){.agent-detail-hover{padding:12px;gap:8px}.agent-hover-grid{gap:8px 12px;padding:8px 0}}
