﻿/* ==========================================================
   GLOBAL — app.css
   ========================================================== */

:root {
    --brand: #008ABE;
    --brand-dark: #007aa6;
    --brand-light: #e6f4fa;
    --page-bg: #f0f2f5;
    --text: #1f2937;
    --muted: #6b7280;
    --font-body: "sofia-pro";
    --font-head: "Crimson Pro", Georgia, "Times New Roman", serif;
    --pt-header-h: 72px;
    --pt-header-h-mobile: 66px;
    --pt-footer-safe: 72px;
    --pt-heather-z: 10050;
    --pt-heather-w: 420px;
    --pt-heather-w-md: 380px;
    --pt-nav-active: #262626;
    --pt-notch-w: 15px;
    --pt-notch-overlap: 5px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-body);
    background: var(--page-bg);
    color: var(--text);
    overflow-x: hidden;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6, .pt-title {
    font-family: var(--font-head);
}

/* =========================================================
   TOP HEADER
   ========================================================= */
.pt-topheader {
    height: var(--pt-header-h);
    background: var(--brand);
    color: #fff;
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    align-items: center;
    padding: 0 18px;
}

.pt-top-left {
    display: flex;
    align-items: center;
}

.pt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.pt-brand-logo {
    width: 20px;
    height: 34px;
}

.pt-top-center {
    display: flex;
    justify-content: center;
}

.pt-top-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    font-weight: 500;
    font-size: 14px;
}

.pt-toplink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

    .pt-toplink .rz-icon {
        font-size: 18px;
    }

    .pt-toplink:hover {
        text-decoration: underline;
    }

.pt-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.10);
    color: #fff;
    cursor: pointer;
}

    .pt-burger .rz-icon {
        font-size: 26px;
    }

/* =========================================================
   APP SHELL
   ========================================================= */
.pt-app {
    min-height: calc(100vh - var(--pt-header-h));
    display: flex;
    flex-direction: column;
}

.pt-shell {
    flex: 1;
    min-height: calc(100vh - var(--pt-header-h));
    display: flex;
    position: relative;
}

.pt-overlay {
    display: none;
}

.pt-sidebar {
    width: 300px;
    padding: 16px;
    background: #ffffff;
    border-right: 2px solid rgba(0,0,0,.08);
    --pt-sidebar-pad: 16px;
}

.pt-sidebar-inner {
    background: #fff;
    height: calc(100vh - var(--pt-header-h) - 32px);
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.10);
    padding: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 1101px) {
    .pt-shell, .pt-sidebar, .pt-sidebar-inner, .pt-nav, .pt-navlist {
        overflow: visible !important;
    }

    .pt-sidebar {
        position: relative;
    }

    .pt-main {
        position: relative;
        z-index: 1;
    }
}

.pt-nav {
    padding-top: 12px;
}

.pt-navlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-navbtn {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--brand);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
}

    .pt-navbtn, .pt-navbtn * {
        color: #fff;
    }

        .pt-navbtn:hover {
            background: var(--brand-dark);
        }

        .pt-navbtn--locked {
            opacity: 0.55;
        }

        .pt-navbtn--locked:hover {
            opacity: 0.85;
        }

