:root {
    --bg: #07101b;
    --bg-deep: #050b13;
    --sidebar: #09131f;
    --panel: #0d1926;
    --panel-2: #101f2f;
    --line: #1c2c3d;
    --line-soft: rgba(132, 160, 187, .13);
    --text: #edf6ff;
    --muted: #7f94a9;
    --muted-2: #566b7e;
    --blue: #31a7ff;
    --cyan: #35e4cb;
    --green: #35d991;
    --amber: #ffb94a;
    --red: #ff6575;
    --purple: #9e8cff;
    --shadow: 0 18px 50px rgba(0, 0, 0, .22);
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 83% 0, rgba(20, 111, 185, .12), transparent 30rem),
        var(--bg);
    font-size: 14px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    padding: 2px 6px;
    border: 1px solid rgba(80, 132, 174, .22);
    border-radius: 5px;
    color: #aad8fb;
    background: rgba(28, 83, 124, .18);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .88em;
}

.app-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 25px 17px 20px;
    border-right: 1px solid #142536;
    background:
        linear-gradient(180deg, rgba(11, 28, 43, .93), rgba(7, 16, 26, .98)),
        var(--sidebar);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 27px;
}

.brand strong {
    display: block;
    max-width: 145px;
    overflow: hidden;
    font-size: 18px;
    letter-spacing: -.3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: #5d7d96;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.35px;
}

.brand-mark {
    position: relative;
    display: grid;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(49, 167, 255, .4);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(41, 147, 229, .2), rgba(15, 39, 59, .3));
    box-shadow: inset 0 0 18px rgba(49, 167, 255, .08), 0 0 20px rgba(49, 167, 255, .08);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span,
.brand-mark i {
    position: absolute;
    content: "";
    background: var(--blue);
    box-shadow: 0 0 7px rgba(49, 167, 255, .8);
}

.brand-mark::before {
    left: 5px;
    width: 6px;
    height: 2px;
}

.brand-mark::after {
    right: 5px;
    width: 6px;
    height: 2px;
}

.brand-mark span {
    left: 10px;
    width: 6px;
    height: 2px;
    transform: rotate(-55deg);
}

.brand-mark i {
    right: 10px;
    width: 6px;
    height: 2px;
    transform: rotate(55deg);
}

.brand-mark--large {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 15px;
}

.sidebar-company-logo {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    padding: 2px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.nav {
    display: grid;
    gap: 5px;
}

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #7890a5;
    font-size: 13px;
    font-weight: 620;
    transition: .18s ease;
}

.nav-section {
    margin: 18px 14px 7px;
    color: #718096;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.nav a:hover {
    color: #cce5f7;
    background: rgba(37, 82, 116, .12);
}

.nav a.active {
    border-color: rgba(48, 164, 249, .18);
    color: #f1f8ff;
    background: linear-gradient(90deg, rgba(31, 132, 207, .2), rgba(26, 68, 98, .08));
    box-shadow: inset 2px 0 0 var(--blue);
}

.nav a span {
    width: 20px;
    color: #6c879b;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.nav a.active span {
    color: var(--blue);
    text-shadow: 0 0 12px rgba(49, 167, 255, .7);
}

.nav a b {
    min-width: 20px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 10px;
    color: #ffd5da;
    background: rgba(255, 101, 117, .18);
    font-size: 10px;
    text-align: center;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 15px 12px;
    border: 1px solid rgba(65, 106, 139, .2);
    border-radius: 9px;
    background: rgba(12, 32, 48, .55);
}

.sidebar-status strong,
.sidebar-status small {
    display: block;
}

.sidebar-status strong {
    font-size: 11px;
}

.sidebar-status small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 9px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(53, 217, 145, .08), 0 0 13px rgba(53, 217, 145, .55);
    animation: pulse 2.2s infinite;
}

.live-dot--idle {
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(255, 185, 74, .08), 0 0 13px rgba(255, 185, 74, .4);
    animation: none;
}

.nav-group-label {
    margin: 14px 14px 5px;
    color: #536d82;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.pagination a {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    text-decoration: none;
}

.report-update-form {
    display: grid;
    min-width: 260px;
    grid-template-columns: 95px minmax(150px, 1fr) auto;
    gap: 7px;
}

.report-update-form select,
.report-update-form input {
    min-width: 0;
}

@keyframes pulse {
    50% { box-shadow: 0 0 0 7px rgba(53, 217, 145, 0), 0 0 13px rgba(53, 217, 145, .35); }
}

.logout-form {
    margin: 9px 0 0;
}

.logout-form button {
    width: 100%;
    padding: 8px;
    border: 0;
    color: #5f7689;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
}

.logout-form button:hover {
    color: #b9ccdb;
}

.main {
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 15px clamp(20px, 3vw, 38px);
    border-bottom: 1px solid #142536;
    background: rgba(7, 16, 27, .76);
    backdrop-filter: blur(16px);
}

.page-heading p,
.page-heading h1 {
    margin: 0;
}

.page-heading p {
    margin-bottom: 4px;
    color: #597086;
    font-size: 10px;
}

.page-heading h1 {
    font-size: 21px;
    font-weight: 670;
    letter-spacing: -.35px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.last-check {
    text-align: right;
}

.last-check span,
.last-check strong {
    display: block;
}

.last-check span {
    color: #536d83;
    font-size: 9px;
}

.last-check strong {
    margin-top: 2px;
    color: #a6bacb;
    font-size: 11px;
    font-weight: 600;
}

.menu-button {
    display: none !important;
    margin-right: 12px;
}

.content {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 25px clamp(20px, 3vw, 38px) 50px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #dfeefa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 670;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    border-color: #248cd6;
    background: linear-gradient(180deg, #168ddd, #1170b2);
    box-shadow: 0 8px 20px rgba(16, 116, 181, .18), inset 0 1px rgba(255, 255, 255, .16);
}

.button--primary:hover {
    background: linear-gradient(180deg, #2b9eea, #177ec4);
}

.button--secondary {
    border-color: #253c4f;
    background: #112233;
}

.button--secondary:hover {
    border-color: #365c79;
    background: #142a3e;
}

.button--danger {
    border-color: rgba(255, 101, 117, .24);
    color: #ff9da7;
    background: rgba(255, 101, 117, .08);
}

.button--small {
    min-height: 32px;
    padding: 0 11px;
    font-size: 10px;
}

.button--full {
    width: 100%;
}

.button-pulse {
    width: 7px;
    height: 7px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-card,
.panel,
.entity-card,
.incident-summary article {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(16, 34, 50, .93), rgba(10, 23, 36, .94));
    box-shadow: inset 0 1px rgba(255, 255, 255, .015), var(--shadow);
}

.metric-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 112px;
    padding: 20px;
    overflow: hidden;
    border-radius: 11px;
}

.metric-card::after {
    position: absolute;
    right: -35px;
    bottom: -55px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle, rgba(49, 167, 255, .07), transparent 68%);
}

.metric-icon {
    display: grid;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    margin-right: 14px;
    place-items: center;
    border: 1px solid rgba(49, 167, 255, .22);
    border-radius: 9px;
    color: var(--blue);
    background: rgba(49, 167, 255, .08);
    font-size: 15px;
    font-weight: 800;
}

.metric-icon--green { color: var(--green); border-color: rgba(53, 217, 145, .2); background: rgba(53, 217, 145, .07); }
.metric-icon--amber { color: var(--amber); border-color: rgba(255, 185, 74, .2); background: rgba(255, 185, 74, .07); }
.metric-icon--red { color: var(--red); border-color: rgba(255, 101, 117, .2); background: rgba(255, 101, 117, .07); }

.metric-card > div:nth-child(2) span,
.metric-card > div:nth-child(2) strong,
.metric-card > div:nth-child(2) em {
    display: block;
}

.metric-card > div:nth-child(2) span {
    margin-bottom: 4px;
    color: #71879a;
    font-size: 10px;
}

.metric-card > div:nth-child(2) strong {
    font-size: 26px;
    font-weight: 680;
    letter-spacing: -.8px;
}

.metric-card > div:nth-child(2) strong small {
    margin-left: 3px;
    color: #526b80;
    font-size: 11px;
    font-weight: 600;
}

.metric-card > div:nth-child(2) em {
    margin-top: 4px;
    color: var(--blue);
    font-size: 9px;
    font-style: normal;
}

.metric-card em.green,
.green { color: var(--green) !important; }
.metric-card em.amber,
.amber,
.text-amber { color: var(--amber) !important; }
.metric-card em.red,
.red { color: var(--red) !important; }

.score-ring {
    --score: 0;
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin-left: auto;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--blue) calc(var(--score) * 1%), #162a3b 0);
}

.score-ring::before {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    content: "";
    background: #0e1c29;
}

.score-ring b {
    position: relative;
    z-index: 1;
    color: #cdeaff;
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(290px, .75fr);
    gap: 14px;
    margin-top: 14px;
}

.panel {
    min-width: 0;
    border-radius: 11px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 65px;
    padding: 15px 19px;
    border-bottom: 1px solid var(--line-soft);
}

.panel-header h2 {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 660;
}

.panel-kicker,
.eyebrow {
    color: #496980;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.35px;
}

.panel-header select {
    width: auto;
    min-width: 150px;
    height: 32px;
    padding: 0 30px 0 10px;
    border-color: #223a4f;
    color: #a8bed0;
    background-color: #0c1b29;
    font-size: 10px;
}

.panel-link {
    color: #5daee7;
    font-size: 10px;
    font-weight: 650;
}

.panel-link:hover {
    color: #9bd4fc;
}

.chart-wrap {
    position: relative;
    height: 238px;
    padding: 10px 15px 0;
}

