body {
    color: #1E1F26;
}

html,
body {
    min-height: 100%;
}

body.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

main a {
    color: #0b7fb0;
}

.vi-app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    background: #f8fafc;
}

.vi-sidebar {
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        inset -1px 0 0 rgba(15, 23, 42, 0.02),
        4px 0 24px -16px rgba(15, 23, 42, 0.16);
}

.vi-sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 4rem;
    padding: 0 1rem;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.05);
}

.vi-main {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 4rem 1rem 1.5rem;
}

.vi-mobile-menu {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.94);
    color: #1E1F26;
    box-shadow: 0 12px 28px -22px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    transition: color 150ms, border-color 150ms, background-color 150ms, box-shadow 150ms;
}

.vi-mobile-menu:hover,
.vi-mobile-menu:focus-visible {
    border-color: #14A9E5;
    color: #0b7fb0;
    outline: none;
}

.vi-sidebar-account {
    display: grid;
    gap: 0.625rem;
    padding: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.05);
}

.vi-account-mini {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.vi-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #14A9E5, #0b7fb0);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 16px -12px rgba(20, 169, 229, 0.65);
}

.vi-account-text {
    min-width: 0;
    display: grid;
    gap: 0.125rem;
}

.vi-account-name {
    overflow: hidden;
    color: #1E1F26;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vi-account-role {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.vi-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 150ms, background-color 150ms, border-color 150ms;
}

.vi-logout-link:hover {
    border-color: #14A9E5;
    background: #eef6fb;
    color: #0b7fb0;
}

@media (min-width: 640px) {
    .vi-main {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .vi-main {
        padding: 1.5rem 2rem;
    }

    .vi-mobile-menu {
        display: none;
    }
}

.vi-nav-link .bi {
    color: #64748b;
    width: 1rem;
    font-size: 1rem;
    line-height: 1;
    transition: color 150ms ease;
}

.vi-nav-link:hover .bi,
.vi-nav-link.vi-nav-link-active .bi {
    color: #14A9E5;
}

.page-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.page-header > div::before {
    content: "Home \203A  vInspectro";
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1rem;
}

.page-header h1 {
    color: #1E1F26;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.page-header p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
}

.telemetry-filter-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(24rem, 0.7fr);
    gap: 1rem;
    align-items: start;
}

.telemetry-analysis-layout {
    display: grid;
    grid-template-columns: minmax(42rem, 1fr) minmax(18rem, 24rem);
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

.telemetry-chart-panel {
    min-width: 0;
}

.telemetry-side-panel {
    min-width: 0;
}

.panel,
.card {
    color: #1E1F26;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow:
        0 30px 60px -30px rgba(15, 23, 42, 0.18),
        0 8px 20px -12px rgba(15, 23, 42, 0.08);
    transition: box-shadow 200ms ease;
}

.panel {
    overflow: hidden;
}

.panel:hover,
.card:hover {
    box-shadow:
        0 40px 80px -30px rgba(15, 23, 42, 0.22),
        0 10px 24px -12px rgba(15, 23, 42, 0.10);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), #ffffff);
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.04);
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.panel-header::before {
    content: "";
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: rgba(236, 10, 140, 0.6);
    box-shadow:
        0.875rem 0 0 rgba(244, 211, 0, 0.8),
        1.75rem 0 0 rgba(20, 169, 229, 0.6);
    flex: 0 0 auto;
    margin-right: 1.35rem;
}

.panel-header strong {
    font: inherit;
}