/* Lock-blurred call-to-action button (Home page "Start Conversation" / "View Scorecard" when anonymous). */
.pt-btn--locked {
    filter: blur(1.5px);
    opacity: 0.85;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

/* Practice-admin grid header — dark grey with white text per design spec. */
.pt-pa-grid .rz-grid-table thead th,
.pt-pa-grid .rz-grid-table thead th .rz-column-title,
.pt-pa-grid .rz-grid-table thead th .rz-cell-data {
    background: #666666 !important;
    color: #fff !important;
    border-color: #666666 !important;
}

/* Header titles: brand typography, scaled to fit the table. */
.pt-pa-grid .rz-grid-table thead th,
.pt-pa-grid .rz-grid-table thead th .rz-column-title,
.pt-pa-grid .rz-grid-table thead th .rz-column-title-content,
.pt-pa-grid .rz-grid-table thead th .rz-cell-data {
    font-family: "Sofia Pro", var(--font-body), sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* Body cells: matching scale so columns fit without scrolling. */
.pt-pa-grid .rz-grid-table tbody td,
.pt-pa-grid .rz-grid-table tbody td .rz-cell-data {
    font-family: var(--font-body), sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.pt-pa-grid .rz-grid-table thead th .rz-sortable-column-icon,
.pt-pa-grid .rz-grid-table thead th .rz-grid-filter,
.pt-pa-grid .rz-grid-table thead th .rzi {
    color: #fff !important;
}

/* Row hover */
.pt-pa-grid .rz-grid-table tbody tr:hover,
.pt-pa-grid .rz-grid-table tbody tr:hover > td {
    background: #E6F4F9 !important;
    cursor: pointer;
}

/* Grid: no horizontal scroll anywhere. */
.pt-pa-grid,
.pt-pa-grid .rz-data-grid-data,
.pt-pa-grid .rz-datatable-scrollable-view,
.pt-pa-grid .rz-datatable-scrollable-body,
.pt-pa-grid .rz-datatable-scrollable-header,
.pt-pa-grid .rz-grid-table-wrap {
    overflow-x: hidden !important;
}

.pt-pa-grid {
    width: 100%;
    max-width: 100%;
}

.pt-pa-grid .rz-grid-table,
.pt-pa-grid table.rz-grid-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

/* Radzen's scrollable wrappers can set inline pixel widths — neutralize them. */
.pt-pa-grid .rz-datatable-scrollable-view,
.pt-pa-grid .rz-datatable-scrollable-header,
.pt-pa-grid .rz-datatable-scrollable-body,
.pt-pa-grid .rz-data-grid-data,
.pt-pa-grid .rz-grid-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

/* Left-align all headers and cells; ellipsis any overflow.
   Strip Radzen's default padding/margin on the inner wrappers so the header
   text starts at the same x position as the cell text below it. */
.pt-pa-grid .rz-grid-table thead th,
.pt-pa-grid .rz-grid-table thead th .rz-column-title,
.pt-pa-grid .rz-grid-table thead th .rz-column-title-content,
.pt-pa-grid .rz-grid-table tbody td,
.pt-pa-grid .rz-grid-table tbody td .rz-cell-data {
    text-align: left !important;
    justify-content: flex-start !important;
}

.pt-pa-grid .rz-grid-table thead th .rz-cell-data,
.pt-pa-grid .rz-grid-table thead th .rz-column-title,
.pt-pa-grid .rz-grid-table thead th .rz-column-title-content,
.pt-pa-grid .rz-grid-table tbody td .rz-cell-data {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.pt-pa-grid .rz-grid-table tbody td,
.pt-pa-grid .rz-grid-table tbody td .rz-cell-data {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pt-pa-grid .rz-grid-table thead th,
.pt-pa-grid .rz-grid-table tbody td {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.pt-pa-grid .rz-grid-table tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Practice-admin page layout ------------------------------------------- */
.pt-pa-header        { padding: 18px 28px 0; }
.pt-pa-title         { font-family: var(--font-head); font-size: 24px; font-weight: 400; margin: 0 0 4px; line-height: 1.2; }
.pt-pa-subtitle      { font-size: 13px; color: var(--muted); margin: 0; }

.pt-pa-loader        { text-align: center; padding: 1rem; }

.pt-pa-practice-select { margin-bottom: 1rem; max-width: 340px; }

.pt-pa-filterbar     { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.pt-pa-filter-cell   { flex: 1 1 260px; }

.pt-pa-section-heading {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 1.5rem 0 0.5rem;
}

.pt-pa-edit-link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Space only applies between two adjacent action icons, so a lone icon
   (e.g. reactivate on an "Access Removed" row) still aligns to the column edge. */
.pt-pa-edit-link + .pt-pa-edit-link {
    margin-left: 10px;
}

/* Resend-invitation action icon (sits next to the edit icon). */
.pt-pa-resend-link {
    color: var(--brand);
}

    .pt-pa-resend-link .rzi,
    .pt-pa-resend-link .notranslate {
        color: var(--brand);
    }

.pt-pa-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Reactivate-account action icon (shown on "Access Removed" rows). */
.pt-pa-reactivate-link {
    color: #2e7d32;
}

    .pt-pa-reactivate-link .rzi,
    .pt-pa-reactivate-link .notranslate {
        color: #2e7d32;
    }

/* Custom SVG action icons, masked so they inherit the link's text color. */
.pt-action-ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: middle;
}

.pt-ico-resend {
    -webkit-mask-image: url('/images/icon-resend.svg?v=2');
    mask-image: url('/images/icon-resend.svg?v=2');
}

.pt-ico-reactivate {
    -webkit-mask-image: url('/images/icon-reactivate.svg?v=2');
    mask-image: url('/images/icon-reactivate.svg?v=2');
}

.pt-ico-delete {
    -webkit-mask-image: url('/images/icon-delete.svg');
    mask-image: url('/images/icon-delete.svg');
}

/* Delete-invitation action icon (shown on "Invite Expired" rows). */
.pt-pa-delete-link {
    color: #E42A1F;
}

/* ── Pager: "Prev | 1 2 3 … | Next" with a brand-blue active page ─────────
   Shared by the practice-admin grids (.pt-pa-grid) and the scorecard grid
   (.pt-scorecard-grid) so all grids paginate with the same look. */
.pt-pa-grid .rz-pager,
.pt-scorecard-grid .rz-pager {
    --rz-pager-gap: 6px;
    --rz-pager-button-border-radius: 6px;
}

/* Drop the first/last (jump-to-end) arrows. */
.pt-pa-grid .rz-pager-first,
.pt-pa-grid .rz-pager-last,
.pt-scorecard-grid .rz-pager-first,
.pt-scorecard-grid .rz-pager-last {
    display: none !important;
}

/* Numeric page buttons: bordered, rounded; active page is brand blue. */
.pt-pa-grid .rz-pager-page,
.pt-scorecard-grid .rz-pager-page {
    border: 1px solid #d0d4d9 !important;
    border-radius: 6px !important;
    min-width: 34px;
    background: #fff;
    color: var(--text);
}

    .pt-pa-grid .rz-pager-page.rz-state-active,
    .pt-scorecard-grid .rz-pager-page.rz-state-active {
        background: var(--brand) !important;
        border-color: var(--brand) !important;
        color: #fff !important;
    }

    .pt-pa-grid .rz-pager-page:hover:not(.rz-state-active),
    .pt-scorecard-grid .rz-pager-page:hover:not(.rz-state-active) {
        border-color: var(--brand) !important;
        color: var(--brand) !important;
    }

/* Prev / Next shown as text instead of arrow icons. */
.pt-pa-grid .rz-pager-prev .rzi,
.pt-pa-grid .rz-pager-next .rzi,
.pt-scorecard-grid .rz-pager-prev .rzi,
.pt-scorecard-grid .rz-pager-next .rzi {
    display: none !important;
}

.pt-pa-grid .rz-pager-prev,
.pt-pa-grid .rz-pager-next,
.pt-scorecard-grid .rz-pager-prev,
.pt-scorecard-grid .rz-pager-next {
    border: none !important;
    background: transparent !important;
    color: var(--text);
    min-width: auto;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
}

    .pt-pa-grid .rz-pager-prev::after,
    .pt-scorecard-grid .rz-pager-prev::after { content: "Prev"; }
    .pt-pa-grid .rz-pager-next::after,
    .pt-scorecard-grid .rz-pager-next::after { content: "Next"; }

    .pt-pa-grid .rz-pager-prev.rz-state-disabled,
    .pt-pa-grid .rz-pager-next.rz-state-disabled,
    .pt-scorecard-grid .rz-pager-prev.rz-state-disabled,
    .pt-scorecard-grid .rz-pager-next.rz-state-disabled {
        opacity: .45;
    }

/* Inline "processing" spinner for row actions (resend / reactivate). While busy,
   the icon is hidden, a spinner shows in its place, and clicks are blocked. */
.pt-action-busy {
    pointer-events: none;
    position: relative;
}

    .pt-action-busy .pt-action-ico {
        visibility: hidden;
    }

    .pt-action-busy::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 15px;
        height: 15px;
        margin-top: -7.5px;
        border: 2px solid rgba(0, 0, 0, .2);
        border-top-color: currentColor;
        border-radius: 50%;
        animation: pt-act-spin .7s linear infinite;
    }

@keyframes pt-act-spin {
    to { transform: rotate(360deg); }
}

/* Confirm dialog (e.g. Remove User) — destructive primary button in the app's
   danger red (matches "Access Removed"/denied states) so it signals danger. */
.pt-confirm .rz-dialog-confirm-buttons .rz-button:first-child {
    background-color: #E42A1F !important;
    border-color: #E42A1F !important;
    color: #fff !important;
}

    .pt-confirm .rz-dialog-confirm-buttons .rz-button:first-child:hover {
        background-color: #C21D13 !important;
        border-color: #C21D13 !important;
    }

.pt-pa-add-row       { margin-top: 1rem; }

.pt-pa-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #008ABE;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

    .pt-pa-add-btn:hover,
    .pt-pa-add-btn:focus {
        background: #0079A6;
        color: #fff;
        text-decoration: none;
    }

/* Pager — light grey numbered buttons, teal active, "Prev"/"Next" text */
.pt-pa-grid .rz-paginator,
.pt-pa-mobile .rz-paginator {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    padding: 16px 0 0;
    background: transparent;
    border: none;
}

.pt-pa-grid .rz-paginator .rz-paginator-element,
.pt-pa-mobile .rz-paginator .rz-paginator-element {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    color: #333 !important;
    font-family: var(--font-body), sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    cursor: pointer;
}

    .pt-pa-grid .rz-paginator .rz-paginator-element:hover,
    .pt-pa-mobile .rz-paginator .rz-paginator-element:hover {
        background: #f4f6f8 !important;
    }

    .pt-pa-grid .rz-paginator .rz-paginator-element.rz-state-active,
    .pt-pa-mobile .rz-paginator .rz-paginator-element.rz-state-active {
        background: #008ABE !important;
        border-color: #008ABE !important;
        color: #fff !important;
    }

/* Replace Radzen's arrow icons on prev/next with text labels. */
.pt-pa-grid .rz-paginator .rz-paginator-prev .rzi,
.pt-pa-grid .rz-paginator .rz-paginator-next .rzi,
.pt-pa-mobile .rz-paginator .rz-paginator-prev .rzi,
.pt-pa-mobile .rz-paginator .rz-paginator-next .rzi {
    display: none !important;
}

.pt-pa-grid .rz-paginator .rz-paginator-prev,
.pt-pa-mobile .rz-paginator .rz-paginator-prev {
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    padding: 0 8px;
}

    .pt-pa-grid .rz-paginator .rz-paginator-prev::before,
    .pt-pa-mobile .rz-paginator .rz-paginator-prev::before {
        content: "Prev";
    }

.pt-pa-grid .rz-paginator .rz-paginator-next,
.pt-pa-mobile .rz-paginator .rz-paginator-next {
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    padding: 0 8px;
}

    .pt-pa-grid .rz-paginator .rz-paginator-next::after,
    .pt-pa-mobile .rz-paginator .rz-paginator-next::after {
        content: "Next";
    }

/* Hide first/last arrows — design uses Prev/Next only. */
.pt-pa-grid .rz-paginator .rz-paginator-first,
.pt-pa-grid .rz-paginator .rz-paginator-last,
.pt-pa-mobile .rz-paginator .rz-paginator-first,
.pt-pa-mobile .rz-paginator .rz-paginator-last {
    display: none !important;
}

/* Mobile card list (replaces grid on small screens) ------------------- */
.pt-pa-mobile .pt-pa-mobile-card {
    margin-bottom: 12px !important;
}

.pt-pa-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .pt-pa-mobile-head .pt-mobile-title {
        flex: 1;
        padding-bottom: 0;
        border-bottom: none;
    }

.pt-pa-mobile-empty {
    padding: 16px;
    text-align: center;
    color: var(--muted);
    background: #fafafa;
    border: 1px dashed rgba(0,0,0,.10);
    border-radius: 8px;
}

/* Allow word-wrap for long emails inside cards. */
.pt-pa-mobile-card .pt-v {
    text-align: right;
    word-break: break-word;
    max-width: 65%;
}

/* Attestation row on the Request Access form — keep checkbox and text inline. */
.pt-attest-row { margin-top: 12px; }

.pt-attest-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
    color: var(--text);
    font-weight: 400;
}

    .pt-attest-label > .rz-checkbox,
    .pt-attest-label > .rz-chkbox {
        flex: 0 0 auto !important;
        margin-top: 2px;
        width: auto !important;
    }

    .pt-attest-label > span {
        flex: 1 1 auto;
        min-width: 0;
    }

/* TinPicker — custom chip strip beneath the dropdown (Radzen's built-in
   chip × is unreliable in this version, so we hide its chips and render
   our own with working remove buttons). */
.pt-tinpicker { display: block; }

.pt-tinpicker-dd .rz-multiselect-token,
.pt-tinpicker-dd .rz-chip,
.pt-tinpicker-dd .rz-multiselect-label .rz-chip {
    display: none !important;
}

.pt-tinpicker-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pt-tinpicker-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 10px;
    background: #eef2f4;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 4px;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.2;
}

.pt-tinpicker-chip-text {
    white-space: nowrap;
}

.pt-tinpicker-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,.06);
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    transition: background .12s ease;
}

    .pt-tinpicker-chip-x:hover,
    .pt-tinpicker-chip-x:focus {
        background: rgba(0,0,0,.14);
        outline: none;
    }

/* Admin-only manual TIN entry: stacked input rows + "Add Another TIN". */
.pt-tinlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-tinlist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;       /* keep rows compact regardless of card width */
}

.pt-tinlist-row--invalid .pt-tinlist-input {
    border-color: #E42A1F !important;
    box-shadow: 0 0 0 1px #E42A1F inset;
}


.pt-tinlist-msg {
    max-width: 320px;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.pt-tinlist-msg--valid   { color: #3DA935; }
.pt-tinlist-msg--invalid { color: #E42A1F; }

.pt-tinlist-input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}

.pt-tinlist-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 4px;
    background: #fff;
    color: #444;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background .12s ease;
}

    .pt-tinlist-x:hover,
    .pt-tinlist-x:focus {
        background: #f4f6f8;
        outline: none;
    }

.pt-tinlist-add {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 2px;
    align-self: flex-start;
}

    .pt-tinlist-add:hover,
    .pt-tinlist-add:focus {
        color: #000;
        text-decoration: none;
        outline: none;
    }

.pt-tinlist-add-icon {
    display: inline-block;
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle;
    /* the parent <a> has text-decoration:underline; don't underline the icon. */
    text-decoration: none;
}

/* Inline tooltip (CSS only) ------------------------------------------- */
.pt-tooltip-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1 !important;
}

.pt-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    cursor: help;
}

.pt-tooltip-icon {
    display: block;
    width: 12px;
    height: 12px;
}

.pt-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    max-width: 360px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    z-index: 1000;
    transition: opacity .12s ease;
}

    .pt-tooltip-content p {
        margin: 0 0 8px;
    }

        .pt-tooltip-content p:last-child {
            margin-bottom: 0;
        }

    .pt-tooltip-content::after {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-bottom-color: #fff;
    }