.chart-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.chart-tooltip {
    position: absolute;
    z-index: 2;
    min-width: 130px;
    padding: 9px 10px;
    border: 1px solid #2b4b65;
    border-radius: 7px;
    color: #bdd4e6;
    background: rgba(7, 18, 28, .96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    pointer-events: none;
    font-size: 9px;
    line-height: 1.6;
}

.chart-legend {
    display: flex;
    gap: 18px;
    padding: 5px 19px 14px;
    color: #5d7386;
    font-size: 9px;
}

.chart-legend span::before {
    display: inline-block;
    width: 17px;
    height: 2px;
    margin: 0 7px 3px 0;
    content: "";
    background: currentColor;
}

.chart-legend .latency { color: var(--blue); }
.chart-legend .loss { color: var(--red); }
.chart-legend .jitter { color: var(--purple); }

.insight-panel {
    display: flex;
    flex-direction: column;
}

.health-orb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(53, 217, 145, .55);
}

.health-orb.danger {
    background: var(--red);
    box-shadow: 0 0 12px rgba(255, 101, 117, .55);
}

.insight-good {
    display: grid;
    min-height: 196px;
    padding: 25px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.insight-good > div {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    place-items: center;
    border: 1px solid rgba(53, 217, 145, .2);
    border-radius: 50%;
    color: var(--green);
    background: rgba(53, 217, 145, .07);
}

.insight-good h3,
.insight-good p {
    margin: 0;
}

.insight-good h3 {
    font-size: 12px;
}

.insight-good p {
    max-width: 270px;
    margin-top: 7px;
    color: #667f92;
    font-size: 10px;
    line-height: 1.5;
}

.insight-list {
    display: grid;
    gap: 0;
    padding: 4px 18px;
}

.insight-item {
    display: flex;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}

.insight-item strong {
    display: block;
    font-size: 10px;
}

.insight-item p {
    margin: 4px 0 0;
    color: #6d8396;
    font-size: 9px;
    line-height: 1.45;
}

.insight-panel > .panel-link {
    margin: auto 19px 16px;
}

.status-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 3px;
    border-radius: 50%;
}

.status-dot--warning { background: var(--amber); }
.status-dot--critical,
.status-dot--down { background: var(--red); }

.destination-panel {
    margin-top: 14px;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th {
    padding: 10px 18px;
    color: #526b80;
    background: rgba(7, 18, 29, .36);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 13px 18px;
    border-top: 1px solid var(--line-soft);
    color: #9eb1c0;
    font-size: 10px;
}

tbody tr:hover {
    background: rgba(41, 111, 161, .035);
}

td strong {
    color: #e1edf6;
    font-size: 10px;
}

td small.block,
.block {
    display: block;
    margin-top: 4px;
    color: #5f7588;
    font-size: 9px;
}

.target-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.target-cell strong,
.target-cell small {
    display: block;
}

.target-cell small {
    margin-top: 3px;
    color: #536c80;
    font-size: 9px;
}

.target-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #24445c;
    border-radius: 7px;
    color: #53b9ff;
    background: rgba(27, 104, 159, .09);
    font-size: 10px;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid;
    border-radius: 5px;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .5px;
}

.status-badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
}

.status-badge--up {
    border-color: rgba(53, 217, 145, .2);
    color: var(--green);
    background: rgba(53, 217, 145, .065);
}

.status-badge--warning {
    border-color: rgba(255, 185, 74, .2);
    color: var(--amber);
    background: rgba(255, 185, 74, .065);
}

.status-badge--critical,
.status-badge--down {
    border-color: rgba(255, 101, 117, .2);
    color: var(--red);
    background: rgba(255, 101, 117, .065);
}

.status-badge--unknown,
.status-badge--closed {
    border-color: rgba(125, 149, 168, .18);
    color: #7890a4;
    background: rgba(125, 149, 168, .06);
}

.range {
    display: block;
    margin-top: 3px;
    color: #51697d;
    font-size: 8px;
}

.quality-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.quality-cell > span {
    display: block;
    width: 52px;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: #1d3040;
}

.quality-cell > span i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #327db2, var(--blue));
}

.demo-label {
    display: block;
    margin-top: 3px;
    color: #6c60a7;
    font-size: 7px;
    font-weight: 800;
}

.lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.router-list {
    padding: 0 18px;
}

.router-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
}

.router-row:last-child {
    border-bottom: 0;
}

.router-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #2d5572;
    border-radius: 8px;
    color: #6fc4ff;
    background: rgba(38, 114, 166, .1);
    font-size: 9px;
    font-weight: 850;
}

.router-main {
    min-width: 0;
    margin-right: auto;
}

.router-main strong,
.router-main small {
    display: block;
}

.router-main strong {
    font-size: 10px;
}

.router-main small {
    max-width: 220px;
    margin-top: 4px;
    overflow: hidden;
    color: #5f7689;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource {
    min-width: 42px;
    text-align: right;
}

.resource span,
.resource strong {
    display: block;
}

.resource span {
    color: #4f677b;
    font-size: 7px;
}

.resource strong {
    margin-top: 3px;
    font-size: 10px;
}

.bandwidth-list {
    padding: 2px 18px 8px;
}

.bandwidth-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.bandwidth-row:last-child {
    border-bottom: 0;
}

.bandwidth-row strong,
.bandwidth-row small {
    display: block;
}

.bandwidth-row strong {
    font-size: 10px;
}