.panel-header a {
    margin-left: auto;
    color: #0b7fb0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.panel-body,
.card {
    padding: 1.25rem;
}

.card {
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kpi-card {
    min-height: 7rem;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #14A9E5 0%, #0b7fb0 100%);
}

.kpi-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kpi-value {
    color: #1E1F26;
    font-variant-numeric: tabular-nums;
    margin-top: 0.4rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.kpi-sub {
    color: #64748b;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.45;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #f4f5f7;
    color: #1E1F26;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.badge.live {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
    font-weight: 600;
}

.badge.warn {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
    font-weight: 600;
}

.badge.danger {
    border-color: rgba(236, 10, 140, 0.3);
    background: rgba(236, 10, 140, 0.1);
    color: #EC0A8C;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #1E1F26;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 150ms, background-color 150ms, border-color 150ms, box-shadow 150ms, transform 150ms;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.button:focus-visible {
    outline: 2px solid #14A9E5;
    outline-offset: 2px;
}

.button:hover {
    background: #eef6fb;
    border-color: #14A9E5;
    color: #0b7fb0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.button.primary {
    border: 0;
    color: #ffffff;
    background: linear-gradient(120deg, #14A9E5 0%, #0b7fb0 55%, #1E1F26 100%);
    box-shadow: 0 6px 14px rgba(20, 169, 229, 0.22);
}

.button.primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(20, 169, 229, 0.26);
}

.button.compact {
    min-height: 2rem;
    padding-inline: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

.button.danger {
    border-color: rgba(236, 10, 140, 0.32);
    background: rgba(236, 10, 140, 0.08);
    color: #991458;
}

.button.danger:hover {
    border-color: #EC0A8C;
    background: rgba(236, 10, 140, 0.13);
    color: #7a103f;
}

.inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.inline-confirm {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.inline-confirm summary {
    list-style: none;
}

.inline-confirm summary::-webkit-details-marker {
    display: none;
}

.inline-confirm[open] {
    gap: 0.375rem;
}

.inline-confirm form {
    display: inline-flex;
    margin-left: 0.375rem;
}

.vi-grid {
    overflow-x: auto;
}

.vi-grid table.vi-quickgrid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #1E1F26;
    font-size: 0.875rem;
    table-layout: auto;
}

.vi-grid table.vi-quickgrid thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    padding: 0.625rem 0.875rem;
    box-shadow: inset 0 -1px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1;
}

.vi-grid table.vi-quickgrid thead th .col-title {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.vi-grid table.vi-quickgrid thead th button.col-title {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.vi-grid table.vi-quickgrid thead th[aria-sort="ascending"] .col-title::after {
    content: "↑";
    margin-left: 0.25rem;
    color: #14A9E5;
}

.vi-grid table.vi-quickgrid thead th[aria-sort="descending"] .col-title::after {
    content: "↓";
    margin-left: 0.25rem;
    color: #14A9E5;
}

.vi-grid table.vi-quickgrid tbody td {
    padding: 0.625rem 0.875rem;
    box-shadow: inset 0 -1px rgba(15, 23, 42, 0.04);
    vertical-align: middle;
}

.vi-grid table.vi-quickgrid tbody tr {
    transition: background-color 120ms ease;
}

.vi-grid table.vi-quickgrid tbody tr:nth-child(2n) {
    background-color: #fbfcfd;
}

.vi-grid table.vi-quickgrid tbody tr:hover {
    background-color: rgba(20, 169, 229, 0.06);
}

.vi-grid table.vi-quickgrid tbody tr:last-child td {
    border-bottom: 0;
}

.vi-grid table.vi-quickgrid tbody tr:not(:has(td:not(:empty))) {
    display: none;
}

.vi-grid table.vi-quickgrid .col-justify-end {
    text-align: right;
}

.vi-grid table.vi-quickgrid .col-justify-center {
    text-align: center;
}

.vi-grid table.vi-quickgrid tbody td.tabular-nums {
    font-variant-numeric: tabular-nums;
}

nav.paginator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
}

nav.paginator button {
    appearance: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #1E1F26;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    transition: background-color 120ms, border-color 120ms;
}

nav.paginator button:hover:not(:disabled) {
    background: #f4f5f7;
    border-color: #14A9E5;
}

nav.paginator button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.mono,
code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.8125rem;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.meta-list div {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    padding: 0.75rem;
}

.meta-list span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.machine-page-header {
    margin-bottom: 0.9rem;
}

.machine-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.machine-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.machine-summary-list div {
    min-width: 0;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.68rem 0.85rem;
}

.machine-summary-list div:nth-child(2n) {
    border-right: 0;
}

.machine-summary-list div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.machine-summary-list span {
    display: block;
    overflow: hidden;
    margin-bottom: 0.18rem;
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.machine-summary-list strong {
    display: block;
    overflow: hidden;
    color: #1E1F26;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.machine-main-tabs {
    margin-bottom: 1rem;
}

.machine-detail-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.config-key-cell,
.config-value-cell {
    display: inline-block;
    max-width: min(58rem, 72vw);
    overflow-wrap: anywhere;
    white-space: normal;
}

.form-row,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: block;
}

label {
    display: inline-block;
    color: #1E1F26;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.help-text {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.readonly-field {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    color: #1E1F26;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.token-result {
    margin-top: 1rem;
}

input,
textarea,
select {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    color: #1E1F26;
    font: inherit;
    outline: none;
    transition: border-color 150ms, box-shadow 150ms;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #14A9E5;
    box-shadow: 0 0 0 3px rgba(20, 169, 229, 0.16);
}

.text-danger {
    color: #EC0A8C;
}

.alert {
    border: 1px solid #f8b4d8;
    border-radius: 0.625rem;
    background: #fff1f8;
    color: #991458;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
}

.alert.danger {
    border-color: #f8b4d8;
    background: #fff1f8;
    color: #991458;
}

.alert.info {
    border-color: rgba(20, 169, 229, 0.28);
    background: #effaff;
    color: #075985;
}

.text-muted {
    color: #64748b;
}

.vi-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
}

.vi-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.vi-chart-legend i {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
}

.external-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.external-tool-grid .button {
    min-width: 0;
    padding-inline: 0.5rem;
}

.compact-fields {
    gap: 0.625rem;
}

.compact-fields label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.compact-fields .readonly-field {
    min-height: 2rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
}

.vi-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.metric-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 1.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #64748b;
    padding: 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.metric-toggle i {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    opacity: 0.45;
}

.metric-toggle.active {
    color: #1E1F26;
    border-color: rgba(20, 169, 229, 0.3);
    background: #f8fbfd;
}

.metric-toggle.active i {
    opacity: 1;
}

.vi-live-chart {
    display: block;
    width: 100%;
    height: clamp(18rem, 36vw, 27rem);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom, #ffffff, #fbfcfd);
}

.vi-live-chart .grid-line {
    stroke: rgba(100, 116, 139, 0.22);
    stroke-width: 1;
}

.vi-live-chart .axis-line {
    stroke: rgba(30, 31, 38, 0.55);
    stroke-width: 1.4;
}

.vi-live-chart .axis-label {
    fill: #64748b;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 16px;
    dominant-baseline: middle;
    text-anchor: middle;
}

.vi-live-chart .y-axis {
    text-anchor: end;
}

.vi-live-chart polyline {
    fill: none;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.metric-point {
    opacity: 0.9;
}

.metric-hit {
    fill: transparent;
    stroke: transparent;
    cursor: crosshair;
}

.hover-line {
    stroke: rgba(30, 31, 38, 0.35);
    stroke-width: 1.4;
    stroke-dasharray: 5 5;
}

.hover-point {
    fill: #ffffff;
    stroke-width: 3;
}

.chart-readout {
    min-height: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #f8fafc;
    padding: 0.5rem 0.625rem;
    color: #1E1F26;
    font-size: 0.75rem;
}

.chart-readout strong {
    font-size: 0.8125rem;
}

.chart-readout span {
    white-space: nowrap;
}

.analysis-list {
    display: grid;
    gap: 0.5rem;
}

.analysis-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 2.625rem;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #94a3b8;
    border-radius: 0.625rem;
    background: #ffffff;
    padding: 0.5rem 0.625rem;
    font-size: 0.72rem;
}

.analysis-item span {
    color: #64748b;
}

.analysis-item strong {
    color: #1E1F26;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.analysis-item.ok {
    border-left-color: #22c55e;
}

.analysis-item.warn {
    border-left-color: #F4D300;
}

.analysis-item.danger {
    border-left-color: #EC0A8C;
}

.analysis-item.info {
    border-left-color: #14A9E5;
}

.config-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.config-tab-strip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0.5rem;
    background: #f4f5f7;
    padding: 0.25rem;
}

.config-tab {
    min-height: 1.75rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: #1E1F26;
    cursor: pointer;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
}

.config-tab:hover {
    background: #e5e7eb;
}

.config-tab.active {
    background: #0b7fb0;
    color: #ffffff;
}

.config-version-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
}

.config-version-meta strong {
    color: #1E1F26;
    font-variant-numeric: tabular-nums;
}

.config-readonly-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.config-readonly-field {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #f8fafc;
    padding: 0.625rem 0.75rem;
}

.config-readonly-field label {
    display: block;
    overflow: hidden;
    margin: 0 0 0.25rem;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.config-readonly-field strong {
    display: block;
    overflow: hidden;
    color: #1E1F26;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.config-readonly-field span {
    display: block;
    overflow: hidden;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    min-height: 2.25rem;
    padding-inline: 0.75rem;
    background: #1E1F26;
    border-color: #1E1F26;
    color: #ffffff;
}

.logout-button:hover {
    background: #0b7fb0;
    border-color: #0b7fb0;
    color: #ffffff;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 600px minmax(0, 1fr);
    background: #ffffff;
}

.login-brand {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0b1726 0%, #13243a 55%, #1E1F26 100%);
}

.login-glow,
.login-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-glow {
    opacity: 0.72;
    background:
        radial-gradient(40% 80% at 18% 30%, rgba(20, 169, 229, 0.30), transparent 70%),
        radial-gradient(35% 80% at 78% 70%, rgba(236, 10, 140, 0.22), transparent 70%),
        radial-gradient(30% 60% at 50% 110%, rgba(244, 211, 0, 0.15), transparent 70%);
}

.login-grid {
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.login-brand-inner {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem;
    text-align: center;
}

.login-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.40);
}

.login-logo img {
    width: 3.5rem;
    height: 3.5rem;
}

.login-word {
    color: #ffffff;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

.login-word span {
    color: #F4D300;
}

.login-copy {
    max-width: 28rem;
}

.login-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.12;
}

.login-copy p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 1rem;
    line-height: 1.65;
}

