/* ═══════════════════════════════════════════════════════════
   Anagrama RF — Reconocimiento Facial PWA
   Mobile-first · Dark theme · Inter font
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #0f172a;
    --bg-card:     #1e293b;
    --bg-elevated: #334155;
    --text:        #f1f5f9;
    --text-muted:  #94a3b8;
    --primary:     #3b82f6;
    --primary-dim: #1e40af;
    --accent:      #10b981;
    --accent-dim:  #065f46;
    --danger:      #ef4444;
    --warning:     #f59e0b;
    --radius:      12px;
    --radius-sm:   8px;
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100dvh;
    overscroll-behavior: none;
}

.hidden { display: none !important; }

/* ── Loading Overlay ───────────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.overlay__content {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--bg-elevated);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: spin 0.8s linear infinite;
}

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

.overlay__text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── App Container ─────────────────────────────────────── */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    max-width: 480px;
    margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.header__logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.header__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.header__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-force-update {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.btn-force-update:active {
    background: var(--primary-dim);
    color: var(--text);
}
.btn-force-update--spin svg {
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.header__subtitle {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge--loading {
    background: var(--warning);
    color: #000;
    animation: pulse-badge 1.5s ease-in-out infinite;
}

.badge--ready {
    background: var(--accent);
    color: #000;
}

.badge--error {
    background: var(--danger);
    color: #fff;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ── Settings Menu ────────────────────────────────────── */
.settings-wrap {
    position: relative;
}
.btn-settings {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.btn-settings:active {
    background: var(--primary-dim);
    color: var(--text);
}
.settings-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.375rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    min-width: 12rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 50;
    overflow: hidden;
}
.settings-menu__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    background: none;
    color: var(--text);
    font-size: 0.8125rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.settings-menu__item:active {
    background: rgba(255,255,255,0.08);
}
.settings-menu__item + .settings-menu__item {
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Camera Section ────────────────────────────────────── */
.camera-section {
    padding: 1rem;
    flex-shrink: 0;
}

.camera-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 8px 32px rgba(0,0,0,0.4);
}

.camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Camera toggle button */
.btn-switch-cam {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.btn-switch-cam:active { background: rgba(0,0,0,0.7); }

/* Face guide */
.face-guide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}

.face-guide--ok   { color: #22c55e; }
.face-guide--warn { color: #eab308; }
.face-guide--bad  { color: #ef4444; }

.face-guide__svg {
    width: 55%;
    max-width: 200px;
}

/* ── Capture Flash ───────────────────────────────────── */
.capture-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
    z-index: 5;
}
.capture-flash--active {
    opacity: 0.7;
    transition: none;
}

/* ── Guide Instruction ────────────────────────────────── */
.guide-instruction {
    position: absolute;
    bottom: 48px;
    left: 8px;
    right: 8px;
    z-index: 5;
    text-align: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s, background 0.3s;
}

.guide-instruction--ok {
    color: var(--accent);
    background: rgba(16,185,129,0.15);
}

.guide-instruction--warn {
    color: var(--warning);
    background: rgba(245,158,11,0.15);
}

.guide-instruction--bad {
    color: var(--danger);
    background: rgba(239,68,68,0.15);
}

.guide-instruction--countdown {
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    padding: 0;
    background: none;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    animation: countdown-pulse 0.8s ease-out;
}

@keyframes countdown-pulse {
    0% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ── Capture Progress ─────────────────────────────────── */
.capture-progress {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.capture-progress__bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}

.capture-progress__bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease-out;
}

.capture-progress__text {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* ── Quality Indicators ───────────────────────────────── */
.quality-indicators {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.qi-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.6);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.6875rem;
}

.qi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.qi-dot--ok   { background: var(--accent); }
.qi-dot--warn { background: var(--warning); }
.qi-dot--bad  { background: var(--danger); }

.qi-label {
    font-weight: 600;
    min-width: 3em;
}

.qi-name {
    color: var(--text-muted);
    margin-left: 2px;
}

/* ── Result Card ───────────────────────────────────────── */
.result-card {
    position: relative;
    margin: 0 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-align: center;
    animation: slide-up 0.35s ease-out;
    border: 1px solid rgba(255,255,255,0.06);
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-card__icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.result-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.result-card__detail {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.result-card__meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-card__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.result-card__close:hover { color: var(--text); }

.result-card--success { border-color: var(--accent); }
.result-card--fail    { border-color: var(--danger); }
.result-card--warning { border-color: var(--warning); }

/* ── Diagnostics ───────────────────────────────────────── */
.diagnostics {
    margin: 0.75rem 1rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.diagnostics__toggle {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    list-style: none;
    user-select: none;
}

.diagnostics__toggle::-webkit-details-marker { display: none; }
.diagnostics__toggle::marker { content: ''; }

.diagnostics__toggle::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.5rem;
    transition: transform 0.2s;
    vertical-align: middle;
}

details[open] .diagnostics__toggle::before {
    transform: rotate(90deg);
}

.diagnostics__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.04);
    padding: 0.5rem;
    gap: 0.5rem;
}

.diag-item {
    text-align: center;
    padding: 0.5rem 0.25rem;
    background: var(--bg);
    border-radius: 6px;
}

.diag-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.diag-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Action Buttons ────────────────────────────────────── */
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.btn--primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

.btn--accent {
    background: var(--accent);
    color: #000;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

.btn--accent:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(16,185,129,0.4);
}

/* ── Calibration Panel ─────────────────────────────────── */
.calibration-panel {
    margin: 0 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}

.calibration-panel__title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--warning);
}

.calibration-panel__field {
    margin-bottom: 0.75rem;
}

.calibration-panel__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.calibration-panel__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* ── Enrolled Info ─────────────────────────────────────── */
.enrolled-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
}

.enrolled-info__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.enrolled-info__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enrolled-info__name {
    font-size: 0.9375rem;
    font-weight: 600;
}

.enrolled-info__date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-clear {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.15s;
    color: var(--text-muted);
}

.btn-clear:hover { background: rgba(239,68,68,0.15); color: var(--danger); }

.btn-clear__icon {
    width: 18px;
    height: 18px;
}

/* ── Modal ─────────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal__card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    animation: slide-up 0.25s ease-out;
}

.modal__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}

.modal__input:focus {
    border-color: var(--primary);
}

.modal__input::placeholder {
    color: var(--text-muted);
}

.modal__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.modal__actions .btn {
    flex: 1;
    padding: 0.75rem;
}

.btn--secondary {
    background: var(--bg-elevated);
    color: var(--text);
}

.modal__card--wide { max-width: 400px; }

.consent-body {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.consent-body ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.consent-body li {
    margin-bottom: 0.375rem;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.consent-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* ── Update Banner ─────────────────────────────────────── */
.update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    padding-bottom: calc(0.875rem + var(--safe-bottom));
    background: var(--primary-dim);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    animation: slide-up-banner 0.4s ease-out;
}

@keyframes slide-up-banner {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.update-banner__btn {
    background: #fff;
    color: var(--primary-dim);
    border: none;
    border-radius: 999px;
    padding: 0.375rem 1rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.update-banner__btn:active { transform: scale(0.95); }

/* ── Tuner Panel ──────────────────────────────────────── */
.tuner-panel {
    margin: 0.75rem 1rem 0;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245,158,11,0.3);
}
.tuner-panel__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--warning);
    margin-bottom: 0.5rem;
}
.tuner-live {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.tuner-meter {
    display: grid;
    grid-template-columns: 42px 1fr 36px;
    align-items: center;
    gap: 4px;
    font-size: 0.625rem;
}
.tuner-meter__label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.tuner-meter__bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.tuner-meter__fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.3s, background 0.3s;
}
.tuner-meter__fill--bad { background: var(--danger); }
.tuner-meter__val {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--text);
}

/* ── Versions Panel ──────────────────────────────────── */
.versions-panel {
    margin: 0.75rem 1rem 0;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
}
.versions-panel__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.versions-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.625rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.versions-panel__list li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.15rem 0;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
    margin-top: auto;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* ── Animations ────────────────────────────────────────── */
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.app:not(.hidden) {
    animation: fade-in 0.4s ease-out;
}

/* ── Responsive ────────────────────────────────────────── */
@media (min-width: 480px) {
    .camera-frame {
        aspect-ratio: 4 / 5;
    }
}

/* ── Login Card ─────────────────────────────────────────── */
.login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    width: min(360px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.login-card__logo { width: 48px; height: 48px; margin-bottom: 0.25rem; }
.login-card__title { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.login-card__subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.login-card .modal__input { width: 100%; }
.login-error {
    width: 100%;
    background: rgba(239,68,68,0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    text-align: center;
}

/* ── Worker List ─────────────────────────────────────────── */
.worker-list {
    list-style: none;
    max-height: 55vh;
    overflow-y: auto;
    width: 100%;
    margin: 0.5rem 0;
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-sm);
}
.worker-list__item {
    padding: 0.65rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-elevated);
    color: var(--text);
    transition: background 0.15s;
}
.worker-list__item:last-child { border-bottom: none; }
.worker-list__item:hover, .worker-list__item:active { background: var(--bg-elevated); }

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