.bandwidth-row small {
    margin-top: 3px;
    color: #5d7487;
    font-size: 8px;
}

.speed {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #83acc8;
    font-size: 8px;
}

.speed span:last-child {
    color: #9b8de1;
}

.util-bar {
    grid-column: 1 / -1;
    height: 3px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: #192e40;
}

.util-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #278bcf, #31c7d5);
}

.compact-empty {
    padding: 36px 20px;
    color: #70869a;
    text-align: center;
}

.compact-empty p {
    margin: 0 0 8px;
    font-size: 11px;
}

.compact-empty a,
.compact-empty button {
    color: #59b6f4;
}

.notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(49, 167, 255, .18);
    border-radius: 8px;
    color: #9ecce9;
    background: rgba(49, 167, 255, .06);
    font-size: 11px;
}

.notice--success {
    border-color: rgba(53, 217, 145, .2);
    color: #9be9c8;
    background: rgba(53, 217, 145, .07);
}

.notice--warning {
    border-color: rgba(255, 185, 74, .21);
    color: #e6c181;
    background: rgba(255, 185, 74, .07);
}

.notice--danger {
    border-color: rgba(255, 101, 117, .22);
    color: #ffadb6;
    background: rgba(255, 101, 117, .07);
}

.empty-state {
    display: grid;
    min-height: 480px;
    padding: 40px;
    place-items: center;
    align-content: center;
    border: 1px dashed #25415a;
    border-radius: 13px;
    background: radial-gradient(circle at center, rgba(31, 119, 179, .08), transparent 45%);
    text-align: center;
}

.empty-state--compact {
    min-height: 340px;
}

.empty-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    place-items: center;
    border: 1px solid #315879;
    border-radius: 15px;
    color: var(--blue);
    background: rgba(49, 167, 255, .07);
    font-size: 28px;
}

.empty-state h2 {
    margin: 0;
    font-size: 19px;
}

.empty-state p {
    max-width: 470px;
    margin: 9px 0 20px;
    color: #71889a;
    line-height: 1.6;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.page-actions h2,
.page-actions p {
    margin: 0;
}

.page-actions h2 {
    font-size: 17px;
}

.page-actions p {
    margin-top: 5px;
    color: #698095;
    font-size: 10px;
}

.live-monitor-note {
    min-height: 34px;
    margin: -9px 0 10px;
    padding: 9px 12px;
    border: 1px solid rgba(49, 167, 255, .14);
    border-radius: 7px;
    color: #6f8799;
    background: rgba(49, 167, 255, .04);
    font-size: 10px;
    line-height: 1.5;
}

.live-monitor-note--active {
    border-color: rgba(53, 217, 145, .2);
    color: #89dcb8;
    background: rgba(53, 217, 145, .055);
}

.live-monitor-note--warning {
    border-color: rgba(255, 185, 74, .22);
    color: #e1bd7b;
    background: rgba(255, 185, 74, .055);
}

.button--live {
    border-color: rgba(35, 209, 139, .45);
    color: #74e4b5;
    background: rgba(35, 209, 139, .08);
}

.is-loading {
    cursor: wait;
    opacity: .65;
}

.source-address {
    color: #58b8f4 !important;
    font-family: var(--mono);
}

.history-filter-panel {
    margin-bottom: 14px;
}

.history-filter {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) minmax(150px, .7fr) minmax(150px, .7fr) auto auto;
    align-items: end;
    gap: 12px;
    padding: 17px 19px;
}

.history-filter label {
    display: grid;
    gap: 7px;
    color: #8298aa;
    font-size: 9px;
    font-weight: 700;
}

.history-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 2px 14px;
    color: #698095;
}

.history-meta div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.history-meta strong {
    color: var(--text);
    font-size: 19px;
}

.history-meta span,
.history-meta p {
    margin: 0;
    font-size: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 14px;
}

.entity-card {
    padding: 19px;
    border-radius: 11px;
}

.entity-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entity-card h3 {
    margin: 16px 0 4px;
    font-size: 15px;
}

.entity-card > p {
    margin: 0;
    color: #60798d;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
}

.entity-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.entity-card dl div {
    min-width: 0;
}

.entity-card dt {
    margin-bottom: 4px;
    color: #526b80;
    font-size: 8px;
    text-transform: uppercase;
}

.entity-card dd {
    margin: 0;
    overflow: hidden;
    color: #c5d4df;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-error {
    margin: -8px 0 14px;
    padding: 9px;
    border-radius: 6px;
    color: #e9929c;
    background: rgba(255, 101, 117, .06);
    font-size: 9px;
    line-height: 1.45;
}

.entity-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.section-panel {
    margin-top: 14px;
}

.text-button {
    padding: 0;
    border: 0;
    color: #67b9ee;
    background: transparent;
    cursor: pointer;
    font-size: 9px;
}

.text-button--danger {
    color: #df7a86;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.type-chip {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 5px;
    color: #78b9e5;
    background: rgba(49, 167, 255, .07);
    font-size: 7px;
    font-weight: 800;
}

.incident-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.incident-summary article {
    padding: 18px;
    border-radius: 10px;
}

