@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-top: #edf9f3;
    --bg-bottom: #eef6ff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --border: rgba(16, 34, 70, 0.08);
    --text: #183153;
    --muted: #667085;
    --accent: #0f9f6e;
    --accent-strong: #0b6fd3;
    --accent-soft: #e8f8f2;
    --success-bg: #ecfdf3;
    --success-text: #027a48;
    --error-bg: #fef3f2;
    --error-text: #b42318;
    --shadow: 0 24px 60px rgba(18, 38, 74, 0.12);
    --phone-shadow: 0 28px 80px rgba(15, 42, 78, 0.16);
}

html, body {
    min-height: 100%;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 159, 110, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(11, 111, 211, 0.14), transparent 32%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    color: var(--text);
}

body {
    min-height: 100vh;
}

a, .btn-link {
    color: #0b63ce;
}

h1,
h2 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    font-size: clamp(2rem, 7vw, 3.1rem);
    font-weight: 700;
}

.content {
    padding: 0;
}

.mobile-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    min-height: 100vh;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 0.9rem calc(env(safe-area-inset-bottom, 0px) + 6rem);
    position: relative;
}

.companies-screen {
    font-size: 0.8em;
}

.login-shell {
    width: min(100%, 440px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
    display: grid;
    align-items: center;
    position: relative;
}

.mobile-shell::before,
.login-shell::before {
    content: "";
    position: fixed;
    inset: 12px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 255, 0.94));
    border: 1px solid rgba(17, 111, 178, 0.08);
    box-shadow: var(--phone-shadow);
    z-index: -1;
}

.login-shell::before {
    inset: 14px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 252, 0.98)),
        radial-gradient(circle at top left, rgba(15, 159, 110, 0.08), transparent 34%);
    box-shadow: 0 24px 70px rgba(24, 49, 83, 0.12);
}

.login-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 1.3rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(145deg, #0f7d62, #116fb2 58%, #0d4b87);
    color: #f4fbff;
    box-shadow: 0 30px 60px rgba(12, 71, 114, 0.22);
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: auto -15% -20% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #edf8f3;
    border: 1px solid rgba(15, 159, 110, 0.14);
    color: #08724f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.login-eyebrow,
.login-hero h1,
.login-subtitle {
    color: #f4fbff;
}

.login-subtitle {
    max-width: 32rem;
    opacity: 0.92;
}

.login-feature-strip {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.3rem;
}

.login-feature-card {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.feature-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.72);
}

.login-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 49, 83, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(24, 49, 83, 0.1);
    padding: 1.35rem;
}

.login-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.login-brand-block {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: center;
}

.login-brand-logo {
    width: min(100%, 188px);
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0.15rem;
}

.login-brand-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0;
}

.login-brand-subtitle {
    max-width: 18rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.security-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 159, 110, 0.12), rgba(11, 111, 211, 0.12));
    color: #0f6d78;
    font-size: 0.85rem;
    font-weight: 700;
}

.panel {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(18, 38, 74, 0.08);
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.skeleton-screen {
    display: contents;
}

.skeleton-panel {
    overflow: hidden;
}

.skeleton-box {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #e9f1f6;
}

.skeleton-box::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-stack {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.skeleton-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

.skeleton-photo-large {
    width: 216px;
    height: 216px;
    border-radius: 40px;
}

.skeleton-line {
    height: 0.85rem;
}

.skeleton-line-sm {
    width: 35%;
}

.skeleton-line-md {
    width: 58%;
}

.skeleton-line-lg {
    width: 78%;
}

.skeleton-line-title {
    width: 70%;
    height: 0.8rem;
    margin: 0 auto 1rem;
}

.skeleton-line-full {
    width: 100%;
}

.skeleton-employee-card,
.skeleton-employee-inline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
}

.skeleton-employee-card {
    margin-bottom: 1rem;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.skeleton-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.skeleton-option {
    height: 5.75rem;
    border-radius: 20px;
}

.skeleton-button {
    height: 3.5rem;
    border-radius: 999px;
    margin-top: 1rem;
}

.skeleton-chip {
    height: 2.9rem;
    border-radius: 999px;
}

.skeleton-detail {
    height: 4.2rem;
    border-radius: 18px;
}

.skeleton-detail-wide {
    margin-top: 0.75rem;
}

.skeleton-history-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.9rem;
    align-items: stretch;
    margin-top: 0.9rem;
    padding: 0.95rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.skeleton-date-block {
    min-height: 6.5rem;
    border-radius: 18px;
}

.skeleton-request-card {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.85rem;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.skeleton-account-panel {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
}

.skeleton-bottom-nav {
    pointer-events: none;
}

.skeleton-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 8px;
}

.skeleton-nav-label {
    width: 70%;
    height: 0.55rem;
    border-radius: 999px;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-box::after {
        animation: none;
    }
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 235, 0.86)),
        var(--surface);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    color: var(--muted);
    margin-top: 0.85rem;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.hero-header,
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.company-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.employee-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
}

.employee-photo-button {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
}

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

.employee-card-copy {
    display: grid;
    gap: 0.2rem;
}

.employee-card-copy strong {
    color: var(--text);
    font-size: 0.9rem;
}

.employee-card-copy span {
    color: var(--muted);
}

.employee-photo-error {
    margin-top: 0.85rem;
}

.companies-hero-copy {
    display: grid;
    gap: 0.35rem;
    width: 100%;
}