.login-meta {
    color: rgba(255, 255, 255, 0.50);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.login-panel {
    width: min(100%, 27.5rem);
}

.login-title {
    margin-bottom: 2rem;
    text-align: center;
}

.login-title h2 {
    margin: 0 0 0.5rem;
    color: #1E1F26;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
}

.login-title p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.login-form {
    display: grid;
    gap: 1.25rem;
}

.login-form label {
    display: grid;
    gap: 0.3rem;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
}

.login-form .button {
    min-height: 2.75rem;
}

@media (max-width: 1500px) {
    .telemetry-analysis-layout {
        grid-template-columns: 1fr;
    }

    .telemetry-side-panel .analysis-list {
        grid-template-columns: repeat(4, minmax(10rem, 1fr));
    }

    .config-readonly-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .machine-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1320px) {
    .telemetry-filter-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-inner {
        min-height: auto;
        padding-block: 3rem;
    }

    .grid,
    .grid.kpi,
    .grid.two,
    .telemetry-filter-strip,
    .telemetry-analysis-layout,
    .form-row,
    .form-grid,
    .meta-list,
    .machine-summary-list {
        grid-template-columns: 1fr;
    }

    .machine-summary-list div,
    .machine-summary-list div:nth-child(2n),
    .machine-summary-list div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .machine-summary-list div:last-child {
        border-bottom: 0;
    }

    .external-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .telemetry-side-panel .analysis-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vi-live-chart {
        height: 18rem;
    }
}

@media (max-width: 640px) {
    .telemetry-side-panel .analysis-list,
    .external-tool-grid,
    .config-readonly-grid {
        grid-template-columns: 1fr;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fffbeb;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
}

#components-reconnect-modal[open] {
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

#components-reconnect-modal button:hover {
    background-color: #3b6ea2;
}

#components-reconnect-modal button:active {
    background-color: #6b9ed2;
}

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div {
    position: absolute;
    border: 3px solid #0087ff;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