.incident-summary span,
.incident-summary strong {
    display: block;
}

.incident-summary span {
    color: #60788c;
    font-size: 9px;
}

.incident-summary strong {
    margin-top: 6px;
    font-size: 23px;
}

.incident-list {
    padding: 0 19px;
}

.incident-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 82px;
    padding: 16px 0 16px 13px;
    border-bottom: 1px solid var(--line-soft);
}

.incident-row:last-child {
    border-bottom: 0;
}

.incident-line {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 2px;
    border-radius: 2px;
    background: #6e8294;
}

.incident-line--critical,
.incident-line--down {
    background: var(--red);
    box-shadow: 0 0 8px rgba(255, 101, 117, .4);
}

.incident-main {
    min-width: 0;
    margin-right: auto;
}

.incident-main > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.incident-main strong {
    font-size: 11px;
}

.incident-main p {
    margin: 7px 0 0;
    color: #6c8295;
    font-size: 9px;
}

.incident-meta {
    flex: 0 0 150px;
    text-align: right;
}

.incident-meta span,
.incident-meta small {
    display: block;
}

.incident-meta span {
    color: #94a8b8;
    font-size: 9px;
}

.incident-meta small {
    margin-top: 5px;
    color: #526a7f;
    font-size: 8px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.settings-card {
    padding-bottom: 19px;
}

.settings-card > p,
.settings-card > form,
.settings-card > .policy-list,
.settings-card > .checklist-grid,
.settings-card > .monitor-settings-layout,
.settings-card > .monitor-worker-error,
.settings-card > .cron-command {
    margin-right: 19px;
    margin-left: 19px;
}

.settings-card > p {
    color: #6b8296;
    font-size: 10px;
    line-height: 1.6;
}

.settings-card--wide {
    grid-column: 1 / -1;
}

.policy-list {
    display: grid;
    gap: 0;
}

.policy-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}

.policy-list span {
    color: #8297a8;
    font-size: 10px;
}

.policy-list strong {
    color: #54b5f3;
    font-size: 11px;
}

.settings-note {
    margin-top: 14px !important;
}

.worker-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: #8196a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.worker-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.worker-state--running {
    border-color: rgba(53, 217, 145, .24);
    color: #86dfb9;
    background: rgba(53, 217, 145, .055);
}

.worker-state--running i {
    background: var(--green);
    box-shadow: 0 0 8px rgba(53, 217, 145, .55);
}

.worker-state--stale {
    border-color: rgba(255, 185, 74, .24);
    color: #dfb973;
    background: rgba(255, 185, 74, .055);
}

.worker-state--stale i {
    background: var(--amber);
}

.monitor-settings-layout {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.2fr);
    gap: 18px;
    padding-top: 8px;
}

.monitor-interval-form {
    align-content: start;
    margin: 0 !important;
    padding: 15px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: rgba(8, 22, 34, .42);
}

.worker-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: var(--line-soft);
}

.worker-details > div {
    padding: 14px;
    background: rgba(8, 22, 34, .92);
}

.worker-details span,
.worker-details strong {
    display: block;
}

.worker-details span {
    color: #72899b;
    font-size: 9px;
}

.worker-details strong {
    margin-top: 6px;
    color: #c4d2dc;
    font-size: 11px;
}

.monitor-worker-error {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 101, 117, .2);
    border-radius: 8px;
    color: #ffb4bc;
    background: rgba(255, 101, 117, .055);
    font-size: 10px;
}

.cron-command {
    display: grid;
    gap: 10px;
    margin-top: 15px;
    padding: 14px;
    border: 1px solid rgba(49, 167, 255, .16);
    border-radius: 9px;
    background: rgba(49, 167, 255, .04);
}

.cron-command strong,
.cron-command span {
    display: block;
}

.cron-command strong {
    color: #b9cad7;
    font-size: 10px;
}

.cron-command span {
    margin-top: 5px;
    color: #6e8597;
    font-size: 9px;
    line-height: 1.55;
}

.cron-command code {
    display: block;
    overflow-x: auto;
    padding: 11px 12px;
    border-radius: 6px;
    color: #7ed9b0;
    background: #07131d;
    font-size: 9px;
    line-height: 1.55;
    white-space: nowrap;
}

.company-settings-form {
    padding-top: 5px;
}

.company-logo-field {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(8, 22, 34, .4);
}

.company-logo-field > img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 4px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.company-logo-field > label:not(.checkbox) {
    flex: 1;
}

.company-logo-field .checkbox {
    flex: 0 0 auto;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 18px;
}

.checklist-grid > div {
    display: flex;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(8, 22, 34, .4);
}

.checklist-grid b {
    color: #327fad;
    font-size: 9px;
}

.checklist-grid p {
    margin: 0;
    color: #657d90;
    font-size: 9px;
    line-height: 1.5;
}

.checklist-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #c7d8e4;
    font-size: 10px;
}

.dialog {
    width: min(650px, calc(100vw - 28px));
    max-height: calc(100vh - 30px);
    padding: 0;
    border: 0;
    border-radius: 13px;
    color: var(--text);
    background: transparent;
    overflow: visible;
}

