/* ============================================================
   HarmonyGO PWA — HashiCorp-Inspired Design System
   ============================================================ */

/* Fonts are loaded via <link> in index.html for faster, non-blocking render. */

/* ============================================================
   Design Tokens
   ============================================================ */

:root {
    /* Backgrounds */
    --hgo-bg-deepest:       #0d0e12;
    --hgo-bg-dark:          #15181e;
    --hgo-bg-surface:       #1e2024;
    --hgo-bg-surface-hover: #25272c;

    /* Text */
    --hgo-text-primary:   #efeff1;
    --hgo-text-secondary: #d5d7db;
    --hgo-text-muted:     #656a76;
    --hgo-text-heading:   #ffffff;

    /* Borders */
    --hgo-border:       rgba(178, 182, 189, 0.4);
    --hgo-border-subtle: rgba(178, 182, 189, 0.1);
    --hgo-border-input:  rgb(97, 104, 117);

    /* Action Colors */
    --hgo-action:         #1060ff;
    --hgo-action-hover:   #2b89ff;
    --hgo-action-visited: #a737ff;

    /* Semantic Colors */
    --hgo-success:    #00c853;
    --hgo-warning:    #bb5a00;
    --hgo-warning-bg: rgba(187, 90, 0, 0.12);
    --hgo-danger:     #731e25;
    --hgo-danger-accent: #e94560;
    --hgo-info:       #1060ff;

    /* Shadows — WHISPER level only */
    --hgo-shadow:    rgba(97, 104, 117, 0.05) 0px 1px 1px,
                     rgba(97, 104, 117, 0.05) 0px 2px 2px;
    --hgo-shadow-lg: rgba(97, 104, 117, 0.08) 0px 2px 4px,
                     rgba(97, 104, 117, 0.06) 0px 4px 8px;

    /* Radius */
    --hgo-radius-xs: 2px;
    --hgo-radius-sm: 3px;
    --hgo-radius-md: 5px;
    --hgo-radius-lg: 8px;

    /* Focus */
    --hgo-focus: 3px solid var(--hgo-action);

    /* Spacing — 8px base grid */
    --hgo-space-1: 4px;
    --hgo-space-2: 8px;
    --hgo-space-3: 12px;
    --hgo-space-4: 16px;
    --hgo-space-5: 24px;
    --hgo-space-6: 32px;
    --hgo-space-7: 40px;
    --hgo-space-8: 48px;

    /* Typography */
    --hgo-font-brand: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --hgo-font-body:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --hgo-font-mono:  'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
}

/* ============================================================
   Light Theme Override
   ============================================================ */

[data-theme="light"] {
    /* Backgrounds */
    --hgo-bg-deepest:       #f1f2f3;
    --hgo-bg-dark:          #ffffff;
    --hgo-bg-surface:       #f8f8f9;
    --hgo-bg-surface-hover: #eeeff1;

    /* Text */
    --hgo-text-primary:   #15181e;
    --hgo-text-secondary: #3b3d45;
    --hgo-text-muted:     #656a76;
    --hgo-text-heading:   #000000;

    /* Borders */
    --hgo-border:        rgba(59, 61, 69, 0.2);
    --hgo-border-subtle: rgba(59, 61, 69, 0.08);
    --hgo-border-input:  rgb(178, 182, 189);

    /* Action Colors — keep consistent */
    --hgo-action:         #2264d6;
    --hgo-action-hover:   #1a56c4;

    /* Semantic — slightly adjusted for light bg contrast */
    --hgo-success:       #1b8a3e;
    --hgo-warning:       #bb5a00;
    --hgo-warning-bg:    rgba(187, 90, 0, 0.08);
    --hgo-danger:        #731e25;
    --hgo-danger-accent: #c9303e;
    --hgo-info:          #2264d6;

    /* Shadows — slightly more visible on light */
    --hgo-shadow:    rgba(97, 104, 117, 0.08) 0px 1px 2px,
                     rgba(97, 104, 117, 0.06) 0px 2px 4px;
    --hgo-shadow-lg: rgba(97, 104, 117, 0.12) 0px 2px 6px,
                     rgba(97, 104, 117, 0.08) 0px 4px 12px;

    /* Focus — use light-appropriate action color */
    --hgo-focus: 3px solid var(--hgo-action);
}

/* Light theme — link colors */
[data-theme="light"] a { color: var(--hgo-action); }

/* Light theme — loading screen */
[data-theme="light"] .loading-screen { background: var(--hgo-bg-dark); }
[data-theme="light"] .loading-logo h1 { color: var(--hgo-action); }

/* Light theme — scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--hgo-bg-deepest); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--hgo-border-input); }

/* Light theme — setup page background accents */
[data-theme="light"] .setup-page::before {
    background: radial-gradient(ellipse, rgba(34, 100, 214, 0.04) 0%, transparent 70%);
}
[data-theme="light"] .setup-page::after {
    background: radial-gradient(ellipse, rgba(34, 100, 214, 0.03) 0%, transparent 70%);
}

/* ============================================================
   Base Reset
   ============================================================ */

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--hgo-font-body);
    background: var(--hgo-bg-dark);
    color: var(--hgo-text-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    height: 100%;
}

a {
    color: var(--hgo-action);
    text-decoration: none;
}

a:hover {
    color: var(--hgo-action-hover);
    text-decoration: underline;
}

a:visited {
    color: var(--hgo-action-visited);
}

button {
    cursor: pointer;
    font-family: var(--hgo-font-body);
}

/* ============================================================
   Layout
   ============================================================ */

.kiosk-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--hgo-bg-dark);
    padding: var(--hgo-space-4);
    position: relative;
    overflow: hidden;
}

/* Hero Clock — JetBrains Mono, tight line-height */
.kiosk-clock {
    font-family: var(--hgo-font-mono);
    font-size: 5rem;
    font-weight: 600;
    color: var(--hgo-text-heading);
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Date — brand font, heading weight, tight */
.kiosk-date {
    font-family: var(--hgo-font-brand);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hgo-text-secondary);
    text-align: center;
    margin-top: var(--hgo-space-2);
    line-height: 1.21;
    letter-spacing: -0.01em;
}

/* Location — uppercase label style */
.kiosk-location {
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hgo-text-muted);
    text-align: center;
    margin-top: var(--hgo-space-1);
    letter-spacing: 1.3px;
    text-transform: uppercase;
    line-height: 1.69;
}

/* ============================================================
   Method Selection Grid
   ============================================================ */

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hgo-space-4);
    max-width: 500px;
    width: 100%;
    margin-top: var(--hgo-space-5);
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: var(--hgo-space-5) var(--hgo-space-4);
    background: var(--hgo-bg-surface);
    border: 1px solid var(--hgo-border-subtle);
    border-radius: var(--hgo-radius-lg);
    color: var(--hgo-text-primary);
    font-family: var(--hgo-font-body);
    font-size: 15px;
    box-shadow: var(--hgo-shadow);
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.method-btn:hover {
    background: var(--hgo-bg-surface-hover);
    border-color: var(--hgo-border);
}

.method-btn:active {
    transform: scale(0.98);
}

.method-btn:focus-visible {
    outline: var(--hgo-focus);
    outline-offset: 2px;
}

/* Method icon — brand font, large, tight */
.method-icon {
    font-family: var(--hgo-font-brand);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--hgo-space-2);
    line-height: 1;
    color: var(--hgo-text-heading);
}

/* Method label — body, medium */
.method-label {
    font-family: var(--hgo-font-body);
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    color: var(--hgo-text-primary);
}

/* Method hint — uppercase label style */
.method-hint {
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hgo-text-muted);
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-top: var(--hgo-space-1);
    line-height: 1.69;
}

/* ============================================================
   Identification Overlay
   ============================================================ */

.ident-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 14, 18, 0.92);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--hgo-space-4);
}

.ident-panel {
    max-width: 500px;
    width: 100%;
    padding: var(--hgo-space-6);
    background: var(--hgo-bg-surface);
    border-radius: var(--hgo-radius-lg);
    border: 1px solid var(--hgo-border-subtle);
    box-shadow: var(--hgo-shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Panel heading — Inter, tight line-height */
.ident-title {
    font-family: var(--hgo-font-brand);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -0.01em;
    margin-bottom: var(--hgo-space-5);
    color: var(--hgo-text-heading);
}

.ident-cancel {
    margin-top: var(--hgo-space-5);
    background: none;
    border: none;
    color: var(--hgo-text-muted);
    font-family: var(--hgo-font-body);
    font-size: 14px;
    font-weight: 500;
    padding: var(--hgo-space-2) var(--hgo-space-5);
    border-radius: var(--hgo-radius-md);
    transition: color 0.2s ease, background 0.2s ease;
    align-self: center;
}

.ident-cancel:hover {
    color: var(--hgo-text-secondary);
    background: var(--hgo-bg-surface-hover);
}

.ident-cancel:focus-visible {
    outline: var(--hgo-focus);
    outline-offset: 2px;
}

/* ============================================================
   Video Feed
   ============================================================ */

.video-container {
    width: 100%;
    max-width: 400px;
    border-radius: var(--hgo-radius-lg);
    overflow: hidden;
    border: 1px solid var(--hgo-border-subtle);
    position: relative;
    background: var(--hgo-bg-deepest);
}

.video-feed {
    width: 100%;
    display: block;
    min-height: 240px;
    object-fit: cover;
}

.video-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 14, 18, 0.82);
    color: var(--hgo-text-secondary);
    padding: var(--hgo-space-1) var(--hgo-space-3);
    border-radius: var(--hgo-radius-md);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    border: 1px solid var(--hgo-border-subtle);
}

/* ============================================================
   Keypad — Rectangular, NOT circular
   ============================================================ */

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hgo-space-2);
    max-width: 300px;
    width: 100%;
    margin: var(--hgo-space-4) auto 0;
}

