:root{--bg:#f5f7fa;--surface:#fff;--line:#d5e0ea;--line-soft:#e9f0f5;--text:#172b45;--muted:#527293;--green:#00b67a;--green-dark:#008f68;--blue:#315f91;--blue-soft:#eaf0ff;--mint:#e5f8f1;--danger:#d64545;--sidebar:245px}
*{box-sizing:border-box}html,body{min-height:100%;margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}a{color:var(--blue);text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}
body.app-sidebar-page{padding-left:var(--sidebar)}.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;padding:18px 12px;background:#fff;border-right:1px solid var(--line);z-index:10}.app-sidebar-brand{padding:2px 10px 22px;border-bottom:1px solid var(--line-soft)}.app-sidebar-logo{display:flex;gap:10px;align-items:center;color:var(--text)}.app-sidebar-logo-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:5px;background:var(--green);color:#fff;font-weight:800}.app-sidebar-logo-copy{display:flex;flex-direction:column;line-height:1.2}.app-sidebar-logo-copy strong{font-size:.92rem;letter-spacing:.07em}.app-sidebar-logo-copy small,.app-sidebar-user-copy small{font-size:.72rem;color:var(--muted)}.app-sidebar-nav{display:flex;flex-direction:column;gap:3px;padding-top:18px}.app-sidebar-label{padding:14px 12px 5px;color:#94a3b8;font-size:.67rem;font-weight:800;letter-spacing:.1em}.app-sidebar-link{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:5px;color:#475569;font-weight:600;font-size:.85rem}.app-sidebar-link:hover{background:#f0f3f7;color:var(--green-dark)}.app-sidebar-link.active{background:var(--mint);color:var(--green-dark)}.app-sidebar-icon{width:19px;text-align:center;color:#64748b}.app-sidebar-link.active .app-sidebar-icon{color:var(--green-dark)}.app-sidebar-footer{display:flex;align-items:center;gap:8px;margin-top:auto;padding:13px 7px 3px;border-top:1px solid var(--line-soft)}.app-sidebar-user-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-weight:700}.app-sidebar-user-copy{display:flex;flex:1;flex-direction:column;font-size:.78rem}.app-sidebar-logout{font-size:.72rem;color:var(--muted)}
.topbar{height:60px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line)}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;height:100%;max-width:1600px;margin:auto}.breadcrumbs{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:.8rem;color:var(--muted)}.breadcrumbs strong{color:var(--text)}.topbar-search{display:flex;align-items:center;flex:1;max-width:560px;margin-left:auto}.topbar-search span{position:relative;left:27px;color:var(--green-dark)}.topbar-search input{width:100%;padding-left:38px!important;border-radius:5px 0 0 5px!important}.topbar-status{color:var(--muted);font-size:.78rem}.topbar-status i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:var(--green)}
.nx{max-width:1600px;margin:auto;padding:28px 32px 44px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}.eyebrow{display:block;color:var(--green-dark);font-size:.67rem;font-weight:800;letter-spacing:.1em}.page-heading h1,h1{margin:4px 0 0;font-size:1.6rem;line-height:1.25;color:var(--text)}h2{margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:1rem}h3{font-size:.9rem}.muted{color:var(--muted);font-size:.82rem}.card{margin-bottom:20px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:none}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.grid>.card{min-height:112px;margin-bottom:0}.metric{margin-top:9px;font-size:30px;font-weight:700;letter-spacing:-.03em}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:14px 16px}label{display:block;color:#334155;font-size:.76rem;font-weight:700}label input,label select{margin-top:6px}input,select{width:100%;min-height:42px;padding:9px 11px;color:var(--text);background:#fff;border:1px solid #c7d4e0;border-radius:6px;outline:none}input:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-soft)}input[type=checkbox]{width:16px;min-height:16px;margin:0;accent-color:var(--green)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid var(--green);border-radius:6px;background:var(--green);color:#fff;font-size:.78rem;font-weight:700;white-space:nowrap}.btn:hover{background:var(--green-dark);border-color:var(--green-dark)}.btn.clear{background:var(--blue-soft);border-color:#c5d2ff;color:#244aab}.btn.clear:hover{background:#d9e5ff}.btn.danger{background:#fff;border-color:#efb7b7;color:var(--danger)}.btn.danger:hover{background:#fff5f5}
table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:.82rem}th{padding:11px 12px;text-align:left;background:#f0f3f7;border-bottom:1px solid var(--line);color:#475569;font-size:.69rem;letter-spacing:.04em;text-transform:uppercase}td{padding:11px 12px;border-bottom:1px solid var(--line-soft);vertical-align:top}tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f8fafc}details summary{cursor:pointer;color:var(--blue);font-weight:600;font-size:.78rem}.flash{margin-bottom:14px;padding:11px 13px;border:1px solid #b7e6d1;border-radius:5px;background:var(--mint);color:#166534;font-size:.82rem}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.tree-server{margin:12px 0;border:1px solid var(--line);border-radius:5px;overflow:hidden}.tree-server h3{margin:0;padding:12px 14px;background:#f0f3f7}.tree-group{border-top:1px solid var(--line-soft)}.tree-group summary{padding:10px 14px;color:#334155}.tree-group summary span{float:right;color:var(--muted);font-weight:400}.tag-row{display:grid;grid-template-columns:minmax(220px,2fr) 1fr 90px 55px;gap:12px;padding:10px 14px;border-top:1px solid var(--line-soft);font-size:.8rem}.tag-row small{display:block;color:var(--muted);font-size:.72rem}.quality{color:#d99000}.quality.good{color:var(--green-dark)}
.explorer-actions{display:grid;grid-template-columns:minmax(240px,1fr) 220px auto auto;align-items:center;gap:12px}.explorer-actions div{display:flex;flex-direction:column;gap:4px}.explorer-actions small{color:var(--muted)}.opcua-tree{min-height:360px}.opcua-node{display:grid;grid-template-columns:28px 24px 22px minmax(180px,1fr) minmax(220px,2fr) 100px;align-items:center;gap:8px;min-height:42px;padding:6px 12px;border-bottom:1px solid var(--line-soft)}.opcua-node:hover{background:#f8fafc}.node-expand{width:24px;height:24px;padding:0;border:0;background:transparent;color:var(--blue);font-size:1.3rem}.node-expand:disabled{color:#cbd5e1}.node-check{width:16px!important;min-height:16px!important}.node-icon{color:var(--green-dark)}.node-name{font-weight:600}.opcua-node code{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.opcua-node small{color:#94a3b8;text-align:right}.node-children{margin-left:36px;border-left:1px solid #c7d4e0}.tree-loading,.tree-empty{padding:45px;text-align:center;color:var(--muted)}.load-more{margin:12px 0 12px 36px}.toast{position:fixed;right:24px;bottom:24px;z-index:20;padding:12px 16px;border:1px solid #b7e6d1;border-radius:5px;background:var(--mint);color:#166534}.toast-error{border-color:#efb7b7;background:#fff5f5;color:#b42318}
.auth-page{min-height:100vh;display:grid;place-items:center;background:var(--bg)}.auth-page .app-sidebar,.auth-page .topbar{display:none}.auth-page .nx{width:min(400px,calc(100% - 32px));padding:0}.auth-page .login{padding:28px}.auth-page .login h1{margin-bottom:22px}.auth-page .login .btn{width:100%;margin-top:12px}
@media(max-width:1000px){body.app-sidebar-page{padding-left:0}.app-sidebar{position:relative;width:100%;min-height:auto}.app-sidebar-footer{margin-top:18px}.grid{grid-template-columns:repeat(2,1fr)}.breadcrumbs{display:none}.topbar-search{max-width:none}.explorer-actions{grid-template-columns:1fr 1fr}.opcua-node{grid-template-columns:28px 24px 22px 1fr}.opcua-node code,.opcua-node small{grid-column:4;text-align:left}}
@media(max-width:600px){.nx{padding:18px}.topbar{padding:0 18px}.topbar-search,.topbar-status{display:none}.grid{grid-template-columns:1fr}.explorer-actions{grid-template-columns:1fr}.tag-row{grid-template-columns:1fr 90px}}
.table-card{overflow:auto}.section-title small,.section-title span{color:var(--muted)}td small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem}code{font-size:.76rem;color:#475569}.empty-state{text-align:center;padding:32px!important;color:var(--muted)}.history-chart-shell{position:relative;overflow:hidden}.history-chart{min-height:280px;display:grid;place-items:center;color:var(--muted);touch-action:none}.history-chart svg{width:100%;height:280px;display:block;overflow:visible}.history-chart .history-grid{stroke:#e5edf3;stroke-width:1}.history-chart .history-axis{stroke:#cbd5e1;stroke-width:1}.history-chart .history-line{fill:none;stroke:#00b578;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.history-chart .history-area{fill:#00b578;opacity:.10}.history-chart .history-point{fill:#fff;stroke:#00b578;stroke-width:2;cursor:crosshair}.history-chart .history-point:hover,.history-chart .history-point.active{fill:#00b578;stroke:#064e3b;stroke-width:3}.history-chart .history-label{fill:#64748b;font-size:11px}.history-tooltip{position:absolute;z-index:2;pointer-events:none;min-width:145px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;box-shadow:0 8px 24px #0f172a22;font-size:.78rem;line-height:1.35}.history-tooltip strong{display:block;font-size:.9rem}.history-chart-actions{display:flex;gap:6px;align-items:center}.history-chart-actions .btn{padding:.35rem .6rem;font-size:.78rem}

/* Portal IIoT alignment: contextual page headers, filters and compact actions. */
.filter-bar{padding:14px 16px;background:#fff}
.filter-bar .formgrid{grid-template-columns:minmax(220px,2fr) repeat(2,minmax(170px,1fr)) auto}
.filter-bar .btn{margin-right:6px}
.page-heading p{margin:7px 0 0}
.page-heading .btn{align-self:center}
.section-title h2{margin-bottom:0;border-bottom:0;padding-bottom:0}
.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.row-actions form{display:inline-flex;margin:0}
td > form{display:inline-flex;margin:0 4px 4px 0}
.status-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#94a3b8}
.ok,.quality.good{color:var(--green-dark)}
.bad{color:var(--danger)}
.error{padding:12px;color:#b42318;background:#fff5f5;border:1px solid #efb7b7;border-radius:5px}
.hero-panel{margin-bottom:28px;padding:54px 52px;background:#eaf6f9;border:1px solid #d4e4ea;border-radius:8px}.hero-panel h1{max-width:680px;margin:22px 0 18px;font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.05;letter-spacing:-.045em}.hero-panel p{max-width:560px;margin:0 0 26px;color:#42627e;font-size:1rem;line-height:1.65}.hero-actions{display:flex;gap:10px}.workspace-heading{margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.workspace-heading h2{margin:6px 0 0;padding:0;border:0;font-size:1.45rem}.workspace-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.workspace-card{position:relative;min-height:132px;padding:20px 16px;background:#fff;border:1px solid var(--line);border-radius:7px;color:var(--text);transition:border-color .16s ease,background .16s ease}.workspace-card:hover{border-color:#8bd8bd;background:#f8fffc}.workspace-card span{color:var(--green);font-size:.68rem;font-weight:800}.workspace-card strong{margin-left:4px;color:#102844;font-size:.88rem}.workspace-card p{margin:12px 0 0;color:#42627e;font-size:.78rem;line-height:1.5}.workspace-card b{position:absolute;right:16px;bottom:14px;color:var(--green);font-size:1.1rem}.dashboard-metrics{margin-bottom:24px}.dashboard-metrics small{color:var(--muted)}
@media(max-width:900px){.filter-bar .formgrid{grid-template-columns:1fr 1fr}.filter-bar .formgrid>div{grid-column:1/-1}}
@media(max-width:900px){.workspace-grid{grid-template-columns:repeat(2,1fr)}.hero-panel{padding:36px 30px}}
@media(max-width:600px){.workspace-grid{grid-template-columns:1fr}.hero-panel{padding:28px 22px}.hero-panel h1{font-size:2rem}.hero-panel br{display:none}}

/* Ajustes finales de marca y cromática de la referencia visual. */
.app-sidebar-brand{padding-bottom:18px}
.app-sidebar-logo-copy strong{font-size:0;letter-spacing:0}
.app-sidebar-logo-copy strong::after{content:'IIoT HUB';font-size:.9rem;letter-spacing:.01em}
.app-sidebar-logo-copy small{font-size:0}
.app-sidebar-logo-copy small::after{content:'Portal IIoT';font-size:.68rem}
.metric-small{font-size:1rem;line-height:2.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Interaction polish: predictable focus, hierarchy and bulk selection feedback. */
:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}
.hero-panel h2{max-width:680px;margin:18px 0 14px;border:0;padding:0;font-size:clamp(2rem,3.6vw,3.1rem);line-height:1.05;letter-spacing:-.045em;color:var(--text)}
.dashboard-heading{margin-bottom:20px}.selection-summary{display:block;margin-top:7px;color:var(--green-dark);font-size:.75rem;font-weight:700}
.structure-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:22px;padding:14px 16px;background:#eef8f6;border:1px solid #d3ebe3;border-radius:14px}.structure-step{display:flex;align-items:center;gap:9px;min-width:150px}.structure-step>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#fff;color:var(--green-dark);font-size:.7rem;font-weight:800}.structure-step strong,.structure-step small{display:block}.structure-step strong{font-size:.8rem}.structure-step small{margin-top:2px;color:var(--muted);font-size:.7rem}.structure-connector{color:#8ab8aa;font-size:1.2rem}.structure-toolbar-actions{display:flex;gap:7px;margin-left:auto}.structure-list{display:grid;gap:18px;margin-bottom:26px}.structure-server{overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(38,73,111,.045)}.structure-server-header{display:flex;align-items:center;gap:18px;padding:20px;background:linear-gradient(105deg,#e5f7f0,#eef5ff);border-bottom:1px solid var(--line)}.structure-server-title{display:flex;align-items:center;gap:11px;min-width:260px;flex:1}.structure-server-title h2{margin:0;padding:0;border:0;font-size:1.05rem}.structure-server-title p{margin:5px 0 0;color:var(--muted);font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.structure-server-meta{display:flex;align-items:flex-end;flex-direction:column;gap:7px;color:var(--muted);font-size:.72rem;white-space:nowrap}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#eef1f5;font-weight:800}.status-pill i{width:7px;height:7px;border-radius:50%;background:#94a3b8}.status-pill.is-good{background:#e5f8f0;color:var(--green-dark)}.status-pill.is-good i{background:var(--green)}.structure-groups{padding:16px}.structure-group{overflow:hidden;margin-bottom:12px;border:1px solid var(--line);border-radius:12px}.structure-group:last-child{margin-bottom:0}.structure-group-header{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;background:#f7fafc}.structure-group-header>div{display:flex;align-items:center;gap:9px}.structure-group-header strong,.structure-group-header small{display:block}.structure-group-header strong{font-size:.84rem}.structure-group-header small{margin-top:3px;color:var(--muted);font-size:.7rem}.group-mark,.tag-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--mint);color:var(--green-dark);font-weight:800}.structure-tags{border-top:1px solid var(--line-soft)}.structure-tag{display:grid;grid-template-columns:28px minmax(180px,1fr) minmax(90px,.5fr) 84px auto;align-items:center;gap:10px;padding:10px 15px;border-bottom:1px solid var(--line-soft);font-size:.78rem}.structure-tag:last-child{border-bottom:0}.structure-tag:hover{background:#fbfefd}.structure-tag strong,.structure-tag code{display:block}.structure-tag code{margin-top:3px;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.69rem}.structure-tag>a{font-size:.73rem;font-weight:700}.structure-empty{padding:16px;color:var(--muted);font-size:.78rem}.structure-empty-large{text-align:center;padding:34px}.inline-popover{position:absolute;right:0;z-index:5;width:min(680px,calc(100vw - 40px));margin-top:9px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 36px rgba(16,36,59,.18)}.structure-server-header details{position:relative}
.explorer-actions{position:relative}.explorer-actions .btn:disabled{opacity:.6;cursor:wait}.explorer-actions select{min-width:0}
.opcua-node{transition:background .15s ease,box-shadow .15s ease}.opcua-node:has(.node-check:checked){background:#f0fbf7}.opcua-node:has(.node-check:indeterminate){background:#f7fbff}.node-check{accent-color:var(--green)}
.node-children{padding-left:4px}.node-expand[aria-expanded="true"]{color:var(--green-dark);font-weight:800}.load-more{font-size:.74rem}
@media(max-width:1000px){.explorer-actions{grid-template-columns:1fr 1fr}.explorer-actions>div{grid-column:1/-1}.explorer-actions .btn{width:100%}}
@media(max-width:600px){.explorer-actions{grid-template-columns:1fr}.explorer-actions>div{grid-column:auto}.opcua-node{grid-template-columns:28px 24px 22px minmax(0,1fr);padding:9px 6px}.opcua-node code,.opcua-node small{grid-column:4}.opcua-node small{text-align:left}.node-children{margin-left:18px}.hero-panel h2{font-size:2rem}}
.server-list{display:grid;gap:16px;margin-bottom:26px}.server-card{overflow:visible;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(38,73,111,.045)}.server-card-header{display:flex;align-items:center;gap:15px;padding:18px 20px;border-bottom:1px solid var(--line-soft);background:linear-gradient(105deg,#f7fbfa,#f8faff);border-radius:16px 16px 0 0}.server-card-header .structure-server-title{min-width:0}.server-card-body{display:grid;grid-template-columns:80px 80px minmax(220px,1fr) auto;align-items:center;gap:20px;padding:16px 20px}.server-stat{padding-right:18px;border-right:1px solid var(--line-soft)}.server-stat strong,.server-stat span{display:block}.server-stat strong{font-size:1.35rem;color:#102844}.server-stat span{margin-top:3px;color:var(--muted);font-size:.7rem}.server-groups-preview>strong{display:block;margin-bottom:8px;font-size:.73rem}.chip-list{display:flex;flex-wrap:wrap;gap:6px}.context-chip{padding:6px 9px;border:1px solid #c9e7dd;border-radius:8px;background:#f0fbf7;color:var(--green-dark);font-size:.72rem;font-weight:700}.context-chip span{margin-left:4px;color:var(--muted);font-weight:500}.server-card-links{display:flex;flex-direction:column;gap:7px;white-space:nowrap;font-size:.73rem;font-weight:700}
@media(max-width:900px){.server-card-header{flex-wrap:wrap}.server-card-header>.status-pill{margin-left:auto}.server-card-header>.row-actions{width:100%}.server-card-body{grid-template-columns:70px 70px 1fr}.server-card-links{grid-column:1/-1;flex-direction:row}}
@media(max-width:600px){.server-card-header,.server-card-body{padding:14px}.server-card-header>.status-pill{margin-left:0}.server-card-body{grid-template-columns:1fr 1fr;gap:14px}.server-groups-preview,.server-card-links{grid-column:1/-1}.server-card-links{flex-direction:column}}
@media(max-width:900px){.structure-toolbar{flex-wrap:wrap}.structure-toolbar-actions{width:100%;margin-left:0}.structure-server-header{align-items:flex-start;flex-wrap:wrap}.structure-server-meta{align-items:flex-start}.structure-server-header>.row-actions{width:100%}}
@media(max-width:600px){.structure-toolbar{gap:10px}.structure-step{min-width:0;flex:1}.structure-step small,.structure-connector{display:none}.structure-toolbar-actions .btn{flex:1}.structure-server-header,.structure-groups{padding:13px}.structure-server-title{min-width:0;width:100%}.structure-server-meta{flex-direction:row;align-items:center;justify-content:space-between;width:100%;white-space:normal}.structure-tag{grid-template-columns:26px minmax(0,1fr) auto;padding:11px 10px}.structure-tag .tag-value,.structure-tag .quality{grid-column:2}.structure-tag>a{grid-column:3;grid-row:1 / span 2}.inline-popover{right:-5px}}

/* Visual refresh: operational console with clearer hierarchy and denser information. */
:root{--bg:#f3f6fa;--surface:#fff;--line:#dbe4ee;--line-soft:#edf2f7;--text:#14243a;--muted:#6b7b90;--green:#00b578;--green-dark:#008d62;--blue:#2563eb;--blue-soft:#edf3ff;--mint:#e9faf3;--sidebar:232px}
body{background:var(--bg);color:var(--text)}
.app-sidebar{width:var(--sidebar);padding:20px 14px;background:#10243b;border-right:0;box-shadow:8px 0 28px rgba(16,36,59,.08)}
.app-sidebar-brand{padding:2px 10px 24px;border-bottom:1px solid rgba(255,255,255,.12)}
.app-sidebar-logo{color:#fff}.app-sidebar-logo-mark{border-radius:10px;background:var(--green);box-shadow:0 6px 18px rgba(0,181,120,.28)}
.app-sidebar-logo-copy small,.app-sidebar-user-copy small{color:#9db0c5}.app-sidebar-nav{gap:5px;padding-top:22px}.app-sidebar-label{color:#7890a8;padding:16px 12px 7px}
.app-sidebar-link{padding:11px 12px;border-radius:10px;color:#b9c8d8}.app-sidebar-link:hover{background:rgba(255,255,255,.08);color:#fff}.app-sidebar-link.active{background:rgba(0,181,120,.16);color:#63e1b2}.app-sidebar-icon,.app-sidebar-link.active .app-sidebar-icon{color:inherit}
.app-sidebar-footer{border-top-color:rgba(255,255,255,.12)}.app-sidebar-user-avatar{background:rgba(255,255,255,.12);color:#fff}
.topbar{height:68px;padding:0 34px;background:rgba(255,255,255,.94);border-bottom-color:var(--line);box-shadow:0 1px 0 rgba(16,36,59,.02)}.topbar-inner{max-width:none}.breadcrumbs{font-size:.78rem}.breadcrumbs a{font-weight:700;color:var(--green-dark)}
.topbar-search{max-width:500px}.topbar-search input{min-height:40px;background:#f7f9fc;border-color:#e0e8f1}.topbar-search .btn{min-height:40px;border-radius:0 8px 8px 0}
.nx{max-width:1500px;padding:32px 36px 52px}.hero-panel{position:relative;overflow:hidden;margin-bottom:30px;padding:42px 46px;background:linear-gradient(120deg,#e7f8f3 0%,#eef5ff 100%);border:1px solid #d7e8eb;border-radius:18px;box-shadow:0 14px 32px rgba(38,73,111,.06)}.hero-panel:after{content:"";position:absolute;width:260px;height:260px;right:-70px;top:-90px;border:34px solid rgba(0,181,120,.1);border-radius:50%}.hero-panel h1{font-size:clamp(2rem,3.6vw,3.1rem);margin:18px 0 14px}.hero-panel p{font-size:.95rem;line-height:1.6}.hero-actions{position:relative;z-index:1}
.workspace-heading{margin-bottom:16px;border-bottom-color:var(--line)}.workspace-heading h2{font-size:1.25rem}.workspace-grid{gap:14px;margin-bottom:28px}.workspace-card{min-height:126px;padding:18px;border-radius:14px;box-shadow:0 6px 18px rgba(38,73,111,.04)}.workspace-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(38,73,111,.09);transition:transform .16s ease,box-shadow .16s ease}
.card{padding:22px;margin-bottom:22px;border-radius:14px;border-color:var(--line);box-shadow:0 8px 24px rgba(38,73,111,.045)}.grid{gap:16px}.grid>.card{min-height:120px}.metric{font-size:32px;color:#102844}.btn{min-height:40px;border-radius:9px;box-shadow:0 4px 10px rgba(0,181,120,.12)}.btn.clear{box-shadow:none}
input,select{min-height:44px;border-radius:9px;background:#fbfcfe}table{border-radius:10px}th{padding:13px;background:#f5f8fb}td{padding:13px}.tree-server{border-radius:10px}.tree-server h3{padding:14px;background:#f5f8fb}.quality,.bad{display:inline-flex;align-items:center;gap:5px;font-weight:700}.quality.good,.ok{color:#087d58}.quality.good:before,.ok:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.quality:not(.good),.bad{color:#b77900}.status-dot{background:var(--green);box-shadow:0 0 0 4px rgba(0,181,120,.12)}
.flash{border-radius:10px}.filter-bar{box-shadow:0 6px 18px rgba(38,73,111,.035)}
.hierarchy-separator{padding:0 7px;color:#a7b6c7}.hierarchy-server{margin:0 0 22px;border:1px solid var(--line);border-radius:16px;background:#eef7f5;overflow:hidden}.hierarchy-server-header{display:flex;align-items:center;gap:12px;padding:17px 20px;background:linear-gradient(100deg,#dff5ed,#edf6ff);color:#102844}.hierarchy-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff;color:var(--green-dark);font-size:1.25rem}.hierarchy-server-header strong{display:block;font-size:1rem}.hierarchy-server-header small,.hierarchy-group-header small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem}.hierarchy-count{margin-left:auto;padding:6px 10px;border:1px solid #b9dfd3;border-radius:999px;background:#fff;color:var(--green-dark);font-size:.72rem;font-weight:800}.hierarchy-group{padding:16px 18px 0}.hierarchy-group:last-child{padding-bottom:18px}.hierarchy-group-header{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding-left:4px;color:#30455d}.hierarchy-group-header>span{color:var(--green-dark);font-size:1.1rem}.hierarchy-group-header small{margin:0 0 0 auto}.hierarchy-table{margin:0;box-shadow:0 4px 14px rgba(38,73,111,.035)}.hierarchy-table table{border:0}.hierarchy-table td:last-child{min-width:250px}.hierarchy-table .row-actions{align-items:flex-start}.hierarchy-table td>details>form{min-width:360px}
@media(max-width:700px){.hierarchy-server-header{padding:14px}.hierarchy-group{padding-inline:10px}.hierarchy-table td:last-child{min-width:0}.hierarchy-table table,.hierarchy-table thead,.hierarchy-table tbody,.hierarchy-table tr,.hierarchy-table th,.hierarchy-table td{display:block}.hierarchy-table thead{display:none}.hierarchy-table tr{padding:12px;border-bottom:1px solid var(--line-soft)}.hierarchy-table td{padding:6px 8px;border:0}.hierarchy-table td:before{display:block;margin-bottom:3px;color:var(--muted);font-size:.65rem;font-weight:800;text-transform:uppercase}.hierarchy-table td:nth-child(2):before{content:'Estado'}.hierarchy-table td:nth-child(3):before{content:'Valor'}.hierarchy-table td:nth-child(4):before{content:'Configuración'}.hierarchy-table td:nth-child(5):before{content:'Acciones'}.hierarchy-table td>details>form{min-width:0}}
.tag-row>a,.tag-row>details>summary{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid #cbd9ef;border-radius:8px;background:var(--blue-soft);color:#2454ad;font-size:.74rem;font-weight:700;white-space:nowrap;cursor:pointer}.tag-row>a:hover,.tag-row>details>summary:hover{background:#dce8ff;border-color:#adc5ef}.tag-row>details>summary{list-style:none}.tag-row>details>summary::-webkit-details-marker{display:none}details[open]>summary{background:#dce8ff}
td>details{display:inline-block;margin:0 4px 4px 0;vertical-align:top}td>details>summary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid #cbd9ef;border-radius:9px;background:var(--blue-soft);color:#2454ad;font-size:.78rem;font-weight:700;white-space:nowrap;cursor:pointer;list-style:none}td>details>summary::-webkit-details-marker{display:none}td>details>summary:hover,td>details[open]>summary{background:#dce8ff;border-color:#adc5ef}td>details>form{display:grid;margin:10px 0 8px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;min-width:320px}
@media(max-width:1000px){.app-sidebar{width:100%;background:#10243b}.app-sidebar-nav{flex-direction:row;overflow-x:auto}.app-sidebar-label{display:none}.app-sidebar-footer{margin-top:14px}.nx{padding:24px}.topbar{padding:0 24px}}
@media(max-width:600px){.nx{padding:18px 14px 36px}.topbar{padding:0 14px}.topbar-inner{justify-content:flex-end}.hero-panel{padding:30px 24px;border-radius:14px}.hero-panel h1{font-size:2rem}.page-heading{align-items:flex-start;flex-direction:column}.page-heading>div:last-child{width:100%}.page-heading .btn{margin-bottom:5px}.card{padding:16px;border-radius:12px}.workspace-card{min-height:112px}.tag-row{gap:8px;padding:12px}.topbar-search{display:none}}
.route-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.field-help{display:block;margin-top:5px;color:var(--muted);font-size:.7rem}.tag-picker{margin:0 0 18px;padding:14px;border:1px solid var(--line);border-radius:12px}.tag-picker legend{padding:0 6px;color:var(--text);font-size:.8rem;font-weight:800}.tag-picker-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:7px}.tag-pick{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line-soft);border-radius:9px;background:#fbfefd;cursor:pointer}.tag-pick:hover{border-color:#9ddcca;background:#f0fbf7}.tag-pick input{width:16px;min-height:16px}.tag-pick strong,.tag-pick small{display:block}.tag-pick strong{font-size:.76rem}.tag-pick small{margin-top:3px;color:var(--muted);font-size:.68rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payload-editor{padding:14px;border:1px solid #cfe5df;border-radius:12px;background:#f4fbf9;margin-bottom:16px}.payload-editor-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.payload-editor-heading strong,.payload-editor-heading small{display:block}.payload-editor-heading small{margin-top:4px;color:var(--muted);font-size:.72rem}.payload-editor textarea{display:block;width:100%;min-height:140px;margin-top:12px;padding:12px;border:1px solid #bcd9d1;border-radius:9px;background:#fff;color:#183248;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical}.smart-tokens{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:9px;color:var(--muted);font-size:.7rem}.smart-tokens button{padding:4px 7px;border:1px solid #b7ded3;border-radius:6px;background:#fff;color:var(--green-dark);font:inherit;cursor:pointer}.route-list{display:grid;gap:9px}.route-card{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.3fr) auto auto;align-items:center;gap:14px;padding:13px;border:1px solid var(--line-soft);border-radius:10px}.route-card-main{display:flex;align-items:center;gap:9px}.route-card-main strong,.route-card-main small,.route-card-topic code,.route-card-topic small{display:block}.route-card-main small,.route-card-topic small{margin-top:3px;color:var(--muted);font-size:.7rem}.route-card-topic{display:block}.route-card-topic code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.route-card pre{grid-column:1/-1;max-width:100%;overflow:auto;margin:0;padding:10px;background:#f7fafc;border-radius:7px;font-size:.7rem}.route-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--blue-soft);color:var(--blue);font-weight:800}@media(max-width:1000px){.route-grid{grid-template-columns:1fr 1fr}.route-card{grid-template-columns:1fr 1fr}}@media(max-width:600px){.route-grid{grid-template-columns:1fr}.payload-editor-heading{align-items:flex-start;flex-direction:column}.route-card{grid-template-columns:1fr}}
.nav-count{margin-left:auto;min-width:22px;padding:3px 6px;border:1px solid rgba(255,255,255,.13);border-radius:999px;color:#9db0c5;text-align:center;font-size:.66rem;font-weight:800}.app-sidebar-link.active .nav-count{background:rgba(0,181,120,.2);border-color:rgba(99,225,178,.25);color:#9af0cc}.app-sidebar-label{display:flex;align-items:center;justify-content:space-between}.app-sidebar-label a{color:#63e1b2;font-size:1rem;line-height:1}.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-card{margin:0}.settings-card-title{display:flex;align-items:flex-start;gap:11px;margin-bottom:22px}.settings-card-title h2{margin:0;padding:0;border:0}.settings-card-title p{margin:5px 0 0;color:var(--muted);font-size:.76rem;line-height:1.45}.settings-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--mint);color:var(--green-dark);font-size:1.1rem}.settings-actions{grid-column:1/-1}.settings-note{margin-top:16px;background:#f7fafc}.settings-note p{margin:6px 0 0;color:var(--muted);font-size:.78rem}@media(max-width:700px){.settings-layout{grid-template-columns:1fr}.settings-actions{grid-column:auto}}
.group-link{display:inline-flex;flex-direction:column;gap:3px}.group-link small{color:var(--blue);font-size:.68rem}.group-link:hover strong{text-decoration:underline}
.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px 0;color:var(--muted);font-size:.72rem}.table-pagination>div{display:flex;gap:6px}.table-pagination .btn{min-height:34px;padding:7px 10px;box-shadow:none}.table-pagination .btn:disabled{opacity:.45;cursor:not-allowed}@media(max-width:600px){.table-pagination{align-items:flex-start;flex-direction:column}.table-pagination>div{width:100%}.table-pagination .btn{flex:1}}
.route-step-label{display:flex;align-items:center;gap:8px;margin:18px 0 10px;color:var(--text);font-size:.82rem}.route-step-label:first-of-type{margin-top:0}.route-step-label span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--green);color:#fff;font-size:.72rem;font-weight:800}.route-preview{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:10px 12px;border:1px dashed #b9d7cf;border-radius:9px;background:#f7fcfa}.route-preview span{color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;white-space:nowrap}.route-preview code{overflow:hidden;color:var(--green-dark);text-overflow:ellipsis;white-space:nowrap;font-size:.75rem}.payload-preview{display:block;margin-top:12px}.payload-preview pre{margin:7px 0 0;max-height:190px;overflow:auto;white-space:pre-wrap;color:#35516b;font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}
.route-editor-panel{margin-bottom:22px;border:1px solid #b9ded3;border-radius:14px;background:linear-gradient(120deg,#f4fbf9,#f6f9ff);box-shadow:0 8px 24px rgba(38,73,111,.045)}.route-editor-toggle{display:flex;align-items:center;gap:10px;padding:15px 18px;cursor:pointer;list-style:none}.route-editor-toggle::-webkit-details-marker{display:none}.route-editor-toggle-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--green);color:#fff;font-size:1.15rem}.route-editor-toggle strong,.route-editor-toggle small{display:block}.route-editor-toggle strong{color:var(--text);font-size:.84rem}.route-editor-toggle small{margin-top:3px;color:var(--muted);font-size:.7rem}.route-editor-chevron{margin-left:auto;color:var(--green-dark);font-size:1.1rem;transition:transform .18s ease}.route-editor-panel[open] .route-editor-chevron{transform:rotate(180deg)}.route-editor-panel[open] .route-builder{border-top:1px solid #d8ebe5;box-shadow:none;margin:0;border-radius:0 0 14px 14px}.route-builder-unified{padding:20px}.route-card{background:#fff;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.route-card:hover{border-color:#b9ded3;box-shadow:0 7px 18px rgba(38,73,111,.07)}.route-publish-status{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:.7rem}.route-publish-status:before{content:'●';color:var(--green);font-size:.6rem}.route-card form{margin:0}
