:root {
    --brand: #151515;
    --accent: #c6a15b;
    --bg: #f5f6f8;
    --text: #20242c;
    --muted: #697386;
    --border: #e2e6ec;
    --danger: #b42318;
    --success: #067647;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 240px;
    padding: 22px 16px;
    background: var(--brand);
    color: #fff;
}

.brand {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: 0 8px 26px;
    color: #fff;
    text-decoration: none;
}

.brand span {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
}

.brand small {
    padding-bottom: 4px;
    color: var(--accent);
    font-weight: 700;
}

.sidebar nav {
    display: grid;
    gap: 5px;
}

.sidebar nav a,
.sidebar-user a {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    opacity: .9;
}

.sidebar-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    color: inherit;
    fill: none;
    overflow: hidden;
    margin-right: 10px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sidebar nav a span,
.sidebar-user a span {
    display: block;
    min-width: 0;
}

.sidebar nav a:hover,
.sidebar-user a:hover,
.sidebar nav a.active {
    background: #fff;
    color: var(--brand);
    opacity: 1;
}

.sidebar-user {
    display: grid;
    gap: 2px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #ffffff24;
}

.sidebar-user strong,
.sidebar-user small {
    padding: 0 12px 4px;
}

.sidebar-user small { color: var(--accent); }

.content {
    min-height: 100vh;
    margin-left: 240px;
    padding: 28px;
}

.standalone {
    min-height: 100vh;
    padding: 24px;
}

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

.page-head h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
}

.card {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px #1018280d;
}

