:root{--blue:#4f78b0;--deep:#4c6090;--red:#c7475d;--green:#2f836d;--amber:#b77a18;--ink:#33445e;--muted:#68778c;--line:#dedfeb;--soft:#f8f6fb;--white:#fff;--pink:#a9577e;--pink-soft:#fff3f8;--blue-soft:#edf7ff;--lavender-soft:#f3f0ff;--shadow:0 10px 28px rgba(88,105,143,.09)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--soft);color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{color:inherit}.hidden{display:none!important}.shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}
.sidebar{height:100vh;overflow-y:auto;position:sticky;top:0;background:#103f60;color:#fff;padding:24px 16px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:12px;padding:0 9px 24px;border-bottom:1px solid rgba(255,255,255,.12)}.brand>span{width:46px;height:34px;display:grid;place-items:center;border-radius:8px;background:#fff;color:var(--blue);font-weight:900}.brand strong,.brand small{display:block}.brand strong{font-size:15px}.brand small{font-size:9px;color:#a9c8dc;margin-top:3px;letter-spacing:.12em}.sidebar nav{margin-top:20px}.sidebar nav>p{margin:0 11px 8px;font-size:10px;letter-spacing:.12em;color:#81abc4}.sidebar nav button{width:100%;border:0;background:transparent;color:#c7dce8;display:flex;align-items:center;gap:11px;border-radius:9px;padding:9px 10px;margin:2px 0;cursor:pointer;text-align:left;font-size:13px}.sidebar nav button:hover{background:rgba(255,255,255,.08);color:#fff}.sidebar nav button.active{background:#fff;color:#0d5c91;font-weight:700}.sidebar nav button i{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:rgba(255,255,255,.09);font-size:11px;font-style:normal}.sidebar nav button.active i{background:#e5f2fa}.sidebar nav button b{margin-left:auto;background:var(--red);color:#fff;border-radius:10px;min-width:18px;height:18px;display:grid;place-items:center;font-size:10px}.identity{margin-top:auto;padding:16px 7px 0;border-top:1px solid rgba(255,255,255,.12);display:flex;align-items:center;gap:10px}.identity>span{width:34px;height:34px;border-radius:50%;background:#d7ecfa;color:#0c5f99;display:grid;place-items:center;font-weight:800}.identity strong,.identity small{display:block}.identity strong{font-size:12px}.identity small{font-size:10px;color:#87aec6;margin-top:3px}
.main{min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;position:sticky;top:0;z-index:4;gap:18px}.search{width:min(490px,48vw);height:39px;border:1px solid #d6e1e9;background:#f8fafc;border-radius:9px;display:flex;align-items:center;padding:0 12px;gap:9px;color:#8ba0b1}.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:12px;color:var(--ink)}.search kbd{background:#fff;border:1px solid #dce5eb;border-radius:5px;padding:2px 7px;font-size:9px}.connection{margin-left:auto;display:flex;align-items:center;gap:7px;color:#738897;font-size:10px}.connection i{width:7px;height:7px;border-radius:50%;background:var(--amber)}.connection i.ok{background:var(--green)}.connection i.error{background:var(--red)}.connection em{font-style:normal}.primary,.secondary,.danger{border-radius:9px;padding:10px 15px;font-size:11px;font-weight:700;cursor:pointer}.primary{border:0;background:var(--blue);color:#fff;box-shadow:0 5px 14px rgba(0,104,184,.18)}.secondary{border:1px solid #cfdae2;background:#fff;color:#496779}.danger{border:1px solid #efc6ca;background:#fff6f7;color:#b80f1d}.page{max-width:1480px;margin:0 auto;padding:31px 34px 50px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-heading h1{font-size:27px;letter-spacing:-.03em;margin:0 0 5px;color:#163f5c}.page-heading p{margin:0;color:var(--muted);font-size:12px}.eyebrow{color:var(--blue)!important;text-transform:uppercase;letter-spacing:.12em;font-size:10px!important;font-weight:800;margin:0 0 6px!important}.heading-actions,.row-actions,.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.badge{background:#e8f3fa;color:#0a679f;border:1px solid #cbe4f3;border-radius:20px;padding:7px 12px;font-size:10px;font-weight:700}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px 18px;box-shadow:var(--shadow);position:relative;overflow:hidden}.metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue)}.metric.red:before{background:var(--red)}.metric.green:before{background:var(--green)}.metric.amber:before{background:var(--amber)}.metric span{font-size:11px;color:#62788a}.metric strong{display:block;font-size:28px;line-height:1;margin:13px 0 8px;color:#173f5c}.metric p{font-size:10px;color:#8a9ba8;margin:0}.layout-two{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:16px;margin-bottom:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.panel-title{padding:17px 19px;border-bottom:1px solid #e8eef3;display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-title h2{font-size:14px;margin:0 0 4px}.panel-title p{font-size:10px;color:#8598a6;margin:0}.text-button{border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:700;cursor:pointer}.section-note{background:#edf6fb;border:1px solid #cfe4f1;border-radius:10px;padding:12px 14px;font-size:10px;line-height:1.7;color:#426a83;margin-bottom:15px}.guardrail{border-left:3px solid var(--red);background:#fff6f7;color:#72434a}
.empty{padding:44px 22px;text-align:center}.empty i{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;margin:0 auto 12px;background:#e9f4fb;color:var(--blue);font-style:normal;font-weight:800}.empty h3{font-size:13px;margin:0 0 6px}.empty p{font-size:10px;color:#8799a6;margin:0 0 14px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th{background:#f8fafb;color:#8395a2;font-size:9px;text-align:left;padding:10px 13px;border-bottom:1px solid #e6edf2;white-space:nowrap}.data-table td{padding:11px 13px;border-bottom:1px solid #edf1f4;font-size:10px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f8fbfd}.data-table strong{font-size:11px;color:#27485f}.data-table small{display:block;color:#91a0aa;font-size:8px;margin-top:3px}.row-actions button{border:1px solid #d8e3ea;background:#fff;border-radius:6px;padding:5px 7px;color:#45687e;font-size:9px;cursor:pointer}.pill{display:inline-flex;align-items:center;border-radius:12px;padding:4px 8px;font-size:9px;font-weight:700;white-space:nowrap}.pill.blue{background:#e5f2fa;color:#0068b8}.pill.red{background:#fde9eb;color:#c20f1e}.pill.green{background:#e3f4ed;color:#087555}.pill.amber{background:#fff4d8;color:#9e7110}.pill.gray{background:#edf1f4;color:#6f808c}.card-list{display:grid;gap:10px;padding:15px}.record-card{border:1px solid #e2e9ee;border-radius:10px;padding:13px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.record-card h3{font-size:12px;margin:0 0 6px}.record-card p{font-size:9px;color:#7f919e;line-height:1.6;margin:0}.record-card footer{display:flex;align-items:center;gap:5px}.filters select,.filters input{height:34px;border:1px solid #d5e0e7;border-radius:8px;background:#fff;padding:0 10px;color:#4a6577;font-size:10px}.copy-box{white-space:pre-wrap;background:#f6f9fb;border:1px solid #dce6ec;border-radius:9px;padding:15px;font-size:11px;line-height:1.8;color:#36586e;min-height:300px}.activity-list{padding:4px 16px}.activity-list li{list-style:none;padding:10px 0;border-bottom:1px solid #edf1f4;font-size:9px;color:#718492}.activity-list b{color:#3a5b70}.activity-list time{float:right;color:#9cabb5}
.module-tabs{display:flex;gap:4px;margin-bottom:13px;border-bottom:1px solid #dbe5eb;overflow:auto}
.module-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 15px;color:#718695;font-size:10px;cursor:pointer;white-space:nowrap}
.module-tabs button.active{color:var(--blue);border-color:var(--blue);font-weight:800}
.module-tabs small{margin-left:5px;padding:2px 5px;border-radius:8px;background:#edf1f4;color:#758693;font-size:8px}
.module-tabs .active small,.module-tabs small.p0{background:#e5f2fa;color:var(--blue)}
.back{border:0;background:transparent;color:#6f8797;font-size:10px;padding:0;margin-bottom:16px;cursor:pointer}
.flow{display:flex;align-items:center;justify-content:center;gap:13px;padding:24px;margin:28px;background:#eef6fb;border:1px dashed #b8d6e8;border-radius:12px;color:#316985;font-size:11px}
.flow span{background:#fff;padding:9px 13px;border-radius:8px;border:1px solid #d7e6ef;font-weight:700}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 28px 28px}
.cards article{border:1px solid #e0e8ee;border-radius:11px;padding:20px}
.cards small{font-size:9px;color:var(--blue);font-weight:800}
.cards strong{display:block;margin:10px 0 7px}
.cards p{font-size:10px;line-height:1.7;color:#7c8f9d;margin:0}
.roadmap{padding:44px 28px;text-align:center}
.roadmap .roadmap-icon{width:54px;height:54px;margin:0 auto 14px;border-radius:15px;display:grid;place-items:center;background:#eef3f6;color:#6f8797;font-weight:800}
.roadmap h3{margin:0 0 8px;font-size:15px}
.roadmap p{max-width:620px;margin:0 auto;color:#7c8f9d;font-size:11px;line-height:1.8}
.calendar-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}
.day-card{border:1px solid #dfe8ef;border-radius:11px;overflow:hidden;background:#fff}
.day-card header{padding:10px 12px;background:#f6f9fb;border-bottom:1px solid #e5edf2;display:flex;justify-content:space-between;align-items:center}
.day-card header strong{font-size:11px}
.day-card header small{font-size:9px;color:#8294a1}
.day-card ul{list-style:none;padding:6px 12px;margin:0}
.day-card li{padding:9px 0;border-bottom:1px solid #edf1f4;font-size:10px}
.day-card li:last-child{border-bottom:0}
.day-card li small{display:block;color:#8b9ca8;margin-top:4px}
.progress-line{display:block;width:90px;height:6px;border:0;border-radius:4px;background:#e7edf1;overflow:hidden;appearance:none}
.progress-line::-webkit-progress-bar{background:#e7edf1}
.progress-line::-webkit-progress-value{background:var(--blue)}
.progress-line::-moz-progress-bar{background:var(--blue)}
.full{width:calc(100% - 32px);margin:12px 16px;border:0;border-radius:8px;background:#edf6fb;color:#0768a5;padding:9px;font-size:10px;font-weight:700;cursor:pointer}.list button{width:100%;border:0;border-bottom:1px solid #edf1f4;background:#fff;display:flex;align-items:center;gap:10px;padding:10px 2px;text-align:left;cursor:pointer}.list button:hover{background:#f8fbfd}.check{width:14px;height:14px;border:1.5px solid #b7c7d2;border-radius:4px}.list .copy{flex:1;min-width:0}.list b,.list small{display:block}.list b{font-size:10px}.list small{font-size:8px;color:#8b9ca8;margin-top:3px}.record-card footer button,.data-table td>button{border:1px solid #d8e3ea;background:#fff;border-radius:6px;padding:6px 8px;color:#45687e;font-size:9px;cursor:pointer}
.modal-backdrop{position:fixed;inset:0;background:rgba(12,40,58,.42);display:grid;place-items:center;padding:24px;z-index:20;backdrop-filter:blur(2px)}.modal{width:min(760px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:15px;box-shadow:0 25px 70px rgba(8,32,48,.28)}.modal>header{position:sticky;top:0;background:#fff;z-index:1;padding:20px 22px 15px;border-bottom:1px solid #e5edf2;display:flex;justify-content:space-between}.modal>header p{color:var(--blue);letter-spacing:.12em;font-size:9px;font-weight:800;margin:0 0 5px}.modal>header h2{font-size:19px;margin:0}.modal>header button{border:0;background:#eef3f6;width:30px;height:30px;border-radius:8px;font-size:19px;color:#6e8290;cursor:pointer}.form-grid{padding:20px 22px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field>span{font-size:10px;font-weight:700;color:#4a6577}.field>span em{color:var(--red);font-style:normal}.field input,.field select,.field textarea{width:100%;border:1px solid #cfdae2;border-radius:8px;padding:9px 10px;font-size:11px;color:#294b61;background:#fff;outline:0}.field textarea{min-height:90px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#74b4dc;box-shadow:0 0 0 3px #dceffa}.modal form>footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5edf2;padding:14px 22px;display:flex;justify-content:flex-end;gap:8px}.toast{position:fixed;right:28px;bottom:26px;background:#153f5d;color:#fff;border-radius:10px;padding:12px 17px;font-size:11px;box-shadow:0 14px 35px rgba(10,40,60,.25);z-index:30}.toast.error{background:#9f1823}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.layout-two{grid-template-columns:1fr}.data-table{min-width:760px}.cards{grid-template-columns:1fr}.calendar-list{grid-template-columns:1fr 1fr}}@media(max-width:760px){.shell{grid-template-columns:64px minmax(0,1fr)}.sidebar{padding:18px 8px}.brand{padding:0 1px 18px}.brand div,.sidebar nav>p,.sidebar nav button span,.sidebar nav button b,.identity div{display:none}.sidebar nav button{justify-content:center;padding:8px}.identity{justify-content:center}.topbar{padding:0 15px}.search{width:calc(100% - 54px)}.connection{display:none}.topbar>.primary{width:38px;height:38px;padding:0;font-size:0}.topbar>.primary:after{content:"+";font-size:18px}.page{padding:24px 16px}.metrics{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.calendar-list{grid-template-columns:1fr}}@media(max-width:480px){.metrics{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}}

/* Workbench v0.2 workflow components */
.footer-spacer{flex:1}.row-actions button:disabled{opacity:.42;cursor:not-allowed}.task-progress{font-size:9px;font-weight:800;color:var(--blue);min-width:34px;text-align:right}.full-field{grid-column:1/-1}.static-value{min-height:37px;border:1px solid #d8e3ea;border-radius:8px;background:#f5f8fa;padding:10px;color:#4d6b7e;font-size:11px}.channel-options{display:flex;flex-wrap:wrap;gap:8px}.channel-options label{display:block}.channel-options input{position:absolute;opacity:0;pointer-events:none}.channel-options span{display:block;border:1px solid #d2dee6;border-radius:18px;background:#fff;padding:7px 11px;font-size:10px;color:#587184;cursor:pointer}.channel-options input:checked+span{background:#e5f2fa;border-color:#76b8df;color:#0068b8;font-weight:700}.channel-options input:focus-visible+span{outline:3px solid #dceffa;border-color:#74b4dc}
.row-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.row-actions .danger-action{border-color:#efc8cc;background:#fff;color:#b51f2b}.row-actions .danger-action:hover:not(:disabled){background:#fff1f2;border-color:#dc8790}.row-actions button:focus-visible{outline:3px solid #dceffa;outline-offset:2px}
.todo-editor{border:1px solid #dce6ed;border-radius:11px;background:#f8fafb;padding:14px}.todo-editor-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px}.todo-editor-title strong,.todo-editor-title small{display:block}.todo-editor-title strong{font-size:12px}.todo-editor-title small{font-size:9px;color:#8395a2;margin-top:4px}.todo-row{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(145px,.7fr) minmax(125px,.55fr) auto;gap:9px;align-items:end;background:#fff;border:1px solid #e0e8ee;border-radius:9px;padding:11px;margin-top:8px}.todo-row label{display:flex;flex-direction:column;gap:5px}.todo-row label span{font-size:9px;font-weight:700;color:#557083}.todo-row em{color:var(--red);font-style:normal}.todo-row input{width:100%;height:36px;border:1px solid #cfdae2;border-radius:8px;padding:0 9px;font-size:10px;color:#294b61}.todo-row .danger{height:36px;padding:0 11px}
.detail-modal{width:min(980px,100%)}.view-body{padding:20px 22px 26px}.result-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:18px}.result-meta>span{border:1px solid #e0e8ee;border-radius:9px;background:#f8fafb;padding:10px;font-size:10px;color:#526f82}.result-meta b{display:block;color:#8798a4;font-size:8px;margin-bottom:4px}.result-section{margin-top:18px}.result-section h3{font-size:13px;margin:0 0 9px}.result-content{max-height:50vh;overflow:auto;min-height:180px}.empty-result{border:1px dashed #cbdbe5;border-radius:9px;background:#f8fbfd;color:#78909f;padding:28px;text-align:center;font-size:10px}.output-location{margin-top:9px;border:1px solid #dfe8ee;border-radius:8px;padding:10px;font-size:9px;color:#607b8d}.output-location b{display:block;margin-bottom:5px}.output-location code{display:block;white-space:pre-wrap;word-break:break-all}.output-location a{display:inline-block;margin-top:9px;border-radius:7px;background:#e5f2fa;color:#0068b8;padding:7px 10px;font-weight:700;text-decoration:none}.revision-history{display:grid;gap:9px}.revision-history article{border:1px solid #e0e8ee;border-radius:9px;padding:11px}.revision-history header{display:flex;align-items:center;justify-content:space-between}.revision-history time{font-size:8px;color:#92a2ad}.revision-history p{font-size:10px;line-height:1.7;margin:8px 0 0;white-space:pre-wrap}.revision-history small{display:block;color:#6f8797;margin-top:7px}.day-card li{cursor:pointer}.day-card li .progress-line{margin-top:7px;width:100%}
.row-actions .confirm-action{border-color:#9fd8c2;background:#e8f7f1;color:#087555}.row-actions .confirm-action:hover:not(:disabled){background:#d9f1e7}.view-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #e3eaef}.result-section>p{font-size:10px;line-height:1.7;color:#577184;white-space:pre-wrap}
@media(max-width:1100px){.todo-row{grid-template-columns:1fr 1fr}.todo-row>label:first-child{grid-column:1/-1}.result-meta{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.search{width:100%}.field.full,.full-field{grid-column:auto}.todo-row{grid-template-columns:1fr}.todo-row>label:first-child{grid-column:auto}.todo-editor-title{align-items:flex-start;flex-direction:column}.result-meta{grid-template-columns:1fr}}

/* Weekly report template */
.weekly-panel{background:#eef3f6}.weekly-panel>.panel-title{background:#fff}.weekly-sheet{width:min(860px,calc(100% - 40px));margin:28px auto 38px;padding:54px 62px 64px;background:#fff;border:1px solid #d7e2e9;box-shadow:0 12px 32px rgba(17,57,83,.09);color:#111;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif}.weekly-sheet>h1{text-align:center;color:#111;font-size:20px;line-height:1.4;margin:0 0 34px;font-weight:800}.weekly-section{margin-top:28px}.weekly-section h2{font-size:16px;color:#111;margin:0 0 16px;font-weight:800}.weekly-section h3{font-size:13px;color:#111;margin:18px 0 10px;font-weight:700}.weekly-sales-grid{margin:0;display:grid;gap:9px}.weekly-sales-grid>div{display:grid;grid-template-columns:minmax(190px,auto) 1fr;align-items:baseline}.weekly-sales-grid dt,.weekly-sales-grid dd{font-size:12px;line-height:1.7;margin:0}.weekly-sales-grid dt{font-weight:700}.weekly-placeholder{color:#6e7f8a}.weekly-data-note{margin:12px 0 0;padding:8px 10px;border-left:3px solid var(--blue);background:#f3f8fb;color:#617786;font-size:10px;line-height:1.65}.weekly-table-wrap{overflow:auto}.weekly-table{width:100%;border-collapse:collapse;table-layout:fixed}.weekly-table th,.weekly-table td{border:1px solid #b8c3ca;padding:9px 11px;text-align:left;vertical-align:top;font-size:11px;line-height:1.65}.weekly-table th{background:#eaf3f8;color:#143e5b;font-size:11px;font-weight:800}.weekly-table th:first-child,.weekly-table td:first-child{width:42%}.weekly-plan,.weekly-issues{margin:0;padding-left:22px}.weekly-plan li,.weekly-issues li{padding-left:2px;margin:7px 0;font-size:11px;line-height:1.75}.weekly-empty{font-size:11px;color:#6f808b;margin:8px 0;line-height:1.7}
@media(max-width:760px){.weekly-sheet{width:calc(100% - 20px);margin:16px auto 24px;padding:32px 24px 40px}.weekly-sheet>h1{font-size:17px;margin-bottom:26px}.weekly-sales-grid>div{grid-template-columns:1fr}.weekly-table{min-width:620px}}

/* Secure sign-in and authenticated identity */
body.auth-pending .shell,body.auth-required .shell,body.app-ready .login-screen{display:none}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 18% 15%,rgba(0,104,184,.14),transparent 32%),linear-gradient(135deg,#eef6fb 0%,#f8fbfd 48%,#e7f1f7 100%)}
.login-card{width:min(440px,100%);background:#fff;border:1px solid #d5e3ec;border-radius:18px;padding:30px 34px 26px;box-shadow:0 28px 75px rgba(12,54,82,.15)}
body.auth-pending .login-card{opacity:.72;pointer-events:none}
.login-brand{display:flex;align-items:center;gap:12px;padding-bottom:22px;border-bottom:1px solid #e4ebf0}.login-brand>span{width:48px;height:36px;border-radius:8px;background:var(--deep);color:#fff;display:grid;place-items:center;font-weight:900}.login-brand strong,.login-brand small{display:block}.login-brand strong{font-size:14px;color:#163f5c}.login-brand small{margin-top:4px;color:#7890a0;font-size:8px;letter-spacing:.13em}
.login-copy{padding:25px 0 19px}.login-copy p{margin:0 0 7px;color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.15em}.login-copy h1{margin:0 0 9px;font-size:25px;color:#153f5d}.login-copy span{display:block;color:#748a99;font-size:10px;line-height:1.7}
.login-form{display:grid;gap:13px}.login-form label{display:grid;gap:6px}.login-form label>span{font-size:10px;color:#4c687b;font-weight:700}.login-form input{width:100%;height:42px;border:1px solid #cbd9e2;border-radius:9px;padding:0 12px;color:#294b61;background:#fff;outline:0}.login-form input:focus{border-color:#6bb0da;box-shadow:0 0 0 3px #dceffa}.login-submit{height:43px;margin-top:4px}.login-submit:disabled{opacity:.58;cursor:wait}.login-error,.execution-alert{border:1px solid #efc6ca;border-left:3px solid var(--red);border-radius:8px;background:#fff5f6;color:#9c1c27;padding:10px 12px;font-size:10px;line-height:1.55}.login-security{margin:19px 0 0;padding-top:17px;border-top:1px solid #e5edf2;color:#8597a3;font-size:9px;line-height:1.65}
.identity{position:relative}.identity>div{min-width:0;flex:1}.identity strong,.identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity>button{border:1px solid rgba(255,255,255,.22);border-radius:6px;background:transparent;color:#c5dbe8;padding:5px 7px;font-size:8px;cursor:pointer}.identity>button:hover{background:rgba(255,255,255,.1);color:#fff}.identity>button:disabled{opacity:.45}

/* AI execution review and status */
.row-actions .execute-action{border-color:#78b7dc;background:#e7f3fa;color:#0068a8;font-weight:800}.row-actions .execute-action:hover:not(:disabled){background:#d7ebf7}.execution-state{font-weight:700;color:#56788d}.execution-state.error,.execution-error{color:#b21d29}.execution-error{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.execute-modal{width:min(760px,100%)}.modal-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid #e5edf2;background:#fff}.execution-brief{margin-bottom:14px;border:1px solid #dfe8ee;border-radius:10px;background:#f8fafb;padding:13px 15px}.execution-brief h3{margin:0 0 7px;font-size:11px;color:#365b72}.execution-brief p{margin:0;color:#5f7686;font-size:10px;line-height:1.75;white-space:pre-wrap}.execution-boundary{margin:17px 0 0}.execution-alert{margin-top:13px}

@media(max-width:760px){.login-screen{padding:16px}.login-card{padding:25px 23px 22px}.identity>button{font-size:0;width:28px;height:28px;padding:0}.identity>button:after{content:'↪';font-size:14px}.execution-error{max-width:120px}}

/* FSA pastel pink-to-blue theme */
::selection{background:#f5cfe0;color:#33445e}
html,body{
  background:
    radial-gradient(circle at 8% 8%,rgba(247,200,220,.58),transparent 31rem),
    radial-gradient(circle at 90% 12%,rgba(190,222,248,.64),transparent 35rem),
    linear-gradient(135deg,#fff7fa 0%,#f7f2fb 46%,#eef8ff 100%);
  background-attachment:fixed;
}
.shell{background:transparent}
.sidebar{
  background:linear-gradient(165deg,#c6d9e8 0%,#d6cfdf 50%,#e1c2d2 100%);
  color:#3f4a5d;
  box-shadow:12px 0 34px rgba(99,104,133,.1);
}
.brand{border-bottom-color:rgba(63,74,93,.14)}
.brand>span{
  background:#faf8fb;
  color:#46536b;
  box-shadow:0 8px 20px rgba(71,82,105,.1);
}
.brand small{color:#485365}
.sidebar nav>p{color:#485365}
.sidebar nav button{color:#3f4a5d}
.sidebar nav button i{background:rgba(255,255,255,.35);color:#3f4a5d}
.sidebar nav button:hover{background:rgba(255,255,255,.32);color:#3f4a5d}
.sidebar nav button.active{
  background:rgba(250,248,251,.92);
  color:#46536b;
  box-shadow:0 8px 20px rgba(71,82,105,.1);
}
.sidebar nav button.active i{background:#eef0f5;color:#46536b}
.identity{border-top-color:rgba(63,74,93,.14)}
.identity>span{background:#faf8fb;color:#46536b}
.identity small{color:#485365}
.identity>button{border-color:rgba(63,74,93,.24);color:#3f4a5d}
.identity>button:hover{background:rgba(255,255,255,.32);color:#3f4a5d}

.topbar{
  background:linear-gradient(90deg,rgba(255,248,251,.9),rgba(243,249,255,.9));
  border-bottom-color:rgba(134,143,177,.22);
  box-shadow:0 8px 24px rgba(91,103,140,.06);
  backdrop-filter:blur(16px);
}
.search{
  border-color:rgba(130,143,177,.28);
  background:rgba(255,255,255,.74);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.search kbd{border-color:#dde1ef;background:rgba(255,255,255,.9);color:#65728a}
.primary{
  background:#64769f;
  box-shadow:0 7px 18px rgba(82,96,132,.2);
}
.primary:hover{background:#596b92;filter:none}
.secondary{border-color:#d8dbea;background:rgba(255,255,255,.82);color:#53647d}
.danger{border-color:#efc8d1;background:#fff7f9;color:#ad344a}

.page-heading h1,.metric strong,.login-copy h1{color:#3f537a}
.page-heading h1{
  background:none;
  color:#287fb8;
  -webkit-text-fill-color:currentColor;
  filter:drop-shadow(0 3px 10px rgba(40,127,184,.14));
}
.eyebrow,.text-button{color:var(--blue)!important}
.page-heading .eyebrow{color:#2f98d7!important}
.badge{
  background:linear-gradient(135deg,#fde8f1,#e3f2ff);
  color:#4e6799;
  border-color:#d9daeb;
}
.metric,.panel,.record-card,.day-card,.modal,.login-card{
  background:linear-gradient(145deg,rgba(255,252,253,.96),rgba(249,252,255,.94));
  border-color:rgba(134,143,177,.24);
  box-shadow:var(--shadow);
}
.metric:before{background:linear-gradient(180deg,#d989ac,#6c9bd0)}
.metric.red:before{background:var(--red)}
.metric.green:before{background:var(--green)}
.metric.amber:before{background:var(--amber)}
.panel-title{
  background:linear-gradient(90deg,rgba(255,248,251,.82),rgba(241,248,255,.74));
  border-bottom-color:rgba(138,147,177,.18);
}
.section-note{
  background:linear-gradient(135deg,#fff2f7,#edf7ff);
  border-color:#dedceb;
  color:#526984;
}
.guardrail{border-left-color:var(--red);background:#fff6f8;color:#744b57}
.empty i{background:linear-gradient(135deg,#f9ddea,#dcefff);color:#4e70a4}
.data-table th,.day-card header{
  background:linear-gradient(90deg,#fff6f9,#eef7ff);
  border-color:#e4e2ed;
  color:#69768b;
}
.data-table tbody tr:hover,.list button:hover{background:linear-gradient(90deg,#fff8fb,#f3f9ff)}
.data-table strong{color:#405674}
.pill.blue{background:linear-gradient(135deg,#f9ddea,#dcefff);color:#456d9f}
.copy-box,.static-value,.todo-editor,.execution-brief,.empty-result{
  background:linear-gradient(135deg,#fff9fb,#f3f9ff);
  border-color:#e0dfeb;
  color:#4d627d;
}
.module-tabs{border-bottom-color:#dcdfeb}
.module-tabs button.active{color:var(--blue);border-color:#d27fa4}
.module-tabs .active small,.module-tabs small.p0{background:linear-gradient(135deg,#f9ddea,#dcefff);color:#4d70a4}
.flow{
  background:linear-gradient(135deg,#fff1f6,#eaf6ff);
  border-color:#cdd8ea;
  color:#536d91;
}
.flow span{border-color:#dcddea;background:rgba(255,255,255,.86)}
.full{background:#e4f0f7;color:#536b8b}
.progress-line::-webkit-progress-value{background:linear-gradient(90deg,#d989ac,#6d9dd2)}
.progress-line::-moz-progress-bar{background:#6d9dd2}
.row-actions button,.record-card footer button,.data-table td>button{border-color:#d8dbea;background:rgba(255,255,255,.84);color:#53677f}
.channel-options span{border-color:#d7d9e8;background:rgba(255,255,255,.85);color:#5f6e84}
.channel-options input:checked+span{background:#e4f0f7;border-color:#bdcbdc;color:#536b8b}
.field input,.field select,.field textarea,.login-form input,.todo-row input,.filters select,.filters input{
  border-color:#d4d7e6;
  background:rgba(255,255,255,.88);
  color:#3f536e;
}
.field input:focus,.field select:focus,.field textarea:focus,.login-form input:focus{
  border-color:#8fa9d0;
  box-shadow:0 0 0 3px rgba(219,203,232,.55);
}
.modal-backdrop{background:rgba(52,58,87,.42)}
.modal>header,.modal form>footer,.modal-actions{
  background:linear-gradient(90deg,rgba(255,249,251,.98),rgba(242,248,255,.98));
  border-color:#e2e1ec;
}
.modal>header button{background:#eef0f5;color:#69718d}
.toast{background:linear-gradient(135deg,#785c82,#526f9d);box-shadow:0 14px 35px rgba(69,66,105,.25)}

.weekly-panel{background:linear-gradient(135deg,#fff1f6,#edf7ff)}
.weekly-panel>.panel-title{background:linear-gradient(90deg,#fff8fb,#f2f8ff)}
.weekly-sheet{border-color:#d9dce8;box-shadow:0 12px 32px rgba(91,103,140,.11)}
.weekly-table th{background:linear-gradient(90deg,#fce7f0,#e4f2fd);color:#405779}
.weekly-data-note{border-left-color:#d17da2;background:linear-gradient(90deg,#fff4f8,#f1f8fe)}

.login-screen{
  background:
    radial-gradient(circle at 18% 15%,rgba(247,193,216,.72),transparent 34%),
    radial-gradient(circle at 82% 20%,rgba(181,218,247,.78),transparent 38%),
    linear-gradient(135deg,#fff7fa 0%,#f5effa 48%,#eaf7ff 100%);
}
.login-card{box-shadow:0 28px 75px rgba(77,83,126,.17);backdrop-filter:blur(18px)}
.login-brand{border-bottom-color:#e5e1eb}
.login-brand>span{background:linear-gradient(135deg,#a9577e,#456fa8);box-shadow:0 8px 20px rgba(84,83,133,.2)}
.login-brand strong{color:#40557a}
.login-copy p{color:#a9577e}
.login-security{border-top-color:#e5e3ed}
.row-actions .execute-action{border-color:#bdcbdc;background:#e4f0f7;color:#536b8b}
.row-actions .execute-action:hover:not(:disabled){background:#d8e8f2}
.output-location a{background:#e4f0f7;color:#536b8b}

/* FSA cloud digital employee */
.ai-employee{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(360px,.9fr) auto;
  align-items:center;
  gap:24px;
  margin:0 0 18px;
  padding:20px 22px;
  border:1px solid rgba(129,151,188,.28);
  border-radius:14px;
  background:
    radial-gradient(circle at 7% 20%,rgba(255,255,255,.92),transparent 24%),
    linear-gradient(120deg,rgba(253,232,241,.9),rgba(235,245,255,.94));
  box-shadow:0 12px 34px rgba(85,103,144,.11);
}
.ai-employee-main{display:flex;align-items:center;gap:15px;min-width:0}
.ai-avatar{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#55afe4,#7b83c5);color:#fff;font-size:14px;font-weight:900;letter-spacing:.06em;box-shadow:0 9px 22px rgba(74,126,176,.24)}
.ai-employee-main p{margin:0 0 4px;color:#4a91c3;font-size:8px;font-weight:900;letter-spacing:.15em}
.ai-employee-main h2{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 5px;color:#40577d;font-size:16px}
.ai-employee-main>div>span{display:block;color:#60758c;font-size:10px;line-height:1.6}
.ai-presence{display:inline-flex!important;align-items:center;gap:5px;border:1px solid #b9dcca;border-radius:16px;background:rgba(239,251,246,.82);padding:4px 8px;color:#32765d!important;font-size:8px!important;font-weight:800}
.ai-presence i{width:6px;height:6px;border-radius:50%;background:#35a66f;box-shadow:0 0 0 3px rgba(53,166,111,.12)}
.ai-employee.offline .ai-presence{border-color:#dfced5;background:rgba(255,247,249,.8);color:#8a6674!important}
.ai-employee.offline .ai-presence i{background:#bd879b;box-shadow:0 0 0 3px rgba(189,135,155,.12)}
.ai-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(66px,1fr));gap:8px}
.ai-memory-grid>div{padding:9px 8px;border:1px solid rgba(139,151,183,.2);border-radius:10px;background:rgba(255,255,255,.6);text-align:center}
.ai-memory-grid strong,.ai-memory-grid small{display:block}.ai-memory-grid strong{color:#496486;font-size:15px}.ai-memory-grid small{margin-top:2px;color:#75869b;font-size:8px;white-space:nowrap}
.ai-memory-grid .attention{border-color:rgba(215,137,172,.4);background:rgba(255,245,249,.78)}.ai-memory-grid .attention strong{color:#b36388}

@media(max-width:1180px){.ai-employee{grid-template-columns:1fr auto}.ai-memory-grid{grid-column:1/-1;grid-row:2}}
@media(max-width:760px){.ai-employee{grid-template-columns:1fr;gap:16px}.ai-memory-grid{grid-column:auto;grid-row:auto;grid-template-columns:repeat(2,1fr)}.ai-employee>.secondary{width:100%}}

/* Agent control plane */
.agent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}
.agent-card{border:1px solid #dce1ec;border-radius:14px;background:rgba(255,255,255,.78);padding:16px;box-shadow:0 8px 24px rgba(76,91,128,.07)}
.agent-card.disabled{opacity:.7;background:#f5f6f8}
.agent-card>header{display:flex;align-items:center;gap:11px;margin-bottom:14px}.agent-card>header>div:nth-child(2){min-width:0;flex:1}
.agent-card h3{margin:0;color:#405674;font-size:1rem}.agent-card header p{margin:3px 0 0;color:#718198;font-size:.82rem}
.agent-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#d989ac,#6c9bd0);color:#fff;font-weight:900}
.agent-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.agent-card dl div{min-width:0;padding:9px 10px;border-radius:9px;background:#f7f9fc}
.agent-card dt{color:#8290a2;font-size:.75rem}.agent-card dd{margin:3px 0 0;color:#455b77;font-size:.86rem;overflow-wrap:anywhere}
.agent-card footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.agent-card footer button{border:1px solid #d8dbea;border-radius:8px;background:#fff;padding:7px 10px;color:#52677f;cursor:pointer}
.protocol-panel{margin-top:16px}.protocol-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.protocol-link{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:7px 10px;text-decoration:none;font-size:.82rem}.protocol-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px}.protocol-grid>div{padding:14px;border:1px solid #e0e4ed;border-radius:11px;background:linear-gradient(135deg,#fff9fb,#f3f9ff)}
.protocol-grid b,.protocol-grid span{display:block}.protocol-grid b{color:#405674;font-size:.9rem}.protocol-grid span{margin-top:5px;color:#667991;font-size:.82rem;line-height:1.55}
.event-stream{padding:8px 18px 18px}.event-stream article{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #e6e8ef}.event-stream article:last-child{border-bottom:0}.event-stream i{width:9px;height:9px;margin-top:6px;border-radius:50%;background:#6c9bd0;box-shadow:0 0 0 4px #eaf3fb}.event-stream b{color:#455c79;font-size:.88rem}.event-stream p{margin:4px 0;color:#5f738c;font-size:.84rem}.event-stream small{color:#8793a4;font-size:.74rem}
.token-once{display:flex;align-items:center;gap:10px;margin-top:10px}.token-once code{min-width:0;flex:1;overflow-wrap:anywhere;border:1px solid #d7dce8;border-radius:9px;background:#f7f9fc;padding:12px;color:#3f5570;font-size:.82rem}.token-help{color:#7d6670;font-size:.82rem;line-height:1.55}
@media(max-width:900px){.agent-grid,.protocol-grid{grid-template-columns:1fr}}
@media(max-width:620px){.agent-card dl{grid-template-columns:1fr}.token-once{align-items:stretch;flex-direction:column}}

@media(forced-colors:active){.page-heading h1{background:none;color:CanvasText;-webkit-text-fill-color:currentColor}}

/* Shared dialog lifecycle: keep existing palette and component geometry. */
:root{--scroll-thumb:var(--muted);--scroll-track:var(--soft);--scroll-hover:var(--deep);--scroll-active:var(--ink);--z-dialog:20;--z-toast:30}
html{scrollbar-gutter:stable;scrollbar-color:var(--scroll-thumb) var(--scroll-track);scrollbar-width:auto}
*{scrollbar-color:var(--scroll-thumb) var(--scroll-track);scrollbar-width:auto}
::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-track{background:var(--scroll-track)}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:3px solid var(--scroll-track);border-radius:8px}::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}::-webkit-scrollbar-thumb:active{background:var(--scroll-active)}
body.dialog-open{overflow:hidden}
.modal-backdrop{z-index:var(--z-dialog)}.toast{z-index:var(--z-toast)}
.modal{max-height:calc(100dvh - 48px);overscroll-behavior:contain}
.modal>header{gap:16px}.modal>header>div{min-width:0}.modal h2,.record-card h3,.record-card p{overflow-wrap:anywhere}.modal>header button{flex-shrink:0}
.modal button:disabled{opacity:.5;cursor:wait}
button:not(:disabled),a[href]{cursor:pointer}
button:focus-visible,a:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
button:not(:disabled):hover{filter:brightness(.96)}button:not(:disabled):active{filter:brightness(.9)}
.field textarea,.resize-none{resize:none;max-height:320px;overflow:auto}
.field.full{width:auto;margin:0;padding:0;background:transparent}
.dialog-error{margin:0 22px 16px}.dialog-status{align-self:center;color:var(--muted);font-size:10px;min-height:16px}
.action-modal{width:min(580px,100%)}.action-body{padding:20px 22px}.action-body>p{margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:12px}
.review-list .record-card{grid-template-columns:1fr}.review-list footer{flex-wrap:wrap;justify-content:flex-end}
.review-list .confirm-action{border-color:#9fd8c2;background:#e8f7f1;color:#087555}
.secondary.warning-action{border-color:var(--amber);color:var(--ink);background:#fff4d8}
@media(max-width:760px){.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px)}.modal-actions,.modal form>footer{flex-wrap:wrap}.dialog-status{flex-basis:100%}.record-card{grid-template-columns:1fr}.record-card footer{flex-wrap:wrap}.modal>header h2{font-size:17px}}
@media(forced-colors:active){*{scrollbar-color:auto}button:focus-visible,a:focus-visible{outline-color:Highlight}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.secret-control{display:flex!important;align-items:center;gap:8px}.secret-control input{min-width:0;flex:1}.secret-control button{flex-shrink:0}
.search-clear{border:0;background:transparent;color:var(--deep);font-size:20px;width:28px;height:28px;border-radius:6px;flex-shrink:0}
.connection{border:0;background:transparent;padding:8px 0;text-align:left}
.calendar-task{display:block;width:100%;text-align:left;border:0;background:transparent;padding:5px;color:inherit;border-radius:7px}
.day-card li{cursor:default}.calendar-task b,.calendar-task small{display:block}
.token-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.token-help{overflow-wrap:anywhere}
.page-loading{min-height:280px;display:grid;place-items:center;color:var(--muted)}
.login-submit{min-width:100%}.execute-modal .primary{min-width:112px}.modal [aria-busy="true"] button[type="submit"]{min-width:80px}
textarea{resize:none}.agent-card footer button:disabled{cursor:not-allowed;opacity:.5}
/* Critical visibility utility must beat component display rules. */
.hidden{display:none!important}
@media(max-width:480px){.page-heading{flex-direction:column;align-items:flex-start;gap:12px}.heading-actions{max-width:100%}.badge{white-space:nowrap}.protocol-panel>.panel-title{align-items:flex-start;flex-direction:column}}
.text-link{border:0;background:transparent;color:var(--deep);padding:7px 0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer}.text-link:hover{color:var(--blue)}
.api-executor-card dd{overflow-wrap:anywhere}.api-executor-card dd small{display:block;color:var(--muted);margin-top:4px}.api-executor-card .agent-mark{font-size:11px}
.api-test-error{font-size:11px;line-height:1.6;color:var(--red);padding:0 16px}.field>label{font-size:10px;font-weight:700;color:var(--ink)}.field>small{font-size:10px;color:var(--muted);line-height:1.6}
.execution-destination{padding:15px;border:1px solid var(--line);border-radius:var(--radius,13px);background:var(--soft);margin-bottom:18px}.execution-destination>p{font-size:11px;color:var(--muted);line-height:1.7}.execution-destination .section-note{margin-top:12px}
.modal{scroll-padding-block:95px 100px}.api-executor-card [data-api-test]{min-width:84px}
