/* Pilot-native device workspace, informed by Cloud Network's information layout. */
.device-workspace { --device-accent:#137b75; --device-tint:#e9f5f2; padding:28px clamp(16px,3vw,42px); max-width:1600px; margin:auto; }
.accent-blue { --device-accent:#3765a3; --device-tint:#edf3fd; }
.accent-green { --device-accent:#2a7b65; --device-tint:#eaf6ef; }
.accent-purple { --device-accent:#8055a5; --device-tint:#f3eefb; }
.accent-amber { --device-accent:#a66d18; --device-tint:#fff5e2; }
.device-page-head,.device-page-title,.device-page-actions { display:flex; align-items:center; gap:16px; }
.device-page-head { justify-content:space-between; flex-wrap:wrap; margin-bottom:26px; }
.device-page-head h1 { margin:3px 0 7px; font-size:clamp(22px,2vw,30px); letter-spacing:-.7px; color:#203d4b; }
.device-page-title p { margin:0; color:#718591; font-size:12px; }
.device-page-title .eyebrow { font-size:9px; letter-spacing:1.6px; color:var(--device-accent); }
.device-category-icon { flex:0 0 52px; height:52px; display:grid; place-items:center; border-radius:15px; color:var(--device-accent); background:var(--device-tint); font-size:30px; }
.device-page-actions button { min-height:38px; padding:9px 13px; font-size:11px; }
.device-page-actions .primary { background:var(--device-accent); border-color:var(--device-accent); }
.device-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:25px; }
.device-metrics article { background:#fff; border:1px solid #e0e9ed; border-radius:13px; padding:18px 20px; display:flex; flex-direction:column; gap:7px; box-shadow:0 2px 5px #17384803; }
.device-metrics article>span { font-size:11px; color:#6c818e; }
.device-metrics strong { font-size:28px; font-weight:650; letter-spacing:-.8px; color:#284856; }
.device-metrics small { color:#8798a2; font-size:10px; }
.device-metrics .device-monitor-note { background:#f7fafb; }
.device-metrics .device-monitor-note strong { font-size:16px; margin:8px 0 6px; letter-spacing:-.2px; color:#738792; }
.device-category-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:20px; }
.device-category-tabs button { display:flex; align-items:center; gap:9px; border:1px solid transparent; background:transparent; color:#718591; padding:8px 12px; border-radius:8px; font-size:11px; }
.device-category-tabs button span { background:#e8eef1; color:#657c88; border-radius:5px; padding:2px 6px; font-size:10px; }
.device-category-tabs button.active { background:var(--device-tint); color:var(--device-accent); border-color:#dbe9e8; font-weight:600; }
.device-inventory-panel { border:1px solid #dfe8ed; border-radius:14px; background:white; overflow:hidden; box-shadow:0 4px 16px #17384805; }
.device-section-tabs { padding:0 20px; display:flex; gap:23px; border-bottom:1px solid #e8eef1; overflow:auto; }
.device-section-tabs button { padding:17px 0 14px; white-space:nowrap; border:0; border-bottom:2px solid transparent; border-radius:0; font-size:12px; background:transparent; color:#81929d; }
.device-section-tabs button.active { border-bottom-color:var(--device-accent); color:var(--device-accent); font-weight:600; }
.device-list-toolbar { display:flex; align-items:center; gap:12px; padding:20px 20px 8px; flex-wrap:wrap; }
.device-search { display:block; flex:1; min-width:180px; margin:0; }
.device-search input { font-size:12px; padding:10px 12px; min-height:38px; border:1px solid #e1e9ed; background:#fafcfd; border-radius:8px; }
.device-page-size { display:flex; align-items:center; gap:7px; margin:0; color:#7c8e99; font-size:11px; }
.device-page-size select { width:65px; font-size:11px; padding:8px; }
.device-list-toolbar>button { font-size:11px; padding:9px 12px; }
.device-status { color:#8597a2; font-size:10px; padding:0 21px; margin:7px 0 13px; }
.device-table-scroll { overflow:auto; }
.device-table { width:100%; border-collapse:collapse; white-space:nowrap; font-size:12px; }
.device-table thead { background:#f8fafc; }
.device-table th { color:#7d909c; text-align:left; font-size:10px; font-weight:500; border-top:1px solid #edf2f5; border-bottom:1px solid #e8eef1; padding:12px 16px; }
.device-table th button { border:0; background:transparent; color:inherit; font-size:inherit; font-weight:inherit; padding:0; }
.device-table td { padding:15px 16px; border-bottom:1px solid #edf2f5; color:#506b7a; }
.device-table tbody tr:hover { background:#fcfefd; }
.device-table td small { display:block; color:#8b9ca6; font-size:10px; margin-top:5px; }
.device-table td strong { font-size:11px; font-weight:500; }
.device-name-button { display:flex; align-items:center; gap:10px; text-align:left; border:0; background:transparent; padding:0; color:#355566; font-size:12px; font-weight:600; }
.device-row-symbol { width:33px; height:33px; border-radius:8px; display:grid; place-items:center; background:#edf4f7; color:#4b8194; font-size:21px; }
.device-row-symbol.blue { color:#4e76ad; background:#eef3fb; }
.device-row-symbol.green { color:#438772; background:#edf7f1; }
.device-row-symbol.purple { color:#885ab0; background:#f3effa; }
.device-row-symbol.amber { color:#b38231; background:#fff7e8; }
.device-host { font-family:ui-monospace,Consolas,monospace; font-size:11px; color:#4e7183; }
.device-unmonitored { display:inline-flex; align-items:center; gap:5px; color:#7e909a; background:#f0f4f6; padding:5px 8px; border-radius:5px; font-size:9px; }
.device-unmonitored::before { content:''; width:5px; height:5px; border-radius:50%; background:#a2b1b9; }
.device-row-actions button { background:transparent; color:var(--device-accent); padding:5px 7px; font-size:10px; margin-right:4px; border-color:#e0e9eb; }
.device-pagination { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; color:#8496a0; font-size:11px; }
.device-pagination div { display:flex; gap:7px; }
.device-pagination button { font-size:11px; padding:7px 10px; }
.device-pagination button:disabled { opacity:.4; cursor:not-allowed; }
.device-data-note { font-size:10px; color:#8a9ca6; line-height:1.7; margin-top:17px; }
.device-empty { padding:50px 25px 55px; text-align:center; color:#8a9ba5; }
.device-empty>span { display:grid; place-items:center; width:58px; height:58px; margin:0 auto 16px; border-radius:16px; background:var(--device-tint); color:var(--device-accent); font-size:33px; }
.device-empty h2 { color:#506b7a; font-size:17px; font-weight:550; }
.device-empty p { font-size:12px; line-height:1.8; max-width:400px; margin:auto; }
.device-brand-grid { padding:10px 20px 24px; display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; }
.device-brand-card { border:1px solid #e4ecef; border-radius:12px; padding:20px; background:linear-gradient(160deg,#fff,#f9fcfd); }
.device-brand-symbol { display:block; color:var(--device-accent); font-size:29px; margin-bottom:15px; }
.device-brand-card small { color:#80939e; font-size:10px; }
.device-brand-card h3 { font-size:15px; color:#365668; margin:7px 0; }
.device-brand-card p { color:#8a9ca6; font-size:11px; }
.device-brand-card button { border:0; background:transparent; color:var(--device-accent); padding:8px 0 0; font-size:11px; }
.device-notes-cell { display:block; max-width:280px; white-space:normal; line-height:1.6; }
.device-detail-dialog { width:min(660px,calc(100vw - 32px)); padding:26px; border:1px solid #dce7eb; border-radius:17px; }
.device-detail-heading { display:flex; align-items:center; gap:14px; }
.device-detail-heading h2 { margin:3px 0; font-size:22px; color:#2c4c5d; }
.device-detail-heading .eyebrow { margin:0; font-size:9px; }
.device-detail-heading>button { margin-left:auto; border:0; background:#f1f5f7; font-size:22px; padding:4px 10px; }
.device-hardware-sketch { padding:22px 20px 15px; margin:22px 0; background:#f8fbfc; border:1px solid #e8eef1; border-radius:12px; text-align:center; }
.device-hardware-sketch svg { width:min(380px,100%); display:block; margin:auto; }
.device-hardware-sketch small { font-size:9px; color:#9aaab3; }
.device-detail-fields { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.device-detail-fields dt { color:#93a3ad; font-size:10px; margin-bottom:5px; }
.device-detail-fields dd { margin:0; color:#466575; font-size:12px; overflow-wrap:anywhere; }
.device-detail-notes { background:#f8fbfc; border-radius:9px; padding:14px; margin:22px 0; }
.device-detail-notes h3 { margin:0 0 8px; font-size:11px; color:#738a97; }
.device-detail-notes p { font-size:12px; color:#566f7c; white-space:pre-wrap; overflow-wrap:anywhere; margin:0; line-height:1.6; }
.device-detail-monitoring { color:#8a9ca6; font-size:10px; line-height:1.8; }
.device-edit-dialog { width:min(620px,calc(100vw - 30px)); padding:26px; border-radius:15px; }
.device-edit-dialog h2 { font-size:23px; color:#305264; }
.device-edit-dialog>p { font-size:12px; line-height:1.6; color:#8095a1; }
.nav-device-group>summary { display:flex; gap:0; align-items:center; padding:6px 12px; min-height:40px; cursor:pointer; border-radius:8px; list-style:none; white-space:nowrap; }
.nav-device-group>summary::-webkit-details-marker { display:none; }
.nav-device-group>summary:hover { background:#edf3f5; }
.nav-chevron { margin-left:auto; color:#94a5ae; font-size:16px; }
.nav-device-group[open] .nav-chevron { transform:rotate(90deg); }
.nav-device-list { display:grid; padding:3px 5px 6px 20px; gap:2px; }
.map-first-shell .nav-device-list button { width:100%; min-height:32px; height:auto; padding:7px 9px; font-size:11px; text-align:left; white-space:nowrap; }
.nav-device-group[open]>summary { color:#357b82; background:#eef4f6; }
.map-first-shell .module-nav nav { height:auto; min-height:100%; }
.map-first-shell > .sidebar { background:#f7f9fb; }
.map-first-shell:has(.device-workspace) main { background:#f4f8fa; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.header-navigation-toggle { display:none; border:0; background:#f0f5f7; padding:5px 8px; font-size:17px; color:#4a7180; }
.device-status button { padding:2px 6px; margin-left:5px; font-size:10px; }
.map-first-shell #settings-module .page-head h1 { font-size:26px; letter-spacing:-.6px; color:#2d4f60; }
.map-first-shell #settings-module .panel { border-radius:14px; border-color:#e0e9ee; box-shadow:0 3px 12px #183b4805; }
.map-first-shell #settings-module .settings-content { padding:25px; }
.settings-content>h2 { font-size:20px; color:#35596a; }
.settings-content>p { color:#7c929f; line-height:1.8; font-size:12px; }
.settings-content h3 { color:#496d7e; font-size:15px; }
.settings-content .settings-user { padding:17px 0; }
.settings-content .settings-user strong { color:#385b6c; font-size:13px; }
.settings-content .settings-user p { color:#8a9da7; font-size:11px; }
.feature-status,.attribute-panel { margin:26px; padding:26px; border-radius:14px; border-color:#e0e9ed; }
.feature-status h1,.attribute-panel h1 { color:#34586a; font-size:25px; }
.feature-status p,.attribute-panel>p { color:#8296a2; line-height:1.8; font-size:12px; }
.attribute-scroll { overflow:auto; }
.attribute-scroll table { width:100%; border-collapse:collapse; font-size:12px; }
.attribute-scroll th,.attribute-scroll td { text-align:left; border-bottom:1px solid #e7eef1; padding:12px; }
.attribute-scroll th { background:#f7fafc; color:#879ba7; font-size:10px; }
@media(max-width:899px), (hover:none) {
 .header-navigation-toggle { display:block; }
 .map-first-shell,.map-first-shell:has(>.sidebar:hover),.map-first-shell:has(>.sidebar:focus-within) { grid-template-columns:56px minmax(0,1fr); }
 .map-first-shell>.sidebar { width:56px; box-sizing:border-box; position:relative; z-index:1500; overflow-x:hidden; background:#f7f9fb; padding:10px 5px; }
 .map-first-shell.navigation-expanded>.sidebar { width:224px; box-shadow:8px 0 20px #1837401a; }
 .map-first-shell:not(.navigation-expanded) .sidebar .nav-device-list,.map-first-shell:not(.navigation-expanded) .sidebar .nav-settings-list,.map-first-shell:not(.navigation-expanded) .sidebar .module-label,.map-first-shell:not(.navigation-expanded) .sidebar .nav-chevron { display:none; }
 .map-first-shell.navigation-expanded .sidebar .module-label { display:inline; white-space:nowrap; margin-left:12px; font-size:12px; opacity:1; visibility:visible; }
 .map-first-shell.navigation-expanded .sidebar .module-nav button { width:100%; display:flex; align-items:center; justify-content:flex-start; padding:8px 10px; }
 .map-first-shell.navigation-expanded .sidebar .module-icon { flex-shrink:0; }
 .map-first-shell .nav-device-group>summary,.map-first-shell .nav-settings>summary { padding:8px 10px; }
}
@media(min-width:900px) and (hover:hover) and (pointer:fine) {
 .map-first-shell>.sidebar:not(:hover):not(:focus-within) .nav-device-list,
 .map-first-shell>.sidebar:not(:hover):not(:focus-within) .nav-chevron { display:none; }
 .map-first-shell>.sidebar:not(:hover):not(:focus-within) .nav-device-group>summary { padding-left:12px; }
}
@media(max-width:1000px) { .device-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .device-page-actions { gap:7px; } }
@media(max-width:600px) { .device-workspace { padding:20px 12px; } .device-category-icon { flex-basis:40px; height:40px; border-radius:11px; font-size:25px; } .device-metrics { gap:8px; } .device-metrics article { padding:13px; } .device-metrics strong { font-size:23px; } .device-page-actions { width:100%; } .device-page-actions button { flex:1; } .device-search { flex-basis:100%; } .device-list-toolbar { padding:14px 12px 7px; gap:9px; } .device-section-tabs { gap:17px; padding:0 13px; } .device-pagination { padding:12px; gap:10px; flex-wrap:wrap; } .device-detail-dialog { padding:18px; } .device-detail-fields { gap:15px; } }

/* Source-matched Cloud Network device layout: compact panel, toolbar and navy table. */
.device-workspace.source-matched { padding:0; max-width:none; min-height:100%; margin:0; background:#f6f9fb; }
.source-matched .device-page-head { min-height:58px; box-sizing:border-box; padding:12px 18px; margin:0; gap:14px; flex-wrap:nowrap; background:#fff; border-bottom:1px solid #e3ebf0; }
.source-matched .device-page-title { flex:1; min-width:0; }
.source-matched .device-page-title h1 { font-size:14px; font-weight:600; margin:0; letter-spacing:0; color:#254c63; }
.source-matched .device-page-title small { font-size:10px; color:#7891a1; display:block; margin-top:4px; }
.source-matched .device-search { min-width:150px; max-width:260px; flex:0 1 260px; }
.source-matched .device-search input { min-height:30px; height:30px; border:1px solid #d0dfeb; border-radius:5px; padding:6px 10px; font-size:11px; background:#fff; }
.device-panel-close { flex:none; width:28px; height:28px; padding:0; border:0; background:#edf2f6; color:#526c7c; font-size:21px; border-radius:5px; }
.device-management-content { padding:18px; width:100%; box-sizing:border-box; }
.device-source-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.device-source-toolbar #device-add { display:inline-flex; align-items:center; justify-content:center; height:28px; padding:4px 11px; font-size:11px; line-height:18px; border-radius:6px; background:#214f71; color:white; border:1px solid #214f71; }
.device-sync-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
.device-sync-actions button { height:28px; min-height:0; padding:4px 11px; border-radius:14px; font-size:10px; line-height:18px; background:#23465d; border:1px solid #23465d; color:white; white-space:nowrap; }
.device-source-sync { font-size:10px; color:#7b8c98; white-space:nowrap; }
.source-matched .device-inventory-panel { border:0; border-radius:0; box-shadow:none; background:transparent; }
.source-matched .device-list-toolbar { justify-content:space-between; padding:9px 12px; background:#fff; border:1px solid #e2e9ee; border-bottom:0; gap:12px; }
.source-matched .device-page-size { font-size:10px; color:#71818c; }
.source-matched .device-page-size select { width:65px; height:28px; border:1px solid #ced9e0; border-radius:3px; padding:4px 7px; font-size:11px; }
.source-matched .device-table-scroll { border:1px solid #d6e1e9; border-radius:6px; background:#fff; }
.source-matched .device-table { width:100%; border-collapse:collapse; font-size:11px; white-space:nowrap; }
.source-matched .device-table th { height:38px; box-sizing:border-box; padding:0 13px; background:#23465d; color:#fff; font-size:11px; font-weight:500; text-align:center; border-right:1px solid #627e91; border-bottom:1px solid #23465d; }
.source-matched .device-table td { padding:11px 14px; text-align:center; vertical-align:middle; border-right:1px solid #dfe7ed; border-bottom:1px solid #e5ecf1; color:#435965; }
.source-matched .device-table th:last-child,.source-matched .device-table td:last-child { border-right:0; }
.source-matched .device-table tbody tr:nth-child(even) { background:#f7fafc; }
.source-matched .device-table tbody tr:hover { background:#edf5fa; }
.source-matched .device-name-button { display:inline; color:#315d76; font-size:11px; font-weight:400; }
.source-matched .device-name-button:hover { text-decoration:underline; }
.source-matched .device-unmonitored { height:26px; min-width:84px; box-sizing:border-box; justify-content:center; padding:0 9px; border:1px solid #d5e3ee; border-radius:6px; background:#edf4fa; color:#637c90; font-size:10px; font-weight:600; }
.source-matched .device-row-actions { white-space:nowrap; }
.source-matched .device-row-actions button { height:24px; padding:0 8px; font-size:10px; line-height:23px; border:1px solid #c6dbe7; color:#2b6a90; background:#f4f9fc; border-radius:4px; }
.source-matched .device-row-actions [data-device-edit] { border:0; background:transparent; color:#2c8a60; font-size:17px; }
.source-matched .device-pagination { padding:10px 12px; font-size:10px; color:#80939f; }
.source-matched .device-pagination button { padding:4px 8px; font-size:10px; border:1px solid #d5e1e8; border-radius:3px; color:#5b7a8e; background:#fff; }
.source-matched .device-status { margin:0; padding:0 12px; background:#fff; font-size:10px; color:#80939f; }
.source-matched .device-status:not(:empty) { padding-top:7px; padding-bottom:7px; }
.source-matched .device-empty { margin-top:0; border:1px dashed #c4d6e1; border-radius:6px; padding:36px 15px; background:#fff; }
.source-matched .device-empty>span { display:none; }
.source-matched .device-empty h2 { font-size:14px; color:#365b70; }
.source-matched .device-brand-card { border-radius:6px; box-shadow:none; background:#fff; }
.device-edit-dialog { width:min(600px,calc(100vw - 30px)); padding:24px; border:1px solid #cbdde8; border-radius:8px; }
.device-edit-dialog h2 { font-size:20px; color:#254c63; margin-top:0; }
.device-reference-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.device-reference-fields .field-wide { grid-column:1/-1; }
.device-reference-fields label { font-size:12px; color:#617f91; }
.device-reference-fields input,.device-reference-fields select { height:40px; box-sizing:border-box; border:1px solid #cbdde8; border-radius:5px; padding:9px 11px; font-size:13px; color:#2d5269; }
.device-edit-dialog .actions { justify-content:flex-end; gap:8px; border-top:1px solid #e8eef4; padding-top:12px; }
.device-edit-dialog .actions button { padding:8px 15px; border-radius:5px; font-size:12px; }
.device-edit-dialog .actions .primary { background:#214f71; border-color:#214f71; }
@media(max-width:650px) { .source-matched .device-page-head { padding:11px; gap:8px; } .source-matched .device-search { min-width:100px; max-width:180px; } .source-matched .device-management-content { padding:10px; } .source-matched .device-source-sync { display:none; } .source-matched .device-table { min-width:650px; } .source-matched .device-table td { padding:9px 10px; } .device-reference-fields { grid-template-columns:1fr; gap:14px; } .device-edit-dialog { padding:18px; } }
.device-inline-form[open] { display:block; position:static; width:min(900px,100%); max-height:none; margin:10px auto; background:#fff; box-shadow:0 5px 20px #284d6812; }
.device-inline-form h2 { border-bottom:1px solid #e3ebf0; padding-bottom:15px; }
.device-empty-row { padding:30px!important; color:#8b9ba5!important; }
.device-overlay { position:absolute; inset:0; z-index:1100; background:#f6f9fb; overflow:auto; }
.device-overlay-host { position:relative; }
.device-overlay.is-maximized {position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:4000}
.device-window-actions {display:flex;gap:6px;align-items:center;margin-left:auto}
.source-matched .device-list-toolbar>.device-search {margin-left:auto;flex:0 1 260px}
.source-matched .device-list-toolbar>.device-search input {width:100%;box-sizing:border-box}
.device-overlay .device-workspace { min-height:100%; }
/* Match verified legacy map dimensions at desktop size. */
@media(min-width:900px) and (hover:hover) and (pointer:fine) {
 .map-first-shell,.map-first-shell:has(>.sidebar:hover),.map-first-shell:has(>.sidebar:focus-within) { grid-template-columns:46px minmax(0,1fr); grid-template-rows:36px minmax(0,1fr); }
 .map-first-shell>.sidebar { width:46px; padding:8px 3px; }
 .map-first-shell>.sidebar:hover,.map-first-shell>.sidebar:focus-within { width:184px; }
 .map-first-shell>.sidebar:not(:hover):not(:focus-within) .module-nav button,.map-first-shell>.sidebar:not(:hover):not(:focus-within) .nav-device-group>summary,.map-first-shell>.sidebar:not(:hover):not(:focus-within) .nav-settings>summary { padding-left:8px; padding-right:8px; }
 .map-first-shell .module-icon { width:24px; height:24px; font-size:18px; }
 .map-first-shell .module-label { font-size:11px; margin-left:10px; }
 .map-first-shell .module-nav button { height:38px; min-height:38px; }
 .map-first-shell .nav-device-group>summary,.map-first-shell .nav-settings>summary { min-height:38px; padding:6px 10px; }
 .map-first-shell .nav-device-list { border-left:1px solid #dae4e9; margin-left:22px; padding-left:7px; }
 .map-first-shell .nav-device-list button { min-height:29px; height:auto; font-size:10px; padding:6px; }
 .map-first-shell .compact-header { height:36px; padding:0 9px; gap:12px; }
 .header-brand strong { font-size:14px; font-weight:600; }
 .header-logo { font-size:19px; }
 .header-section { font-size:10px; }
 .fiber-layout { grid-template-columns:231px minmax(0,1fr); }
 .fiber-layout.layers-collapsed { grid-template-columns:0 minmax(0,1fr); }
 .fiber-route-toolbar { width:44px; left:14px; top:13px; padding:7px 3px 5px; }
 .fiber-route-toolbar button,.fiber-equipment-menu>summary { width:36px; min-height:39px; }
}
.asset-patch-panel { background:#607987!important; color:white!important; font-size:9px!important; }
.header-map-search { margin:0; width:190px; }
.header-map-search input { height:28px; padding:4px 6px; font-size:10px; border:0; border-bottom:1px solid #eef0f1; background:transparent; }
#header-map-data { border:0; background:transparent; color:#52636c; padding:3px; font-size:13px; }
.header-coordinate-search { display:flex; align-items:center; gap:5px; margin:0; margin-left:auto; }
.header-coordinate-search span { font-size:9px; color:#81939d; white-space:nowrap; }
.header-coordinate-search input { height:25px; padding:4px 6px; border:1px solid #dfe7eb; border-radius:4px; font-size:10px; width:170px; }
.header-coordinate-search input[name=radius] { width:62px; }
.header-coordinate-search button { height:25px; width:27px; padding:0; font-size:16px; color:#52788a; background:#f3f7f9; border-color:#dfe7eb; }
.fiber-map:not(.pilot-satellite) .leaflet-tile-pane { filter:grayscale(.95) brightness(1.08) contrast(.83); opacity:.8; }
.module-icon svg { width:20px; height:20px; flex:none; }
@media(max-width:1100px) { .header-coordinate-search { display:none; } .header-map-search { width:160px; } }
@media(max-width:600px) { .header-map-search { display:none; } }
.header-map-tools { display:flex; align-items:center; gap:9px; margin-left:auto; }
.compact-header:has(.header-map-tools)>.header-spacer { display:none; }
.header-map-tools .header-coordinate-search { margin-left:0; }
#map-edit-lock { display:flex; align-items:center; justify-content:space-between; gap:4px; min-width:53px; height:27px; border:1px solid #dca8b3; border-radius:7px; padding:2px 4px; color:#b25666; background:#fff7f8; }
#map-edit-lock .map-lock-label { display:none; }
#map-edit-lock .map-lock-thumb { display:grid; place-items:center; width:21px; height:21px; border-radius:5px; background:#f3dbe0; font-size:13px; }
#map-edit-lock.is-unlocked { border-color:#a6cfc3; background:#f2faf7; }
#map-edit-lock.is-unlocked .map-lock-thumb { margin-left:auto; background:#d9eee5; }
#map-edit-lock:disabled { opacity:.4; cursor:not-allowed; }
.map-data-heading { height:38px; box-sizing:border-box; padding:7px 10px; }
.map-data-heading>strong { font-size:11px; }
.map-data-heading button { min-height:26px; padding:3px 7px; }
.layer-search { display:block; padding:3px 10px; margin:0 0 10px; }
.layer-search input { height:23px; min-height:23px; padding:4px 6px; border:0; background:#f6f8f8; font-size:9px; }
.map-data-panel { position:relative; }
.map-panel-body { display:none; position:absolute; z-index:900; left:10px; right:10px; top:38px; background:#fff; border:1px solid #dbe6eb; border-radius:5px; box-shadow:0 3px 12px #173c3920; }
.map-panel-body:has(.fiber-layers:not([hidden])) { display:block; }
.map-panel-body .fiber-tools { padding:8px; border:0; }
.map-data-panel #map-feature-list { padding:0 10px 10px; }
.map-data-panel #map-feature-list .tree-group { padding:3px 0; border:0; }
.map-data-panel #map-feature-list .tree-heading,.map-data-panel #map-feature-list .tree-row { display:flex; align-items:center; gap:6px; min-height:26px; color:#455962; font-size:10px; }
.map-data-panel #map-feature-list .tree-heading>button,.map-data-panel #map-feature-list .tree-row>button { width:auto; min-height:20px; padding:0; margin:0; border:0; background:transparent; box-shadow:none; font-size:11px; color:#6f858e; }
.map-data-panel #map-feature-list [data-tree-collapse] { flex:none; width:12px; text-align:center; justify-content:center; }
.map-data-panel #map-feature-list .tree-children { padding-left:20px; }
.map-data-panel #map-feature-list .tree-row>[data-tree-collapse]:first-child { width:0; overflow:hidden; }
.map-data-panel #map-feature-list input[type=checkbox] { width:12px; height:12px; padding:0; margin:0; flex:0 0 12px; accent-color:#287f94; }
.tree-line-swatch { display:block; flex:0 0 16px; height:3px; }
.map-data-panel #map-feature-list .tree-row .tree-layer-name { flex:1; width:auto; justify-content:flex-start; font-size:10px; text-align:left; color:#455962; }
.map-data-panel #map-feature-list .tree-heading .tree-layer-menu,.map-data-panel #map-feature-list .tree-row .tree-layer-menu { margin-left:auto; width:16px; font-size:22px; line-height:20px; color:#74878d; }
.tree-layer-features { padding-left:36px; }
.map-data-panel #map-feature-list .tree-feature { width:100%; padding:4px 2px; border:0; background:transparent; font-size:9px; color:#64808b; text-align:left; }
.tree-layer-features small { display:block; padding:4px 0; font-size:9px; color:#96a5ac; }
.tree-point-symbol { font-size:14px; color:#427f88; }
.pilot-layer-settings { width:min(360px,calc(100vw - 25px)); border:1px solid #d2e1e8; border-radius:8px; padding:20px; }
.pilot-layer-settings form { display:grid; gap:13px; }
.pilot-layer-settings h2 { font-size:16px; color:#355566; }
.pilot-layer-settings label { font-size:12px; color:#617c8b; }
@media(max-width:1100px) { .header-map-tools { gap:6px; } }
@media(max-width:600px) { #map-edit-lock { min-width:28px; } .pon-calculator-button { font-size:9px; } }
.pilot-add-layer { width:min(460px,calc(100vw - 24px)); max-height:90vh; overflow:auto; padding:24px; box-sizing:border-box; border:1px solid #d5e1e7; border-radius:14px; color:#365563; box-shadow:0 20px 55px #173b5530; }
.pilot-add-layer form { display:grid; gap:16px; }
.pilot-layer-head { display:flex; align-items:center; justify-content:space-between; }
.pilot-layer-head h2 { margin:0; font-size:20px; color:#294b60; }
.pilot-layer-head>button { border:0; border-radius:5px; background:#edf2f6; color:#5a7380; font-size:21px; width:28px; height:28px; padding:0; }
.pilot-layer-intro { font-size:12px; color:#7c8d98; margin:-7px 0 0; }
.pilot-layer-tabs { display:flex; border-radius:7px; padding:4px; background:#edf2f5; gap:4px; }
.pilot-layer-tabs button { flex:1; padding:8px 6px; min-height:33px; border:0; border-radius:5px; background:transparent; color:#748792; font-size:12px; }
.pilot-layer-tabs [aria-selected=true] { background:#fff; box-shadow:0 1px 4px #24425312; color:#35596b; }
.pilot-layer-suggestions { display:flex; gap:6px; flex-wrap:wrap; }
.pilot-layer-suggestions button { border:1px solid #dce8ec; border-radius:16px; padding:5px 9px; font-size:10px; color:#65838f; background:#f0f7fa; }
.pilot-add-layer label { display:grid; gap:6px; font-size:12px; color:#728390; margin:0; }
.pilot-add-layer input:not([type=checkbox]):not([type=color]),.pilot-add-layer select { height:39px; padding:8px 10px; box-sizing:border-box; border:1px solid #d5dfe5; border-radius:6px; font-size:12px; color:#496572; }
.pilot-add-layer input[type=color] { width:100%; height:28px; padding:0; border:1px solid #d5dfe5; border-radius:5px; }
.pilot-layer-colors { display:flex; gap:9px; margin-top:-3px; }
.pilot-layer-colors button { width:21px; height:21px; padding:0; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 1px #dbe5e9; }
.pilot-layer-preview { display:flex; gap:10px; align-items:center; min-height:64px; padding:12px; border:1px solid #dce8ee; border-radius:6px; background:#f5fafc; box-sizing:border-box; }
.pilot-layer-preview>span { width:24px; height:3px; background:#168e85; }
.pilot-layer-preview strong { font-size:12px; }
.pilot-layer-preview small { margin-left:auto; font-size:10px; color:#8b9ba4; }
.pilot-add-layer .pilot-layer-visible { display:flex; align-items:center; gap:8px; font-size:12px; color:#496673; }
.pilot-layer-visible input { width:13px; height:13px; padding:0; margin:0; accent-color:#168e85; }
.pilot-layer-note { margin:-7px 0 0; font-size:11px; color:#81939e; line-height:1.5; }
.pilot-layer-error { margin:0; color:#b15a5a; font-size:11px; }
.pilot-add-layer .actions { display:flex; margin:0; gap:8px; }
.pilot-add-layer .actions [type=submit] { flex:1; background:#edf7f7; color:#3a777a; border:0; font-size:11px; padding:8px; }
.pilot-add-layer [data-delete-layer] { color:#ad5c5c; border-color:#e5c8c8; font-size:11px; }
.header-logo img { width:24px; height:24px; object-fit:contain; display:block; }
.pilot-company-dialog { width:min(580px,calc(100vw - 24px)); max-height:90vh; overflow:auto; border:1px solid #d1dee5; border-radius:14px; padding:24px; color:#3c5a6a; }
.pilot-company-dialog form { display:grid; gap:18px; }
.company-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.company-dialog-head small { color:#91a1ad; font-size:9px; letter-spacing:1.5px; }
.company-dialog-head h2 { margin:4px 0 0; font-size:23px; color:#2c4d60; }
.company-dialog-head>button { border:0; background:#edf3f6; width:29px; height:29px; padding:0; font-size:22px; color:#6b8290; }
.pilot-company-dialog form>p { margin:0; font-size:12px; color:#8295a1; }
.company-logo-row { display:flex; align-items:center; gap:14px; }
.company-logo-preview { width:72px; height:72px; padding:8px; display:grid; place-items:center; border:1px solid #dce7ec; border-radius:12px; background:#f6fafb; font-size:29px; color:#2b7d82; }
.company-logo-preview img { max-width:100%; max-height:100%; object-fit:contain; }
.company-logo-row>span { color:#5f7b8b; font-size:12px; }
.company-logo-row small { display:block; color:#99a8b1; font-size:10px; margin-top:5px; }
.company-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.company-fields .field-wide { grid-column:1/-1; }
.company-fields label { display:grid; gap:6px; margin:0; color:#708694; font-size:12px; }
.company-fields input,.company-fields textarea { border:1px solid #d2dfe6; border-radius:6px; padding:9px 11px; font-size:13px; color:#395b6d; }
.company-actions { display:flex; justify-content:flex-end; gap:8px; }
.company-actions button { padding:9px 15px; font-size:12px; }
.company-logo-viewer { width:min(420px,calc(100vw - 24px)); padding:22px; border:1px solid #d2dfe6; border-radius:12px; }
.company-logo-viewer [data-image] { display:grid; place-items:center; min-height:180px; padding:20px; }
.company-logo-viewer img { max-width:100%; max-height:250px; }
.pilot-company-dialog .company-error { color:#ad5a5a; font-size:12px; }
@media(max-width:540px) { .company-fields { grid-template-columns:1fr; } .pilot-company-dialog { padding:18px; } }
.pilot-automation { max-width:1100px; margin:0 auto; color:#4a6878; }
.automation-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; }
.automation-heading h1 { margin:4px 0 8px; font-size:26px; color:#294d62; }
.automation-heading p { margin:0; font-size:12px; color:#7a909e; }
.automation-heading button { padding:8px 11px; font-size:11px; }
.automation-worker { border:1px solid #d9e8ee; padding:13px 16px; border-radius:8px; background:#eff7fa; color:#537e90; font-size:12px; margin-bottom:18px; }
.pilot-automation>form,.automation-history { padding:22px; border:1px solid #dce6ec; border-radius:10px; background:#fff; margin-bottom:20px; }
.pilot-automation h2 { margin:0 0 17px; font-size:17px; color:#355b70; }
.automation-enable { display:flex; align-items:center; gap:8px; font-size:12px; }
.automation-enable input { width:14px; height:14px; margin:0; accent-color:#2b7fa6; }
.automation-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0; }
.automation-fields .field-wide { grid-column:1/-1; }
.automation-fields label { display:grid; gap:6px; font-size:12px; color:#718796; }
.automation-fields small { font-size:10px; color:#93a4af; }
.automation-fields input,.automation-fields select { padding:9px 11px; font-size:12px; border:1px solid #cddde6; border-radius:5px; }
.automation-interval { display:flex; gap:7px; }
.automation-interval input { width:100%; min-width:0; }
.automation-interval select { width:110px; flex:none; }
.automation-note,.automation-adapter-note { font-size:11px; line-height:1.7; color:#8195a2; }
.pilot-automation .actions { display:flex; gap:8px; flex-wrap:wrap; }
.pilot-automation .actions button { padding:8px 12px; font-size:11px; }
.automation-message { font-size:12px; line-height:1.6; color:#557b8d; }
.automation-job-scroll { overflow:auto; }
.automation-history table { width:100%; border-collapse:collapse; font-size:11px; }
.automation-history th { background:#23465d; color:#fff; padding:10px; font-weight:500; text-align:left; }
.automation-history td { padding:10px; color:#597280; border-bottom:1px solid #e6edf1; overflow-wrap:anywhere; }
.automation-empty { font-size:12px; color:#91a3ad; }
@media(max-width:600px) { .automation-fields { grid-template-columns:1fr; } .pilot-automation>form,.automation-history { padding:16px; } .automation-heading { align-items:flex-start; } }
.pilot-telegram-dialog { width:min(1180px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); box-sizing:border-box; overflow:auto; padding:0; border:1px solid #d1dfe8; border-radius:9px; background:#f7fafc; color:#496676; }
.telegram-automation-head { display:flex; align-items:center; justify-content:space-between; background:#fff; padding:15px 20px; border-bottom:1px solid #dfe9ef; }
.telegram-automation-head h2 { margin:0; color:#294f67; font-size:20px; }
.telegram-automation-head>button { width:28px; height:28px; border:0; border-radius:5px; background:#edf3f6; color:#627e8f; padding:0; font-size:22px; }
.telegram-automation-content { padding:20px; }
.telegram-device-settings,.telegram-command-settings,.telegram-job-history { border:1px solid #dbe6ed; border-radius:7px; background:#fff; padding:18px; margin-bottom:18px; }
.telegram-automation-content h3 { color:#355e77; font-size:15px; margin:0 0 13px; }
.telegram-automation-content p { color:#7b919f; font-size:11px; line-height:1.7; }
.telegram-device-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:15px 0; }
.telegram-device-tabs button { padding:9px 17px; border:1px solid #d7e4ec; border-radius:6px; color:#6c8799; background:#f8fbfd; font-size:12px; }
.telegram-device-tabs [aria-selected=true] { color:#287093; border-color:#b9d6e4; background:#eaf4fa; font-weight:600; }
.telegram-device-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.telegram-device-toolbar label { display:flex; align-items:center; gap:6px; font-size:11px; margin:0; }
.telegram-device-toolbar select { height:29px; padding:4px; font-size:11px; }
.telegram-device-toolbar input { margin-left:auto; width:210px; height:30px; padding:6px 9px; font-size:11px; border:1px solid #cedfe9; border-radius:4px; }
.telegram-device-toolbar>button { padding:7px 10px; font-size:11px; }
.telegram-table-scroll { width:100%; overflow:auto; }
.telegram-table-scroll table { width:100%; border-collapse:collapse; white-space:nowrap; font-size:11px; }
.telegram-table-scroll th { padding:11px; background:#23465d; color:#fff; font-weight:500; text-align:left; border-right:1px solid #627e91; }
.telegram-table-scroll td { padding:11px; border:1px solid #e1e9ee; color:#68818f; }
.telegram-table-scroll small { display:block; margin-top:4px; font-size:10px; color:#94a5af; }
.telegram-command-settings>h3:not(:first-child) { margin-top:22px; }
.telegram-command-settings .telegram-toggle { display:flex; align-items:center; gap:8px; font-size:12px; margin:12px 0; }
.telegram-toggle input { width:14px; height:14px; margin:0; accent-color:#2b7fa6; }
.telegram-field { display:grid; gap:7px; font-size:12px; color:#6f8999; }
.telegram-field input { padding:9px 11px; border:1px solid #cddde7; border-radius:5px; font-size:12px; }
[data-token-status] { font-size:10px; color:#91a3ae; }
.telegram-admin-row { display:flex; gap:8px; margin:9px 0; }
.telegram-admin-row input { max-width:280px; padding:8px 10px; font-size:12px; border:1px solid #cddde7; border-radius:4px; }
.telegram-admin-row button,[data-add-admin] { padding:7px 10px; font-size:11px; }
.telegram-disabled { color:#98a8b1; }
.telegram-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.telegram-actions button { padding:8px 13px; font-size:12px; }
.telegram-actions .primary { background:#287fa8; border-color:#287fa8; }
.telegram-empty { padding:12px; background:#f8fbfd; border:1px dashed #d6e4ec; border-radius:5px; }
.database-backup-schedule { margin-top:25px; border-top:1px solid #e0e8ed; padding-top:20px; }
.database-backup-schedule>summary { cursor:pointer; font-size:15px; font-weight:600; color:#3b6c80; }
.backup-schedule-host { padding-top:20px; }
.backup-schedule-host .pilot-automation h1 { font-size:21px; }
@media(max-width:650px) { .telegram-automation-content { padding:10px; } .telegram-device-settings,.telegram-command-settings,.telegram-job-history { padding:12px; } .telegram-device-toolbar input { margin-left:0; width:100%; } .telegram-device-tabs button { padding:8px 12px; font-size:11px; } }

.telegram-power-switch{margin-left:auto;margin-right:8px;border:1px solid #d8a1a7;border-radius:18px;background:#fff5f5;color:#87424b;font-size:12px;padding:5px 12px;min-width:76px;cursor:pointer}.telegram-power-switch.is-on{border-color:#99cabc;background:#e8f6ef;color:#237e64}.telegram-power-switch:focus-visible{outline:2px solid #278d77;outline-offset:2px}.telegram-automation-head .telegram-power-switch+button{margin-left:0}

/* Compact floating map settings and source-colored automation windows. */
.pilot-map-settings-dialog{width:min(570px,calc(100vw - 28px));max-height:min(760px,calc(100dvh - 40px));padding:0;border:1px solid #cbdbe2;border-radius:12px;box-shadow:0 18px 65px #19374635;overflow:auto;background:#fff}
.map-settings-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#f7fafb;border-bottom:1px solid #dce7eb}
.map-settings-dialog-head h2{font-size:16px;margin:0}.map-settings-dialog-head button{width:30px;height:30px;padding:0;border:0;border-radius:7px;font-size:22px;background:#e9f0f4;color:#426370}
.pilot-map-settings-dialog .page-head,.pilot-map-settings-dialog .settings-tabs,.pilot-map-settings-dialog .settings-content>h2{display:none}.pilot-map-settings-dialog .settings-layout{display:block;margin:0}.pilot-map-settings-dialog .settings-content{padding:16px;border:0;box-shadow:none}.pilot-map-settings-dialog fieldset{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pilot-map-settings-dialog fieldset p{grid-column:1/-1}.pilot-map-settings-dialog .device-form{gap:12px}.pilot-map-settings-dialog label{font-size:12px}.pilot-map-settings-dialog input,.pilot-map-settings-dialog select{padding:8px}.pilot-map-settings-dialog::backdrop{background:#17384925}
.pilot-telegram-dialog{position:fixed;inset:auto;z-index:1500;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 12px 45px #18384a30}.pilot-telegram-dialog:not([open]){display:none}.telegram-automation-head{padding:8px 12px;gap:6px;flex:0 0 auto;min-height:51px}.telegram-automation-head h2{font-size:17px}.telegram-automation-content{flex:1;min-height:0;overflow:auto}.pilot-telegram-dialog.is-minimized .telegram-automation-content{display:none}.telegram-automation-head>.telegram-power-switch{width:auto;min-width:62px;height:32px;padding:0 3px;background:transparent;border:0;font-size:11px;margin-right:4px}.telegram-power-track{position:relative;display:block;width:60px;height:29px;border-radius:20px;background:#b85d65;box-shadow:inset 0 1px 3px #50252b30;transition:background .18s}.telegram-power-knob{position:absolute;top:3px;left:3px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:white;color:#a35460;box-shadow:0 1px 4px #193c4933;transition:transform .18s}.telegram-power-knob svg{width:15px;height:15px}.telegram-power-label{position:absolute;inset:0 3px 0 26px;display:grid;place-items:center;color:white;font:600 11px Arial,sans-serif}.telegram-power-switch.is-on .telegram-power-track{background:#36856c}.telegram-power-switch.is-on .telegram-power-knob{transform:translateX(31px);color:#257659}.telegram-power-switch.is-on .telegram-power-label{inset:0 25px 0 3px}
.telegram-device-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:5px;background:#edf3f7;border:1px solid #dbe5ed;border-radius:10px}.telegram-device-tabs [data-kind=router]{--module-ink:#245e9b;--module-soft:#e8f2ff;--module-border:#aac9ed}.telegram-device-tabs [data-kind=switch]{--module-ink:#14735e;--module-soft:#e4f6ed;--module-border:#9bd3be}.telegram-device-tabs [data-kind=olt]{--module-ink:#7241a6;--module-soft:#f1eaff;--module-border:#c9b1e7}.telegram-device-tabs [data-kind=power]{--module-ink:#8b560d;--module-soft:#fff1d8;--module-border:#e6c18a}.telegram-device-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px;border:1px solid transparent;background:var(--module-soft);color:var(--module-ink);font-weight:600;transition:background .15s,border-color .15s,box-shadow .15s}.telegram-device-tabs button:hover{border-color:var(--module-border)}.telegram-device-tabs [aria-selected=true]{background:var(--module-ink);color:#fff;border-color:var(--module-ink);box-shadow:0 2px 5px #173b5526}.telegram-module-icon{font-size:20px;line-height:1}.telegram-module-count{font-size:10px;padding:2px 6px;border-radius:20px;background:#ffffff80;color:var(--module-ink)}.telegram-device-tabs [aria-selected=true] .telegram-module-icon{background:#ffffff20;border-radius:5px;padding:3px}.telegram-device-tabs [aria-selected=true] .telegram-module-count{background:#ffffff25;color:white}@media(max-width:600px){.telegram-device-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.telegram-automation-head h2{font-size:15px}.pilot-map-settings-dialog fieldset{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.telegram-power-track,.telegram-power-knob,.telegram-device-tabs button{transition:none}}

/* Settings follows the same compact nested list as equipment modules. */
.map-first-shell .nav-settings>summary{min-height:36px;padding:5px 10px;list-style:none}.nav-settings>summary::-webkit-details-marker{display:none}.nav-settings:not([open])>.nav-settings-list{display:none}.map-first-shell .nav-settings-list{display:grid;gap:0;margin:1px 0 3px 22px;padding:0 3px 0 7px;border-left:1px solid #d7e4e9}.map-first-shell .nav-settings-list button{min-height:27px;height:auto;padding:4px 6px;font-size:10px;line-height:1.25;white-space:normal;border-radius:5px}.map-first-shell .nav-settings[open]>summary{background:#eef4f6;color:#357b82}.nav-settings[open] .nav-chevron{transform:rotate(90deg)}
.software-section-tabs{display:flex;flex-direction:row;gap:8px;align-items:center;margin:0 0 18px;padding:0 0 10px;border-bottom:1px solid #dce5eb}
.software-section-tabs>button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:145px;padding:11px 20px;border:1px solid #d3deed;border-radius:8px;background:#e8efff;color:#365b91;font-size:14px;font-weight:600;cursor:pointer}
.software-section-tabs>button:last-child{background:#e1f5ef;color:#236e5c;border-color:#c2e4d9}
.software-section-tabs>button[aria-selected="true"]{background:#287c84;color:#fff;border-color:#287c84;box-shadow:0 2px 6px #244b5c20}
.software-section-tabs>button:focus-visible{outline:2px solid #287c84;outline-offset:3px}
#software-backup-panel[hidden],#software-restore-panel[hidden]{display:none!important}
.software-section-tabs{gap:10px;padding:5px 0 14px;margin-bottom:18px}
.software-section-tabs>button{min-width:190px;justify-content:flex-start;padding:10px 16px;border-radius:10px;transition:background .18s,color .18s,box-shadow .18s}
.software-tab-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#ffffffa0;font-size:22px;line-height:1}
.software-section-tabs>button[aria-selected="true"]{background:#287c84;border-color:#287c84;box-shadow:0 3px 9px #287c8429}
.software-section-tabs>button[aria-selected="true"] .software-tab-icon{background:#ffffff25;color:#fff}
.software-section-tabs>button:hover{box-shadow:0 2px 8px #244b5c24}
@media(max-width:520px){.software-section-tabs{gap:6px}.software-section-tabs>button{min-width:0;flex:1;padding:9px;font-size:12px}.software-tab-icon{width:25px;height:25px;flex-shrink:0}}
.data-backup-modules{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;padding:14px;border:1px solid #dce5eb;border-radius:10px}
.data-backup-modules legend{font-size:12px;font-weight:600;color:#496d7e;padding:0 6px}
.data-backup-modules label{display:flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid #dce5eb;border-radius:8px;background:#f5f9fb;cursor:pointer}
.data-backup-modules label:has(input:checked){background:#e1f5ef;border-color:#8ec8b8;color:#236e5c}
.data-backup-modules input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#287c84}
.database-section-tabs{flex-wrap:wrap}
#database-backup-panel[hidden],#database-restore-panel[hidden],#database-delivery-panel[hidden]{display:none!important}
.automatic-backup-panel{max-width:1000px}.automatic-backup-panel>h3{margin-top:0}.automatic-backup-panel form{display:grid;gap:14px}.automatic-backup-panel .automatic-backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.automatic-backup-panel label{display:grid;gap:6px;font-size:12px;color:#35596a}.automatic-backup-panel fieldset{border:1px solid #dce5eb;border-radius:10px;padding:14px;margin:0}.automatic-backup-panel legend{font-size:13px;font-weight:600;color:#287c84}.automatic-backup-panel .data-backup-modules label,.automatic-backup-panel .automatic-backup-enable{display:flex;align-items:center;gap:8px}.automatic-backup-worker{padding:10px 12px;background:#edf6f4;border-radius:8px;color:#31645c;font-size:12px;margin:12px 0}.automatic-backup-interval{display:flex;gap:6px}.automatic-backup-interval input{min-width:0;flex:1}.automatic-backup-panel fieldset[hidden],.automatic-backup-panel label[hidden]{display:none!important}.automatic-backup-panel .actions{display:flex;flex-wrap:wrap;gap:8px}.automatic-backup-message{white-space:pre-wrap}.automatic-backup-secret-state{font-size:11px;color:#658177}@media(max-width:600px){.automatic-backup-panel .automatic-backup-grid{grid-template-columns:1fr}}
.automatic-backup-panel .automatic-backup-enable{justify-content:flex-start;width:fit-content}.automatic-backup-panel input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:0;accent-color:#287c84}
.automatic-backup-panel .automatic-backup-interval{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,150px);gap:8px}.automatic-backup-panel .automatic-backup-interval input,.automatic-backup-panel .automatic-backup-interval select{box-sizing:border-box;width:100%;min-width:0}
.automatic-backup-panel .automatic-backup-schedule{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.automatic-backup-schedule>label{min-width:0}.automatic-backup-schedule input,.automatic-backup-schedule select{box-sizing:border-box;width:100%;height:42px;min-width:0}@media(max-width:600px){.automatic-backup-panel .automatic-backup-schedule{grid-template-columns:1fr}}
.device-action-strip{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-left:auto}.device-action-strip button{font-size:11px;padding:7px 10px;border-radius:5px;border:1px solid #cddde6;background:#fff;color:#436777}.device-action-strip [data-device-action=enable]{background:#e6f5ee;color:#257553}.device-action-strip [data-device-action=disable]{background:#fbecee;color:#a34c59}.device-action-strip [data-device-action=sync]{background:#eaf1ff;color:#3b64a0}.device-action-strip [data-device-action=auto]{background:#f0ecfa;color:#74549c}.device-action-strip .is-enabled{background:#287c84!important;color:#fff!important}.device-table input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:#287c84}.device-unmonitored.is-enabled{background:#e1f4e9;color:#22714b}.device-sync-status{display:block;font-size:10px;color:#6a8090;margin-top:4px}.device-auto-sync-dialog{width:min(420px,90vw);padding:20px;border:1px solid #d6e1e8;border-radius:12px}.device-auto-sync-dialog .dialoghead{display:flex;align-items:center;justify-content:space-between}.device-auto-sync-dialog label{display:grid;gap:6px;font-size:12px}.device-auto-sync-dialog .auto-sync-enable{display:flex;align-items:center;gap:8px;margin:14px 0}.auto-sync-enable input{width:16px;height:16px}.auto-sync-interval{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auto-sync-interval input,.auto-sync-interval select{width:100%;box-sizing:border-box}.device-auto-sync-dialog p{font-size:12px;color:#647c8b;line-height:1.5}.device-auto-sync-dialog .actions{display:flex;gap:8px}.device-auto-sync-dialog::backdrop{background:#17384940}
.device-catalog-source{font:12px Arial,sans-serif;color:#355866}.device-catalog-source .olt-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.device-catalog-source .olt-catalog-design{overflow:auto}.device-catalog-source form input{min-width:0}.device-catalog-source .power-model-sketch{max-width:100%}
.device-catalog-source .olt-catalog-note{padding:9px 12px;margin:0 0 12px;border:1px solid #d9e7e8;border-radius:7px;background:#eef6f5;color:#3e7778;font-size:11px}.device-catalog-source .olt-catalog-grid{gap:12px!important;margin-bottom:16px}.device-catalog-source .olt-catalog-column{box-sizing:border-box;min-width:0;min-height:230px;padding:13px!important;border:1px solid #dce5ec!important;border-radius:9px!important;background:#fff!important}.device-catalog-source .olt-catalog-column-head{position:relative;padding-bottom:10px;border-bottom:1px solid #edf1f5;margin-bottom:10px}.device-catalog-source .olt-catalog-column-head h3{margin:2px 0 5px;font-size:14px;color:#2e516b}.device-catalog-source .olt-catalog-column-head>small{float:right;display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#edf3f9;color:#587b9b;font-size:10px}.device-catalog-source .olt-catalog-column-head p{font-size:11px;color:#7b8e9b;margin:0;min-height:14px}.device-catalog-source .olt-catalog-inline-add{display:flex!important;gap:5px;margin-bottom:10px}.device-catalog-source .olt-catalog-inline-add input{flex:1;min-width:0;width:0;height:31px;box-sizing:border-box;padding:6px 8px!important;border:1px solid #d4e0e8;border-radius:5px;font-size:11px}.device-catalog-source .olt-catalog-inline-add button{flex:none;padding:5px 9px;min-width:49px;font-size:10px;background:#edf5f8;border:1px solid #c9dde6;border-radius:5px;color:#3c7183}.device-catalog-source .olt-catalog-choice{display:flex!important;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;text-align:left;padding:9px 10px!important;margin:0 0 5px!important;border:1px solid #e1e8ed!important;border-radius:6px!important;background:#f8fafc;color:#3d5e73;font-size:11px}.device-catalog-source .olt-catalog-choice small{padding:2px 6px;border-radius:10px;background:#edf2f7;color:#7b8da0;font-size:9px;white-space:nowrap}.device-catalog-source .olt-catalog-choice[aria-pressed=true]{border-color:#8fc5bd!important;background:#e5f4ee!important;color:#216b59;font-weight:600}.device-catalog-source .olt-catalog-model-list{padding:0!important;border:1px solid #d9e3ea!important;border-radius:9px!important;background:#fff;overflow:hidden;margin-bottom:15px}.device-catalog-source .olt-catalog-list-heading{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;background:#f6f9fb}.device-catalog-source .olt-catalog-list-heading h3{font-size:13px;margin:0}.device-catalog-source .olt-catalog-list-heading small{font-size:10px;color:#668294}.device-catalog-source .olt-catalog-table{width:100%;border-collapse:collapse;font-size:11px}.device-catalog-source .olt-catalog-table th{padding:9px 13px;text-align:left;background:#315772;color:#fff;font-size:11px;font-weight:600}.device-catalog-source .olt-catalog-table td{padding:8px 13px;border-bottom:1px solid #eaf0f4}.device-catalog-source .olt-catalog-table tbody tr:nth-child(even){background:#f8fafc}.device-catalog-source .olt-catalog-table tr.is-selected{background:#e8f5ef!important}.device-catalog-source .olt-catalog-model-link{padding:2px 0!important;border:0!important;background:transparent!important;color:#287d8c!important;font-size:11px;text-align:left}.device-catalog-source .olt-catalog-table td>button:not(.olt-catalog-model-link){padding:4px 9px;font-size:10px;border-radius:5px}.device-catalog-source .olt-catalog-design{padding:14px!important;border:1px solid #dbe5ec!important;border-radius:9px!important;background:#fff!important;margin:0 0 10px}.device-catalog-source .olt-catalog-design>h3{font-size:13px;margin:0 0 14px;color:#355b73}.device-catalog-source .olt-catalog-design>p{font-size:11px;color:#7b8d98}.device-catalog-source .olt-catalog-design svg{max-width:100%;height:auto}.device-catalog-source [role=status]{font-size:10px;color:#6b8a81}.power-sketch-viewer{width:min(1000px,94vw);max-height:90vh;overflow:auto}.power-sketch-viewer-head{display:flex;align-items:center;gap:10px}.power-sketch-zoom-viewport{overflow:auto;max-height:70vh}.power-sketch-zoom-viewport img{min-width:100%}@media(max-width:760px){.device-catalog-source .olt-catalog-grid{grid-template-columns:1fr!important}.device-catalog-source .olt-catalog-column{min-height:0!important}}
.device-overlay .device-page-head{position:sticky;top:0;z-index:3}

/* Settings stays at the foot of the rail; its menu opens upward. */
.map-first-shell>.sidebar{padding-bottom:0}
.map-first-shell .sidebar .module-nav{display:flex;flex-direction:column;flex:1;min-height:0;height:100%}
.map-first-shell .sidebar .module-nav>nav:first-child{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;gap:2px}
.map-first-shell .sidebar .module-nav>.module-nav-bottom{display:block;flex:none;margin-top:auto;overflow:visible}
.map-first-shell .nav-settings{position:relative}
.map-first-shell .nav-settings>summary{border-top:1px solid #dde6ec;border-radius:0;min-height:44px}
.map-first-shell .nav-settings>.nav-settings-list{position:absolute;bottom:100%;left:0;right:0;z-index:1600;max-height:min(70dvh,420px);overflow-y:auto;padding:6px;background:white;border:1px solid #dce5eb;border-radius:9px;box-shadow:0 -8px 24px #16324720}
.map-first-shell .nav-settings[open] .nav-chevron{transform:rotate(-90deg)}
.map-first-shell .sidebar .module-nav>nav{height:auto}
.map-first-shell .sidebar .module-nav>nav{min-height:0}.map-first-shell .nav-settings>.nav-settings-list{margin:0}

/* Larger Connections rows based on the supplied reference. */
.map-first-shell .nav-connections>summary{min-height:44px;padding-top:10px;padding-bottom:10px}
.map-first-shell .nav-connections>summary .module-label{font-size:11px;letter-spacing:1.5px;font-weight:650;text-transform:uppercase}
.map-first-shell .nav-connections>.nav-settings-list{margin:3px 0 8px;padding:0;border:0;gap:4px}
.map-first-shell .nav-connections>.nav-settings-list button{display:flex;align-items:center;gap:13px;min-height:42px;height:42px;padding:8px 11px;font-size:13px;line-height:1.3;border-radius:9px;color:#36544c;white-space:nowrap}
.map-first-shell .nav-connections>.nav-settings-list button:hover,.map-first-shell .nav-connections>.nav-settings-list button:focus-visible{background:#e8f5ee;color:#184f40}
.map-first-shell .connection-nav-icon{display:inline-grid;place-items:center;flex:0 0 21px;font-size:19px;color:#42695d}