.keypad-btn {
    width: 80px;
    height: 64px;
    border-radius: var(--hgo-radius-md);
    font-size: 1.375rem;
    font-weight: 600;
    font-family: var(--hgo-font-mono);
    background: var(--hgo-bg-deepest);
    border: 1px solid var(--hgo-border-input);
    color: var(--hgo-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.keypad-btn:hover {
    background: var(--hgo-bg-surface);
    border-color: var(--hgo-border);
}

.keypad-btn:active {
    background: var(--hgo-action);
    border-color: var(--hgo-action);
    transform: scale(0.97);
}

.keypad-btn:focus-visible {
    outline: var(--hgo-focus);
    outline-offset: 2px;
}

.keypad-display {
    text-align: center;
    font-size: 1.75rem;
    font-family: var(--hgo-font-mono);
    letter-spacing: 0.4rem;
    margin-bottom: var(--hgo-space-5);
    color: var(--hgo-text-primary);
    min-height: 2.75rem;
    line-height: 2.75rem;
    width: 100%;
    border-bottom: 1px solid var(--hgo-border-subtle);
    padding-bottom: var(--hgo-space-2);
}

.pin-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: var(--hgo-space-5);
    flex-wrap: wrap;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--hgo-border-input);
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pin-dot.filled {
    background: var(--hgo-action);
    border-color: var(--hgo-action);
}

/* ============================================================
   Buttons — Primary, Action, Danger
   ============================================================ */

/* Primary: dark bg, border, asymmetric padding */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hgo-space-2);
    padding: 9px 9px 9px 15px;
    background: var(--hgo-bg-dark);
    border: 1px solid var(--hgo-border);
    border-radius: var(--hgo-radius-md);
    color: var(--hgo-text-secondary);
    font-family: var(--hgo-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.btn:hover {
    background: var(--hgo-bg-surface-hover);
    border-color: var(--hgo-border);
    color: var(--hgo-text-primary);
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: var(--hgo-focus);
    outline-offset: 2px;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* Action variant: blue bg, white text */
.btn-action {
    background: var(--hgo-action);
    border-color: var(--hgo-action);
    color: #ffffff;
    padding: 9px 15px;
}

.btn-action:hover {
    background: var(--hgo-action-hover);
    border-color: var(--hgo-action-hover);
    color: #ffffff;
}

/* Danger variant: only for destructive actions */
.btn-danger {
    background: var(--hgo-danger-accent);
    border-color: var(--hgo-danger-accent);
    color: #ffffff;
    padding: 9px 15px;
}

.btn-danger:hover {
    background: #f05572;
    border-color: #f05572;
    color: #ffffff;
}

/* Full-width block button */
.btn-block {
    width: 100%;
    padding: 11px 15px;
}

/* ============================================================
   Punch Result
   ============================================================ */

.punch-result {
    text-align: center;
    padding: var(--hgo-space-6) var(--hgo-space-4);
    width: 100%;
}

.punch-result-icon {
    font-family: var(--hgo-font-brand);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: var(--hgo-space-4);
    line-height: 1;
    color: var(--hgo-text-heading);
}

.punch-result-name {
    font-family: var(--hgo-font-brand);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--hgo-space-2);
    color: var(--hgo-text-heading);
    line-height: 1.17;
    letter-spacing: -0.01em;
}

.punch-result-type {
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hgo-text-muted);
    margin-bottom: var(--hgo-space-3);
    letter-spacing: 1.3px;
    text-transform: uppercase;
    line-height: 1.69;
}

/* Time-in: success green, mono */
.punch-result-time {
    font-family: var(--hgo-font-mono);
    font-size: 3rem;
    font-weight: 600;
    color: var(--hgo-success);
    line-height: 1.1;
}

/* Time-out variant */
.punch-result-time.time-out {
    color: var(--hgo-action);
}

/* Photo — rectangular, NOT circular */
.punch-result-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--hgo-radius-lg);
    object-fit: cover;
    border: 2px solid var(--hgo-border);
    margin-top: var(--hgo-space-5);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Offline notice — warning palette, no pill */
.punch-result-offline {
    color: var(--hgo-warning);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 500;
    margin-top: var(--hgo-space-4);
    padding: var(--hgo-space-2) var(--hgo-space-4);
    background: var(--hgo-warning-bg);
    border-radius: var(--hgo-radius-md);
    display: inline-block;
    border: 1px solid rgba(187, 90, 0, 0.25);
}

/* ============================================================
   Setup Page
   ============================================================ */

.setup-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--hgo-bg-dark);
    padding: var(--hgo-space-4);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern — two radial gradients for depth */
