/* Bang mau va cach hien thi */
:root {
  color-scheme: dark;
  --bg: #0a101c; --sidebar: #0d1523; --surface: #111c2c; --surface-2: #162235;
  --surface-3: #1c2b40; --border: #253249; --text: #eaf2fd; --muted: #90a0b6;
  --subtle: #63748f; --primary: #31d9aa; --primary-2: #14b994;
  --blue: #65a9ff; --yellow: #f1bd68; --red: #ff7b8b; --shadow: 0 24px 60px rgba(0,0,0,.17);
  --radius: 18px; --focus: 0 0 0 3px rgba(49,217,170,.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light; --bg:#f4f7fb; --sidebar:#fdfefe; --surface:#fff; --surface-2:#f2f6fa;
  --surface-3:#eaf2f7; --border:#dce5ed; --text:#15273d; --muted:#60748b; --subtle:#8294a7;
  --primary:#078a73; --primary-2:#007e6a; --blue:#246cd1; --yellow:#a97416; --red:#bb344b;
  --shadow:0 16px 35px rgba(45,76,112,.08); --focus:0 0 0 3px rgba(7,138,115,.2);
}
*, *::before, *::after {box-sizing:border-box}
html {scroll-behavior:smooth}
body {margin:0; background:var(--bg); color:var(--text); font-size:14px; line-height:1.52}
body, button, input, select, textarea {font-family:inherit}
button, input, select {font-size:inherit}
button {cursor:pointer}
button:disabled {opacity:.42;cursor:not-allowed;filter:grayscale(.35)}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {outline:0; box-shadow:var(--focus)}
button, a {touch-action:manipulation}
a {color:var(--primary);text-decoration:none}
a:hover {text-decoration:underline}
[hidden] {display:none!important}
::selection {background:rgba(49,217,170,.29)}

/* Man hinh dang nhap */
.auth-shell {min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(400px,.9fr)}
.auth-visual {position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:64px;background:radial-gradient(circle at 28% 15%,#144438 0,transparent 35%),linear-gradient(140deg,#0b1828 0%,#101d31 55%,#0c1425 100%);color:#e8f8f6}
.auth-visual::before {content:"";position:absolute;inset:0;opacity:.24;background-image:linear-gradient(#aaf8e622 1px,transparent 1px),linear-gradient(90deg,#aaf8e622 1px,transparent 1px);background-size:50px 50px;mask-image:linear-gradient(90deg,transparent,#000)}
.auth-visual::after {content:"";position:absolute;width:380px;height:380px;border-radius:50%;border:1px solid rgba(99,231,209,.12);box-shadow:0 0 0 72px rgba(67,255,204,.03),0 0 0 146px rgba(67,255,204,.025);top:15%;right:-140px}
.auth-visual-content {width:min(100%,650px);z-index:1}
.auth-brand, .auth-mobile-brand {display:flex;align-items:center;gap:14px;font-weight:800;font-size:24px;letter-spacing:.035em}
.brand-glyph {display:grid;place-items:center;background:linear-gradient(145deg,#2addaf,#2e91e6);color:#07262b;font-size:25px;border-radius:14px;height:44px;width:44px;flex:none;box-shadow:0 8px 24px #1cdbb43b}
.brand-highlight,.brand-text>span {color:#48e0b9}
.auth-tag {margin-top:70px;display:inline-flex;gap:10px;align-items:center;color:#8cf7dd;letter-spacing:.16em;font-size:11px;font-weight:800}
.live-pulse {display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 4px rgba(49,217,170,.14)}
.auth-visual h1 {font-size:clamp(34px,3.6vw,59px);line-height:1.18;letter-spacing:-.045em;margin:22px 0}
.auth-visual h1 span {color:#77ecd2}
.auth-visual p {max-width:490px;color:#afc7d6;font-size:16px;line-height:1.8}
.auth-illustration {margin-top:20px;max-width:610px;filter:drop-shadow(0 20px 40px rgba(0,0,0,.22))}
.auth-illustration svg {width:100%;display:block}
.auth-visual-footer {color:#84a7b4;font-size:12px;letter-spacing:.13em}
.auth-form-wrap {background:var(--bg);display:grid;place-items:center;padding:48px}
.auth-card {width:min(100%,420px)}
.auth-mobile-brand {display:none}
.auth-eyebrow,.page-eyebrow {font-size:10px;font-weight:800;letter-spacing:.15em;color:var(--primary)}
.auth-card h2 {font-size:31px;line-height:1.2;letter-spacing:-.04em;margin:14px 0 8px}
.auth-description {color:var(--muted);margin-bottom:34px}
.field {display:flex;flex-direction:column;gap:9px;font-weight:650;font-size:12px;margin-bottom:17px}
.field span small {font-weight:400;color:var(--muted)}
.field input,.field select,input.control,select.control {width:100%;background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:12px 14px;color:var(--text);outline:0;min-height:44px}
.field input:focus,.field select:focus,input.control:focus,select.control:focus {border-color:var(--primary);box-shadow:var(--focus)}
.field input::placeholder,input.control::placeholder {color:var(--subtle)}
.input-inline {display:flex;align-items:end;gap:14px;justify-content:space-between}
.input-inline .field {flex:1}
.text-button {border:0;background:transparent;color:var(--primary);white-space:nowrap;margin-bottom:25px;font-weight:650}
.auth-footnote {font-size:11px;color:var(--muted);line-height:1.8;margin-top:30px;text-align:center}
.form-error {padding:10px 12px;border:1px solid rgba(255,123,139,.32);border-radius:11px;background:rgba(255,123,139,.09);color:var(--red);font-size:12px}

/* Bo cuc chinh */
.app-shell {display:grid;grid-template-columns:258px minmax(0,1fr);min-height:100vh}
.sidebar {background:var(--sidebar);border-right:1px solid var(--border);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:20;padding:27px 16px 18px}
.sidebar-brand {padding:0 10px 39px;display:flex;align-items:center;gap:12px}
.brand-text {font-size:23px;font-weight:850;letter-spacing:.02em;line-height:1}
.brand-text small {display:block;font-size:9px;color:var(--subtle);font-weight:750;letter-spacing:.18em;margin-top:7px}
.sidebar-section-label {color:var(--subtle);font-size:10px;font-weight:800;letter-spacing:.15em;padding:0 16px 15px}
.nav-items {display:flex;flex-direction:column;gap:4px;overflow:auto;min-height:0;scrollbar-width:thin}
.nav-link {display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--muted);font-weight:620;padding:11px 14px;min-height:43px;transition:background .15s,color .15s}
.nav-link svg {height:19px;width:19px;stroke-width:1.9;flex:none}
.nav-link:hover {background:var(--surface-2);color:var(--text)}
.nav-link.active {background:rgba(49,217,170,.105);border-color:rgba(49,217,170,.22);color:var(--primary)}
.nav-divider {height:1px;background:var(--border);margin:12px 9px}
.nav-group-label {color:var(--subtle);font-size:9px;font-weight:800;letter-spacing:.13em;padding:9px 14px}
.nav-counter {margin-left:auto;font-size:10px;border-radius:7px;padding:2px 7px;background:rgba(255,123,139,.14);color:var(--red)}
.sidebar-bottom {margin-top:auto;padding-top:18px}
.sidebar-info {display:flex;align-items:center;gap:9px;padding:14px 11px;background:linear-gradient(135deg,rgba(49,217,170,.10),rgba(101,169,255,.055));border:1px solid rgba(49,217,170,.17);border-radius:13px;margin:0 5px 17px}
.sidebar-info-icon {font-size:19px;color:var(--primary)}
.sidebar-info strong,.sidebar-info span:last-child {display:block;font-size:10px}
.sidebar-info span:last-child {color:var(--muted);margin-top:4px}
.profile {background:transparent;color:var(--text);border:0;display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px;border-radius:12px}
.profile:hover {background:var(--surface-2)}
.avatar {display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(145deg,#215f63,#264979);color:#bcffeb;font-weight:800;flex:none}
.profile-detail {flex:1;min-width:0}
.profile-detail strong {display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-detail small {color:var(--muted);display:block;margin-top:2px}
.main-area {min-width:0;display:flex;flex-direction:column}
.topbar {display:flex;justify-content:space-between;align-items:center;min-height:74px;padding:0 clamp(20px,3vw,46px);border-bottom:1px solid var(--border);background:var(--sidebar);position:sticky;top:0;z-index:10;gap:10px}
.topbar-start,.topbar-actions {display:flex;align-items:center;gap:14px}
.breadcrumbs {display:flex;gap:12px;align-items:center;color:var(--subtle);font-size:12px}
.breadcrumbs strong {color:var(--text)}
.breadcrumb-sep {opacity:.45}
.connection-pill {border-radius:30px;display:inline-flex;align-items:center;gap:8px;padding:6px 12px;font-size:11px;border:1px solid var(--border);background:var(--surface)}
.connection-pill .dot {width:7px;height:7px;border-radius:50%;background:var(--muted)}
.status-online .dot {background:var(--primary);box-shadow:0 0 0 3px rgba(49,217,170,.13)}
.status-online {color:var(--primary)}
.status-warning .dot {background:var(--yellow)}
.status-warning {color:var(--yellow)}
.status-offline .dot {background:var(--red)}
.status-offline {color:var(--red)}
.topbar-clock {color:var(--subtle);font-size:11px;white-space:nowrap}
.icon-button {display:grid;place-items:center;border:1px solid var(--border);color:var(--muted);background:var(--surface);border-radius:10px;min-width:35px;height:35px;font-size:19px}
.icon-button:hover {color:var(--text);border-color:var(--primary)}
.mobile-menu,.mobile-close,.mobile-backdrop {display:none}
.page-main {padding:36px clamp(20px,3vw,46px) 32px;max-width:1800px;width:100%;margin:auto;flex:1}
.page-heading {display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:29px}
.page-eyebrow {display:flex;align-items:center;gap:10px;margin-bottom:11px}
.page-heading h1 {font-size:clamp(26px,2.2vw,34px);letter-spacing:-.042em;line-height:1.12;margin:0}
.page-description {color:var(--muted);margin:10px 0 0;max-width:700px}
.heading-tools {display:flex;gap:8px}
.app-footer {display:flex;justify-content:space-between;gap:15px;padding:18px clamp(20px,3vw,46px);border-top:1px solid var(--border);font-size:10px;color:var(--subtle)}

/* Thanh phan giao dien */
.btn {border:1px solid transparent;border-radius:11px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:750;white-space:nowrap;min-height:42px;transition:transform .15s,background .15s}
.btn:hover:not(:disabled) {transform:translateY(-1px)}
.btn-primary {background:var(--primary);color:#062925}
.btn-primary:hover {background:#53e8c0}
.btn-soft {color:var(--text);background:var(--surface-2);border-color:var(--border)}
.btn-soft:hover {background:var(--surface-3)}
.btn-outline {color:var(--text);background:transparent;border-color:var(--border)}
.btn-danger {background:#b23f4d;color:white}
.btn-danger-soft {color:var(--red);background:rgba(255,123,139,.08);border-color:rgba(255,123,139,.2)}
.btn-sm {font-size:11px;min-height:34px;padding:7px 11px;border-radius:9px}
.btn-block {width:100%}
.btn svg {width:16px;height:16px}
.pill {display:inline-flex;gap:6px;align-items:center;border:1px solid var(--border);background:var(--surface-2);padding:5px 9px;border-radius:99px;font-size:10px;font-weight:750;white-space:nowrap}
.pill:before {content:"";width:6px;height:6px;background:var(--subtle);border-radius:50%}
.pill.ok {color:var(--primary);border-color:rgba(49,217,170,.17);background:rgba(49,217,170,.08)}
.pill.ok:before {background:var(--primary)}
.pill.warn {color:var(--yellow);background:rgba(241,189,104,.07);border-color:rgba(241,189,104,.22)}
.pill.warn:before {background:var(--yellow)}
.pill.danger {color:var(--red);background:rgba(255,123,139,.08);border-color:rgba(255,123,139,.21)}
.pill.danger:before {background:var(--red)}
.pill.neutral {color:var(--muted)}
.muted {color:var(--muted)} .small {font-size:12px}.tiny {font-size:11px}.nowrap{white-space:nowrap}
.mono {font-family:ui-monospace,Consolas,monospace;font-size:.88em}
.accent {color:var(--primary)} .blue {color:var(--blue)} .warning-color {color:var(--yellow)} .danger-color {color:var(--red)}
.section-title {font-size:15px;letter-spacing:-.014em;margin:0}
.section-subtitle {color:var(--muted);font-size:11px;margin-top:5px}
.section-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}
.grid {display:grid;gap:18px}
.kpi-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:21px}
.columns-2 {grid-template-columns:repeat(2,minmax(0,1fr))}
.columns-3 {grid-template-columns:repeat(3,minmax(0,1fr))}
.panel {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);min-width:0}
.panel + .panel {margin-top:18px}
.panel.no-pad {padding:0;overflow:hidden}
.panel-head-border {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 23px;border-bottom:1px solid var(--border)}
.panel-body {padding:23px}
.kpi-card {position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--border);padding:21px;border-radius:var(--radius);min-height:142px;box-shadow:var(--shadow)}
.kpi-card::after {content:"";position:absolute;width:110px;height:110px;right:-58px;top:-58px;border-radius:50%;background:var(--primary);opacity:.045}
.kpi-top {display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:11px}
.kpi-icon {width:34px;height:34px;border-radius:11px;background:rgba(49,217,170,.09);display:grid;place-items:center;color:var(--primary)}
.kpi-icon svg {width:18px;height:18px}
.kpi-value {font-size:29px;font-weight:800;letter-spacing:-.05em;margin:8px 0 2px;line-height:1.2}
.kpi-detail {font-size:10px;color:var(--subtle)}
.hero-banner {padding:24px 28px;border:1px solid rgba(49,217,170,.2);border-radius:var(--radius);background:radial-gradient(circle at 82% 5%,rgba(46,207,169,.16),transparent 35%),linear-gradient(100deg,var(--surface),var(--surface-2));display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:21px;overflow:hidden}
.hero-banner h2 {font-size:21px;letter-spacing:-.035em;margin:6px 0}
.hero-banner p {color:var(--muted);margin:0}
.hero-art {width:110px;height:90px;flex:none;color:var(--primary);opacity:.6}
.meter {height:8px;background:var(--surface-3);border-radius:50px;overflow:hidden}
.meter>span {display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--primary));border-radius:50px;transition:width .35s}
.meter-meter {margin:10px 0}
.zone-card {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:21px;min-width:0;box-shadow:var(--shadow)}
.zone-card-top {display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.zone-card-title {font-size:16px;font-weight:760;letter-spacing:-.02em}
.zone-card-caption {font-size:11px;color:var(--muted);margin-top:4px}
.zone-big-value {font-size:31px;font-weight:800;letter-spacing:-.06em;margin-top:15px}
.zone-big-value small {font-size:13px;font-weight:650;color:var(--muted)}
.zone-meta {display:flex;flex-wrap:wrap;gap:9px 16px;margin-top:13px;color:var(--muted);font-size:11px}
.zone-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:19px;border-top:1px solid var(--border);padding-top:16px}
.zone-actions .btn {flex:1}
.inline-control {width:80px;min-width:0!important;height:34px!important;padding:6px 9px!important}
.telemetry-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.metric-card {padding:17px;background:var(--surface-2);border:1px solid var(--border);border-radius:13px;min-width:0}
.metric-label {font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.metric-value {font-size:24px;letter-spacing:-.04em;font-weight:770;margin:7px 0}
.metric-value small {font-size:11px;color:var(--muted);font-weight:500}
.metric-bottom {display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--subtle);font-size:10px}
.table-wrap {width:100%;overflow-x:auto;scrollbar-width:thin}
table {border-collapse:collapse;width:100%;min-width:620px;font-size:12px}
th {text-align:left;color:var(--muted);font-size:10px;letter-spacing:.055em;text-transform:uppercase;font-weight:800;background:var(--surface-2)}
th, td {padding:13px 15px;border-bottom:1px solid var(--border);vertical-align:middle}
tr:last-child td {border-bottom:0}
tbody tr:hover {background:rgba(109,142,177,.035)}
.empty-state {display:grid;place-items:center;text-align:center;padding:40px 20px;color:var(--muted);min-height:160px}
.empty-icon {width:52px;height:52px;border-radius:16px;background:var(--surface-2);display:grid;place-items:center;color:var(--subtle);font-size:26px;margin-bottom:13px}
.empty-state h3 {color:var(--text);margin:0 0 6px;font-size:14px}
.empty-state p {max-width:400px;margin:0;font-size:12px;line-height:1.7}
.toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.toolbar input.control,.toolbar select.control {width:auto;min-width:170px}
.stack {display:flex;flex-direction:column;gap:16px}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.form-grid .field {margin:0}
.form-grid .field.full {grid-column:1/-1}
.form-actions {display:flex;gap:9px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.note {display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border-radius:12px;background:rgba(101,169,255,.075);border:1px solid rgba(101,169,255,.19);color:var(--muted);font-size:12px;line-height:1.7}
.note strong {color:var(--text)}
.note.warn {background:rgba(241,189,104,.07);border-color:rgba(241,189,104,.20)}
.note.danger {background:rgba(255,123,139,.07);border-color:rgba(255,123,139,.25)}
.note + .grid,.note + .panel {margin-top:18px}
.callout-micro {font-size:10px;color:var(--muted);line-height:1.65;margin:9px 0 0}
.chart-svg {width:100%;height:auto;display:block;min-height:240px;max-height:350px}
.chart-meta {display:flex;gap:12px;justify-content:space-between;color:var(--muted);font-size:11px;flex-wrap:wrap}
.chart-swatch {display:inline-block;width:11px;height:3px;border-radius:10px;background:var(--primary);vertical-align:middle;margin-right:7px}
.chart-axis {fill:var(--subtle);font:11px ui-sans-serif,system-ui}
.chart-gridline {stroke:var(--border);stroke-dasharray:4 5}
.chart-line {stroke:var(--primary);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.chart-fill {fill:var(--primary);opacity:.08}
.chart-dot {fill:var(--primary);stroke:var(--surface);stroke-width:2}
.sensor-group-title {display:flex;gap:10px;align-items:center;font-size:15px;margin:0 0 14px}
.device-header {display:flex;align-items:center;gap:13px;margin-bottom:17px}
.device-icon {display:grid;place-items:center;border-radius:12px;background:rgba(101,169,255,.12);color:var(--blue);width:44px;height:44px}
.device-icon svg {width:23px;height:23px}
.device-name {font-weight:800;font-size:16px}
.device-description {color:var(--muted);font-size:11px;margin-top:4px}
.device-stat-list {display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);padding-top:15px}
.device-stat {display:flex;justify-content:space-between;gap:15px;font-size:12px}
.device-stat>span {color:var(--muted)}
.log-code {max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,Consolas,monospace;font-size:11px}
.ai-mark {display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,rgba(49,217,170,.17),rgba(101,169,255,.10));color:var(--primary);width:55px;height:55px;font-size:28px;margin-bottom:14px}
.health-lines {display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.health-lines>div {min-width:130px}
.health-lines strong {font-size:17px;display:block}
.health-lines small {color:var(--muted)}
.form-description {color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 17px}
.tabs {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.tab {border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:9px;padding:9px 13px}
.tab.active {background:var(--surface-2);color:var(--primary);border-color:rgba(49,217,170,.36)}
.modal {width:min(480px,calc(100vw - 30px));border:1px solid var(--border);border-radius:20px;padding:25px;background:var(--surface);color:var(--text);box-shadow:0 20px 80px #0008}
.modal::backdrop {background:rgba(4,11,19,.73);backdrop-filter:blur(4px)}
.modal-icon {display:grid;place-items:center;width:44px;height:44px;font-weight:850;font-size:21px;border-radius:14px;color:var(--yellow);background:rgba(241,189,104,.12)}
.modal h2 {margin:16px 0 8px;font-size:21px}
.modal p {color:var(--muted);white-space:pre-line;font-size:13px;line-height:1.8}
.modal-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.toast-stack {position:fixed;bottom:20px;right:20px;z-index:100;display:flex;flex-direction:column;gap:10px;width:min(380px,calc(100vw - 40px));pointer-events:none}
.toast {padding:13px 16px;border:1px solid rgba(49,217,170,.3);box-shadow:var(--shadow);background:var(--surface);color:var(--text);border-radius:12px;font-size:12px;line-height:1.6;pointer-events:auto}
.toast.error {border-color:rgba(255,123,139,.5)}
.loading {display:flex;gap:11px;align-items:center;color:var(--muted);padding:20px}
.spinner {display:inline-block;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:17px;height:17px;animation:spin .65s linear infinite}
@keyframes spin {to {transform:rotate(360deg)}}

@media (max-width:1250px) { .kpi-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.telemetry-grid {grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:1050px) {.app-shell {grid-template-columns:224px minmax(0,1fr)}.sidebar {padding-left:9px;padding-right:9px}.topbar-clock {display:none}.auth-visual {padding:35px}.columns-3 {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:790px) {
 .auth-shell {grid-template-columns:1fr}.auth-visual {display:none}.auth-mobile-brand {display:flex;margin-bottom:40px}.auth-form-wrap {min-height:100vh;padding:22px}.auth-card h2 {font-size:27px}
 .app-shell {display:block}.sidebar {position:fixed;top:0;bottom:0;left:0;transform:translateX(-102%);height:100dvh;width:280px;transition:transform .25s;padding:24px 14px;box-shadow:var(--shadow)}.sidebar.open {transform:translateX(0)}.mobile-backdrop:not([hidden]) {display:block;position:fixed;inset:0;background:#030a15ae;z-index:19}.mobile-menu,.mobile-close {display:grid}.mobile-close {margin-left:auto}.topbar {min-height:63px;padding:0 16px}.page-main {padding:26px 16px}.page-heading {align-items:start;flex-wrap:wrap;gap:10px}.app-footer {padding:15px 16px}.hero-art {display:none}
}
@media (max-width:570px) {
 .kpi-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi-card {padding:14px;min-height:120px}.kpi-value {font-size:25px}.kpi-top {font-size:10px}.kpi-icon {width:29px;height:29px}.columns-2,.columns-3,.telemetry-grid,.form-grid {grid-template-columns:1fr}.panel {padding:17px}.panel-head-border,.panel-body {padding:17px}.hero-banner {padding:20px}.topbar-actions {gap:7px}.connection-pill {padding:6px 8px}.connection-pill span:last-child {display:none}.page-heading h1 {font-size:27px}.app-footer span:last-child {display:none}.zone-actions .btn {flex-basis:40%}.form-grid .field.full {grid-column:auto}.toolbar input.control,.toolbar select.control {width:100%}.chart-svg {min-height:170px}
}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
