* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #ffffff;
    --surface: #f8f9fa;
    --surface-elevated: #ffffff;
    --border: #e4e6eb;
    --border-hover: #d0d4dc;
    --text: #5a5f6b;
    --text-bright: #1a1d23;
    --text-muted: #8b919d;
    --health-good: #3d9970;
    --health-warn: #d4893a;
    --health-bad: #e25555;
    --pulse: rgba(61, 153, 112, 0.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.12s ease;
    --transition-base: 0.2s ease;
}

body {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 14px;
    letter-spacing: -0.01em;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbfc 0%, var(--surface) 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-bright);
}

.brand-icon {
    font-size: 16px;
    color: var(--health-good);
    animation: pulse 2.5s infinite;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--health-good);
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(61, 153, 112, 0.4);
}

.status-dot.disconnected {
    background: var(--health-bad);
    animation: none;
    box-shadow: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 153, 112, 0.35); }
    50% { opacity: 0.55; transform: scale(0.9); box-shadow: 0 0 0 4px rgba(61, 153, 112, 0); }
}

/* History controls */
.history-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(8px);
}

/* Mode badge */
.mode-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.mode-badge.live {
    background: rgba(61, 153, 112, 0.1);
    border-color: rgba(61, 153, 112, 0.3);
    color: var(--health-good);
}

.mode-badge.live .badge-dot {
    background: var(--health-good);
    animation: pulse 2s infinite;
}

.mode-badge.paused {
    background: rgba(212, 137, 58, 0.1);
    border-color: rgba(212, 137, 58, 0.3);
    color: var(--health-warn);
}

.mode-badge.paused .badge-dot {
    background: var(--health-warn);
    animation: none;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Live/Pause button */
.btn-live {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-bright);
    font-family: inherit;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-live:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-live:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-live.live-active {
    background: rgba(61, 153, 112, 0.15);
    border-color: rgba(61, 153, 112, 0.4);
    color: var(--health-good);
    animation: subtle-pulse 2.5s infinite;
}

.btn-live.paused-active {
    background: rgba(212, 137, 58, 0.15);
    border-color: rgba(212, 137, 58, 0.4);
    color: var(--health-warn);
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61, 153, 112, 0.35); }
    50% { box-shadow: 0 0 0 4px rgba(61, 153, 112, 0); }
}

/* Navigation controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity var(--transition-base);
}

.nav-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--border-hover);
    color: var(--text-bright);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    box-shadow: none;
}

/* Slider */
.step-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 320px;
}

.step-slider {
    flex: 1;
    min-width: 140px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    outline: none;
    border-radius: 3px;
    transition: background var(--transition-fast);
}

.step-slider:hover:not(:disabled) {
    background: var(--border-hover);
}

.step-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--text-bright);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--bg);
}

.step-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--health-good);
    box-shadow: var(--shadow-md);
}

.step-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--text-bright);
    cursor: pointer;
    border: 2px solid var(--bg);
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.step-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: var(--health-good);
    box-shadow: var(--shadow-md);
}

.step-slider:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.step-display {
    min-width: 90px;
    text-align: right;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--text-bright);
    font-weight: 500;
}

/* Main layout */
main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 12.5% 87.5%;
    grid-template-rows: 1fr;
    gap: 1px;
    background: var(--border);
    overflow: hidden;
}

/* Sidebar */
aside {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.control {
    flex: 0 0 auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.control label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 500;
}

select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-bright);
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5f6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

select:hover { border-color: var(--border-hover); }
select:focus { border-color: var(--health-good); box-shadow: 0 0 0 3px rgba(61, 153, 112, 0.1); }

