body {
    color: #0f172a;
}

.portal-shell-bg {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.portal-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #c9d8ea;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.portal-shell-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.portal-shell-kicker {
    color: #0b3d91;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.portal-shell-title {
    color: #020617;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.portal-shell-title:hover {
    color: #0f4fa8;
}

.portal-shell-subtitle {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.portal-shell-nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portal-hero {
    border: 1px solid #c9d8ea;
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.portal-card {
    border: 1px solid #c9d8ea;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.portal-soft-card {
    border: 1px solid #d9e5f2;
    border-radius: 1.25rem;
    background: #f8fbff;
}

.portal-pill-link,
.portal-pill-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid #c9d8ea;
    border-radius: 999px;
    background: #f4f8fc;
    color: #020617;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.portal-pill-link:hover {
    background: #dbeafe;
    color: #0b3d91;
}

.portal-action-primary,
.portal-action-primary:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 0;
    border-radius: 1rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-action-primary:hover {
    background: #1e293b;
    color: #ffffff;
}

.portal-action-secondary,
.portal-action-secondary:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid #c9d8ea;
    border-radius: 1rem;
    background: #f4f8fc;
    color: #020617;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-action-secondary:hover {
    background: #dbeafe;
    color: #0b3d91;
}

.portal-metric-card {
    border: 1px solid #c9d8ea;
    border-radius: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.portal-table-shell {
    overflow: hidden;
    border: 1px solid #d9e5f2;
    border-radius: 1.25rem;
    background: #ffffff;
}

.portal-table-shell table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.portal-table-shell thead {
    background: #f8fbff;
}

.portal-table-shell tbody tr:hover {
    background: #f8fbff;
}

.portal-input {
    border-color: #c9d8ea;
    background: #ffffff;
}

.portal-admin-bg {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.portal-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #c9d8ea;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.portal-admin-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.portal-admin-kicker {
    color: #0b3d91;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.portal-admin-title {
    color: #020617;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.portal-admin-title:hover {
    color: #0f4fa8;
}

.portal-admin-subtitle {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.portal-admin-nav-shell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portal-admin-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-admin-pill-link,
.portal-admin-pill-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.15rem;
    border: 1px solid #c9d8ea;
    border-radius: 999px;
    background: #f4f8fc;
    color: #020617;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.portal-admin-pill-link:hover {
    background: #dbeafe;
    color: #0b3d91;
}

.portal-admin-primary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.portal-admin-primary-pill:hover {
    background: #1e293b;
}

.portal-admin-message {
    border: 1px solid #c9d8ea;
    border-radius: 1rem;
    background: #f4f8fc;
    color: #0f172a;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
}

.portal-admin-hero {
    border: 1px solid #c9d8ea;
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.portal-admin-card {
    border: 1px solid #c9d8ea;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.portal-admin-card-soft {
    border: 1px solid #c9d8ea;
    border-radius: 1.5rem;
    background: #f4f8fc;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.portal-admin-table-shell {
    overflow: hidden;
    border: 1px solid #d9e5f2;
    border-radius: 1.25rem;
    background: #ffffff;
}

.portal-admin-table-shell table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.portal-admin-table-shell thead {
    background: #f8fbff;
}

.portal-admin-table-shell th {
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.portal-admin-table-shell tbody tr:hover {
    background: #f8fbff;
}

.portal-admin-input {
    border-color: #c9d8ea;
    background: #ffffff;
}

.portal-admin-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid #c9d8ea;
    border-radius: 1rem;
    background: #f4f8fc;
    color: #020617;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-admin-outline-button:hover {
    background: #dbeafe;
    color: #0b3d91;
}

.portal-admin-dark-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 0;
    border-radius: 1rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-admin-dark-button:hover {
    background: #1e293b;
    color: #ffffff;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    padding: 0;
}

input[type='radio'] {
    width: 1rem;
    height: 1rem;
    padding: 0;
}

[x-cloak] {
    display: none !important;
}

.is-hidden {
    display: none !important;
}

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

.mobile-field-form input,
.mobile-field-form select,
.mobile-field-form textarea {
    min-height: 3.25rem;
    font-size: 1rem;
}

.mobile-action-bar {
    position: sticky;
    bottom: 0.75rem;
}

.mobile-action-bar > * {
    width: 100%;
}

.mobile-attempt-card {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.attempt-datetime-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attempt-date-inline,
.attempt-time-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.attempt-month-box {
    flex: 0 0 12rem;
}

.attempt-day-box {
    flex: 0 0 4.75rem;
}

.attempt-year-box {
    flex: 0 0 6.25rem;
}

.attempt-time-box,
.attempt-minute-box {
    flex: 0 0 5rem;
}

.attempt-month-box select,
.attempt-day-box input,
.attempt-year-box input,
.attempt-time-box select,
.attempt-minute-box input {
    width: 100%;
}

.attempt-slash,
.attempt-colon {
    color: #475569;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.attempt-period-inline,
.service-address-option {
    margin: 0;
    padding: 0;
}

.attempt-period-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 0 0 auto;
}

.attempt-period-option,
.service-address-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attempt-period-radio {
    display: inline-flex;
    align-items: center;
}

.service-address-option {
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 0.9rem 1rem;
}

.service-address-control {
    padding-top: 0.1rem;
}

.service-address-text {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .portal-shell-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-shell-title {
        font-size: 1.45rem;
    }

    .portal-shell-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .portal-admin-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.1rem;
    }

    .portal-admin-title {
        font-size: 1.55rem;
    }

    .portal-admin-nav-shell,
    .portal-admin-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .attempt-date-inline,
    .attempt-time-inline {
        gap: 0.4rem;
    }

    .attempt-month-box {
        flex-basis: 8.5rem;
    }

    .attempt-day-box {
        flex-basis: 3.5rem;
    }

    .attempt-year-box {
        flex-basis: 4.8rem;
    }

    .attempt-time-box,
    .attempt-minute-box {
        flex-basis: 3.8rem;
    }

    .attempt-period-inline {
        gap: 0.5rem;
    }

    body {
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-field-form {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
}