.setup-page::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(16, 96, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.setup-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(16, 96, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.setup-card {
    max-width: 420px;
    width: 100%;
    padding: var(--hgo-space-7) var(--hgo-space-6);
    background: var(--hgo-bg-surface);
    border-radius: var(--hgo-radius-lg);
    border: 1px solid var(--hgo-border-subtle);
    box-shadow: var(--hgo-shadow-lg);
    position: relative;
    z-index: 1;
}

/* Brand Section */
.setup-brand {
    text-align: center;
    margin-bottom: var(--hgo-space-5);
}

.setup-logomark {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--hgo-space-4);
    border-radius: var(--hgo-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hgo-shadow);
    overflow: hidden;
}

.logomark-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Letter fallback kept for AdminLogin "A" badge */
.logomark-letter {
    font-family: var(--hgo-font-brand);
    font-size: 28px;
    font-weight: 700;
    color: var(--hgo-action);
    line-height: 1;
    letter-spacing: -0.02em;
}

.setup-logomark:has(.logomark-letter) {
    background: var(--hgo-bg-deepest);
    border: 1px solid var(--hgo-border);
}

.setup-wordmark {
    font-family: var(--hgo-font-brand);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hgo-text-heading);
    line-height: 1.17;
    letter-spacing: -0.01em;
    margin: 0;
}

.setup-tagline {
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hgo-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-top: var(--hgo-space-2);
}

/* Divider */
.setup-divider {
    height: 1px;
    background: var(--hgo-border-subtle);
    margin-bottom: var(--hgo-space-5);
}

/* Alerts */
.setup-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--hgo-space-3);
    padding: var(--hgo-space-3) var(--hgo-space-4);
    border-radius: var(--hgo-radius-md);
    margin-bottom: var(--hgo-space-5);
    font-family: var(--hgo-font-body);
    font-size: 14px;
    line-height: 1.5;
}

.setup-alert.is-error {
    background: rgba(115, 30, 37, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.3);
    color: var(--hgo-danger-accent);
}

.setup-alert.is-success {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: var(--hgo-success);
}

.alert-icon {
    font-family: var(--hgo-font-brand);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: var(--hgo-radius-xs);
    flex-shrink: 0;
    line-height: 1.4;
}

.is-error .alert-icon {
    background: rgba(233, 69, 96, 0.2);
    color: var(--hgo-danger-accent);
}

.is-success .alert-icon {
    background: rgba(0, 200, 83, 0.2);
    color: var(--hgo-success);
}

.alert-text {
    flex: 1;
    padding-top: 1px;
}

/* Form */
.setup-form {
    display: flex;
    flex-direction: column;
    gap: var(--hgo-space-4);
}

.setup-field {
    display: flex;
    flex-direction: column;
    gap: var(--hgo-space-1);
}

.setup-label {
    font-family: var(--hgo-font-brand);
    font-size: 13px;
    font-weight: 600;
    color: var(--hgo-text-secondary);
    letter-spacing: 0.3px;
}

.setup-input {
    width: 100%;
    padding: 11px 12px;
    background: var(--hgo-bg-deepest);
    border: 1px solid var(--hgo-border-input);
    border-radius: var(--hgo-radius-md);
    color: var(--hgo-text-primary);
    font-family: var(--hgo-font-mono);
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.2s ease;
    display: block;
}

.setup-input:focus {
    outline: var(--hgo-focus);
    outline-offset: 0;
    border-color: var(--hgo-action);
}

.setup-input::placeholder {
    color: var(--hgo-text-muted);
    font-family: var(--hgo-font-body);
    font-style: normal;
}

.setup-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.setup-hint {
    font-family: var(--hgo-font-body);
    font-size: 12px;
    color: var(--hgo-text-muted);
    line-height: 1.5;
    margin-top: 2px;
}

/* Input group (input + toggle button) */
.setup-input-group {
    position: relative;
    display: flex;
}

.setup-input-group .setup-input {
    padding-right: 64px;
}

.setup-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--hgo-bg-surface);
    border: 1px solid var(--hgo-border-subtle);
    border-radius: var(--hgo-radius-sm);
    color: var(--hgo-text-muted);
    font-family: var(--hgo-font-brand);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.setup-toggle:hover {
    color: var(--hgo-text-primary);
    border-color: var(--hgo-border);
}

/* CTA Button */
.setup-btn {
    width: 100%;
    padding: 12px 15px;
    background: var(--hgo-action);
    border: 1px solid var(--hgo-action);
    border-radius: var(--hgo-radius-md);
    color: #ffffff;
    font-family: var(--hgo-font-brand);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hgo-space-2);
    margin-top: var(--hgo-space-2);
    cursor: pointer;
}

.setup-btn:hover {
    background: var(--hgo-action-hover);
    border-color: var(--hgo-action-hover);
}

.setup-btn:active {
    transform: scale(0.98);
}

.setup-btn:focus-visible {
    outline: var(--hgo-focus);
    outline-offset: 2px;
}

.setup-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.setup-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

/* Footer */
.setup-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hgo-space-3);
    margin-top: var(--hgo-space-6);
    padding-top: var(--hgo-space-5);
    border-top: 1px solid var(--hgo-border-subtle);
}

.setup-footer-text {
    font-family: var(--hgo-font-body);
    font-size: 12px;
    color: var(--hgo-text-muted);
}

.setup-footer-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--hgo-text-muted);
    opacity: 0.5;
}

/* ============================================================
   Admin Pages
   ============================================================ */

.admin-page {
    padding: var(--hgo-space-6);
    height: 100vh;
    overflow-y: auto;
    background: var(--hgo-bg-dark);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--hgo-space-6);
    flex-wrap: wrap;
    gap: var(--hgo-space-4);
}