.dialog::backdrop {
    background: rgba(2, 8, 13, .8);
    backdrop-filter: blur(5px);
}

.dialog-card {
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    border: 1px solid #29445a;
    border-radius: 13px;
    background: #0c1926;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.dialog-card--small {
    max-width: 520px;
    margin: auto;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 21px;
    border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
    margin: 3px 0 0;
    font-size: 16px;
}

.dialog-header button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    color: #72899c;
    background: #102335;
    cursor: pointer;
    font-size: 20px;
}

.dialog .form-grid {
    padding: 20px 21px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid label,
.stack label {
    display: grid;
    gap: 7px;
    color: #8298aa;
    font-size: 9px;
    font-weight: 700;
}

.form-grid label > small {
    color: #587084;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.45;
}

.form-grid .full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    height: 39px;
    padding: 0 11px;
    border: 1px solid #21394d;
    outline: 0;
    border-radius: 7px;
    color: #dce9f2;
    background: #091622;
    font-size: 11px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
    min-height: 90px;
    padding-top: 10px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #277db8;
    box-shadow: 0 0 0 3px rgba(49, 167, 255, .08);
}

.server-time {
    display: grid;
    min-width: 108px;
    padding-right: 18px;
    border-right: 1px solid var(--line);
    text-align: right;
}

.server-time span,
.server-time small {
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.server-time strong {
    margin: 2px 0;
    color: var(--cyan);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    letter-spacing: .5px;
}

input::placeholder {
    color: #3f5669;
}

.checkbox {
    display: flex !important;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 8px !important;
}

.checkbox input {
    width: 15px;
    height: 15px;
    accent-color: var(--blue);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 14px 21px;
    border-top: 1px solid var(--line);
    background: rgba(7, 17, 27, .5);
}

#routerSelectLabel,
#sourceAddressLabel {
    display: none;
}

#routerSelectLabel.visible,
#sourceAddressLabel.visible {
    display: grid;
}

.icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid #263d50;
    border-radius: 7px;
    color: #98adbd;
    background: #0c1b28;
    cursor: pointer;
}

.login-page {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
    background:
        linear-gradient(rgba(5, 11, 19, .7), rgba(5, 11, 19, .94)),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(58, 119, 163, .05) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(58, 119, 163, .05) 40px),
        radial-gradient(circle at center, #0d2940, #050b13 62%);
}

.login-card {
    width: min(400px, 100%);
    padding: 40px;
    border: 1px solid #213b50;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 34, 50, .96), rgba(8, 19, 30, .97));
    box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
    text-align: center;
}

.login-card h1 {
    margin: 6px 0 0;
    font-size: 28px;
    letter-spacing: -.8px;
}

.login-card h1 strong {
    color: var(--blue);
}

.login-copy {
    margin: 9px 0 25px;
    color: #698196;
    font-size: 11px;
}

.stack {
    display: grid;
    gap: 14px;
    text-align: left;
}

.login-hint {
    margin: 18px 0 0;
    color: #4f677a;
    font-size: 9px;
}

.login-company-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    padding: 5px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
}

.login-home-link {
    margin: 16px 0 0;
    color: #638ba8;
    font-size: 9px;
}

