:root{--navy:#102644;--navy-2:#18375b;--blue:#2864e8;--blue-2:#4782fa;--sky:#eaf2ff;--ink:#18263a;--muted:#728097;--line:#e8edf3;--canvas:#f5f7fa;--white:#fff;--green:#18865a;--green-bg:#e6f6ee;--amber:#a96710;--amber-bg:#fff3de;--red:#c43c4c;--red-bg:#ffebed;--shadow:0 12px 36px rgba(18,39,70,.08);--radius:16px; font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a{color:inherit;text-decoration:none}.boot-screen{height:100vh;display:grid;place-content:center;justify-items:center;gap:12px;color:var(--muted);font-size:14px}.brand-mark{height:44px;width:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#4788ff,#1953ce);box-shadow:0 8px 20px #2864e83a;color:white;font:800 23px Manrope,sans-serif;letter-spacing:-2px}
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(350px, .9fr) minmax(420px,1.1fr);background:white}.login-aside{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:42px 7vw 36px;background:radial-gradient(ellipse at 80% 20%,#2f5480 0,transparent 40%),linear-gradient(155deg,#0a1d37,#102c50 68%,#163b64);color:#fff}.login-aside:after{content:"";position:absolute;width:580px;height:580px;border:1px solid #ffffff17;border-radius:50%;right:-220px;bottom:-250px;box-shadow:0 0 0 50px #ffffff08,0 0 0 110px #ffffff06}.brand{display:flex;align-items:center;gap:12px;font:800 19px Manrope,sans-serif;letter-spacing:.2px}.brand small{display:block;margin-top:2px;font:500 10px 'DM Sans',sans-serif;letter-spacing:2px;color:#b8cae1}.login-message{position:relative;z-index:1;max-width:440px;margin:auto 0;padding:70px 0}.login-message .eyebrow{font-size:11px;color:#9dbff9;font-weight:700;letter-spacing:2px;text-transform:uppercase}.login-message h1{font:700 clamp(34px,4vw,54px)/1.12 Manrope,sans-serif;letter-spacing:-1.9px;margin:18px 0}.login-message p{font-size:16px;line-height:1.7;color:#bdcce0;max-width:390px}.login-points{display:flex;gap:18px;flex-wrap:wrap;color:#ccd7e6;font-size:12px}.login-points span{display:flex;gap:8px;align-items:center}.login-points i{width:7px;height:7px;border-radius:50%;background:#60d9a1}.login-aside footer{font-size:11px;color:#8fa4be}.login-side{display:grid;place-items:center;padding:42px}.login-card{width:min(100%,420px)}.login-card .brand-mark{margin-bottom:34px}.login-card h2{font:700 27px Manrope,sans-serif;letter-spacing:-.8px;margin:0 0 8px}.login-card>p{margin:0 0 32px;color:var(--muted);font-size:14px}.form-field{display:grid;gap:8px;margin:0 0 18px}.form-field label{font-size:12px;font-weight:700;color:#37475d}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #dce3eb;border-radius:9px;padding:12px 13px;background:#fff;color:var(--ink);outline:none;transition:border .18s,box-shadow .18s}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#6c96ed;box-shadow:0 0 0 3px #2864e81b}.form-field input::placeholder,.form-field textarea::placeholder{color:#a6b0be}.form-hint{font-size:11px;color:var(--muted);line-height:1.55;margin-top:-4px}.login-error{padding:11px 13px;margin-bottom:16px;border:1px solid #f2cbd0;border-radius:9px;background:#fff1f2;color:#ad3443;font-size:12px}
.app-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}.sidebar{background:#10243e;color:#cad5e3;display:flex;flex-direction:column;min-height:100vh;padding:23px 14px 16px;position:sticky;top:0;height:100vh}.sidebar-brand{padding:0 12px 29px;color:white}.sidebar-brand .brand-mark{height:34px;width:34px;border-radius:11px;font-size:18px}.sidebar-brand .brand{font-size:15px}.sidebar-label{padding:0 12px;margin:0 0 8px;color:#71859f;font-size:9px;letter-spacing:1.5px;font-weight:700;text-transform:uppercase}.nav-group{display:grid;gap:4px;margin-bottom:22px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#afbdd0;text-align:left;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:600;transition:.16s}.nav-item:hover{background:#ffffff0c;color:white}.nav-item.active{background:#214776;color:white;box-shadow:inset 3px 0 0 #5c94ff}.nav-icon{width:17px;height:17px;display:grid;place-items:center;font-size:16px;color:#9db0c9}.nav-item.active .nav-icon{color:#9bc0ff}.sidebar-spacer{flex:1}.sidebar-help{padding:14px;margin:8px 2px 16px;border:1px solid #ffffff12;background:#ffffff08;border-radius:12px}.sidebar-help strong{display:block;color:#edf3fb;font-size:11px;margin-bottom:5px}.sidebar-help span{font-size:10px;line-height:1.5;color:#9eb0c6}.account-row{border-top:1px solid #ffffff14;padding:16px 7px 2px;display:flex;align-items:center;gap:10px}.avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#294870;color:#dce9fc;font-weight:700;font-size:11px;flex:none}.account-info{min-width:0;flex:1}.account-info strong,.account-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-info strong{font-size:11px;color:white}.account-info span{font-size:10px;color:#91a2b8;margin-top:3px}.icon-button{border:0;background:transparent;color:inherit;padding:7px;border-radius:8px}.icon-button:hover{background:#ffffff12}.main-area{min-width:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(20px,4vw,54px);background:#fff;border-bottom:1px solid var(--line)}.breadcrumb{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}.breadcrumb b{font-weight:700;color:var(--ink)}.topbar-right{display:flex;align-items:center;gap:12px}.top-date{color:#8a96a8;font-size:11px}.main-content{max-width:1440px;margin:0 auto;padding:32px clamp(20px,4vw,54px) 64px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:26px}.page-heading h1{font:700 26px Manrope,sans-serif;letter-spacing:-.8px;margin:0 0 6px}.page-heading p{margin:0;color:var(--muted);font-size:12px}.heading-actions{display:flex;gap:9px;align-items:center}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:9px;padding:10px 15px;font-size:11px;font-weight:700;transition:.16s;white-space:nowrap}.button-primary{background:var(--blue);color:white;box-shadow:0 4px 10px #2864e82d}.button-primary:hover{background:#1f55d1;transform:translateY(-1px)}.button-secondary{background:#fff;border-color:#dfe5ed;color:#3c4c62}.button-secondary:hover{border-color:#aab9cc;background:#fafdff}.button-danger{background:#fff1f2;border-color:#ffd7da;color:#b83445}.button-quiet{border:0;background:transparent;color:#53647a;padding:8px}.button-quiet:hover{background:#edf2f8}.button-small{padding:7px 10px;font-size:10px}.button-wide{width:100%;padding:13px}.button svg{width:15px;height:15px}.grid{display:grid;gap:15px}.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:19px}.metric-card,.card{background:#fff;border:1px solid #e9edf2;border-radius:var(--radius);box-shadow:0 2px 5px #18263a04}.metric-card{padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.metric-title{font-size:10px;color:#7d899a;font-weight:600}.metric-value{font:700 27px Manrope,sans-serif;letter-spacing:-1px;margin-top:8px}.metric-foot{font-size:10px;color:#96a1af;margin-top:5px}.metric-icon{height:36px;width:36px;display:grid;place-items:center;border-radius:11px;background:#eff4ff;color:#4878d7;font-size:16px}.metric-icon.green{background:#e8f7ef;color:#27865d}.metric-icon.amber{background:#fff4e2;color:#bd791e}.metric-icon.purple{background:#f2edff;color:#7656c8}.section-grid{grid-template-columns:minmax(0,1.55fr) minmax(260px,.85fr)}.card{padding:20px}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.card-title{font:700 13px Manrope,sans-serif}.card-subtitle{font-size:10px;color:var(--muted);margin-top:4px}.text-link{border:0;background:transparent;color:#386fd8;font-size:10px;font-weight:700;padding:5px}.text-link:hover{text-decoration:underline}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap}.data-table th{text-align:left;padding:10px 11px;border-bottom:1px solid #edf0f4;color:#8a96a6;font-size:9px;letter-spacing:.35px;text-transform:uppercase;font-weight:700}.data-table td{padding:13px 11px;border-bottom:1px solid #f0f2f5;color:#334157;font-size:10px}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fafcff}.client-cell{display:flex;align-items:center;gap:10px}.client-logo{width:30px;height:30px;border-radius:9px;background:#edf3ff;color:#366dd7;display:grid;place-items:center;font-size:10px;font-weight:800}.client-name{font-weight:700;color:#20324b}.client-caption{font-size:9px;color:#8a96a6;margin-top:3px}.status{display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:700;padding:5px 8px;border-radius:30px;background:#f0f3f7;color:#687689}.status:before{content:"";height:6px;width:6px;border-radius:50%;background:currentColor}.status.ok{background:var(--green-bg);color:var(--green)}.status.warn{background:var(--amber-bg);color:var(--amber)}.status.bad{background:var(--red-bg);color:var(--red)}.status.neutral{background:#edf1f5;color:#687689}.table-actions{display:flex;gap:4px;justify-content:flex-end}.table-actions .icon-button{color:#77869b}.empty-state{padding:32px 18px;text-align:center;color:#8d99a8}.empty-icon{height:42px;width:42px;border-radius:13px;display:grid;place-items:center;background:#f1f5fa;color:#7391bd;margin:0 auto 11px;font-size:19px}.empty-state strong{display:block;color:#46566a;font-size:11px;margin-bottom:5px}.empty-state p{font-size:10px;margin:0 auto;max-width:300px;line-height:1.5}.activity-list{display:grid}.activity-item{display:grid;grid-template-columns:27px minmax(0,1fr) auto;gap:9px;padding:11px 0;border-bottom:1px solid #f0f2f5;align-items:start}.activity-item:last-child{border-bottom:0}.activity-dot{width:23px;height:23px;border-radius:8px;background:#edf4ff;color:#4c7ee2;display:grid;place-items:center;font-size:11px}.activity-dot.error{background:#fff0f1;color:#cf4d5b}.activity-dot.success{background:#e8f7ef;color:#28875c}.activity-copy strong{display:block;font-size:10px;color:#33445b;margin:1px 0 4px}.activity-copy span{display:block;color:#8c98a7;font-size:9px}.activity-time{font-size:9px;color:#9aa5b2;white-space:nowrap;margin-top:3px}.progress-row{margin:14px 0}.progress-head{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#59697e;margin-bottom:7px}.progress-head span:last-child{font-weight:700;color:#33445b}.progress{height:7px;border-radius:10px;background:#edf1f5;overflow:hidden}.progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4a84f0,#6ca0ff)}.info-strip{padding:12px 14px;border:1px solid #dce9ff;border-radius:11px;background:#f2f7ff;color:#526984;font-size:10px;line-height:1.55;display:flex;gap:9px;align-items:flex-start}.info-strip b{color:#315eaa}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.search-box{position:relative;min-width:min(100%,250px)}.search-box input{width:100%;border:1px solid #e1e6ed;border-radius:9px;padding:9px 12px 9px 33px;background:#fff;font-size:10px;outline:none}.search-box input:focus{border-color:#89a8e5}.search-box span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#8f9baa}.filter-select{border:1px solid #e1e6ed;border-radius:9px;padding:9px 11px;color:#56657a;background:#fff;font-size:10px}.toolbar-left,.toolbar-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.file-row{display:grid;grid-template-columns:minmax(190px,1.8fr) minmax(100px,.8fr) minmax(90px,.7fr) minmax(100px,.8fr) auto;gap:12px;align-items:center;padding:13px 14px;border-bottom:1px solid #f0f2f5}.file-row:last-child{border-bottom:0}.file-title{display:flex;gap:10px;align-items:center;min-width:0}.file-symbol{height:32px;width:32px;border-radius:9px;background:#edf3ff;color:#4978d5;display:grid;place-items:center;flex:none}.file-title strong,.file-title span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-title strong{font-size:10px;color:#35455c}.file-title span,.file-meta{font-size:9px;color:#929dad;margin-top:4px}.file-actions{display:flex;justify-content:flex-end;gap:5px}.split-cards{grid-template-columns:minmax(0,1.35fr) minmax(270px,.75fr)}.client-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-block{padding:14px;border:1px solid #edf0f4;border-radius:11px}.detail-block span{font-size:9px;color:#8996a7;display:block}.detail-block strong{font-size:12px;color:#34445a;display:block;margin-top:7px}.agent-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid #e9edf2;border-radius:12px}.agent-title{display:flex;gap:12px;align-items:center}.agent-mark{height:40px;width:40px;display:grid;place-items:center;border-radius:12px;background:#eaf2ff;color:#3c72dc;font-size:18px}.agent-title strong{display:block;font-size:11px}.agent-title span{display:block;margin-top:4px;color:#8a96a6;font-size:9px}.agent-actions{display:flex;gap:7px;flex-wrap:wrap}.token-box{border:1px dashed #b7cae8;border-radius:12px;background:#f6f9ff;padding:16px}.token-box label{display:block;font-size:9px;letter-spacing:.7px;color:#7b8ba3;font-weight:700;text-transform:uppercase;margin-bottom:9px}.token-output{display:flex;gap:8px}.token-output input{min-width:0;flex:1;border:1px solid #d9e3f2;border-radius:8px;background:white;padding:10px 11px;font:11px ui-monospace,monospace;color:#1f416f}.token-warning{font-size:10px;line-height:1.55;color:#856731;margin-top:10px}.log-list{display:grid}.log-line{display:grid;grid-template-columns:125px 65px minmax(0,1fr);gap:10px;padding:10px 2px;border-bottom:1px solid #f0f2f5;font-size:10px}.log-line time{color:#929dad}.log-line p{margin:0;color:#58687d}.log-level{font-size:8px;font-weight:800;letter-spacing:.5px;text-transform:uppercase}.log-level.info{color:#5278bb}.log-level.warning{color:#b7771a}.log-level.error{color:#bf3f4e}.modal-backdrop{position:fixed;inset:0;z-index:20;background:#12243b75;display:grid;place-items:center;padding:18px;backdrop-filter:blur(3px)}.modal{width:min(100%,590px);max-height:min(90vh,780px);overflow:auto;background:white;border-radius:16px;box-shadow:0 25px 70px #07162a55}.modal-header{padding:21px 23px 15px;border-bottom:1px solid #edf0f4;display:flex;justify-content:space-between;align-items:flex-start}.modal-header h2{font:700 17px Manrope,sans-serif;margin:0}.modal-header p{font-size:10px;color:var(--muted);margin:6px 0 0}.modal-body{padding:20px 23px}.modal-footer{padding:14px 23px 21px;display:flex;justify-content:flex-end;gap:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid .full{grid-column:1/-1}.modal-close{border:0;background:transparent;color:#8190a3;font-size:18px;padding:0 3px}.loading-cover{position:fixed;inset:0;background:#ffffff9c;z-index:30;display:grid;place-items:center;color:#60728a;font-size:12px}.spinner{width:26px;height:26px;border:2px solid #e0e8f4;border-top-color:#3976e9;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 11px}@keyframes spin{to{transform:rotate(360deg)}}.toast-region{position:fixed;right:22px;bottom:22px;z-index:50;display:grid;gap:8px;max-width:min(380px,calc(100vw - 28px))}.toast{padding:13px 15px;border-radius:11px;background:#102744;color:white;box-shadow:var(--shadow);font-size:11px;line-height:1.45;animation:toast-in .2s ease-out}.toast.error{background:#8e2633}.toast.success{background:#176744}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.mobile-menu{display:none}.muted{color:var(--muted)}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mono{font-family:ui-monospace,SFMono-Regular,monospace}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mb-12{margin-bottom:12px}.align-right{text-align:right}
@media(max-width:1120px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-grid,.split-cards{grid-template-columns:1fr}.login-aside{padding-left:5vw;padding-right:5vw}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;z-index:15;left:-270px;top:0;width:252px;transition:left .22s;box-shadow:10px 0 30px #10243e26}.sidebar.open{left:0}.main-area{min-height:100vh}.topbar{height:62px;padding:0 18px}.main-content{padding:25px 17px 48px}.mobile-menu{display:inline-flex}.top-date{display:none}.page-heading{align-items:flex-start;flex-direction:column}.heading-actions{width:100%}.heading-actions .button{flex:1}.client-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.file-row{grid-template-columns:minmax(160px,1.5fr) 80px auto}.file-row>*:nth-child(3),.file-row>*:nth-child(4){display:none}.login-page{grid-template-columns:1fr}.login-aside{min-height:270px;padding:24px 24px 20px}.login-message{padding:35px 0 20px}.login-message h1{font-size:31px;margin:10px 0}.login-message p{font-size:13px;margin:0}.login-points{display:none}.login-aside footer{display:none}.login-side{padding:32px 24px 55px}.login-card .brand-mark{display:none}.login-card h2{font-size:23px}.login-card>p{margin-bottom:23px}.login-aside:after{width:380px;height:380px;right:-190px;bottom:-260px}.toolbar{align-items:stretch;flex-direction:column}.toolbar-left,.toolbar-right{width:100%}.search-box{flex:1}.file-row{padding:11px 8px}.data-table th,.data-table td{padding-left:8px;padding-right:8px}.agent-card{align-items:flex-start;flex-direction:column}.agent-actions{width:100%}.log-line{grid-template-columns:100px 55px minmax(0,1fr);gap:7px}.modal-header{padding:18px 18px 14px}.modal-body{padding:16px 18px}.modal-footer{padding:13px 18px 18px}}
@media(max-width:460px){.metrics-grid{gap:9px}.metric-card{padding:14px 13px}.metric-value{font-size:23px}.metric-icon{width:31px;height:31px}.card{padding:15px}.client-detail-grid{grid-template-columns:1fr 1fr;gap:8px}.detail-block{padding:11px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.file-row{grid-template-columns:minmax(130px,1fr) 68px auto;gap:5px}.file-symbol{height:28px;width:28px}.file-actions .button{padding:6px}.login-aside{min-height:238px}.page-heading h1{font-size:23px}}

/* Agendamento e configuração protegida de roteadores */
.day-options{display:flex;flex-wrap:wrap;gap:7px;padding:10px;border:1px solid #e5ebf3;border-radius:10px;background:#fbfcfe}
.day-option{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;border:1px solid #e3e9f1;border-radius:8px;background:#fff;color:#52647d;font-size:10px;font-weight:600;cursor:pointer}
.day-option:has(input:checked){border-color:#8aaaf0;background:#edf4ff;color:#285ebc}
.day-option input{width:14px;height:14px;accent-color:#2864e8}
.month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.month-days .day-option{justify-content:center;padding:6px 4px}
.month-days .day-option input{margin:0}
#schedule-week-days[hidden],#schedule-month-days[hidden],#schedule-daily-note[hidden]{display:none}
.router-groups{display:grid;gap:15px}
.router-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.router-card{min-width:0;padding:16px;border:1px solid #e6ecf3;border-radius:13px;background:linear-gradient(145deg,#fff,#fbfdff)}
.router-heading{display:flex;align-items:center;gap:10px}
.router-main{min-width:0;flex:1}
.router-main strong,.router-main span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.router-main strong{font-size:12px;color:#243852}
.router-main span{font-size:10px;color:#7b899d;margin-top:4px}
.router-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:15px 0 12px;padding:12px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5;color:#68788e;font-size:9px}
.artifact-tags{display:flex;flex-wrap:wrap;gap:7px}
.artifact-tags span{padding:6px 9px;border-radius:7px;background:#edf4ff;color:#3768bd;font-size:9px;font-weight:700}
.router-actions{display:flex;justify-content:flex-end;gap:7px;align-items:center;margin-top:14px}
.compact-empty{padding:22px 12px}
.credential-title{font-size:11px;color:#2f4562;padding:4px 0}
.inline-check{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:9px;font-size:10px;color:#4f6179}
.inline-check input{width:15px;height:15px;accent-color:#2864e8}
@media(max-width:920px){.router-list{grid-template-columns:1fr}}
@media(max-width:460px){.month-days{grid-template-columns:repeat(5,minmax(0,1fr))}.router-meta{grid-template-columns:1fr}}

/* Legibilidade, preferências e estados da nova área de autoatendimento */
:root{--navy:#10243e;--navy-2:#18375b;--blue:#2463eb;--blue-2:#4380f4;--ink:#17263b;--muted:#5e6d82;--line:#dfe6ef;--canvas:#f3f6fa;--white:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}
body{font-size:15px;line-height:1.5;background:var(--canvas);color:var(--ink)}
.brand-mark svg{width:24px;height:24px}
.nav-item{font-size:14px;min-height:42px}
.sidebar-label{font-size:10px}
.sidebar-help strong{font-size:13px}
.sidebar-help span,.account-info span{font-size:12px;line-height:1.5}
.account-info strong{font-size:13px}
.topbar{background:#fff}
.breadcrumb{font-size:13px}
.top-date{font-size:13px;color:#52647b}
.theme-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid #dbe3ee;border-radius:9px;background:#fff;color:#33445c;min-height:36px;padding:7px 11px;font-size:13px;font-weight:650}
.theme-toggle:hover,.preference-option:hover{background:#f2f6fc;border-color:#aebfd6}
.theme-toggle span[aria-hidden="true"]{font-size:17px;line-height:1}
.page-heading h1{font-size:clamp(27px,2.4vw,34px);letter-spacing:-.8px}
.page-heading p{font-size:15px;color:#53647d;line-height:1.55}
.eyebrow-label{display:block;color:#526f9b;font-size:11px;font-weight:750;letter-spacing:1.3px;margin-bottom:8px}
.button{font-size:14px;min-height:40px}
.button-small{font-size:13px;min-height:34px}
.button-wide{min-height:46px}
.metric-title{font-size:13px;color:#54647a}
.metric-value{font-size:30px}
.metric-foot{font-size:12px;color:#63738a;line-height:1.45}
.card-title{font-size:16px}
.card-subtitle{font-size:13px;color:#63738a;line-height:1.45}
.text-link{font-size:13px}
.data-table th{font-size:11px;color:#596a81}
.data-table td{font-size:13px;color:#33445b}
.client-name{font-size:14px}
.client-caption{font-size:12px}
.form-field{gap:7px}
.form-field label{font-size:14px;color:#30425b}
.form-field input,.form-field select,.form-field textarea,.search-box input,.filter-select{font-size:14px;color:#203148}
.form-hint{font-size:12px;line-height:1.55}
.status{font-size:12px}
.empty-state strong{font-size:14px}
.empty-state p{font-size:13px;line-height:1.55}
.activity-copy strong,.attention-item strong{font-size:13px}
.activity-copy span,.activity-time,.attention-item small{font-size:12px;line-height:1.45}
.progress-head{font-size:13px}
.file-title strong,.router-main strong,.agent-title strong{font-size:14px}
.file-title span,.file-meta,.router-main span,.agent-title span,.router-meta,.artifact-tags span,.credential-title,.inline-check{font-size:12px}
.log-line{font-size:12px}
.log-level{font-size:10px}
.skip-link{position:fixed;z-index:100;left:12px;top:12px;transform:translateY(-160%);padding:10px 14px;border-radius:8px;background:#fff;color:#17345d;box-shadow:0 4px 18px #07162a30}
.skip-link:focus{transform:translateY(0)}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #3278f6!important;outline-offset:2px!important}
.sidebar-storage-head,.sidebar-storage-foot{font-size:12px}
.sidebar-storage-unavailable{font-size:12px}
.storage-card .card-title{font-size:16px}
.storage-badge{font-size:11px}
.storage-values>div>span:not(.value-dot){font-size:13px}
.storage-values>div>strong{font-size:15px}
.storage-values>p{font-size:12px}
.first-client h3{font-size:18px}
.first-client p{font-size:14px}
.settings-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px;align-items:start}
.settings-card{padding:24px}
.settings-form{max-width:760px}
.settings-card .form-grid{gap:0 18px}
.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.preference-group{display:grid;gap:10px;padding:13px 0 17px;border-bottom:1px solid #e8edf3}
.preference-group:last-child{border-bottom:0;padding-bottom:2px}
.preference-label{font-size:14px;font-weight:700;color:#30425b}
.preference-options{display:flex;gap:9px;flex-wrap:wrap}
.preference-option{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 13px;border:1px solid #dce4ee;border-radius:10px;background:#fff;color:#374a63;font-size:15px;font-weight:700}
.preference-option[aria-pressed="true"]{border-color:#5484ec;background:#edf4ff;color:#174eae;box-shadow:inset 0 0 0 1px #5484ec}
.preference-option span{font-size:13px;font-weight:600}
.text-size-options .preference-option:nth-child(2){font-size:18px}
.text-size-options .preference-option:nth-child(3){font-size:21px}
.client-settings-card .settings-form{max-width:none}
.client-settings-card .info-strip{margin-top:2px}
.client-settings-card .form-actions{justify-content:flex-start}
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}
.dashboard-main-column,.dashboard-side-column{display:grid;gap:16px;min-width:0}
.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.dashboard-layout .card{min-width:0}
.trend-card{padding:20px 22px 16px}
.trend-legend{display:flex;align-items:center;gap:15px;color:#53647b;font-size:12px}
.trend-legend>span{display:inline-flex;align-items:center;gap:6px}
.trend-legend i{height:9px;width:9px;border-radius:50%;background:#20a873}
.trend-legend .legend-failure{background:#e34b58}
.trend-period{margin-left:auto;color:#697992}
.trend-plot{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:12px;margin-top:15px;padding:10px 7px 0;border-bottom:1px solid #e1e7ef}
.trend-day{display:grid;grid-template-rows:18px 116px 22px 20px;justify-items:center;align-items:end;gap:3px;min-width:0}
.trend-count{font-size:12px;font-weight:650;color:#566980}
.trend-bar-track{position:relative;display:flex;flex-direction:column-reverse;align-items:center;justify-content:flex-start;width:100%;height:100%;overflow:hidden}
.trend-bar-track>span:not(.trend-no-data){display:block;flex:none;width:min(70%,42px);min-height:0;border-radius:3px 3px 0 0}
.trend-bar-success{background:#29b17a}
.trend-bar-failure{background:#e64f5c}
.trend-bar-other{background:#4380f4}
.trend-no-data{position:absolute;bottom:0;width:min(70%,42px);border-top:2px dotted #cbd5e2}
.trend-date,.trend-date-full{font-size:11px;color:#66768d;white-space:nowrap}
.trend-date-full{font-variant-numeric:tabular-nums}
.clients-card .card-header,.recent-backups-card .card-header{margin-bottom:12px}
.dashboard-table th{padding-top:12px;padding-bottom:12px}
.dashboard-table td{padding-top:12px;padding-bottom:12px}
.dashboard-table .table-primary,.dashboard-table .table-secondary{display:block}
.dashboard-table .table-primary{font-weight:650;color:#34465e}
.dashboard-table .table-secondary{font-size:12px;color:#78879b;margin-top:3px}
.agent-state{display:flex;align-items:center;gap:8px;font-size:13px;color:#43546a}
.state-dot{height:9px;width:9px;border-radius:50%;background:#98a4b4;flex:none}
.state-dot.is-online{background:#1ba56d;box-shadow:0 0 0 3px #1ba56d20}
.state-dot.is-offline{background:#df5660;box-shadow:0 0 0 3px #df566020}
.first-client{display:flex;justify-content:center;align-items:center;gap:18px;min-height:190px;padding:26px;text-align:left}
.first-client-icon{display:grid;place-items:center;width:54px;height:54px;flex:none;border-radius:17px;background:#edf4ff;color:#346bce;font-size:25px}
.first-client h3{margin:0 0 5px;color:#273b55}
.first-client p{max-width:420px;margin:0 0 16px;color:#62738b;line-height:1.5}
.attention-count{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:10px;background:#fff1dc;color:#995b0b;font-size:13px;font-weight:750}
.attention-list{display:grid;gap:0;padding:0;margin:0;list-style:none}
.attention-item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;padding:12px 0;border-bottom:1px solid #edf0f4}
.attention-item:last-child{border-bottom:0}
.attention-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#fff0f1;color:#bd3446;font-size:15px;font-weight:800}
.attention-item.offline .attention-icon{background:#fff3df;color:#a46611}
.attention-item strong,.attention-item small{display:block}
.attention-item small{margin-top:3px;color:#738197}
.attention-clear{display:flex;align-items:flex-start;gap:11px;padding:12px 2px}
.attention-clear>span{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:10px;background:#e7f7ef;color:#168355;font-size:16px;font-weight:800}
.attention-clear strong{display:block;font-size:14px;color:#30425a}
.attention-clear p{margin:4px 0 0;color:#738197;font-size:13px;line-height:1.5}
.onboarding-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:start;padding:17px;background:linear-gradient(145deg,#edf4ff,#fff)}
.onboarding-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#dfeaff;color:#2563d9}
.onboarding-icon svg{width:23px;height:23px}
.onboarding-card h2{margin:0;color:#263d5b;font-size:15px}
.onboarding-card p{margin:5px 0 8px;color:#62748c;font-size:13px;line-height:1.5}
.onboarding-card .text-link{padding:3px 0}
.dashboard-security-note{display:flex;align-items:center;gap:8px;padding:4px 3px;color:#708096;font-size:12px}
.dashboard-security-note span:first-child{color:#6389c9}
.storage-card{padding:19px}
.storage-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:7px;background:#edf4ff;color:#4169a8;font-size:10px;font-weight:750;letter-spacing:.45px}
.storage-overview{display:grid;grid-template-columns:122px minmax(0,1fr);gap:16px;align-items:center}
.storage-ring{display:grid;place-items:center;width:122px;height:122px;border-radius:50%;background:conic-gradient(#2867ea var(--storage-percent),#e7edf5 0);position:relative}
.storage-ring:before{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}
.storage-ring>div{position:relative;z-index:1;display:grid;justify-items:center;gap:1px}
.storage-ring strong{font-size:25px;line-height:1.1;color:#1d2d45}
.storage-ring span{font-size:12px;color:#667791}
.storage-values{display:grid;gap:11px;min-width:0}
.storage-values>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:7px;align-items:center;min-width:0}
.value-dot{width:9px;height:9px;border-radius:50%;background:#2d6fec}
.value-dot.free-dot{background:#aebbd0}
.value-dot.backup-dot{background:#7fa8ed}
.storage-values>div>span:not(.value-dot){color:#52647c;line-height:1.35}
.storage-values>div>strong{font-variant-numeric:tabular-nums;color:#25374f;white-space:nowrap}
.storage-values>p{grid-column:1/-1;margin:0;color:#718098}
.storage-progress{height:9px;margin-top:16px;border-radius:20px;background:#e8eef5;overflow:hidden}
.storage-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2867e8,#75a4ff)}
.storage-unavailable{padding:24px 8px;color:#62738b;font-size:13px}
.sidebar-storage{padding:13px 11px;margin:3px 2px 10px;border:1px solid #ffffff17;border-radius:11px;background:#ffffff08;color:#d3deeb}
.sidebar-storage-head,.sidebar-storage-foot{display:flex;justify-content:space-between;gap:7px}
.sidebar-storage-head{color:#edf3fc;font-weight:650}
.sidebar-storage-foot{margin-top:7px;color:#b4c3d6;font-variant-numeric:tabular-nums}
.sidebar-storage-head b{color:#fff}
.sidebar-meter{height:7px;margin-top:9px;border-radius:20px;background:#ffffff20;overflow:hidden}
.sidebar-meter span{display:block;height:100%;border-radius:inherit;background:#5792ff}
.sidebar-storage-unavailable{color:#c0ccda;line-height:1.4}
.day-options{background:#f7f9fc}
.day-option{font-size:13px;min-height:38px}
.day-option input{width:16px;height:16px}
.login-card h2{font-size:29px}
.login-card>p{font-size:15px}
.login-page{color:var(--ink)}
.toast{font-size:13px}
@media(max-width:980px){.settings-layout{grid-template-columns:1fr}.settings-form{max-width:none}}
@media(max-width:760px){.topbar-right{gap:7px}.theme-toggle{width:38px;padding:7px;justify-content:center}.theme-toggle .theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.page-heading p{font-size:14px}.settings-card{padding:18px}.data-table{min-width:690px}.trend-card,.clients-card{overflow:hidden}}
@media(max-width:460px){.button{font-size:13px;padding:9px 11px}.metric-title{font-size:12px}.metric-foot{font-size:11px}.metric-value{font-size:24px}.settings-card{padding:15px}.form-actions .button{width:100%}.storage-overview{gap:12px}.storage-ring{width:106px;height:106px}.storage-values>div{grid-template-columns:9px minmax(0,1fr);}.storage-values>div>strong{grid-column:2}.theme-toggle{min-height:36px}.page-heading h1{font-size:25px}}
html[data-text-size="large"] #app :is(.nav-item,.breadcrumb,.top-date,.theme-toggle,.page-heading p,.metric-title,.metric-foot,.card-subtitle,.text-link,.data-table th,.data-table td,.client-name,.client-caption,.form-field label,.form-field input,.form-field select,.form-field textarea,.form-hint,.button,.status,.activity-copy strong,.activity-copy span,.activity-time,.progress-head,.file-title strong,.file-title span,.file-meta,.router-main strong,.router-main span,.router-meta,.agent-title strong,.agent-title span,.log-line,.empty-state strong,.empty-state p,.sidebar-help strong,.sidebar-help span,.account-info strong,.account-info span,.sidebar-storage-head,.sidebar-storage-foot,.preference-label,.preference-option,.preference-option span,.storage-values>div>span:not(.value-dot),.storage-values>div>strong,.storage-values>p){font-size:calc(1em + 1px)}
html[data-text-size="xlarge"] #app :is(.nav-item,.breadcrumb,.top-date,.theme-toggle,.page-heading p,.metric-title,.metric-foot,.card-subtitle,.text-link,.data-table th,.data-table td,.client-name,.client-caption,.form-field label,.form-field input,.form-field select,.form-field textarea,.form-hint,.button,.status,.activity-copy strong,.activity-copy span,.activity-time,.progress-head,.file-title strong,.file-title span,.file-meta,.router-main strong,.router-main span,.router-meta,.agent-title strong,.agent-title span,.log-line,.empty-state strong,.empty-state p,.sidebar-help strong,.sidebar-help span,.account-info strong,.account-info span,.sidebar-storage-head,.sidebar-storage-foot,.preference-label,.preference-option,.preference-option span,.storage-values>div>span:not(.value-dot),.storage-values>div>strong,.storage-values>p){font-size:calc(1em + 3px)}
html[data-theme="dark"]{color-scheme:dark;--ink:#e8eef8;--muted:#aab7c9;--line:#2d3b50;--canvas:#0d1726;--white:#172438;background:var(--canvas);color:var(--ink)}
html[data-theme="dark"] body,html[data-theme="dark"] #app,html[data-theme="dark"] .app-shell,html[data-theme="dark"] .main-area,html[data-theme="dark"] .main-content{background:#0d1726;color:#e8eef8}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .card,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .modal,html[data-theme="dark"] .login-page,html[data-theme="dark"] .login-side{background:#172438;color:#e8eef8;border-color:#2b3a50}
html[data-theme="dark"] .login-page{background:#172438}
html[data-theme="dark"] .topbar{border-color:#29384d}
html[data-theme="dark"] .page-heading h1,html[data-theme="dark"] .card-title,html[data-theme="dark"] .metric-value,html[data-theme="dark"] .client-name,html[data-theme="dark"] .file-title strong,html[data-theme="dark"] .router-main strong,html[data-theme="dark"] .agent-title strong,html[data-theme="dark"] .activity-copy strong,html[data-theme="dark"] .attention-item strong,html[data-theme="dark"] .empty-state strong,html[data-theme="dark"] .preference-label,html[data-theme="dark"] .form-field label,html[data-theme="dark"] .storage-values>div>strong{color:#e8eef8}
html[data-theme="dark"] .page-heading p,html[data-theme="dark"] .card-subtitle,html[data-theme="dark"] .metric-title,html[data-theme="dark"] .metric-foot,html[data-theme="dark"] .data-table th,html[data-theme="dark"] .data-table td,html[data-theme="dark"] .client-caption,html[data-theme="dark"] .file-title span,html[data-theme="dark"] .form-hint,html[data-theme="dark"] .activity-copy span,html[data-theme="dark"] .activity-time,html[data-theme="dark"] .router-main span,html[data-theme="dark"] .router-meta,html[data-theme="dark"] .agent-title span,html[data-theme="dark"] .empty-state p,html[data-theme="dark"] .storage-values>div>span:not(.value-dot),html[data-theme="dark"] .storage-values>p{color:#aab7c9}
html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .preference-option,html[data-theme="dark"] .button-secondary,html[data-theme="dark"] .search-box input,html[data-theme="dark"] .filter-select,html[data-theme="dark"] .form-field input,html[data-theme="dark"] .form-field select,html[data-theme="dark"] .form-field textarea{background:#111d2e;color:#e8eef8;border-color:#3a4b63}
html[data-theme="dark"] .theme-toggle:hover,html[data-theme="dark"] .preference-option:hover{background:#1c2d45}
html[data-theme="dark"] .preference-option[aria-pressed="true"]{background:#1d3a68;color:#dceaff;border-color:#6d9cf4}
html[data-theme="dark"] .button-secondary:hover,html[data-theme="dark"] .button-quiet:hover{background:#23344c}
html[data-theme="dark"] .data-table th,html[data-theme="dark"] .data-table td,html[data-theme="dark"] .activity-item,html[data-theme="dark"] .activity-item:last-child{border-color:#2b3a4f}
html[data-theme="dark"] .data-table tbody tr:hover{background:#1c2b40}
html[data-theme="dark"] .empty-icon,html[data-theme="dark"] .metric-icon,html[data-theme="dark"] .agent-mark,html[data-theme="dark"] .file-symbol{background:#20324b;color:#a9c6fb}
html[data-theme="dark"] .info-strip{background:#172d4a;color:#c4d7f3;border-color:#2d4c74}
html[data-theme="dark"] .info-strip b{color:#d3e3ff}
html[data-theme="dark"] .day-options{background:#111d2e;border-color:#34465d}
html[data-theme="dark"] .day-option{background:#19283d;color:#cbd7e7;border-color:#3a4a60}
html[data-theme="dark"] .day-option:has(input:checked){background:#203e6e;color:#e0ebff;border-color:#7198eb}
html[data-theme="dark"] .storage-progress,html[data-theme="dark"] .progress,html[data-theme="dark"] .sidebar-meter{background:#29384d}
html[data-theme="dark"] .router-card,html[data-theme="dark"] .detail-block,html[data-theme="dark"] .token-box{background:#142136;border-color:#33455f}
html[data-theme="dark"] .token-output input{background:#101c2d;color:#dceaff;border-color:#354963}
html[data-theme="dark"] .login-error{background:#3a202b;color:#ffdadd;border-color:#69404a}
html[data-theme="dark"] .modal-header,html[data-theme="dark"] .modal-footer{border-color:#2c3b50}
html[data-theme="dark"] .skip-link{background:#172438;color:#e8eef8}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:1120px){.dashboard-layout{grid-template-columns:1fr}.dashboard-side-column{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.dashboard-side-column>.storage-card{grid-row:span 2}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-side-column{grid-template-columns:1fr}.dashboard-side-column>.storage-card{grid-row:auto}.trend-card{padding:17px}.trend-plot{gap:5px;padding-left:0;padding-right:0}.trend-day{grid-template-rows:16px 90px 20px 19px}.trend-date{font-size:10px}.trend-date-full{font-size:10px}.first-client{justify-content:flex-start;min-height:160px;padding:20px}.dashboard-table{min-width:760px}}
@media(max-width:460px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metrics .metric-card{min-height:126px}.dashboard-metrics .metric-value{font-size:23px}.trend-legend{gap:8px;font-size:11px;flex-wrap:wrap}.trend-period{width:100%;margin-left:0}.trend-day{grid-template-rows:16px 78px 19px 18px}.trend-date{font-size:9px}.trend-date-full{font-size:9px}.trend-bar-track>span:not(.trend-no-data){width:76%}.storage-overview{grid-template-columns:100px minmax(0,1fr)}.storage-ring{width:100px;height:100px}.storage-ring:before{inset:8px}.storage-values{gap:8px}}
html[data-theme="dark"] .storage-ring:before{background:#172438}
html[data-theme="dark"] .onboarding-card{background:linear-gradient(145deg,#1b2d47,#172438);border-color:#344760}
html[data-theme="dark"] .onboarding-icon{background:#243b5d;color:#b8d0ff}
html[data-theme="dark"] .onboarding-card h2,html[data-theme="dark"] .first-client h3,html[data-theme="dark"] .attention-clear strong{color:#e8eef8}
html[data-theme="dark"] .onboarding-card p,html[data-theme="dark"] .first-client p,html[data-theme="dark"] .attention-clear p,html[data-theme="dark"] .dashboard-security-note{color:#aab7c9}
html[data-theme="dark"] .first-client-icon{background:#203552;color:#b6ceff}
html[data-theme="dark"] .dashboard-table .table-primary,html[data-theme="dark"] .agent-state{color:#d4deed}
html[data-theme="dark"] .dashboard-table .table-secondary{color:#aab7c9}
html[data-theme="dark"] .attention-item{border-color:#2b3a4f}
html[data-theme="dark"] .attention-item.failure .attention-icon{background:#482631;color:#ffb4bc}
html[data-theme="dark"] .attention-item.offline .attention-icon,html[data-theme="dark"] .attention-count{background:#49371e;color:#ffd08a}
html[data-theme="dark"] .attention-clear>span{background:#1c3c33;color:#75d6a7}
html[data-theme="dark"] .trend-legend,html[data-theme="dark"] .trend-count,html[data-theme="dark"] .trend-date,html[data-theme="dark"] .trend-date-full{color:#aab7c9}
html[data-theme="dark"] .trend-plot{border-color:#34445a}
html[data-theme="dark"] .trend-no-data{border-color:#516078}
html[data-theme="dark"] .storage-badge{background:#203653;color:#b6cff8}
html[data-theme="dark"] .value-dot.free-dot{background:#9baac0}
html[data-theme="dark"] .value-dot.backup-dot{background:#7da8f2}
html[data-theme="dark"] .status.ok{background:#1b3c32;color:#7cdbaf}
html[data-theme="dark"] .status.warn{background:#463719;color:#ffd18a}
html[data-theme="dark"] .status.bad{background:#49262d;color:#ffadb6}
html[data-theme="dark"] .status.neutral{background:#2a384c;color:#d1dbea}

/* Vector icon system and dashboard polish */
.ui-icon{display:inline-block;width:1.2em;height:1.2em;flex:none;vertical-align:-.18em;stroke:currentColor;stroke-width:1.8;overflow:visible}
.nav-icon .ui-icon{width:19px;height:19px;stroke-width:1.9}
.metric-icon .ui-icon{width:20px;height:20px}
.icon-button .ui-icon{width:17px;height:17px}
.button .ui-icon,.text-link .ui-icon{width:16px;height:16px}
.empty-icon .ui-icon{width:23px;height:23px}
.first-client-icon .ui-icon{width:25px;height:25px}
.file-symbol .ui-icon{width:19px;height:19px}
.agent-mark .ui-icon{width:20px;height:20px}
.activity-dot .ui-icon,.attention-icon .ui-icon{width:17px;height:17px}
.attention-clear>span .ui-icon{width:18px;height:18px}
.theme-toggle .ui-icon{width:17px;height:17px}
.onboarding-icon .ui-icon{width:23px;height:23px}
.dashboard-layout{grid-template-columns:minmax(0,1fr) 352px;gap:18px}
.dashboard-main-column,.dashboard-side-column{gap:18px}
.dashboard-metrics{gap:16px;margin-bottom:20px}
.dashboard-layout .card{border:1px solid var(--line);box-shadow:0 2px 8px rgba(16,36,62,.035),0 14px 34px rgba(16,36,62,.04)}
.trend-card{padding:19px 22px 17px}
.trend-card .card-header{margin-bottom:14px}
.trend-plot{gap:10px;margin-top:12px}
.trend-day{grid-template-rows:16px 88px 20px 18px;gap:2px}
.trend-empty{display:flex;align-items:center;gap:14px;min-height:104px;padding:16px 18px;border:1px solid #e8eef7;border-radius:12px;background:linear-gradient(115deg,#f7faff,#fbfcfe)}
.trend-empty-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:13px;background:#eaf1ff;color:#3d70d5}
.trend-empty strong{display:block;color:#31445e;font-size:14px;font-weight:700}
.trend-empty p{margin:3px 0 0;color:#718097;font-size:13px;line-height:1.45}
.first-client{min-height:132px;padding:22px}
.first-client-icon{width:48px;height:48px;border-radius:15px}
.first-client h3{font-size:17px}
.first-client p{margin-bottom:12px}
.storage-card{padding:18px}
.storage-card .card-header{margin-bottom:14px}
.storage-overview{grid-template-columns:88px minmax(0,1fr);gap:14px}
.storage-ring{width:88px;height:88px;background:conic-gradient(#3977ec var(--storage-percent),#e7edf5 0)}
.storage-ring:before{inset:7px}
.storage-ring strong{font-size:21px}
.storage-ring span{font-size:11px}
.storage-values{gap:9px}
.storage-values>div{grid-template-columns:8px minmax(0,1fr) auto;gap:7px}
.storage-values>div>span:not(.value-dot){white-space:nowrap;font-size:12px;color:#5e6d82}
.storage-values>div>strong{font-size:13px;color:#25374f}
.storage-footnote{margin:10px 0 0;color:#77859a;font-size:12px}
.storage-progress{height:7px;margin-top:10px}
.attention-card .card-header{margin-bottom:8px}
.attention-clear{padding:10px 2px}
.nav-item .ui-icon{color:currentColor}
.button .ui-icon{vertical-align:-.2em}
.text-link .ui-icon{vertical-align:-.2em}
.button-primary .ui-icon{stroke-width:2}
.attention-icon,.attention-clear>span,.activity-dot{font-size:0}
html[data-theme="dark"] .dashboard-layout .card{border-color:#2d3e54;box-shadow:0 2px 8px rgba(0,0,0,.08),0 14px 34px rgba(0,0,0,.08)}
html[data-theme="dark"] .trend-empty{background:linear-gradient(115deg,#1a2b42,#172438);border-color:#2e415c}
html[data-theme="dark"] .trend-empty-icon{background:#243b5d;color:#b6ceff}
html[data-theme="dark"] .trend-empty strong{color:#e0e8f5}
html[data-theme="dark"] .trend-empty p,html[data-theme="dark"] .storage-footnote{color:#aab7c9}
html[data-theme="dark"] .storage-values>div>span:not(.value-dot){color:#b9c6d8}
html[data-theme="dark"] .storage-values>div>strong{color:#e0e8f5}

/* Customer source cards and backup file explorer */
.file-filters{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr));gap:13px;padding:17px 18px 10px}
.file-filters .form-field{gap:6px}
.file-filters .form-field label{color:var(--muted);font-size:12px;font-weight:650}
.file-filters .form-field input,.file-filters .form-field select{min-height:42px}
.file-search .search-box{min-height:42px;max-width:none}
.file-toolbar{margin:0 18px 10px;padding:11px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.file-toolbar .toolbar-right{gap:8px}
.load-more-row{display:flex;justify-content:center;padding:16px 18px 20px}
.load-more-row{display:flex;justify-content:center;padding:16px 18px 20px}
.source-list{display:grid;gap:10px;padding:2px 18px 18px}
.source-row{display:grid;grid-template-columns:40px minmax(180px,1fr) auto auto auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.source-main{display:grid;gap:4px;min-width:0}
.source-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:14px}
.source-main>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
.source-card{margin:0 18px 12px}
.source-details{display:flex;flex-wrap:wrap;gap:8px 18px;margin:10px 0 2px;padding-left:44px;color:var(--muted);font-size:12px}
.source-details code{margin-left:4px;padding:2px 5px;border-radius:5px;background:var(--subtle);color:var(--text);font-size:11px}
.source-card .agent-actions{padding-left:44px}
.router-actions{flex-wrap:wrap}
.script-disclosure{border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:var(--subtle)}
.script-disclosure summary{cursor:pointer;color:var(--text);font-weight:700;font-size:13px}
.script-disclosure p{color:var(--muted);font-size:12px;line-height:1.5;margin:9px 0}
.router-script{max-height:270px;overflow:auto;margin:10px 0;padding:15px;border-radius:10px;background:#0e1726;color:#d8e6ff;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word}
.router-script-actions{display:flex;gap:8px;flex-wrap:wrap}
.danger-icon{color:#b63b48}
.danger-icon:hover{background:#fff0f1;border-color:#efc0c5;color:#9f2531}
.data-table input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:#2864e8;vertical-align:middle}
html[data-theme="dark"] .source-row{background:#152338;border-color:#31445d}
html[data-theme="dark"] .source-main strong{color:#e8eef8}
html[data-theme="dark"] .source-details code{background:#223650;color:#dce7f8}
html[data-theme="dark"] .script-disclosure{background:#121e30;border-color:#354862}
html[data-theme="dark"] .danger-icon{color:#ffadb6}
html[data-theme="dark"] .danger-icon:hover{background:#48262e;border-color:#75404a}
@media(max-width:1050px){.file-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}.source-row{grid-template-columns:40px minmax(170px,1fr) auto auto}.source-row>.button:last-child{grid-column:2}}
@media(max-width:700px){.file-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.file-search{grid-column:1/-1}.file-toolbar{margin:0 14px 8px}.source-list{padding:2px 12px 12px}.source-row{grid-template-columns:36px minmax(0,1fr) auto}.source-row>.status{grid-column:3;grid-row:1}.source-row>.button{grid-column:2/-1;width:100%}.source-details,.source-card .agent-actions{padding-left:0}.source-card .agent-actions{flex-direction:column;align-items:stretch}.file-toolbar .toolbar-right{flex-direction:column}.file-toolbar .button{width:100%}}
@media(max-width:1120px){.dashboard-layout{grid-template-columns:1fr}.dashboard-side-column{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.dashboard-side-column>.storage-card{grid-row:span 2}}
@media(max-width:760px){.dashboard-side-column{grid-template-columns:1fr}.dashboard-side-column>.storage-card{grid-row:auto}.trend-empty{min-height:88px;padding:13px}.trend-empty p{font-size:12px}}
@media(max-width:460px){.dashboard-layout{gap:12px}.dashboard-main-column,.dashboard-side-column{gap:12px}.dashboard-metrics{gap:10px;margin-bottom:14px}.trend-card{padding:16px}.trend-day{grid-template-rows:15px 78px 18px 16px}.storage-overview{grid-template-columns:82px minmax(0,1fr);gap:10px}.storage-ring{width:82px;height:82px}.storage-values{gap:7px}.storage-values>div>span:not(.value-dot){font-size:11px}.storage-values>div>strong{font-size:12px}}