.pt-tooltip:hover .pt-tooltip-content,
.pt-tooltip:focus-within .pt-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Status text colors --------------------------------------------------- */
.pt-status                        { color: #000; }
.pt-status--registered            { color: #3DA935; }
.pt-status--pending               { color: #000; }
.pt-status--in-progress           { color: #008ABE; }
.pt-status--expired               { color: #C77700; }
.pt-status--locked,
.pt-status--rejected,
.pt-status--denied,
.pt-status--inactive              { color: #E42A1F; }

    .pt-btn--locked:hover,
    .pt-btn--locked:focus {
        filter: blur(0);
        opacity: 1;
    }

        .pt-navbtn.active {
            background: var(--pt-nav-active);
            z-index: 30;
            width: calc(100% + var(--pt-sidebar-pad));
            margin-right: calc(-1 * var(--pt-sidebar-pad));
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            border: 0 !important;
            box-shadow: none !important;
        }

            .pt-navbtn.active:hover {
                background: var(--pt-nav-active);
            }

            .pt-navbtn.active::after {
                content: "";
                position: absolute;
                width: var(--pt-notch-w);
                height: 85px;
                z-index: 31;
                pointer-events: none;
                right: calc(-1 * (var(--pt-notch-w) - var(--pt-notch-overlap)) + 10px);
                background: #262626;
                -webkit-mask: url("/images/active_state_notch.svg") no-repeat;
                -webkit-mask-size: 100% 100%;
                -webkit-mask-position: center;
                mask: url("/images/active_state_notch.svg") no-repeat;
                mask-size: 100% 100%;
                mask-position: center;
                background-size: 100% 100%;
            }

.pt-navicon {
    width: 38px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: .92;
}

    .pt-navicon .rz-icon {
        font-size: 26px;
    }

.pt-navimg {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.pt-sidebar-footer {
    margin-top: auto;
    padding: 14px 6px 4px 6px;
}

    .pt-sidebar-footer a {
        color: #111827;
        text-decoration: underline;
        font-weight: 600;
    }

.pt-main {
    flex: 1;
    background: #eef1f4;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--pt-header-h));
    min-width: 0;
}

.pt-main-inner {
    flex: 1;
    width: 100%;
    padding: 24px 24px 170px 24px;
    max-width: 1440px;
    min-width: 0;
}

.pt-page {
    width: 100%;
    max-width: 1440px;
}

.pt-footer {
    width: 100%;
    margin: 0;
    background: #2f2f2f;
    color: #fff;
    padding: 14px 18px;
}

.pt-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.4;
}

.pt-footer-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.pt-footer-sep {
    opacity: .7;
}

/* =========================================================
   PAGE TITLES
   ========================================================= */
.pt-title {
    margin: 6px 0 10px 0;
    font-size: 33px;
    font-weight: 300;
}

.pt-subtitle {
    color: #3f3f3f;
    font-size: 17px;
    line-height: 1.55;
}

/* =========================================================
   CARDS + BUTTONS
   ========================================================= */
.pt-card {
    border: 1.5px solid var(--brand) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: hidden;
}

.pt-card-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--brand);
}

.pt-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pt-card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pt-card-header-title {
    font-weight: 600;
    font-size: 22px;
    color: #222;
    font-family: var(--font-body);
}

.pt-card-ico {
    filter: brightness(0) saturate(100%) invert(78%) sepia(13%) saturate(990%) hue-rotate(160deg) brightness(92%) contrast(90%);
    width: 30px;
    height: 30px;
}

.pt-card-body {
    padding: 18px;
}

.pt-btn {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 10px 18px !important;
    font-family: var(--font-body);
}

.pt-section {
    margin-top: 22px;
}

.pt-section-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.pt-section-foot-ask {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
   HOME LAYOUT
   ========================================================= */
.pt-desktop {
    display: block;
}

.pt-mobile {
    display: none;
}

.pt-grid-top {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.pt-grid-right {
    display: grid;
    gap: 18px;
}
    .pt-grid-right .pt-card {
        display: flex !important;
        flex-direction: column !important;
    }

        .pt-grid-right .pt-card .pt-card-body {
            display: flex !important;
            flex-direction: column !important;
            flex: 1 !important;
        }

            .pt-grid-right .pt-card .pt-card-body .pt-btn {
                margin-top: auto !important;
                width: auto !important;
                max-width: none !important;
                align-self: flex-start !important;
            }
/* =========================================================
   ASK HEATHER PLACEHOLDER
   ========================================================= */
.pt-heather-placeholder {
    position: relative;
    width: 100%;
    border-radius: 10px;
    background: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .pt-heather-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .95;
    }

.pt-heather-placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* =========================================================
   HOME
   ========================================================= */
.pt-home {
    max-width: none;
}

    .pt-home .pt-grid-top {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .pt-home .pt-card {
        border-radius: 6px !important;
    }

    /* Pin the card's inner horizontal padding to 20px so the header's -20px side
       margins land exactly on the inner border edge — this makes the title divider
       meet the outer border with no gap. */
    .pt-home .rz-card {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .pt-home .pt-card-header,
    .pt-home .pt-card-header.rz-card-header,
    .pt-home .rz-card > .pt-card-header {
        padding: 15px 35px;
        border-bottom: 1.5px solid var(--brand) !important;
        margin: -10px -20px 0 -20px;
        background: #fff !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    .pt-home .pt-card-ico {

        display: inline-block;
        filter: brightness(0) saturate(100%) invert(33%) sepia(98%) saturate(1110%) hue-rotate(166deg) brightness(98%) contrast(104%);
    }

    .pt-home .pt-card-body {
        padding: 12px;
    }

    .pt-home .pt-btn {
        border-radius: 4px !important;
        font-weight: 500 !important;
        font-size: 13px !important;
        padding: 6px 10px !important;
        min-height: 28px !important;
        width: auto !important;
        max-width: none !important;
        font-family: var(--font-body);
    }

    .pt-home .pt-card-ask .pt-card-body {
        display: flex;
        flex-direction: column;
        gap: 39px;
    }

    .pt-home .pt-section-foot-ask {
        margin-top: auto;
        padding-top: 0;
        justify-content: flex-start;
    }
/* ── Home: video in placeholder ── */
.pt-home .pt-heather-placeholder {

    border-radius: 6px;
    border: 1px solid rgba(31,41,55,.14);
    background: #eef2f7;
}

.pt-home .pt-heather-placeholder-overlay {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: rgba(31,41,55,.55);
    text-shadow: none;
    font-size: 20px;
    display: grid;
    place-items: center;
}

/* ── Home: video in placeholder ── */
.pt-heather-placeholder .pt-heather-video,
.pt-heather-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .9;
}

/* =========================================================
   COMPLIANCE RING (Home)
   ========================================================= */
.pt-scorecard-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.pt-progress {
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: conic-gradient(#39a935 calc(var(--p) * 1%), #e6e6e6 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-progress-inner {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-progress-value {
    font-weight: 900;
    font-size: 28px;
}

.pt-home .pt-scorecard-body {
    grid-template-columns: 1fr;   /* ring removed → copy spans the full card width */
    gap: 12px;
    margin-bottom: 10px;
}

.pt-ringwrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-ring-benchmark {
    font-size: 10px;
    font-weight: 700;
    color: #374151;
    width: 28px;
    text-align: right;
}

.pt-home .pt-progress {
    width: 86px;
    height: 86px;
    background: conic-gradient(#36a936 calc(var(--p) * 1%), #e6e6e6 0);
}

.pt-home .pt-progress-inner {
    width: 66px;
    height: 66px;
}

.pt-home .pt-progress-value {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

/* =========================================================
   PERSONAL LIBRARY — HOME CAROUSEL
   ========================================================= */
.pt-carousel {
    position: relative;
    padding-bottom: 46px;   /* room for the nav buttons below the track */
}

    /* Native scroll-snap track: shows 3 cards (1 on mobile) and advances exactly one
       card per nav click. Native overflow clamps at both ends — no wrap-around and no
       dead clicks past the last card, at any viewport width. */
    .pt-carousel-track {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox: hide scrollbar */
        padding: 3px 0 4px;             /* a little room for card hover shadow */
    }

        .pt-carousel-track::-webkit-scrollbar {
            display: none;              /* Chrome / Safari: hide scrollbar */
        }

    .pt-slide {
        flex: 0 0 calc(100% / 3);
        max-width: calc(100% / 3);
        box-sizing: border-box;
        padding: 0 10px;
        scroll-snap-align: start;
        display: flex;                  /* let the card stretch to full slide height */
    }

.pt-item {
    width: 100%;
    align-self: stretch;
}

.pt-item {
    border: 1px solid rgba(31,41,55,.12);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    cursor: pointer;
    transition: border-color .12s, box-shadow .12s;
}

    .pt-item:hover {
        border-color: var(--brand);
        box-shadow: 0 2px 10px rgba(0,138,190,.12);
    }

.pt-item-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    display: block;
    flex-shrink: 0;
}

    .pt-item-thumb img {
        width: 100% !important;
        height: 200px !important;
        display: block !important;
        object-fit: cover !important;
        object-position: top center;
        flex-shrink: 0;
    }

    /* Text-based measure cards (Asthma AMR, Diabetes BPD) are full white graphics.
       Show them whole (contain) on the white thumb so no wording is cropped at any
       card width — photo cards keep object-fit: cover above. If either PNG is renamed,
       update the src match below. */
    .pt-item-thumb img[src*="AsthmaMedicationLibrary"],
    .pt-item-thumb img[src*="DiabetesLibrary"] {
        object-fit: contain !important;
        object-position: center !important;
    }

    /* Childhood immunization photo has the faces mid-frame; the default top-center
       crop cuts them off in the wide carousel box, so center this one's crop. */
    .pt-item-thumb img[src*="ChildhoodImuLibrary"] {
        object-position: center !important;
    }

.pt-item img {
    width: 100% !important;
    height: 200px !important;
    display: block !important;
    object-fit: cover !important;
}

.pt-item-title-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    border-radius: 0 0 4px 4px;
    transition: background .12s;
    background: transparent;
}

.pt-item-title-link {
    font-weight: 600;
    font-size: 11.5px;
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

    .pt-item-title-link:hover {
        color: var(--brand-dark);
    }

/* Carousel item subtitle (PersonalLibraryModel.Description), shown under the title. */
.pt-item-subtitle {
    padding: 0 10px 10px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

.pt-item-title-row .pt-library-icon {
    width: 11px !important;
    height: 11px !important;
    min-width: 11px !important;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand);
    opacity: .7;
}

.pt-item-seemore {
    display: inline-block;
    padding: 0 10px 12px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #111827;
    text-decoration: underline;
    cursor: pointer;
}

    .pt-item-seemore:hover {
        color: var(--brand);
    }

/* Custom nav: two teal circular arrows, bottom-right (matches the prior design). */
.pt-carousel-nav {
    position: absolute;
    right: 14px;
    bottom: 10px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.pt-carousel-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .12s;
}

    .pt-carousel-btn:hover {
        background: var(--brand-dark);
    }

    .pt-carousel-btn svg {
        width: 13px;
        height: 13px;
        display: block;
    }

/* =========================================================
   ASK HEATHER PAGE
   ========================================================= */
.pt-heather-page {
    max-width: 1440px;
    margin: 0 auto;
}

    .pt-heather-page .pt-title {
        margin: 4px 0 18px 0;
        font-size: 30px;
        font-weight: 400;
    }

.pt-heather-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    align-items: stretch;
}

.pt-heather-page .pt-card {
    border: 1px solid rgba(15,23,42,.10) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(2,8,23,.08) !important;
    background: #fff !important;
}

.pt-heather-info__body {
    padding: 18px;
}

.pt-heather-info__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    margin-bottom: 8px;
}

.pt-heather-info__text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #111827;
}

.pt-heather-video__body {
    padding: 18px;
}

.pt-heather-video__container {
    width: 100%;
    height: 520px;
    overflow: hidden;
}

    .pt-heather-video__container #did-agent-container {
        width: 100%;
        height: 100%;
    }

        .pt-heather-video__container #did-agent-container iframe {
            width: 100% !important;
            height: 100% !important;
            border: 0 !important;
            display: block !important;
        }

/* =========================================================
   HEATHER DRAWER
   ========================================================= */
.pt-heather-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.30);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: calc(var(--pt-heather-z) - 1);
}

    .pt-heather-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.pt-heather-drawer {
    position: fixed;
    right: 14px;
    width: var(--pt-heather-w);
    max-width: calc(100vw - 28px);
    top: calc(var(--pt-header-h) + 14px);
    bottom: calc(var(--pt-footer-safe) + 96px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease;
    z-index: var(--pt-heather-z);
    display: flex;
    flex-direction: column;
}

    .pt-heather-drawer.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

.pt-heather-drawer__header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.pt-heather-drawer__title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: #0b2230;
}

.pt-heather-drawer__close {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

    .pt-heather-drawer__close:hover {
        background: rgba(0,0,0,.05);
    }

.pt-heather-drawer__content {
    flex: 1;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
}

    .pt-heather-drawer__content #did-agent-container {
        height: 100%;
        min-height: 100%;
    }

@media (min-width: 901px) {
    .pt-main.pt-main--heather-safe .pt-main-inner {
        padding-right: calc(var(--pt-heather-w) + 26px);
    }
}

/* =========================================================
   SKELETON LOADING
   ========================================================= */
.pt-skeleton-wrap {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.6);
}

.pt-skeleton-row {
    height: 44px;
    border-radius: 10px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,.06);
}

    .pt-skeleton-row::after {
        content: "";
        position: absolute;
        top: 0;
        left: -40%;
        width: 40%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
        animation: pt-shimmer 1.2s infinite;
    }

