:root {
    color-scheme: light;
    --bg: #f5f8fd;
    --surface: #ffffff;
    --surface-alt: #f0f5fd;
    --text: #17233d;
    --muted: #6d7a91;
    --line: #dce5f1;
    --brand: #123fa9;
    --brand-2: #03aeea;
    --brand-soft: #eaf3ff;
    --good: #16995a;
    --good-soft: #e9f8f0;
    --warning: #e79520;
    --warning-soft: #fff5e6;
    --critical: #db3c49;
    --critical-soft: #fff0f2;
    --shadow: 0 12px 34px rgba(28, 52, 91, .07);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1425;
    --surface: #121e34;
    --surface-alt: #192844;
    --text: #eef5ff;
    --muted: #a8b5ca;
    --line: #283b5c;
    --brand: #5b96ff;
    --brand-2: #35c9fa;
    --brand-soft: #132d59;
    --good-soft: #143c30;
    --warning-soft: #493116;
    --critical-soft: #4b1f2b;
    --shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.portal-shell { display: flex; min-height: 100vh; }
.sidebar { width: 244px; flex: 0 0 244px; display: flex; flex-direction: column; padding: 24px 14px 16px; border-right: 1px solid var(--line); background: var(--surface); transition: width .2s ease, flex-basis .2s ease; }
.brand { display: grid; height: 116px; place-items: center; margin-bottom: 18px; overflow: hidden; }
.brand img { width: 158px; max-height: 100px; object-fit: contain; }
.sidebar-nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; height: 48px; padding: 0 13px; border-radius: 11px; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.nav-item:hover, .nav-item.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-icon { width: 20px; font-size: 22px; line-height: 1; text-align: center; }
.sidebar-collapse { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 42px; margin-top: auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.sidebar-collapse:hover { color: var(--brand); border-color: var(--brand); }
.content { min-width: 0; flex: 1; padding-bottom: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 clamp(20px, 4vw, 52px); border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.breadcrumb strong { color: var(--text); font-size: 14px; }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 16px; }
.icon-button, .mobile-menu { border: 0; color: var(--text); background: transparent; cursor: pointer; }
.notification-button { position: relative; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; }
.notification-button:hover { background: var(--surface-alt); }
.notification-button b { position: absolute; top: 2px; right: 1px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #fff; background: var(--critical); font-size: 10px; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; color: var(--text); background: transparent; cursor: pointer; font-weight: 650; }
.avatar { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 12px; font-weight: 800; }
.profile-menu { position: absolute; z-index: 5; top: 50px; right: 0; width: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.profile-menu a, .profile-menu button { display: block; width: 100%; padding: 9px; border: 0; border-radius: 7px; color: var(--text); background: transparent; text-align: left; cursor: pointer; font-size: 14px; }
.profile-menu a:hover, .profile-menu button:hover { background: var(--surface-alt); }
.mobile-menu { display: none; font-size: 22px; }
.page-header, .toolbar, .portal-grid { max-width: 1540px; margin-right: auto; margin-left: auto; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 34px clamp(20px, 4vw, 52px) 20px; }
.edit-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1436px; margin: 0 auto 18px; padding: 12px 14px 12px 17px; border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line)); border-radius: 12px; color: var(--text); background: var(--brand-soft); }.edit-bar p { margin: 0; font-size: 13px; }.edit-bar div { display: flex; gap: 9px; }.button-secondary { color: var(--brand); border: 1px solid var(--brand); background: var(--surface); }
.eyebrow { margin: 0 0 5px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 8px; font-size: clamp(27px, 3vw, 36px); line-height: 1.1; letter-spacing: -.04em; } h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; } .page-summary { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 750; cursor: pointer; }
.button-primary { color: #fff; background: linear-gradient(110deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 18px rgba(18, 63, 169, .2); }
.button-primary:hover { filter: brightness(1.06); }
.toolbar { display: flex; align-items: end; gap: 12px; padding: 0 clamp(20px, 4vw, 52px) 22px; }
.select-control { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.select-control select { min-width: 163px; height: 38px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); font-size: 13px; }
.live-status { margin: 0 0 9px auto; color: var(--muted); font-size: 12px; } .live-status i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.portal-grid { display: grid; grid-template-columns: minmax(210px, .78fr) minmax(480px, 2fr) minmax(250px, .9fr); gap: 18px; padding: 0 clamp(20px, 4vw, 52px); }
.portal-shell.is-editing .widget, .portal-shell.is-editing .groups-card { outline: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; }.portal-shell.is-editing .widget { cursor: grab; }.portal-shell.is-editing .widget:hover { transform: translateY(-1px); }
.groups-card, .widget, .plan-notice { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.groups-card { min-height: 630px; padding: 19px; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }.text-button { padding: 3px; border: 0; color: var(--brand); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }.text-button:hover { text-decoration: underline; }
.search-box { display: flex; align-items: center; gap: 8px; height: 39px; margin: 17px 0 15px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.location-tree, .location-tree ul, .event-list { margin: 0; padding: 0; list-style: none; }.location-tree > li { margin-bottom: 6px; }.tree-row { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; width: 100%; gap: 5px; padding: 8px 3px; border: 0; border-radius: 7px; color: var(--text); background: transparent; text-align: left; cursor: pointer; font-size: 13px; }.tree-row:hover { background: var(--surface-alt); }.tree-row small { color: var(--muted); font-size: 11px; }.tree-toggle { color: var(--brand); font-size: 16px; }.location-tree ul { display: grid; gap: 4px; margin: 0 0 4px 18px; padding-left: 11px; border-left: 1px solid var(--line); }.location-tree ul a { display: flex; align-items: center; gap: 8px; padding: 7px 2px; color: var(--muted); border-radius: 6px; font-size: 12px; }.location-tree ul a:hover { color: var(--brand); }.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }.is-good { background: var(--good); }.is-warning { background: var(--warning); }.is-muted { background: var(--muted); }
.dashboard, .events-column { display: grid; align-content: start; gap: 18px; }.widget { padding: 19px; }.widget-row { display: grid; gap: 18px; }.widget-row-summary { grid-template-columns: repeat(3, 1fr); }.metric-widget { display: flex; align-items: center; justify-content: space-between; min-height: 130px; }.metric-widget p, .metric-widget span { margin: 0; color: var(--muted); font-size: 12px; }.metric { display: block; margin: 7px 0 5px; font-size: 28px; letter-spacing: -.05em; }.metric-alert { color: var(--critical); }.metric-good { color: var(--good); }.metric-date { font-size: 16px; letter-spacing: -.02em; }.metric-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; font-size: 21px; font-weight: 800; }.metric-icon.is-alert { color: var(--critical); background: var(--critical-soft); }.metric-icon.is-good { color: var(--good); background: var(--good-soft); }.metric-icon.is-brand { color: var(--brand); background: var(--brand-soft); }
.chart-widget { min-height: 294px; }.widget-menu { padding: 0 4px; border: 0; color: var(--muted); background: transparent; letter-spacing: 2px; cursor: pointer; }.chart-legend { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 12px; }.chart-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); }.legend-line { width: 19px; height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }.chart-legend strong { font-size: 17px; }.line-chart { height: 169px; margin-top: 7px; }.line-chart svg { width: 100%; height: 100%; overflow: visible; }.grid-line { stroke: var(--line); stroke-width: 1; }.chart-area { fill: var(--brand-2); opacity: .12; }.chart-line { fill: none; stroke: var(--brand-2); stroke-width: 3.5; stroke-linecap: round; }.line-chart circle { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.comparison-widget { min-height: 190px; }.status-bars { display: grid; gap: 14px; margin-top: 22px; }.status-bars div { display: grid; grid-template-columns: 80px 1fr 17px; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }.status-bars i { display: block; height: 9px; overflow: hidden; border-radius: 50px; background: var(--surface-alt); }.status-bars b { display: block; height: 100%; border-radius: 50px; }.bar-good { background: var(--good); }.bar-warning { background: var(--warning); }.bar-muted { background: var(--muted); }.status-bars strong { color: var(--text); text-align: right; }
.events-widget { min-height: 350px; }.event-list { display: grid; gap: 17px; margin-top: 22px; }.event-list li { display: flex; gap: 10px; }.event-list strong, .event-list span { display: block; }.event-list strong { margin-bottom: 4px; font-size: 12px; }.event-list span { color: var(--muted); font-size: 11px; }.event-icon { display: grid; flex: 0 0 23px; height: 23px; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 900; }.event-icon.is-critical { color: var(--critical); background: var(--critical-soft); }.event-icon.is-warning { color: var(--warning); background: var(--warning-soft); }.event-icon.is-info { color: var(--brand); background: var(--brand-soft); }.plan-notice { display: flex; gap: 11px; padding: 16px; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }.plan-notice > span { color: var(--brand-2); font-size: 20px; }.plan-notice strong { font-size: 13px; }.plan-notice p { margin: 5px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }.plan-notice a { color: var(--brand); font-size: 12px; font-weight: 750; }
.bottom-nav { display: none; }.toast { position: fixed; z-index: 8; bottom: 28px; left: 50%; max-width: calc(100vw - 40px); padding: 12px 15px; border-radius: 9px; color: #fff; background: #17233d; box-shadow: var(--shadow); font-size: 13px; transform: translateX(-50%); }
.critical-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5, 14, 31, .62); }.critical-modal[hidden] { display: none; }.critical-modal > div { width: min(440px, 100%); padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 25px 60px rgba(0, 0, 0, .28); }.critical-modal h2 { margin: 0 0 7px; font-size: 21px; }.critical-modal p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }.critical-modal-actions { display: flex; justify-content: end; gap: 9px; margin-top: 24px; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 10%, var(--brand-soft), transparent 35%), var(--bg); }.login-shell { display: grid; width: min(980px, 100%); grid-template-columns: 1fr minmax(330px, 420px); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }.login-brand { display: grid; align-content: center; gap: 24px; min-height: 550px; padding: 56px; background: linear-gradient(145deg, var(--surface), var(--brand-soft)); }.login-brand img { width: min(270px, 100%); }.login-brand p { max-width: 270px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }.login-card { align-self: center; padding: 50px; }.login-card h1 { margin-bottom: 10px; }.login-description { margin-bottom: 29px; color: var(--muted); font-size: 14px; line-height: 1.55; }.login-card form { display: grid; gap: 17px; }.login-card label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }.login-card input { height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: var(--surface); }.login-card input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }.login-card .button { width: 100%; margin-top: 4px; }.login-links { display: flex; justify-content: space-between; gap: 14px; margin-top: 22px; }.login-links a { color: var(--brand); font-size: 12px; font-weight: 700; }.login-error { margin: 0 0 18px; padding: 10px; border-radius: 8px; color: var(--critical); background: var(--critical-soft); font-size: 12px; line-height: 1.4; }
.account-shell { width: min(1040px, 100%); min-height: 100vh; margin: auto; padding: 26px 32px 50px; }.account-topbar { display: flex; align-items: center; justify-content: space-between; height: 70px; }.account-brand img { width: 110px; height: 60px; object-fit: contain; }.account-heading { display: flex; align-items: center; gap: 16px; margin: 42px 0 30px; }.account-avatar { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 23px; font-weight: 800; }.account-heading h1 { margin: 0 0 5px; }.account-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.account-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }.account-card:last-child { grid-column: span 2; }.account-copy { color: var(--muted); font-size: 13px; line-height: 1.55; }.theme-choices { display: flex; flex-wrap: wrap; gap: 8px; }.theme-choices button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 700; }.theme-choices button:hover, .theme-choices button.is-selected { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }.session-list { display: grid; gap: 12px; margin: 17px 0 0; padding: 0; list-style: none; }.session-list li { display: flex; gap: 10px; }.session-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--brand); background: var(--brand-soft); }.session-list strong, .session-list span { display: block; }.session-list strong { font-size: 13px; }.session-list span { margin-top: 3px; color: var(--muted); font-size: 11px; }.account-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }.logout-form { margin-top: 28px; text-align: center; }
.alerts-heading { margin: 42px 0 22px; }.alerts-heading h1 { margin-bottom: 8px; }.alerts-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }.alerts-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }.alerts-filter a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 700; }.alerts-filter a:hover { color: var(--brand); border-color: var(--brand); }.alerts-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }.alert-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }.alert-row:last-child { border-bottom: 0; }.alert-row:hover { background: var(--surface-alt); }.alert-row strong, .alert-row span { display: block; }.alert-row strong { margin-bottom: 4px; font-size: 13px; }.alert-row span { color: var(--muted); font-size: 11px; }.alert-row small { padding: 4px 7px; border-radius: 99px; background: var(--surface-alt); color: var(--muted); font-size: 10px; text-transform: uppercase; }.empty-state { display: grid; place-items: center; min-height: 300px; padding: 30px; color: var(--muted); text-align: center; }.empty-state span { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 11px; border-radius: 50%; color: var(--good); background: var(--good-soft); font-size: 21px; font-weight: 900; }.empty-state h2 { color: var(--text); }.empty-state p { margin: 6px 0 0; font-size: 13px; }
.locations-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 42px 0 22px; }.locations-heading h1 { margin-bottom: 8px; }.locations-heading p:last-child { margin: 0; color: var(--muted); font-size: 14px; }.locations-heading button:disabled { cursor: not-allowed; opacity: .55; }.locations-search { display: flex; gap: 10px; margin-bottom: 17px; }.locations-search input { flex: 1; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: var(--surface); }.locations-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }.location-row { display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }.location-row:last-child { border-bottom: 0; }.location-row:hover { background: var(--surface-alt); }.location-row strong, .location-row span, .location-row small { display: block; }.location-row strong { margin-bottom: 4px; font-size: 14px; }.location-row > div > span { color: var(--muted); font-size: 12px; }.location-row-meta { text-align: right; }.location-state { color: var(--brand) !important; font-size: 12px !important; font-weight: 750; }.location-row-meta small { margin-top: 4px; color: var(--muted); font-size: 11px; }.location-row > b { color: var(--brand); font-size: 24px; }
.location-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 42px 0 22px; }.location-detail-heading h1 { margin-bottom: 8px; }.location-detail-heading p:last-child { margin: 0; color: var(--muted); font-size: 14px; }.location-detail-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }.location-detail-actions .button:disabled { cursor: not-allowed; opacity: .6; }.location-empty-panel { display: grid; min-height: 390px; place-items: center; align-content: center; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }.location-empty-panel > span { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 12px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); font-size: 25px; }.location-empty-panel h2 { margin-bottom: 7px; }.location-empty-panel p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; }.location-empty-panel small { max-width: 430px; margin-top: 17px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.plan-heading { margin: 42px 0 22px; }.plan-heading h1 { margin-bottom: 8px; }.plan-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }.plan-card { width: min(580px, 100%); padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }.plan-card h2 { margin-bottom: 18px; font-size: 22px; }.plan-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }.plan-card dl div { padding: 11px; border-radius: 9px; background: var(--surface-alt); }.plan-card dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }.plan-card dd { margin: 0; font-size: 13px; font-weight: 750; }.plan-card-note { margin: 20px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }.plan-empty { display: grid; justify-items: start; }.plan-empty > span { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 14px; border-radius: 12px; color: var(--brand); background: var(--brand-soft); font-size: 23px; }.plan-empty p:not(.eyebrow) { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }.plan-card .button:disabled { cursor: not-allowed; opacity: .6; }
.location-form-wrap { width: min(570px, 100%); margin-top: 42px; }.location-form-wrap h1 { margin-bottom: 8px; }.location-form-wrap > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); font-size: 14px; }.location-form { display: grid; gap: 17px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }.location-form label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }.location-form label small { color: var(--muted); font-size: 11px; font-weight: 500; }.location-form input, .location-form select { height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: var(--surface); }.location-form input:focus, .location-form select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }.location-form-actions { display: flex; justify-content: end; gap: 10px; margin-top: 5px; }
.locations-heading-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; }
.group-management-section { margin-top: 28px; }.group-management-section h2 { margin-bottom: 12px; }.group-management-list { display: grid; gap: 7px; margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); color: var(--text); font-size: 13px; }.muted-copy { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }.inline-form input { flex: 1 1 190px; min-width: 0; }.danger-button { color: #d85757; }.location-equipment > .account-card { margin-top: 14px; }
.equipment-state { display: inline-flex; align-items: center; margin: 12px 0 0; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }.equipment-state.is-active { color: #18794e; background: #e5f6ec; }.equipment-state.is-maintenance { color: #9a5a00; background: #fff1d6; }
.widget-choices { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }.widget-choice { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.telemetry-widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0; }.telemetry-widget { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }.telemetry-widget p { margin: 0; color: var(--muted); font-size: 13px; }.telemetry-widget strong { display: block; margin: 10px 0 7px; font-size: 28px; color: var(--text); }.telemetry-widget span { color: var(--muted); font-size: 12px; }
.group-membership-list { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); list-style: none; }.group-membership-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }.group-membership-list li:last-child { border-bottom: 0; }.group-membership-list strong, .group-membership-list small { display: block; }.group-membership-list strong { font-size: 13px; }.group-membership-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.tree-empty { padding: 10px 2px; color: var(--muted); font-size: 12px; }.tree-empty a { display: inline; padding: 0; color: var(--brand); }.dashboard-empty-widget { display: flex; align-items: center; gap: 18px; min-height: 235px; }.dashboard-empty-widget > span { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 14px; color: var(--brand); background: var(--brand-soft); font-size: 25px; }.dashboard-empty-widget p:not(.eyebrow) { max-width: 500px; margin: 8px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 1180px) { .portal-grid { grid-template-columns: minmax(205px, .8fr) minmax(440px, 2fr); }.events-column { grid-column: 2; grid-template-columns: 1fr 1fr; }.events-widget { min-height: 230px; } }
@media (max-width: 900px) { .sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 264px; transform: translateX(-104%); box-shadow: var(--shadow); }.sidebar.is-open { transform: translateX(0); }.mobile-menu { display: block; }.breadcrumb { margin-right: auto; margin-left: 12px; }.profile-name { display: none; }.portal-grid { grid-template-columns: 1fr; }.groups-card { min-height: auto; }.events-column { grid-column: auto; grid-template-columns: 1fr 1fr; }.location-tree { max-height: 245px; overflow: auto; }.bottom-nav { position: fixed; z-index: 7; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; height: 65px; padding: 6px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface); }.bottom-nav a { display: grid; place-items: center; gap: 2px; min-width: 56px; color: var(--muted); font-size: 10px; font-weight: 650; }.bottom-nav a span { font-size: 20px; }.bottom-nav a.is-active { color: var(--brand); }.content { padding-bottom: 76px; } }
@media (max-width: 620px) { .topbar { height: 62px; padding: 0 16px; }.page-header { display: grid; gap: 16px; padding: 25px 16px 16px; }.page-header .button { width: 100%; }.toolbar { display: grid; grid-template-columns: 1fr 1fr; padding: 0 16px 16px; }.select-control select { min-width: 0; width: 100%; }.live-status { grid-column: span 2; margin: 4px 0 0; }.portal-grid { gap: 14px; padding: 0 16px; }.widget-row-summary { grid-template-columns: 1fr 1fr; gap: 14px; }.widget-row-summary .metric-widget:last-child { grid-column: span 2; }.metric-widget { min-height: 108px; }.widget, .groups-card { padding: 15px; }.events-column { grid-template-columns: 1fr; gap: 14px; }.chart-widget { min-height: 270px; }.sidebar { padding-top: 14px; }.brand { height: 90px; }.bottom-nav { height: 62px; } }
@media (max-width: 720px) { .login-page { padding: 16px; }.login-shell { grid-template-columns: 1fr; }.login-brand { min-height: 180px; padding: 32px; }.login-brand img { width: 190px; }.login-card { padding: 32px 24px; } }
@media (max-width: 620px) { .account-shell { padding: 18px 16px 34px; }.account-heading { margin: 30px 0 22px; }.account-grid { grid-template-columns: 1fr; }.account-card:last-child { grid-column: auto; } }
@media (max-width: 620px) { .locations-heading { align-items: start; flex-direction: column; margin-top: 30px; }.locations-heading .button { width: 100%; }.location-row { grid-template-columns: 1fr 16px; gap: 10px; }.location-row-meta { grid-row: 2; text-align: left; }.location-row > b { grid-column: 2; grid-row: 1 / span 2; } }
@media (max-width: 620px) { .location-detail-heading { align-items: start; flex-direction: column; margin-top: 30px; }.location-detail-actions { justify-content: start; }.location-empty-panel { min-height: 330px; } }
@media (max-width: 620px) { .plan-heading { margin-top: 30px; }.plan-card dl { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .location-form-wrap { margin-top: 30px; }.location-form-actions { flex-direction: column-reverse; }.location-form-actions .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }
