:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #07111f; color: #e8eef7; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.auth-view { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center start; padding: 24px clamp(24px, 7vw, 144px); overflow: hidden; background-color: #030914; background-image: url('/assets/galaxy-event-horizon.png'); background-position: center; background-size: cover; }
.auth-view::before { position: absolute; z-index: -1; inset: 0; content: ''; background: rgb(2 10 23 / 54%); }
.auth-panel { width: min(460px, 100%); border: 1px solid #3a5c79; border-radius: 8px; background: rgb(5 18 33 / 90%); box-shadow: 0 20px 54px rgb(0 0 0 / 46%); padding: 34px; backdrop-filter: blur(5px); }
.auth-panel .mark { width: 46px; height: 46px; border-color: #66dcb7; color: #9df1da; font-size: 17px; box-shadow: inset 0 0 0 1px rgb(102 220 183 / 12%); }
.auth-panel h1 { max-width: 330px; color: #f5f9fe; font-size: 30px; }
.auth-panel .muted { color: #b7cae0; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #55d5bd; color: #55d5bd; font-size: 15px; font-weight: 700; }
.eyebrow { margin: 22px 0 8px; color: #7e9ab9; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: 28px; line-height: 1.15; }
h2 { margin-bottom: 4px; font-size: 20px; }
h3 { margin-bottom: 12px; font-size: 14px; }
.muted { color: #9eb2ca; line-height: 1.5; }
.auth-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.button { min-height: 38px; border: 1px solid #3c5879; border-radius: 5px; padding: 8px 14px; color: #e8eef7; background: #142640; font-weight: 650; }
.button:hover { background: #1a3152; }
.button-primary { border-color: #45c6ae; background: #0c776c; color: #f2fffd; }
.button-primary:hover { background: #0f8a7e; }
.button-danger { border-color: #ae5c64; color: #ffd4d9; background: #3a1d26; }
.button-danger:hover { background: #512331; }
.button-quiet { background: transparent; }
.notice { margin-top: 18px; color: #f1c87a; font-size: 13px; line-height: 1.45; }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { border-right: 1px solid #203755; background: #091727; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 23px; }
.brand-name { display: block; color: #f2f7fd; font-size: 16px; font-weight: 700; line-height: 1.25; }
.nav-group { margin: 18px 0 8px; padding: 0 8px; color: #7289a5; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.configuration-site-context { display: block; margin: 0 8px 8px; color: #839ab5; font-size: 11px; }
.configuration-site-context span { display: block; margin-bottom: 5px; }
.configuration-site-context select { width: 100%; min-height: 34px; border: 1px solid #34506f; border-radius: 4px; padding: 5px 24px 5px 7px; color: #edf4fc; background: #10243d; font-size: 12px; text-overflow: ellipsis; }
.configuration-site-context select:focus { border-color: #55d5bd; outline: 1px solid #55d5bd; outline-offset: 1px; }
.nav-button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-left: 2px solid transparent; border-radius: 0; padding: 10px; text-align: left; color: #aabbd0; background: transparent; font-size: 14px; }
.nav-button:hover, .nav-button.active { border-left-color: #55d5bd; color: #f3f8ff; background: #112540; }
.nav-icon { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; color: #7793b0; }
.nav-button:hover .nav-icon, .nav-button.active .nav-icon { color: #66dcb7; }
.nav-submenu-button { padding-left: 22px; font-size: 13px; }
.sidebar-footer { position: fixed; bottom: 0; width: 198px; padding: 18px 8px; color: #6f86a2; font-size: 12px; }
.workspace { min-width: 0; background: #07111f; }
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #203755; padding: 12px 24px; background: #0a1727; }
.context-label { color: #85a0bf; font-size: 12px; }
.organization-select { display: block; max-width: 280px; margin-top: 4px; border: 1px solid #34506f; border-radius: 4px; padding: 6px 28px 6px 8px; color: #edf4fc; background: #10243d; }
.user-menu { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-name { overflow: hidden; max-width: 220px; color: #c7d4e3; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.main { padding: 26px 24px 38px; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.page-heading p { margin: 4px 0 0; color: #8ea6c1; font-size: 14px; }
.refresh-state { color: #7892af; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric { min-height: 108px; border: 1px solid #29425e; border-radius: 6px; padding: 16px; background: #0b1b2f; }
.metric-label { color: #8ea6c1; font-size: 12px; }
.metric-value { margin-top: 11px; color: #f5f8fc; font-size: 28px; font-weight: 700; }
.metric-value.control-plane-protocol { font-size: 24px; }
.metric-note { margin-top: 5px; color: #7b94b0; font-size: 12px; }
.map-panel { min-height: 410px; margin-bottom: 16px; }
.site-map { min-height: 350px; background: #0a1727; }
.map-empty { display: grid; min-height: 350px; place-items: center; padding: 24px; color: #8ea6c1; text-align: center; }
.gm-style .gm-style-iw-c { max-width: 300px !important; padding: 0 !important; border: 1px solid #34506f; border-radius: 6px; background: #0b1b2f; box-shadow: 0 12px 28px rgb(0 0 0 / 38%); }
.gm-style .gm-style-iw-d { overflow: hidden !important; }
.gm-style .gm-style-iw-tc::after { background: #0b1b2f; }
.gm-style .gm-ui-hover-effect { top: 5px !important; right: 5px !important; opacity: 0.9; }
.gm-style .gm-ui-hover-effect > span { background-color: #c6d6e6; }
.site-map-info { min-width: 220px; padding: 14px 38px 14px 14px; color: #d8e4f0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.4; }
.site-map-info-title { display: block; margin-bottom: 7px; color: #f2f7fd; font-size: 14px; font-weight: 700; }
.site-map-info-address { color: #afc1d4; font-size: 12px; overflow-wrap: anywhere; }
.site-map-info-device { margin-top: 8px; color: #66dcb7; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; }
.panel { min-width: 0; border: 1px solid #29425e; border-radius: 6px; background: #0b1b2f; }
.panel-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid #223b58; padding: 15px 16px; }
.panel-header h3 { margin: 0; color: #edf5fc; }
.panel-header span { color: #7f99b5; font-size: 12px; }
.monitor-range { display: inline-flex; align-items: center; gap: 8px; color: #8fa9c5; font-size: 12px; }
.monitor-range select { min-height: 32px; border: 1px solid #34506f; border-radius: 4px; padding: 5px 26px 5px 8px; color: #edf4fc; background: #10243d; }
.table-wrap { overflow-x: auto; }
.site-total-count { white-space: nowrap; }
.site-search { padding: 14px 16px; border-bottom: 1px solid #223b58; }
.site-search .form-field { max-width: 430px; }
.site-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #223b58; padding: 12px 16px; color: #8fa8c2; font-size: 12px; }
.site-pagination-summary, .site-pagination-actions { display: flex; align-items: center; gap: 10px; }
.site-pagination-summary .form-field { grid-template-columns: auto 74px; align-items: center; gap: 8px; color: #8fa8c2; }
.site-pagination-summary .form-field select { min-height: 32px; }
.icon-button { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid #395778; border-radius: 4px; color: #dce8f3; background: #10243d; font-size: 17px; cursor: pointer; }
.icon-button:hover:not(:disabled) { border-color: #58d4bc; color: #74e7ce; }
.icon-button:disabled { cursor: not-allowed; opacity: .45; }
.table-actions { display: flex; gap: 6px; }
.table-actions .icon-button { width: auto; height: 28px; padding: 0 9px; font-size: 12px; }
.danger-button { border-color: #8d4a55; color: #f0b0b6; }
.danger-button:hover:not(:disabled) { border-color: #e05b5b; color: #ffd0d3; }
.cpe-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #70879f; box-shadow: 0 0 0 3px rgba(112, 135, 159, .12); }
.cpe-status-online { color: #65dcb7; }
.cpe-status-online .status-dot { background: #4fd2a0; box-shadow: 0 0 0 3px rgba(79, 210, 160, .14); }
.cpe-status-offline { color: #ff9da7; }
.cpe-status-offline .status-dot { background: #df6572; box-shadow: 0 0 0 3px rgba(223, 101, 114, .14); }
.cpe-status-unassigned { color: #91a7bf; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 16px; color: #829bb5; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid #1d3550; padding: 13px 16px; color: #d3dfec; vertical-align: middle; }
.device-name { display: block; color: #f1f6fc; font-weight: 650; }
.device-meta { display: block; margin-top: 3px; color: #849bb5; font-size: 12px; }
.badge { display: inline-block; border: 1px solid #44617e; border-radius: 999px; padding: 3px 7px; color: #b7cbe0; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-online { border-color: #2c997d; color: #66dcb7; }
.badge-alert { border-color: #b98238; color: #f2c276; }
.badge-down { border-color: #c95d69; color: #ff9da7; background: #321b22; }
.event-list { margin: 0; padding: 0; list-style: none; }
.event { border-top: 1px solid #1d3550; padding: 14px 16px; }
.event:first-child { border-top: 0; }
.event-title { display: flex; justify-content: space-between; gap: 12px; color: #e0e9f3; font-size: 13px; }
.event-time { flex: 0 0 auto; color: #7892ad; font-size: 11px; }
.event-detail { margin-top: 5px; color: #92a8c0; font-size: 12px; line-height: 1.45; }
.empty { padding: 26px 16px; color: #91a7bf; font-size: 13px; }
.error-banner { margin-bottom: 16px; border: 1px solid #a95d4e; border-radius: 5px; padding: 11px 13px; color: #ffc3b7; background: #321b22; font-size: 13px; }
.success-banner { margin-bottom: 16px; border: 1px solid #287a68; border-radius: 5px; padding: 11px 13px; color: #a4f2dd; background: #123b38; font-size: 13px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 16px; }
.form-field { display: grid; gap: 6px; color: #92a9c3; font-size: 12px; }
.form-field input, .form-field select { width: 100%; min-height: 36px; border: 1px solid #34506f; border-radius: 4px; padding: 7px 8px; color: #edf4fc; background: #10243d; }
.check-field { display: flex; align-items: center; min-height: 36px; gap: 8px; color: #c8d7e7; font-size: 13px; }
.check-field input { width: 16px; height: 16px; accent-color: #45c6ae; }
.check-field small { color: #829bb6; font-size: 11px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 14px; }
.form-actions { display: flex; gap: 8px; align-items: end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.firewall-policy-header-grid { margin: 0 30px; }
.firewall-add-rule-action { align-self: end; margin-bottom: 1px; }
.policy-section { min-width: 0; margin: 0 16px 16px; border: 1px solid #29425e; border-radius: 5px; padding: 14px; }
.vpn-edit-context { display: grid; gap: 3px; margin: 16px 16px 0; border-left: 3px solid #55d5bd; padding: 9px 12px; background: #0c1d31; }
.vpn-edit-context strong { color: #e1ebf5; font-size: 13px; }
.vpn-edit-context span { color: #8fa9c5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.policy-section legend { padding: 0 7px; color: #e1ebf5; font-size: 13px; font-weight: 700; }
.cpe-interface-section legend span { color: #7f99b5; font-size: 12px; font-weight: 500; }
.cpe-interface-config-list { margin-top: 20px; }
.cpe-default-wan-grid { margin: 0 16px; }
.control-plane-source-grid .form-field { align-content: start; }
.speed-test-source-grid .form-field { align-content: start; }
.vlan-port-grid .form-field { align-content: start; }
.vlan-add-action { align-self: end; margin-bottom: 1px; }
.vlan-workflow-wrap { min-width: 0; }
.vlan-workflow { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; border: 1px solid #29425e; border-radius: 6px; padding: 12px; background: #091827; }
.vlan-workflow-step { display: flex; min-width: 0; align-items: center; gap: 11px; border: 0; border-left: 3px solid #44617e; border-radius: 3px; padding: 10px 12px; color: #b7cbe0; text-align: left; background: #0b1b2f; }
.vlan-workflow-step:hover { background: #10243d; }
.vlan-workflow-step.active { border-left-color: #f2c276; }
.vlan-workflow-step.complete { border-left-color: #55d5bd; }
.vlan-step-number { display: inline-grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid #496984; border-radius: 50%; color: #c8d7e7; font-size: 12px; font-weight: 700; }
.vlan-workflow-step.active .vlan-step-number { border-color: #b98238; color: #f2c276; }
.vlan-workflow-step.complete .vlan-step-number { border-color: #2c997d; color: #66dcb7; }
.vlan-step-copy { display: grid; min-width: 0; gap: 3px; }
.vlan-step-copy strong { color: #edf5fc; font-size: 13px; }
.vlan-step-copy small { overflow: hidden; color: #8fa9c5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vlan-workflow-connector { height: 1px; background: #35506c; }
.vlan-workflow-connector.complete { background: #2c997d; }
.vlan-topology-list { display: grid; gap: 18px; padding: 16px; }
.vlan-topology-device { min-width: 0; border-top: 1px solid #29425e; padding-top: 16px; }
.vlan-topology-device:first-child { border-top: 0; padding-top: 0; }
.vlan-topology-device > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.vlan-topology-device > header > div { display: grid; min-width: 0; gap: 3px; }
.vlan-topology-device > header strong { color: #edf5fc; font-size: 14px; }
.vlan-topology-device > header span:not(.badge) { color: #849bb5; font-size: 11px; }
.vlan-topology-branches { display: grid; gap: 10px; }
.vlan-topology-branch { display: grid; grid-template-columns: minmax(150px, 190px) 46px minmax(0, 1fr); align-items: stretch; min-width: 0; }
.vlan-topology-port { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-height: 76px; border: 1px solid #3b5672; border-left: 4px solid #70879f; border-radius: 4px; padding: 11px 12px; background: #10243d; }
.vlan-topology-port.status-up { border-left-color: #36b893; }
.vlan-topology-port.status-down { border-left-color: #d45b68; }
.vlan-topology-port > div { display: grid; min-width: 0; gap: 3px; }
.vlan-topology-port strong { color: #eef5fc; font-size: 13px; }
.vlan-topology-port div span, .vlan-topology-port > small { overflow: hidden; color: #8fa9c5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vlan-topology-port > small { grid-column: 1; color: #70d9c1; font-weight: 700; text-transform: uppercase; }
.vlan-topology-port-state { display: inline-flex; grid-column: 2; grid-row: 1 / span 2; align-items: center; gap: 5px; color: #9bb0c6; font-size: 9px; font-weight: 700; }
.vlan-topology-port-state i { width: 7px; height: 7px; border-radius: 50%; background: #70879f; }
.status-up .vlan-topology-port-state { color: #66dcb7; }
.status-up .vlan-topology-port-state i { background: #4fd2a0; box-shadow: 0 0 0 3px rgb(79 210 160 / 12%); }
.status-down .vlan-topology-port-state { color: #ff9da7; }
.status-down .vlan-topology-port-state i { background: #df6572; box-shadow: 0 0 0 3px rgb(223 101 114 / 12%); }
.vlan-topology-connector { position: relative; min-height: 76px; }
.vlan-topology-connector::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; content: ''; background: #3b5672; }
.vlan-topology-connector::after { position: absolute; top: calc(50% - 3px); right: 0; width: 7px; height: 7px; border-top: 1px solid #3b5672; border-right: 1px solid #3b5672; content: ''; transform: rotate(45deg); }
.vlan-topology-leaves { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 8px; min-width: 0; border-left: 1px solid #3b5672; padding-left: 10px; }
.vlan-topology-leaf, .vlan-topology-empty { display: grid; min-width: 0; align-content: center; gap: 3px; min-height: 76px; border: 1px solid #29425e; border-left: 3px solid #5f9ee8; border-radius: 4px; padding: 10px 12px; background: #0b1b2f; }
.vlan-topology-leaf.l3 { border-left-color: #f2c276; }
.vlan-topology-leaf strong { color: #e8f1fa; font-size: 12px; }
.vlan-topology-leaf span { overflow: hidden; color: #73d9c1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vlan-topology-leaf small { overflow: hidden; color: #849bb5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vlan-topology-empty { border-left-color: #58708d; color: #849bb5; font-size: 11px; }
.form-note.cpe-default-wan-note { margin: 20px 16px 0; text-align: left; }
.cpe-interface-submit { margin-top: 4px; }
.subsection-header { align-items: baseline; border-top: 1px solid #29425e; display: flex; justify-content: space-between; margin: 20px 16px 0; padding: 16px 0 12px; }
.subsection-header h4 { color: #e1ebf5; font-size: 14px; margin: 0; }
.subsection-header span { color: #8ca5bf; font-size: 12px; }
.interface-enabled { align-self: end; margin-bottom: 8px; }
.interface-lan-note { margin: 2px 0 0; }
.cpe-faceplate-panel-header { align-items: center; }
.cpe-faceplate-selector { display: flex; min-width: min(430px, 52vw); align-items: center; gap: 10px; color: #8fa9c5; font-size: 12px; }
.cpe-faceplate-selector select { width: 100%; min-height: 34px; border: 1px solid #34506f; border-radius: 4px; padding: 6px 28px 6px 8px; color: #edf4fc; background: #10243d; }
.cpe-faceplate-content { padding: 18px 16px 14px; }
.cpe-chassis { width: min(1120px, 100%); margin: 0 auto; border: 2px solid #3b5068; border-radius: 4px; padding: 14px; background: #101820; box-shadow: inset 0 0 0 1px #07111f, inset 0 -10px 0 #0a1118; }
.cpe-chassis-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #304155; padding: 0 2px 13px; }
.cpe-chassis-identity, .cpe-chassis-state { display: flex; min-width: 0; align-items: center; gap: 11px; }
.cpe-chassis-identity .mark { width: 40px; height: 40px; flex: 0 0 40px; }
.cpe-chassis-identity div { display: grid; min-width: 0; gap: 3px; }
.cpe-chassis-identity strong { overflow: hidden; color: #edf5fc; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cpe-chassis-identity span:not(.mark), .cpe-chassis-state > span:last-child { color: #829ab4; font-size: 11px; }
.cpe-power { display: inline-flex; align-items: center; gap: 7px; color: #9fb2c6; font-size: 11px; font-weight: 700; }
.cpe-power i, .cpe-faceplate-legend i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #70879f; box-shadow: 0 0 0 3px rgb(112 135 159 / 12%); }
.cpe-power.status-up { color: #66dcb7; }
.cpe-power.status-up i, .cpe-faceplate-legend .status-up i { background: #4fd2a0; box-shadow: 0 0 0 3px rgb(79 210 160 / 14%); }
.cpe-power.status-down { color: #ff9da7; }
.cpe-power.status-down i, .cpe-faceplate-legend .status-down i { background: #df6572; box-shadow: 0 0 0 3px rgb(223 101 114 / 14%); }
.cpe-port-bank { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; padding: 16px 2px 12px; }
.cpe-faceplate-port { display: grid; min-width: 0; grid-template-rows: auto 62px auto; gap: 9px; border: 1px solid #34475a; border-top: 3px solid #70879f; border-radius: 3px; padding: 10px; background: #0b1219; }
.cpe-faceplate-port.status-up { border-top-color: #36b893; }
.cpe-faceplate-port.status-down { border-top-color: #d45b68; }
.cpe-faceplate-port.status-disabled { border-top-color: #b98238; }
.cpe-port-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cpe-port-heading > strong { color: #eaf2fa; font-size: 12px; }
.cpe-port-heading > span { display: inline-flex; align-items: center; gap: 5px; color: #91a7bd; font-size: 9px; font-weight: 700; }
.cpe-port-led { width: 6px; height: 6px; border-radius: 50%; background: #70879f; }
.status-up .cpe-port-led { background: #4fd2a0; box-shadow: 0 0 6px rgb(79 210 160 / 75%); }
.status-down .cpe-port-led { background: #df6572; box-shadow: 0 0 6px rgb(223 101 114 / 55%); }
.status-disabled .cpe-port-led { background: #d5a150; }
.cpe-rj45 { position: relative; width: 76px; height: 58px; place-self: center; border: 3px solid #627386; border-top-width: 5px; border-radius: 2px; padding: 5px 6px 6px; background: #05090e; box-shadow: inset 0 0 0 2px #1a2835; }
.status-up .cpe-rj45 { border-color: #4b7b70; }
.status-down .cpe-rj45 { border-color: #7c4a54; }
.cpe-rj45-contacts { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; height: 18px; padding: 0 4px; }
.cpe-rj45-contacts i { display: block; width: 3px; height: 15px; justify-self: center; background: #c5a756; }
.cpe-rj45-slot { position: absolute; right: 14px; bottom: 5px; left: 14px; height: 17px; border: 2px solid #334557; border-bottom: 0; }
.cpe-port-details { display: grid; min-width: 0; gap: 3px; text-align: center; }
.cpe-port-details strong { color: #dce8f3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.cpe-port-details span, .cpe-port-details small { overflow: hidden; color: #91a7bd; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cpe-port-details small { color: #6fd6bd; }
.cpe-chassis-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #304155; padding: 11px 2px 2px; color: #829ab4; font-size: 11px; }
.cpe-chassis-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.cpe-faceplate-legend { display: flex; justify-content: flex-end; gap: 16px; width: min(1120px, 100%); margin: 11px auto 0; color: #91a7bd; font-size: 10px; font-weight: 700; }
.cpe-faceplate-legend span { display: inline-flex; align-items: center; gap: 6px; }
.policy-phase + .policy-phase { margin-top: 16px; padding-top: 16px; border-top: 1px solid #223b58; }
.policy-phase h4 { margin: 0 0 12px; color: #cbd9e8; font-size: 13px; }
.vpn-form-footer { display: flex; align-items: center; gap: 16px; border-top: 1px solid #223b58; padding: 14px 16px; }
.field-help { color: #8fa9c5; font-size: 12px; font-weight: 400; line-height: 1.4; margin-top: 4px; }
.protected-subnets-field { margin: 0 16px; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; }
.template-item { border: 1px solid #223b58; padding: 16px; }
.template-item h4 { margin: 0 0 8px; font-size: 15px; }
.template-item p { color: #9db4cd; line-height: 1.5; margin: 0 0 16px; }
.connectivity-history { display: grid; gap: 18px; padding: 16px; }
.connectivity-row { display: grid; gap: 8px; }
.connectivity-row > div:first-child { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.connectivity-row > div:first-child span { align-items: center; color: #9db4cd; display: inline-flex; gap: 8px; }
.connectivity-timeline { display: grid; gap: 2px; grid-template-columns: repeat(24, minmax(0, 1fr)); height: 10px; }
.connectivity-segment { background: #58708d; min-width: 0; }
.connectivity-segment.up { background: #57c36a; }
.connectivity-segment.down { background: #e05b5b; }
.connectivity-segment.unknown { background: #58708d; }
.connectivity-labels { color: #8fa9c5; display: flex; font-size: 12px; justify-content: space-between; }
.diagnostic-list { display: grid; gap: 18px; padding: 16px; }
.diagnostic-device { border-top: 1px solid #223b58; padding-top: 18px; }
.diagnostic-device:first-child { border-top: 0; padding-top: 0; }
.diagnostic-device h4 { margin: 0 0 8px; color: #e1ebf5; font-size: 15px; }
.diagnostic-device h4 span { color: #8fa9c5; font-size: 13px; font-weight: 500; }
.diagnostic-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; color: #9db4cd; font-size: 13px; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.diagnostic-grid section { min-width: 0; border: 1px solid #223b58; }
.diagnostic-grid h5 { margin: 0; border-bottom: 1px solid #223b58; padding: 11px 14px; color: #cbd9e8; font-size: 13px; }
.detail-list.compact { grid-template-columns: minmax(92px, 0.85fr) minmax(0, 1.15fr); }
.detail-list.compact dt, .detail-list.compact dd { padding: 8px 12px; font-size: 12px; overflow-wrap: anywhere; }
.diagnostics-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #223b58; }
.diagnostics-actions span { color: #7f99b5; font-size: 12px; }
.ipsec-overhead-legend .detail-list { margin: 0 16px 16px; }
.ipsec-overhead-legend .ipsec-overhead-total { color: #55d5bd; font-weight: 700; }
.form-note { margin: 0; color: #87a0bb; font-size: 12px; line-height: 1.45; }
.resource-list { display: grid; gap: 18px; padding: 16px; }
.resource-device { border-top: 1px solid #223b58; padding-top: 18px; }
.resource-device:first-child { border-top: 0; padding-top: 0; }
.resource-device-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.resource-device-heading h4 { margin: 0; color: #e1ebf5; font-size: 15px; }
.resource-device-heading h4 span, .resource-observed { color: #8fa9c5; font-size: 12px; font-weight: 500; }
.resource-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.resource-metric { display: grid; gap: 6px; min-width: 0; border: 1px solid #223b58; padding: 12px; }
.resource-metric span, .resource-metric small { color: #8fa9c5; font-size: 12px; }
.resource-metric strong { overflow: hidden; color: #eef6fd; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
.resource-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.resource-chart-card { min-width: 0; border: 1px solid #223b58; padding: 12px; }
.resource-chart-header { display: flex; justify-content: space-between; gap: 10px; color: #8fa9c5; font-size: 12px; }
.resource-chart-header > span:last-child { white-space: nowrap; }
.resource-chart-wrap { position: relative; margin-top: 10px; }
.resource-chart { display: block; width: 100%; height: 118px; overflow: visible; touch-action: none; }
.resource-chart polyline { fill: none; vector-effect: non-scaling-stroke; }
.resource-hover-line { stroke: #a9bed4; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.resource-hover-dot { fill: #eef6fd; stroke: #0b1b2f; stroke-width: 2; vector-effect: non-scaling-stroke; }
.resource-tooltip { position: absolute; z-index: 2; top: 6px; max-width: min(280px, calc(100% - 16px)); border: 1px solid #42627f; border-radius: 4px; padding: 6px 8px; color: #eaf3fc; background: #081625; box-shadow: 0 8px 18px rgb(0 0 0 / 32%); pointer-events: none; transform: translateX(-50%); font-size: 11px; line-height: 1.35; }
.resource-chart-axis { display: flex; justify-content: space-between; gap: 8px; color: #7892ad; font-size: 11px; }
.resource-grid-line { stroke: #2b4260; stroke-width: 1; }
.wan-traffic-axis { margin-left: 105px; }
.wan-traffic-grid-line { stroke: #2b4260; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wan-traffic-grid-label { fill: #8fa9c5; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 8px; }
.resource-cpu-line { stroke: #55d5bd; stroke-width: 2; }
.resource-memory-line { stroke: #5f9ee8; stroke-width: 2; }
.resource-load-line { stroke: #f2c276; stroke-width: 2; }
.wan-traffic-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wan-traffic-toolbar .form-field { width: min(250px, 100%); flex: 0 0 250px; }
.wan-traffic-toolbar .form-note { padding-bottom: 8px; }
.wan-traffic-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 4px; color: #9eb2c8; font-size: 11px; }
.wan-traffic-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wan-traffic-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.wan-traffic-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wan-traffic-wan-1 { stroke: #55d5bd; background: #55d5bd; }
.wan-traffic-wan-2 { stroke: #5f9ee8; background: #5f9ee8; }
.wan-traffic-wan-3 { stroke: #f2c276; background: #f2c276; }
.wan-traffic-download { stroke: #55d5bd; background: #55d5bd; }
.wan-traffic-upload { stroke: #ba8ff2; background: #ba8ff2; }
.resource-legend { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; border-radius: 50%; }
.resource-legend.cpu { background: #55d5bd; }
.resource-legend.memory { background: #5f9ee8; }
.tab-bar { display: flex; gap: 2px; border-bottom: 1px solid #29425e; overflow-x: auto; }
.tab-button { min-width: 96px; flex: 0 0 auto; border: 1px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; padding: 10px 14px; color: #91a8c1; background: transparent; font-size: 13px; font-weight: 700; }
.tab-button:hover { color: #dce8f4; background: #0b1b2f; }
.tab-button.active { border-color: #29425e; color: #e9f5f3; background: #0b1b2f; box-shadow: inset 0 2px 0 #55d5bd; }
.section-stack { display: grid; gap: 16px; }
.detail-list { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0; margin: 0; }
.detail-list dt, .detail-list dd { margin: 0; border-top: 1px solid #1d3550; padding: 12px 16px; font-size: 13px; }
.detail-list dt { color: #829bb5; }
.detail-list dd { color: #e1ebf5; }
.panel-actions { padding: 16px; }
.inline-button { border: 0; padding: 0; color: #79dcc4; background: transparent; font-size: 12px; font-weight: 650; }
.confirmation-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(2 10 19 / 74%); }
.confirmation-dialog { width: min(440px, 100%); border: 1px solid #36536f; border-radius: 6px; padding: 22px; background: #0b1b2f; box-shadow: 0 18px 44px rgb(0 0 0 / 38%); }
.confirmation-dialog h2 { margin-bottom: 9px; color: #f1f6fc; font-size: 18px; }
.confirmation-dialog p { margin-bottom: 20px; color: #b8c9db; font-size: 14px; line-height: 1.5; }
.configuration-summary { width: min(620px, 100%); }
.configuration-summary .detail-list { margin-bottom: 20px; }
.confirmation-actions { display: flex; justify-content: flex-end; gap: 8px; }
.hidden { display: none; }
@media (max-width: 880px) { .dashboard-shell { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid #203755; padding: 12px; } .brand { padding-bottom: 10px; } .sidebar nav { display: flex; align-items: end; overflow-x: auto; } .nav-group, .sidebar-footer { display: none; } .configuration-site-context { min-width: 190px; margin: 0 8px 2px 0; } .nav-button { width: auto; min-width: max-content; border-left: 0; border-bottom: 2px solid transparent; } .nav-button:hover, .nav-button.active { border-left-color: transparent; border-bottom-color: #55d5bd; } .metric-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); } .panel-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .auth-view { place-items: end center; padding: 16px; background-position: 62% center; } .auth-panel { padding: 25px; } .auth-panel h1 { font-size: 27px; } .topbar, .page-heading { align-items: flex-start; flex-direction: column; } .topbar { padding: 14px 16px; } .main { padding: 20px 16px 30px; } .organization-select { max-width: calc(100vw - 32px); } .metric-grid { grid-template-columns: 1fr 1fr; } .metric { min-height: 96px; padding: 13px; } .metric-value { font-size: 24px; } .user-name { max-width: 145px; } }
@media (max-width: 1000px) { .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .resource-chart-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .form-row, .form-grid, .compact-grid, .template-grid, .diagnostic-grid, .resource-metric-grid, .resource-chart-grid { grid-template-columns: 1fr; } .protected-subnets-field { margin: 0 16px; } .vpn-form-footer, .wan-traffic-toolbar { align-items: flex-start; flex-direction: column; } .wan-traffic-toolbar .form-field { flex-basis: auto; } .form-actions { justify-content: flex-start; } .detail-list, .detail-list.compact { grid-template-columns: 1fr; } .detail-list dt { border-bottom: 0; padding-bottom: 3px; } .detail-list dd { padding-top: 3px; } .panel-header:has(.monitor-range), .resource-device-heading, .site-pagination { align-items: flex-start; flex-direction: column; } }
@media (max-width: 700px) { .vlan-workflow { grid-template-columns: 1fr; gap: 8px; } .vlan-workflow-connector { width: 1px; height: 14px; margin-left: 26px; } }
@media (max-width: 700px) { .cpe-faceplate-panel-header, .cpe-chassis-header, .cpe-chassis-footer { align-items: flex-start; flex-direction: column; } .cpe-faceplate-selector { width: 100%; min-width: 0; } .cpe-chassis-state { width: 100%; justify-content: space-between; } .cpe-port-bank { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); } .cpe-faceplate-legend { justify-content: flex-start; } }
@media (max-width: 760px) { .vlan-topology-device > header { align-items: flex-start; flex-direction: column; } .vlan-topology-branch { grid-template-columns: 1fr; } .vlan-topology-connector { width: 1px; min-height: 18px; margin-left: 24px; background: #3b5672; } .vlan-topology-connector::before, .vlan-topology-connector::after { display: none; } .vlan-topology-leaves { grid-template-columns: 1fr; margin-left: 24px; } }