.companies-hero-copy-centered {
    justify-items: center;
    text-align: center;
}

.companies-greeting {
    font-size: 0.96rem;
    line-height: 1.2;
}

.companies-greeting-centered {
    text-align: center;
}

.companies-subtitle {
    text-align: center;
    margin-top: 0;
}

.companies-section-title {
    text-align: center;
}

.companies-logout-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.companies-logout-button {
    width: 100%;
}

.account-hero-panel {
    display: grid;
    gap: 1rem;
}

.account-photo-stack {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
}

.account-photo-large {
    width: 216px;
    height: 216px;
    border-radius: 40px;
}

.account-name-block {
    display: grid;
    gap: 0.2rem;
    text-align: center;
}

.account-name-block strong {
    color: var(--text);
    font-size: 0.98rem;
}

.account-name-block span,
.account-edit-label {
    color: var(--muted);
}

.account-edit-actions {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

.account-edit-header {
    display: grid;
    gap: 0.25rem;
    justify-items: center;
    text-align: center;
}

.account-edit-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.account-edit-helper {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 26rem;
}

.account-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.account-open-modal-button {
    width: 100%;
}

.account-edit-button {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-height: 8.75rem;
    padding: 1rem 0.9rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
    box-shadow: 0 12px 28px rgba(18, 38, 74, 0.08);
}

.account-edit-button strong {
    color: var(--text);
    font-size: 0.88rem;
}

.account-edit-button span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.account-edit-button-gallery {
    background: linear-gradient(180deg, rgba(244, 251, 247, 0.98), rgba(255, 255, 255, 0.96));
}

.account-edit-button-camera {
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.account-options-modal {
    width: min(100%, 390px);
}

.account-edit-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 34, 70, 0.08);
}

.account-edit-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: var(--accent-strong);
}

.account-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.account-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-detail-wide {
    grid-column: 1 / -1;
}

.account-install-card {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-install-help {
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.86rem;
}

.company-title-small {
    font-size: clamp(0.7rem, 2.45vw, 1.09rem);
    line-height: 1.2;
}

.mark-greeting-title {
    font-size: 0.84rem;
    line-height: 1.28;
}

.centered-section-title {
    text-align: center;
}

.login-form,
.field-group {
    display: grid;
    gap: 0.5rem;
}

.login-form {
    gap: 0.95rem;
}

.login-version {
    margin: 1.1rem 0 0;
    color: rgba(24, 49, 83, 0.42);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

.login-terms-note {
    margin: -0.15rem 0 0;
    color: rgba(24, 49, 83, 0.52);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

.login-terms-note a {
    color: rgba(11, 99, 206, 0.82);
    font-weight: 700;
    text-decoration: none;
}

.login-terms-note a:focus,
.login-terms-note a:hover {
    text-decoration: underline;
}

@media (max-height: 760px) {
    .login-shell {
        align-items: start;
        padding: calc(env(safe-area-inset-top, 0px) + 0.55rem) 0.85rem calc(env(safe-area-inset-bottom, 0px) + 0.55rem);
    }

    .login-shell::before {
        inset: 8px;
        border-radius: 26px;
    }

    .login-panel {
        padding: 1rem;
        border-radius: 20px;
    }

    .login-panel-header {
        margin-bottom: 0.85rem;
    }

    .login-brand-block {
        gap: 0.34rem;
    }

    .login-brand-logo {
        width: min(100%, 158px);
        margin-bottom: 0;
    }

    .login-brand-title {
        font-size: 1.42rem;
        line-height: 1.05;
    }

    .login-brand-subtitle {
        font-size: 0.84rem;
        line-height: 1.25;
    }

    .login-form {
        gap: 0.65rem;
    }

    .field-group {
        gap: 0.34rem;
    }

    .login-input {
        min-height: 3.05rem;
        padding: 0.74rem 0.9rem;
    }

    .login-button {
        min-height: 3rem;
        margin-top: 0.05rem;
    }

    .login-terms-note {
        margin: -0.05rem 0 0;
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .login-version {
        margin: 0.55rem 0 0;
        font-size: 0.72rem;
        line-height: 1.1;
    }
}

@media (max-height: 660px) {
    .login-shell {
        padding-top: calc(env(safe-area-inset-top, 0px) + 0.35rem);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.35rem);
    }

    .login-panel {
        padding: 0.86rem;
    }

    .login-panel-header {
        margin-bottom: 0.65rem;
    }

    .login-brand-logo {
        width: min(100%, 136px);
    }

    .login-brand-subtitle {
        font-size: 0.78rem;
        line-height: 1.18;
    }

    .login-form {
        gap: 0.52rem;
    }

    .login-input {
        min-height: 2.85rem;
    }

    .login-button {
        min-height: 2.9rem;
    }

    .login-version {
        margin-top: 0.4rem;
    }
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
    font-size: 0.9rem;
    user-select: none;
}

.remember-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent-strong);
}

.biometric-login-button {
    width: 100%;
}

.terms-screen {
    font-size: 0.92rem;
}

.terms-title {
    font-size: 1.35rem;
    line-height: 1.18;
}

.terms-panel {
    display: grid;
    gap: 0.75rem;
}

.terms-panel h2 {
    font-size: 1rem;
}

.terms-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.48;
}

.terms-accept-row {
    align-items: flex-start;
}