/* Page heading — Inter, tight */
.admin-header h1 {
    font-family: var(--hgo-font-brand);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hgo-text-heading);
    line-height: 1.17;
    letter-spacing: -0.01em;
}

.admin-card {
    background: var(--hgo-bg-surface);
    border-radius: var(--hgo-radius-lg);
    padding: var(--hgo-space-5);
    margin-bottom: var(--hgo-space-3);
    border: 1px solid var(--hgo-border-subtle);
    box-shadow: var(--hgo-shadow);
}

.admin-stat {
    display: flex;
    flex-direction: column;
    gap: var(--hgo-space-1);
}

/* Stat value — mono for numbers */
.admin-stat-value {
    font-family: var(--hgo-font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--hgo-text-heading);
    line-height: 1;
}

/* Stat label — uppercase label style */
.admin-stat-label {
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hgo-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.3px;
    line-height: 1.69;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--hgo-space-3);
}

/* Admin buttons — primary style */
.admin-btn {
    padding: 9px 9px 9px 15px;
    background: var(--hgo-bg-dark);
    border: 1px solid var(--hgo-border);
    border-radius: var(--hgo-radius-md);
    color: var(--hgo-text-secondary);
    font-family: var(--hgo-font-body);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-btn:hover {
    background: var(--hgo-bg-surface-hover);
    border-color: var(--hgo-border);
    color: var(--hgo-text-primary);
}

.admin-btn:active {
    transform: scale(0.98);
}

.admin-btn:focus-visible {
    outline: var(--hgo-focus);
    outline-offset: 2px;
}

.admin-btn.primary {
    background: var(--hgo-action);
    border-color: var(--hgo-action);
    color: #ffffff;
    padding: 9px 15px;
}

.admin-btn.primary:hover {
    background: var(--hgo-action-hover);
    border-color: var(--hgo-action-hover);
    color: #ffffff;
}

.admin-btn.danger {
    background: var(--hgo-danger-accent);
    border-color: var(--hgo-danger-accent);
    color: #ffffff;
    padding: 9px 15px;
}

/* ============================================================
   Status Indicators — solid dots, NO glow
   ============================================================ */

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--hgo-success);
}

.status-dot.offline {
    background: var(--hgo-danger-accent);
}

/* Syncing: opacity pulse only, no glow */
.status-dot.syncing {
    background: var(--hgo-action);
    animation: pulse 1.4s ease-in-out infinite;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--hgo-space-2);
    padding: var(--hgo-space-1) var(--hgo-space-3);
    border-radius: var(--hgo-radius-sm);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 500;
    background: var(--hgo-bg-surface);
    border: 1px solid var(--hgo-border-subtle);
    color: var(--hgo-text-secondary);
    user-select: none;
}

.sync-count {
    background: var(--hgo-danger-accent);
    color: #ffffff;
    border-radius: var(--hgo-radius-sm);
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--hgo-font-mono);
    line-height: 1;
    padding: 0 3px;
}

/* ============================================================
   Animations — snappy, no bounce
   ============================================================ */

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

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

.fade-in  { animation: fadeIn  0.2s ease both; }
.scale-in { animation: scaleIn 0.2s ease-out both; }
.slide-up { animation: slideUp 0.2s ease-out both; }

/* ============================================================
   Loading Screen
   ============================================================ */

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--hgo-bg-dark);
    gap: var(--hgo-space-4);
}

.loading-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hgo-space-3);
}

.loading-icon {
    width: 96px;
    height: 96px;
    display: block;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(244, 81, 30, 0.28);
}

.loading-logo h1 {
    font-family: var(--hgo-font-brand);
    font-size: 3rem;
    font-weight: 700;
    color: var(--hgo-text-heading);
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.17;
    margin: 0;
}

.loading-logo p {
    font-family: var(--hgo-font-body);
    color: var(--hgo-text-muted);
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    margin-top: var(--hgo-space-2);
}

/* Blazor loading progress — action color, not red */
.loading-progress {
    position: relative;
    display: block;
    width: 5rem;
    height: 5rem;
    margin: var(--hgo-space-3) auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--hgo-border-subtle);
    stroke-width: 0.4rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--hgo-action);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

/* ============================================================
   Utility — Visually Hidden (screen-reader accessible)
   ============================================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Identity Overlay — shared error / info text
   ============================================================ */

.ident-error {
    color: var(--hgo-danger-accent);
    text-align: center;
    margin-top: var(--hgo-space-3);
    font-family: var(--hgo-font-body);
    font-size: 14px;
}

.ident-info {
    color: var(--hgo-text-muted);
    text-align: center;
    font-family: var(--hgo-font-body);
    font-size: 14px;
    margin-bottom: var(--hgo-space-3);
}

/* ============================================================
   Face Capture — Liveness instruction
   ============================================================ */

.liveness-instruction {
    text-align: center;
    margin-top: var(--hgo-space-4);
    color: var(--hgo-action);
    font-family: var(--hgo-font-body);
    font-size: 15px;
    font-weight: 500;
}

