.account-manage-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-manage-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #2A3038;
    border-radius: 4px;
    color: #C5CDD8;
    text-decoration: none;
    font-size: 0.875rem;
}

.account-manage-link.active {
    border-color: #00D4FF;
    color: #00D4FF;
}

.account-manage-shell {
    max-width: 1100px;
}

.account-manage-nav .mud-nav-link {
    border-radius: 4px;
}

.account-validation,
.account-field-error {
    color: #F87171;
    font-size: 0.875rem;
}

.account-layout {
    min-height: 100vh;
    background: #0A0B0D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.account-container {
    width: 100%;
}

.account-card {
    background: #141618;
    border: 1px solid #1E2228;
    border-radius: 6px;
}

.account-passkey-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid #00D4FF66;
    background: transparent;
    color: #00D4FF;
    font: inherit;
    cursor: pointer;
}

.account-passkey-btn:hover {
    background: #0D1F24;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-label {
    color: #8B95A5;
    font-size: 0.875rem;
}

.account-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid #2A3038;
    background: #0F1114;
    color: #E8ECF1;
    font: inherit;
}

.account-input:focus {
    outline: none;
    border-color: #00D4FF;
    box-shadow: 0 0 0 1px #00D4FF44;
}

.account-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #C5CDD8;
    cursor: pointer;
}

.account-submit-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background: #00D4FF;
    color: #0A0B0D;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-submit-btn:hover {
    background: #33DDFF;
}

.account-divider {
    text-align: center;
    color: #4A5260;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.account-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-links a {
    color: #00D4FF;
    text-decoration: none;
    font-size: 0.875rem;
}

.account-links a:hover {
    text-decoration: underline;
}

.account-validation,
.account-field-error {
    color: #F87171;
    font-size: 0.875rem;
}

.settings-form .settings-hint {
    color: #4A5260;
    font-size: 0.8rem;
}

.settings-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #2A3038;
    background: #141618;
    color: #C5CDD8;
    cursor: pointer;
    font-size: 0.875rem;
}

.settings-radio-pill.active {
    border-color: #00D4FF;
    background: #0D1F24;
    color: #00D4FF;
}

.settings-radio-pill input {
    display: none;
}

.settings-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.settings-fieldset:disabled {
    opacity: 0.4;
}

.dashboard-layout {
    min-height: 100vh;
    background: #0A0B0D;
}

.dashboard-drawer {
    background: #0F1114 !important;
    border-right: 1px solid #1E2228;
}

.dashboard-layout .dashboard-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
}

.drawer-brand {
    padding: 12px 8px 8px !important;
    min-height: unset !important;
    border-bottom: 1px solid #1E2228;
}

.drawer-brand-text {
    overflow: hidden;
    line-height: 1.2;
}

.drawer-brand-title {
    color: #00D4FF;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.drawer-brand-subtitle {
    color: #4A5260;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.drawer-nav {
    flex: 0 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.drawer-footer {
    margin-top: auto;
    padding: 8px 4px 12px;
    border-top: 1px solid #1E2228;
    flex: 0 0 auto;
}

.drawer-footer-btn {
    justify-content: flex-start;
    text-transform: none;
    color: #C5CDD8 !important;
}

.drawer-footer-badge {
    display: block;
    width: 100%;
}

.drawer-logout-form {
    width: 100%;
}

.dashboard-main {
    background: #0A0B0D;
    min-height: 100vh;
}

.nav-group-label {
    color: #4A5260;
    letter-spacing: 1.5px;
    font-size: 10px;
    text-transform: uppercase;
}

.page-header {
    margin-bottom: 16px;
}

.edge-section {
    margin-bottom: 12px;
}

.edge-section-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid #1E2228;
}

