html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8fafc;
    color: #0f172a;
    margin: 0;
}

body {
    min-height: 100vh;
}

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

.topbar {
    height: 64px;
    padding: 0 18px;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand, .history-link {
    color: white;
    text-decoration: none;
}

.brand {
    font-weight: 700;
}

.history-link {
    font-size: .9rem;
    opacity: .9;
}

.content {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.login-wrap {
    min-height: calc(100vh - 130px);
    display: grid;
    place-items: center;
}

.card, .center-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.login-card {
    width: 100%;
    padding: 28px;
}

.muted {
    color: #64748b;
}

.welcome h1 {
    margin-top: 2px;
    margin-bottom: 20px;
}

.status-card {
    padding: 18px;
    border-radius: 18px;
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.status-card.present {
    background: #dcfce7;
    color: #14532d;
}

.status-card.absent {
    background: #e2e8f0;
    color: #334155;
}

.status-card strong {
    font-size: 1.5rem;
}

.clock {
    margin-top: 32px;
    text-align: center;
    font-size: clamp(3.2rem, 16vw, 5.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
}

.date {
    text-align: center;
    margin-top: 8px;
    color: #64748b;
}

.booking-button {
    width: 100%;
    min-height: 132px;
    border: none;
    border-radius: 28px;
    margin-top: 28px;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 15px 34px rgba(15, 23, 42, .14);
}

.booking-button.come {
    background: #16a34a;
}

.booking-button.leave {
    background: #dc2626;
}

.booking-button:disabled {
    opacity: .65;
}

.gps-note {
    margin-top: 18px;
    padding: 14px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    font-size: .9rem;
    color: #475569;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.booking-list {
    display: grid;
    gap: 10px;
}

.booking-row {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.booking-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
}

.booking-icon.in { background: #16a34a; }
.booking-icon.out { background: #dc2626; }

.center-card {
    padding: 24px;
    text-align: center;
}

.boot {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: #64748b;
}

#blazor-error-ui {
    display: none;
}