/* ============================================================
   Fingerprint Auth
   ============================================================ */

.fp-icon {
    font-family: var(--hgo-font-brand);
    font-size: 3rem;
    font-weight: 700;
    color: var(--hgo-text-muted);
    margin: var(--hgo-space-5) 0;
    text-align: center;
    transition: opacity 0.2s ease;
}

.fp-icon--loading {
    opacity: 0.4;
}

.fp-prompt {
    color: var(--hgo-text-primary);
    font-family: var(--hgo-font-body);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--hgo-space-2);
}

.fp-spinner-row {
    display: flex;
    justify-content: center;
    margin-bottom: var(--hgo-space-4);
}

.fp-spinner-dot {
    width: 16px;
    height: 16px;
}

.fp-auth-btn {
    margin-bottom: var(--hgo-space-3);
}

/* ============================================================
   Manual Keypad
   ============================================================ */

.keypad-step {
    text-align: center;
    color: var(--hgo-text-muted);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    margin-bottom: var(--hgo-space-2);
}

.keypad-btn-clear {
    font-size: 14px;
}

.keypad-btn-confirm {
    background: var(--hgo-action) !important;
    border-color: var(--hgo-action) !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
}

.keypad-btn-confirm:hover {
    background: var(--hgo-action-hover) !important;
    border-color: var(--hgo-action-hover) !important;
}

/* ============================================================
   Punch Result — countdown
   ============================================================ */

.result-countdown {
    color: var(--hgo-text-muted);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    margin-top: var(--hgo-space-4);
    text-align: center;
}

/* ============================================================
   Status Dot — warning state
   ============================================================ */

.status-dot.warning {
    background: var(--hgo-warning);
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    font-family: var(--hgo-font-mono);
    font-size: 0.7rem;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hgo-text-muted);
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ============================================================
   Blazor Error UI
   ============================================================ */

#blazor-error-ui {
    color-scheme: dark;
    background: var(--hgo-bg-surface);
    border-top: 1px solid var(--hgo-danger-accent);
    bottom: 0;
    box-shadow: var(--hgo-shadow-lg);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: var(--hgo-space-3) var(--hgo-space-5);
    position: fixed;
    width: 100%;
    z-index: 9999;
    color: var(--hgo-text-primary);
    font-family: var(--hgo-font-body);
    font-size: 14px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: var(--hgo-space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--hgo-text-muted);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

#blazor-error-ui .dismiss:hover {
    color: var(--hgo-text-primary);
}

.blazor-error-boundary {
    background: var(--hgo-bg-surface);
    border: 1px solid var(--hgo-danger-accent);
    border-left: 3px solid var(--hgo-danger-accent);
    border-radius: var(--hgo-radius-lg);
    padding: var(--hgo-space-4) var(--hgo-space-4) var(--hgo-space-4) var(--hgo-space-7);
    color: var(--hgo-text-primary);
    position: relative;
    font-family: var(--hgo-font-body);
    font-size: 14px;
}

.blazor-error-boundary::before {
    content: '\26A0';
    position: absolute;
    left: var(--hgo-space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--hgo-danger-accent);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ============================================================
   Utility Classes
   ============================================================ */

.text-primary   { color: var(--hgo-text-primary); }
.text-secondary { color: var(--hgo-text-secondary); }
.text-muted     { color: var(--hgo-text-muted); }
.text-heading   { color: var(--hgo-text-heading); }
.text-success   { color: var(--hgo-success); }
.text-danger    { color: var(--hgo-danger-accent); }
.text-warning   { color: var(--hgo-warning); }
.text-action    { color: var(--hgo-action); }
.text-center    { text-align: center; }

.mono { font-family: var(--hgo-font-mono); }
.brand { font-family: var(--hgo-font-brand); }

/* Uppercase label utility */
.label-upper {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    line-height: 1.69;
    color: var(--hgo-text-muted);
}

/* ============================================================
   Responsive — Tablet (768px)
   ============================================================ */

@media (max-width: 768px) {
    .kiosk-clock {
        font-size: 3.5rem;
    }

    .kiosk-date {
        font-size: 1.1rem;
    }

    .method-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--hgo-space-3);
        max-width: 380px;
    }

    .method-btn {
        min-height: 100px;
        padding: var(--hgo-space-4) var(--hgo-space-3);
    }

    .method-icon {
        font-size: 1.75rem;
    }

    .keypad-btn {
        width: 70px;
        height: 58px;
        font-size: 1.25rem;
    }

    .ident-panel {
        padding: var(--hgo-space-5);
    }

    .punch-result-time {
        font-size: 2.25rem;
    }

    .punch-result-name {
        font-size: 1.375rem;
    }

    .admin-page {
        padding: var(--hgo-space-5);
    }
}

/* ============================================================
   Responsive — Mobile (480px)
   ============================================================ */

/* ============================================================
   Kiosk Main Screen — supplementary classes
   ============================================================ */

/* Top header bar: org name + status badges */
.kiosk-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hgo-space-4) var(--hgo-space-5);
    border-bottom: 1px solid var(--hgo-border-subtle);
    background: var(--hgo-bg-dark);
}

.kiosk-org-name {
    font-family: var(--hgo-font-brand);
    font-size: 15px;
    font-weight: 600;
    color: var(--hgo-text-primary);
    letter-spacing: -0.01em;
}

.kiosk-status-row {
    display: flex;
    align-items: center;
    gap: var(--hgo-space-2);
}

/* Instruction prompt below the clock */
.kiosk-prompt {
    font-family: var(--hgo-font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--hgo-text-muted);
    text-align: center;
    margin-top: var(--hgo-space-4);
    margin-bottom: var(--hgo-space-2);
    line-height: 1.5;
}

/* Bottom footer: admin link */
.kiosk-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--hgo-space-4);
    border-top: 1px solid var(--hgo-border-subtle);
}

/* Clock drift warning — warning palette, subtle */
.clock-drift-warning {
    display: inline-flex;
    align-items: center;
    gap: var(--hgo-space-2);
    margin-top: var(--hgo-space-3);
    padding: var(--hgo-space-2) var(--hgo-space-4);
    background: var(--hgo-warning-bg);
    border: 1px solid rgba(187, 90, 0, 0.25);
    border-radius: var(--hgo-radius-md);
    color: var(--hgo-warning);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   Ident Panel — supplementary classes
   ============================================================ */

/* Method tag inside ident panel */
.ident-method-tag {
    margin-bottom: var(--hgo-space-2);
    color: var(--hgo-action);
}

/* Subtitle / description inside ident panel */
.ident-desc {
    font-family: var(--hgo-font-body);
    font-size: 14px;
    color: var(--hgo-text-muted);
    text-align: center;
    margin-bottom: var(--hgo-space-4);
    line-height: 1.5;
}

/* Countdown label at bottom of result panel */
.ident-countdown {
    margin-top: var(--hgo-space-5);
    color: var(--hgo-text-muted);
}

/* Placeholder box for scanner/camera (no device connected) */
.ident-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: var(--hgo-bg-deepest);
}

.ident-placeholder-label {
    font-family: var(--hgo-font-brand);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hgo-text-muted);
    letter-spacing: -0.02em;
}

/* Fingerprint sensor box */
.ident-sensor {
    width: 120px;
    height: 120px;
    border-radius: var(--hgo-radius-lg);
    background: var(--hgo-bg-deepest);
    border: 1px solid var(--hgo-border-input);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--hgo-space-5) auto;
}

.ident-sensor-label {
    font-family: var(--hgo-font-brand);
    font-size: 2rem;
    font-weight: 700;
    color: var(--hgo-text-muted);
}

.ident-sensor-active {
    border-color: var(--hgo-action);
    animation: pulse 1.4s ease-in-out infinite;
}

/* Empty keypad cell (no button) */
.keypad-empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

.keypad-empty:hover {
    background: transparent;
    border-color: transparent;
}

/* ============================================================
   Back button — ghost style
   ============================================================ */

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: var(--hgo-space-2);
    padding: 7px 12px;
    background: none;
    border: 1px solid var(--hgo-border-subtle);
    border-radius: var(--hgo-radius-md);
    color: var(--hgo-text-muted);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.btn-back:hover {
    color: var(--hgo-text-primary);
    border-color: var(--hgo-border);
    background: var(--hgo-bg-surface-hover);
}

.btn-back:focus-visible {
    outline: var(--hgo-focus);
    outline-offset: 2px;
}

/* ============================================================
   Admin Top Bar
   ============================================================ */

.admin-topbar {
    display: flex;
    align-items: center;
    gap: var(--hgo-space-4);
    margin-bottom: var(--hgo-space-5);
    padding-bottom: var(--hgo-space-4);
    border-bottom: 1px solid var(--hgo-border-subtle);
}

.admin-topbar-title {
    flex: 1;
    font-family: var(--hgo-font-brand);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hgo-text-heading);
    line-height: 1.17;
    letter-spacing: -0.01em;
    margin: 0;
}

/* ============================================================
   Info Grid — key/value pairs
   ============================================================ */

.info-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 2fr;
    gap: 0;
    margin-top: var(--hgo-space-4);
}

.info-label {
    font-family: var(--hgo-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--hgo-text-muted);
    padding: var(--hgo-space-2) var(--hgo-space-3) var(--hgo-space-2) 0;
    border-bottom: 1px solid var(--hgo-border-subtle);
    display: flex;
    align-items: center;
}

.info-value {
    font-family: var(--hgo-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--hgo-text-primary);
    padding: var(--hgo-space-2) 0;
    border-bottom: 1px solid var(--hgo-border-subtle);
    display: flex;
    align-items: center;
    gap: var(--hgo-space-2);
}

.info-label:last-of-type,
.info-value:last-of-type {
    border-bottom: none;
}

/* Empty state in tables/lists */
.info-empty {
    font-family: var(--hgo-font-body);
    font-size: 14px;
    color: var(--hgo-text-muted);
    padding: var(--hgo-space-4) 0;
    text-align: center;
}

