/* ========================================
   BLOCK 2: Page-Specific CSS (pvi-profile)
   (this page only — extracted from the pvi-profile.html fragment at deploy)
   All colors reference :root variables from pvi-master-frame.css.
   ======================================== */

    .pv-account { max-width: 640px; margin: 2.5rem auto; padding: 0 1rem; }

    /* Card shell — matches the .su-section pattern used by the onboarding
       pages (white card, rounded, subtle shadow, divider-headed h3). */
    .su-section {
        background: var(--white);
        border: 1px solid var(--light-grey);
        border-radius: 10px;
        padding: 1.75rem 1.75rem 1.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    }
    .su-section h3 {
        margin: 0 0 1.25rem;
        padding-bottom: .75rem;
        border-bottom: 1px solid var(--rule);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--dark-grey);
    }
    .su-section h3 .pv-ico { margin-right: .4rem; }

    /* ----- Fields ------------------------------------------------------ */
    .pv-field { margin-bottom: 1.1rem; }
    .su-lbl {
        display: block;
        margin-bottom: .35rem;
        font-size: .82rem;
        font-weight: 600;
        color: var(--dark-grey);
    }

    .pv-input {
        width: 100%;
        padding: .5rem .7rem;
        font-size: .95rem;
        color: var(--dark-grey);
        background: var(--white);
        border: 1px solid var(--light-grey);
        border-radius: 6px;
    }
    .pv-input:focus {
        outline: none;
        border-color: var(--dull-blue);
        box-shadow: 0 0 0 .2rem var(--focus-ring-blue);
    }

    /* Read-only display values (admin-managed fields) */
    .pv-readonly {
        padding: .5rem .7rem;
        font-size: .95rem;
        color: var(--mid-grey);
        background: var(--surface);
        border: 1px solid var(--rule);
        border-radius: 6px;
        min-height: 2.35rem;
    }
    .pv-readonly-role { text-transform: capitalize; }
    .pv-readonly-note {
        margin: .25rem 0 0;
        font-size: .78rem;
        color: var(--mid-grey);
    }

    /* ----- Error slot (shared contract, dictionary §11.5) -------------- */
    .error-block {
        display: none;
        margin-bottom: 1.1rem;
        padding: .7rem .9rem;
        font-size: .88rem;
        color: var(--dull-red);
        background: var(--dull-red-bg);
        border: 1px solid var(--dull-red);
        border-radius: 6px;
    }
    .error-block.is-shown { display: block; }

    /* ----- Actions ----------------------------------------------------- */
    .pv-actions {
        display: flex; justify-content: flex-end; gap: .6rem;
        margin-top: 1.5rem; padding-top: 1.25rem;
        border-top: 1px solid var(--rule);
    }
    .pv-btn-save, .pv-btn-cancel {
        font-size: .92rem; font-weight: 600; line-height: 1.4;
        padding: .5rem 1.1rem; border-radius: 6px;
        cursor: pointer; text-decoration: none;
        border: 1px solid transparent;
    }
    .pv-btn-save {
        color: var(--white); background: var(--green); border-color: var(--green);
    }
    .pv-btn-save:hover { background: var(--green-hover); border-color: var(--green-hover); }
    .pv-btn-cancel {
        color: var(--dark-grey); background: var(--white); border-color: var(--light-grey);
    }
    .pv-btn-cancel:hover { background: var(--surface); border-color: var(--mid-grey); }

    /* ----- Responsive -------------------------------------------------- */
    @media (max-width: 520px) {
        .pv-account { margin: 1.25rem auto; }
        .su-section { padding: 1.25rem 1.1rem; }
        .pv-actions { flex-direction: column-reverse; }
        .pv-btn-save, .pv-btn-cancel { width: 100%; text-align: center; }
    }
