:root{--navy:#101e30;--ink:#183047;--muted:#758496;--blue:#2284ef;--cyan:#52dddb;--line:#e5ebf1;--bg:#f4f7fa;--green:#198767;--red:#d94053;--orange:#b67b17}*{box-sizing:border-box}body{margin:0;font:14px/1.55 'DM Sans',Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button,a,select{cursor:pointer}button{transition:.15s}button:hover{filter:brightness(.95)}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #2684ff;outline-offset:3px}#app{display:flex;min-height:100vh}aside{width:252px;background:var(--navy);color:#c2ccda;position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;padding:34px 20px 24px}.brand{display:flex;gap:9px;align-items:center;font:bold 18px Manrope,Arial;letter-spacing:-.7px;color:#fff;white-space:nowrap}.brand-icon{color:var(--cyan);font-size:31px}.brand .light{font-weight:400}.brand sup{font-size:8px;vertical-align:top}.brand small{display:block;color:#7a92ab;font:8px/2.6 'DM Sans',Arial;letter-spacing:2.4px}.workspace{display:flex;gap:12px;align-items:center;margin:33px 0 32px;padding:14px 11px;background:#192a3e;border:1px solid #26394f;border-radius:9px;font-size:12px}.workspace small{display:block;color:#8fa1b6;font-size:10px}.avatar{width:32px;height:32px;display:inline-grid;place-items:center;background:#e1ebf6;color:#416386;border-radius:50%;font-weight:700;font-size:11px;flex-shrink:0}.workspace .avatar{background:#314659;color:var(--cyan);border-radius:8px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#607b95;margin:0 12px 14px}nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;margin:3px 0;font-size:12px;border-radius:7px;color:#9fb0c3}nav a.active{background:#263f55;color:var(--cyan)}nav .nav-icon{font-size:18px;width:22px;text-align:center}nav .count{margin-left:auto;color:#ff939d;background:#573443;padding:0 7px;border-radius:4px;font-size:10px}.sidebar-bottom{margin-top:auto;padding-top:32px}.guard{border:1px solid #2a4256;border-radius:8px;padding:12px;color:var(--cyan);font-size:12px}.guard small{display:block;color:#8096ad;font-size:10px;margin:3px 0 0 15px}.access{margin-top:16px;width:100%;padding:11px;background:#d8f5f4;color:#1d4554;border:0;border-radius:6px;font-size:11px}.probe-link{display:block;font-size:9px;color:#687f97;margin:24px 12px 0;letter-spacing:1px}.main{margin-left:252px;flex:1;min-width:0}header{height:78px;display:flex;align-items:center;justify-content:space-between;background:#fff;padding:0 37px;border-bottom:1px solid var(--line);gap:18px}.crumb{font-size:10px;letter-spacing:1px;color:#8b99a8}.crumb b{color:#4b6178;font-weight:500;letter-spacing:0}.crumb span{margin:0 15px;color:#bec9d4}.header-right{display:flex;gap:18px;align-items:center}.mode{font:9px 'DM Sans',Arial;letter-spacing:1px;color:#936718;background:#fff4d8;border:1px solid #f4e7c7;border-radius:5px;padding:7px 9px}.icon-button{background:transparent;border:0;color:#6e8092;font-size:23px}#mobile-menu{display:none;background:none;border:0;font-size:22px}main{padding:32px 37px 20px;max-width:1700px;margin:auto}h1,h2,h3{font-family:Manrope,Arial,sans-serif}h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:8px 0 10px;font-weight:800}h2{font-size:16px;margin:0;letter-spacing:-.3px}h3{font-size:14px;margin:0}.eyebrow{font-size:9px;color:#6e8499;letter-spacing:1.8px;font-weight:700}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.intro p{color:var(--muted);font-size:12px;margin:0}.buttons{display:flex;gap:10px;align-items:center}.btn{border:1px solid #dbe4ed;padding:10px 16px;border-radius:6px;background:#fff;color:#446079;font-size:11px;font-weight:600}.btn.primary{color:#fff;background:var(--navy);border-color:var(--navy)}.btn.blue{background:#e7f2ff;color:#1876d5;border-color:#cee4fd}.btn:disabled{opacity:.45;cursor:default}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:23px}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:10px}.card{padding:20px}.kpi-label{display:flex;justify-content:space-between;color:#75879a;font-size:11px}.kpi-icon{font-size:18px;color:#9db2c5}.kpi-num{font:800 35px Manrope,Arial;margin:12px 0 4px;letter-spacing:-1.3px}.kpi-foot{font-size:10px;color:#8b98a7}.kpi-foot.good{color:var(--green)}.kpi-foot.ai{color:var(--blue)}.kpi-foot.bad{color:var(--red)}.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:21px;margin-bottom:22px}.panel{overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 23px;border-bottom:1px solid var(--line)}.panel-head small{font-size:10px;color:var(--muted)}.legend{display:flex;gap:14px;font-size:9px;color:#7d90a2;flex-wrap:wrap}.dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:5px}.dot.blue{background:var(--blue)}.dot.red{background:var(--red)}.dot.gray{background:#8998a9}.map-wrap{height:330px;position:relative;background:#eef3f6;overflow:hidden}.map-svg{width:100%;height:100%}.map-note{position:absolute;bottom:11px;left:18px;font-size:8px;color:#6c8197;background:#ffffffdd;padding:5px 9px;border-radius:4px}.map-bubble{fill:#fff;stroke:#dbe6ec;stroke-width:1}.map-site{cursor:pointer}.map-site:focus{outline:0}.map-site:focus circle{stroke:#101e30;stroke-width:4}.map-controls{position:absolute;top:15px;right:15px;display:flex;gap:5px}.map-controls button{border:1px solid #d6e1e9;background:#fff;border-radius:5px;color:#3e5e77;padding:5px 9px;font-size:10px}.map-foot{padding:14px 22px;font-size:10px;color:#7e8da0;display:flex;justify-content:space-between}.ai-banner{padding:23px;background:linear-gradient(140deg,#10253a,#173e53);color:#fff;position:relative;overflow:hidden}.ai-banner:after{content:'✧';position:absolute;right:15px;top:10px;font-size:90px;color:#3ed8d721}.ai-banner h2{font-size:18px;margin:11px 0 7px}.ai-banner .eyebrow{color:#64dcd5}.ai-banner p{font-size:11px;line-height:1.7;color:#a0bfce;max-width:255px}.ai-banner .btn{background:#213e50;border-color:#3b5b6e;color:#bcece9;margin-top:9px}.recommendation{padding:18px 23px;border-bottom:1px solid var(--line);font-size:11px}.rec-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--blue);margin-bottom:7px}.recommendation p{color:#7e8e9e;margin:6px 0}.recommendation .action{color:var(--blue);border:0;background:none;font-size:10px;padding:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{font-size:9px;text-transform:uppercase;letter-spacing:.7px;font-weight:500;color:#8b9bad;padding:12px 22px;background:#fbfcfd}td{padding:15px 22px;border-top:1px solid #edf1f5;font-size:11px}td small{display:block;color:#91a0af;font-size:9px;margin-top:2px}.status{font-size:9px;border-radius:5px;padding:5px 8px;display:inline-block;background:#e6f5ef;color:var(--green)}.status.ai{background:#e8f2ff;color:var(--blue)}.status.severe{background:#fdecf0;color:var(--red)}.status.unknown{background:#edf1f5;color:#687d91}.text-button{border:0;background:none;color:var(--blue);font-size:11px;padding:3px}.toolbar{display:flex;gap:10px;align-items:center;padding:16px 22px}.toolbar input,.toolbar select{padding:9px 12px;border:1px solid var(--line);border-radius:5px;font-size:11px;background:#fff}.toolbar input{flex:1;min-width:80px}.section-gap{margin-top:22px}.notice{font-size:11px;color:#60758a;border:1px solid #d8e5f0;background:#eaf3fb;padding:12px 16px;border-radius:7px;margin-bottom:20px}.notice.warn{background:#fff8e8;border-color:#f0e4c5;color:#8e722c}.empty{padding:55px 25px;text-align:center;color:#8a9baa}.empty strong{display:block;color:#526a80;margin-bottom:8px}.equipment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.equipment-card{padding:22px}.equipment-card small{color:#8e9eae;font-size:10px}.equipment-card h3{margin:8px 0 15px;font-size:16px}.equipment-icon{float:right;font-size:27px;color:#7d9caf}.params{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-top:18px}.params div{font-size:10px;color:#8a9bab}.params b{display:block;color:#23435b;font:700 21px Manrope,Arial;margin-top:4px}.card-footer{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;display:flex;justify-content:space-between;font-size:10px;color:#8294a5}.chat-layout{display:grid;grid-template-columns:240px 1fr;gap:20px}.chat-context{padding:23px;height:fit-content}.chat-context h3{margin-bottom:16px}.chat-context label{font-size:10px;color:#7f90a2;display:block;margin:15px 0}.chat-context select{width:100%;padding:10px 7px;border:1px solid var(--line);border-radius:5px}.chat-context p{font-size:11px;color:#8798a9}.chat-area{display:flex;flex-direction:column;min-height:540px}.chat-head{padding:20px 24px;border-bottom:1px solid var(--line)}.chat-head small{color:#8499aa;font-size:10px}.messages{padding:25px;display:flex;flex-direction:column;gap:20px;flex:1}.message{max-width:85%;padding:17px 20px;border:1px solid #e0eaf3;background:#f6f9fc;border-radius:9px;font-size:12px;white-space:pre-wrap}.message.user{align-self:flex-end;background:#193b56;color:#e5f0f5;border-color:#193b56}.message small{display:block;color:#92a3b3;font-size:9px;margin-bottom:8px;letter-spacing:1px}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:0 25px 17px}.suggestions button{background:#fff;border:1px solid #dfebf4;color:#5d7c98;padding:8px;border-radius:6px;font-size:10px}.chat-form{padding:17px 24px;border-top:1px solid var(--line);display:flex;gap:12px}.chat-form input{flex:1;padding:12px;border:1px solid #d9e5ee;border-radius:6px;min-width:0}.chat-form button{border:0;border-radius:5px;padding:0 18px;background:var(--blue);color:#fff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid .wide{grid-column:1/-1}label{display:block;font-size:11px;color:#6b8296}input,select,textarea{width:100%;padding:11px;border:1px solid #d9e4ed;background:#fff;border-radius:5px;margin-top:5px;color:var(--ink)}input[type=checkbox]{width:auto}textarea{min-height:100px;resize:vertical}.integration{padding:22px;display:flex;gap:20px;align-items:center;border-bottom:1px solid var(--line)}.integration-icon{width:43px;height:43px;border-radius:10px;background:#eaf3fc;color:#368bcb;display:grid;place-items:center;font-size:23px}.integration p{font-size:11px;color:#8b9cad;margin:4px 0}.integration .btn{margin-left:auto}.integration:last-child{border:0}.progress{height:4px;background:#eaf0f5;margin:14px 0;border-radius:4px}.progress span{display:block;width:0;height:4px;background:var(--blue)}.manual{padding:22px}.manual .eyebrow{margin:10px 0}.manual p{font-size:11px;color:#8a9cab}.timeline{padding:24px}.timeline-item{border-left:1px solid #d9e4ee;padding:0 0 23px 20px;position:relative;font-size:11px}.timeline-item:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--blue);position:absolute;left:-4px;top:6px}.timeline-item small{color:#93a3b3;display:block}.timeline-item p{color:#8093a7;margin:5px 0}.mini-chart{width:100%;height:190px;margin:15px 0}.critical{color:var(--red)}footer{display:flex;justify-content:space-between;color:#94a4b3;font-size:9px;gap:15px;padding:20px 37px 25px}dialog{max-width:620px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:13px;padding:32px;color:var(--ink);box-shadow:0 25px 120px #0c233d40}dialog::backdrop{background:#0e243b77;backdrop-filter:blur(3px)}.dialog-close{float:right;border:0;background:none;font-size:24px;color:#8499aa}.dialog-close:hover{color:#0c2134}dialog h2{font-size:23px;margin-bottom:9px}dialog p{font-size:12px;color:#8193a5}dialog .btn{margin-top:15px}#toast{position:fixed;bottom:25px;right:25px;background:#13334d;color:#fff;padding:13px 20px;border-radius:8px;box-shadow:0 10px 40px #18384d30;font-size:12px;z-index:80;display:none;max-width:400px}.metric-bar{display:flex;gap:12px;margin-top:17px}.metric-bar div{flex:1;background:#f2f7fa;padding:14px;border-radius:6px;font-size:10px;color:#879aaa}.metric-bar strong{display:block;font:700 24px Manrope;color:#345269}.login-hero{text-align:center;padding:12px}.login-hero .brand-icon{font-size:43px}.login-hero p{margin-bottom:24px}.mobile-only{display:none}@media(min-width:1500px){main{padding-top:40px}.map-wrap{height:385px}}@media(max-width:1100px){aside{width:225px;padding-left:15px;padding-right:15px}.brand{font-size:16px}.main{margin-left:225px}header,main{padding-left:23px;padding-right:23px}.columns{grid-template-columns:1.35fr 1fr}.kpis{gap:10px}.card{padding:15px}.kpi-num{font-size:29px}.equipment-grid{grid-template-columns:repeat(2,1fr)}.legend{gap:7px}.map-wrap{height:300px}}@media(max-width:800px){aside{transform:translateX(-100%);width:252px}aside.open{transform:translateX(0)}.main{margin-left:0}#mobile-menu{display:block}header{height:65px;padding:0 16px}.crumb{display:none}.header-right{gap:12px}main{padding:23px 16px}.intro{align-items:flex-start}h1{font-size:25px}.intro .buttons{flex-direction:column;align-items:flex-end}.columns{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}.kpi-label{font-size:10px}.map-wrap{height:315px}.chat-layout{grid-template-columns:1fr}.chat-context{display:none}.equipment-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}footer{padding:20px 16px;flex-direction:column}.legend{font-size:8px}.panel-head{padding:18px}.toolbar{padding:12px;flex-wrap:wrap}.integration{padding:18px;gap:12px}.integration .btn{font-size:9px;padding:9px}.message{max-width:95%}.mode{font-size:8px}td,th{padding-left:15px;padding-right:15px}}


.record-actions{display:inline-flex;gap:10px;align-items:center;flex-wrap:wrap;margin:5px 8px}.danger{color:#bb2942}.btn.danger{border-color:#e9b2ba}.contact-row{padding:8px 0}.panel-note{padding:0 25px 15px;color:#617386}.checkbox-label{display:flex;align-items:center;gap:10px}.checkbox-label input{width:18px;height:18px;flex:0 0 18px}.dialog-close{z-index:2;cursor:pointer}.record-actions button{white-space:nowrap}

/* Geographic map and operational alarm views */
.site-map-layout{display:grid;grid-template-columns:minmax(200px,30%) minmax(0,1fr);min-height:470px;border-top:1px solid #e4ebef}.map-site-list{background:#f8fafc;max-height:540px;overflow:auto;border-right:1px solid #e2eaf0}.map-site-card{padding:18px 16px;border-bottom:1px solid #e2eaf0}.map-site-focus{border:0;background:none;display:flex;gap:10px;width:100%;padding:0;text-align:left;cursor:pointer;color:#19334a}.map-site-focus b{font-size:13px;display:block;line-height:1.4}.map-site-focus small{display:block;color:#6d8296;font-size:11px;line-height:1.6;margin:5px 0 10px}.map-index{display:grid;place-items:center;flex:0 0 24px;height:24px;background:#8998a9;color:white;border-radius:50%;font-size:11px;font-weight:700}.map-index.severe{background:#d94053}.map-index.ok{background:#269877}.map-index.ai{background:#2689ef}.map-card-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.map-card-actions .text-button{font-size:11px}.map-unplaced{display:block;margin-top:8px;color:#8393a2}.real-map-shell{position:relative;min-width:0}.real-map{height:540px;width:100%;background:#e5edf1;z-index:0}.map-fit{position:absolute;top:14px;right:14px;z-index:500;box-shadow:0 3px 14px #0b24492b;background:white}.map-error{position:absolute;bottom:30px;left:12px;right:12px;background:#fff4dc;color:#775827;padding:10px;border-radius:8px;font-size:12px;z-index:500}.map-popup{min-width:180px}.map-popup p{margin:9px 0!important;font:12px/1.6 Arial,sans-serif}.map-popup .btn{font-size:12px}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:10px!important}.locator-search{display:flex;gap:10px;margin:20px 0 12px}.locator-search input{min-width:0;flex:1;border:1px solid #d4e0e8;border-radius:9px;padding:12px}.location-map{height:330px;margin:14px 0;border-radius:10px;z-index:0}.location-results{max-height:180px;overflow:auto}.location-candidate{display:block;width:100%;border:1px solid #dce6ed;border-radius:8px;background:#f8fbfd;padding:12px;text-align:left;margin:7px 0;cursor:pointer;color:#233f54}.location-candidate:hover{background:#edf5fc;border-color:#8cb8de}.location-candidate small{display:block;color:#72889a;margin-top:5px}.alarm-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.alarm-tabs b{margin-left:8px}.real-map .empty{padding:80px 30px}@media(max-width:1000px){.site-map-layout{grid-template-columns:1fr}.map-site-list{display:flex;max-height:210px;border-right:0}.map-site-card{min-width:220px;flex:1}.real-map{height:430px}.locator-search{flex-wrap:wrap}.locator-search input{min-width:160px}.location-map{height:300px}}@media(max-width:600px){.real-map{height:380px}.map-fit{font-size:11px;padding:9px 11px}.alarm-tabs .btn{font-size:12px}.location-map{height:260px}}

/* Email rule editor: readable sections and touch controls. */
.rule-dialog{max-width:740px;max-height:90dvh;overflow-y:auto;box-sizing:border-box}.rule-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-dialog label{font-size:14px;line-height:1.5;color:#425b6e}.rule-dialog input,.rule-dialog select,.rule-dialog textarea{font-size:16px;min-height:44px;box-sizing:border-box;width:100%;min-width:0}.rule-dialog p{font-size:14px;line-height:1.6;color:#536d80}.rule-dialog .notice{font-size:14px;line-height:1.6}.rule-dialog .btn{font-size:14px;min-height:44px;white-space:normal}.rule-section{border-top:1px solid #dce6ee;padding-top:18px;margin-top:6px}.rule-section:first-child{border-top:0;padding-top:0}.rule-section b{font-size:16px}.rule-event{border-top:1px solid #ccdce8;margin-top:14px;padding-top:14px;overflow-wrap:anywhere}.rule-checks{overflow-wrap:anywhere}.rule-dialog .dialog-close{position:sticky;top:0;background:white;min-width:44px;min-height:44px}.rule-dialog #create-form>.btn{position:sticky;bottom:0;box-shadow:0 0 0 8px white;margin-top:22px}.rule-dialog #rule-email-picker select{margin-top:12px}@media(max-width:800px){.rule-dialog{padding:18px;width:calc(100% - 16px);max-height:94dvh}.rule-dialog .form-grid{grid-template-columns:1fr}.rule-dialog h2{font-size:21px}.rule-dialog .wide{grid-column:1}.rule-dialog #create-form>.btn{width:100%}}

/* Responsive portal: shared touch controls, tablet navigation and phone cards. */
html{-webkit-text-size-adjust:100%;scroll-padding-top:82px}body{overflow-wrap:anywhere}img,svg{max-width:100%}button,a,input,select,textarea{touch-action:manipulation}button:disabled{cursor:default}.main,main,.columns>*,.chat-layout>*,.form-grid>*,.integration>div{min-width:0}#sidebar{overflow-y:auto;overscroll-behavior:contain;height:100dvh}#sidebar .workspace div{min-width:0}#identity{overflow-wrap:anywhere}.buttons,.record-actions{flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.4;text-align:center}.integration-icon{flex-shrink:0}.recommendation,.notice,.message,.params div,.timeline-item{overflow-wrap:anywhere}.table-wrap{max-width:100%;overscroll-behavior-x:contain}.table-wrap td{white-space:normal;overflow-wrap:anywhere;max-width:420px}.table-wrap td:first-child{min-width:150px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}dialog h2{padding-right:40px;overflow-wrap:anywhere}.dialog-close{position:sticky;top:0;min-width:44px;min-height:44px;background:white;border-radius:8px;line-height:1;z-index:1001}dialog pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}dialog .recommendation{padding-left:0;padding-right:0}dialog input,dialog select,dialog textarea{min-width:0}#close-menu{border:1px solid #496175;background:#213b51;color:white;border-radius:8px;font-size:26px;min-height:44px;width:44px;align-self:flex-end;margin-bottom:16px}#menu-backdrop{position:fixed;inset:0;z-index:29;background:#091a2a99;border:0;padding:0;width:100%;height:100dvh;touch-action:none}#menu-backdrop[hidden]{display:none}.nav-open{overflow:hidden}#telegram-test-status{margin-top:20px}.chat-context{overflow:visible;height:auto}.chat-form button{min-width:44px;min-height:44px}.leaflet-control-zoom a{width:40px!important;height:40px!important;line-height:40px!important}.map-popup{max-width:min(260px,65vw)}.map-site-list{overscroll-behavior:contain}.map-site-card{overflow-wrap:anywhere}
@media(max-width:1100px){
 #sidebar{transform:translateX(-100%);width:min(320px,88vw);padding:18px 20px calc(24px + env(safe-area-inset-bottom));z-index:30;visibility:hidden;transition:transform .18s ease,visibility .18s}#sidebar.open{transform:translateX(0);visibility:visible}#sidebar .brand{font-size:18px}#sidebar .workspace{margin:22px 0}#sidebar .sidebar-bottom{padding-top:20px}#sidebar nav a{font-size:15px;min-height:48px}#sidebar .access{min-height:44px;font-size:14px}#sidebar .probe-link{font-size:12px}#close-menu{display:block}.main{margin-left:0}#mobile-menu{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex-shrink:0}header{position:sticky;top:0;z-index:15;min-height:65px;height:auto;padding:10px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));gap:12px}.crumb{display:none}.header-right{min-width:0;gap:12px}.mode{font-size:10px;letter-spacing:.4px}.icon-button{min-width:44px;min-height:44px}.columns{grid-template-columns:minmax(0,1fr)}main{padding:26px 24px}.intro{align-items:flex-start}.intro p{font-size:14px}.intro .buttons{flex-direction:row;align-items:stretch}.btn,.text-button,.recommendation .action{min-height:44px;font-size:14px}.text-button,.recommendation .action{display:inline-flex;align-items:center;padding:8px 10px}.buttons{gap:10px}.panel-head{flex-wrap:wrap}.panel-head small,td small,.equipment-card small{font-size:12px}.notice,.recommendation,.integration p,dialog p,.panel-note{font-size:14px;line-height:1.6}.status{font-size:12px}.kpi-label{font-size:13px}.kpi-foot{font-size:12px}.legend{font-size:12px}.map-foot{font-size:13px;gap:12px;flex-wrap:wrap}.form-grid label,label{font-size:14px}input,select,textarea,.toolbar input,.toolbar select,.chat-context select{font-size:16px;min-height:44px}.form-grid{gap:18px}.integration{gap:16px}.integration .btn{font-size:14px;min-height:44px;flex-shrink:0}.integration h3{font-size:16px}.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-context{display:block!important;padding:20px}.chat-context label{font-size:14px}.chat-context p{font-size:13px;display:inline-block;margin:6px 14px 6px 0}.chat-context .notice{margin:14px 0 0}.chat-context select{padding:10px}.messages{padding:20px}.message{font-size:15px;max-width:95%}.suggestions button{font-size:13px;min-height:44px}.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.params div{font-size:13px}.card-footer{font-size:12px;gap:10px;flex-wrap:wrap}.toolbar{flex-wrap:wrap}.toolbar select{width:auto;max-width:100%}.toolbar input{min-width:180px}.table-wrap td{font-size:14px;padding:14px 16px}.table-wrap th{font-size:11px}.record-actions{margin:8px 0;gap:8px}.record-actions button{white-space:normal}.real-map{height:440px}.site-map-layout{grid-template-columns:1fr}.map-site-list{display:flex;max-height:240px;border-right:0;overflow-x:auto;scroll-snap-type:x proximity}.map-site-card{min-width:245px;flex:0 0 280px;scroll-snap-align:start}.map-site-focus b{font-size:15px}.map-site-focus small{font-size:13px}.map-card-actions .text-button{font-size:13px}.rule-dialog{max-width:740px}.rule-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}footer{font-size:12px;padding:20px 24px calc(24px + env(safe-area-inset-bottom))}#toast{bottom:max(16px,env(safe-area-inset-bottom));right:16px;max-width:calc(100vw - 32px);font-size:14px}
}
@media(max-width:700px){
 main{padding:22px max(14px,env(safe-area-inset-right)) 18px max(14px,env(safe-area-inset-left))}header{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.header-right{gap:6px}.header-right .avatar{display:none}.mode{font-size:10px;padding:7px;white-space:normal}h1{font-size:27px;line-height:1.25}.eyebrow{font-size:10px;letter-spacing:1px}.intro{flex-direction:column;gap:16px;margin-bottom:22px}.intro .buttons{width:100%;align-items:stretch}.intro .buttons .btn{flex:1 1 140px}.buttons.section-gap .btn{flex:1 1 150px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpis .card{padding:14px}.kpi-label{font-size:12px;gap:6px}.kpi-icon{display:none}.kpi-num{font-size:30px}.panel-head{padding:16px;gap:12px}.panel-head h2{font-size:17px}.panel-head .legend{width:100%;gap:12px}.recommendation{padding:18px 16px}.recommendation .btn{margin:6px 4px 0 0;max-width:100%}.rec-top{font-size:11px;flex-wrap:wrap;gap:8px}.integration{display:grid;grid-template-columns:44px minmax(0,1fr);padding:18px 16px;align-items:start}.integration .btn{grid-column:2;justify-self:start;margin-left:0;max-width:100%}.panel-note{padding:0 16px 12px}.toolbar{padding:14px;gap:12px}.toolbar input,.toolbar select{flex:1 1 100%;width:100%;min-width:0}.equipment-grid{grid-template-columns:minmax(0,1fr)}.form-grid,.rule-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .wide,.rule-dialog .wide{grid-column:1}.form-grid>*{max-width:100%}.metric-bar{flex-wrap:wrap}.metric-bar div{flex:1 1 120px}.alarm-tabs{gap:8px}.alarm-tabs .btn{flex:1 1 130px}.chat-area{min-height:420px}.chat-head{padding:18px 16px}.messages{padding:16px}.message{padding:14px;max-width:100%}.suggestions{margin:0 16px 16px}.suggestions button{flex:1 1 140px}.chat-form{padding:14px;gap:8px}.chat-form input{width:0;font-size:16px}.chat-form button{padding:0 14px}.chat-context{padding:16px}.site-map-layout{min-height:0}.map-site-list{max-height:250px}.map-site-card{flex-basis:250px;min-width:230px;padding:16px}.real-map{height:clamp(290px,55dvh,420px)}.map-fit{top:12px;right:10px;font-size:13px;min-height:44px;padding:10px}.map-foot{padding:14px 16px}.locator-search input{flex:1 1 100%;min-width:0}.location-map{height:clamp(220px,45dvh,330px)}.location-results{max-height:210px}dialog,.rule-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:18px 16px 24px;border-radius:12px;scrollbar-gutter:auto}dialog h2,.rule-dialog h2{font-size:22px;line-height:1.4}dialog .btn{max-width:100%;font-size:15px}dialog form>.btn{min-width:110px}#create-form>.btn{position:sticky;bottom:0;box-shadow:0 0 0 8px white;width:100%;z-index:2}.rule-dialog #create-form>.btn{width:100%}dialog .notice{padding:14px}.login-hero{padding:4px}.map-popup .btn{font-size:14px}.empty{padding:35px 20px}footer{padding-left:16px;padding-right:16px}
 /* Each record remains a semantic table row; labels repeat the column names. */
 .table-wrap table,.table-wrap tbody{display:block;width:100%;white-space:normal}.table-wrap thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}.table-wrap tbody tr{display:block;margin:14px;border:1px solid var(--line);border-radius:9px;padding:8px 14px;background:white}.table-wrap tbody td{display:block;width:100%;max-width:none;min-width:0!important;padding:10px 0;border:0;border-bottom:1px solid #edf1f5;font-size:14px;white-space:normal}.table-wrap tbody td:last-child{border-bottom:0}.table-wrap tbody td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:#60758a;margin-bottom:5px}.table-wrap tbody td:empty{display:none}.table-wrap td .record-actions{display:flex}.table-wrap td small{font-size:13px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:1100px){#mobile-page-title{display:block;font:700 14px Manrope,Arial;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.header-right{margin-left:auto}.header-right .mode{max-width:180px}}@media(max-width:400px){#mobile-page-title{font-size:12px}.header-right .mode{font-size:9px;max-width:110px}}

@media(pointer:coarse) and (min-width:1101px){.btn,.text-button,nav a,.recommendation .action{min-height:44px;font-size:14px}.icon-button{min-width:44px;min-height:44px}input,select,textarea,.toolbar input,.toolbar select{font-size:16px;min-height:44px}label,td,.notice,.recommendation,dialog p{font-size:14px}.table-wrap td small,.status{font-size:12px}.buttons{flex-wrap:wrap}}

.email-browser-controls{display:grid;gap:10px;margin:20px 0}.email-browser-search{display:flex;gap:10px;align-items:center}.email-browser-search input{flex:1;min-width:0;margin:0}.email-browser-search .btn{margin:0;flex-shrink:0}#email-result-count{font-size:13px;color:#526a80}#email-pagination{margin:18px 0;justify-content:space-between}@media(max-width:700px){.email-browser-search input{font-size:16px}.email-browser-controls .buttons{align-items:flex-start}#email-pagination .btn{flex:1}.email-browser-search .btn{padding:10px 12px}}

.alarm-search{display:grid;gap:8px;padding:18px 22px;border-bottom:1px solid var(--line)}.alarm-search label{font-size:14px;font-weight:600}.alarm-search input{font-size:16px;min-height:44px;margin:0;min-width:0}.alarm-search [role=status]{font-size:13px;color:#60758a}@media(max-width:700px){.alarm-search{padding:16px}}

/* Instrument search stays readable beside the site selector. */
.toolbar.instrument-toolbar{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr)}
.instrument-toolbar input,.instrument-toolbar select{width:100%;min-width:0}
@media(max-width:650px){.toolbar.instrument-toolbar{grid-template-columns:minmax(0,1fr)}}

/* A visible color for every site, including partial readings. */
.status{display:inline-flex;align-items:center;gap:7px;line-height:1.5}
.status .dot{width:12px;height:12px;flex:0 0 12px;margin:0;border:1px solid #ffffff99;box-shadow:0 0 0 1px #0000000d}
.dot.orange,.map-index.warning{background:#e68a00}
.status.warning{background:#fff1d6;color:#875000}
.map-site-card>small{display:block;margin-top:6px;line-height:1.5}
.legend{flex-wrap:wrap;row-gap:8px}.legend span{white-space:nowrap}.legend .dot{width:10px;height:10px}

.instrument-values{margin-top:26px}.instrument-values h3{margin-bottom:8px}.instrument-values h3 small{font-weight:400;color:#788b9a}.instrument-values .params{margin-top:10px}.instrument-values .params>div{border-bottom:1px solid #e7eef3;padding:10px 0}.instrument-values .params small{display:block;color:#8191a0;margin-top:3px}.instrument-values .params b{font-size:18px;line-height:1.45}

.trend-body{padding:22px}.trend-toolbar{display:grid;grid-template-columns:minmax(140px,220px) minmax(170px,1fr);gap:18px}.trend-toolbar label{font-size:13px}.trend-selector{border:1px solid #dce6ed;border-radius:10px;padding:15px;margin:16px 0}.trend-selector summary{cursor:pointer;font-weight:700;margin-bottom:12px}.trend-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:7px;max-height:300px;overflow:auto;margin-top:14px}.trend-option{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid #e8eef2;border-radius:8px;cursor:pointer;min-width:0}.trend-option[hidden]{display:none}.trend-option input{width:18px;height:18px;flex:0 0 18px;margin-top:1px}.trend-option b{font-size:12px;display:block;overflow-wrap:anywhere}.trend-option small{display:block;font-size:11px;color:#768b9b;margin-top:4px}.trend-chart{position:relative;padding:18px 0;border-bottom:1px solid #e8eef2;min-width:0}.trend-chart h3{font-size:16px}.trend-chart svg{display:block;width:100%;height:auto;touch-action:pan-y}.trend-chart svg text{font:11px Arial,sans-serif;fill:#617b8d}.trend-chart svg .trend-state-label{font-size:11px;fill:#2d4b61}.trend-grid{stroke:#e5edf2;stroke-width:1}.trend-line{fill:none;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}.trend-legend{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:11px;margin:12px 0}.trend-legend span{display:flex;align-items:center;gap:6px}.trend-legend i{width:15px;height:3px}.trend-tooltip{position:absolute;z-index:4;background:#102a3f;color:#fff;padding:12px;border-radius:8px;font-size:11px;pointer-events:none;max-width:260px;box-shadow:0 5px 18px #101e3030}.trend-tooltip span{display:block;margin-top:6px}.alarm-muted{color:#916300}.alarm-tabs{flex-wrap:wrap}.alarm-tabs .btn{white-space:normal}
@media(max-width:600px){.trend-body{padding:14px}.trend-toolbar{grid-template-columns:1fr}.trend-options{grid-template-columns:1fr;max-height:240px}.trend-selector .buttons{gap:6px}.trend-selector .btn{font-size:11px;padding:8px}.instrument-trends .panel-head{align-items:flex-start;gap:14px;flex-direction:column}}

.client-site-grant{display:flex;align-items:center;gap:10px;padding:10px;overflow-wrap:anywhere}.client-site-grant input[type=checkbox]{width:20px;min-width:20px;height:20px;margin:0}.client-site-grant[hidden]{display:none}#client-user-form fieldset{min-width:0;border:1px solid #dae3ea;border-radius:8px;padding:12px}#ticket-create-form textarea,#ticket-update-form textarea{width:100%;box-sizing:border-box}#ticket-create-form label,#ticket-update-form label{display:block;margin-bottom:16px}
.recommendation p,.recommendation b,.recommendation small{overflow-wrap:anywhere}

.instrument-card-alarms{border-top:1px solid #dce5ec;margin-top:16px;padding-top:14px;min-width:0;overflow-wrap:anywhere}.instrument-card-alarms p{margin:8px 0}.instrument-card-alarm{border-bottom:1px solid #e7edf2;padding:10px 0}.instrument-card-alarms .buttons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.instrument-card-alarms .btn{white-space:normal;max-width:100%}

/* FreddoIntelligente operational panorama: scoped to the staff overview. */
body.control-room-active{background:#09131f}.control-room-active .main{background:radial-gradient(ellipse at 75% 0,#133047 0,transparent 55%),#09131f;color:#e6eff9}.control-room-active header{background:#0c1928;border-color:#203448;color:#b1c2d5}.control-room-active header .crumb b{color:#eaf4ff}.control-room-active footer{color:#8da5bf;border-color:#233649}.control-room-active main{max-width:1920px;margin:auto}.control-room{--cr-muted:#9ab0c8;--cr-line:#263b50;--cr-cyan:#57e0c1}.control-room h2,.control-room h3{color:#edf6ff}.cr-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.15fr 1fr;gap:35px;align-items:center;min-height:340px;margin-bottom:25px;padding:38px 42px;border:1px solid #2c475c;border-radius:22px;background:radial-gradient(ellipse at 85% 40%,#17496070,transparent 65%),linear-gradient(125deg,#132b3e,#0c1b2b)}.cr-hero:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.3;background-image:linear-gradient(#5cb1bf16 1px,transparent 1px),linear-gradient(90deg,#5cb1bf16 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(90deg,transparent,#000)}.cr-kicker{font-size:10px;letter-spacing:2px;font-weight:700;color:#79cabb;line-height:1.8}.cr-beacon{display:inline-block;width:7px;height:7px;border-radius:50%;background:#59e4c2;box-shadow:0 0 15px #59e4c2;margin-right:8px}.cr-hero h1{font-size:clamp(30px,3.1vw,52px);font-weight:650;letter-spacing:-1.8px;line-height:1.08;margin:22px 0 18px;color:#f3f8ff}.cr-hero h1 span{color:#75decf}.cr-hero p{font-size:13px;line-height:1.8;color:#b2c6da;max-width:460px}.cr-mode{font-size:9px;letter-spacing:1.2px;color:#a5bcd0;margin:22px 0 18px}.control-room .btn{border-color:#365269;background:#172e42;color:#dbeefa}.control-room .btn.primary{background:#6ae2c9;color:#092a30;border-color:#6ae2c9;box-shadow:0 4px 25px #46d2b218}.control-room .btn:hover{border-color:#6ae2c9}.cr-network{display:flex;align-items:center;justify-content:center;gap:24px;min-width:0}.cr-orbit{flex:0 0 206px;width:206px;height:206px;border-radius:50%;position:relative;padding:8px;background:var(--network-colors);box-shadow:0 0 0 15px #5edac70a,0 0 0 30px #5edac708,0 0 60px #5edac715}.cr-orbit-core{height:100%;border-radius:50%;background:radial-gradient(circle at 45% 40%,#183f51,#0c1b2a 80%);display:flex;align-items:center;justify-content:center;flex-direction:column}.cr-orbit-core span{font-size:8px;letter-spacing:2px;color:#9cb9ca}.cr-orbit-core strong{font-size:64px;line-height:1.4;font-weight:500;letter-spacing:-3px;color:#eefaff}.cr-orbit-core small{font-size:8px;letter-spacing:1.4px;color:#8aabc0}.cr-network-legend{display:grid;gap:16px;min-width:125px}.cr-network-legend div{display:flex;align-items:center;gap:9px;font-size:11px;color:#b9cee0}.cr-network-legend i{width:6px;height:6px;border-radius:50%}.cr-network-legend b{margin-left:auto;color:#edf8ff;font-size:14px}.cr-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}.cr-metrics article{position:relative;padding:22px 24px;background:linear-gradient(140deg,#132638,#102030);border:1px solid var(--cr-line);border-radius:14px;min-width:0}.cr-metrics small{display:block;font-size:11px;color:#b0c7d9;padding-right:20px}.cr-metrics strong{display:block;font-size:36px;line-height:1.5;font-weight:500;letter-spacing:-1px;color:#f0f8ff}.cr-metrics article>span:last-child{display:block;font-size:10px;color:#8aa6be;line-height:1.6}.cr-metric-icon{position:absolute;right:19px;top:19px;color:#66ceb9;font-size:18px}.cr-workspace{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(275px,1fr);gap:20px;margin-bottom:30px}.control-room .panel{background:#102131;border:1px solid var(--cr-line);border-radius:17px;overflow:hidden;box-shadow:none;min-width:0}.control-room .panel-head{border-bottom:1px solid var(--cr-line);padding:22px}.control-room .panel-head h2{font-size:18px;margin:7px 0 0;letter-spacing:-.4px}.cr-live-label{color:#78cfc0;font-size:9px;letter-spacing:1px;white-space:nowrap}.cr-counter{display:grid;place-items:center;width:32px;height:32px;background:#233c50;color:#e1f3ff;border-radius:10px;font-weight:700}.control-room .site-map-layout{border-color:var(--cr-line);grid-template-columns:minmax(170px,34%) minmax(0,1fr);min-height:460px}.control-room .real-map{height:500px;background:radial-gradient(ellipse,#244d5d,#122837)}.control-room .map-site-list{background:#0d1d2c;border-color:var(--cr-line);max-height:500px}.control-room .map-site-card{padding:17px 15px;border-color:#22384c;min-width:0}.control-room .map-site-focus{color:#e0edf8}.control-room .map-site-card small{color:#91abc2;line-height:1.6}.control-room .map-site-focus b{font-size:12px}.control-room .map-card-actions{gap:10px}.control-room .text-button,.control-room .map-foot a{color:#7be0cf}.control-room .map-foot{background:#122536;border-color:var(--cr-line);color:#94afc5}.control-room .panel-note{color:#99b2c8;font-size:10px;margin-bottom:0;padding-top:12px}.control-room .map-error{background:#192f42;color:#e3cd9d;border:1px solid #6d6045}.control-room .map-fit{background:#152e42;color:#e6f5ff}.control-room .leaflet-control-zoom a{background:#12283c;color:#cde4f4;border-color:#2d4e68}.control-room .leaflet-control-attribution{background:#12283cec;color:#9bb2c4}.control-room .map-popup{color:#243e52}.control-room .map-popup .btn{background:#e9f7f4;color:#174e49}.control-room .status{font-size:10px;border:1px solid #42627a;background:#20364a;color:#cbdced}.control-room .status.ok{background:#163d37;color:#91e7cc;border-color:#286b5a}.control-room .status.warning{background:#403622;color:#ffcf8a;border-color:#6e5833}.control-room .status.severe{background:#412b3a;color:#ff9daf;border-color:#77404e}.control-room .status.ai{background:#1b3654;color:#95cbff;border-color:#345c83}.control-room .status.unknown{background:#263647;color:#b0c1d3;border-color:#43576e}.cr-feed{padding:0 22px}.cr-event{padding:20px 0;border-bottom:1px solid var(--cr-line)}.cr-event-top{display:flex;justify-content:space-between;gap:8px;font-size:8px;letter-spacing:.6px;color:#efc080}.cr-event-top time{color:#95abc0;white-space:nowrap}.cr-event.critical .cr-event-top>span{color:#ff9bac}.cr-event h3{font-size:13px;line-height:1.6;margin:9px 0 5px;overflow-wrap:anywhere}.cr-event p{color:#9cb3c8;font-size:11px;margin:0 0 12px}.cr-event .text-button{font-size:11px}.cr-all-link{display:block;padding:18px 22px;color:#8bdccf;font-size:11px;border-bottom:1px solid var(--cr-line)}.cr-ai-callout{display:flex;gap:15px;padding:23px;background:linear-gradient(135deg,#16384a,#152337)}.cr-ai-callout>span{font-size:30px;color:#83d3e6}.cr-ai-callout b{font-size:12px;color:#e4f3ff}.cr-ai-callout p{font-size:11px;line-height:1.8;color:#a9c2d8}.cr-ai-callout .text-button{font-size:11px}.cr-clear{text-align:center;padding:40px 12px;color:#a6bdd0}.cr-clear>span{display:grid;place-items:center;margin:auto auto 18px;border:1px solid #2f7566;width:48px;height:48px;border-radius:50%;font-size:25px;color:#70ddbc;background:#153c35}.cr-clear h3{font-size:15px}.cr-clear p{font-size:12px;line-height:1.8}.cr-section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.cr-section-title h2{font-size:21px;margin:6px 0;color:#e5f3ff;letter-spacing:-.5px}.cr-section-title>a{font-size:11px;color:#82ddcc}.cr-site-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.cr-site{background:linear-gradient(140deg,#122638,#0e1e2e);border:1px solid var(--cr-line);border-radius:15px;padding:23px;min-width:0;transition:border-color .2s,transform .2s}.cr-site:hover{border-color:#4a8e98;transform:translateY(-2px)}.cr-site-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.cr-site-head>span:last-child{font-size:10px;color:#8fabbd}.cr-site h3{font-size:16px;margin:19px 0 6px;overflow-wrap:anywhere}.cr-site p{font-size:11px;color:#97b0c5;margin:0 0 15px}.cr-site-reason{font-size:11px;line-height:1.8;color:#bdd0e0;min-height:40px;overflow-wrap:anywhere}.cr-site>small{display:block;color:#8aa5ba;font-size:10px;border-top:1px solid var(--cr-line);padding-top:15px;margin-top:14px}.cr-site>.text-button{margin-top:15px;font-size:11px}.control-room .notice.warn{background:#3d3520;color:#ffe3a3;border-color:#736234}.control-room .empty{color:#9eb7ca}.control-room .empty strong{color:#e7f4ff}@media(min-width:1600px){.cr-hero{min-height:380px}.cr-orbit{flex-basis:236px;width:236px;height:236px}.cr-network{gap:40px}.control-room .real-map{height:550px}.control-room .map-site-list{max-height:550px}}@media(max-width:1250px){.cr-hero{padding:30px;gap:20px}.cr-orbit{flex-basis:166px;width:166px;height:166px}.cr-orbit-core strong{font-size:50px}.cr-network{gap:20px}.cr-network-legend{min-width:110px}.cr-workspace{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr)}.control-room .site-map-layout{grid-template-columns:1fr}.control-room .map-site-list{display:flex;max-height:180px;border-right:0}.control-room .map-site-card{min-width:200px;flex:1}.cr-site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.cr-hero{grid-template-columns:1fr 1fr}.cr-network{flex-direction:column;gap:30px}.cr-network-legend{grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:240px}.cr-network-legend div{font-size:10px;gap:6px}.cr-workspace{grid-template-columns:1fr}.cr-feed{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.cr-metrics article{padding:18px}.cr-metrics small{font-size:10px}.cr-metrics strong{font-size:31px}}@media(max-width:600px){.cr-hero{grid-template-columns:1fr;padding:26px 22px;gap:35px;border-radius:16px}.cr-hero h1{font-size:37px}.cr-hero-copy .cr-kicker{font-size:8px;letter-spacing:1.4px}.cr-hero p{font-size:12px}.cr-mode{font-size:8px;letter-spacing:.7px}.cr-network{flex-direction:row;gap:25px;padding:8px 0 15px}.cr-orbit{flex-basis:136px;width:136px;height:136px;padding:6px;box-shadow:0 0 0 10px #5edac70a,0 0 0 20px #5edac708}.cr-orbit-core strong{font-size:44px}.cr-orbit-core span,.cr-orbit-core small{font-size:6px;letter-spacing:1px}.cr-network-legend{display:grid;grid-template-columns:1fr;gap:13px;min-width:95px;width:auto}.cr-network-legend b{font-size:12px}.cr-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cr-metrics article{padding:18px 14px}.cr-metrics small{font-size:9px}.cr-metric-icon{right:12px;top:16px;font-size:15px}.cr-metrics article>span:last-child{font-size:9px}.cr-metrics strong{font-size:31px}.control-room .panel-head{padding:19px 16px;gap:8px;flex-wrap:wrap}.control-room .panel-head h2{font-size:17px}.cr-kicker{font-size:8px;letter-spacing:1.4px}.cr-live-label{font-size:8px}.cr-feed{grid-template-columns:1fr;padding:0 18px}.cr-site-grid{grid-template-columns:1fr}.cr-site{padding:21px}.cr-section-title h2{font-size:20px}.cr-hero .buttons{align-items:stretch}.cr-hero .btn{font-size:11px;padding:12px}.cr-hero .buttons .btn:first-child{flex:1}.control-room .map-foot{font-size:10px}.control-room .panel-note{padding:12px 16px;font-size:10px}.control-room .real-map{height:380px}}@media(prefers-reduced-motion:reduce){.cr-site{transition:none}.cr-site:hover{transform:none}}
@media(max-width:360px){.cr-network{gap:18px}.cr-orbit{flex-basis:120px;width:120px;height:120px}.cr-network-legend{min-width:88px}.cr-network-legend div{font-size:9px}.cr-hero h1{font-size:33px}}

/* Shared portal shell: horizontal navigation, unified surfaces, persistent assistant. */
body.portal-shell{--ink:#e2edf8;--muted:#9bb0c4;--line:#294052;--bg:#0b1723;--blue:#73c9ef;background:#0b1723;color:var(--ink);font-size:14px}.portal-shell .main{margin-left:0!important;padding-top:136px;min-height:100vh;background:radial-gradient(ellipse at 85% 0,#18374a66,transparent 60%),#0b1723}.portal-shell #sidebar{position:fixed;z-index:60;left:0;right:0;top:0;bottom:auto;width:100%;height:136px;max-height:none;transform:none;padding:17px 32px 0;display:grid;grid-template-columns:minmax(230px,1fr) auto auto;grid-template-rows:53px 65px;align-items:center;gap:0 26px;background:#0b1c2bea;backdrop-filter:blur(22px);border-right:0;border-bottom:1px solid #2b465a;overflow:visible;box-shadow:0 8px 30px #0002}.portal-shell #sidebar .brand{margin:0;font-size:21px;white-space:nowrap}.portal-shell #sidebar .brand small{font-size:8px;letter-spacing:2px;color:#8daac0;margin-top:1px}.portal-shell #sidebar .brand-icon{color:#6ae0cf}.portal-shell #sidebar .workspace{margin:0;padding:0;background:none;border:0;display:flex;gap:10px;font-size:11px}.portal-shell #sidebar .workspace small{font-size:10px;color:#9db4c8;max-width:210px;overflow:hidden;text-overflow:ellipsis}.portal-shell #sidebar .workspace .avatar{width:30px;height:30px;flex-basis:30px;font-size:11px}.portal-shell #sidebar .sidebar-bottom{margin:0;padding:0;border:0;display:block}.portal-shell #sidebar .access{margin:0;padding:10px 15px;border-radius:9px;background:#20394a;border:1px solid #34536a;color:#bdebe6;font-size:11px;white-space:nowrap}.portal-shell #sidebar .guard,.portal-shell #sidebar .probe-link{display:none}.portal-shell #nav{grid-column:1/-1;display:flex;gap:5px;align-items:center;width:100%;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:4px 0 10px;margin:0}.portal-shell #nav a{flex:0 0 auto;display:flex;align-items:center;gap:7px;color:#a9bfd2;font-size:11px;padding:10px 12px;margin:0;border-radius:8px;border:1px solid transparent;white-space:nowrap;min-height:40px}.portal-shell #nav a:hover{background:#1a3548;color:#effbff}.portal-shell #nav a.active{background:#1c434d;border-color:#347365;color:#9af2dc}.portal-shell #nav a .nav-icon{font-size:15px;width:auto}.portal-shell #nav .count{font-size:9px;min-width:17px;background:#513241;color:#ffc0ce}.portal-shell .main>header{position:relative;top:auto;height:65px;background:transparent;border-color:#263b4c;padding:0 34px;color:#91a9bd}.portal-shell header .crumb b{color:#dcebf5}.portal-shell .mobile-brand{display:none}.portal-shell main{max-width:1760px;margin:0 auto;padding:27px 34px 45px}.portal-shell footer{padding:15px 34px 150px;color:#8ba7bd;border-top:1px solid #22394b}.portal-shell h1,.portal-shell h2,.portal-shell h3{color:#e6f2fa}.portal-shell h1{font-weight:600;letter-spacing:-1px}.portal-shell .intro{margin-bottom:27px}.portal-shell .intro p{color:#9db5c8;font-size:13px;line-height:1.8}.portal-shell .eyebrow{color:#79cfc3}.portal-shell .panel,.portal-shell .card{background:linear-gradient(140deg,#132839,#102130);border:1px solid #2b4355;border-radius:15px;box-shadow:0 8px 25px #00000009;min-width:0}.portal-shell .panel-head,.portal-shell .card-footer,.portal-shell .integration,.portal-shell .recommendation,.portal-shell .chat-head,.portal-shell .chat-form{border-color:#2a4355}.portal-shell .panel-head h2{font-size:18px}.portal-shell .panel-head p,.portal-shell .panel-head small,.portal-shell .recommendation p,.portal-shell .integration p,.portal-shell .manual p,.portal-shell .timeline-item p,.portal-shell .timeline-item small,.portal-shell .kpi-label,.portal-shell .kpi-foot,.portal-shell .equipment-card small{color:#9eb6c9}.portal-shell .kpi-num,.portal-shell .params b,.portal-shell .metric-bar strong{color:#e3f5ff}.portal-shell .params div,.portal-shell .card-footer,.portal-shell label,.portal-shell .chat-context label{color:#a1bbcf}.portal-shell .btn{background:#1b3548;color:#d9edf8;border:1px solid #36556c;border-radius:9px;padding:11px 16px;font-size:12px;min-height:40px}.portal-shell .btn:hover{background:#254456;border-color:#6caea5}.portal-shell .btn.primary{background:#6be0c7;border-color:#6be0c7;color:#0b302f;font-weight:600}.portal-shell .btn.danger{background:#402936;border-color:#754052;color:#ffc0cb}.portal-shell .text-button,.portal-shell .text-button:visited,.portal-shell .recommendation .action{color:#83e4ce}.portal-shell .toolbar{gap:13px;padding:18px 22px;border-bottom:1px solid #294253;flex-wrap:wrap}.portal-shell input,.portal-shell select,.portal-shell textarea,.portal-shell .toolbar input,.portal-shell .toolbar select,.portal-shell .chat-context select{background:#0e2130;color:#dfedf9;border:1px solid #3a566c;border-radius:8px;font-size:13px;color-scheme:dark}.portal-shell input::placeholder,.portal-shell textarea::placeholder{color:#7e9ab1}.portal-shell input:focus,.portal-shell select:focus,.portal-shell textarea:focus{outline:2px solid #6ccebb;outline-offset:2px}.portal-shell .chat-context{background:#12283a!important;color:#c1d6e7!important;border:1px solid #2e4b60}.portal-shell table{color:#c4d8e7}.portal-shell th{background:#152e41;color:#a9c6d9;font-size:10px}.portal-shell td{border-color:#2a4153;font-size:12px}.portal-shell td small{color:#91afc4}.portal-shell .status{border:1px solid #3c6070;background:#183e37;color:#9de6cf;font-size:10px}.portal-shell .status.ai{background:#1a3857;border-color:#345e84;color:#a3d1ff}.portal-shell .status.severe{background:#432b38;border-color:#774155;color:#ffacbd}.portal-shell .status.warning{background:#403622;border-color:#6a5938;color:#ffd393}.portal-shell .status.unknown{background:#26394b;border-color:#4a6175;color:#b3cadb}.portal-shell .notice{background:#172f44;border-color:#365673;color:#b6d4eb}.portal-shell .notice.warn{background:#3a3221;border-color:#6c5b35;color:#f2d496}.portal-shell .empty{color:#96b1c5}.portal-shell .empty strong{color:#d5e9f5}.portal-shell .metric-bar div{background:#183449;color:#a2bfd1}.portal-shell .integration-icon{background:#1a4054;color:#86dccb}.portal-shell .message{background:#142e41;color:#d5e9f4;border-color:#34546a}.portal-shell .message.user{background:#214b54;border-color:#42776e;color:#e0fff4}.portal-shell .message small{color:#8ab5c9}.portal-shell .suggestions button{background:#1a3547;border-color:#3b5b6f;color:#b9dbec}.portal-shell .chat-form button{background:#71ddc5;color:#103b35}.portal-shell dialog{background:#112638;border-color:#426278;color:#e1eff9;box-shadow:0 30px 120px #0008}.portal-shell dialog h2{color:#eefaff}.portal-shell dialog p{color:#a2bdd0}.portal-shell dialog::backdrop{background:#040d16ab;backdrop-filter:blur(5px)}.portal-shell .dialog-close{color:#afc8dc}.portal-shell .dialog-close:hover{color:#88efd6}.portal-shell .location-candidate{background:#1b3549;border-color:#3b5c70;color:#d8eaf5}.portal-shell .location-candidate small{color:#a8c1d3}.portal-shell .location-candidate:hover{background:#25495b}.portal-shell .alarm-muted{color:#e6c99c}.portal-shell .panel-note{color:#9eb9cd}.portal-shell #toast{bottom:135px;z-index:90;background:#234956;color:#e8fff8;border:1px solid #58867c}.portal-shell .trend-plot,.portal-shell .trend-chart,.portal-shell .trend-controls,.portal-shell .trend-series{background:#12293b;color:#c6ddea}.portal-shell .trend-tooltip{background:#17374a;border-color:#406a80;color:#e3f5ff}.portal-shell .trend-options label{color:#b8cedd}.portal-shell .trend-empty{color:#a0bdd1}.portal-shell .cr-workspace{display:block}.portal-shell .site-map-layout,.portal-shell .control-room .site-map-layout{display:block;min-height:0}.portal-shell .real-map,.portal-shell .control-room .real-map{height:clamp(500px,65vh,850px);width:100%;background:#152e40}.portal-shell .real-map-shell{width:100%;min-width:0}.portal-shell .control-room .cr-hero{min-height:250px;padding:29px 36px}.portal-shell .control-room .cr-hero h1{font-size:clamp(32px,3vw,48px)}.portal-shell .control-room .cr-orbit{flex-basis:176px;width:176px;height:176px}.portal-shell .control-room .cr-orbit-core strong{font-size:55px}.portal-shell .control-room .cr-map-panel{width:100%}.portal-shell .map-foot{background:#132a3c;border-color:#304b5d;color:#a0bdd0}.portal-shell .map-foot a{color:#85e0cf}.portal-shell .map-fit{background:#183b4e;color:#e2f7ff}.portal-shell .map-popup{color:#234055}.portal-shell .map-popup .btn{background:#e2f7ee;color:#174e49}.portal-shell .map-error{background:#263b48;color:#ffe0a1}.portal-shell #assistant-dock{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(840px,calc(100% - 48px));z-index:65}.portal-shell #assistant-form{display:flex;align-items:center;gap:12px;border:1px solid #436979;background:#132c3ef5;backdrop-filter:blur(22px);box-shadow:0 14px 65px #0008,0 0 35px #60d6ba0a;border-radius:22px;padding:12px 15px;min-height:68px}.portal-shell #assistant-input{border:0!important;outline:0!important;background:transparent;flex:1;width:0;min-width:0;padding:9px 0;margin:0;font-size:14px;box-shadow:none}.portal-shell #assistant-toggle,.portal-shell #assistant-submit{border:0;border-radius:50%;width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;font-size:23px;cursor:pointer}.portal-shell #assistant-toggle{background:#224657;color:#9ae7dc}.portal-shell #assistant-submit{background:#8ae8cd;color:#153c36}.portal-shell #assistant-submit:disabled{opacity:.4;cursor:default}.portal-shell .assistant-footnote{display:block;text-align:center;margin:8px 0 0;color:#87a4b9;font-size:9px;letter-spacing:.6px}.portal-shell #assistant-panel{max-height:min(620px,70vh);margin-bottom:12px;border-color:#496f81;box-shadow:0 20px 80px #0008;overflow:hidden;display:flex;flex-direction:column;background:#102638}.portal-shell #assistant-panel[hidden],.portal-shell #assistant-dock [hidden]{display:none!important}.portal-shell .assistant-panel-head{display:flex;align-items:center;justify-content:space-between;padding:18px 23px;border-bottom:1px solid #345267;gap:14px}.portal-shell .assistant-panel-head b{font-size:13px;color:#dcf6f7}.portal-shell .assistant-panel-head small{display:block;font-size:8px;letter-spacing:1px;color:#94b4c6;margin-top:5px}.portal-shell #assistant-close{background:#203e51;border:1px solid #3b6074;border-radius:8px;color:#cae5ee;font-size:24px;width:32px;height:32px;cursor:pointer}.portal-shell .assistant-context{display:flex;align-items:center;gap:15px;padding:12px 23px;border-bottom:1px solid #2e4b5e;font-size:11px}.portal-shell .assistant-context select{margin:0;flex:1;min-width:0;width:auto;font-size:11px;padding:8px}.portal-shell #assistant-messages{overflow:auto;overscroll-behavior:contain;padding:20px;min-height:150px;max-height:390px;gap:16px}.portal-shell #assistant-messages .message{font-size:13px;line-height:1.8;max-width:94%;overflow-wrap:anywhere}.portal-shell .chat-area{min-height:580px}.portal-shell .mobile-only{display:none}.portal-shell #close-menu{display:none}@media(min-width:1101px){.portal-shell #mobile-menu{display:none}}@media(max-width:1100px){.portal-shell .main{padding-top:68px}.portal-shell .main>header{position:fixed;top:0;left:0;right:0;z-index:58;height:68px;padding:0 22px;background:#0d2131f5;border-bottom:1px solid #365367;backdrop-filter:blur(20px);gap:15px}.portal-shell #mobile-menu{display:block;flex:0 0 36px;width:36px;height:36px;border:1px solid #35596e;border-radius:9px;background:#19394b;color:#e4f6fd;font-size:20px}.portal-shell .mobile-brand{display:block;font-size:15px;color:#9ee7d6;white-space:nowrap}.portal-shell #mobile-page-title,.portal-shell header .crumb{display:none}.portal-shell .header-right{margin-left:auto;gap:12px}.portal-shell #sidebar{top:68px;max-height:calc(100dvh - 84px);height:auto;overflow:auto;display:block;padding:22px;border-radius:0 0 18px 18px;transform:translateY(calc(-100% - 70px));visibility:hidden;transition:transform .2s,visibility .2s;z-index:60;border-bottom:1px solid #426578}.portal-shell #sidebar.open{transform:none;visibility:visible}.portal-shell #sidebar .brand{font-size:22px;margin:0 45px 20px 0}.portal-shell #sidebar .workspace{margin:14px 0 20px}.portal-shell #sidebar .sidebar-bottom{border-top:1px solid #365367;padding:16px 0 3px;margin-top:12px}.portal-shell #sidebar .access{width:auto}.portal-shell #nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:7px;padding:0}.portal-shell #nav a{white-space:normal;line-height:1.4;min-width:0;padding:13px;font-size:12px;min-height:48px}.portal-shell #close-menu{display:block;position:absolute;top:20px;right:24px;border:1px solid #416479;border-radius:9px;background:#1c3c4f;color:#c5e1ee;font-size:24px;width:36px;height:36px}.portal-shell #menu-backdrop{top:68px;z-index:59;background:#030e19b8}.portal-shell main{padding:24px}.portal-shell #assistant-dock{width:min(840px,calc(100% - 40px))}}@media(max-width:700px){.portal-shell .main>header{padding:0 16px;gap:10px}.portal-shell .mobile-brand{font-size:13px}.portal-shell .header-right>.avatar{display:none}.portal-shell main{padding:23px 16px 35px}.portal-shell .intro{gap:15px;flex-direction:column}.portal-shell .intro .buttons{flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start}.portal-shell .intro h1{font-size:28px}.portal-shell .intro p{font-size:12px}.portal-shell .toolbar{padding:14px;gap:10px}.portal-shell #nav{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell #sidebar{padding:20px}.portal-shell #sidebar .brand{font-size:19px}.portal-shell #assistant-dock{width:calc(100% - 24px);bottom:max(8px,env(safe-area-inset-bottom))}.portal-shell #assistant-form{min-height:60px;border-radius:18px;padding:10px;gap:9px}.portal-shell #assistant-input{font-size:12px}.portal-shell #assistant-toggle,.portal-shell #assistant-submit{width:32px;height:32px;flex-basis:32px;font-size:20px}.portal-shell .assistant-footnote{font-size:8px;margin-top:5px}.portal-shell #assistant-panel{max-height:calc(100dvh - 190px);margin-bottom:9px}.portal-shell .assistant-panel-head{padding:15px}.portal-shell .assistant-panel-head b{font-size:12px}.portal-shell .assistant-context{padding:10px 15px;gap:10px;font-size:10px}.portal-shell #assistant-messages{padding:15px;max-height:calc(100dvh - 340px)}.portal-shell #assistant-client-ticket{font-size:10px;white-space:nowrap;padding:7px 10px;min-height:32px}.portal-shell footer{padding:12px 16px 125px}.portal-shell .control-room .cr-hero{padding:25px 22px}.portal-shell .real-map,.portal-shell .control-room .real-map{height:60vh;min-height:410px}.portal-shell .chat-layout{grid-template-columns:1fr}.portal-shell .chat-context{display:block!important}.portal-shell .panel-head{gap:12px;flex-wrap:wrap}.portal-shell .equipment-card{padding:20px}.portal-shell .integration{flex-wrap:wrap}.portal-shell .integration .btn{margin-left:0}.portal-shell #toast{bottom:110px;right:12px;left:12px;max-width:none}.portal-shell td{background:#112839;color:#c2dbe9}.portal-shell td:before{color:#8cafc5}.portal-shell .trend-chart-wrap{background:#112638}}@media(max-width:420px){.portal-shell .mode{font-size:7px;padding:5px}.portal-shell .header-right{gap:6px}.portal-shell .mobile-brand{font-size:11px}.portal-shell .mobile-brand b{font-weight:500}.portal-shell .main>header{gap:9px}.portal-shell .header-right .icon-button{width:26px}.portal-shell #assistant-client-ticket{font-size:9px;padding:7px}.portal-shell #assistant-input:disabled{font-size:10px}}@media(max-height:500px){.portal-shell #assistant-panel{max-height:calc(100dvh - 130px)}.portal-shell #assistant-messages{min-height:40px;max-height:130px}.portal-shell .assistant-context{padding:5px 12px}.portal-shell .assistant-panel-head{padding:8px 12px}}@media(prefers-reduced-motion:reduce){.portal-shell #sidebar{transition:none}}
.portal-shell .trend-selector,.portal-shell .trend-option,.portal-shell .trend-options,.portal-shell .trend-pane,.portal-shell .trend-stat,.portal-shell .instrument-reading,.portal-shell .instrument-alarms-summary{background:#132c3e!important;border-color:#355369!important;color:#c5ddeb}.portal-shell .trend-series label,.portal-shell .trend-selector label{color:#b2cddd}.portal-shell .instrument-card-alarm,.portal-shell .instrument-card-alarms{border-color:#365366}.portal-shell .trend-legend button{background:#1c3a4e;border-color:#42677b;color:#c3e0ec}@media(max-width:1100px){.portal-shell dialog input,.portal-shell dialog select,.portal-shell dialog textarea{font-size:16px}}
.portal-shell #sidebar>.brand{grid-column:1;grid-row:1}.portal-shell #sidebar>.workspace{grid-column:2;grid-row:1}.portal-shell #sidebar>.sidebar-bottom{grid-column:3;grid-row:1}.portal-shell #sidebar>#nav{grid-row:2}@media(max-width:700px){.portal-shell .control-room .cr-orbit{flex-basis:136px;width:136px;height:136px}.portal-shell .control-room .cr-orbit-core strong{font-size:44px}}@media(max-width:360px){.portal-shell .control-room .cr-orbit{flex-basis:110px;width:110px;height:110px}.portal-shell .control-room .cr-orbit-core strong{font-size:37px}}

/* Unified light workspace, fixed top assistant. */
body.portal-shell{--ink:#16344b;--muted:#647d91;--line:#dce7ee;--bg:#f4f8fb;--blue:#147ba9;background:#f4f8fb;color:#16344b;font-family:'Segoe UI',Arial,sans-serif}.portal-shell .main,.control-room-active.portal-shell .main{background:radial-gradient(ellipse at 85% 0,#dff3f566,transparent 55%),#f5f9fc;color:#193a50;padding-top:207px}.portal-shell #sidebar{height:112px;padding:10px 28px 0;grid-template-rows:42px 59px;background:#ffffffed;border-bottom:1px solid #dce7ef;box-shadow:0 3px 18px #274e6810}.portal-shell #sidebar .brand{color:#19384f;font-size:21px}.portal-shell #sidebar .brand .light{color:#2c7b92}.portal-shell #sidebar .brand small{color:#66899d}.portal-shell #sidebar .workspace{color:#2b5167}.portal-shell #sidebar .workspace small{color:#66869c}.portal-shell #sidebar .avatar,.portal-shell .avatar{background:#e3f1f5;color:#2d738a}.portal-shell #sidebar .access{background:#eef6fa;border-color:#caddE8;color:#285d76}.portal-shell #nav{gap:3px;padding:4px 0 9px;scrollbar-color:#b3cbd8 transparent;scrollbar-width:thin}.portal-shell #nav a{padding:9px 9px;color:#5d798d;font-size:11px;gap:6px}.portal-shell #nav a:hover{background:#f0f7fa;color:#194d65}.portal-shell #nav a.active{background:#e0f4ed;border-color:#b4dfd1;color:#177157}.portal-shell #nav .count{background:#fbe7ed;color:#a32b48}.portal-shell .main>header{height:40px;border-color:#e2ebf1;color:#7b94a5;background:transparent}.portal-shell header .crumb b{color:#35596f}.portal-shell .mode{background:#e8f4fa;color:#2c7798;border-color:#d4e8f1}.portal-shell .icon-button{color:#4d788e}.portal-shell h1,.portal-shell h2,.portal-shell h3{color:#183a51}.portal-shell .eyebrow,.portal-shell .cr-kicker{color:#297d8c}.portal-shell .intro p{color:#668297}.portal-shell .panel,.portal-shell .card{background:white;border-color:#dce7ef;box-shadow:0 3px 16px #25475d06}.portal-shell .panel-head,.portal-shell .card-footer,.portal-shell .integration,.portal-shell .recommendation,.portal-shell .chat-head,.portal-shell .chat-form{border-color:#e2eaf0}.portal-shell .panel-head p,.portal-shell .panel-head small,.portal-shell .recommendation p,.portal-shell .integration p,.portal-shell .manual p,.portal-shell .timeline-item p,.portal-shell .timeline-item small,.portal-shell .kpi-label,.portal-shell .kpi-foot,.portal-shell .equipment-card small{color:#6b8598}.portal-shell .kpi-num,.portal-shell .params b,.portal-shell .metric-bar strong{color:#204f69}.portal-shell .params div,.portal-shell .card-footer,.portal-shell label,.portal-shell .chat-context label{color:#68859b}.portal-shell .btn{background:#fff;color:#365f77;border-color:#cddfe9;box-shadow:0 1px 2px #22465d05}.portal-shell .btn:hover{background:#f0f8fb;border-color:#92bfce}.portal-shell .btn.primary{background:#148e7d;border-color:#148e7d;color:#fff}.portal-shell .btn.primary:hover{background:#0e796b}.portal-shell .btn.danger{background:#fff4f5;border-color:#e5b7c0;color:#a83751}.portal-shell .text-button,.portal-shell .text-button:visited,.portal-shell .recommendation .action{color:#147fa1}.portal-shell input,.portal-shell select,.portal-shell textarea,.portal-shell .toolbar input,.portal-shell .toolbar select,.portal-shell .chat-context select{background:white;color:#1e425b;border-color:#cbdde8;color-scheme:light}.portal-shell input::placeholder,.portal-shell textarea::placeholder{color:#8aa0b0}.portal-shell input:focus,.portal-shell select:focus,.portal-shell textarea:focus{outline-color:#32a3a0}.portal-shell .toolbar{border-color:#e0eaf0;background:#fbfdff;border-radius:14px 14px 0 0}.portal-shell .chat-context{background:#f8fcfe!important;color:#355e77!important;border-color:#d7e6ee}.portal-shell th{background:#f5f9fc;color:#638399}.portal-shell td{color:#365e77;border-color:#e6eef4}.portal-shell td small{color:#7d98a9}.portal-shell .status{background:#e5f5ed;border-color:#c0e2d2;color:#267557}.portal-shell .status.ai{background:#e4f2ff;border-color:#c2ddf5;color:#2e75b4}.portal-shell .status.severe{background:#fff0f3;border-color:#efc2cd;color:#b33855}.portal-shell .status.warning,.portal-shell .status.unknown,.portal-shell .control-room .status.warning,.portal-shell .control-room .status.unknown{background:#eef3f7;border-color:#d0dce6;color:#5f788c}.portal-shell .dot.orange{background:#64748b}.portal-shell .notice{background:#edf7fc;border-color:#d0e6f1;color:#4b7792}.portal-shell .notice.warn,.portal-shell .control-room .notice.warn{background:#f1f5f9;border-color:#cbd5e1;color:#526b80}.portal-shell .empty{color:#7c98aa}.portal-shell .empty strong{color:#426d85}.portal-shell .metric-bar div{background:#eff7fb;color:#6d8ba1}.portal-shell .integration-icon{background:#e9f6f7;color:#238d99}.portal-shell .message{background:#f4f9fc;color:#315d78;border-color:#d7e7ef}.portal-shell .message.user{background:#e5f4f0;border-color:#b9dfd2;color:#225d50}.portal-shell .message small{color:#7c9aaa}.portal-shell .suggestions button{background:white;border-color:#d7e5ee;color:#4b7c97}.portal-shell .chat-form button{background:#15947f;color:white}.portal-shell dialog{background:#fff;border-color:#cfdee9;color:#234b65;box-shadow:0 30px 120px #193d5c40}.portal-shell dialog h2{color:#24485f}.portal-shell dialog p{color:#6b899e}.portal-shell dialog::backdrop{background:#19364b66;backdrop-filter:blur(4px)}.portal-shell .dialog-close{color:#6a8ca2;background:#f1f7fb;border:1px solid #d9e6ee;border-radius:9px}.portal-shell .dialog-close:hover{color:#176c85}.portal-shell .location-candidate{background:#f4f9fc;border-color:#dae7ef;color:#315c77}.portal-shell .location-candidate small{color:#6f91a7}.portal-shell .location-candidate:hover{background:#e7f4fa}.portal-shell .alarm-muted{color:#697e8e}.portal-shell .panel-note{color:#718c9e}.portal-shell #toast{top:auto;bottom:22px;background:#1a5667;border-color:#3b7a88;color:white}.portal-shell .trend-selector,.portal-shell .trend-option,.portal-shell .trend-options,.portal-shell .trend-pane,.portal-shell .trend-stat,.portal-shell .instrument-reading,.portal-shell .instrument-alarms-summary{background:#fff!important;border-color:#d5e4ed!important;color:#426d87}.portal-shell .trend-series label,.portal-shell .trend-selector label{color:#4b748c}.portal-shell .trend-chart,.portal-shell .trend-controls,.portal-shell .trend-series,.portal-shell .trend-chart-wrap{background:#fff;color:#4e7a92}.portal-shell .trend-tooltip{background:#19475e;border-color:#346e84;color:#fff}.portal-shell .trend-chart svg text{fill:#6c889c}.portal-shell .trend-chart svg .trend-state-label{fill:#355d78}.portal-shell .trend-grid{stroke:#e5edf2}.portal-shell .trend-legend button{background:#f8fcfe;border-color:#cddfe9;color:#47738e}.portal-shell .instrument-card-alarm,.portal-shell .instrument-card-alarms{border-color:#dce7ee}.portal-shell .control-room .cr-hero{background:radial-gradient(ellipse at 80% 30%,#d8f3ef80,transparent 70%),linear-gradient(115deg,#fff,#f4fbfd);border-color:#cfe4ea;box-shadow:0 6px 26px #28566608;min-height:220px;padding:28px 34px}.portal-shell .control-room .cr-hero h1{color:#264b63;font-size:clamp(31px,3vw,44px)}.portal-shell .control-room .cr-hero h1 span{color:#168b83}.portal-shell .cr-hero p{color:#6d8ba0}.portal-shell .cr-mode{color:#7094a8}.portal-shell .cr-beacon{background:#32bca2;box-shadow:0 0 12px #32bca233}.portal-shell .cr-orbit{box-shadow:0 0 0 12px #1aaf9306,0 0 0 24px #1aaf9304}.portal-shell .cr-orbit-core{background:radial-gradient(circle,#fff,#f2fbf8)}.portal-shell .cr-orbit-core strong{color:#285571}.portal-shell .cr-orbit-core span,.portal-shell .cr-orbit-core small{color:#7f9caf}.portal-shell .cr-network-legend div{color:#6c8b9f}.portal-shell .cr-network-legend b{color:#315e78}.portal-shell .cr-metrics{gap:15px}.portal-shell .cr-metrics article{background:white;border-color:#dce8f0;box-shadow:0 3px 14px #31516a06;padding:18px 23px}.portal-shell .cr-metrics small{color:#6b8a9e}.portal-shell .cr-metrics strong{color:#2a556d;font-size:33px}.portal-shell .cr-metrics article>span:last-child{color:#8ba1af}.portal-shell .cr-metric-icon{color:#219e9b}.portal-shell .control-room .panel,.portal-shell .cr-site{background:#fff;border-color:#d8e6ef;box-shadow:0 3px 16px #244d6305}.portal-shell .control-room .panel-head{border-color:#e0ebf1}.portal-shell .cr-live-label{color:#3d9b8a}.portal-shell .map-foot,.portal-shell .control-room .map-foot{background:#f8fcfe;border-color:#dce8f0;color:#7794a7}.portal-shell .map-foot a,.portal-shell .control-room .map-foot a{color:#1f899c}.portal-shell .map-fit,.portal-shell .control-room .map-fit{background:white;color:#376e88;border-color:#c4dce8}.portal-shell .map-error,.portal-shell .control-room .map-error{background:#f1f6fa;color:#5d7c92;border-color:#ccdae5}.portal-shell .real-map,.portal-shell .control-room .real-map{background:#eaf3f7}.portal-shell .control-room .leaflet-control-zoom a{background:white;color:#386f89}.portal-shell .control-room .leaflet-control-attribution{background:#ffffffe8;color:#6d8c9d}.portal-shell .cr-section-title h2,.portal-shell .cr-site h3{color:#2b536c}.portal-shell .cr-section-title>a{color:#228a9e}.portal-shell .cr-site-reason{color:#67879a}.portal-shell .cr-site p{color:#8ca4b3}.portal-shell .cr-site-head>span:last-child,.portal-shell .cr-site>small{color:#7f9eaf;border-color:#e4edf3}.portal-shell .cr-site>.text-button{color:#248b9e}.portal-shell .control-room .text-button{color:#248b9e}.portal-shell .real-map .empty{padding:40px 20px}.portal-shell .map-consent{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px;height:100%;max-width:620px;margin:auto;color:#6a8da1}.portal-shell .map-consent>span{display:grid;place-items:center;width:70px;height:70px;border:1px solid #bedee5;background:#f7fdfd;border-radius:50%;font-size:32px;color:#39a5a2;margin-bottom:18px}.portal-shell .map-consent h3{font-size:23px;color:#3b6a83}.portal-shell .map-consent p{font-size:13px;line-height:1.9;max-width:490px}.portal-shell .map-consent>a{color:#2a91a0;font-size:12px;margin-top:16px}.portal-shell #assistant-dock{top:120px;bottom:auto;width:min(900px,calc(100% - 48px));display:flex;flex-direction:column}.portal-shell #assistant-form{order:0;min-height:56px;border-radius:17px;padding:9px 13px;background:#fffefeee;border-color:#c7dce7;box-shadow:0 4px 20px #21475f10;backdrop-filter:blur(18px)}.portal-shell #assistant-input{color:#315c75;font-size:14px}.portal-shell #assistant-input::placeholder{color:#90a5b3}.portal-shell #assistant-toggle{background:#e5f4f3;color:#2d9d98}.portal-shell #assistant-submit{background:#209b89;color:#fff}.portal-shell .assistant-footnote{order:1;color:#8aa1b0;margin:5px 0 0;font-size:8px}.portal-shell #assistant-panel{order:2;margin:8px 0 0;max-height:calc(100dvh - 235px);background:#fff;border-color:#c1d9e6;box-shadow:0 14px 55px #21475f22}.portal-shell .assistant-panel-head{border-color:#d8e7ef}.portal-shell .assistant-panel-head b{color:#386b80}.portal-shell .assistant-panel-head small{color:#86a3b4}.portal-shell #assistant-close{background:#f0f7fb;border-color:#d2e3ed;color:#6491a8}.portal-shell .assistant-context{border-color:#e1ebf2;color:#6f91a7}.portal-shell #assistant-messages{max-height:min(390px,calc(100dvh - 365px));background:#fcfeff}.portal-shell footer{padding-bottom:30px;color:#8ca3b2;border-color:#e0eaf1;flex-wrap:wrap}.portal-shell .legal-links{display:flex;gap:17px;flex-wrap:wrap}.portal-shell .legal-links a{color:#4e849c;font-size:11px}.portal-shell .legal-document{padding:32px 40px;max-width:1050px;line-height:1.85}.portal-shell .legal-document h2{font-size:23px;margin:0 0 18px}.portal-shell .legal-document h3{font-size:17px;margin:27px 0 8px}.portal-shell .legal-document p{font-size:13px;color:#5e7e93}.portal-shell .legal-document a{color:#187e9d}.portal-shell .legal-document code{background:#f2f6f9;padding:3px 7px;border-radius:4px;color:#416e88}.portal-shell .legal-version{border-top:1px solid #dfebf1;padding-top:15px;margin-top:28px;color:#91a6b5!important}.portal-shell .security-card{margin-bottom:22px}.portal-shell .security-body{padding:25px 28px;font-size:13px;line-height:1.85}.portal-shell .security-body p{color:#6b899e}.portal-shell .security-body .checkbox-label{margin:16px 0;font-size:12px}.portal-shell .security-body form>.btn{margin-top:20px}.portal-shell .otp-key{padding:18px;border:1px dashed #95c7cf;border-radius:9px;background:#f4fbfc;overflow-wrap:anywhere;color:#237f8a!important;font-size:18px!important;letter-spacing:1px}.portal-shell .recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.portal-shell .recovery-codes code{padding:11px;background:#f1f7fb;border:1px solid #d6e6ef;border-radius:7px;text-align:center;color:#3a6c86;font-size:13px}.portal-shell #mfa-setup-form label,.portal-shell #mfa-disable-form label,.portal-shell #mfa-assistance-form label,.portal-shell #technical-access-form label,.portal-shell #parameter-request-form label{margin:14px 0}.portal-shell .connection-table table{white-space:normal}.portal-shell .connection-table th{font-size:9px;padding:11px 15px}.portal-shell .connection-table td{padding:13px 15px;font-size:11px;vertical-align:top;min-width:0}.portal-shell .connection-table td:first-child{min-width:150px}.portal-shell .connection-table td:last-child{max-width:370px}.portal-shell .connection-table .buttons{gap:6px;flex-wrap:wrap}.portal-shell .connection-table .btn{padding:7px 10px;min-height:32px;font-size:10px;white-space:normal}.portal-shell .connection-table .status{max-width:240px;white-space:normal;line-height:1.7}.portal-shell .connection-actions{display:inline-block;font-size:10px;color:#58839a}.portal-shell .connection-actions>summary{cursor:pointer;border:1px solid #d5e4ed;padding:6px 9px;border-radius:7px;min-height:32px;list-style-position:inside}.portal-shell .connection-actions[open]{flex-basis:100%}.portal-shell .connection-actions .buttons{padding:12px 0 0;max-width:370px}.portal-shell .connection-bottom{display:grid;grid-template-columns:1fr;gap:12px;margin-top:22px}.portal-shell .connection-fold{padding:0 20px}.portal-shell .connection-fold>summary{padding:17px 0;color:#52798e;font-size:13px;font-weight:600;cursor:pointer}.portal-shell .connection-fold>.panel{border:0;box-shadow:none}.portal-shell .connection-fold>.buttons{margin-bottom:16px}.portal-shell .connection-fold>.btn{margin:4px 8px 15px 0}.portal-shell.nav-open #assistant-dock{visibility:hidden}@media(max-width:1100px){.portal-shell .main{padding-top:145px}.portal-shell .main>header{height:60px;background:#ffffffef;border-color:#d7e5ee}.portal-shell .mobile-brand{color:#357b8e}.portal-shell #mobile-menu{background:#f1f8fb;border-color:#c8e0eb;color:#3c7a94}.portal-shell #sidebar{top:60px;height:auto;max-height:calc(100dvh - 75px);padding:20px}.portal-shell #sidebar .access{background:#f1f7fb}.portal-shell #sidebar .sidebar-bottom{border-color:#d8e6ee}.portal-shell #close-menu{background:#f1f7fb;border-color:#c9dfe9;color:#537e96}.portal-shell #menu-backdrop{top:60px;background:#284d6755}.portal-shell #assistant-dock{top:68px;width:calc(100% - 36px)}.portal-shell #assistant-input{font-size:16px}.portal-shell #assistant-panel{max-height:calc(100dvh - 175px)}.portal-shell #assistant-messages{max-height:calc(100dvh - 310px)}.portal-shell dialog input,.portal-shell dialog select,.portal-shell dialog textarea{font-size:16px}.portal-shell .connection-table td:last-child{max-width:none}}@media(max-width:700px){.portal-shell .main{padding-top:141px}.portal-shell #assistant-dock{top:67px;width:calc(100% - 24px);bottom:auto}.portal-shell #assistant-form{min-height:54px;padding:9px 10px}.portal-shell #assistant-input{font-size:16px}.portal-shell .assistant-footnote{font-size:7px;margin-top:4px}.portal-shell #assistant-panel{max-height:calc(100dvh - 155px)}.portal-shell #assistant-messages{max-height:calc(100dvh - 295px);min-height:100px}.portal-shell .legal-document{padding:23px}.portal-shell .legal-document p{font-size:13px}.portal-shell .security-body{padding:21px}.portal-shell .recovery-codes{grid-template-columns:1fr}.portal-shell .connection-table td{background:#fff;color:#54768e}.portal-shell .connection-table td:before{color:#87a0b1}.portal-shell .control-room .cr-hero{padding:25px 22px}.portal-shell .cr-metrics article{padding:17px 14px}.portal-shell .cr-metrics strong{font-size:30px}.portal-shell .map-consent{padding:23px}.portal-shell .map-consent h3{font-size:20px}.portal-shell .map-consent p{font-size:12px}.portal-shell footer{padding-bottom:25px}.portal-shell .legal-links{gap:12px}.portal-shell #toast{top:auto;bottom:15px}}@media(max-height:550px){.portal-shell #assistant-panel{max-height:calc(100dvh - 160px)}.portal-shell #assistant-messages{max-height:100px;min-height:30px}.portal-shell .assistant-panel-head{padding:8px 12px}.portal-shell .assistant-context{padding:5px 12px}}@media(max-width:420px){.portal-shell #assistant-input{font-size:16px}.portal-shell #assistant-input:disabled{font-size:10px}}
.portal-shell .admin-stepup{border:1px solid #d7e6ef;border-radius:9px;margin:12px 0 4px;padding:17px;min-width:0}.portal-shell .admin-stepup legend{color:#598299;font-size:12px}.portal-shell .admin-stepup p{font-size:11px}.portal-shell .admin-stepup label{margin:12px 0}

/* Private, locally generated Authenticator enrollment code. */
.portal-shell .otp-qr{display:flex;justify-content:center;margin:18px auto;background:#fff;max-width:100%}.portal-shell .otp-qr img{display:block;width:300px;max-width:100%;height:auto;image-rendering:pixelated;aspect-ratio:1}.portal-shell .otp-manual{margin:18px 0;padding:12px 14px;border:1px solid #d6e5ed;border-radius:10px;background:#f7fbfd}.portal-shell .otp-manual summary{cursor:pointer;color:#245d76;font-size:13px;line-height:1.5}.portal-shell .otp-manual .otp-key{overflow-wrap:anywhere;word-break:break-all}.portal-shell dialog .otp-private{font-size:12px;color:#526f82}

.diagnosis-figure{margin:20px 0;max-width:100%;min-width:0}.diagnosis-figure svg{display:block;width:100%;height:auto;background:#fff;border:1px solid #e5ebf1;border-radius:12px}.diagnosis-figure figcaption{font-size:12px;line-height:1.6;color:#62758a;margin:10px 0;overflow-wrap:anywhere}

/* TECHNICAL_WORKSPACE_BUNDLE */
/* Bright, compact technical workspace. Status colour always accompanied by text. */
.portal-shell{--ink:#20364e;--muted:#5a7188;--line:#dce6f0;--bg:#f5f8fd;background:#f5f8fd;color:var(--ink)}
.portal-shell main{max-width:1760px}.portal-shell h1{font-size:clamp(25px,2.6vw,36px);letter-spacing:-.8px}.portal-shell h2{font-size:17px}.portal-shell .intro{margin-bottom:22px}.portal-shell .intro p,.portal-shell .panel-head p{color:#5a7188;font-size:13px}.portal-shell .panel,.portal-shell .card{background:#fff;border-color:#dce6f0;box-shadow:0 3px 18px #274d7510;border-radius:14px}.portal-shell .panel-head{padding:20px 22px}.portal-shell .btn{min-height:40px;border-radius:9px;font-weight:600;font-size:12px;padding:9px 14px;background:#fff;border-color:#cfdfed;color:#294c6e}.portal-shell .btn.primary{background:#1169d9;color:#fff;border-color:#1169d9;box-shadow:0 3px 8px #1169d926}.portal-shell .btn.danger{background:#fff3f4;border-color:#f0c4cd;color:#ae2944}.portal-shell .text-button{font-weight:700;color:#1767c3}.portal-shell input,.portal-shell select,.portal-shell textarea{border-radius:9px;border-color:#cbdbe9;background:#fff;color:#20364e;min-height:42px}.portal-shell label{color:#355674;font-size:13px}.portal-shell .status{font-size:11px;font-weight:700;border-radius:7px;line-height:1.4;padding:6px 9px;white-space:normal}.portal-shell .status.ok{color:#087753;background:#e4f7ee;border:1px solid #bfe8d5}.portal-shell .status.severe{color:#b32242;background:#fff0f3;border:1px solid #f5c7d1}.portal-shell .status.ai{color:#0c64bd;background:#e8f3ff;border:1px solid #c0ddfd}.portal-shell .status.warning{color:#825300;background:#fff5d9;border:1px solid #f0dfa5}.portal-shell .status.unknown{color:#4e657b;background:#eff4f9;border:1px solid #d8e4ee}.portal-shell .status.warning .dot{background:#8998a9}.portal-shell .notice{border-radius:11px;color:#375876;background:#eff6ff;border:1px solid #d5e7fb;padding:15px 18px;line-height:1.7}.portal-shell .notice.warn{color:#70561e;background:#fff9e9;border-color:#eedfae}.portal-shell .toolbar{padding:16px;gap:12px}.portal-shell table th{color:#53718b;background:#f3f7fc;font-size:10px;letter-spacing:.6px}.portal-shell table td{padding:14px 16px}.portal-shell table td small{display:block;margin-top:4px;color:#61788d;line-height:1.5}.portal-shell .table-wrap{border-radius:0 0 14px 14px}.portal-shell .equipment-card{border-top:4px solid #2e86dd;padding:22px}.portal-shell .equipment-icon{color:#0879a1;background:#eaf8fc}.portal-shell .equipment-card h3{font-size:17px;margin:8px 0 12px}.portal-shell .equipment-card .params{gap:8px}.portal-shell .params>div{background:#f4f8fe;border:1px solid #e2ebf5;border-radius:9px;padding:12px;color:#55728e}.portal-shell .params>div>b{font-size:19px;color:#194c7c}.portal-shell .instrument-values{border-left:4px solid #2586d7;padding:8px 0 8px 15px;margin:16px 0}.portal-shell .instrument-values:nth-of-type(2){border-left-color:#0eac83}.portal-shell .instrument-values:nth-of-type(3){border-left-color:#ab70dc}.portal-shell .instrument-values:nth-of-type(4){border-left-color:#d79224}.portal-shell .instrument-values h3{margin-bottom:12px;font-size:15px}.portal-shell .card-footer{flex-wrap:wrap;gap:9px}.portal-shell .card-footer .btn{font-size:11px;padding:6px 9px;min-height:34px}.portal-shell dialog{background:#fff;border:1px solid #d6e2ee;box-shadow:0 25px 90px #0e345948;border-radius:18px}.portal-shell dialog::backdrop{background:#163b6066;backdrop-filter:blur(3px)}.portal-shell dialog h2{font-size:23px;color:#203e5c}.portal-shell dialog .form-grid{gap:14px}.portal-shell dialog details{margin:14px 0}.portal-shell summary{cursor:pointer;font-weight:650;color:#345c7e}.portal-shell .connection-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-shell .connection-fold{min-width:0}.portal-shell .connection-fold summary{padding:17px}.portal-shell .connection-actions>div{background:#fff;border:1px solid #dce6f0;padding:12px;border-radius:9px}.portal-shell .connection-table .buttons{flex-wrap:wrap;gap:6px}.portal-shell .connection-table .btn{font-size:11px;padding:7px 10px;min-height:34px}
.tech-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px}.tech-metric{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;border:1px solid #dce6f0;border-top:4px solid var(--tone);border-radius:13px;padding:19px 22px;box-shadow:0 3px 16px #274d7509;color:#294963;min-width:0}.tech-metric>span{font-size:13px;font-weight:700}.tech-metric>b{font-size:36px;line-height:1.4;color:var(--tone)}.tech-metric>small{font-size:11px;color:#657b90}.tone-red{--tone:#d43b59}.tone-amber{--tone:#bc8514}.tone-blue{--tone:#247cdc}.tone-purple{--tone:#8a58ca}.tech-priorities{margin-bottom:22px}.tech-priority-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tech-priority{display:flex;align-items:center;gap:13px;text-align:left;background:#fff;border:0;border-top:1px solid #e7eef6;padding:15px 22px;color:#254965;min-width:0}.tech-priority>span:nth-child(2){flex:1;min-width:0}.tech-priority b{display:block;overflow-wrap:anywhere;font-size:12px}.tech-priority small{display:block;margin-top:3px;color:#70859a;font-size:11px}.tech-priority-mark{width:31px;height:31px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;font-size:18px;font-weight:800}.tech-priority-mark.red{background:#fff0f3;color:#c73151}.tech-priority-mark.amber{background:#fff4d7;color:#946309}.tech-clear{display:flex;flex-direction:column;gap:5px;padding:18px 22px;color:#386755;background:#f3fbf7;border-radius:0 0 14px 14px}.tech-clear span{font-size:12px;color:#59796d}.tech-map{overflow:hidden;margin-bottom:22px}.tech-map .real-map{min-height:500px;height:56vh;max-height:700px}.tech-map .map-foot{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#637e95}.tech-site-section>.panel-head{padding:14px 0}.tech-site-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tech-site-card{background:#fff;border:1px solid #dce6f0;border-left:4px solid #8da1b5;border-radius:12px;padding:20px;min-width:0}.tech-site-card.site-ok{border-left-color:#14a277}.tech-site-card.site-severe{border-left-color:#d83a59}.tech-site-card.site-ai{border-left-color:#2782df}.tech-site-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.tech-site-card small{font-size:11px;color:#647f94}.tech-site-card h3{font-size:17px;margin:13px 0 8px}.tech-site-card p{color:#557089;font-size:12px;min-height:38px}.tech-site-card .buttons{margin-top:15px;flex-wrap:wrap}.tech-more{position:relative;min-width:130px;align-self:center}.tech-more>summary{padding:10px 13px;list-style:none;color:#395c7b;border-radius:8px;background:#edf4fb;font-size:12px}.tech-more>div{position:absolute;right:0;top:calc(100% + 8px);z-index:70;width:230px;padding:8px;background:#fff;box-shadow:0 15px 50px #274d7530;border:1px solid #d5e2ef;border-radius:12px;max-height:65vh;overflow:auto}.tech-search-launch{white-space:nowrap}.tech-search-results{max-height:55vh;overflow:auto;margin-top:15px}.tech-search-result{display:grid;width:100%;grid-template-columns:90px 1fr;gap:3px 12px;text-align:left;padding:13px;border:0;border-bottom:1px solid #e2ebf4;background:#fff;color:#274967}.tech-search-result small{grid-column:2;color:#6a8299}.tech-search-result b{overflow-wrap:anywhere;font-size:13px}.tech-result-kind{font-size:10px;color:#126cb9;background:#ecf5ff;padding:4px 6px;border-radius:5px;align-self:start}.tech-instrument-tools{display:flex;align-items:center;gap:20px;padding:16px 20px;background:#fff;border:1px solid #dae6f2;border-radius:12px;margin:0 0 20px}.tech-instrument-tools label{flex:1}.tech-instrument-tools input{width:100%;margin-top:5px}.tech-signal-guide{font-size:12px;color:#6d8398}.tech-help{padding:18px 22px;border-top:1px solid #e4edf5;font-size:12px;color:#58738b}.tech-help p{line-height:1.8}#tech-gateway-equipment{border:1px solid #d4e1ee;border-radius:10px;max-height:250px;overflow:auto;margin:15px 0;padding:12px}#tech-gateway-equipment .checkbox-label{display:flex;gap:9px;align-items:center;margin:8px 0}#tech-gateway-equipment input[type=checkbox]{min-height:0}.portal-shell [hidden]{display:none!important}
@media(min-width:1101px){.portal-shell #nav{gap:5px;flex-wrap:nowrap;overflow:visible;justify-content:flex-start}.portal-shell #nav>a{padding:9px 11px;white-space:nowrap;font-size:12px}.portal-shell #nav .nav-icon{width:17px;font-size:16px}.portal-shell .top-navigation{overflow:visible}.portal-shell .top-navigation .brand{font-size:20px}.portal-shell .top-navigation .brand small{font-size:8px}.portal-shell .top-navigation .workspace{margin-left:auto}.portal-shell .top-navigation .guard{display:none}.portal-shell .top-navigation .sidebar-bottom{gap:10px}}
@media(max-width:1250px) and (min-width:1101px){.portal-shell #nav>a{padding:9px 7px;font-size:11px}.portal-shell #nav .nav-icon{display:none}.tech-more{min-width:120px}.portal-shell .top-navigation .workspace{max-width:210px}.tech-site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.tech-more{width:100%}.tech-more>div{position:static;width:100%;max-height:none;box-shadow:none;margin-top:6px}.tech-more>summary{background:#edf4fb}.tech-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tech-site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tech-priority-list{grid-template-columns:1fr}.portal-shell .connection-bottom{grid-template-columns:1fr}.portal-shell .header-right{gap:8px}.tech-search-launch{padding:7px 10px!important}}
@media(max-width:600px){.tech-metrics{gap:9px}.tech-metric{padding:13px}.tech-metric>b{font-size:30px}.tech-metric>span{font-size:12px}.tech-metric>small{font-size:10px}.tech-site-grid{grid-template-columns:1fr}.portal-shell .panel-head{padding:16px;align-items:flex-start;flex-wrap:wrap;gap:12px}.tech-priority{padding:13px;gap:9px}.tech-priority .status{max-width:100px}.tech-map .real-map{min-height:380px;height:55vh}.tech-instrument-tools{flex-direction:column;align-items:stretch;gap:8px}.portal-shell .header-right .avatar{display:none}.portal-shell .header-right .mode{max-width:135px;line-height:1.4;letter-spacing:0;font-size:8px}.portal-shell .intro .buttons{flex-wrap:wrap}.tech-search-result{grid-template-columns:72px 1fr;padding:11px}.portal-shell .btn{min-height:42px}.portal-shell .top-navigation .workspace{margin-top:14px}.portal-shell .instrument-values{padding-left:10px}}

.rule-schedule{border:1px solid #d7e3ef;border-radius:10px;padding:14px;margin:18px 0}.rule-weekdays{display:flex;flex-wrap:wrap;gap:12px}.rule-weekdays label{display:flex;gap:5px;align-items:center}.rule-weekdays input{min-height:0!important}

.tech-section-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.tech-section-tabs .btn{min-width:105px}.portal-shell [data-tech-connection-pane]>.section-gap{margin-top:0}

/* Keep the fixed assistant compact and reserve its space; menus stay above it. */
.portal-shell #sidebar{z-index:110}.portal-shell #nav,.portal-shell .tech-more{overflow:visible}.portal-shell .tech-more>div{z-index:120}
.portal-shell #assistant-dock{top:calc(var(--fi-nav-bottom,112px) + 6px);z-index:80;width:min(820px,calc(100% - 36px));bottom:auto}
.portal-shell #assistant-form{min-height:46px;padding:5px 9px;border-radius:13px;gap:8px}.portal-shell #assistant-input{min-height:34px;font-size:14px}.portal-shell #assistant-toggle,.portal-shell #assistant-submit{width:34px;height:34px;min-height:34px;font-size:20px}.portal-shell .assistant-footnote{display:none}.portal-shell #assistant-panel{max-height:calc(100dvh - var(--fi-nav-bottom,112px) - 80px);overflow:auto}
.portal-shell .main{padding-top:calc(var(--fi-nav-bottom,112px) + 64px)}
.notification-preview{border:1px solid #d8e5f1;border-radius:12px;margin:18px 0;padding:17px;background:#f7faff}.notification-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 Arial,sans-serif;color:#274b68}.preview-buttons>div{display:flex;gap:8px;flex-wrap:wrap;margin:7px 0}.preview-buttons span{background:#e6f0fa;border:1px solid #cbddec;border-radius:8px;padding:8px 10px;font-size:12px;color:#315976}
@media(max-width:1100px){.portal-shell #assistant-dock{top:calc(var(--fi-nav-bottom,68px) + 4px);width:calc(100% - 24px)}.portal-shell .main{padding-top:calc(var(--fi-nav-bottom,68px) + 61px)}}

.mail-route-table input[type=checkbox]{min-height:22px;width:22px;height:22px;accent-color:#168f80}.mail-route-table td:not(:first-child),.mail-route-table th:not(:first-child){text-align:center}.recipient-client{margin:12px 18px;border:1px solid #d4e2ef;border-radius:10px;padding:14px}.recipient-client>summary{cursor:pointer;color:#1767a6;padding:5px}.recipient-site{margin-top:12px;border-top:2px solid #e0edf6}.recipient-site .panel-head{padding:12px 0}.recipient-site td .buttons{gap:6px}.recipient-site h3{margin:0}

.identity-label{display:block;color:#526f89;line-height:1.5;padding:6px 0 10px}.tech-help>ul{line-height:1.7;padding-left:22px}

/* Notification workspace: readable steps and keyboard focus. */
.notification-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px}.notification-steps article{border:1px solid #c6d9e9;border-radius:14px;padding:18px;background:#f6fbff}.notification-steps article b{color:#174963;font-size:1.08rem}.notification-steps p{line-height:1.6}.telegram-workspace{margin-bottom:20px}[data-delivery-search] small{display:block;margin:10px 0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #147d92;outline-offset:4px}.skip-content{position:fixed;top:-100px;left:16px;z-index:10000;background:white;padding:16px;border:3px solid #147d92}.skip-content:focus{top:12px}@media(max-width:850px){.notification-steps{grid-template-columns:1fr}}
/* Feedback lives in the browser top layer, above modal forms and their backdrop. */
.portal-shell #toast{inset:auto 18px max(18px,env(safe-area-inset-bottom)) auto;margin:0;position:fixed;width:min(560px,calc(100vw - 36px));max-width:560px;max-height:40dvh;overflow:auto;box-sizing:border-box;align-items:flex-start;gap:12px;padding:16px;border:2px solid #267392;background:#edf8ff;color:#153f59;border-radius:14px;box-shadow:0 12px 50px #102d5c4d;font-size:15px;line-height:1.5}
.portal-shell #toast::backdrop{background:transparent;pointer-events:none}.feedback-copy{min-width:0;flex:1;overflow-wrap:anywhere}.feedback-copy strong{display:block;font-size:16px}.feedback-copy p{margin:5px 0 0}.feedback-icon{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#21647f;color:#fff;font-weight:800}.feedback-close{flex:none;min-width:36px;min-height:36px;border:1px solid currentColor;background:transparent;color:inherit;border-radius:8px;font-size:24px;cursor:pointer}.portal-shell #toast[data-kind=error]{background:#fff1f2;border-color:#bf2942;color:#7b1427}.portal-shell #toast[data-kind=error] .feedback-icon{background:#bf2942}.portal-shell #toast[data-kind=success]{background:#eaf9f1;border-color:#15845b;color:#0b5036}.portal-shell #toast[data-kind=success] .feedback-icon{background:#15845b}
.portal-shell .cookie-dialog{width:calc(100% - 32px);max-width:1040px;max-height:calc(100dvh - 32px);box-sizing:border-box;padding:28px;overflow:auto;color:#203e5c}.cookie-dialog p{line-height:1.65;font-size:15px}.cookie-dialog .eyebrow{padding-right:45px}.cookie-close{position:absolute;top:12px;right:12px;min-width:40px;min-height:40px;border:1px solid #b9cedc;border-radius:8px;background:#fff;color:#284e69;font-size:26px;cursor:pointer}.cookie-options{display:flex;flex-wrap:wrap;gap:20px;margin:24px 0}.cookie-option{display:flex!important;align-items:center;gap:12px;padding:16px;background:#f1f7fb;border:1px solid #d6e5ef;border-radius:12px;flex:1;min-width:220px;margin:0!important}.cookie-option input[type=checkbox]{appearance:none;flex:none;position:relative;width:48px;height:28px;min-height:28px;border:2px solid #697e8c;border-radius:18px;background:#697e8c;margin:0;cursor:pointer}.cookie-option input:before{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:white;transition:transform .15s}.cookie-option input:checked{background:#11745f;border-color:#11745f}.cookie-option input:checked:before{transform:translateX(20px)}.cookie-option input:disabled{opacity:1;cursor:default}.cookie-option small{display:block;margin-top:5px;line-height:1.5;color:#4a677b;font-size:12px}.cookie-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.cookie-actions .btn{min-height:46px;margin-top:0!important;font-size:14px}.cookie-note{font-size:12px!important;color:#4a677b}.cookie-dialog button:focus-visible,.cookie-dialog input:focus-visible,.feedback-close:focus-visible{outline:3px solid #165ddb;outline-offset:3px}@media(max-width:600px){.portal-shell .cookie-dialog{padding:22px 16px;max-height:calc(100dvh - 16px);width:calc(100% - 16px)}.cookie-dialog h2{font-size:22px;padding-right:35px}.cookie-dialog p{font-size:14px}.cookie-options{gap:10px;margin:16px 0}.cookie-option{min-width:0;flex-basis:100%;padding:12px}.cookie-actions{display:grid;grid-template-columns:1fr 1fr}.cookie-actions .btn{font-size:13px;padding:9px}.portal-shell #toast{right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:calc(100vw - 20px);max-height:38dvh;padding:12px;font-size:14px}}
.portal-shell #toast .feedback-copy p{color:inherit;font-size:15px}.portal-shell .cookie-dialog p{color:#35536b}

/* Shared control-room finish: consistent surfaces and clear actions across all pages. */
:root{--ink:#183b50;--muted:#577184;--line:#d7e5ef;--bg:#f2f7fb;--blue:#126bdb;--green:#087b61;--red:#bc304b}
body{background:radial-gradient(ellipse at 92% 0%,#dbf2f1 0,transparent 38%),var(--bg)}
.panel{border-color:var(--line);border-radius:18px;box-shadow:0 5px 24px #173e5710;overflow:hidden}
.panel-head{background:linear-gradient(115deg,#fff,#f3f9fc);border-bottom:1px solid var(--line)}
.intro h1{letter-spacing:-.035em;color:var(--ink)}
.btn{border-radius:11px;min-height:44px;font-weight:650;box-shadow:0 2px 5px #173e5707}
.btn.primary{background:var(--blue);color:#fff;box-shadow:0 4px 12px #126bdb20}
.btn.danger{color:#a51d38;border-color:#efbdc8;background:#fff4f6}
.table-wrap thead th{background:#edf5fa;color:#3b627b;font-weight:700}
.table-wrap tbody tr:hover{background:#f2f9fc}
.status{font-weight:700;border-radius:9px;padding:6px 10px}
input,select,textarea{border-color:#bfd5e5;border-radius:10px;color:var(--ink)}
.recommendation{border:1px solid var(--line);border-left:4px solid #1b9f9b;border-radius:12px;background:#fff;padding:18px;margin-block:14px}
.recommendation .btn{margin:5px 5px 0 0}
.rule-targets{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:8px}
.rule-targets .checkbox-label{padding:12px;background:#f2f8fc;border-radius:9px;margin:0}
@media(prefers-reduced-motion:no-preference){.panel,.btn{transition:box-shadow .15s ease,background .15s ease}}