@keyframes pt-shimmer {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

/* =========================================================
   MOBILE ACCORDION
   ========================================================= */
.pt-acc-body {
    padding: 16px;
}

.pt-acc-header {
    display: inline-flex;
    align-items: start;
    gap: .5rem;
    line-height: 1;
}

.pt-acc-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.pt-accordion.rz-accordion .rz-accordion-header,
.pt-accordion.rz-accordion .rz-accordion-header *,
.pt-accordion.rz-accordion .rz-accordion-tab,
.pt-accordion.rz-accordion .rz-accordion-tab:link,
.pt-accordion.rz-accordion .rz-accordion-tab:visited,
.pt-accordion.rz-accordion .rz-accordion-tab:hover,
.pt-accordion.rz-accordion .rz-accordion-tab:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.pt-accordion.rz-accordion, .pt-accordion.rz-accordion .rz-accordion-item {
    background: transparent !important;
}

    .pt-accordion.rz-accordion .rz-accordion-content,
    .pt-accordion.rz-accordion .rz-accordion-content-wrapper {
        background: transparent !important;
    }

    .pt-accordion.rz-accordion .rz-accordion-content {
        border: 2px solid var(--brand) !important;
        border-radius: 10px !important;
        background: #fff !important;
    }

/* =========================================================
   FLOATING FAB
   ========================================================= */
.pt-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 81px;
    height: 81px;
    z-index: 9999;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block;
}

.pt-fab-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,.18));
}

/* =========================================================
   AUTH PAGES
   ========================================================= */
.pt-activate-page {
    min-height: 100dvh;
    background: var(--page-bg);
    padding: 0;
    display: block;
}