.edge-section-header .edge-section-title {
    letter-spacing: 1.5px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.edge-section-awaiting .edge-section-title { color: #FFAB00; }
.edge-section-ai-off .edge-section-title { color: #00D4FF; }
.edge-section-ai-on .edge-section-title { color: #B388FF; }

.edge-section-sub {
    color: #8892A0;
    font-size: 12px;
    margin-top: 4px;
}

.edge-section-body {
    padding: 0;
}

.edge-section-empty {
    padding: 16px;
    color: #4A5260;
    font-size: 13px;
}

.stat-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-card-row .stat-card {
    flex: 1 1 160px;
    min-width: 160px;
}

.stat-card {
    background: #141618;
    border: 1px solid #1E2228;
    border-radius: 3px;
    overflow: hidden;
}

.stat-card-bar {
    height: 2px;
    width: 100%;
}

.stat-card-body {
    padding: 12px 16px 14px;
}

.stat-card-label {
    color: #4A5260 !important;
    letter-spacing: 1.5px;
    font-size: 10px !important;
    text-transform: uppercase;
}

.stat-card-sub {
    color: #4A5260 !important;
    font-family: Consolas, monospace;
    font-size: 11px !important;
}

.stat-card-cyan .stat-card-bar { background: #00D4FF; }
.stat-card-cyan .stat-card-value { color: #00D4FF !important; }

.stat-card-green .stat-card-bar { background: #00E676; }
.stat-card-green .stat-card-value { color: #00E676 !important; }

.stat-card-amber .stat-card-bar { background: #FFAB00; }
.stat-card-amber .stat-card-value { color: #FFAB00 !important; }

.stat-card-purple .stat-card-bar { background: #B388FF; }
.stat-card-purple .stat-card-value { color: #B388FF !important; }

.stat-card-red .stat-card-bar { background: #FF3D3D; }
.stat-card-red .stat-card-value { color: #FF3D3D !important; }

.dashboard-body {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.dashboard-main-panel {
    min-width: 0;
    flex: 1 1 auto;
}

.machine-detail-rail {
    width: 300px;
    flex: 0 0 300px;
    background: #0F1114;
    border-left: 1px solid #1E2228;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.machine-row-clickable {
    cursor: pointer;
}

.machine-row-clickable:hover,
.machine-row-selected {
    background: #1A1D21 !important;
}

.machine-row-selected {
    outline: 1px solid #00D4FF44;
}

.mini-metric {
    display: grid;
    grid-template-columns: 26px 1fr 28px;
    gap: 5px;
    align-items: center;
    margin-bottom: 4px;
}

.mini-metric-label,
.mini-metric-pct {
    font-family: Consolas, monospace;
    font-size: 9px;
    color: #4A5260;
}

.mini-metric-pct {
    text-align: right;
    color: #8B95A5;
}

.mini-metric-track {
    height: 3px;
    background: #1E2228;
    border-radius: 2px;
    overflow: hidden;
}

.mini-metric-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Maui toolbar spec: 26px height, 9px mono, 2px radius */
.dash-btn,
.action-btn,
.license-btn,
.auto-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 2px;
    border: 1px solid;
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    background: transparent;
    text-transform: uppercase;
}

.dash-pill,
.pill,
.company-status-pill,
.registration-pill {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 2px;
    border: 1px solid;
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
}

.pill-btn {
    cursor: pointer;
    font: inherit;
}

.pill-vms-on { background: #0D1F24; border-color: #00D4FF44; color: #00D4FF; }
.pill-vms-off { background: #0A0B0D; border-color: #2A2F38; color: #4A5260; }
.pill-ai-on { background: #180F24; border-color: #B388FF44; color: #B388FF; }
.pill-ai-off { background: #0A0B0D; border-color: #2A2F38; color: #4A5260; }

.company-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.company-status-active {
    background: #0D1F16;
    border-color: #22C55E;
    color: #22C55E;
}

.company-status-disabled {
    background: #1F0D0D;
    border-color: #EF4444;
    color: #EF4444;
}

.auto-toggle.auto-on {
    background: #0D2416;
    border-color: #1A5C30;
    color: #22C55E;
}

.auto-toggle.auto-off {
    background: #2A1010;
    border-color: #7F1D1D;
    color: #EF4444;
}

.dash-btn-neutral {
    background: #1A1D21;
    border-color: #2A2F38;
    color: #8B95A5;
}

.dash-btn-danger {
    background: #1F0D0D;
    border-color: #FF3D3D;
    color: #FF3D3D;
}

.machine-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    width: fit-content;
}

.machine-actions-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
}

/* Mud table cells clip overflow to ellipsis — breaks action buttons */
.table-actions-cell,
.mud-table-cell:has(.machine-actions) {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap;
    min-width: 180px;
}

.machine-actions .dash-btn {
    flex-shrink: 0;
}

.table-actions-cell-wide {
    min-width: 220px;
}

.action-approve { background: #0D1F16; border-color: #00E676; color: #00E676; }
.action-unauthorize { background: #1F1800; border-color: #FFAB00; color: #FFAB00; }
.action-delete { background: #1F0D0D; border-color: #FF3D3D; color: #FF3D3D; }

.license-vms-add { background: #0D1F24; border-color: #00D4FF; color: #00D4FF; }
.license-vms-remove { background: #1A1D21; border-color: #2A2F38; color: #4A5260; }
.license-ai-add { background: #180F24; border-color: #B388FF; color: #B388FF; }
.license-ai-remove { background: #1A1D21; border-color: #2A2F38; color: #4A5260; }

.registration-approved { background: #0D1F16; border-color: #00E67644; color: #00E676; }
.registration-pending { background: #1F1800; border-color: #FFAB0044; color: #FFAB00; }
.registration-revoked { background: #1F0D0D; border-color: #FF3D3D44; color: #FF3D3D; }

.filter-pill {
    min-width: 120px;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    font-family: Consolas, monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    color: #0A0B0D !important;
    text-transform: uppercase;
}

.filter-errors { background: #FFAB00 !important; }
.filter-all { background: #00D4FF !important; }

.events-badge {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0A0B0D;
    background: #FFAB00;
    text-transform: uppercase;
}

.metric-gauge {
    height: 6px;
    background: #1E2228;
    border-radius: 2px;
    overflow: hidden;
}

.metric-gauge-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-online { background: #00E676; }
.status-dot-warning { background: #FFAB00; }
.status-dot-offline { background: #4A5260; }

.log-content {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    white-space: pre-wrap;
    background: #0F1114;
    border: 1px solid #1E2228;
    padding: 12px;
    max-height: 60vh;
    overflow: auto;
}
