:root {
    --admin-shell-max-width: 1600px;
}

html {
    scroll-behavior: smooth;
}

/* Client portal: customer services and invoices */
.client-billing-page {
    width: 100%;
    display: grid;
    gap: 14px;
}

.client-page-heading {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.client-page-heading > div {
    min-width: 0;
}

.client-page-heading span:first-child {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-color, #0a68ac);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-page-heading h1 {
    margin: 0;
    color: #17283d;
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.2;
    font-weight: 700;
}

.client-page-heading p {
    margin: 5px 0 0;
    color: #66778a;
    font-size: 13px;
}

.client-heading-link {
    min-height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--primary-color, #0a68ac) 25%, #dbe3ec);
    border-radius: 7px;
    background: #fff;
    color: var(--primary-color, #0a68ac);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.client-heading-link:hover {
    background: color-mix(in srgb, var(--primary-color, #0a68ac) 6%, white);
    color: var(--primary-color, #0a68ac);
}

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

.client-summary-grid article {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #dfe6ef;
    border-left: 3px solid var(--primary-color, #0a68ac);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 42, 67, .035);
}

.client-summary-grid article.is-warning {
    border-left-color: #d98b18;
}

.client-summary-grid span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #627488;
    font-size: 12px;
    font-weight: 700;
}

.client-summary-grid span i {
    color: var(--primary-color, #0a68ac);
}

.client-summary-grid strong {
    color: #17283d;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
}

.client-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 210px auto;
    gap: 9px;
    padding: 10px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
}

.client-search-field {
    min-width: 0;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid #d8e0e9;
    border-radius: 6px;
    color: #8090a2;
    background: #fbfcfe;
}

.client-search-field:focus-within {
    border-color: var(--primary-color, #0a68ac);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #0a68ac) 12%, transparent);
}

.client-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17283d;
    font-size: 13px;
}

.client-filter-bar select,
.client-filter-bar > button {
    height: 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 650;
}

.client-filter-bar select {
    border: 1px solid #d8e0e9;
    padding: 0 10px;
    background: #fff;
    color: #34485e;
}

.client-filter-bar > button,
.client-state button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid var(--primary-color, #0a68ac);
    border-radius: 6px;
    background: var(--primary-color, #0a68ac);
    color: #fff;
    font-weight: 700;
}

.client-filter-bar > button:disabled {
    opacity: .55;
}

.client-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 26px;
    border: 1px dashed #ccd7e4;
    border-radius: 8px;
    background: #fff;
    color: #718297;
    text-align: center;
}

.client-state > i {
    color: var(--primary-color, #0a68ac);
    font-size: 27px;
}

.client-state strong {
    color: #26394f;
}

.client-state.is-error > i {
    color: #c23c3c;
}

.client-state button {
    min-height: 34px;
    margin-top: 4px;
}

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

.client-service-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 15px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(15, 42, 67, .04);
}

.client-service-card > header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.client-service-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary-color, #0a68ac) 10%, white);
    color: var(--primary-color, #0a68ac);
}

.client-service-card header small,
.client-service-card footer small {
    display: block;
    color: #8190a1;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.client-service-card h2 {
    margin: 2px 0 0;
    overflow: hidden;
    color: #17283d;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef1f5;
    color: #607187;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.client-status.is-success {
    background: #e9f8ee;
    color: #18733a;
}

.client-status.is-pending {
    background: #fff5da;
    color: #94610c;
}

.client-status.is-danger {
    background: #fdecec;
    color: #ac3030;
}

.client-service-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #66778a;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.client-service-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin: 0;
    padding: 11px;
    border-radius: 7px;
    background: #f7f9fc;
}

.client-service-facts div {
    min-width: 0;
}

.client-service-facts dt {
    color: #8391a2;
    font-size: 10px;
}

.client-service-facts dd {
    margin: 2px 0 0;
    overflow: hidden;
    color: #2b3e54;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-service-facts dd.is-warning,
.client-overdue {
    color: #bd531c;
}

.client-service-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f1f7fc;
    color: #3d5c77;
    font-size: 11px;
    line-height: 1.45;
}

.client-service-notice.is-warning {
    background: #fff6e5;
    color: #8a5a0c;
}

.client-service-notice i {
    margin-top: 2px;
}

.client-service-card > footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 11px;
    border-top: 1px solid #edf0f4;
}

.client-service-card footer strong {
    display: block;
    margin-top: 2px;
    color: var(--primary-color, #0a68ac);
    font-size: 15px;
}

.client-service-card footer a {
    color: #52687f;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.client-service-card footer a:hover {
    color: var(--primary-color, #0a68ac);
}

.client-table-shell {
    width: 100%;
    overflow: auto;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
}

.client-invoice-table {
    width: 100%;
    min-width: 930px;
    border-collapse: collapse;
}

.client-invoice-table th {
    padding: 10px 13px;
    border-bottom: 1px solid #dfe6ef;
    background: #f7f9fc;
    color: #697b8e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.client-invoice-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #edf0f4;
    color: #34495f;
    font-size: 12px;
    vertical-align: middle;
}

.client-invoice-table tbody tr:last-child td {
    border-bottom: 0;
}

.client-invoice-table tbody tr:hover {
    background: color-mix(in srgb, var(--primary-color, #0a68ac) 2.5%, white);
}

.client-invoice-table td > strong,
.client-invoice-table td > span,
.client-invoice-table td > small {
    display: block;
}

.client-invoice-table td > strong {
    color: #17283d;
    font-size: 12px;
}

.client-invoice-table td > small {
    max-width: 240px;
    margin-top: 3px;
    overflow: hidden;
    color: #8492a2;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-invoice-table .client-status {
    display: inline-flex;
}

.client-invoice-table .client-overdue {
    margin-top: 4px;
    font-weight: 700;
}

.client-pagination {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #728397;
    font-size: 11px;
}

.client-pagination > div {
    display: flex;
    gap: 6px;
}

.client-pagination button {
    width: 32px;
    height: 32px;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    background: #fff;
    color: var(--primary-color, #0a68ac);
}

.client-pagination button:disabled {
    color: #aeb9c5;
    background: #f3f5f8;
}

.client-dashboard-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.client-dashboard-links a {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce4ed;
    border-radius: 7px;
    background: #fff;
    color: #324960;
    text-decoration: none;
}

.client-dashboard-links a:hover {
    border-color: color-mix(in srgb, var(--primary-color, #0a68ac) 35%, #dce4ed);
    color: var(--primary-color, #0a68ac);
}

.client-dashboard-links a > i:first-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: color-mix(in srgb, var(--primary-color, #0a68ac) 9%, white);
    color: var(--primary-color, #0a68ac);
}

.client-dashboard-links span,
.client-dashboard-links strong,
.client-dashboard-links small {
    min-width: 0;
    display: block;
}

.client-dashboard-links small {
    margin-top: 2px;
    overflow: hidden;
    color: #78899a;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-dashboard-links a > i:last-child {
    color: #a1adba;
    font-size: 10px;
}

@media (max-width: 1100px) {
    .client-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .client-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .client-summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .client-summary-grid article {
        padding: 11px 13px;
    }

    .client-filter-bar {
        grid-template-columns: 1fr;
    }

    .client-service-grid,
    .client-dashboard-links {
        grid-template-columns: 1fr;
    }

    .client-table-shell {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .client-invoice-table {
        min-width: 0;
    }

    .client-invoice-table thead {
        display: none;
    }

    .client-invoice-table,
    .client-invoice-table tbody,
    .client-invoice-table tr,
    .client-invoice-table td {
        display: block;
        width: 100%;
    }

    .client-invoice-table tr {
        margin-bottom: 10px;
        padding: 9px 12px;
        border: 1px solid #dfe6ef;
        border-radius: 8px;
        background: #fff;
    }

    .client-invoice-table td {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .client-invoice-table td::before {
        content: attr(data-label);
        color: #7b8b9c;
        font-size: 10px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
    }

    .client-invoice-table td > small {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .client-service-card > header {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .client-service-card header .client-status {
        grid-column: 2;
    }

    .client-service-facts {
        grid-template-columns: 1fr;
    }
}

.client-auth-layout {
    min-height: 100vh;
    background: #f4f7fb;
    color: #102033;
}

.client-auth-topbar {
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 12px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(10, 104, 172, 0.12);
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 42, 67, 0.06);
}

.client-auth-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #173a5e;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.client-auth-brand img {
    width: auto;
    max-width: 160px;
    height: 38px;
    object-fit: contain;
}

.client-auth-area {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-color, #0a68ac);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.client-auth-home {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #52677e;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.client-auth-home:hover {
    color: var(--primary-color, #0a68ac);
}

.client-auth-layout .auth-page {
    min-height: calc(100vh - 72px);
}

@media (max-width: 720px) {
    .client-auth-topbar {
        grid-template-columns: 1fr auto;
    }

    .client-auth-area {
        display: none;
    }

    .client-auth-brand span,
    .client-auth-home i {
        display: none;
    }
}

.edu-public-shell,
.learning-shell {
    min-height: 100vh;
    color: #102033;
}

.edu-public-shell {
    background: #f6f8fb;
}

.edu-public-header {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 7vw;
    background: #32c10f;
    box-shadow: 0 8px 20px rgba(24, 134, 18, 0.18);
    position: sticky;
    top: 0;
    z-index: 10;
}

.edu-brand,
.learning-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #083052;
    text-decoration: none;
    font-weight: 700;
    font-size: 26px;
}

.edu-brand img,
.learning-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.edu-brand span span,
.learning-brand span span {
    color: #ecff47;
}

.edu-public-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

.edu-public-nav a,
.edu-link-button {
    color: #0e2a3f;
    font-weight: 700;
    text-decoration: none;
}

.edu-public-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edu-primary-button,
.edu-link-button {
    border: 0;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edu-primary-button {
    background: #0b2e4f;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.edu-link-button {
    background: rgba(255, 255, 255, 0.26);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 52px;
    min-height: 560px;
    padding: 74px 7vw 56px;
    align-items: center;
    background-color: #f6f8fb;
    background-image: url("/logo.png");
    background-repeat: no-repeat;
    background-size: 220px auto;
    background-position: right 8vw bottom 42px;
}

.hero-copy {
    max-width: 650px;
}

.hero-kicker {
    color: #18840e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 700;
    color: #0a2744;
}

.hero-copy p {
    font-size: 18px;
    line-height: 1.7;
    color: #4d5b6c;
    max-width: 590px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.hero-primary,
.hero-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
}

.hero-primary {
    background: #32c10f;
    color: #09284a;
}

.hero-secondary {
    background: #fff;
    color: #0a2744;
    border: 1px solid #dbe3ec;
}

.hero-preview {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    box-shadow: 0 26px 60px rgba(22, 48, 78, 0.14);
    padding: 18px;
}

.preview-top {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.preview-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dfe7f1;
}

.preview-grid {
    display: grid;
    gap: 14px;
}

.preview-card {
    min-height: 112px;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    gap: 8px;
    color: #0a2744;
}

.preview-card i {
    font-size: 24px;
}

.preview-card strong {
    font-size: 20px;
}

.preview-card small {
    color: #5b6878;
}

.preview-green {
    background: #ecfbe9;
}

.preview-blue {
    background: #eef7ff;
}

.preview-yellow {
    background: #fff8df;
}

.home-section {
    padding: 56px 7vw;
}

.section-heading span {
    color: #25a615;
    font-weight: 700;
}

.section-heading h2,
.home-band h2 {
    margin: 8px 0 24px;
    color: #0a2744;
    font-size: 34px;
    font-weight: 700;
}

.program-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.program-category-card {
    min-height: 150px;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.category-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edffe7;
    color: #22a80f;
}

.program-category-card strong {
    color: #0a2744;
    font-size: 20px;
}

.program-category-card p {
    margin: 8px 0 14px;
    color: #697789;
}

.program-category-card a {
    color: #13710c;
    font-weight: 700;
    text-decoration: none;
}

.home-band {
    margin: 0 7vw 64px;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: 8px;
    background: #0a2744;
    color: #fff;
}

.home-band p {
    margin: 0;
    max-width: 680px;
    color: #d9e6f3;
}

.home-band a {
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    background: #b9ff21;
    color: #0a2744;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.auth-page {
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    background:
        radial-gradient(circle at 8% 15%, rgba(10, 104, 172, 0.12), transparent 30%),
        radial-gradient(circle at 92% 82%, rgba(237, 52, 57, 0.08), transparent 27%),
        #f4f7fb;
}

.auth-shell {
    width: min(100%, 540px);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(10, 104, 172, 0.12);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(15, 42, 67, 0.14);
}

.auth-story {
    position: relative;
    isolation: isolate;
    min-height: 620px;
    display: none;
    flex-direction: column;
    padding: 42px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #07375c 0%, #0a68ac 66%, #1385c9 100%);
}

.auth-story::before,
.auth-story::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-story::before {
    width: 330px;
    height: 330px;
    right: -140px;
    top: -95px;
}

.auth-story::after {
    width: 260px;
    height: 260px;
    left: -135px;
    bottom: -90px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-brand {
    width: fit-content;
    max-width: 220px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 20, 40, 0.14);
}

.auth-brand img {
    display: block;
    max-width: 180px;
    max-height: 38px;
    object-fit: contain;
}

.auth-story-content {
    margin: auto 0;
}

.auth-story-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #bde4ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.auth-story-content h2 {
    max-width: 380px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
}

.auth-story-content > p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.75;
}

.auth-benefits {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
}

.auth-benefits i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.auth-back-home {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-back-home:hover {
    color: #fff;
}

.auth-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 52px;
    background: #fff;
}

.auth-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.auth-panel-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(10, 104, 172, 0.1);
    color: var(--primary-color, #0a68ac);
    font-size: 18px;
}

.auth-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color, #0a68ac);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-panel h1 {
    margin: 0 0 5px;
    color: #102a43;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.auth-panel-heading p {
    margin: 0;
    color: #6b7d90;
    font-size: 14px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #ffd2c7;
    border-radius: 10px;
    background: #fff5f2;
    color: #a12c19;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.auth-alert i {
    margin-top: 3px;
}

.auth-alert-success {
    border-color: #b9e7ce;
    background: #f1fbf5;
    color: #18794e;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field > label {
    margin: 0;
    color: #263f57;
    font-size: 13px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #8092a5;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd8e5;
    border-radius: 10px;
    padding: 0 14px 0 43px;
    background: #fff;
    color: #102a43;
    font-size: 14px;
    outline: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input-wrap input::placeholder {
    color: #9aa9b8;
}

.auth-input-wrap:focus-within > i {
    color: var(--primary-color, #0a68ac);
}

.auth-input-wrap input:focus {
    border-color: var(--primary-color, #0a68ac);
    box-shadow: 0 0 0 3px rgba(10, 104, 172, 0.12);
}

.auth-field-hint {
    color: #718397;
    font-size: 12px;
    line-height: 1.45;
}

.auth-form .auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #53677b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.auth-form .auth-checkbox input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--primary-color, #0a68ac);
}

.auth-terms a {
    color: var(--primary-color, #0a68ac);
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color, #0a68ac), #0787cc);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(10, 104, 172, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.auth-submit:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(10, 104, 172, 0.26);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.82;
}

.auth-submit-spinner {
    width: 18px;
    height: 18px;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-submit-spin 0.7s linear infinite;
}

.auth-submit-loading-text {
    display: none;
}

.auth-form[data-submitting="true"] .auth-submit-spinner,
.auth-form[data-submitting="true"] .auth-submit-loading-text {
    display: inline-flex;
}

.auth-form[data-submitting="true"] .auth-submit-text {
    display: none;
}

.auth-form[data-submitting="true"] .auth-submit-arrow {
    display: none;
}

@keyframes auth-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-switch {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e6edf4;
    color: #65788b;
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: var(--primary-color, #0a68ac);
    font-weight: 700;
    text-decoration: none;
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 0;
    color: #77899b;
    font-size: 12px;
    line-height: 1.55;
}

.auth-security-note i {
    margin-top: 3px;
    color: #4c9c6b;
}

@media (max-width: 900px) {
    .auth-shell {
        max-width: 540px;
    }

    .auth-story {
        min-height: auto;
        padding: 30px 34px;
    }

    .auth-story-content {
        margin: 42px 0 34px;
    }

    .auth-story-content h2 {
        max-width: 520px;
        font-size: 32px;
    }

    .auth-benefits {
        grid-template-columns: repeat(3, 1fr);
    }

    .auth-benefits li {
        align-items: flex-start;
        font-size: 12px;
    }

}

@media (max-width: 640px) {
    .auth-page {
        min-height: auto;
        padding: 24px 12px 36px;
    }

    .auth-shell {
        border-radius: 14px;
    }

    .auth-story {
        padding: 22px;
    }

    .auth-brand {
        min-height: 50px;
        padding: 8px 12px;
    }

    .auth-brand img {
        max-width: 150px;
        max-height: 32px;
    }

    .auth-story-content {
        margin: 28px 0 22px;
    }

    .auth-story-content h2 {
        margin-bottom: 10px;
        font-size: 25px;
    }

    .auth-story-content > p {
        font-size: 13px;
        line-height: 1.6;
    }

    .auth-benefits {
        display: none;
    }

    .auth-panel {
        padding: 30px 22px;
    }

    .auth-panel-heading {
        gap: 12px;
        margin-bottom: 22px;
    }

    .auth-panel-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 11px;
    }

    .auth-panel h1 {
        font-size: 27px;
    }
}

.learning-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 58px 46px minmax(0, 1fr);
    background: #f6f8fb;
    color: #0f1d33;
}

.learning-topbar {
    height: 58px;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(240px, 520px) 1fr;
    align-items: center;
    gap: 20px;
    padding: 0 clamp(16px, 3vw, 48px);
    background: var(--primary-color, #0a68ac);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color, #0a68ac) 24%, transparent);
}

.learning-topbar .learning-brand {
    min-width: 0;
    gap: 9px;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
}

.learning-topbar .learning-brand img {
    width: auto;
    max-width: 112px;
    height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
}

.learning-topbar .learning-brand > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learning-search {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.learning-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.learning-search input::placeholder {
    color: rgba(255, 255, 255, 0.92);
}

.learning-profile {
    justify-self: end;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    color: #fff;
    font-size: 13px;
}

.learning-profile strong {
    overflow: hidden;
    max-width: 220px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learning-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--primary-color, #0a68ac);
    font-size: 12px;
    font-weight: 700;
}

.learning-coins {
    color: #083052;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
}

.learning-subnav {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 clamp(16px, 3vw, 48px);
    border-bottom: 1px solid #e2e7ef;
    background: #fff;
    position: relative;
    z-index: 20;
}

.learning-subnav a,
.learning-subnav button {
    height: 34px;
    padding: 0 11px;
    border-radius: 6px;
    color: #33465c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learning-subnav a:hover,
.learning-subnav a:focus-visible,
.learning-subnav a.active {
    background: color-mix(in srgb, var(--primary-color, #0a68ac) 9%, white);
    color: var(--primary-color, #0a68ac);
}

.learning-program-menu {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.learning-program-toggle {
    height: 100%;
}

.learning-program-toggle i {
    transition: transform 0.18s ease;
}

.learning-program-menu:hover .learning-program-toggle i,
.learning-program-menu:focus-within .learning-program-toggle i {
    transform: rotate(180deg);
}

.learning-mega-menu {
    width: min(980px, calc(100vw - 40px));
    min-height: 420px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #dfe5ee;
    box-shadow: 0 24px 50px rgba(15, 29, 51, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.learning-program-menu:hover .learning-mega-menu,
.learning-program-menu:focus-within .learning-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.learning-mega-cats {
    padding: 18px;
    border-right: 1px solid #e2e7ef;
    background: #fff;
}

.learning-mega-cat {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0f1d33;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
}

.learning-mega-cat:hover,
.learning-mega-cat:focus {
    background: #f4f9ff;
    color: #0b4f92;
}

.learning-mega-cat span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learning-mega-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 42px;
    align-content: start;
    padding: 24px 26px;
    max-height: 70vh;
    overflow: auto;
}

.learning-mega-group h3 {
    margin: 0 0 14px;
    color: #0d1e34;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.learning-mega-programs {
    display: grid;
    gap: 16px;
}

.learning-mega-program {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    color: #0d1e34;
    text-decoration: none;
}

.learning-mega-program:hover strong,
.learning-mega-program:focus strong {
    color: #0b66c3;
}

.learning-mega-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f7ff;
    color: #0b66c3;
}

.learning-mega-program strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 700;
}

.learning-mega-program small {
    display: block;
    color: #697789;
    font-size: 14px;
    line-height: 1.7;
}

.learning-mega-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 240px;
    color: #697789;
    font-weight: 700;
}

.learning-main {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: clamp(14px, 2vw, 24px) clamp(16px, 3vw, 48px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.interest-panel,
.task-card,
.programs-panel,
.stat-card {
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
}

.interest-panel,
.task-card,
.programs-panel,
.stat-card {
    padding: 20px;
}

.interest-panel h2,
.task-card h2,
.programs-panel h2,
.stat-card h2 {
    margin: 0;
    color: #0d1e34;
    font-size: 21px;
    font-weight: 700;
}

.interest-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.interest-card {
    min-height: 126px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    color: #0a2744;
    background: #edfbea;
}

.interest-card:nth-child(2) {
    background: #f1f7ff;
}

.interest-card:nth-child(3) {
    background: #fff7d9;
}

.interest-card span {
    font-size: 18px;
    font-weight: 700;
}

.interest-card > i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #b8ff21;
    color: #13710c;
    align-self: flex-end;
}

.interest-card.active {
    border-color: #32c10f;
    box-shadow: 0 0 0 3px rgba(50, 193, 15, 0.12);
}

.today-panel {
    width: 100%;
    display: grid;
    gap: 12px;
}

.today-panel > .task-card {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.task-card > h1 {
    margin: 0;
    color: #17283d;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.25;
    font-weight: 700;
}

.task-content {
    margin-top: 12px;
    display: block;
    padding: 0;
    background: transparent;
}

.hint-card,
.start-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}

.hint-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.hint-icon,
.book-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaffdf;
    color: #28ad13;
}

.hint-card strong,
.start-card h3 {
    color: #0d1e34;
    font-size: 20px;
    font-weight: 700;
}

.hint-card p,
.start-card p {
    color: #657386;
    line-height: 1.55;
}

.start-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 18px 20px;
    border: 1px solid #e1e7ef;
    border-left: 4px solid var(--primary-color, #0a68ac);
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary-color, #0a68ac) 3%, white);
    box-shadow: 0 5px 18px rgba(15, 42, 67, 0.05);
    text-align: left;
}

.book-icon {
    grid-area: icon;
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 18px;
    background: var(--primary-color, #0a68ac);
    color: #fff;
}

.start-card h2 {
    grid-area: title;
    margin: 0;
    color: #17283d;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.start-card p {
    grid-area: copy;
    margin: 0;
    color: #657386;
    font-size: 13px;
    line-height: 1.45;
}

.program-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.program-chips button {
    border: 0;
    border-radius: 999px;
    background: #eef8ff;
    color: #175476;
    padding: 9px 14px;
    font-weight: 700;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.panel-title span {
    color: #13710c;
    font-weight: 700;
}

.learning-menu {
    display: grid;
    gap: 18px;
}

.menu-category header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.menu-category header > i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edfbea;
    color: #22a80f;
}

.menu-category strong {
    display: block;
    color: #0d1e34;
    font-weight: 700;
}

.menu-category small {
    color: #6d7a89;
    font-weight: 700;
}

.menu-programs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.program-card {
    min-height: 164px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    padding: 18px;
    background: #fbfff9;
}

.program-card:nth-child(3n + 2) {
    background: #f5faff;
}

.program-card:nth-child(3n) {
    background: #fff9e8;
}

.program-card span {
    color: #14760d;
    font-weight: 700;
    font-size: 13px;
}

.program-card strong {
    margin-top: 10px;
    font-size: 20px;
}

.program-card p {
    margin: 10px 0;
    color: #697789;
}

.subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.subject-list em {
    font-style: normal;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfe7f0;
    padding: 5px 9px;
    color: #516171;
    font-weight: 700;
    font-size: 12px;
}

.stats-column {
    display: grid;
    gap: 18px;
}

.streak-summary {
    margin: 18px 0;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border-radius: 8px;
    background: #f0faef;
}

.streak-summary strong {
    font-size: 42px;
    color: #13710c;
}

.streak-summary span {
    color: #32c10f;
    font-weight: 700;
}

.streak-summary p {
    margin: 4px 0 0;
    font-weight: 700;
}

.week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 9px;
    margin-bottom: 16px;
}

.week-row div {
    display: grid;
    place-items: center;
    gap: 8px;
}

.week-row span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e9ef;
}

.stats-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.stats-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-radius: 8px;
    background: #f7f7fb;
    padding: 12px;
}

.stats-list dt {
    font-weight: 700;
}

.stats-list dd {
    margin: 0;
    color: #27b913;
    font-weight: 700;
}

.ranking-card {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 22px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.ranking-row span,
.ranking-row b {
    color: #14760d;
    font-weight: 700;
}

.ranking-row em {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edffe7;
    color: #13710c;
    font-style: normal;
    font-weight: 700;
}

.ranking-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-articles-section {
    padding-top: 0;
}

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-article-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(13, 42, 72, 0.08);
}

.home-article-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    display: block;
    background: #eff7ee;
    padding: 18px;
}

.home-article-body {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.home-article-body span {
    color: #27b913;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-article-body h3 {
    margin: 0;
    min-height: 54px;
    color: #08182f;
    font-size: 18px;
    line-height: 1.35;
}

.home-article-body p {
    margin: 0;
    min-height: 66px;
    color: #5f6b7a;
    line-height: 1.5;
}

.home-article-body small {
    color: #7a8593;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .interest-list,
    .menu-programs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .home-hero,
    .program-category-grid,
    .home-article-grid {
        grid-template-columns: 1fr;
    }

    .learning-topbar {
        grid-template-columns: minmax(160px, 1fr) minmax(200px, 380px) auto;
        gap: 14px;
    }

    .learning-subnav {
        overflow-x: auto;
    }

    .learning-mega-menu {
        width: min(760px, calc(100vw - 40px));
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .learning-mega-content {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .home-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 820px) {
    .edu-public-header {
        height: auto;
        min-height: 72px;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .edu-public-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .edu-brand,
    .learning-brand {
        font-size: 22px;
    }

    .learning-program-menu {
        position: static;
    }

    .learning-mega-menu {
        left: 20px;
        right: 20px;
        width: auto;
        grid-template-columns: 1fr;
    }

    .learning-mega-cats {
        border-right: 0;
        border-bottom: 1px solid #e2e7ef;
    }
}

@media (max-width: 720px) {
    .task-content,
    .interest-list,
    .menu-programs,
    .home-article-grid {
        grid-template-columns: 1fr;
    }

    .panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .learning-shell {
        grid-template-rows: 54px 44px minmax(0, 1fr);
    }

    .learning-topbar {
        height: 54px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0 14px;
    }

    .learning-search {
        display: none;
    }

    .learning-topbar .learning-brand > span {
        font-size: 15px;
    }

    .learning-profile strong {
        display: none;
    }

    .learning-subnav {
        height: 44px;
        padding: 0 8px;
    }

    .learning-subnav a,
    .learning-subnav button {
        flex: 0 0 auto;
        padding: 0 9px;
        font-size: 12px;
    }

    .learning-main {
        padding: 14px;
    }

    .start-card {
        padding: 15px 16px;
    }
}