.pt-activate-stage {
    width: 100%;
    min-height: 100dvh;
    background: var(--page-bg);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.pt-activate-brand {
    padding: 40px 20px 0 20px;
    display: flex;
    justify-content: center;
}

.pt-activate-logo {
    max-width: 180px;
    max-height: 54px;
    object-fit: contain;
}

.pt-activate-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.pt-activate-card,
.pt-activate-card.rz-card {
    width: 100%;
    max-width: 380px;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(2,8,23,.06) !important;
    padding: 24px 24px 22px 24px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .pt-activate-card > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

.pt-activate-title {
    margin: 0;
    text-align: center;
    color: #111827;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.pt-activate-subtitle {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.pt-activate-message {
    margin: 0;
    text-align: center;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
}

.pt-activate-field {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-activate-label {
    display: block;
    margin: 0;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.pt-activate-input,
.pt-activate-input.rz-textbox,
.pt-activate-input.rz-password,
.pt-activate-input .rz-inputtext,
.pt-activate-input input {
    width: 100% !important;
    min-height: 40px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
}

.pt-activate-input--pin,
.pt-activate-input--pin.rz-textbox,
.pt-activate-input--pin input {
    text-align: center !important;
    letter-spacing: 8px !important;
    font-size: 20px !important;
}

.pt-activate-rules {
    margin: 0;
    padding-left: 18px;
    color: #374151;
    font-size: 12px;
}

    .pt-activate-rules li {
        margin-bottom: 5px;
        line-height: 1.45;
    }

.pt-activate-rule--ok {
    color: #15803d;
    font-weight: 600;
}

.pt-activate-error {
    min-height: 18px;
    margin: -4px 0 0 0;
    color: #ef4444;
    font-size: 12px;
    line-height: 1.35;
}

.pt-activate-terms {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 6px;
    background: #fafafa;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .pt-activate-terms .rz-chkbox,
    .pt-activate-terms input[type="checkbox"] {
        margin-top: 2px;
    }

    .pt-activate-terms label {
        margin: 0;
        color: #374151;
        font-size: 12px;
        line-height: 1.45;
    }

    .pt-activate-terms a {
        color: var(--brand);
        font-weight: 600;
        text-decoration: underline;
    }

.pt-activate-btn.pt-btn,
.pt-activate-btn.rz-button {
    width: 100% !important;
    min-height: 38px;
    margin-top: 4px;
    padding: 8px 14px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    max-width: none !important;
    display: block !important;
}

.pt-activate-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pt-activate-footer {
    text-align: center;
    color: #6b7280;
    font-size: 10px;
    padding: 0 16px 18px 16px;
}

.pt-field-error,
.pt-activate-card .rz-message-error,
.pt-activate-card .rz-validator {
    display: block;
    margin-top: 6px;
    color: #ef4444 !important;
    font-size: 12px !important;
    line-height: 1.35;
    font-weight: 400;
}

.pt-activate-card .rz-textbox.rz-invalid,
.pt-activate-card .rz-password.rz-invalid,
.pt-activate-card .rz-inputtext.rz-invalid,
.pt-activate-card input.rz-invalid,
.pt-activate-card .rz-state-invalid,
.pt-activate-card .rz-state-invalid .rz-inputtext,
.pt-activate-card .rz-state-invalid input {
    border-color: #ef4444 !important;
    box-shadow: none !important;
}

    .pt-activate-card .rz-textbox.rz-invalid:focus,
    .pt-activate-card .rz-password.rz-invalid:focus,
    .pt-activate-card .rz-inputtext.rz-invalid:focus,
    .pt-activate-card input.rz-invalid:focus,
    .pt-activate-card .rz-state-invalid .rz-inputtext:focus,
    .pt-activate-card .rz-state-invalid input:focus {
        border-color: #ef4444 !important;
        box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
    }

.pt-activate-card--loading {
    max-width: 420px !important;
    min-height: 260px;
    justify-content: center;
}

.pt-activate-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 8px 4px;
}

.pt-activate-loading__spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.pt-activate-card--loading .pt-activate-subtitle {
    max-width: 300px;
}

.pt-activate-card--loading .rz-progressbar,
.pt-activate-card--loading .rz-progressbar-circular {
    color: var(--brand) !important;
}

.pt-activate-card--loading svg circle[stroke],
.pt-activate-card--loading svg path[stroke] {
    stroke: var(--brand) !important;
}

.pt-login-card {
    max-width: 466px;
}

.pt-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pt-login-foot {
    text-align: center;
}

.pt-login-link {
    color: #262626;
    text-decoration: underline;
    font-weight: 400;
    font-size: 15px;
}

.pt-login-back.rz-button {
    width: 100% !important;
    margin-top: -6px;
}

/* "Back to public site" link sits at the bottom of the card */
.pt-login-back {
    text-align: center;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.pt-login-back-link {
    color: #262626;
    text-decoration: underline;
    font-size: 14px;
}

/* Separator between login form and Request Access section */
.pt-login-sep {
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
    margin: 18px 0 14px;
}

/* "Request Access" rendered as a link — secondary affordance to Log In. */
.pt-btn.pt-btn--request {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    text-align: center;
    background: transparent !important;
    color: var(--brand) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 6px 4px !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

    .pt-btn.pt-btn--request:hover,
    .pt-btn.pt-btn--request:focus {
        background: transparent !important;
        color: #0079A6 !important;
        text-decoration: underline;
    }

/* Help text under Request Access */
.pt-login-help {
    text-align: center;
    margin: 10px 0 0;
    font-size: 13px;
    color: #4b4b4b;
    line-height: 1.4;
}

.pt-login-card .rz-form-field,
.pt-login-card .rz-form-field-content {
    width: 100%;
}

.rz-button.rz-link {
    color: #262626;
    text-decoration: underline;
    font-weight: 400;
    font-size: 15px;
}

    .rz-button.rz-link .rz-button-text {
        color: var(--rz-link-color);
    }

    .rz-button.rz-link:hover .rz-button-text {
        text-decoration: underline !important;
    }

.pt-password-wrap {
    position: relative;
    width: 100%;
}

    .pt-password-input, .pt-password-input.rz-textbox, .pt-password-wrap .rz-password, .pt-password-wrap .rz-textbox {
        width: 100% !important;
    }

    .pt-password-wrap .rz-inputtext, .pt-password-wrap input {
        padding-right: 48px !important;
    }

.pt-password-toggle,
.pt-password-toggle.rz-button {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

    .pt-password-toggle:hover, .pt-password-toggle:focus,
    .pt-password-toggle.rz-button:hover, .pt-password-toggle.rz-button:focus {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .pt-password-toggle .rz-icon, .pt-password-toggle .rzi {
        font-size: 18px !important;
        color: #3f3f46 !important;
    }

/* =========================================================
   WELCOME DIALOG
   ========================================================= */
.pt-welcome-dialog {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: var(--font-body);
    margin: -12px;
}

/* Title wrap injected via TitleContent */
.pt-welcome-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-welcome-title-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(0,138,190,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .pt-welcome-title-icon img {
        width: 14px;
        height: 14px;
        display: block;
        filter: brightness(0) saturate(100%) invert(33%) sepia(98%) saturate(1110%) hue-rotate(166deg) brightness(98%) contrast(104%);
    }

.pt-welcome-title-wrap span {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.pt-welcome-player {
    width: 100%;
    background: #000;
    overflow: hidden;
}

.pt-welcome-video {
    width: 100%;
    display: block;
    max-height: 460px;
    object-fit: cover;
    background: #000;
}

.pt-welcome-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
}

.pt-welcome-copy {
    font-size: 13px;
    line-height: 1.5;
    color: #111827;
    flex: 1;
}

.pt-welcome-cta.rz-button {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 9px 18px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

    .pt-welcome-cta.rz-button:hover {
        background: var(--brand-dark) !important;
        border-color: var(--brand-dark) !important;
    }

/* =========================================================
   TERMS PAGE
   ========================================================= */
.pt-terms-page {
    max-width: 980px;
    margin: 0 auto;
}

.pt-terms-card {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(2,8,23,.06) !important;
    padding: 18px !important;
}

.pt-terms-head {
    margin-bottom: 10px;
}

.pt-terms-title {
    margin: 0 0 6px 0;
    font-size: 30px;
    font-weight: 600;
    font-family: var(--font-head);
    color: #111827;
}

.pt-terms-effective {
    font-size: 12px;
    color: #6b7280;
}

.pt-terms-scroll {
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 6px;
    background: #fff;
    padding: 16px 18px;
}

.pt-terms-body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: #111827;
}

    .pt-terms-body h2 {
        margin: 16px 0 8px 0;
        font-size: 15px;
        font-weight: 700;
        color: #111827;
    }

    .pt-terms-body h3 {
        margin: 14px 0 6px 0;
        font-size: 14px;
        font-weight: 700;
        color: #111827;
    }

    .pt-terms-body p {
        margin: 0 0 10px 0;
    }

    .pt-terms-body ul {
        margin: 8px 0 12px 18px;
        padding: 0;
    }

.pt-terms-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.pt-terms-btn {
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
}

.pt-terms-btn--close.rz-button {
    background: #ff5a2a !important;
    border-color: #ff5a2a !important;
    color: #fff !important;
}

    .pt-terms-btn--close.rz-button:hover {
        filter: brightness(.95);
    }

.pt-terms-btn--primary.rz-button {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}

    .pt-terms-btn--primary.rz-button:hover {
        background: var(--brand-dark) !important;
        border-color: var(--brand-dark) !important;
    }

.pt-terms-btn--ghost.rz-button {
    background: #f3f4f6 !important;
    border-color: rgba(0,0,0,.14) !important;
    color: #111827 !important;
}

    .pt-terms-btn--ghost.rz-button:hover {
        background: #e5e7eb !important;
    }

/* =========================================================
   SCORECARD PAGE
   ========================================================= */
.pt-scorecard-page .pt-title {
    margin-bottom: 8px;
}

/* Unified white panel wrapping dropdown + summary + table */
.pt-scorecard-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 20px;
    margin-bottom: 16px;
}

/* Practice selector (UI-only filter) */
.pt-scorecard-practice-select {
    max-width: 360px;
    margin-bottom: 16px;
    /* The open popup is a later-sibling of the summary card + table, so without a raised
       stacking context the card paints over the popup's top and it looks "detached".
       position + z-index lifts the dropdown (and its popup) above everything below it. */
    position: relative;
    z-index: 30;
}

/* Keep the popup panel OUT OF FLOW (absolute) so that, in the moment Radzen renders it
   inline inside .rz-dropdown before moving it to <body>, it can't inflate the trigger's
   measured height — which is what pushed the opened list a full card-height too low. */
.pt-scorecard-practice-select .rz-dropdown-panel,
.pt-scorecard-practice-select .rz-popup {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
}

.pt-scorecard-practice-select .rz-dropdown {
    width: 100% !important;
    min-height: 42px;
    display: flex !important;
    align-items: center !important;
    border: 1px solid rgba(0,0,0,.18) !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.pt-scorecard-practice-select .rz-dropdown:hover {
    border-color: rgba(0,0,0,.32) !important;
}

.pt-scorecard-practice-select .rz-dropdown .rz-dropdown-label,
.pt-scorecard-practice-select .rz-dropdown .rz-inputtext {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    color: var(--text) !important;
    padding-left: 12px !important;
}

/* Truncate a long practice name with an ellipsis instead of overflowing the box.
   The control above is a flex row (align-items:center) so it handles vertical centering;
   display:block + min-width:0 lets this single-line label shrink and show the ellipsis,
   and padding-right leaves room for the dropdown arrow. */
.pt-scorecard-practice-select .rz-dropdown .rz-dropdown-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: normal;
    padding-right: 34px !important;
    box-sizing: border-box;
}

.pt-scorecard-summary-card {
    border: 1px solid rgba(0,0,0,.12) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #fff !important;
    margin-bottom: 16px !important;
    display: inline-block !important;
    width: auto !important;
}

.pt-scorecard-summary-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    width: auto;
}

.pt-scorecard-summary-divider {
    width: 1px;
    height: 48px;
    background: rgba(0,0,0,.15);
    flex-shrink: 0;
}

.pt-scorecard-summary-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pt-ringwrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-ring-benchmark {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.pt-scorecard-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color, #35a935) calc(var(--p) * 1%), #e3e3e3 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pt-scorecard-ring-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-scorecard-ring-value {
    font-weight: 800;
    font-size: 18px;
    color: #222;
}

.pt-scorecard-goal-label {
    font-size: 12px;
    color: #555;
    text-align: center;
}

.pt-scorecard-summary-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.pt-scorecard-download-copy {
    font-size: 13px;
    color: #222;
    line-height: 1.5;
    white-space: nowrap;
}

.pt-scorecard-download-btn {
    font-weight: 700 !important;
    border-radius: 6px !important;
    white-space: nowrap;
}

.pt-scorecard-table-wrap {
    border: 1px solid #c9ccd1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* "How Your Compliance Scores are Calculated" heading + paragraph below the panel */
.pt-scorecard-calc-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 8px;
}

.pt-scorecard-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 20px;
}

/* Scorecard grid header — dark grey, white title-case text (matches design). */
.pt-scorecard-grid .rz-grid-table thead th,
.hedis-grid .rz-grid-table thead th,
.pt-scorecard-grid .rz-grid-table thead th .rz-column-title,
.hedis-grid .rz-grid-table thead th .rz-column-title,
.pt-scorecard-grid .rz-grid-table thead th .rz-column-title-content,
.hedis-grid .rz-grid-table thead th .rz-column-title-content,
.pt-scorecard-grid .rz-grid-table thead th .rz-cell-data,
.hedis-grid .rz-grid-table thead th .rz-cell-data {
    background: #595959 !important;
    color: #fff !important;
    border-color: #595959 !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 15.5px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    /* Give the line box room for descenders (g, p, y) and stop Radzen's default
       .rz-cell-data overflow:hidden from clipping them. */
    line-height: 1.4 !important;
    overflow: visible !important;
}

.pt-scorecard-grid .rz-grid-table thead th,
.hedis-grid .rz-grid-table thead th {
    padding: 1px 1px !important;
    border-bottom: none !important;
    border-right: 1px solid rgba(255,255,255,.22) !important;
}

/* No divider after the last header cell. */
.pt-scorecard-grid .rz-grid-table thead th:last-child,
.hedis-grid .rz-grid-table thead th:last-child {
    border-right: none !important;
}

/* No sorting on this table — hide any sort affordances. */
.pt-scorecard-grid .rz-grid-table thead th .rz-sortable-column-icon,
.hedis-grid .rz-grid-table thead th .rz-sortable-column-icon,
.pt-scorecard-grid .rz-grid-table thead th .rz-sortable-column,
.hedis-grid .rz-grid-table thead th .rz-sortable-column {
    display: none !important;
}

/* Neutralize Radzen's own grid border/background/radius so the dark header sits
   flush inside the rounded .pt-scorecard-table-wrap (removes the corner gaps). */
.pt-scorecard-grid,
.hedis-grid,
.pt-scorecard-grid .rz-grid-table-wrap,
.hedis-grid .rz-grid-table-wrap,
.pt-scorecard-grid .rz-data-grid-data,
.hedis-grid .rz-data-grid-data {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.pt-scorecard-grid .rz-grid-table,
.hedis-grid .rz-grid-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.pt-scorecard-grid .rz-grid-table tbody td,
.hedis-grid .rz-grid-table tbody td {
    border-top: 1px solid rgba(0,0,0,.07) !important;
    vertical-align: top;
    padding: 14px 16px !important;
    font-size: 13.5px;
    height: auto !important;
    line-height: 1.45;
}

/* Numeric / short columns read better centered; the progress meter stays vertically centered. */
.pt-scorecard-grid td.pt-sc-col-code,
.pt-scorecard-grid td.pt-sc-col-eligible,
.pt-scorecard-grid td.pt-sc-col-compliant,
.pt-scorecard-grid td.pt-sc-col-rate,
.pt-scorecard-grid td.pt-sc-col-target {
    text-align: center !important;
    white-space: nowrap;
    vertical-align: middle;
    color: var(--text);
    font-size: 13.5px;
}

.pt-scorecard-grid td.pt-sc-col-progress {
    vertical-align: middle;
}

.pt-sc-col-measure { width: auto; }
.pt-sc-col-how { width: 28%; }

/* The grid uses table-layout: fixed, which sizes columns from the HEADER row, so pin the
   widths on the header cells by position. Multi-word headers wrap onto several lines (by design).
   Order: 1 HEDIS Measure | 2 Measure Code | 3 Eligible Patients | 4 # compliant patients |
          5 Compliance Rate | 6 Target Rate | 7 How to close the gap. */
.pt-scorecard-grid .rz-grid-table thead th:nth-child(1) { width: auto; }
.pt-scorecard-grid .rz-grid-table thead th:nth-child(2) { width: 130px; }
.pt-scorecard-grid .rz-grid-table thead th:nth-child(3) { width: 100px; }
.pt-scorecard-grid .rz-grid-table thead th:nth-child(4) { width: 115px; }
.pt-scorecard-grid .rz-grid-table thead th:nth-child(5) { width: 125px; }
.pt-scorecard-grid .rz-grid-table thead th:nth-child(6) { width: 100px; }
.pt-scorecard-grid .rz-grid-table thead th:nth-child(7) { width: 28%; }

/* Let multi-word headers wrap onto several lines instead of being clipped by Radzen's
   default nowrap + overflow:hidden (e.g. "Number of compliant patients"). */
.pt-scorecard-grid .rz-grid-table thead th,
.pt-scorecard-grid .rz-grid-table thead th .rz-column-title,
.pt-scorecard-grid .rz-grid-table thead th .rz-column-title-content,
.pt-scorecard-grid .rz-grid-table thead th .rz-cell-data {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25;
    word-break: normal;       /* break at spaces only — no mid-word splits like "Measu-re" */
    overflow-wrap: normal;
}

.pt-scorecard-grid td.pt-sc-col-measure,
.pt-scorecard-grid td.pt-sc-col-measure .rz-cell-data,
.pt-scorecard-grid td.pt-sc-col-how,
.pt-scorecard-grid td.pt-sc-col-how .rz-cell-data {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.45 !important;
}

.pt-scorecard-grid .rz-grid-table tbody tr:nth-child(even) td,
.hedis-grid .rz-grid-table tbody tr:nth-child(even) td {
    background: #fafafa !important;
}

.pt-learnmore {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
    white-space: nowrap;
    font-size: 13px;
    vertical-align: middle;
}

    .pt-learnmore svg.pt-learnmore-icon {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
        flex-shrink: 0;
        display: inline-block !important;
        font-size: 0 !important;
    }

.pt-ptt {
    width: 100%;
}

.pt-ptt-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
}

.pt-ptt-left {
    font-weight: 700;
    color: var(--text);
    text-align: right;
    white-space: nowrap;
    font-size: 13.5px;
}

.pt-ptt-meter {
    position: relative;
    padding-bottom: 22px;
}

.pt-ptt-track {
    position: relative;
    height: 12px;
    background: #e0e0e0;
    border-radius: 999px;
    overflow: visible !important;
}

.pt-ptt-fill {
    height: 12px;
    border-radius: 999px;
}

.pt-ptt-fill--green, .pt-sc-fill--green {
    background: #35a935;
}

.pt-ptt-fill--yellow, .pt-sc-fill--yellow {
    background: #f2c200;
}

.pt-ptt-fill--red, .pt-sc-fill--red {
    background: #e21b1b;
}

.pt-ptt-marker {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 3;
}

    .pt-ptt-marker::before {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 2px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 7px solid #999;
    }

.pt-ptt-target {
    position: absolute;
    left: 0;
    /* Sit just under the triangle but INSIDE the meter box. The meter reserves 22px via
       padding-bottom; the old "calc(100% + 4px)" placed the label below that box, where the
       grid cell's default overflow:hidden clipped it (triangle showed, number didn't). */
    top: calc(50% + 5px);
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

/* =========================================================
   SCORECARD MOBILE CARDS
   ========================================================= */
.pt-mobile-card {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

.pt-mobile-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}

.pt-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pt-k {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pt-v {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.pt-path {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pt-path-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pt-path-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.pt-sc-progress {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 8px;
    align-items: center;
}

.pt-sc-progress-left {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
    white-space: nowrap;
}

.pt-sc-progress-right {
    font-size: 11px;
    color: var(--muted);
    text-align: left;
    white-space: nowrap;
}

.pt-sc-progress-bar {
    height: 14px;
    background: #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
}

.pt-sc-progress-fill {
    height: 100%;
    border-radius: 999px;
}

/* =========================================================
   RESOURCES PAGE
   ========================================================= */
.pt-res-topcards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 20px 0 32px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 10px;
    overflow: hidden;
}

.pt-res-topcard {
    padding: 20px 22px;
    border-right: 1px solid rgba(0,0,0,.09);
}

    .pt-res-topcard:last-child {
        border-right: none;
    }

.pt-res-topcard-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
}

.pt-res-topcard-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.pt-res-link {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

    .pt-res-link:hover {
        color: var(--brand);
    }

.pt-res-section-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pt-res-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 10px;
    overflow: hidden;
}

.pt-res-item {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .pt-res-item:last-child {
        border-bottom: none;
    }

.pt-res-item-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
}

.pt-res-item-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.pt-res-url {
    font-size: 12px;
    color: var(--text);
    text-decoration: underline;
    word-break: break-all;
    font-weight: 400;
    margin-top: 2px;
    opacity: .75;
}

    .pt-res-url:hover {
        color: var(--brand);
        opacity: 1;
    }

/* =========================================================
   PERSONAL LIBRARY PAGE
   ========================================================= */
.pt-library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.pt-library-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    transition: background .12s;
}

    .pt-library-item:hover {
        background: var(--brand-light);
    }

.pt-library-thumb {
    flex-shrink: 0;
    width: 170px;
    height: 108px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f4;
    border: 1px solid rgba(0,0,0,.08);
}

    .pt-library-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.pt-library-info {
    flex: 1;
    min-width: 0;
}

.pt-library-title-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.pt-library-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex: 1;
    min-width: 0;
}

.pt-library-item:hover .pt-library-title {
    color: var(--brand-dark);
}

.pt-library-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: .7;
}

/* =========================================================
   PDF MODAL
   ========================================================= */
.pt-pdf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10100;
    padding: 24px;
}

.pt-pdf-modal {
    width: min(1100px, 95vw);
    height: min(850px, 90vh);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pt-pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    flex-shrink: 0;
}

.pt-pdf-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    min-width: 0;
    flex: 1;
}

.pt-pdf-modal-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pt-pdf-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    text-decoration: none;
    color: #fff !important;
    white-space: nowrap;
}

    .pt-pdf-open-btn svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

.pt-pdf-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.12);
    background: #f3f4f6;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
}

    .pt-pdf-close-btn svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .pt-pdf-close-btn:hover {
        background: #e5e7eb;
    }

