.customer-portal-page,
.customer-form-page {
    --portal-primary: var(--primary-color, #0a68ac);
    --portal-teal: #087a69;
    --portal-navy: #102a43;
    --portal-muted: #687b8f;
    --portal-border: #dce7ec;
    --portal-surface: #fff;
    display: grid;
    gap: 22px;
}

.customer-shell .learning-main {
    width: 100%;
    max-width: var(--home-container, 1350px);
    padding: 28px 32px 56px;
}

.learning-profile-name {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.customer-portal-loading,
.customer-portal-error {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid var(--portal-border, #dce7ec);
    border-radius: 18px;
    background: #fff;
    color: #66798c;
}

.customer-portal-loading i { color: #087a69; font-size: 24px; }
.customer-portal-error { color: #a6372a; }
.customer-portal-error i { font-size: 26px; }
.customer-portal-error div { display: grid; gap: 4px; }

.customer-identity-card {
    position: relative;
    isolation: isolate;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    overflow: hidden;
    padding: 32px 38px;
    border-radius: 22px;
    background: linear-gradient(120deg, #07375c 0%, var(--portal-primary) 56%, #087a69 100%);
    box-shadow: 0 18px 42px rgba(9, 74, 103, .18);
    color: #fff;
}

.customer-identity-card::before,
.customer-identity-card::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .13);
}

.customer-identity-card::before { width: 330px; height: 330px; right: 11%; top: -250px; }
.customer-identity-card::after { width: 220px; height: 220px; left: 36%; bottom: -178px; background: rgba(255, 255, 255, .04); }
.customer-identity-main { min-width: 0; display: flex; align-items: center; gap: 24px; }

.customer-avatar-large {
    width: 118px;
    height: 118px;
    flex: 0 0 118px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .7);
    border-radius: 28px;
    background: #e9fff7;
    color: #087a69;
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 27, 48, .22);
}

.customer-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.customer-identity-copy { min-width: 0; }
.customer-welcome { color: #bfe9e4; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.customer-identity-copy h1 { margin: 5px 0 7px; color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 850; }
.customer-identity-copy p { margin: 0 0 12px; color: rgba(255, 255, 255, .84); }
.customer-identity-copy p i { margin-right: 7px; }
.customer-code { width: fit-content; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .13); color: #e7fbff; font-size: 13px; }

.customer-identity-qr {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 13px;
    border-radius: 15px;
    background: #fff;
    color: #596d80;
    box-shadow: 0 12px 30px rgba(0, 28, 47, .22);
}

.customer-identity-qr canvas { width: 100px !important; height: 100px !important; }
.customer-identity-qr small { font-size: 11px; font-weight: 750; }

.customer-portal-section,
.customer-next-appointment,
.customer-health-snapshot,
.customer-settings-card,
.customer-form-card {
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: var(--portal-surface);
    box-shadow: 0 12px 30px rgba(18, 54, 74, .06);
}

.customer-portal-section { padding: 26px; }
.customer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.customer-section-heading span,
.customer-card-title small,
.customer-settings-card header small,
.customer-form-card header small { display: block; color: var(--portal-teal); font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.customer-section-heading h2,
.customer-card-title h2,
.customer-settings-card h2 { margin: 4px 0 0; color: var(--portal-navy); font-size: 21px; font-weight: 850; }
.customer-section-heading > a,
.customer-section-heading > button { border: 0; background: transparent; color: var(--portal-teal); font-size: 13px; font-weight: 800; text-decoration: none; }
.customer-section-heading > a i { margin-left: 6px; }
.customer-section-heading > button { padding: 9px 13px; border-radius: 9px; background: #eaf7f5; }

.customer-utility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.customer-utility-card { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; padding: 20px; border: 1px solid #dce9ed; border-radius: 15px; color: var(--portal-navy); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.customer-utility-card:hover { transform: translateY(-2px); border-color: #9fcfc7; box-shadow: 0 14px 26px rgba(10, 91, 97, .11); color: var(--portal-navy); }
.customer-utility-icon { grid-row: 1 / span 2; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: #e8f7f4; color: #087a69; font-size: 22px; }
.utility-health .customer-utility-icon { background: #eaf4fd; color: #0a68ac; }
.utility-booking .customer-utility-icon { background: #eef7eb; color: #3b8b37; }
.customer-utility-card strong { font-size: 16px; }
.customer-utility-card small { overflow: hidden; color: var(--portal-muted); text-overflow: ellipsis; white-space: nowrap; }
.customer-utility-card > i { grid-column: 3; grid-row: 1 / span 2; color: #8ba0ae; }

.customer-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 22px; }
.customer-next-appointment,
.customer-health-snapshot { padding: 25px; }
.customer-card-title { display: flex; align-items: center; gap: 13px; }
.customer-card-title > span,
.customer-settings-card header > span,
.customer-form-card header > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 13px; background: #e8f7f4; color: var(--portal-teal); font-size: 18px; }

.customer-appointment-highlight { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 18px; align-items: center; margin: 22px 0; padding: 18px; border-radius: 15px; background: linear-gradient(120deg, #edf8fb, #eefaf5); }
.customer-date-tile { min-height: 78px; display: grid; place-items: center; align-content: center; border-radius: 13px; background: #fff; box-shadow: 0 8px 18px rgba(11, 74, 87, .1); }
.customer-date-tile strong { color: var(--portal-primary); font-size: 30px; line-height: 1; }
.customer-date-tile span { margin-top: 5px; color: var(--portal-muted); font-size: 12px; }
.customer-appointment-highlight h3 { margin: 0 0 8px; color: var(--portal-navy); font-size: 19px; }
.customer-appointment-highlight p { margin: 0 0 10px; color: var(--portal-muted); font-size: 13px; }
.customer-primary-action,
.customer-primary-button,
.customer-secondary-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 17px; font-weight: 800; text-decoration: none; }
.customer-primary-action,
.customer-primary-button { background: linear-gradient(135deg, var(--portal-primary), var(--portal-teal)); color: #fff; }
.customer-primary-action:hover,
.customer-primary-button:hover { color: #fff; filter: brightness(1.04); }
.customer-secondary-button { border: 1px solid #cad9e0; background: #fff; color: #506779; }

.customer-health-snapshot dl { display: grid; gap: 11px; margin: 21px 0 0; }
.customer-health-snapshot dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 11px; background: #f5f8fa; }
.customer-health-snapshot dt { color: #607487; font-size: 13px; font-weight: 700; }
.customer-health-snapshot dd { margin: 0; color: var(--portal-teal); font-size: 21px; font-weight: 900; }
.customer-health-snapshot dd.text-value { max-width: 135px; overflow: hidden; color: var(--portal-navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.customer-status { width: fit-content; display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #eef1f4; color: #5d6c7c; font-size: 11px; font-weight: 800; white-space: nowrap; }
.customer-status.status-pending { background: #fff5d9; color: #936900; }
.customer-status.status-confirmed { background: #e5f4ff; color: #096ca8; }
.customer-status.status-completed { background: #e6f7ef; color: #137558; }
.customer-status.status-canceled { background: #fff0ee; color: #a13c31; }

.customer-appointment-list { border-top: 1px solid #e7eef2; }
.customer-appointment-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 15px 4px; border-bottom: 1px solid #e7eef2; }
.customer-list-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #eef7fb; color: var(--portal-primary); }
.customer-list-main { min-width: 0; display: grid; gap: 3px; }
.customer-list-main strong { overflow: hidden; color: var(--portal-navy); text-overflow: ellipsis; white-space: nowrap; }
.customer-list-main span,
.customer-appointment-row time span { color: var(--portal-muted); font-size: 12px; }
.customer-appointment-row time { display: grid; gap: 3px; text-align: right; }
.customer-appointment-row time strong { color: #354f65; font-size: 13px; }

.customer-empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 8px; color: #7890a2; text-align: center; }
.customer-empty-state i { color: #9fc3ca; font-size: 28px; }
.customer-empty-state p { margin: 0; }
.customer-empty-state a { color: var(--portal-teal); font-weight: 800; }
.customer-empty-state.compact { min-height: 140px; margin: 15px 0; padding: 15px; border-radius: 13px; background: #f6f9fa; }

.customer-inline-form { margin-bottom: 20px; padding: 18px; border-radius: 13px; background: #f5f9fa; }
.customer-inline-form > div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; }
.customer-inline-form label,
.customer-profile-form label { display: grid; gap: 7px; color: #385269; font-size: 13px; font-weight: 750; }
.customer-inline-form input,
.customer-inline-form select,
.customer-profile-form input,
.customer-profile-form select { width: 100%; min-height: 45px; border: 1px solid #cbd9df; border-radius: 9px; padding: 8px 11px; background: #fff; color: var(--portal-navy); outline: none; }
.customer-inline-form input:focus,
.customer-inline-form select:focus,
.customer-profile-form input:focus,
.customer-profile-form select:focus { border-color: var(--portal-teal); box-shadow: 0 0 0 3px rgba(8, 122, 105, .1); }
.customer-inline-form footer,
.customer-profile-form footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }

.customer-family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customer-family-grid article { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid #e0e9ed; border-radius: 13px; }
.customer-family-grid article > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #e7f7f3; color: var(--portal-teal); font-weight: 900; }
.customer-family-grid article div { min-width: 0; display: grid; gap: 4px; }
.customer-family-grid article strong { overflow: hidden; color: var(--portal-navy); text-overflow: ellipsis; white-space: nowrap; }
.customer-family-grid article small { color: var(--portal-muted); }
.customer-family-grid article button { border: 0; background: transparent; color: #a7b5bf; }
.customer-family-grid article button:hover { color: #b43a30; }

.customer-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-record-grid article,
.customer-record-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 17px; border: 1px solid #dce7ec; border-radius: 13px; color: inherit; text-decoration: none; }
.customer-record-grid article > span,
.customer-record-link > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #e9f3fb; color: var(--portal-primary); }
.customer-record-grid article div,
.customer-record-link div { min-width: 0; }
.customer-record-grid strong { display: block; color: var(--portal-navy); }
.customer-record-grid small { display: block; margin-top: 4px; color: var(--portal-muted); }
.customer-record-grid p { margin: 10px 0 0; overflow: hidden; color: #607488; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.customer-record-link > i { color: #9cafb9; }

.customer-subpage { --portal-primary: var(--primary-color, #0a68ac); --portal-teal: #087a69; --portal-navy: #102a43; --portal-muted: #687b8f; --portal-border: #dce7ec; display: grid; gap: 20px; }
.customer-subpage-header { min-height: 78px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; border: 1px solid var(--portal-border); border-radius: 17px; background: #fff; }
.customer-subpage-header > a:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #edf5f7; color: var(--portal-teal); text-decoration: none; }
.customer-subpage-header div span { color: var(--portal-teal); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.customer-subpage-header h1 { margin: 3px 0 0; color: var(--portal-navy); font-size: 25px; font-weight: 850; }
.customer-subpage-card { min-height: 330px; overflow: hidden; border: 1px solid var(--portal-border); border-radius: 17px; background: #fff; box-shadow: 0 12px 30px rgba(18, 54, 74, .06); }
.customer-segmented-tabs { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--portal-border); border-radius: 14px; padding: 5px; background: #fff; }
.customer-segmented-tabs button { min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: #65798b; font-weight: 800; }
.customer-segmented-tabs button span { margin-left: 5px; padding: 3px 7px; border-radius: 999px; background: #edf2f4; font-size: 11px; }
.customer-segmented-tabs button.active { background: linear-gradient(135deg, var(--portal-primary), var(--portal-teal)); color: #fff; }
.customer-segmented-tabs button.active span { background: rgba(255,255,255,.18); }
.customer-empty-state.large { min-height: 330px; }
.customer-empty-state.large h2 { margin: 3px 0 0; color: var(--portal-navy); font-size: 20px; }
.customer-appointment-cards { display: grid; gap: 12px; padding: 20px; }
.customer-appointment-cards article { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 16px; border: 1px solid #e0e9ed; border-radius: 14px; }
.customer-appointment-cards article .customer-date-tile { min-height: 72px; }
.customer-appointment-cards article > a { grid-column: 3; color: var(--portal-teal); font-size: 12px; font-weight: 800; text-decoration: none; }
.customer-appointment-cards .customer-list-main span { display: block; margin-top: 4px; }
.customer-appointment-cards .customer-list-main span i { width: 16px; color: #8aa0af; }

.health-patient-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 22px; border-radius: 17px; background: linear-gradient(120deg, #07375c, var(--portal-primary), #087a69); color: #fff; box-shadow: 0 16px 35px rgba(9, 74, 103, .16); }
.health-patient-avatar { width: 74px; height: 74px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.7); border-radius: 20px; background: #e8fff8; color: var(--portal-teal); font-size: 22px; font-weight: 900; }
.health-patient-card h2 { margin: 0 0 5px; color: #fff; font-size: 24px; font-weight: 850; }
.health-patient-card p { margin: 0 0 5px; color: rgba(255,255,255,.8); }
.health-patient-card span { color: #d8f1f4; font-size: 12px; }
.health-patient-card canvas { width: 82px !important; height: 82px !important; padding: 6px; border-radius: 10px; background: #fff; }
.health-year-filter { display: flex; gap: 9px; overflow-x: auto; }
.health-year-filter button { min-width: 94px; min-height: 42px; border: 1px solid #bad4d9; border-radius: 999px; padding: 8px 18px; background: #fff; color: var(--portal-teal); font-weight: 850; }
.health-year-filter button.active { border-color: transparent; background: linear-gradient(135deg, var(--portal-primary), var(--portal-teal)); color: #fff; }
.health-visit-list { display: grid; gap: 12px; padding: 20px; }
.health-visit-list a { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid #dce7ec; border-radius: 14px; color: var(--portal-navy); text-decoration: none; box-shadow: 0 7px 18px rgba(18,54,74,.04); }
.health-visit-list time { min-height: 76px; display: grid; place-items: center; align-content: center; border-right: 1px solid #dce7ec; color: var(--portal-primary); }
.health-visit-list time strong { font-size: 31px; line-height: 1; }
.health-visit-list time span { margin-top: 5px; font-size: 12px; font-weight: 800; }
.health-visit-list a > div { min-width: 0; display: grid; gap: 4px; }
.health-visit-list a > div strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.health-visit-list a > div span { color: #516a7e; }
.health-visit-list a > div small { color: var(--portal-muted); }
.health-visit-list a > i { color: #9aabb6; }

.health-detail-identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--portal-border); border-radius: 17px; background: #fff; }
.health-detail-identity > div:nth-child(2) { min-width: 0; }
.health-detail-identity > div:nth-child(2) > span { display: inline-flex; margin-bottom: 6px; padding: 4px 8px; border-radius: 7px; background: #e8f7f4; color: var(--portal-teal); font-size: 11px; font-weight: 800; }
.health-detail-identity h2 { margin: 0 0 7px; color: var(--portal-navy); font-size: 23px; }
.health-detail-identity p { margin: 0 0 7px; color: #536b7e; }
.health-detail-identity small { display: block; color: var(--portal-muted); }
.health-detail-identity time { min-width: 100px; display: grid; place-items: center; padding: 15px; border-radius: 14px; background: #edf7f8; color: var(--portal-primary); }
.health-detail-identity time strong { font-size: 32px; line-height: 1; }
.health-detail-identity time span { margin-top: 6px; font-size: 12px; }
.health-result-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.health-result-menu article { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 92px; padding: 17px; border: 1px solid #dce7ec; border-radius: 14px; background: #fff; }
.health-result-menu article > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #eff4f6; color: #8498a6; font-size: 18px; }
.health-result-menu article.available > span { background: #e8f7f4; color: var(--portal-teal); }
.health-result-menu article div { min-width: 0; display: grid; gap: 4px; }
.health-result-menu article strong { color: var(--portal-navy); }
.health-result-menu article small { overflow: hidden; color: var(--portal-muted); text-overflow: ellipsis; white-space: nowrap; }
.health-result-menu article > i { color: #9aaab5; }
.health-result-menu article em { padding: 4px 7px; border-radius: 999px; background: #f0f3f4; color: #84939c; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }

.customer-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.customer-settings-card { overflow: hidden; }
.customer-settings-card header,
.customer-form-card > header { display: flex; align-items: center; gap: 13px; padding: 22px; border-bottom: 1px solid #e8eef1; }
.customer-settings-card > a,
.customer-settings-card > button,
.customer-setting-static { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; border: 0; border-bottom: 1px solid #edf1f3; padding: 15px 20px; background: #fff; color: var(--portal-navy); text-align: left; text-decoration: none; }
.customer-settings-card > a:hover,
.customer-settings-card > button:hover { background: #f7fafb; color: var(--portal-navy); }
.customer-settings-card > a > i:first-child,
.customer-settings-card > button > i:first-child,
.customer-setting-static > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #f0f4f5; color: #748b9c; }
.customer-settings-card > a span,
.customer-settings-card > button span,
.customer-setting-static span { min-width: 0; display: grid; gap: 3px; }
.customer-settings-card > a strong,
.customer-settings-card > button strong,
.customer-setting-static strong { font-size: 14px; }
.customer-settings-card > a small,
.customer-settings-card > button small,
.customer-setting-static small { overflow: hidden; color: var(--portal-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.customer-settings-card > a > i:last-child,
.customer-settings-card > button > i:last-child { color: #a0afb9; }
.customer-setting-static em { padding: 5px 8px; border-radius: 999px; background: #f0f3f4; color: #7d8e99; font-size: 10px; font-style: normal; font-weight: 800; }

.customer-form-page { width: min(100%, 900px); margin: 0 auto; }
.customer-password-page { width: min(100%, 620px); }
.customer-back-link { width: fit-content; display: inline-flex; align-items: center; gap: 8px; color: #526b7e; font-size: 13px; font-weight: 800; text-decoration: none; }
.customer-form-card { overflow: hidden; }
.customer-form-card header h1 { margin: 3px 0 4px; color: var(--portal-navy); font-size: 27px; font-weight: 850; }
.customer-form-card header p { margin: 0; color: var(--portal-muted); font-size: 13px; }
.customer-profile-form { padding: 25px; }
.customer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.customer-form-grid.single { grid-template-columns: 1fr; }
.customer-form-grid .wide { grid-column: 1 / -1; }
.customer-profile-form label small { color: var(--portal-muted); font-weight: 500; }
.customer-form-message { margin: 20px 25px 0; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.customer-form-message.success { background: #e9f8f1; color: #126d51; }
.customer-form-message.error { background: #fff0ee; color: #9b382e; }

.customer-result-detail,
.customer-result-files { display: grid; gap: 0; }
.customer-result-detail h2,
.customer-result-files h2 { margin: 0 0 15px; color: var(--portal-navy); font-size: 19px; }
.customer-result-detail > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid #e8eef1; }
.customer-result-detail > div span { display: grid; gap: 4px; }
.customer-result-detail > div small { color: var(--portal-muted); }
.customer-result-detail > div b { white-space: nowrap; color: var(--portal-navy); }
.customer-result-detail > div b.abnormal { color: #c53b31; }
.customer-result-files > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #e8eef1; color: var(--portal-navy); text-decoration: none; }
.customer-result-files > a > i:first-child { color: #d84343; font-size: 24px; }
.customer-result-files > a span { display: grid; gap: 3px; }
.customer-result-files > a small { color: var(--portal-muted); }

@media (max-width: 980px) {
    .customer-utility-grid,
    .customer-dashboard-grid { grid-template-columns: 1fr; }
    .customer-utility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .customer-shell .learning-main { padding: 18px 32px 40px; }
    .learning-topbar { display: flex; min-height: 66px; padding: 11px 15px; }
    .learning-brand { flex: 1; }
    .learning-brand span { display: none; }
    .learning-search { display: none; }
    .learning-profile { gap: 8px; }
    .learning-profile-name { display: none; }
    .learning-coins { font-size: 0; }
    .learning-coins i { font-size: 14px; }
    .learning-subnav { position: static; height: 54px; gap: 22px; padding: 0 15px; overflow-x: auto; box-shadow: none; }
    .learning-subnav a { flex: 0 0 auto; gap: 6px; font-size: 11px; white-space: nowrap; }
    .learning-subnav a i { font-size: 14px; }
    .customer-portal-page { gap: 14px; }
    .customer-identity-card { min-height: 175px; padding: 22px 19px; border-radius: 17px; }
    .customer-avatar-large { width: 78px; height: 78px; flex-basis: 78px; border-radius: 21px; font-size: 23px; }
    .customer-identity-main { gap: 14px; }
    .customer-identity-copy h1 { font-size: 21px; }
    .customer-welcome,
    .customer-code { font-size: 10px; }
    .customer-identity-copy p { margin-bottom: 8px; font-size: 12px; }
    .customer-identity-qr { padding: 8px; }
    .customer-identity-qr canvas { width: 72px !important; height: 72px !important; }
    .customer-identity-qr small { display: none; }
    .customer-portal-section,
    .customer-next-appointment,
    .customer-health-snapshot { padding: 18px; border-radius: 15px; }
    .customer-section-heading h2,
    .customer-card-title h2,
    .customer-settings-card h2 { font-size: 18px; }
    .customer-utility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .customer-utility-card { display: flex; min-height: 125px; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 6px; text-align: center; }
    .customer-utility-icon { width: 48px; height: 48px; }
    .customer-utility-card strong { font-size: 12px; line-height: 1.3; }
    .customer-utility-card small,
    .customer-utility-card > i { display: none; }
    .customer-appointment-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .customer-appointment-row time { grid-column: 2; text-align: left; }
    .customer-appointment-row .customer-status { grid-column: 3; grid-row: 1 / span 2; }
    .customer-family-grid,
    .customer-record-grid,
    .customer-settings-grid,
    .customer-form-grid { grid-template-columns: 1fr; }
    .customer-form-grid .wide { grid-column: auto; }
    .customer-inline-form > div { grid-template-columns: 1fr; }
    .customer-subpage { gap: 13px; }
    .customer-subpage-header { min-height: 64px; padding: 12px 14px; border-radius: 14px; }
    .customer-subpage-header h1 { font-size: 19px; }
    .customer-subpage-header > .customer-primary-button { width: 42px; min-width: 42px; padding: 0; font-size: 0; }
    .customer-subpage-header > .customer-primary-button i { font-size: 13px; }
    .customer-appointment-cards,
    .health-visit-list { padding: 12px; }
    .customer-appointment-cards article { grid-template-columns: 65px minmax(0, 1fr) auto; padding: 13px; }
    .customer-appointment-cards article > a { grid-column: 2 / -1; }
    .health-patient-card { padding: 17px; }
    .health-patient-avatar { width: 60px; height: 60px; }
    .health-patient-card h2 { font-size: 19px; }
    .health-patient-card canvas { width: 68px !important; height: 68px !important; }
    .health-visit-list a { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 13px; }
    .health-detail-identity { grid-template-columns: auto minmax(0, 1fr); padding: 17px; }
    .health-detail-identity time { grid-column: 1 / -1; min-width: 0; display: flex; justify-content: center; gap: 7px; }
    .health-detail-identity time strong { font-size: 18px; }
    .health-detail-identity time span { margin: 0; }
    .health-result-menu { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .customer-shell .learning-main { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 470px) {
    .customer-identity-card { gap: 10px; }
    .customer-avatar-large { width: 64px; height: 64px; flex-basis: 64px; }
    .customer-code { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .customer-identity-qr canvas { width: 62px !important; height: 62px !important; }
    .customer-section-heading { align-items: flex-start; }
    .customer-section-heading > a { font-size: 0; }
    .customer-section-heading > a i { font-size: 13px; }
}