/* Paragraph description text in cards */
.info-desc {
    font-family: var(--hgo-font-body);
    font-size: 14px;
    color: var(--hgo-text-secondary);
    line-height: 1.55;
    margin: var(--hgo-space-3) 0 var(--hgo-space-4);
}

/* ============================================================
   Admin Action Row
   ============================================================ */

.admin-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hgo-space-2);
    margin-top: var(--hgo-space-4);
}

/* ============================================================
   Punch Table
   ============================================================ */

.punch-table {
    margin-top: var(--hgo-space-4);
    border: 1px solid var(--hgo-border-subtle);
    border-radius: var(--hgo-radius-md);
    overflow: hidden;
}

.punch-row {
    display: grid;
    grid-template-columns: 2fr 2fr 60px 80px 80px;
    gap: var(--hgo-space-3);
    padding: var(--hgo-space-2) var(--hgo-space-4);
    align-items: center;
    border-bottom: 1px solid var(--hgo-border-subtle);
    font-family: var(--hgo-font-body);
    font-size: 13px;
    color: var(--hgo-text-primary);
    transition: background 0.15s ease;
}

.punch-row:last-child {
    border-bottom: none;
}

.punch-row:not(.punch-row-header):hover {
    background: var(--hgo-bg-surface-hover);
}

.punch-row-header {
    background: var(--hgo-bg-deepest);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--hgo-font-body);
    color: var(--hgo-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--hgo-border);
}

/* ============================================================
   Badge — status pill
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: var(--hgo-radius-xs);
    font-family: var(--hgo-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-success,
.badge-synced {
    background: rgba(0, 200, 83, 0.12);
    color: var(--hgo-success);
    border-color: rgba(0, 200, 83, 0.25);
}

/* Employee picker on /admin/enroll — touch rows, min 64px per the kiosk touch rule. */
.enroll-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.enroll-row {
    display: flex;
    align-items: center;
    gap: var(--hgo-space-3);
    min-height: 64px;
    width: 100%;
    padding: var(--hgo-space-3) var(--hgo-space-4);
    text-align: left;
    background: var(--hgo-bg-dark);
    color: var(--hgo-text-primary);
    border: 1px solid var(--hgo-border-subtle);
    border-radius: var(--hgo-radius-md);
    font-family: var(--hgo-font-body);
    font-size: 16px;
    cursor: pointer;
}

.enroll-row:hover {
    background: var(--hgo-bg-surface-hover);
}

.enroll-row--selected {
    border-color: var(--hgo-action);
    background: var(--hgo-bg-surface-hover);
}

.enroll-row-name {
    flex: 1;
    font-weight: 600;
}

.enroll-row-code {
    color: var(--hgo-text-muted);
    font-size: 14px;
}

.badge-warning,
.badge-pending {
    background: var(--hgo-warning-bg);
    color: var(--hgo-warning);
    border-color: rgba(187, 90, 0, 0.25);
}

.badge-danger,
.badge-failed {
    background: rgba(233, 69, 96, 0.12);
    color: var(--hgo-danger-accent);
    border-color: rgba(233, 69, 96, 0.25);
}

.badge-queued {
    background: rgba(16, 96, 255, 0.1);
    color: var(--hgo-action);
    border-color: rgba(16, 96, 255, 0.25);
}

/* ============================================================
   Admin Login — nav section
   ============================================================ */

.admin-nav-section {
    margin-top: var(--hgo-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--hgo-space-3);
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hgo-space-2);
}

/* ============================================================
   Admin Card — danger variant
   ============================================================ */

.admin-card-danger {
    border-color: rgba(233, 69, 96, 0.2);
    background: rgba(115, 30, 37, 0.08);
}

/* ============================================================
   Spinner (small) — reused in admin pages
   ============================================================ */

.spinner-sm {
    width: 14px;
    height: 14px;
    border: 2px solid var(--hgo-border);
    border-top-color: var(--hgo-action);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .kiosk-clock {
        font-size: 2.75rem;
    }

    .kiosk-date {
        font-size: 1rem;
    }

    .method-grid {
        gap: var(--hgo-space-2);
        max-width: 320px;
    }

    .method-btn {
        min-height: 80px;
        padding: var(--hgo-space-3) var(--hgo-space-2);
        border-radius: var(--hgo-radius-lg);
    }

    .method-icon {
        font-size: 1.5rem;
    }

    .method-label {
        font-size: 13px;
    }

    .keypad-btn {
        width: 62px;
        height: 54px;
        font-size: 1.125rem;
    }

    .keypad-grid {
        gap: var(--hgo-space-1);
    }

    .punch-result-time {
        font-size: 2rem;
    }

    .admin-page {
        padding: var(--hgo-space-4);
    }

    .setup-card {
        padding: var(--hgo-space-6) var(--hgo-space-5);
    }

    .setup-wordmark {
        font-size: 1.5rem;
    }

    .setup-logomark {
        width: 48px;
        height: 48px;
    }

    .logomark-letter {
        font-size: 20px;
    }

    .admin-header h1 {
        font-size: 1.25rem;
    }
}