.pt-pdf-frame {
    width: 100%;
    flex: 1;
    border: none;
    background: #fff;
}

/* =========================================================
   ADMIN PAGE
   ========================================================= */
.pt-admin-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pt-admin-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 20px 28px 18px;
}

.pt-admin-header-inner {
    max-width: 960px;
}

.pt-admin-title {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.2;
}

.pt-admin-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.pt-admin-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.pt-admin-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    overflow: hidden;
}

.pt-admin-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    background: #fafafa;
}

.pt-admin-card-header--result {
    justify-content: space-between;
}

.pt-admin-card-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .01em;
}

.pt-admin-card-body {
    padding: 20px;
}

.pt-admin-result-card {
    border-top: none;
}

.pt-admin-provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin-bottom: 8px;
}

.pt-admin-dl {
    display: flex;
    flex-direction: column;
}

.pt-admin-dl-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
    font-size: 13.5px;
}

    .pt-admin-dl-row:last-child {
        border-bottom: none;
    }

    .pt-admin-dl-row dt {
        font-weight: 600;
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .04em;
        padding-top: 1px;
    }

    .pt-admin-dl-row dd {
        color: var(--text);
        font-weight: 500;
    }

.pt-admin-activate-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.07);
}

.pt-admin-section-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 16px;
}