/* Summary */
.summary {
    flex: 0 0 auto;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.summary-item:last-child {
    padding-bottom: 0;
    margin-bottom: 2px;
}

.summary-item:hover {
    border-bottom-color: var(--border);
}

.summary-item .value {
    color: var(--text-bright);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* Main panel */
.layers {
    background: var(--bg);
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-content: start;
    min-height: 0;
}

/* Layer grid */
.layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    align-content: start;
}

/* Group header */
.group-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.group-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-section.nested {
    margin-left: 16px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
    margin-bottom: 12px;
}

.group-section.nested:last-child {
    margin-bottom: 0;
}

.group-header {
    cursor: default;
}

.group-header.expandable {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.group-header.expandable:hover {
    color: var(--text-bright);
}

.group-header .expand-icon {
    font-size: 10px;
    width: 12px;
    text-align: center;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.group-header.expandable:hover .expand-icon {
    color: var(--text-bright);
}

.group-header.nested {
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    border-bottom: none;
    padding-bottom: 4px;
    margin-bottom: 4px;
    margin-top: 10px;
}

.group-content {
    transition: opacity 0.15s ease-out;
}

/* Layer card */
.layer {
    border: 1px solid var(--border);
    padding: clamp(4px, 0.8vw, 6px) clamp(4px, 0.8vw, 6px);
    position: relative;
    transition: all var(--transition-base);
    background: var(--surface-elevated);
    min-width: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.layer:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.layer.warning { border-color: var(--health-warn); }
.layer.critical { border-color: var(--health-bad); }

.layer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(2px, 0.6vw, 4px);
    gap: clamp(3px, 0.8vw, 5px);
}

.layer-name {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 0.01em;
    word-break: break-word;
}

.layer-type {
    font-size: clamp(11px, 1.8vw, 15px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Pulse visualization */
.pulse-viz {
    width: 100%;
    height: clamp(28px, 5vw, 40px);
    background: var(--bg);
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(3px, 0.8vw, 5px);
    border-radius: var(--radius-sm);
    display: block;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.pulse-viz:hover {
    border-color: var(--border-hover);
}

.pulse-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2px, 0.6vw, 4px);
}

.metric {
    text-align: center;
    min-width: 0;
}

.metric-value {
    font-size: clamp(10px, 1.6vw, 13px);
    font-weight: 600;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    transition: color 0.15s;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: clamp(8px, 1.2vw, 11px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
}

/* Health colors */
.good { color: var(--health-good); }
.warn { color: var(--health-warn); }
.bad { color: var(--health-bad); }

/* Empty state */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
    color: var(--text-muted);
    font-size: 14px;
    animation: fadeIn 0.5s ease;
}

.empty::before {
    content: '';
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--health-good);
    border-radius: 50%;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alerts */
.alerts-scroll-container {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.alerts {
    background: var(--surface);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    transition: all var(--transition-base);
    min-height: min-content;
}

.alerts:empty {
    padding: 0;
    min-height: 0;
}

.alerts.visible {
    transform: translateY(0);
}

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(212, 137, 58, 0.08);
    border: 1px solid rgba(212, 137, 58, 0.15);
}

.alert.critical {
    background: rgba(226, 85, 85, 0.08);
    border-color: rgba(226, 85, 85, 0.15);
}

.alert-icon { color: var(--health-warn); }
.alert.critical .alert-icon { color: var(--health-bad); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
::-webkit-scrollbar-corner { background: transparent; }

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 0.4s, transform 0.2s ease 0.4s;
    z-index: 1000;
}

[data-tooltip]::before {
    content: '';
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    border: 5px solid transparent;
    border-top-color: var(--text-bright);
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    top: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--text-bright);
    color: var(--bg);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    max-width: 260px;
    white-space: normal;
    box-shadow: var(--shadow-lg);
    line-height: 1.4;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Position tooltip above for elements at bottom of viewport */
[data-tooltip][data-tooltip-position="top"]::before {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--text-bright);
    transform: translateX(-50%) translateY(4px);
}

[data-tooltip][data-tooltip-position="top"]::after {
    top: auto;
    bottom: calc(100% + 9px);
    transform: translateX(-50%) translateY(4px);
}

[data-tooltip][data-tooltip-position="top"]:hover::before,
[data-tooltip][data-tooltip-position="top"]:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    max-width: 900px;
    width: 95%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s ease;
}

.modal-overlay.visible .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text-bright);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.modal-canvas-container {
    width: 100%;
    max-width: 100%;
    height: 300px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.modal-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
    font-size: 13px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 24px;
    height: 3px;
    border-radius: 2px;
}

.legend-color.act { background: var(--health-good); }
.legend-color.grad { background: #9b7ad4; }

/* Settings button */
.btn-settings {
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-settings:hover {
    border-color: var(--border-hover);
    color: var(--text-bright);
    transform: translateY(-1px) rotate(15deg);
    box-shadow: var(--shadow-md);
}

.btn-settings:active {
    transform: translateY(0) rotate(15deg);
    box-shadow: var(--shadow-sm);
}

/* Configuration panel */
.config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.config-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.config-panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    width: 420px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s ease;
}

.config-overlay.visible .config-panel {
    transform: translateY(0) scale(1);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.config-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
}

.config-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.config-close:hover {
    background: var(--border);
    color: var(--text-bright);
    transform: rotate(90deg);
}

.config-section {
    margin-bottom: 20px;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.config-item:last-child {
    margin-bottom: 0;
}

.config-item-label {
    font-size: 13px;
    color: var(--text-bright);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.config-item-value {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.config-range {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    outline: none;
    border-radius: 3px;
    transition: background var(--transition-fast);
}

.config-range:hover {
    background: var(--border-hover);
}

.config-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--text-bright);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--bg);
}

.config-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--health-good);
    box-shadow: var(--shadow-md);
}

.config-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--text-bright);
    cursor: pointer;
    border: 2px solid var(--bg);
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.config-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: var(--health-good);
    box-shadow: var(--shadow-md);
}

.config-description {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

/* Focus visible */
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--health-good);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