.terms-secondary-button {
    width: 100%;
}

label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.88rem;
}

.custom-input {
    min-height: 3.35rem;
    border-radius: 18px;
    border: 1px solid rgba(24, 49, 83, 0.12);
    background: rgba(255, 255, 255, 0.88);
    padding: 0.95rem 1rem;
    font-size: 0.98rem;
}

.login-input {
    min-height: 3.35rem;
    border-radius: 14px;
    background: #ffffff;
    border-color: rgba(24, 49, 83, 0.14);
    box-shadow: 0 1px 0 rgba(24, 49, 83, 0.04);
}

.custom-input:focus,
.action-button:focus,
.ghost-button:focus,
.secondary-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 159, 110, 0.14);
    border-color: rgba(15, 159, 110, 0.55);
}

.action-button,
.ghost-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    min-height: 3.1rem;
    padding: 0.9rem 1.2rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.action-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 16px 32px rgba(17, 111, 178, 0.22);
}

.login-button {
    min-height: 3.35rem;
    margin-top: 0.2rem;
    font-size: 1rem;
    border-radius: 14px;
    background: #151f2e;
    box-shadow: 0 14px 28px rgba(21, 31, 46, 0.18);
}

.ghost-button,
.secondary-button {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.action-button:hover,
.ghost-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.action-button:disabled {
    opacity: 0.7;
    transform: none;
}

.summary-grid,
.details-grid {
    display: grid;
    gap: 0.8rem;
}

.company-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.attendance-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.attendance-hero {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(24, 49, 83, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        var(--surface);
    box-shadow: 0 16px 36px rgba(18, 38, 74, 0.08);
}

.attendance-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.attendance-greeting {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.attendance-greeting span,
.attendance-method-heading span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-greeting h1 {
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1.05;
}

.attendance-greeting p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.attendance-company-context {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    color: rgba(24, 49, 83, 0.56);
    font-size: 0.78rem;
    line-height: 1.25;
}

.attendance-company-context span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-company-context a {
    flex: 0 0 auto;
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.attendance-company-context a:focus,
.attendance-company-context a:hover {
    text-decoration: underline;
}

.attendance-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    flex: 0 0 auto;
}

.attendance-main-panel {
    display: grid;
    gap: 0.65rem;
}

.attendance-empty-state {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(105, 65, 198, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(246, 243, 255, 0.96), rgba(251, 250, 255, 0.98)),
        #faf8ff;
}

.attendance-empty-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.attendance-empty-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 16px;
    background: rgba(105, 65, 198, 0.12);
    color: #6941c6;
}

.attendance-empty-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attendance-empty-state h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.attendance-empty-state p,
.attendance-empty-state small {
    margin: 0;
    color: rgba(71, 84, 103, 0.9);
    font-size: 0.9rem;
    line-height: 1.45;
}

.attendance-empty-state small {
    padding-top: 0.15rem;
    font-size: 0.8rem;
}

.attendance-empty-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.attendance-empty-actions a:only-child {
    grid-column: 1 / -1;
}

.attendance-empty-primary,
.attendance-empty-secondary {
    display: inline-grid;
    min-height: 2.75rem;
    place-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.attendance-empty-primary {
    background: #111827;
    color: #fff;
}

.attendance-empty-secondary {
    border: 1px solid rgba(16, 34, 70, 0.12);
    background: #fff;
    color: var(--text);
}

.attendance-status-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 34, 70, 0.08);
    background: linear-gradient(135deg, rgba(15, 159, 110, 0.13), rgba(11, 111, 211, 0.1));
}

.attendance-status-pending {
    background: linear-gradient(135deg, rgba(11, 111, 211, 0.11), rgba(255, 255, 255, 0.95));
}

.attendance-status-scheduled {
    background: linear-gradient(135deg, rgba(11, 111, 211, 0.12), rgba(239, 246, 255, 0.96));
    border-color: rgba(11, 111, 211, 0.14);
}

.attendance-status-progress {
    background: linear-gradient(135deg, rgba(15, 159, 110, 0.14), rgba(255, 255, 255, 0.95));
}

.attendance-status-active {
    background: linear-gradient(135deg, rgba(15, 159, 110, 0.16), rgba(236, 253, 243, 0.94));
    border-color: rgba(15, 159, 110, 0.16);
}

.attendance-status-late {
    background: linear-gradient(135deg, rgba(247, 144, 9, 0.14), rgba(255, 250, 235, 0.96));
    border-color: rgba(247, 144, 9, 0.16);
}

.attendance-status-complete {
    background: linear-gradient(135deg, rgba(2, 122, 72, 0.16), rgba(236, 253, 243, 0.92));
    border-color: rgba(2, 122, 72, 0.16);
}

.attendance-last-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 34, 70, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.attendance-last-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.attendance-last-heading span {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.15;
}

.attendance-status-copy,
.attendance-status-time {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.attendance-status-copy span,
.attendance-status-time span,
.attendance-metric span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-status-copy strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.15;
}

.attendance-status-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.attendance-status-time {
    justify-items: end;
    align-content: center;
    min-width: 7.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(16, 34, 70, 0.08);
}

.attendance-schedule-item {
    display: grid;
    gap: 0.22rem;
    justify-items: end;
}

.attendance-schedule-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    min-width: 0;
}

.attendance-schedule-label svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    color: var(--accent-strong);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attendance-status-time strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1;
    white-space: nowrap;
}

