/* CCSM MCP — institutional interface. No CDN, external fonts or build pipeline. */
:root {
    --bg:#f5f7fb; --ink:#182b41; --sub:#66778d; --line:#e3e9f1; --surface:#fff;
    --navy:#102a48; --blue:#165da0; --primary:#1166a3; --teal:#13a0a2;
    --green:#14815e; --amber:#9f6a18; --radius:18px;
    font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
    color:var(--ink); background:var(--bg); font-size:15px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;line-height:1.5;min-width:320px}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
:focus-visible{outline:3px solid #5ac1f8;outline-offset:3px}
.container{max-width:1280px;margin:0 auto;padding:0 36px}
.site-wrapper{overflow-x:hidden;min-height:100vh;background:linear-gradient(147deg,#f8fbff 0%,#f6f8fc 49%,#f0f5fa 100%)}
.site-header{height:96px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e6edf4}
.identity{display:inline-flex;gap:13px;align-items:center;min-width:0}
.identity-mark{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:linear-gradient(135deg,#126394,#0b3d67);color:white;box-shadow:0 6px 14px #1a52772d;font-size:25px;font-weight:800;flex-shrink:0}
.identity-mark svg{width:29px;height:29px;stroke-width:4}
.identity strong{font-size:20px;letter-spacing:-.6px;color:#152f50;white-space:nowrap}
.identity strong b{color:#177ea3}
.identity small{display:block;color:#7d8998;font-size:11px;margin-top:-3px;white-space:nowrap}
.top-nav{display:flex;align-items:center;gap:29px;font-weight:600;font-size:13px;color:#50677f}
.top-nav a:not(.nav-highlight):hover{color:#1266a4}
.nav-highlight{background:#173a5d;color:white!important;padding:13px 19px;border-radius:10px;box-shadow:0 6px 18px #123b6022}
.nav-highlight:hover{background:#0e517c}
.nav-highlight span{margin-left:7px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(340px,0.92fr);gap:clamp(28px,6vw,90px);align-items:center;padding-top:75px;padding-bottom:76px}
.hero-copy{max-width:690px}
.eyebrow{display:inline-flex;align-items:center;gap:9px;color:#168a98;font-size:10px;font-weight:800;letter-spacing:1.55px;line-height:1.3}
.eyebrow-dot{width:8px;height:8px;background:#18a7a1;border-radius:50%;box-shadow:0 0 0 4px #18a7a11e}
.eyebrow.muted{color:#7d90a5}
.hero-copy h1{font-size:clamp(37px,4.7vw,61px);letter-spacing:-2.6px;line-height:1.12;margin:19px 0 23px;font-weight:800}
.hero-copy h1 span{color:#1681a1}
.hero-description{font-size:17px;color:#66778c;line-height:1.8;max-width:640px;margin:0 0 27px}
.hero-tags{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 42px}
.hero-tags span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;color:#445c75}
.hero-tags svg{width:16px;height:16px;color:#168caa}
.hero-system{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #e4ebf3;padding:17px 19px;border-radius:14px;max-width:585px;box-shadow:0 7px 30px #1c41540c}
.system-icon{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;background:#e9f4fa;color:#0f759d;border-radius:12px}
.system-icon svg{width:24px;height:24px}
.hero-system strong{font-size:13px;display:block}
.hero-system small{font-size:11px;color:#8491a0;display:block;margin-top:3px}
.system-link{margin-left:auto;font-size:12px;font-weight:700;color:#1679a0;white-space:nowrap}
.signin-card{position:relative;padding:34px 34px 25px;background:var(--surface);border:1px solid #e3eaf1;border-radius:20px;box-shadow:0 25px 80px #25415b13,0 2px 10px #14345208}
.signin-card::before{content:"";position:absolute;width:70px;height:4px;border-radius:0 0 6px 6px;background:#1ea6b0;top:-1px;left:33px}
.signin-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.access-icon{width:45px;height:45px;display:grid;place-items:center;background:#edf6fa;border-radius:11px;color:#126a96}
.access-icon svg{width:23px;height:23px}
.admin-badge{background:#eff4f9;color:#607b94;font-size:9px;letter-spacing:.8px;padding:7px 10px;border-radius:7px;font-weight:750}
.signin-card h2{margin:0 0 7px;font-size:25px;letter-spacing:-.7px}
.signin-intro{font-size:13px;color:#8290a2;margin:0 0 27px;max-width:380px}
.signin-card label{display:block;color:#364a62;font-size:12px;font-weight:750;margin:0 0 9px}
.input-shell{height:47px;border:1px solid #e0e7ee;border-radius:9px;display:flex;align-items:center;gap:10px;padding:0 13px;background:#fafdff;margin-bottom:20px;transition:border-color .15s,box-shadow .15s}
.input-shell:focus-within{border-color:#1994b0;box-shadow:0 0 0 3px #21acaf16}
.input-shell svg{height:17px;width:17px;color:#8b9aad}
.input-shell input{width:100%;border:0;outline:0;background:transparent;color:#263e55;font-size:13px}
.input-shell input::placeholder{color:#a9b3be}
.primary-btn,.secondary-btn{min-height:49px;border-radius:10px;border:0;padding:13px 20px;display:flex;align-items:center;justify-content:center;gap:15px;font-weight:750;font-size:13px}
.primary-btn{background:linear-gradient(110deg,#176996,#0d527d);color:white;box-shadow:0 9px 20px #0a567226}
.primary-btn:hover{background:#104f7c}
.secondary-btn{background:#e7eef5;color:#294765}
.full-width{width:100%}
.primary-btn span{font-size:21px;line-height:10px}
.auth-divider{position:relative;display:flex;justify-content:center;margin:24px 0 21px;color:#9da8b5;font-size:11px}
.auth-divider::before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:#e8edf2}
.auth-divider span{position:relative;background:white;padding:0 16px}
.google-btn{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;border:1px solid #dce5ec;border-radius:10px;background:white;color:#3d536b;font-size:13px;font-weight:700;height:49px}
.google-btn:not(:disabled):hover{background:#f8fafc;border-color:#b9cbd9}
.google-disabled{background:#fafbfd;color:#7f90a2}
.google-btn small{color:#a0adbb;font-size:10px;margin-left:auto;margin-right:10px}
.google-g{font-family:Arial,sans-serif;color:#4285f4;font-size:21px;font-weight:800}
.signin-footnote{display:flex;align-items:center;gap:8px;justify-content:center;color:#98a5b1;font-size:10px;margin:20px 0 0}
.signin-footnote svg{width:14px;height:14px;color:#2fae91}
.notice{border-radius:9px;background:#f0f5fa;color:#3b5971;padding:11px 13px;font-size:12px;margin-bottom:18px}
.notice-error{background:#fff1f0;color:#a63631;border:1px solid #f7d3d0}
.notice-success{background:#eaf9f2;color:#197a58}
.health-section{padding-top:18px;padding-bottom:52px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:27px}
.section-heading h2{font-size:25px;margin:5px 0 3px;letter-spacing:-.65px}
.section-heading p{font-size:13px;color:#8290a2;margin:0}
.last-updated,.subtle-label{font-size:11px;color:#8b99a8;white-space:nowrap}
.status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.health-card{background:white;padding:22px;border:1px solid #e3eaf1;border-radius:15px;box-shadow:0 5px 20px #152e4108;min-height:165px}
.health-header{display:flex;justify-content:space-between;align-items:start;gap:8px}
.health-icon,.metric-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:11px}
.health-icon svg{width:21px;height:21px}
.icon-blue{background:#e9f3ff;color:#1a77be}
.icon-cyan{background:#e3f8f8;color:#15a0a5}
.icon-violet{background:#f1edff;color:#7862bb}
.icon-amber{background:#fff5e5;color:#b17a21}
.icon-green{background:#e7f8f0;color:#20a579}
.health-state,.service-tag{font-size:10px;font-weight:750;border-radius:7px;padding:5px 9px;display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.health-state i,.live-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}
.state-online{background:#e9f8f1;color:#17825f}
.state-warning{background:#fff4e5;color:#9b6a18}
.state-waiting{background:#eef4f8;color:#637e98}
.state-offline{background:#fff0ee;color:#b23d35}
.state-unknown{background:#eef2f7;color:#7c8998}
.health-card h3{font-size:14px;margin:21px 0 4px}
.health-card p{font-size:11px;color:#8390a1;margin:0}
.status-explainer{display:flex;align-items:center;gap:7px;font-size:11px;color:#8996a6;margin:16px 0}
.status-explainer svg{width:15px;height:15px}
.resource-section{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:8px;padding-bottom:78px}
.resource-panel{display:flex;gap:20px;background:#eef4fa;border:1px solid #e1eaf3;border-radius:15px;padding:24px 26px}
.resource-symbol{height:48px;width:48px;display:grid;place-items:center;flex-shrink:0;color:#167c9b;background:#dceef4;border-radius:11px}
.resource-symbol-purple{color:#6d70b5;background:#e6e8f9}
.resource-panel h2{font-size:17px;letter-spacing:-.3px;margin:7px 0 7px}
.resource-panel p{font-size:12px;color:#75899e;line-height:1.75;margin:0 0 15px}
.text-action{color:#1a729c;font-size:12px;font-weight:750}
.text-action:hover{text-decoration:underline}
.endpoint{display:flex;align-items:center;background:white;border:1px solid #dce6ef;border-radius:8px;padding:8px 9px 8px 12px;gap:8px;max-width:480px}
.endpoint code{font-family:Consolas,monospace;color:#406783;font-size:11px;overflow-wrap:anywhere}
.endpoint button{border:0;background:#eaf2f9;color:#246183;font-size:10px;font-weight:750;border-radius:6px;padding:7px;margin-left:auto}
.site-footer{border-top:1px solid #dfe7f0;min-height:85px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;color:#99a5b2;font-size:11px}
.site-footer a{color:#457895}

/* Authenticated administrative dashboard */
.dashboard-body{background:#f5f7fb}
.dashboard-layout{display:flex;min-height:100vh}
.sidebar{width:262px;min-width:262px;background:#102b49;color:#c8d7e5;display:flex;flex-direction:column;padding:27px 17px 20px;position:sticky;top:0;height:100vh;overflow-y:auto}
.sidebar-identity{padding:0 12px 36px}
.sidebar-identity .identity-mark{background:#1c719f;border:1px solid #5a8ca8;box-shadow:none;font-size:25px}
.sidebar-identity .identity strong{color:#fff}
.sidebar-identity strong{color:white}
.sidebar-identity strong b{color:#75cbde}
.sidebar-identity small{color:#8ba8bf}
.sidebar-group-label{color:#64839c;font-weight:800;letter-spacing:1.4px;font-size:10px;margin:4px 13px 14px}
.sidebar-nav{display:grid;gap:5px}
.sidebar-nav a{padding:12px 14px;border-radius:10px;display:flex;align-items:center;gap:14px;color:#a8bed1;font-size:13px;font-weight:650}
.sidebar-nav a span{font-size:19px;line-height:1;color:#90bed5;width:22px;text-align:center}
.sidebar-nav a.active,.sidebar-nav a:hover{background:#1d4364;color:white}
.sidebar-nav a.active{border-left:3px solid #49c1c1}
.sidebar-spacer{flex:1;min-height:20px}
.sidebar-access{font-size:10px;color:#a4c2d2;background:#153855;padding:12px;border-radius:8px;display:flex;align-items:center;gap:8px;margin-bottom:16px}
.sidebar-access-dot{width:8px;height:8px;background:#44d1a4;border-radius:50%}
.sidebar-account{display:flex;gap:11px;align-items:center;margin:0 3px 16px;min-width:0}
.avatar,.profile-avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;background:#26749e;color:white;font-weight:750;flex-shrink:0}
.sidebar-account div{min-width:0}
.sidebar-account strong,.sidebar-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-account strong{color:white;font-size:12px}
.sidebar-account small{font-size:10px;color:#8eabc1}
.sidebar-logout{width:100%;background:#183957;color:#bfcede;border:0;border-radius:8px;padding:11px;display:flex;justify-content:space-between;font-size:12px}
.sidebar-logout:hover{background:#245378}
.dashboard-main{flex:1;min-width:0}
.dashboard-topbar{height:76px;padding:0 36px;border-bottom:1px solid #e3eaf0;background:white;display:flex;align-items:center;justify-content:space-between;gap:20px}
.breadcrumbs{font-size:12px;color:#98a5b3}
.breadcrumbs span{margin:0 10px;color:#bcc6d0}
.breadcrumbs strong{color:#3a536c}
.dashboard-top-actions{display:flex;align-items:center;gap:16px}
.live-badge{color:#1a8c68;font-size:11px;font-weight:700;display:flex;gap:8px;align-items:center}
.refresh-btn{padding:9px 14px;border:1px solid #dfe7f0;border-radius:8px;font-size:12px;font-weight:700;color:#4a6681}
.refresh-btn:hover{background:#f2f7fa}
.dashboard-content{padding:39px 39px 45px;max-width:1500px;margin:0 auto}
.welcome-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:35px}
.welcome-row h1{font-size:31px;line-height:1.2;margin:8px 0 7px;letter-spacing:-1px}
.welcome-row p{font-size:13px;color:#8293a5;margin:0}
.dashboard-date{font-size:11px;color:#889aab;white-space:nowrap}
.section-heading.compact{margin-bottom:17px}
.section-heading.compact h2{font-size:17px;margin:0}
.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}
.metric-card{border:1px solid #e5eaf2;background:white;border-radius:14px;padding:20px;box-shadow:0 5px 14px #233c5108}
.metric-top{display:flex;justify-content:space-between;gap:10px;align-items:start;color:#6f8193;font-size:11px;font-weight:700}
.metric-icon{width:34px;height:34px;font-size:20px}
.metric-card>strong{display:block;font-size:34px;letter-spacing:-1px;line-height:1.35;margin-top:3px;color:#233c57}
.metric-card>small{font-size:10px;color:#8e9cac}
.dashboard-panel{background:white;border:1px solid #e4eaf1;border-radius:15px;overflow:hidden;box-shadow:0 5px 20px #1b2a3c08;margin-bottom:22px}
.panel-heading{padding:21px 23px;display:flex;justify-content:space-between;gap:18px;align-items:center;border-bottom:1px solid #edf1f5}
.panel-heading h2{font-size:16px;letter-spacing:-.3px;margin:0}
.panel-heading p{font-size:11px;color:#8b9aab;margin:4px 0 0}
.mini-muted{color:#9ca9b8;font-size:10px}
.dashboard-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.service-item{padding:18px 23px;border-bottom:1px solid #f0f3f7;display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 15px}
.service-item:nth-child(odd){border-right:1px solid #f0f3f7}
.service-name{font-size:12px;font-weight:750;display:flex;align-items:center;gap:8px}
.service-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#9ca7b2}
.state-dot-online{background:#2eae82}.state-dot-warning{background:#dbac45}.state-dot-waiting{background:#9daabb}.state-dot-offline{background:#e56d5a}
.service-details{grid-column:1;font-size:10px;color:#94a2b0;padding-left:16px}
.service-item .service-tag{grid-column:2;grid-row:1 / span 2}
.dashboard-columns{display:grid;grid-template-columns:1.22fr 0.78fr;gap:22px}
.count-chip{background:#f0f5fa;color:#67829a;border-radius:20px;padding:6px 11px;font-size:10px;font-weight:750}
.agent-entry{display:flex;align-items:center;padding:18px 23px;gap:11px;border-bottom:1px solid #f1f4f7}
.agent-entry:last-child{border-bottom:0}
.agent-avatar{height:38px;width:38px;border-radius:9px;background:#edf5fb;color:#1e7498;display:grid;place-items:center;font-size:23px}
.agent-text{min-width:0;flex:1}
.agent-text strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-text small{display:block;font-size:10px;color:#8c9bab;margin-top:4px}
.empty-state{padding:43px 25px;text-align:center}
.empty-state strong{display:block;font-size:12px;margin-bottom:7px}
.empty-state p{color:#93a1af;font-size:11px;max-width:290px;margin:0 auto;line-height:1.8}
.empty-symbol{height:54px;width:54px;border-radius:16px;background:#f0f6fa;display:grid;place-items:center;margin:0 auto 14px;color:#7a9cb2;font-size:28px}
.empty-state.small{padding:30px 25px}
.profile-summary{text-align:center;padding:24px 20px 19px}
.profile-avatar{width:49px;height:49px;font-size:22px;margin:0 auto 12px}
.profile-summary strong{display:block;font-size:13px}
.profile-summary small{display:block;font-size:11px;color:#8395a7;margin-top:3px}
.account-row{margin:0 24px;padding:11px 0;border-top:1px solid #edf1f5;display:flex;justify-content:space-between;gap:8px;font-size:11px}
.account-row span{color:#8193a5}
.account-row strong{font-weight:750;color:#3c536a;text-align:right}
.table-scroll{overflow-x:auto}
.ops-table{width:100%;border-collapse:collapse;font-size:11px}
.ops-table th{text-align:left;background:#f9fbfd;color:#7b8ca0;white-space:nowrap;font-weight:750;font-size:10px;padding:12px 23px}
.ops-table td{border-top:1px solid #edf1f5;color:#536980;padding:16px 23px;white-space:nowrap}
.ops-table code{color:#226b9b;font-family:Consolas,monospace;font-size:11px}
.ops-table .table-empty{text-align:center;padding:34px 15px;color:#90a0b0}
.task-pill{border-radius:6px;padding:5px 8px;font-size:10px;font-weight:750;background:#eef2f6;color:#67809c}
.task-completed{background:#e9f7f0;color:#26845f}
.task-failed,.task-expired{background:#fff0ee;color:#a84b43}
.task-running{background:#e8f4fb;color:#1f6d9e}
.task-queued{background:#fff5e6;color:#a16c1d}
.audit-entry{padding:15px 23px;display:flex;align-items:center;gap:13px;border-bottom:1px solid #f0f3f7}
.audit-entry:last-child{border-bottom:0}
.audit-dot{width:10px;height:10px;border:3px solid #7dc2da;border-radius:50%}
.audit-entry div{flex:1}
.audit-entry strong{display:block;font-size:11px;color:#425b73}
.audit-entry small{color:#93a1b0;font-size:10px}
.audit-entry time{font-size:10px;color:#97a5b4;white-space:nowrap}
.dashboard-footer{font-size:10px;color:#9aa8b6;text-align:center;padding-top:10px}
@media(max-width:1150px){
    .hero-grid{grid-template-columns:1.08fr 0.92fr;gap:30px}
    .status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .dashboard-content{padding:28px}
    .dashboard-columns{grid-template-columns:1fr}
}
@media(max-width:800px){
    .container{padding-left:20px;padding-right:20px}
    .top-nav{gap:15px}
    .top-nav a:not(.nav-highlight){display:none}
    .hero-grid{grid-template-columns:1fr;padding-top:40px;padding-bottom:40px}
    .hero-copy{max-width:100%}
    .hero-tags{margin-bottom:24px}
    .signin-card{max-width:520px;width:100%;margin:0 auto}
    .resource-section{grid-template-columns:1fr}
    .site-header{height:79px}
    .sidebar{width:70px;min-width:70px;padding:17px 8px}
    .sidebar .sidebar-identity{padding:4px 5px 26px}
    .sidebar .identity-mark{width:41px;height:41px}
    .sidebar .identity strong,.sidebar .identity small,.sidebar-group-label,.sidebar-nav a{font-size:0}
    .sidebar-nav a{justify-content:center;padding:13px 6px}
    .sidebar-nav a span{font-size:20px}
    .sidebar-access,.sidebar-account,.sidebar-logout{font-size:0}
    .sidebar-access{justify-content:center;padding:12px}
    .sidebar-account{justify-content:center}
    .sidebar-account div{display:none}
    .sidebar-logout{justify-content:center}
    .sidebar-logout span{font-size:19px}
    .dashboard-topbar{padding:0 20px;height:65px}
}
@media(max-width:570px){
    .identity strong{font-size:17px}
    .identity small{font-size:9px}
    .identity-mark{width:37px;height:37px}
    .top-nav .nav-highlight{padding:10px;font-size:10px}
    .hero-copy h1{font-size:38px;letter-spacing:-1.4px}
    .hero-description{font-size:14px}
    .signin-card{padding:27px 22px}
    .section-heading{align-items:start;flex-direction:column;gap:7px}
    .status-grid{gap:11px}
    .health-card{min-height:170px;padding:15px}
    .health-state{font-size:9px;padding:4px 5px}
    .health-card h3{font-size:12px}
    .health-card p{font-size:10px}
    .resource-panel{padding:19px;gap:13px}
    .resource-symbol{height:38px;width:38px}
    .site-footer{padding-top:22px;padding-bottom:24px;min-height:95px}
    .dashboard-content{padding:24px 14px}
    .dashboard-topbar{padding:0 13px}
    .breadcrumbs{font-size:10px}
    .breadcrumbs span{margin:0 3px}
    .dashboard-top-actions{gap:5px}
    .live-badge{display:none}
    .welcome-row{display:block}
    .welcome-row h1{font-size:25px}
    .dashboard-date{display:block;margin-top:12px}
    .metrics-grid{gap:10px}
    .metric-card{padding:14px}
    .metric-card>strong{font-size:29px}
    .panel-heading{padding:15px}
    .dashboard-services{grid-template-columns:1fr}
    .service-item:nth-child(odd){border-right:0}
    .service-item{padding:15px}
    .ops-table td,.ops-table th{padding:12px 15px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Nombres de agentes: navegación uniforme a la ficha individual. */
.agent-profile-link{color:#14638c;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
.agent-profile-link:hover{color:#093c60;text-decoration-thickness:2px}
.agent-profile-link:focus-visible{outline:2px solid #168bba;outline-offset:3px;border-radius:2px}
