@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

:root {
    --bg: #f8f7f3;
    --surface: #FFFFFF;
    --surface-2: #FAFAF8;
    --border: #E8E6E1;
    --border-2: #D4D1CB;
    --text: #1A1916;
    --muted: #7A7670;
    --muted-2: #B0ADA7;
    --accent: #1B4FD8;
    --accent-bg: #EEF2FF;
    --green: #16A34A;
    --green-bg: #DCFCE7;
    --green-muted: #15803D;
    --amber: #B45309;
    --amber-bg: #FEF3C7;
    --red: #DC2626;
    --red-bg: #FEE2E2;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow: 0 4px 16px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .05);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .10), 0 2px 8px rgba(0, 0, 0, .06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text);
}

.nav-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-brand-mark svg {
    display: block;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-link {
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    border: none;
    background: none;
    color: var(--muted);
    transition: background 140ms, color 140ms;
}

.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-link.active {
    background: var(--text);
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid;
}

.nav-badge.warn {
    background: var(--amber-bg);
    color: var(--amber);
    border-color: #FDE68A;
}

.nav-badge.error {
    background: var(--red-bg);
    color: var(--red);
    border-color: #FECACA;
}

.nav-clock {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 72px;
    text-align: center;
}

/* â”€â”€ PAGE SHELL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main {
    position: relative;
    width: min(1560px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 64px;
    display: grid;
    gap: 20px;
}

/* â”€â”€ HERO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-hero {
    display: grid;
    grid-template-columns: 1fr 500px;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-copy {
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.dashboard-hero h1 {
    margin: 18px 0 0;
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: .95;
    color: var(--text);
}

.dashboard-hero h1 strong {
    font-weight: 600;
}

.dashboard-hero p {
    margin: 20px 0 0;
    max-width: 520px;
    color: var(--muted);
    font-size: clamp(.95rem, 1.3vw, 1.05rem);
    line-height: 1.65;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: var(--text);
    color: #fff;
    border: 1px solid var(--text);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: opacity 160ms;
}

.primary-btn:hover {
    opacity: .82;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: background 140ms, border-color 140ms;
}

.ghost-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
}

.live-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius);
    background: var(--green-bg);
    font-size: 12px;
    font-weight: 500;
    color: var(--green-muted);
}

.live-chip span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

/* â”€â”€ HERO CONSOLE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-console {
    display: grid;
    grid-template-rows: auto 280px auto;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.console-top span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.console-top strong {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    font-family: 'DM Mono', monospace;
}

.signal-map {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px),
        var(--surface-2);
    background-size: 28px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signal-map canvas {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 300px;
}

.scan-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0 44%, rgba(255, 255, 255, .12) 50%, transparent 56% 100%);
    animation: scan 5s linear infinite;
}

#fleet-globe {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.system-core-map {
    position: relative;
    isolation: isolate;
    height: 280px;
    display: flex;
    background: var(--surface-2);
    border-top: 1px solid var(--border);

    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, .08), transparent 60%),
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px),
        #030712;
    background-size: auto, 34px 34px, 34px 34px, auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.system-core-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 0 40%, rgba(16, 185, 129, .05) 41%, transparent 43%);
    animation: purosangue-breathe 4.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes purosangue-breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.globe-vignette {
    z-index: 4;
    background:
        radial-gradient(circle at center, transparent 0 48%, rgba(3, 7, 18, .34) 70%, rgba(3, 7, 18, .88) 100%),
        linear-gradient(to bottom, rgba(3, 7, 18, .34), transparent 28%, transparent 68%, rgba(3, 7, 18, .48));
}

.globe-scan {
    z-index: 5;
    inset: -25%;
    background: linear-gradient(112deg, transparent 0 45%, rgba(103, 232, 249, .16) 49%, rgba(73, 242, 163, .11) 51%, transparent 56% 100%);
    animation: globe-scan 5.8s linear infinite;
    mix-blend-mode: screen;
}

.globe-caption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 6;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(3, 7, 18, .56);
    backdrop-filter: blur(12px);
}

.globe-caption span {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.globe-caption strong {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

#fleet-globe canvas {
    cursor: grab;
    filter: saturate(1.16) contrast(1.08);
}

#fleet-globe canvas:active {
    cursor: grabbing;
}

.map-axis {
    position: absolute;
    background: rgba(255, 255, 255, .1);
}

.axis-x {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
}

.axis-y {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.map-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.map-node::after {
    content: '';
    position: absolute;
    inset: -7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .3;
}

.map-node.online {
    background: #4ADE80;
    color: #4ADE80;
    box-shadow: 0 0 10px #4ADE80;
}

.map-node.warning {
    background: #FCD34D;
    color: #FCD34D;
    box-shadow: 0 0 10px #FCD34D;
}

.map-node.offline {
    background: #F87171;
    color: #F87171;
    box-shadow: 0 0 10px #F87171;
}

.console-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.console-grid div {
    padding: 16px 20px;
    display: grid;
    gap: 5px;
}

.console-grid div:not(:last-child) {
    border-right: 1px solid var(--border);
}

.console-grid span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.console-grid strong {
    font-size: 24px;
    font-weight: 500;
    font-family: 'DM Mono', monospace;
    color: var(--text);
}

/* â”€â”€ STATS ROW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted-2);
}

.stat__value {
    margin-top: 12px;
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--text);
    font-family: 'DM Mono', monospace;
}

.stat__value--small {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

.stat__meta {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.stat-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.stat-total .stat-indicator {
    background: var(--accent);
}

.stat-online .stat-indicator {
    background: var(--green);
}

.stat-warning .stat-indicator {
    background: var(--amber);
}

.stat-offline .stat-indicator {
    background: var(--red);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
}

.trend-up {
    color: var(--red);
}

.trend-down {
    color: var(--green);
}

.trend-neu {
    color: var(--muted);
}

/* â”€â”€ OPS LAYOUT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ops-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.ops-card {
    position: sticky;
    top: 76px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ops-score-block {
    padding: 24px;
    background: var(--text);
    color: #fff;
}

.ops-score-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 10px;
}

.ops-score-num {
    font-size: 3.8rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.04em;
    font-family: 'DM Mono', monospace;
}

.ops-score-num span {
    font-size: 1.4rem;
    opacity: .5;
}

.ops-body {
    padding: 8px 0;
}

.ops-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.ops-line:last-child {
    border-bottom: none;
}

.ops-line span {
    color: var(--muted);
}

.ops-line strong {
    font-weight: 500;
    color: var(--text);
}

.ops-line .ok {
    color: var(--green);
}

/* â”€â”€ PANEL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 0;
}

.section-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.panel__head h2 {
    margin: 8px 0 6px;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--text);
}

.panel__head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.55;
}

/* â”€â”€ FILTERS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filters {
    display: grid;
    grid-template-columns: 200px 220px minmax(240px, 1fr);
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    margin-top: 18px;
    background: var(--surface-2);
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.select,
.search {
    height: 38px;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 140ms, box-shadow 140ms;
}

.select:focus,
.search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(27, 79, 216, .1);
}

.select {
    padding: 0 12px;
    font-size: 13px;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.search span {
    color: var(--muted-2);
    font-size: 14px;
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.search input::placeholder {
    color: var(--muted-2);
}

/* â”€â”€ MACHINE GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
}

/* â”€â”€ MACHINE CARD â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.machine-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    transition: background 140ms;
}

.machine-card:hover {
    background: var(--surface-2);
}

.machine-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.machine-card.online::after {
    background: var(--green);
}

.machine-card.warning::after {
    background: var(--amber);
}

.machine-card.offline::after {
    background: var(--red);
}

.machine-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.machine-title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.machine-title small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}

.status-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid;
}

.status-pill.online {
    background: var(--green-bg);
    color: var(--green-muted);
    border-color: #BBF7D0;
}

.status-pill.warning {
    background: var(--amber-bg);
    color: var(--amber);
    border-color: #FDE68A;
}

.status-pill.offline {
    background: var(--red-bg);
    color: var(--red);
    border-color: #FECACA;
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.online::before {
    animation: pulse 2s ease-in-out infinite;
}

/* â”€â”€ TELEMETRY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.machine-telemetry {
    display: grid;
    gap: 6px;
}

.telemetry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12.5px;
}

.telemetry-row span {
    color: var(--muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.telemetry-row strong {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
}

/* â”€â”€ MACHINE META â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.machine-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.meta-box {
    padding: 9px 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 7px;
}

.meta-box span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.meta-box strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    overflow-wrap: anywhere;
}

.machine-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.packet-time {
    font-size: 11px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
}

/* â”€â”€ EMPTY STATE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
    grid-column: 1/-1;
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    background: var(--surface-2);
    border: 1.5px dashed var(--border-2);
    border-radius: var(--radius);
}

/* â”€â”€ ANIMATIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes pulse {
    50% {
        opacity: .4;
        transform: scale(1.35);
    }
}

@keyframes scan {
    from {
        transform: translateX(-65%);
    }

    to {
        transform: translateX(65%);
    }
}

@keyframes packetTravel {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

@keyframes globe-breathe {

    0%,
    100% {
        opacity: .42;
        transform: scale(.97);
    }

    50% {
        opacity: .78;
        transform: scale(1.04);
    }
}

@keyframes globe-scan {
    from {
        transform: translateX(-42%) rotate(0.001deg);
    }

    to {
        transform: translateX(42%) rotate(0.001deg);
    }
}

.network-packet {
    offset-path: var(--path);
    offset-distance: 0;
    animation: packetTravel var(--duration) linear infinite;
    opacity: 0;
}

/* â”€â”€ RESPONSIVE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1300px) {
    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-layout {
        grid-template-columns: 1fr;
    }

    .ops-card {
        position: static;
        display: grid;
        grid-template-columns: auto 1fr 1fr 1fr 1fr;
    }

    .ops-score-block {
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    }

    .ops-body {
        display: contents;
    }

    .ops-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px 18px;
        border-bottom: none;
        border-left: 1px solid var(--border);
    }
}

@media (max-width: 1060px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .hero-console {
        border-top: 1px solid var(--border);
        min-height: 260px;
    }

    .hero-copy {
        border-right: none;
    }

    .machine-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }

    .field-search {
        grid-column: 1/-1;
    }
}

@media (max-width: 720px) {
    .main {
        width: min(100% - 24px, 1560px);
    }

    .stats,
    .machine-grid,
    .machine-meta {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .panel__head {
        flex-direction: column;
    }

    .topnav {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-brand {
        flex: 0 0 auto;
    }

    .nav-right {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        gap: 6px;
        justify-content: flex-start;
    }

    #user-profile-btn,
    .nav-clock {
        display: none;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .primary-btn,
    .hero-actions .ghost-btn,
    .hero-actions .live-chip {
        justify-content: center;
        width: 100%;
    }

    .ops-card {
        grid-template-columns: 1fr;
    }

    .ops-line {
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .ops-score-block {
        border-radius: 0;
    }
}

.hero-anim {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 5;
}

.anim-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.anim-placeholder .pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-2);
    animation: default-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.anim-placeholder .pulse-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted-2);
}

@keyframes default-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.anim-monarch,
.anim-trident {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.anim-monarch .core {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    border-radius: 18px;
    transform: rotate(45deg);
    animation: monarch-pulse 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    z-index: 2;
}

.anim-monarch .core::after {
    content: "M";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transform: rotate(-45deg);
    color: white;
    font-size: 28px;
    font-weight: 800;
}

@keyframes monarch-pulse {

    0%,
    100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    }

    50% {
        transform: rotate(45deg) scale(1.08);
        box-shadow: 0 0 45px rgba(124, 58, 237, 0.6);
    }
}

.anim-monarch .ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px dashed rgba(124, 58, 237, 0.4);
    border-radius: 50%;
    animation: monarch-spin 15s linear infinite;
}

@keyframes monarch-spin {
    to {
        transform: rotate(360deg);
    }
}

.anim-trident .core {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0369A1, #0284C7);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 30px rgba(3, 105, 161, 0.4);
    display: grid;
    place-items: center;
    animation: trident-float 4s ease-in-out infinite;
    z-index: 2;
}

.anim-trident .core::after {
    content: "T";
    color: white;
    font-size: 32px;
    font-weight: 800;
}

.anim-trident .bar {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 100px;
    background: linear-gradient(to top, transparent, #0ea5e9);
    animation: trident-scan 2s ease-in-out infinite alternate;
}

@keyframes trident-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes trident-scan {
    0% {
        height: 50px;
        opacity: 0.3;
    }

    100% {
        height: 120px;
        opacity: 1;
    }
}