.login-home-link a:hover {
    color: #9bd4fc;
}

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .checklist-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-102%);
        width: 250px;
        box-shadow: 20px 0 50px rgba(0, 0, 0, .45);
        transition: transform .2s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .menu-button { display: grid !important; }
    .dashboard-grid,
    .lower-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-card--wide { grid-column: auto; }
    .monitor-settings-layout { grid-template-columns: 1fr; }
    .history-filter { grid-template-columns: 1fr 1fr; }
    .history-filter label:first-of-type { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .topbar { min-height: 72px; padding: 12px 15px; }
    .content { padding: 17px 15px 35px; }
    .page-heading p { display: none; }
    .page-heading h1 { font-size: 17px; }
    .last-check { display: none; }
    .server-time { min-width: 82px; padding-right: 8px; }
    .server-time small { display: none; }
    .topbar-actions { gap: 8px; }
    .topbar .button { min-height: 35px; padding: 0 11px; font-size: 10px; }
    .worker-details { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 98px; }
    .card-grid { grid-template-columns: 1fr; }
    .page-actions { align-items: flex-start; flex-direction: column; }
    .page-actions > .button,
    .page-actions > .button-row { width: 100%; }
    .page-actions .button-row .button { flex: 1; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .history-filter { grid-template-columns: 1fr; }
    .history-filter label:first-of-type { grid-column: auto; }
    .history-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .checklist-grid { grid-template-columns: 1fr; }
    .incident-summary { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .incident-summary article { padding: 13px; }
    .incident-row { align-items: flex-start; flex-direction: column; gap: 8px; padding-right: 6px; }
    .incident-meta { flex-basis: auto; text-align: left; }
    .incident-main > div { align-items: flex-start; flex-direction: column; gap: 6px; }
    .router-row .resource { display: none; }
    .chart-wrap { height: 220px; }
    .panel-header { padding-right: 14px; padding-left: 14px; }
    .dialog .form-grid { padding: 17px; }
    .login-card { padding: 30px 22px; }
    .report-update-form { min-width: 210px; grid-template-columns: 1fr; }
    .public-view-button { display: none; }
    .company-logo-field { align-items: flex-start; flex-direction: column; }
}

/* Public PRTG-style status dashboard */
.public-monitor-page {
    min-height: 100vh;
    color: #1d2b36;
    background:
        linear-gradient(180deg, #17212a 0, #17212a 86px, #eef2f5 86px, #eef2f5 100%);
    color-scheme: light;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 13px clamp(18px, 4vw, 64px);
    color: #f4f8fb;
    background: rgba(20, 29, 37, .96);
    box-shadow: 0 2px 12px rgba(3, 13, 20, .25);
}

.public-brand,
.public-header-meta,
.public-footer > div {
    display: flex;
    align-items: center;
}

.public-brand {
    gap: 13px;
}

.public-brand img {
    width: 48px;
    height: 48px;
    padding: 3px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.public-brand strong,
.public-brand small {
    display: block;
}

.public-brand strong {
    max-width: 480px;
    overflow: hidden;
    font-size: 18px;
    letter-spacing: -.25px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-brand small {
    margin-top: 4px;
    color: #87a0b2;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.public-header-meta {
    gap: 24px;
}

.public-clock {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    column-gap: 9px;
    text-align: right;
}

.public-clock span {
    grid-column: 1 / -1;
    color: #7890a2;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.public-clock strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.public-clock small {
    color: #91a5b4;
    font-size: 9px;
}

.public-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 5px;
    color: #fff;
    background: #087fbd;
    box-shadow: 0 5px 18px rgba(0, 103, 157, .22);
    font-size: 10px;
    font-weight: 750;
    transition: .18s ease;
}

.public-login-link:hover {
    border-color: #26a7e7;
    background: #0695db;
    transform: translateY(-1px);
}

.public-monitor {
    width: min(1480px, calc(100% - 36px));
    margin: 0 auto;
    padding: 31px 0 42px;
}

.public-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 23px;
}

.public-eyebrow {
    margin: 0 0 6px;
    color: #087fbd;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.public-hero h1,
.public-section-heading h2,
.public-empty h2 {
    margin: 0;
    color: #172733;
    letter-spacing: -.55px;
}

.public-hero h1 {
    font-size: clamp(24px, 3vw, 34px);
}

.public-hero > div:first-child > p:last-child {
    margin: 8px 0 0;
    color: #6e7f8c;
    font-size: 11px;
}

.public-system-state {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 224px;
    padding: 13px 15px;
    border: 1px solid #d8e0e5;
    border-radius: 7px;
    color: #526573;
    background: #fff;
    box-shadow: 0 7px 22px rgba(31, 57, 76, .06);
    font-size: 10px;
    font-weight: 750;
}

.public-system-state i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #23a363;
    box-shadow: 0 0 0 4px rgba(35, 163, 99, .12);
}

.public-system-state--warning i {
    background: #e4a11a;
    box-shadow: 0 0 0 4px rgba(228, 161, 26, .14);
}

.public-system-state--down i {
    background: #dc3847;
    box-shadow: 0 0 0 4px rgba(220, 56, 71, .13);
}

.public-system-state--unknown i {
    background: #8798a4;
    box-shadow: 0 0 0 4px rgba(92, 112, 126, .12);
}

.public-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 30px;
}

.public-summary article {
    position: relative;
    min-width: 0;
    min-height: 104px;
    padding: 17px 18px;
    overflow: hidden;
    border: 1px solid #d8e0e5;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(34, 55, 70, .055);
}

.public-summary article::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: #078ed1;
}

.public-summary .public-summary--up::before { background: #23a363; }
.public-summary .public-summary--warning::before { background: #e4a11a; }
.public-summary .public-summary--down::before { background: #dc3847; }

.public-summary span,
.public-summary strong,
.public-summary small {
    display: block;
}

.public-summary span {
    color: #748592;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.public-summary strong {
    margin-top: 5px;
    color: #1c303e;
    font-size: 27px;
    font-weight: 720;
    letter-spacing: -.8px;
}

.public-summary strong b {
    font: inherit;
}

.public-summary strong em {
    color: #728390;
    font-size: 10px;
    font-style: normal;
}

.public-summary small {
    margin-top: 4px;
    overflow: hidden;
    color: #9aa7b1;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}

.public-section-heading h2 {
    font-size: 19px;
}

.public-section-heading > p {
    margin: 0;
    color: #84939e;
    font-size: 9px;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sensor-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d1dbe1;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(35, 57, 72, .07);
}

.sensor-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    min-height: 77px;
    padding: 15px 17px;
    border-bottom: 1px solid #e5ebef;
}

.sensor-number {
    display: block;
    margin-bottom: 4px;
    color: #8294a1;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 1px;
}

.sensor-card h3,
.sensor-card header p {
    margin: 0;
}

.sensor-card h3 {
    color: #203441;
    font-size: 14px;
}

.sensor-card header p {
    margin-top: 5px;
    color: #82929e;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
}

.sensor-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(35, 163, 99, .23);
    border-radius: 4px;
    color: #188650;
    background: rgba(35, 163, 99, .075);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .5px;
}

.sensor-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.sensor-card--warning .sensor-status,
.sensor-card--critical .sensor-status {
    border-color: rgba(222, 153, 16, .28);
    color: #b67800;
    background: rgba(228, 161, 26, .08);
}

.sensor-card--down .sensor-status {
    border-color: rgba(220, 56, 71, .24);
    color: #c72d3b;
    background: rgba(220, 56, 71, .07);
}

.sensor-card--unknown .sensor-status {
    border-color: #d5dde3;
    color: #758794;
    background: #f2f5f7;
}

.sensor-chart {
    position: relative;
    height: 225px;
    padding: 8px 12px 0;
    background:
        linear-gradient(180deg, rgba(243, 248, 251, .7), rgba(255, 255, 255, .3)),
        #fff;
}

.sensor-chart canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.sensor-scale {
    position: absolute;
    top: 11px;
    right: 14px;
    display: flex;
    gap: 4px;
    color: #8d9ba5;
    font-size: 7px;
}

.sensor-scale b {
    color: #078ed1;
}

.sensor-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid #e5ebef;
}

.sensor-stats > div {
    min-width: 0;
    padding: 11px 9px;
    border-right: 1px solid #e8edf0;
    text-align: center;
}

.sensor-stats > div:last-child {
    border-right: 0;
}

.sensor-stats span,
.sensor-stats strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sensor-stats span {
    margin-bottom: 4px;
    color: #93a0aa;
    font-size: 7px;
    text-transform: uppercase;
}

.sensor-stats strong {
    color: #344a58;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.sensor-card > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 7px 12px 7px 16px;
    border-top: 1px solid #e5ebef;
    background: #f9fbfc;
}

.sensor-legend {
    display: flex;
    gap: 13px;
    color: #7f909c;
    font-size: 7px;
}

.sensor-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sensor-legend i {
    width: 13px;
    height: 2px;
    background: #078ed1;
}

.sensor-legend span:last-child i {
    background: #dc3847;
}

.sensor-range {
    display: flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid #d7e0e5;
    border-radius: 4px;
    background: #edf2f5;
}

.sensor-range button {
    min-height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 3px;
    color: #71828e;
    background: transparent;
    cursor: pointer;
    font-size: 8px;
    font-weight: 750;
}

.sensor-range button.active {
    color: #fff;
    background: #087fbd;
    box-shadow: 0 2px 5px rgba(0, 111, 167, .2);
}

.sensor-range button:disabled {
    cursor: wait;
    opacity: .65;
}

.public-empty {
    padding: 58px 25px;
    border: 1px solid #d7e0e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(34, 55, 70, .055);
    text-align: center;
}

.public-empty h2 {
    margin-top: 12px;
}

.public-empty p {
    margin: 8px auto 18px;
    color: #7f8e99;
    font-size: 10px;
}

.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 70px;
    padding: 16px clamp(18px, 4vw, 64px);
    border-top: 1px solid #d3dde3;
    color: #6e818f;
    background: #e6ecef;
    font-size: 9px;
}

.public-footer > div {
    flex-wrap: wrap;
    gap: 8px 15px;
}

.public-footer strong {
    color: #354b59;
}

.public-footer a {
    color: #087fbd;
}

.public-footer p {
    margin: 0;
    text-align: right;
}

@media (max-width: 1100px) {
    .public-summary { grid-template-columns: repeat(3, 1fr); }
    .sensor-stats { grid-template-columns: repeat(3, 1fr); }
    .sensor-stats > div:nth-child(3) { border-right: 0; }
    .sensor-stats > div:nth-child(-n+3) { border-bottom: 1px solid #e8edf0; }
}

@media (max-width: 800px) {
    .public-header { min-height: 76px; padding: 11px 18px; }
    .public-monitor-page {
        background: linear-gradient(180deg, #17212a 0, #17212a 76px, #eef2f5 76px, #eef2f5 100%);
    }
    .public-clock { display: none; }
    .public-brand strong { max-width: 48vw; font-size: 15px; }
    .public-hero { align-items: flex-start; flex-direction: column; gap: 17px; }
    .public-system-state { min-width: 0; }
    .sensor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .public-monitor { width: min(100% - 24px, 1480px); padding-top: 23px; }
    .public-header { padding-right: 12px; padding-left: 12px; }
    .public-brand { gap: 9px; }
    .public-brand img,
    .public-brand .brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
    .public-brand strong { max-width: 43vw; font-size: 13px; }
    .public-login-link { min-height: 33px; padding: 0 10px; font-size: 9px; }
    .public-summary { grid-template-columns: 1fr 1fr; }
    .public-summary article:last-child { grid-column: 1 / -1; }
    .public-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .sensor-chart { height: 200px; }
    .sensor-card > footer { align-items: flex-start; flex-direction: column; gap: 9px; }
    .public-footer { align-items: flex-start; flex-direction: column; }
    .public-footer p { text-align: left; }
}