.pt-admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .pt-admin-actions .rz-button {
        width: auto !important;
        max-width: none !important;
    }

.pt-admin-actions--top {
    margin-top: 16px;
}

.pt-admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 0;
}

.pt-admin-loading-text {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.pt-admin-alert {
    border-radius: 8px !important;
}

.pt-admin-alert--top {
    margin-top: 20px;
}

.pt-admin-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.pt-admin-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

    .pt-admin-check-label .rz-chkbox,
    .pt-admin-check-label .rz-checkbox {
        flex-shrink: 0;
    }
/* ── Fix input value clipping in outlined FormField ── */
.pt-admin-card-body .rz-form-field,
.pt-admin-card-body .rz-form-field-content,
.pt-admin-card-body .rz-text-align-left {
    width: 100% !important;
    overflow: visible !important;
}

.pt-admin-card-body .rz-textbox,
.pt-admin-card-body input.rz-inputtext {
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
}
/* =========================================================
   PATIENT ENGAGEMENT PAGE
   ========================================================= */
.pt-eng-lead {
    margin-bottom: 14px;
}

.pt-eng-body {
    font-size: 17px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 14px;
}

.pt-bullet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin-bottom: 24px;
}

.pt-bullets {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

    .pt-bullets li {
        font-size: 17px;
        color: var(--text);
        line-height: 1.5;
        padding: 5px 0;
    }

.pt-callout-card {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 18px 20px !important;
}

.pt-callout-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 10px;
}

.pt-callout-text p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 10px;
}