.card h2,
.card h3 { margin-top: 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.metric {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.metric-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.metric-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8f3ea;
    color: var(--brand);
}

.metric-icon svg {
    display: block;
    width: 17px;
    min-width: 17px;
    max-width: 17px;
    height: 17px;
    min-height: 17px;
    max-height: 17px;
    fill: none;
    overflow: hidden;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.metric-label {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    line-height: 1.15;
}

.metric-time { font-size: 18px; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-grid {
    align-items: stretch;
    margin-bottom: 18px;
}

.dashboard-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    margin-bottom: 0;
}

.dashboard-card h2 {
    margin-bottom: 14px;
}

.dashboard-card .table-wrap {
    flex: 1 1 auto;
}

.dashboard-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.dashboard-pagination-actions {
    display: flex;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    display: grid;
    align-content: start;
    gap: 6px;
}

.form-group label,
.field-label {
    font-weight: 650;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.filters input:not([type="checkbox"]):not([type="radio"]),
.filters select,
.search-input {
    width: 100%;
    min-height: 40px;
    padding: 10px;
    border: 1px solid #cdd3dc;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}

.form-group input[type="checkbox"],
.form-group input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand);
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.checkbox-stack {
    display: grid;
    gap: 8px;
}

.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cdd3dc;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-weight: 400;
}

.checkbox-card strong,
.checkbox-card small {
    display: block;
}

.checkbox-card strong {
    line-height: 1.25;
}

.checkbox-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.user-form-card {
    padding: 16px 18px;
}

.user-form-card h2 {
    margin-bottom: 14px;
}

.user-form-grid {
    align-items: start;
    gap: 12px 14px;
}

.user-form .form-group {
    gap: 5px;
}

.user-form .form-group label,
.user-form .field-label {
    font-size: 13px;
    line-height: 1.25;
}

.user-form .form-group input:not([type="checkbox"]):not([type="radio"]),
.user-form .form-group select {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 7px;
    line-height: 1.25;
}

.user-form .checkbox-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.user-form .checkbox-card {
    align-items: center;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 7px;
}

.user-form .checkbox-card strong {
    line-height: 1.2;
}

.user-form .checkbox-card small {
    margin-top: 1px;
    font-size: 11.5px;
    line-height: 1.3;
}

.user-form .actions {
    margin-top: 12px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-accent { background: var(--accent); color: #151515; }
.btn-light { border-color: var(--border); color: var(--text); }
.btn-danger { background: #fee4e2; color: var(--danger); }
.btn-success { background: #dcfae6; color: var(--success); }
.btn-warning { background: #fff3cd; color: #8a6100; }
.btn-secondary { border-color: var(--border); background: #f8fafc; color: #475467; }
.btn.disabled {
    opacity: .45;
    pointer-events: none;
}

.btn-sm {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    align-items: end;
    gap: 10px;
}

.report-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.report-type-control {
    min-width: 210px;
}

.audit-filters {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.audit-search {
    grid-column: span 2;
}

.audit-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.audit-table-head h2,
.audit-table-head p {
    margin: 0;
}

.audit-table {
    min-width: 1060px;
}

.audit-table td {
    white-space: normal;
}

.audit-table td:nth-child(1),
.audit-table td:nth-child(3),
.audit-table td:nth-child(4),
.audit-table td:nth-child(5) {
    white-space: nowrap;
}

.audit-details-cell {
    min-width: 330px;
}

.audit-detail-list {
    display: grid;
    gap: 7px;
    margin: 0;
}

.audit-detail-list div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
}

.audit-detail-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.audit-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.audit-json {
    margin-top: 9px;
}

.audit-json summary {
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.audit-json pre {
    max-height: 260px;
    margin: 8px 0 0;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    color: #101828;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table th,
.table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.table th {
    background: #fafbfc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.detailed-report-head {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 16px;
}

.detailed-report-head div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfc;
}

.detailed-report-head span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.detailed-report-head strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.detailed-attendance-wrap {
    margin-top: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.detailed-attendance-table {
    width: max-content;
    min-width: 1180px;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.detailed-attendance-table th,
.detailed-attendance-table td {
    width: 44px;
    min-width: 44px;
    height: 58px;
    padding: 8px 5px;
    border-right: 1px solid #cfd5de;
    border-bottom: 1px solid #cfd5de;
    color: #101828;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

.detailed-attendance-table thead th {
    height: 54px;
    background: #f3f5f8;
    font-weight: 800;
}

.detailed-attendance-table thead th:first-child,
.detailed-row-label {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 116px;
    min-width: 116px;
    text-align: center;
}

.detailed-attendance-table thead th:first-child {
    z-index: 3;
}

.detailed-attendance-table th span,
.detailed-attendance-table th small,
.detailed-row-label small {
    display: block;
}

.detailed-attendance-table th small,
.detailed-row-label small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.detailed-row-label {
    color: #101828;
    font-weight: 800;
}

.detailed-row-in { background: #e9f6e4; }
.detailed-row-out { background: #e8f2ff; }
.detailed-row-wh { background: #fff5dc; }
.detailed-row-personal { background: #f2f4f7; }

.detailed-attendance-table .is-weekly-off {
    background: #fde4e1;
}

.detailed-attendance-table td.is-alert {
    color: var(--danger);
    font-weight: 800;
}

.detailed-summary-wrap {
    margin-top: 16px;
}

.detailed-summary-table th,
.detailed-summary-table td {
    text-align: center;
}

.detailed-summary-table td {
    font-weight: 800;
}

.detailed-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 14px;
    color: #20242c;
    font-size: 12px;
}

.detailed-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-swatch {
    display: inline-block;
    width: 22px;
    height: 18px;
    border: 1px solid #cfd5de;
    border-radius: 4px;
}

.legend-in { background: #e9f6e4; }
.legend-out { background: #e8f2ff; }
.legend-wh { background: #fff5dc; }
.legend-personal { background: #f2f4f7; }
.legend-weekly { background: #fde4e1; }

.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9edf2;
    font-size: 11px;
    font-weight: 700;
}

.badge-success { background: #dcfae6; color: #067647; }
.badge-warning { background: #fff3cd; color: #8a6100; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-secondary { background: #e9edf2; color: #475467; }
.badge-danger { background: #fee4e2; color: #b42318; }

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success { background: #dcfae6; color: #05603a; }
.alert-warning { background: #fff3cd; color: #725100; }
.alert-danger { background: #fee4e2; color: #912018; }
.alert-info { background: #e0f2fe; color: #075985; }

.muted { color: var(--muted); }
.empty { padding: 30px; color: var(--muted); text-align: center; }

.login-shell {
    width: 100%;
    max-width: 430px;
    margin: 8vh auto;
}

.login-logo {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 7px;
}

.login-logo span {
    display: block;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
}

.photo-thumb {
    display: block;
    width: 54px;
    height: 42px;
    border-radius: 6px;
    background: #eee;
    object-fit: cover;
}

.photo-proof-link {
    display: inline-flex;
    border-radius: 6px;
    outline-offset: 3px;
}

.photo-proof-link:hover .photo-thumb {
    box-shadow: 0 0 0 2px var(--accent);
}

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #10182866;
}

.photo-modal[hidden] {
    display: none;
}

.photo-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}

.photo-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(430px, 92vw);
    max-height: 78vh;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px #1018284d;
}

.photo-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.photo-modal-head h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.photo-modal-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.photo-modal-close:hover {
    background: #f8fafc;
}

.photo-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 12px;
    background: #101828;
}

.photo-modal-body img {
    display: block;
    max-width: 100%;
    max-height: calc(78vh - 83px);
    border-radius: 6px;
    object-fit: contain;
}

body.photo-modal-open {
    overflow: hidden;
}

body.photo-modal-open .content > :not(.photo-modal),
body.photo-modal-open .standalone > :not(.photo-modal),
body.photo-modal-open .sidebar {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.nowrap { white-space: nowrap; }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }

.kiosk-body { background: #eef0f3; }
.kiosk-shell { max-width: 760px; margin: auto; }

.kiosk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kiosk-brand {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
}

.employee-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 260px;
    margin-top: 10px;
    overflow: auto;
}

.employee-button {
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.employee-button.active {
    border-color: var(--accent);
    background: #fffaf0;
}

.employee-button strong,
.employee-button small { display: block; }

.camera {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin: 12px 0;
    border-radius: 8px;
    background: #111;
}

.camera video,
.camera canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera canvas { display: none; }

.punch-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.punch-button {
    padding: 16px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.punch-button.personal {
    background: #d99a17;
    color: #241800;
}

.punch-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.kiosk-success {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #067647f2;
    color: #fff;
    text-align: center;
}

.kiosk-success.show { display: flex; }
.kiosk-success h2 { margin: 0 0 10px; font-size: 30px; }
.kiosk-success p { font-size: 18px; line-height: 1.6; }
.kiosk-error { margin: 10px 0; color: var(--danger); font-weight: 650; }
.hidden { display: none !important; }

@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .audit-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid,
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audit-search { grid-column: span 2; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body { font-size: 13px; }

    .sidebar {
        position: sticky;
        top: 0;
        inset: auto;
        width: 100%;
        padding: 10px 12px 8px;
        box-shadow: 0 2px 10px #1018281a;
    }

    .brand {
        align-items: center;
        margin: 0 0 9px;
    }

    .brand span { font-size: 24px; }
    .brand small { padding: 0; font-size: 12px; }

    .sidebar nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 9px 12px;
        background: #ffffff14;
        font-size: 13px;
        white-space: nowrap;
    }

    .sidebar nav a.active {
        background: #fff;
        color: var(--brand);
    }

    .sidebar-user {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 7px;
        padding-top: 7px;
        overflow-x: auto;
    }

    .sidebar-user strong,
    .sidebar-user small {
        display: none;
    }

    .sidebar-user a {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 7px 10px;
        background: #ffffff14;
        font-size: 12px;
        white-space: nowrap;
    }

    .content {
        margin: 0;
        padding: 14px;
    }

    .standalone { padding: 12px; }

    .page-head {
        margin-bottom: 14px;
    }

    .page-head h1 { font-size: 21px; }

    .card {
        margin-bottom: 14px;
        padding: 14px;
    }

    .dashboard-card {
        min-height: auto;
    }

    .dashboard-table-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }

    .metric {
        padding: 13px;
    }

    .metric-icon {
        flex-basis: 28px;
        width: 28px;
        min-width: 28px;
        max-width: 28px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
    }

    .metric-icon svg {
        width: 16px;
        min-width: 16px;
        max-width: 16px;
        height: 16px;
        min-height: 16px;
        max-height: 16px;
    }

    .metric-label {
        font-size: 10.5px;
    }

    .metric strong {
        font-size: 22px;
    }

    .metric-time { font-size: 19px; }

    .form-grid,
    .filters {
        grid-template-columns: 1fr;
    }

    .audit-search {
        grid-column: auto;
    }

    .audit-table-head {
        display: block;
    }

    .audit-table-head p {
        margin-top: 6px;
    }

    .audit-detail-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .detailed-report-head {
        grid-template-columns: 1fr;
    }

    .user-form .checkbox-stack {
        grid-template-columns: 1fr;
    }

    .table th,
    .table td {
        padding: 9px 8px;
    }

    .employee-list { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .content { padding: 10px; }
    .cards { gap: 8px; }
    .metric { padding: 11px; }
    .metric strong { font-size: 20px; }
    .metric-time { font-size: 18px; }
    .kiosk-top { align-items: flex-start; flex-direction: column; }
    .punch-buttons { grid-template-columns: 1fr; }
}