.attendance-progress {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.42rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(16, 34, 70, 0.08);
}

.attendance-progress-heading,
.attendance-progress-times,
.attendance-progress-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 0;
}

.attendance-progress-heading strong {
    color: rgba(24, 49, 83, 0.82);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.15;
}

.attendance-progress-heading span,
.attendance-progress-times span {
    color: var(--success-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.attendance-progress-closed .attendance-progress-heading span {
    color: #183153;
}

.attendance-progress-times span:last-child {
    color: rgba(24, 49, 83, 0.7);
}

.attendance-progress-track {
    position: relative;
    height: 0.42rem;
    margin: 0.08rem 0;
    border-radius: 999px;
    background: rgba(16, 34, 70, 0.14);
}

.attendance-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    min-width: 0;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b8f5a, #14b875);
    box-shadow: 0 4px 12px rgba(15, 159, 110, 0.22);
}

.attendance-progress-marker {
    position: absolute;
    top: 50%;
    width: 0.82rem;
    height: 0.82rem;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #12a96f;
    box-shadow: 0 6px 14px rgba(15, 159, 110, 0.28);
    transform: translate(-50%, -50%);
}

.attendance-progress-marker-entry {
    background: #0b8f5a;
}

.attendance-progress-marker-now {
    width: 1.08rem;
    height: 1.08rem;
    background: #12a96f;
    box-shadow: 0 8px 18px rgba(15, 159, 110, 0.32);
    z-index: 2;
}

.attendance-progress-marker-exit {
    background: #0b8f5a;
    box-shadow: 0 6px 14px rgba(15, 159, 110, 0.26);
}

.attendance-progress-labels span {
    color: rgba(24, 49, 83, 0.66);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.attendance-progress-labels span:nth-child(2) {
    color: rgba(24, 49, 83, 0.82);
    font-weight: 800;
}

.attendance-today-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.attendance-metric {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.attendance-metric strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.attendance-method-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.attendance-method-heading div {
    display: grid;
    gap: 0.15rem;
}

.attendance-method-heading strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.15;
}

.attendance-method-heading small {
    color: var(--success-text);
    background: var(--success-bg);
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.mark-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

.mode-card {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.attendance-method-grid {
    margin: 0;
}

.attendance-method-grid .mode-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    column-gap: 0.55rem;
    row-gap: 0.08rem;
    align-items: center;
    padding: 0.52rem 0.62rem;
    min-height: 3.25rem;
}

.attendance-method-grid .mode-card-icon {
    grid-area: icon;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 12px;
}

.attendance-method-grid .mode-card strong {
    grid-area: title;
    line-height: 1.05;
}

.attendance-method-grid .mode-card > span:not(.mode-card-icon) {
    grid-area: copy;
    font-size: 0.78rem;
    line-height: 1.2;
}

.mode-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.mode-card-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
    background: rgba(11, 111, 211, 0.08);
    color: var(--accent-strong);
}

.mode-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mode-card-active {
    border-color: rgba(15, 159, 110, 0.85);
    box-shadow: 0 14px 32px rgba(15, 159, 110, 0.22);
    background: linear-gradient(135deg, rgba(15, 159, 110, 0.16), rgba(11, 111, 211, 0.14));
    color: #0f5f63;
}

.mode-card-active strong {
    color: #064e3b;
}

.mode-card-active .mode-card-icon {
    background: rgba(255, 255, 255, 0.78);
    color: #08724f;
}

.geo-error-box[hidden] {
    display: none;
}

.attendance-main-panel .mark-action-form {
    display: contents;
}

.attendance-action-helper {
    margin: -0.48rem 0 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.25;
    text-align: center;
}

.attendance-submit-skeleton {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.1rem;
    padding: 0.75rem;
    border: 1px solid rgba(16, 34, 70, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.attendance-submit-skeleton[hidden] {
    display: none;
}

.attendance-submit-skeleton-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
}

.attendance-submit-skeleton-copy {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

.attendance-submit-skeleton-copy span {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.15;
}

.attendance-is-loading .attendance-method-grid {
    opacity: 0.72;
}

.attendance-is-loading .attendance-method-grid .mode-card {
    pointer-events: none;
}

/* Material Design 3 visual refresh for Asistencia. */
.attendance-hero,
.attendance-main-panel,
.attendance-status-card,
.attendance-last-card,
.attendance-empty-state {
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(18, 38, 74, 0.08);
}

.attendance-hero {
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.attendance-hero-top {
    gap: 0.85rem;
}

.attendance-greeting {
    gap: 0.42rem;
}

.attendance-greeting > span {
    font-size: 0.77rem;
    letter-spacing: 0.02rem;
}

.attendance-greeting h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0;
}

.attendance-meta-line,
.attendance-company-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
}

.attendance-meta-line {
    margin: 0;
    color: rgba(24, 49, 83, 0.68);
    font-size: 0.88rem;
    font-weight: 700;
}

.attendance-meta-line svg,
.attendance-company-context svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attendance-company-context {
    color: rgba(24, 49, 83, 0.62);
    font-size: 0.82rem;
    font-weight: 700;
}

.attendance-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(18, 38, 74, 0.12);
}

.attendance-main-panel {
    gap: 0.72rem;
    padding: 1rem;
}

.attendance-status-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 1.25rem;
    box-shadow: 0 12px 32px rgba(18, 38, 74, 0.1);
    animation: attendance-fade-in 240ms ease both;
}

.attendance-status-icon {
    display: grid;
    place-items: center;
    align-self: start;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.08rem;
    border-radius: 0;
    background: transparent;
    color: var(--accent-strong);
    box-shadow: none;
}

.attendance-status-icon svg {
    display: none;
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attendance-status-active .attendance-status-icon,
.attendance-status-complete .attendance-status-icon,
.attendance-status-progress .attendance-status-icon {
    color: var(--success-text);
}

.attendance-status-late .attendance-status-icon {
    color: #b54708;
}

.attendance-status-active .attendance-status-icon-check,
.attendance-status-complete .attendance-status-icon-check,
.attendance-status-progress .attendance-status-icon-check {
    display: block;
}

.attendance-status-scheduled .attendance-status-icon-clock,
.attendance-status-pending .attendance-status-icon-clock {
    display: block;
}

.attendance-status-late .attendance-status-icon-warning {
    display: block;
}

.attendance-status-copy {
    gap: 0.18rem;
}

.attendance-status-copy span,
.attendance-status-time span,
.attendance-metric span {
    font-size: 0.72rem;
    letter-spacing: 0.02rem;
}

.attendance-status-copy strong {
    font-size: 1.12rem;
    font-weight: 850;
}

.attendance-status-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.attendance-status-time {
    min-width: 7.75rem;
    padding-left: 1rem;
}

.attendance-status-time strong {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.attendance-status-active .attendance-schedule-label svg,
.attendance-status-complete .attendance-schedule-label svg,
.attendance-status-progress .attendance-schedule-label svg {
    color: var(--success-text);
}

.attendance-status-late .attendance-schedule-label svg {
    color: #b54708;
}

.attendance-progress {
    gap: 0.52rem;
    padding-top: 0.95rem;
    border-top-color: rgba(16, 34, 70, 0.1);
    border-bottom: 1px solid rgba(16, 34, 70, 0.08);
    padding-bottom: 0.72rem;
}

.attendance-progress-heading strong {
    font-size: 0.86rem;
    font-weight: 850;
}

.attendance-progress-heading span,
.attendance-progress-times span {
    color: #08724f;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.attendance-progress-closed .attendance-progress-heading span {
    color: #183153;
}

.attendance-progress-times span:last-child {
    color: rgba(24, 49, 83, 0.82);
}

.attendance-progress-track {
    height: 0.5rem;
    margin: 0.16rem 0;
    background: rgba(16, 34, 70, 0.16);
}

.attendance-progress-fill {
    background: linear-gradient(90deg, #078653, #10b981);
    transition: left 260ms ease, width 260ms ease;
}

.attendance-progress-marker {
    width: 1rem;
    height: 1rem;
    border-width: 3px;
    transition: left 260ms ease;
}

.attendance-progress-marker-now {
    width: 1rem;
    height: 1rem;
}

.attendance-progress-labels span {
    min-width: 0;
    color: rgba(24, 49, 83, 0.68);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
}

.attendance-progress-labels span:nth-child(1) {
    text-align: left;
}

.attendance-progress-labels span:nth-child(2) {
    text-align: center;
}

.attendance-progress-labels span:nth-child(3) {
    text-align: right;
}

.attendance-progress-closed .attendance-progress-labels span:nth-child(2) {
    color: #08724f;
    font-weight: 850;
}

.attendance-progress-closed .attendance-progress-labels span:nth-child(3) {
    color: rgba(24, 49, 83, 0.54);
}

.attendance-last-card {
    gap: 0.55rem;
    min-height: 0;
    padding: 0.72rem 0.85rem;
    box-shadow: 0 10px 26px rgba(18, 38, 74, 0.08);
}

.attendance-last-heading span {
    font-size: 0.9rem;
    font-weight: 850;
}

.attendance-today-grid {
    gap: 0;
}

.attendance-metric {
    gap: 0.2rem;
    padding: 0 0.5rem;
}

.attendance-metric:first-child {
    padding-left: 0;
}

.attendance-metric:not(:first-child) {
    border-left: 1px solid rgba(16, 34, 70, 0.1);
}

.attendance-metric strong {
    font-size: 0.92rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.attendance-method-heading {
    align-items: center;
    margin-top: 0.1rem;
}

.attendance-method-heading strong {
    font-size: 1.08rem;
    font-weight: 850;
}

.attendance-method-heading small {
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(2, 122, 72, 0.12);
    background: rgba(236, 253, 243, 0.86);
    font-size: 0.68rem;
    letter-spacing: 0.01rem;
}

.attendance-method-grid {
    gap: 0.28rem;
    padding: 0.2rem;
    border: 1px solid rgba(16, 34, 70, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.attendance-method-grid .mode-card {
    min-height: 3.1rem;
    padding: 0.5rem 0.58rem;
    border-color: rgba(16, 34, 70, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.attendance-method-grid .mode-card-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 10px;
    background: rgba(16, 34, 70, 0.06);
}

.attendance-method-grid .mode-card strong {
    font-size: 0.88rem;
    font-weight: 850;
}

.attendance-method-grid .mode-card > span:not(.mode-card-icon) {
    font-size: 0.7rem;
}

.attendance-method-grid .mode-card-active {
    background: linear-gradient(180deg, rgba(240, 253, 248, 0.96), rgba(255, 255, 255, 0.98));
    border-color: rgba(15, 159, 110, 0.58);
    box-shadow: 0 7px 16px rgba(15, 159, 110, 0.14);
}

.attendance-method-grid .mode-card-active .mode-card-icon {
    background: rgba(15, 159, 110, 0.15);
    color: #08724f;
}

.attendance-main-panel > .login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: -0.5rem;
    min-height: 3.5rem;
    border-radius: 18px;
    font-size: 1.04rem;
    box-shadow: 0 16px 34px rgba(21, 31, 46, 0.2);
}

.attendance-main-panel > .login-button::before {
    content: "";
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 11a3 3 0 0 0-3 3c0 1.4-.4 3.1-1.2 4.5M12 11a3 3 0 0 1 3 3c0 2.2-.5 4.2-1.4 6M6.2 16.8c.5-1 .8-2 .8-2.8a5 5 0 0 1 10 0c0 1.4-.2 2.8-.6 4.2M4.5 12.2A7.5 7.5 0 0 1 19.5 14M9.1 21c.5-.9.9-1.9 1.1-3M12 3.5A10.5 10.5 0 0 1 22 14'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 11a3 3 0 0 0-3 3c0 1.4-.4 3.1-1.2 4.5M12 11a3 3 0 0 1 3 3c0 2.2-.5 4.2-1.4 6M6.2 16.8c.5-1 .8-2 .8-2.8a5 5 0 0 1 10 0c0 1.4-.2 2.8-.6 4.2M4.5 12.2A7.5 7.5 0 0 1 19.5 14M9.1 21c.5-.9.9-1.9 1.1-3M12 3.5A10.5 10.5 0 0 1 22 14'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes attendance-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .attendance-status-card {
        animation: none;
    }

    .attendance-progress-fill,
    .attendance-progress-marker {
        transition: none;
    }
}

.bottom-nav {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    align-items: center;
    margin-top: 1rem;
    padding: 0.45rem;
    border: 1px solid rgba(16, 34, 70, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(18, 38, 74, 0.12);
    backdrop-filter: blur(16px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.mobile-shell.qr-open .bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    visibility: hidden;
}

.bottom-nav-item {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.2rem;
    min-width: 0;
    min-height: 3.35rem;
    padding: 0.38rem 0.2rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.bottom-nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav-item-active {
    color: var(--accent-strong);
    background: linear-gradient(180deg, #ffffff, #eef7ff);
}

@media (max-width: 360px) {
    .bottom-nav {
        gap: 0.15rem;
        padding: 0.35rem;
    }

    .bottom-nav-item {
        min-height: 3.15rem;
        font-size: 0.6rem;
    }

    .bottom-nav-icon {
        width: 1.15rem;
        height: 1.15rem;
    }

    .toggle-chip {
        gap: 0.3rem;
        min-height: 3.15rem;
        padding-inline: 0.35rem;
        font-size: 0.72rem;
    }

    .toggle-chip-icon {
        width: 1.05rem;
        height: 1.05rem;
    }

    .attendance-status-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .attendance-status-time {
        justify-items: start;
        padding-left: 0;
        padding-top: 0.75rem;
        border-left: 0;
        border-top: 1px solid rgba(16, 34, 70, 0.08);
    }

    .attendance-schedule-item {
        justify-items: start;
    }

    .attendance-today-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .attendance-metric-wide {
        grid-column: auto;
    }
}

.attendance-card {
    display: grid;
    gap: 0.9rem;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
}

.history-subtitle {
    margin-top: 0.25rem;
    font-size: 0.86rem;
}

.history-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
}

.history-table {
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
    font-size: 0.74rem;
}

.history-table th,
.history-table td {
    padding: 0.58rem 0.36rem;
    border-bottom: 1px solid rgba(16, 34, 70, 0.07);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.history-col-date,
.history-col-time {
    width: 1%;
}

.history-col-status {
    min-width: 86px;
}

.history-table th {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.history-table td {
    color: var(--text);
}

.history-status {
    display: inline-block;
    min-width: 72px;
    text-align: center;
    padding: 0.32rem 0.5rem;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.history-status-pending {
    background: var(--error-bg);
    color: var(--error-text);
}

.history-status-rejected {
    background: #fff1f3;
    color: #c01048;
}

.history-status-neutral {
    background: #f1f5f9;
    color: #475569;
}

.history-calendar-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.history-calendar-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.9rem;
    padding: 0.95rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    align-items: stretch;
}

.history-calendar-date {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.15rem;
    padding: 0.75rem 0.4rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #f4fbf7, #edf4ff);
    border: 1px solid rgba(15, 159, 110, 0.12);
}

.history-calendar-day {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.history-calendar-month {
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
}

.history-calendar-weekday {
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
}

.history-calendar-content {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.history-calendar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.history-calendar-full-date {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.history-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    border-radius: 18px;
    background: rgba(16, 34, 70, 0.06);
}

.toggle-chip {
    display: grid;
    grid-template-columns: auto minmax(0, auto);
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-chip-icon {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toggle-chip span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.toggle-chip-active {
    border-color: rgba(16, 34, 70, 0.08);
    background: #fff;
    color: var(--accent-strong);
    box-shadow: 0 12px 26px rgba(18, 38, 74, 0.12);
}

.permission-view-heading {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.95rem;
}

.permission-view-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 900;
}

.permission-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 1.2rem 0.9rem;
    border: 1px dashed rgba(16, 34, 70, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.9));
    color: var(--muted);
    text-align: center;
}

.permission-empty-state strong {
    color: var(--text);
    font-size: 1rem;
}

.permission-empty-state span {
    max-width: 18rem;
    font-size: 0.86rem;
}

.permission-empty-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: rgba(11, 111, 211, 0.1);
    color: var(--accent-strong);
}

.permission-empty-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.permission-form {
    display: grid;
    gap: 1rem;
}

.permission-reason-picker {
    position: relative;
}

.permission-reason-combobox {
    min-height: 3rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding-right: 3.25rem;
}

.permission-reason-toggle {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 14px;
    background: rgba(11, 111, 211, 0.1);
    color: var(--accent-strong);
}

.permission-reason-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.permission-reason-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 9;
    display: grid;
    gap: 0.35rem;
    max-height: min(18rem, 46vh);
    overflow-y: auto;
    padding: 0.45rem;
    border-radius: 18px;
    border: 1px solid rgba(16, 34, 70, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(18, 38, 74, 0.16);
}

.permission-reason-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-weight: 700;
    line-height: 1.25;
}

.permission-reason-option-active {
    background: linear-gradient(135deg, rgba(15, 159, 110, 0.15), rgba(11, 111, 211, 0.14));
    color: var(--accent-strong);
}

.permission-reason-empty {
    padding: 0.9rem;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.field-hint {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.field-meta {
    justify-self: end;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.permission-textarea {
    min-height: 7rem;
    resize: vertical;
}

.permission-file-input {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.permission-file-name {
    color: var(--success-text);
    font-size: 0.82rem;
    font-weight: 800;
    word-break: break-word;
}

.permission-justify-panel {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px dashed rgba(11, 111, 211, 0.28);
    background: rgba(11, 111, 211, 0.06);
}

.permission-justify-panel label {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
}

.permission-justify-completed {
    display: inline-flex;
    width: fit-content;
    color: var(--success-text);
    background: var(--success-bg);
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.permission-file-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.permission-file-spinner {
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid rgba(11, 111, 211, 0.18);
    border-top-color: var(--accent-strong);
    border-radius: 50%;
    animation: permission-file-spin 0.7s linear infinite;
}

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

.permission-list {
    display: grid;
    gap: 0.85rem;
}

.permission-list-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
}

.permission-list-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.permission-list-field {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.permission-list-field span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.permission-list-field strong {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.3;
    word-break: break-word;
}

.permission-status-field {
    justify-items: start;
}

.permission-list-row-full {
    grid-template-columns: minmax(0, 1fr);
}

.permission-list-field-full {
    grid-column: 1 / -1;
}

.permission-attachment-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(11, 111, 211, 0.12);
    background: rgba(11, 111, 211, 0.06);
}

.permission-attachment-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--accent-strong);
}

.permission-attachment-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.permission-attachment-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.permission-attachment-copy strong {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.permission-attachment-copy span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.permission-card-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.65rem;
}

.permission-file-button,
.permission-delete-button,
.permission-delete-confirm,
.permission-delete-cancel {
    min-height: 2.75rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.82rem;
}

.permission-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(11, 111, 211, 0.18);
    background: rgba(11, 111, 211, 0.08);
    color: var(--accent-strong);
}

.permission-file-button svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    fill: currentColor;
}

.permission-delete-button,
.permission-delete-confirm {
    border: 1px solid rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.08);
    color: #b42318;
}

.permission-delete-cancel {
    border: 1px solid rgba(16, 34, 70, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
}

.permission-file-button:disabled,
.permission-delete-button:disabled,
.permission-delete-confirm:disabled,
.permission-delete-cancel:disabled {
    opacity: 0.58;
}

.attendance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.attendance-card-header strong {
    color: var(--text);
}

.attendance-card-header span {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.company-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.85rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.company-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(18, 38, 74, 0.12);
    border-color: rgba(255, 122, 24, 0.35);
}

.company-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.35rem;
}

.hero-logo {
    width: 80px;
    height: 80px;
}

.company-detail-logo {
    width: 48px;
    height: 48px;
}

.employee-photo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #fff;
}

.employee-photo-large {
    width: 92px;
    height: 92px;
}

.employee-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.employee-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(11, 24, 43, 0.5);
    backdrop-filter: blur(6px);
}

.employee-modal {
    width: min(100%, 380px);
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 1rem;
    position: relative;
}

.employee-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 34, 70, 0.08);
    color: var(--text);
    font-weight: 700;
}

.employee-photo-modal {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
}

.employee-modal-copy {
    display: grid;
    gap: 0.2rem;
    text-align: center;
}

.employee-modal-copy strong {
    color: var(--text);
    font-size: 0.98rem;
}

.employee-modal-copy span {
    color: var(--muted);
}

.employee-modal-grid {
    width: 100%;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.placeholder-logo {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.company-info {
    display: grid;
    gap: 0.35rem;
}

.company-info strong {
    color: var(--text);
    font-size: 0.8rem;
}

.last-mark-title {
    font-size: 0.96rem;
}

.company-info span,
.token-line {
    color: var(--muted);
    word-break: break-all;
}

.summary-grid {
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-card,
.detail-item {
    background: var(--surface-strong);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 0.9rem;
}

.summary-card span,
.detail-item span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.summary-card strong,
.detail-item strong {
    color: var(--text);
    word-break: break-word;
}

.qr-wrapper {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
}

.qr-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: start;
    padding: calc(env(safe-area-inset-top, 0px) + 7.2rem) 0.9rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    background:
        linear-gradient(180deg, rgba(11, 24, 43, 0.38), rgba(11, 24, 43, 0.62)),
        rgba(11, 24, 43, 0.48);
    backdrop-filter: blur(9px);
}

.qr-sheet-backdrop[hidden] {
    display: none;
}

.qr-sheet {
    display: grid;
    justify-items: center;
    gap: 0.58rem;
    width: min(100%, 380px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 8.2rem);
    margin: 0 auto;
    padding: 0.55rem 0.75rem 0.85rem;
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(16, 34, 70, 0.08);
    box-shadow: 0 28px 72px rgba(11, 24, 43, 0.28);
}

.qr-sheet-handle {
    width: 2.55rem;
    height: 0.24rem;
    border-radius: 999px;
    background: rgba(16, 34, 70, 0.16);
}

.qr-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    padding-inline: 0.1rem;
}

.qr-sheet-header div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.qr-sheet-header span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.qr-sheet-header h2 {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.15;
}

.qr-sheet-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.05rem;
    height: 2.05rem;
    border: 0;
    border-radius: 14px;
    background: rgba(16, 34, 70, 0.08);
    color: #344054;
}

.qr-sheet-close svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.qr-image {
    width: min(100%, 268px);
    border-radius: 18px;
    background: #fff;
    padding: 0.55rem;
    border: 1px solid var(--border);
}

.qr-sheet-image {
    width: min(100%, 252px);
    border-radius: 16px;
}

.qr-sheet-frame {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0.45rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(16, 34, 70, 0.08);
}

.qr-sheet-message {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.qr-sheet-message-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.qr-sheet-message-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.qr-sheet-helper {
    margin: 0;
    max-width: 18rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: center;
}

@media (max-height: 700px) {
    .qr-sheet-backdrop {
        padding-top: calc(env(safe-area-inset-top, 0px) + 5.7rem);
    }

    .qr-sheet {
        gap: 0.45rem;
        padding: 0.45rem 0.65rem 0.72rem;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 6.7rem);
    }

    .qr-sheet-image {
        width: min(100%, 232px);
    }

    .qr-image {
        padding: 0.45rem;
    }

    .qr-sheet-helper {
        font-size: 0.75rem;
    }

    .qr-sheet-message {
        padding: 0.48rem 0.6rem;
        font-size: 0.74rem;
    }
}

.status-box {
    display: grid;
    gap: 0.25rem;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    margin-top: 1rem;
}

.compact-box {
    margin-top: 0;
}

.success-box {
    background: var(--success-bg);
    color: var(--success-text);
}

.error-box {
    background: var(--error-bg);
    color: var(--error-text);
}

.neutral-box {
    background: rgba(11, 111, 211, 0.08);
    color: var(--accent-strong);
    font-weight: 800;
}

.service-toast {
    position: fixed;
    left: 50%;
    top: calc(env(safe-area-inset-top, 0px) + 1rem);
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    width: min(calc(100% - 1.8rem), 398px);
    padding: 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 34, 70, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(18, 38, 74, 0.18);
    transform: translateX(-50%);
}

.service-toast-success {
    border-color: rgba(2, 122, 72, 0.16);
}

.service-toast-error {
    border-color: rgba(180, 35, 24, 0.18);
}

.service-toast-info {
    border-color: rgba(11, 111, 211, 0.18);
}

.service-toast-warning {
    border-color: rgba(181, 71, 8, 0.22);
}

.service-toast-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 14px;
    background: var(--success-bg);
    color: var(--success-text);
}

.service-toast-error .service-toast-icon {
    background: var(--error-bg);
    color: var(--error-text);
}

.service-toast-info .service-toast-icon {
    background: #eef7ff;
    color: var(--accent-strong);
}

.service-toast-warning .service-toast-icon {
    background: #fff7ed;
    color: #b54708;
}

.service-toast-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.service-toast-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.service-toast-copy strong {
    color: var(--text);
    font-size: 0.88rem;
}

.service-toast-copy span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.service-toast-close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 12px;
    background: rgba(16, 34, 70, 0.06);
    color: var(--muted);
    font-weight: 800;
}

.map-link {
    display: inline-block;
    margin-top: 0.9rem;
    font-weight: 600;
}

.payload-box {
    margin-top: 1rem;
    background: #132238;
    color: #f8fbff;
    border-radius: 18px;
    padding: 1rem;
    overflow: auto;
}

.payload-title,
.helper-text {
    color: var(--muted);
    margin-bottom: 0.5rem;
}

pre {
    margin: 0;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.validation-message {
    color: var(--error-text);
    font-size: 0.9rem;
}

.blazor-error-boundary {
    background: #b42318;
    padding: 1rem;
    color: white;
    border-radius: 16px;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

@media (min-width: 768px) {
    .mobile-shell {
        width: min(100%, 430px);
    }

    .login-shell {
        width: min(100%, 440px);
        grid-template-columns: 1fr;
    }

    .login-panel {
        padding: 1.6rem;
    }

    .login-brand-logo {
        width: min(100%, 204px);
    }

    .login-feature-strip {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