.pt-callout-note {
    color: var(--muted) !important;
    font-size: 13px !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1050px) {
    .pt-grid-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .pt-topheader {
        grid-template-columns: 1fr 0 1fr;
        padding: 0 12px;
        height: var(--pt-header-h-mobile);
    }

    .pt-toplink span {
        display: none;
    }

    .pt-top-right {
        gap: 16px;
    }

    .pt-burger {
        display: inline-flex;
    }

    .pt-shell {
        display: block !important;
        min-height: calc(100vh - var(--pt-header-h-mobile));
    }

    .pt-sidebar {
        --pt-sidebar-pad: 12px;
        position: fixed;
        top: var(--pt-header-h-mobile);
        left: 0;
        bottom: 0;
        width: 280px;
        padding: 12px;
        background: #eef1f4;
        transform: translateX(-105%);
        transition: transform .18s ease-out;
        z-index: 40;
        border-right: 2px solid rgba(0,0,0,.08);
        overflow: hidden !important;
    }

    .pt-sidebar-inner {
        overflow: hidden !important;
    }

    .pt-overlay {
        position: fixed;
        inset: var(--pt-header-h-mobile) 0 0 0;
        background: rgba(0,0,0,.35);
        display: none;
        z-index: 30;
    }

    .pt-shell.pt-sidebar-open .pt-sidebar {
        transform: translateX(0);
    }

    .pt-shell.pt-sidebar-open .pt-overlay {
        display: block;
    }

    .pt-main {
        width: 100% !important;
        min-height: calc(100vh - var(--pt-header-h-mobile));
    }

    .pt-main-inner {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .pt-page {
        max-width: 100% !important;
        width: 100% !important;
    }

    .pt-card, .rz-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .pt-navbtn.active {
        width: 100% !important;
        margin-right: 0 !important;
        border-top-right-radius: 10px !important;
        border-bottom-right-radius: 10px !important;
    }

        .pt-navbtn.active::after, .pt-navbtn.active::before {
            content: none !important;
            display: none !important;
        }

    .pt-heather-drawer {
        width: var(--pt-heather-w-md);
        top: calc(var(--pt-header-h-mobile) + 14px);
    }

    .pt-scorecard-summary-grid {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: flex-start !important;
    }

    .pt-scorecard-summary-divider {
        display: none !important;
    }

    .pt-scorecard-summary-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pt-scorecard-download-btn {
        width: 100% !important;
        max-width: 320px;
    }
    .pt-home .rz-card {
        padding: 0 !important;
    }

        .pt-home .pt-card-header,
        .pt-home .pt-card-header.rz-card-header,
        .pt-home .rz-card > .pt-card-header {
            padding: 10px 12px;
            margin: 0;
            border-bottom: 1.5px solid var(--brand) !important;
            border-top: none !important;
            border-left: none !important;
            border-right: none !important;
        }

    .pt-home .pt-card-body {
        padding: 12px;
    }
}

@media (max-width: 900px) {

    .pt-mobile {
        display: block;
    }

    .pt-desktop {
        display: none;
    }

    .pt-title {
        font-size: 30px;
    }

    .pt-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .pt-btn {
        width: 100%;
        max-width: 320px;
        font-size: 13px;
        font-weight: 500 !important;
        font-family: var(--font-body);
    }

    .pt-scorecard-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pt-progress {
        margin: 0 auto;
    }

    .pt-carousel .pt-slide {
        flex-basis: 100% !important;
        max-width: 100% !important;
        padding: 0 6px !important;
    }

    .pt-item img {
        height: 140px;
    }

    .pt-fab {
        right: 14px;
        bottom: 14px;
        width: 70px;
        height: 70px;
    }

    .pt-heather-drawer {
        left: 14px;
        right: 14px;
        width: auto;
        top: calc(var(--pt-header-h-mobile) + 10px);
        bottom: calc(var(--pt-footer-safe) + 92px);
    }

    .pt-heather-grid {
        grid-template-columns: 1fr;
    }

    .pt-heather-video__container {
        height: 480px;
    }

    .pt-welcome-video {
        max-height: 300px;
    }

    .pt-welcome-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .pt-welcome-cta.rz-button {
        width: 100%;
    }

    .pt-terms-card {
        padding: 14px !important;
    }

    .pt-terms-actions {
        flex-direction: column;
    }

    .pt-terms-btn {
        width: 100%;
    }

    .pt-res-topcards {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 24px;
    }

    .pt-res-topcard {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,.09);
    }

        .pt-res-topcard:last-child {
            border-bottom: none;
        }

    .pt-bullet-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pt-library-grid {
        grid-template-columns: 1fr;
    }

    .pt-admin-header {
        padding: 16px 16px 14px;
    }

    .pt-admin-title {
        font-size: 24px;
    }

    .pt-admin-body {
        padding: 16px;
        gap: 16px;
    }

    .pt-admin-card-body {
        padding: 16px;
    }

    .pt-admin-provider-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pt-admin-dl-row {
        grid-template-columns: 100px 1fr;
    }

    /* ─────────────────────────────────────────────────────────────
       Public Home — mobile uses the accordion variant.
       Each section is a brand-teal pill bar that expands inline.
       ───────────────────────────────────────────────────────────── */
    .pt-home .pt-desktop { display: none !important; }
    .pt-home .pt-mobile  {
        display: flex !important;
        flex-direction: column;
        padding: 0 12px;
    }

    /* Mobile section order = desktop arrangement:
       1 Referral Resources, 2 Personal Library, 3 Ask Heather,
       4 Patient Engagement, 5 Compliance Scorecard.
       Markup order: 1 Ask Heather, 2 Scorecard, 3 PE, 4 Resources, 5 Library. */
    .pt-home .pt-mobile .pt-accordion:nth-of-type(1) { order: 3; } /* Ask Heather */
    .pt-home .pt-mobile .pt-accordion:nth-of-type(2) { order: 5; } /* Compliance Scorecard */
    .pt-home .pt-mobile .pt-accordion:nth-of-type(3) { order: 4; } /* Patient Engagement */
    .pt-home .pt-mobile .pt-accordion:nth-of-type(4) { order: 1; } /* Referral Resources */
    .pt-home .pt-mobile .pt-accordion:nth-of-type(5) { order: 2; } /* Personal Library */

    .pt-home .pt-title    { font-size: 26px; line-height: 1.15; padding: 0 16px; }
    .pt-home .pt-subtitle { font-size: 14px; line-height: 1.5; padding: 0 16px; margin-bottom: 16px; }

    /* Each section (single-item accordion per card) -------------------- */
    .pt-home .pt-mobile .pt-accordion {
        margin: 0 0 10px 0;
        background: transparent;
    }

    /* Outer wrappers carry the rounded shape, the single brand border,
       and clip the bar+body inside. */
    .pt-home .pt-mobile .pt-accordion,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-item {
        border-radius: 14px !important;
        overflow: hidden;
    }

    .pt-home .pt-mobile .pt-accordion .rz-accordion-item {
        border: 2px solid var(--brand) !important;
        box-sizing: border-box !important;
    }

    /* Header bar: brand background, white text + chevron.
       Rounded shape comes from the outer .pt-accordion / .rz-accordion-item
       wrappers (overflow:hidden + border-radius), so the bar itself just
       needs to fill them fully. */
    .pt-home .pt-mobile .pt-accordion.rz-accordion .rz-accordion-header {
        background: var(--brand) !important;
        background-color: var(--brand) !important;
        color: #fff !important;
        border-radius: 0 !important;
        padding: 14px 16px !important;
        min-height: 56px;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px;
        border: 0 !important;
        box-sizing: border-box !important;
        cursor: pointer;
    }

    /* When the section is expanded, square the bottom so the body seals
       flush against the bar. */
    .pt-home .pt-mobile .pt-accordion .rz-accordion-header[aria-expanded="true"],
    .pt-home .pt-mobile .pt-accordion .rz-accordion-header.rz-state-active,
    .pt-home .pt-mobile .pt-accordion .rz-state-active > .rz-accordion-header,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-tab[aria-expanded="true"] {
        border-radius: 10px 10px 0 0 !important;
    }

    .pt-home .pt-mobile .pt-accordion.rz-accordion .rz-accordion-content,
    .pt-home .pt-mobile .pt-accordion.rz-accordion .rz-accordion-content-wrapper {
        box-sizing: border-box !important;
    }

    /* The inner anchor takes full width so the title can occupy it. */
    .pt-home .pt-mobile .pt-accordion .rz-accordion-header > a,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-tab {
        display: flex !important;
        align-items: center;
        width: 100%;
        flex: 1 1 auto;
        text-decoration: none !important;
    }


    /* White text for the section title (avoid touching the icon font). */
    .pt-home .pt-mobile .pt-accordion .pt-acc-header,
    .pt-home .pt-mobile .pt-accordion .pt-acc-header span {
        color: #fff !important;
        font-family: var(--font-body);
        font-size: 17px;
        font-weight: 700;
        line-height: 1.2;
    }

    /* Hide whatever Radzen renders for the chevron entirely. */
    .pt-home .pt-mobile .pt-accordion .rz-accordion-toggle-icon,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-header .rzi,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-header > i,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-tab > i,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-tab > .rzi {
        display: none !important;
    }

    /* Draw our own chevron at the right end of the bar via pseudo-element. */
    .pt-home .pt-mobile .pt-accordion.rz-accordion .rz-accordion-header::after {
        content: "";
        flex: 0 0 10px;
        width: 10px;
        height: 10px;
        margin-left: auto;
        margin-right: 4px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform .15s ease;
    }

    /* Flip the chevron up when the section is expanded. */
    .pt-home .pt-mobile .pt-accordion.rz-accordion .rz-state-active .rz-accordion-header::after,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-header[aria-expanded="true"]::after {
        transform: rotate(-135deg) translate(-2px, -2px);
    }

    .pt-home .pt-mobile .pt-accordion .pt-acc-header {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
    }

    /* White-tint the section icons inside the header bar. */
    .pt-home .pt-mobile .pt-accordion .pt-acc-icon {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        filter: brightness(0) invert(1);
    }

    /* Chevron — push to right edge, make it white, rotate when open. */
    .pt-home .pt-mobile .pt-accordion .rz-accordion-toggle-icon,
    .pt-home .pt-mobile .pt-accordion .rz-accordion-header .rzi {
        margin-left: auto !important;
        color: #fff !important;
        font-size: 18px !important;
        transition: transform .15s ease;
    }

    /* Expanded body: white card stuck to the bar above.
       Border + rounded corners come from the outer .rz-accordion-item wrapper. */
    .pt-home .pt-mobile .pt-accordion.rz-accordion .rz-accordion-content,
    .pt-home .pt-mobile .pt-accordion.rz-accordion .rz-accordion-content-wrapper {
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }


    .pt-home .pt-mobile .pt-acc-body {
        padding: 16px;
    }

    /* CTA buttons inside accordion bodies span full width. */
    .pt-home .pt-mobile .pt-acc-body .pt-btn,
    .pt-home .pt-mobile .pt-acc-body button.pt-btn {
        width: 100% !important;
        height: 48px;
        font-size: 15px;
        margin-top: 12px;
    }

    /* Top-level cards get the 12px side margin */
    .pt-home .pt-card,
    .pt-home .pt-card.pt-section {
        margin: 0 12px 10px !important;
        margin-top: 0 !important;
        border-radius: 10px;
    }

    /* .pt-grid-top is a layout wrapper — no horizontal margin so its inner
       cards align with the top-level ones. */
    .pt-home .pt-grid-top,
    .pt-home .pt-grid-top.pt-section {
        margin: 0 !important;
    }

    .pt-home .pt-card-header { padding: 12px 14px; }
    .pt-home .pt-card-body   { padding: 14px; }

    /* Cancel desktop's flex:1 stretch so cards size to their content on mobile. */
    .pt-home .pt-grid-right .pt-card,
    .pt-home .pt-grid-right .pt-card .pt-card-body {
        flex: 0 0 auto !important;
    }

    /* Push the button-to-bottom rule out on mobile so the CTA sits right after content. */
    .pt-home .pt-grid-right .pt-card .pt-card-body .pt-btn {
        margin-top: 12px !important;
    }
    .pt-home .pt-card-header-title { font-size: 16px; }
    .pt-home .pt-card-ico { width: 20px; height: 20px; }

    .pt-home .pt-grid-top {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .pt-home .pt-grid-right {
        display: flex;
        flex-direction: column;
        gap: 0;
        order: 1;
    }

    /* Move Ask Heather to the bottom on mobile. */
    .pt-home .pt-grid-top .pt-card-ask {
        order: 2;
    }

    /* Only target the primary CTA class (.pt-btn) — never icon-only/pager buttons */
    .pt-home .pt-btn,
    .pt-home .pt-grid-right .pt-card .pt-card-body .pt-btn,
    .pt-home .pt-grid-right .pt-card .pt-card-body button.pt-btn {
        width: 100% !important;
        max-width: none !important;
        align-self: stretch !important;
        display: block !important;
        font-size: 15px;
    }

    /* Make sure the flex parent doesn't force shrink for CTAs. */
    .pt-home .pt-grid-right .pt-card .pt-card-body {
        align-items: stretch !important;
    }

    .pt-home .pt-section-foot,
    .pt-home .pt-section-foot-ask { margin-top: 16px; }

    .pt-home .pt-heather-placeholder { aspect-ratio: 16 / 9; }
    .pt-home .pt-heather-video       { width: 100%; height: 100%; object-fit: cover; }

    .pt-home .pt-scorecard-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .pt-home .pt-ringwrap       { transform: scale(.85); margin: 0; }
    .pt-home .pt-scorecard-copy { font-size: 14px; }
    .pt-home .pt-card-text      { font-size: 14px; line-height: 1.5; }
}

@media (max-width: 380px) {
    .pt-home .pt-title              { font-size: 23px; }
    .pt-home .pt-card-header-title  { font-size: 15px; }
}

@media (max-width: 520px) {
    .pt-pdf-btn-label {
        display: none;
    }

    .pt-pdf-open-btn, .pt-pdf-close-btn {
        padding: 8px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .pt-res-item {
        padding: 16px;
    }

    .pt-library-item {
        padding: 14px;
        gap: 12px;
    }

    .pt-library-thumb {
        width: 70px;
        height: 52px;
    }

    .pt-admin-actions {
        flex-direction: row;
        align-items: center;
    }

        .pt-admin-actions .rz-button {
            width: auto !important;
        }

    .pt-activate-input, .pt-activate-input.rz-textbox, .pt-activate-input.rz-dropdown, .pt-activate-input input, .pt-activate-input .rz-inputtext {
        width: 100% !important;
    }

    .rz-formfield, .rz-form-field {
        width: 100% !important;
    }

    .pt-admin-dl-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

        .pt-admin-dl-row dt {
            font-size: 11px;
        }

    .pt-pdf-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pt-pdf-modal-actions {
        width: 100%;
    }

    .pt-pdf-open-btn, .pt-pdf-close-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .pt-title {
        font-size: 26px;
    }

    .pt-card-header {
        padding: 14px 14px;
    }

    .pt-card-body {
        padding: 14px;
    }

    .pt-card-header-title {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 22px;
        color: #222;
    }

    .pt-fab {
        width: 64px;
        height: 64px;
    }
}
/* =========================================================
   ADMIN ATTENTION MODAL
   ========================================================= */
.pt-attention-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10100;
    padding: 24px;
}

.pt-attention-modal {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.pt-attention-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: #e21b1b;
    letter-spacing: .04em;
}

.pt-attention-body {
    font-size: 16px;
    font-weight: 600;
    color: #e21b1b;
    line-height: 1.5;
}

.pt-attention-btn {
    min-width: 160px;
}

/* =========================================================
   SETTINGS PAGE
   ========================================================= */
.pt-settings-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
    max-width: 960px;
}

    .pt-settings-page .pt-admin-header {
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,.09);
        box-shadow: 0 1px 4px rgba(0,0,0,.05);
        margin: 0;
        padding: 20px 28px 18px;
    }

.pt-settings-body {
    padding: 0;
    max-width: 960px;
    width: 100%;
}

.pt-settings-card {
    width: 100%;
    max-width: 100%;
}

.pt-settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

    .pt-settings-field .pt-activate-label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 2px;
    }

    .pt-settings-field .pt-activate-input,
    .pt-settings-field .pt-activate-input.rz-textbox,
    .pt-settings-field .pt-activate-input input {
        width: 100% !important;
        min-height: 42px !important;
        font-size: 14px !important;
    }

    .pt-settings-field .pt-activate-rules {
        margin-top: 8px;
    }

/* ── Radzen Notification ── */
.rz-notification-container {
    top: auto !important;
    bottom: 24px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
}