/* NEXA shared presentation. Existing page controls and state colours stay intact. */
.nx-page{--bg:#0b131d;--panel:#121f2b;--text:#f1f5fa;--ink:#f1f5fa;--muted:#a6b5c4;--cyan:#68dec9;--mint:#68dec9;--line:#293a4b;background:radial-gradient(ellipse at 75% 0,#173044 0,transparent 45%),#0b131d;color:var(--text);font:15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.nx-page h1{font-size:clamp(32px,4vw,46px);line-height:1.15;font-weight:700;letter-spacing:-1.5px;margin:10px 0 14px}.nx-page h2{font-size:21px;line-height:1.3;letter-spacing:-.4px;margin:0 0 12px}.nx-page h3{font-size:17px}.nx-page p{line-height:1.6}.nx-page .eyebrow,.nx-page .step{font-size:10px;letter-spacing:1.8px;color:#68dec9;margin:0 0 9px}.nx-page .muted{color:var(--muted)}.nx-page main{max-width:1160px;padding:32px 28px 60px;margin:0 auto}.nx-page .nx-intro{max-width:680px;margin-bottom:28px}.nx-page .nx-breadcrumb{font-size:12px;color:#a6b5c4;margin:0 0 24px}.nx-breadcrumb a{color:#68dec9}.nx-page a:hover{text-decoration:none}.nx-page button,.nx-page input,.nx-page select,.nx-page summary{font:inherit}.nx-page button{min-height:44px;border-radius:9px;padding:10px 17px;border:1px solid #344b5e;background:#182b3a;color:#e8f1f7;font-weight:600;line-height:1.35}.nx-page button:hover:not(:disabled){background:#223e50;border-color:#68dec9}.nx-page button:disabled{cursor:default;opacity:.5}.nx-page button.primary,.nx-page #take,.nx-page #analyse,.nx-page #live-start,.nx-page #save{background:#68dec9;color:#09252c;border-color:#68dec9}.nx-page button.primary:hover:not(:disabled),.nx-page #take:hover:not(:disabled),.nx-page #analyse:hover:not(:disabled),.nx-page #live-start:hover:not(:disabled){background:#95ecdc}.nx-page input:not([type=radio]):not([type=range]),.nx-page select{background:#0c1722;color:#f1f5fa;border:1px solid #344b5e;border-radius:9px;min-height:44px;padding:10px 12px}.nx-page label{font-size:13px;color:#a6b5c4}.nx-page [hidden]{display:none!important}.nx-page :focus-visible{outline:3px solid #68dec9;outline-offset:4px}.nx-page .nx-card,.nx-page .card,.nx-page .panel,.nx-page .journey{background:#121f2b;border:1px solid #293a4b;border-radius:16px;padding:24px;box-shadow:none;margin-bottom:20px}.nx-page .nx-card>p,.nx-page .card>p,.nx-page .node>p{margin:8px 0 14px}.nx-page .node{background:#121f2b;border-radius:14px;border-color:#293a4b}.nx-page .node+.node{margin-top:16px}.nx-page .node label{margin-top:12px}.nx-page .node select{margin:8px 8px 12px 0;max-width:100%}.nx-page .node button{margin:8px 8px 8px 0}
.nx-page .nx-header{position:relative;display:flex;align-items:center;gap:40px;max-width:none;margin:0;padding:18px max(28px,calc((100vw - 1104px)/2));background:#0c1621e8;border-bottom:1px solid #283747}.nx-page .nx-brand{display:inline-flex;gap:0;align-items:center;font-size:27px;font-weight:800;letter-spacing:2px;line-height:1;flex:none}.nx-brand span:first-child{color:#f16b75}.nx-brand span:nth-child(2){color:#f3f6fa}.nx-brand span:last-child{color:#72a9ef}.nx-page .nx-nav{position:static;display:flex;flex:1;gap:6px;transform:none;left:auto;bottom:auto;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;backdrop-filter:none;width:auto;justify-content:flex-end}.nx-nav a{color:#aabccc;padding:9px 16px;border-radius:9px;white-space:nowrap;font-size:14px;font-weight:600}.nx-nav a:hover{background:#1a2c3b;color:#fff}.nx-nav a[aria-current=page]{background:#203a47;color:#8fe7d5}.nx-skip{position:absolute;left:20px;top:-90px;z-index:50;padding:12px;background:#68dec9;color:#09252c}.nx-skip:focus{top:10px}.nx-page .nx-account{display:flex;gap:16px;align-items:center;justify-content:flex-end;max-width:1160px;margin:14px auto -16px;padding:0 28px}.nx-page .nx-account .server-badge{margin:0;font-size:12px}.nx-page .nx-account .quiet{font-size:12px;min-height:36px;padding:6px 12px;background:transparent}.nx-page .heading{margin-bottom:24px}.nx-page .dashboard-tabs{position:static;transform:none;border:0;border-bottom:1px solid #293a4b;border-radius:0;box-shadow:none;backdrop-filter:none;background:transparent;display:flex;justify-content:flex-start;gap:4px;width:auto;padding:0 0 12px;margin-bottom:24px}.nx-page .dashboard-tabs button{border:0;padding:8px 18px;min-height:40px;font-size:13px;background:transparent}.nx-page .dashboard-tabs button.active{background:#203a47;color:#8fe7d5}.nx-page .dashboard-tabs button span{font-size:16px;display:inline;margin-right:7px}.nx-page .stats{gap:14px;margin:24px 0}.nx-page .stats article{background:#121f2b;border:1px solid #293a4b;border-radius:13px;padding:18px 20px}.nx-page .stats strong{font-size:30px;margin:6px 0;color:#e8f3f8}.nx-page .stats span,.nx-page .stats small{font-size:11px}.nx-page .node-grid{gap:14px}.nx-page footer{padding:12px 20px 32px;font-size:10px;color:#8399ac;letter-spacing:1.5px}
.nx-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 30px}.nx-feature{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;background:#142434;border:1px solid #2c4054;border-radius:16px;padding:24px 20px;color:#eef5fa;transition:background .15s,border-color .15s}.nx-feature:hover{background:#1b3043;border-color:#68dec9}.nx-feature-icon{display:grid;place-items:center;width:46px;height:46px;background:#203c49;color:#8fe7d5;border-radius:12px;margin-bottom:21px}.nx-feature-icon svg,.nx-callout>svg{width:26px;height:26px;position:static;inset:auto;flex:none;cursor:default}.nx-feature h2{font-size:19px;margin:0 0 9px}.nx-feature p{font-size:13px;color:#a8bbcc;margin:0 0 24px;flex:1}.nx-feature-go{font-size:12px;font-weight:600;color:#8fe7d5}.nx-feature-go span{margin-left:6px}.nx-page .nx-welcome{max-width:1160px;min-height:calc(100vh - 84px);display:grid;grid-template-columns:1.15fr 1fr;gap:80px;padding:60px 28px;margin:auto;align-items:center}.nx-page .nx-welcome h1{font-size:clamp(36px,4.5vw,54px);margin-bottom:24px}.nx-welcome-copy>.muted{font-size:18px;max-width:520px}.nx-welcome-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}.nx-welcome-links a{padding:8px 13px;border:1px solid #2c4054;border-radius:9px;font-size:13px;color:#8fe7d5}.nx-page .login-box{max-width:100%;width:auto;margin:0}.nx-page .login-box h2{font-size:22px}.nx-page .login form{margin-top:24px}.nx-page .login label input{margin-bottom:18px}.nx-page .login .primary{width:100%}
.nx-page .nx-details{margin:16px 0;border:1px solid #293a4b;border-radius:12px;background:#101e2a;padding:0 20px}.nx-details>summary{list-style:none;cursor:pointer;padding:16px 0;color:#dce9f2;font-weight:600;font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.nx-details>summary::-webkit-details-marker{display:none}.nx-details>summary::after{content:'+';font-size:21px;font-weight:400;color:#68dec9}.nx-details[open]>summary::after{content:'−'}.nx-details[open]>summary{margin-bottom:12px;border-bottom:1px solid #293a4b}.nx-details>p{font-size:13px;color:#a6b5c4;margin:12px 0 18px}.nx-details>button{margin:8px 6px 16px 0}.nx-page .nx-actions{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0 8px}.nx-actions button{margin:0}.nx-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}.nx-section-heading .nx-actions{margin:0}.nx-page #state{margin:24px 0;padding:20px;border-radius:13px}.nx-page #state strong{font-size:19px;letter-spacing:0}.nx-page #state span{font-size:14px}.nx-page #view{margin:20px 0;border:1px solid #293a4b;border-radius:12px}.nx-page #threshold{display:inline-block;padding:0;margin:10px 14px;vertical-align:middle;max-width:50%}.nx-page #arm{background:#ffd977;color:#33270d;border-color:#ffd977}.nx-page #disarm{background:#4b2533;color:#ffd7da;border-color:#985365}.nx-page #message:empty{display:none}.nx-page #message:not(:empty){margin:16px 0;padding:12px 16px;background:#1b2c3c;border-radius:9px}.nx-page #telegram-status,.nx-page #voice-status{font-size:14px;color:#a6b5c4}.nx-callout{display:flex;align-items:center;gap:18px;padding:20px;border:1px solid #3b5a61;border-radius:13px;background:#15313a;color:#8fe7d5;margin:24px 0}.nx-callout>span:nth-child(2){flex:1}.nx-callout strong,.nx-callout small{display:block}.nx-callout small{font-size:13px;color:#a6b5c4;margin-top:4px}.nx-page .camera-health{gap:10px;margin:20px 0}.nx-page .camera-health span{font-size:12px;padding:6px 12px;background:#132635;border-color:#2c4054}.nx-page .camera-preview{aspect-ratio:16/9;min-height:190px;max-height:420px;border-radius:12px}.nx-page .camera-controls{margin:16px 0;gap:9px}.nx-page .camera-controls button{padding:10px 17px}.nx-page .camera-shell h1{font-size:46px}.nx-page #empty{font-size:14px;color:#a6b5c4}.nx-page .live-help{font-size:13px;margin:0 0 16px}.nx-page .intro{padding:0;margin:0 0 28px;max-width:740px}.nx-page .intro>p:last-child{font-size:16px;max-width:680px}.nx-page .layout{gap:20px}.nx-page .preview{height:300px;background:#0a121a;border-color:#293a4b;border-radius:12px}.nx-page fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;padding:0;margin:0 0 16px}.nx-page legend{font-size:13px;margin-bottom:12px;color:#a6b5c4}.nx-page .option{margin:0;border-radius:9px;background:#0e1a26;padding:10px;border-color:#293a4b;min-width:0}.nx-page .option strong{font-size:13px}.nx-page .option small{font-size:11px;line-height:1.4}.nx-page .option input{margin:0;flex:none;accent-color:#68dec9}.nx-page .option:has(input:checked){border-color:#68dec9;background:#1c3a43}.nx-page #analyse{width:100%;margin-top:10px}.nx-page .nx-photo-share{font-size:13px;margin:20px 0}.nx-page .privacy{font-size:12px;color:#91a6b7}.nx-settings .nx-feature-grid{grid-template-columns:repeat(3,1fr)}.nx-page .nx-settings-list{margin-top:20px}.nx-settings-list>a{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:17px 6px;border-top:1px solid #293a4b}.nx-settings-list>a:hover{color:#8fe7d5}.nx-settings-list strong,.nx-settings-list small{display:block}.nx-settings-list strong{font-size:14px;font-weight:600}.nx-settings-list small{font-size:12px;color:#a6b5c4}.nx-page .journey label{margin:14px 0 6px}.nx-page #journey-select{max-width:100%;width:100%;margin-bottom:12px}.nx-page .journey p{font-size:14px}.nx-page .status.live{border-color:#68dec9;color:#68dec9}
@media(max-width:900px){.nx-feature-grid{grid-template-columns:repeat(2,1fr)}.nx-page .nx-welcome{gap:32px}.nx-page .nx-header{gap:24px}.nx-nav a{padding:8px 11px}.nx-page .node-grid{grid-template-columns:repeat(2,1fr)}.nx-section-heading{align-items:flex-start;flex-direction:column}.nx-page .layout{grid-template-columns:1fr}.nx-page .preview{height:320px}}
@media(max-width:600px){.nx-page{font-size:14px}.nx-page .nx-header{padding:18px 18px 10px;display:block}.nx-page .nx-brand{font-size:25px;margin-bottom:18px}.nx-page .nx-nav{justify-content:space-between;gap:2px;overflow-x:auto}.nx-nav a{font-size:12px;padding:8px 10px}.nx-page main{padding:24px 18px 40px}.nx-page .nx-breadcrumb{margin-bottom:20px}.nx-page h1,.nx-page .camera-shell h1{font-size:34px}.nx-page .nx-welcome{min-height:auto;display:flex;flex-direction:column;align-items:stretch;gap:28px;padding:36px 18px}.nx-page .nx-welcome h1{font-size:39px}.nx-welcome-copy>.muted{font-size:16px}.nx-page .nx-card,.nx-page .card,.nx-page .panel,.nx-page .journey{padding:20px}.nx-page .stats{gap:8px}.nx-page .stats article{padding:13px 10px}.nx-page .stats strong{font-size:25px}.nx-page .stats span,.nx-page .stats small{font-size:9px;letter-spacing:.4px}.nx-feature-grid{gap:10px;margin-bottom:24px}.nx-feature{padding:18px 15px}.nx-feature-icon{width:39px;height:39px;margin-bottom:16px}.nx-feature h2{font-size:16px}.nx-feature p{font-size:12px;margin-bottom:16px}.nx-feature-go{font-size:11px}.nx-page .node-grid{grid-template-columns:1fr}.nx-page .nx-account{padding:0 18px}.nx-page .nx-details{padding:0 16px}.nx-page .dashboard-tabs button{flex:1;padding:8px 10px}.nx-page .dashboard-tabs button span{display:inline}.nx-page .nx-actions button{font-size:13px}.nx-page .preview{height:240px}.nx-page .option{padding:10px 8px}.nx-page .option small{display:none}.nx-page #state strong{font-size:17px}.nx-page #threshold{width:46%;max-width:46%;margin:10px 6px}.nx-page .camera-preview{min-height:170px}.nx-settings .nx-feature-grid{grid-template-columns:1fr}.nx-page .event{flex-wrap:wrap}.nx-page .nx-settings-list small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.nx-feature{transition:none}}

/* Compact sign-in for TVs and laptops with browser toolbars taking vertical space. */
@media (min-width:601px) and (max-height:720px) {
 .nx-home .nx-header{padding-top:10px;padding-bottom:10px}
 .nx-home .nx-welcome{min-height:0;gap:32px;padding:18px 32px;grid-template-columns:1.15fr 1fr}
 .nx-home .nx-welcome-copy,.nx-home .login-box{min-width:0}
 .nx-home .nx-welcome h1{font-size:clamp(30px,3.8vw,44px);margin:8px 0 16px}
 .nx-home .nx-welcome-copy>.muted{font-size:16px}
 .nx-home .nx-welcome-links{margin-top:18px;gap:8px}
 .nx-home .login-box{padding:18px 22px}
 .nx-home .login-box h2{font-size:21px;margin-bottom:8px}
 .nx-home .login-box>p{font-size:14px;margin:6px 0 10px}
 .nx-home .login form{margin-top:12px}
 .nx-home .login label input{margin-top:5px;margin-bottom:12px}
 .nx-home #login-error:empty{margin:0}
}

/* Home control launcher and node pages, usable with touch or a TV remote. */
.nx-control-home{grid-template-columns:repeat(3,minmax(0,1fr))}
.nx-control-home .nx-feature{padding:18px 20px}
.nx-control-home .nx-feature-icon{margin-bottom:12px;font-size:27px}
.nx-control-home .nx-feature p{margin-bottom:14px}
.nx-home-extras{display:flex;flex-wrap:wrap;gap:20px;margin:0 0 22px;color:#8fe7d5}
.nx-home .node{position:relative;padding-top:72px}
.nx-home .node-open{position:absolute;top:16px;right:18px;display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border:1px solid #68dec9;border-radius:9px;color:#8fe7d5;font-weight:700}
.nx-home .node-destination{display:inline-flex;margin-top:22px;padding:12px 18px;align-items:center;text-decoration:none}
.nx-home #node-detail{margin-top:24px}
.nx-home #detail-values{margin-top:20px;max-width:680px}
.nx-home #node-list{scroll-margin-top:20px}
.ir-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}
.ir-keys button{min-height:60px}
#ir-remote details{margin:20px 0}#ir-remote summary{cursor:pointer;padding:12px 0}
#ir-remote select{margin-top:8px}
#widgets-page .node-controls{flex-wrap:wrap;margin-bottom:18px}#widgets-page .node-controls button{flex:1;min-width:120px}#widgets-page .node-controls button[aria-pressed=true]{background:#68dec9;color:#09252c}
@media(max-width:900px){.nx-control-home{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.nx-control-home{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-control-home .nx-feature{padding:16px 12px}.ir-keys{grid-template-columns:repeat(2,minmax(0,1fr))}#ir-remote .node-controls{flex-wrap:wrap}}
@media(min-width:601px) and (max-height:720px){
 .nx-home #dashboard main{padding-top:18px}
 .nx-home #dashboard .heading{margin-bottom:12px}
 .nx-home #dashboard h1{font-size:32px;margin:4px 0 8px}
 .nx-home #dashboard .nx-account{margin-top:8px}
 .nx-home .dashboard-tabs{margin-bottom:14px;padding-bottom:8px}
 .nx-control-home{gap:10px;margin:12px 0 18px}
 .nx-control-home .nx-feature{padding:12px 16px}
 .nx-control-home .nx-feature-icon{width:32px;height:32px;font-size:22px;margin-bottom:6px}
 .nx-control-home .nx-feature h2{font-size:18px;margin-bottom:6px}
 .nx-control-home .nx-feature p{font-size:12px;margin-bottom:8px}
}
@media(min-width:601px) and (max-height:540px){
 .nx-control-home .nx-feature-icon,.nx-control-home .nx-feature p{display:none}
 .nx-home #dashboard .heading>.muted,.nx-home #dashboard #subtitle{display:none}
 .nx-home #dashboard h1{font-size:28px}
}

.local-news-toolbar{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:18px 0}
.local-news-toolbar label{flex:1;max-width:420px}.local-news-toolbar select{display:block;width:100%;margin:6px 0 0}
.local-news-toolbar button{flex:none}.local-news-link{display:inline-flex;align-items:center;min-height:44px;color:#8fe7d5;font-weight:600}
#widget-source a{color:#8fe7d5;text-decoration:underline}#widget-items .nx-card{overflow-wrap:anywhere}
