/* ALMAHDI PROFILE POLISH — scoped emerald-gem theme
   This stylesheet styles only the manager profile modal. */


/* =====================================================================
   ALMAHDI PROFILE MODAL — EMERALD GEM OVERRIDE
   Scoped to the manager profile only. Does not recolor site-wide cards.
   Removes pale/white panels and replaces them with deep emerald surfaces
   and a restrained green gemstone glow.
   ===================================================================== */
:root {
    --pm-jewel-bg: #04120e;
    --pm-jewel-panel: #061a14;
    --pm-jewel-panel-2: #08231a;
    --pm-jewel-green: #20d6a2;
    --pm-jewel-green-bright: #4af0b9;
    --pm-jewel-text: #e8f8f1;
    --pm-jewel-muted: #a1bfb3;
    --pm-jewel-border: rgba(32, 214, 162, .26);
    --pm-jewel-glow: rgba(18, 195, 132, .13);
}

body:not(.moharram) .profile-modal {
    color: var(--pm-jewel-text) !important;
    background:
        radial-gradient(ellipse at 90% 0%, rgba(23, 185, 127, .12), transparent 42%),
        linear-gradient(145deg, #061a14 0%, #03100c 78%) !important;
    background-color: var(--pm-jewel-bg) !important;
    border: 1px solid rgba(52, 230, 174, .44) !important;
    border-radius: 16px !important;
    box-shadow:
        0 0 0 1px rgba(28, 166, 119, .08),
        0 24px 72px rgba(0, 0, 0, .62),
        0 0 34px rgba(13, 185, 124, .13) !important;
    overflow: hidden;
}

body:not(.moharram) .profile-modal .profile-top {
    background:
        radial-gradient(ellipse at 90% 0%, rgba(32, 214, 162, .10), transparent 48%),
        linear-gradient(145deg, #08231a, #03120e 76%) !important;
    border-bottom: 1px solid rgba(32, 214, 162, .17) !important;
    color: var(--pm-jewel-text) !important;
}

body:not(.moharram) .profile-modal .profile-side,
body:not(.moharram) .profile-modal .profile-main {
    color: var(--pm-jewel-text) !important;
}

body:not(.moharram) .profile-modal .profile-side {
    border-color: rgba(32, 214, 162, .18) !important;
}

body:not(.moharram) .profile-modal .profile-side h2,
body:not(.moharram) .profile-modal .profile-main h3,
body:not(.moharram) .profile-modal .post-section h3,
body:not(.moharram) .profile-modal .feedback-form h3 {
    color: #e9fff6 !important;
    text-shadow: 0 0 18px rgba(32, 214, 162, .08);
}

body:not(.moharram) .profile-modal .profile-side .role,
body:not(.moharram) .profile-modal .goal-box b {
    color: var(--pm-jewel-green-bright) !important;
}

body:not(.moharram) .profile-modal .profile-main p,
body:not(.moharram) .profile-modal .goal-box p,
body:not(.moharram) .profile-modal .feedback-form p {
    color: var(--pm-jewel-muted) !important;
}

/* This is the large pale band in the screenshot: keep the whole activity
   section, its wrappers and feed tiles in the same dark gemstone palette. */
body:not(.moharram) .profile-modal .post-section,
body:not(.moharram) .profile-modal .post-section > div,
body:not(.moharram) .profile-modal .post-section > section,
body:not(.moharram) .profile-modal .post-section .section-head,
body:not(.moharram) .profile-modal .post-section .post-feed {
    background: linear-gradient(145deg, #061a14, #04130f 82%) !important;
    background-color: #061a14 !important;
    color: var(--pm-jewel-text) !important;
    border-color: rgba(32, 214, 162, .18) !important;
}

body:not(.moharram) .profile-modal .post-section .feed-post {
    background:
        linear-gradient(145deg, rgba(10, 43, 31, .98), rgba(4, 19, 14, .98)) !important;
    background-color: #061a14 !important;
    border: 1px solid rgba(32, 214, 162, .20) !important;
    border-radius: 12px !important;
    color: var(--pm-jewel-text) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .17), 0 0 17px rgba(12, 185, 123, .045) !important;
}

body:not(.moharram) .profile-modal .post-section .feed-media {
    background: #020b07 !important;
    border-bottom: 1px solid rgba(32, 214, 162, .12) !important;
}

body:not(.moharram) .profile-modal .post-section .feed-info {
    background: transparent !important;
    color: var(--pm-jewel-text) !important;
}

body:not(.moharram) .profile-modal .post-section .feed-info h4 {
    color: #e8f8f1 !important;
}

body:not(.moharram) .profile-modal .post-section .feed-info p,
body:not(.moharram) .profile-modal .post-section .feed-meta {
    color: #8fb7a8 !important;
}

body:not(.moharram) .profile-modal .goal-box {
    background: linear-gradient(135deg, rgba(19, 161, 111, .09), rgba(2, 18, 12, .28)) !important;
    border: 1px solid rgba(32, 214, 162, .18) !important;
    border-radius: 12px !important;
    padding: 14px !important;
}

/* Feedback form: dark fields with emerald borders/glow, never white. */
body:not(.moharram) .profile-modal .feedback-form {
    background:
        radial-gradient(ellipse at 92% 0%, rgba(14, 155, 101, .08), transparent 52%),
        #03100c !important;
    border-top: 1px solid rgba(32, 214, 162, .20) !important;
    color: var(--pm-jewel-text) !important;
}

body:not(.moharram) .profile-modal .feedback-form label {
    color: #b8d9cc !important;
}

body:not(.moharram) .profile-modal .feedback-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body:not(.moharram) .profile-modal .feedback-form textarea,
body:not(.moharram) .profile-modal .feedback-form select,
body:not(.moharram) .profile-modal .feedback-form [contenteditable="true"] {
    background: linear-gradient(145deg, #071b14, #04120d) !important;
    background-color: #061710 !important;
    color: #eafff6 !important;
    border: 1px solid rgba(32, 214, 162, .29) !important;
    border-radius: 12px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .018),
        0 5px 18px rgba(0, 0, 0, .14) !important;
    outline: none !important;
}

body:not(.moharram) .profile-modal .feedback-form textarea {
    min-height: 108px;
    resize: vertical;
}

body:not(.moharram) .profile-modal .feedback-form input:focus,
body:not(.moharram) .profile-modal .feedback-form textarea:focus,
body:not(.moharram) .profile-modal .feedback-form select:focus,
body:not(.moharram) .profile-modal .feedback-form [contenteditable="true"]:focus {
    border-color: var(--pm-jewel-green-bright) !important;
    box-shadow:
        0 0 0 3px rgba(32, 214, 162, .10),
        0 0 22px rgba(32, 214, 162, .10) !important;
}

body:not(.moharram) .profile-modal .feedback-form input::placeholder,
body:not(.moharram) .profile-modal .feedback-form textarea::placeholder {
    color: #789c8d !important;
}

body:not(.moharram) .profile-modal .feedback-form button,
body:not(.moharram) .profile-modal .feedback-form input[type="submit"],
body:not(.moharram) .profile-modal .feedback-form input[type="button"],
body:not(.moharram) .profile-modal .feedback-btn {
    background: linear-gradient(135deg, #20d6a2, #079b70) !important;
    border: 1px solid rgba(87, 255, 194, .38) !important;
    color: #03251a !important;
    font-weight: 800;
    box-shadow: 0 7px 24px rgba(10, 190, 125, .15) !important;
}

body:not(.moharram) .profile-modal .close {
    border: 1px solid rgba(32, 214, 162, .20) !important;
    background: rgba(5, 28, 19, .78) !important;
    color: #dffcf0 !important;
}

@media (max-width: 700px) {
    body:not(.moharram) .profile-modal {
        border-radius: 14px !important;
        box-shadow: 0 16px 48px rgba(0, 0, 0, .6), 0 0 24px rgba(13, 185, 124, .10) !important;
    }

    body:not(.moharram) .profile-modal .post-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    body:not(.moharram) .profile-modal .feedback-form {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* Long profile descriptions: keep all text inside the card and allow independent scrolling.
   Palette is intentionally inherited from the existing profile theme. */
.profile-modal {
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(32, 214, 162, .55) rgba(3, 16, 12, .7);
}

.profile-modal .profile-top,
.profile-modal .profile-side,
.profile-modal .profile-main,
.profile-modal .goal-box {
    min-width: 0;
    max-width: 100%;
}

.profile-modal .profile-main p.profile-long-text,
.profile-modal .goal-box p.profile-long-text {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    max-height: min(36vh, 340px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: pre-wrap;
    line-height: 1.95;
    font-size: 13px;
    padding: 10px 12px;
    margin: 10px 0 14px;
    border: 1px solid rgba(32, 214, 162, .18);
    border-radius: 10px;
    background: rgba(3, 16, 12, .38);
    scrollbar-width: thin;
    scrollbar-color: rgba(32, 214, 162, .55) rgba(3, 16, 12, .7);
}

.profile-modal .goal-box p.profile-long-text {
    margin-bottom: 0;
}

.profile-modal .profile-long-text::-webkit-scrollbar,
.profile-modal::-webkit-scrollbar {
    width: 7px;
}

.profile-modal .profile-long-text::-webkit-scrollbar-track,
.profile-modal::-webkit-scrollbar-track {
    background: rgba(3, 16, 12, .65);
    border-radius: 12px;
}

.profile-modal .profile-long-text::-webkit-scrollbar-thumb,
.profile-modal::-webkit-scrollbar-thumb {
    background: rgba(32, 214, 162, .48);
    border-radius: 12px;
}

/* Keep the close control available while the entire profile dialog scrolls. */
.profile-modal > .close {
    position: sticky !important;
    top: 8px !important;
    float: left;
    margin: 8px 10px -38px 10px;
}

@media (max-width: 650px) {
    .profile-modal {
        max-height: calc(100vh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
    }

    .profile-modal .profile-main p.profile-long-text,
    .profile-modal .goal-box p.profile-long-text {
        max-height: 32vh;
        font-size: 13px;
        padding: 9px 10px;
        line-height: 1.9;
    }
}


/* =====================================================================
   PROFILE MODAL V3 — polished, readable and responsive.
   Uses the existing black / deep-green / mint-teal palette only.
   ===================================================================== */
.exact-reference #profileModal.modal {
    padding: 10px !important;
}

.exact-reference .profile-modal {
    width: min(960px, 100%) !important;
    max-width: 960px !important;
    max-height: min(92vh, 920px) !important;
    max-height: min(92dvh, 920px) !important;
    padding: 0 !important;
    border-radius: 22px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(32, 214, 178, .65) rgba(3, 16, 12, .8);
    background:
        radial-gradient(ellipse at 92% 0%, rgba(32, 214, 178, .10), transparent 35%),
        linear-gradient(145deg, #061610 0%, #03100c 72%, #020b08 100%) !important;
    border: 1px solid rgba(32, 214, 178, .34) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .66), 0 0 34px rgba(32, 214, 178, .08) !important;
    scrollbar-gutter: stable;
}

.exact-reference .profile-modal > .close {
    position: sticky !important;
    top: 10px !important;
    left: auto !important;
    right: auto !important;
    float: left;
    margin: 10px 12px -48px 12px !important;
    width: 40px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center;
    border-radius: 13px !important;
    z-index: 30 !important;
    background: rgba(3, 23, 16, .94) !important;
    border: 1px solid rgba(32, 214, 178, .26) !important;
    color: #dffcf1 !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .22);
    line-height: 1;
}

.exact-reference .profile-modal #profileContent {
    min-width: 0;
}

.exact-reference .profile-modal .profile-top {
    display: grid !important;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.55fr) !important;
    gap: 22px !important;
    align-items: start;
    padding: 30px !important;
    margin: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(32, 214, 178, .14) !important;
}

.exact-reference .profile-modal .profile-side {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 23px 18px !important;
    margin: 0 !important;
    text-align: center;
    border: 1px solid rgba(32, 214, 178, .22) !important;
    border-radius: 19px !important;
    background: linear-gradient(155deg, rgba(8, 42, 30, .76), rgba(3, 17, 12, .88)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 26px rgba(0,0,0,.14);
    gap: 10px;
}

.exact-reference .profile-modal .profile-avatar-shell {
    position: relative;
    display: grid;
    place-items: center;
    margin: 0 0 2px;
}

.exact-reference .profile-modal .profile-side .avatar {
    width: 104px !important;
    height: 104px !important;
    margin: 0 !important;
    border: 2px solid #20d6b2 !important;
    border-radius: 50% !important;
    background: #071d15 !important;
    color: #20d6b2 !important;
    box-shadow: 0 0 0 5px rgba(32, 214, 178, .07), 0 0 30px rgba(32, 214, 178, .12) !important;
    font-size: 30px !important;
}

.exact-reference .profile-modal .profile-status-mark {
    position: absolute;
    bottom: 0;
    left: -4px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #05251a;
    background: linear-gradient(135deg, #4af0c0, #20d6b2);
    border: 3px solid #061710;
    font-size: 13px;
}

.exact-reference .profile-modal .profile-identity-copy {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.exact-reference .profile-modal .profile-kicker,
.exact-reference .profile-modal .profile-section-kicker {
    display: block;
    color: #7ca99a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.7;
    letter-spacing: .15px;
}

.exact-reference .profile-modal .profile-side h2 {
    margin: 2px 0 5px !important;
    color: #ecfff7 !important;
    font-size: 19px !important;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.exact-reference .profile-modal .profile-side .role {
    margin: 0;
    color: #20d6b2 !important;
    font-size: 12px !important;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.exact-reference .profile-modal .profile-side .feedback-btn {
    width: 100%;
    min-height: 44px;
    margin: 14px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    box-shadow: 0 8px 22px rgba(10, 190, 125, .13) !important;
}

.exact-reference .profile-modal .profile-side .feedback-btn span {
    font-size: 15px;
}

.exact-reference .profile-modal .profile-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 16px;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
    width: 100%;
}

.exact-reference .profile-modal .profile-info-card {
    position: relative;
    min-width: 0;
    width: 100%;
    padding: 18px !important;
    margin: 0 !important;
    border: 1px solid rgba(32, 214, 178, .23) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(7, 36, 25, .88), rgba(3, 17, 12, .95)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 25px rgba(0,0,0,.12);
}

.exact-reference .profile-modal .profile-section-heading,
.exact-reference .profile-modal .profile-feedback-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 0 0 13px;
    margin: 0 0 13px;
    border-bottom: 1px solid rgba(32, 214, 178, .16);
}

.exact-reference .profile-modal .profile-section-icon {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(32, 214, 178, .28);
    border-radius: 13px;
    color: #20d6b2;
    background: rgba(32, 214, 178, .08);
    font-size: 22px;
    line-height: 1;
}

.exact-reference .profile-modal .profile-section-copy {
    min-width: 0;
}

.exact-reference .profile-modal .profile-section-copy h3,
.exact-reference .profile-modal .profile-feedback-heading h3 {
    margin: 1px 0 0 !important;
    color: #effff8 !important;
    font-size: 16px !important;
    font-weight: 900;
    line-height: 1.6;
}

.exact-reference .profile-modal .profile-info-card p.profile-long-text {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: min(36vh, 350px);
    overflow: auto;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 14px 15px !important;
    border: 1px solid rgba(32, 214, 178, .14) !important;
    border-radius: 13px !important;
    background: rgba(1, 12, 8, .46) !important;
    color: #c8e2d8 !important;
    font-size: 13px !important;
    line-height: 2.05 !important;
    text-align: right;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(32, 214, 178, .58) rgba(3, 16, 12, .7);
}

.exact-reference .profile-modal .goal-card {
    background: linear-gradient(145deg, rgba(8, 41, 29, .91), rgba(3, 17, 12, .96)) !important;
}

.exact-reference .profile-modal .goal-card .target-icon {
    font-size: 26px;
}

.exact-reference .profile-modal .post-section {
    padding: 22px 30px 28px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(32, 214, 178, .13);
    background: rgba(1, 10, 7, .20) !important;
}

.exact-reference .profile-modal .post-section .section-head {
    display: flex;
    align-items: center;
    margin: 0 0 15px !important;
}

.exact-reference .profile-modal .post-section .section-head h3 {
    margin: 3px 0 0;
    color: #effff8 !important;
    font-size: 17px !important;
}

.exact-reference .profile-modal .profile-post-count {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid rgba(32, 214, 178, .20);
    border-radius: 999px;
    color: #8bd6bd;
    background: rgba(32, 214, 178, .06);
    font-size: 11px;
}

.exact-reference .profile-modal .post-feed {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)) !important;
    gap: 12px !important;
}

.exact-reference .profile-modal .feed-post {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(32, 214, 178, .17) !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #09251a, #03110c) !important;
}

.exact-reference .profile-modal .feed-media {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #020a06 !important;
}

.exact-reference .profile-modal .feed-info {
    display: block !important;
    padding: 11px !important;
}

.exact-reference .profile-modal .feed-info h4 {
    margin: 0 0 5px;
    color: #e8fff5 !important;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.exact-reference .profile-modal .feed-info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    color: #a1bfb3 !important;
    font-size: 11px;
    line-height: 1.8;
}

.exact-reference .profile-modal .profile-feedback {
    padding: 22px 30px 30px !important;
    border-top: 1px solid rgba(32, 214, 178, .15) !important;
    background: linear-gradient(180deg, rgba(5, 28, 19, .7), rgba(2, 12, 8, .92)) !important;
}

.exact-reference .profile-modal .profile-feedback-heading {
    align-items: center;
    margin-bottom: 10px;
}

.exact-reference .profile-modal .profile-feedback > p {
    margin: 0 0 16px;
    color: #92b9a9 !important;
    font-size: 12px;
    line-height: 1.9;
}

.exact-reference .profile-modal .profile-feedback .form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.exact-reference .profile-modal .profile-feedback .form label:last-of-type,
.exact-reference .profile-modal .profile-feedback .form button,
.exact-reference .profile-modal .profile-feedback .form-msg {
    grid-column: 1 / -1;
}

.exact-reference .profile-modal .profile-feedback .form label {
    min-width: 0;
    gap: 6px;
    color: #b8d9cc !important;
    font-size: 12px;
}

.exact-reference .profile-modal .profile-feedback .form input,
.exact-reference .profile-modal .profile-feedback .form textarea {
    min-width: 0;
    width: 100%;
    border-radius: 11px !important;
    border: 1px solid rgba(32, 214, 178, .22) !important;
    background: rgba(1, 12, 8, .65) !important;
    color: #eafff6 !important;
    font-size: 13px;
}

.exact-reference .profile-modal .profile-feedback .form button {
    min-height: 44px;
    border-radius: 12px !important;
    font-size: 13px;
}

.exact-reference .profile-modal .profile-feedback .form-msg {
    min-height: 0;
}

.exact-reference .profile-modal .profile-long-text::-webkit-scrollbar,
.exact-reference .profile-modal::-webkit-scrollbar {
    width: 7px;
}

.exact-reference .profile-modal .profile-long-text::-webkit-scrollbar-track,
.exact-reference .profile-modal::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(3, 16, 12, .8);
}

.exact-reference .profile-modal .profile-long-text::-webkit-scrollbar-thumb,
.exact-reference .profile-modal::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid rgba(3, 16, 12, .8);
    background: rgba(32, 214, 178, .52);
}

@media (max-width: 800px) {
    .exact-reference #profileModal.modal {
        padding: 7px !important;
    }

    .exact-reference .profile-modal {
        width: 100% !important;
        max-height: 94vh !important;
        max-height: 94dvh !important;
        border-radius: 18px !important;
    }

    .exact-reference .profile-modal .profile-top {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
        padding: 17px 14px 20px !important;
    }

    .exact-reference .profile-modal .profile-side {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        justify-items: stretch;
        gap: 5px 13px;
        padding: 14px !important;
        text-align: right;
        border-radius: 16px !important;
    }

    .exact-reference .profile-modal .profile-avatar-shell {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        align-self: center;
    }

    .exact-reference .profile-modal .profile-side .avatar {
        width: 68px !important;
        height: 68px !important;
        font-size: 22px !important;
    }

    .exact-reference .profile-modal .profile-status-mark {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-width: 2px;
        left: -2px;
    }

    .exact-reference .profile-modal .profile-identity-copy {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .exact-reference .profile-modal .profile-side h2 {
        font-size: 16px !important;
        line-height: 1.5;
    }

    .exact-reference .profile-modal .profile-side .role {
        font-size: 11px !important;
        line-height: 1.75;
    }

    .exact-reference .profile-modal .profile-side .feedback-btn {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px !important;
        min-height: 42px;
    }

    .exact-reference .profile-modal .profile-main {
        gap: 13px;
    }

    .exact-reference .profile-modal .profile-info-card {
        padding: 13px !important;
        border-radius: 15px !important;
    }

    .exact-reference .profile-modal .profile-section-heading,
    .exact-reference .profile-modal .profile-feedback-heading {
        gap: 9px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .exact-reference .profile-modal .profile-section-icon {
        flex-basis: 33px;
        width: 33px;
        height: 33px;
        border-radius: 11px;
        font-size: 19px;
    }

    .exact-reference .profile-modal .profile-section-copy h3,
    .exact-reference .profile-modal .profile-feedback-heading h3 {
        font-size: 14px !important;
    }

    .exact-reference .profile-modal .profile-info-card p.profile-long-text {
        max-height: min(34vh, 300px);
        padding: 12px !important;
        font-size: 13px !important;
        line-height: 1.95 !important;
    }

    .exact-reference .profile-modal .post-section,
    .exact-reference .profile-modal .profile-feedback {
        padding: 18px 14px 22px !important;
    }

    .exact-reference .profile-modal .post-feed {
        grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
        gap: 9px !important;
    }

    .exact-reference .profile-modal .feed-info {
        padding: 9px !important;
    }

    .exact-reference .profile-modal .profile-feedback .form {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .exact-reference .profile-modal .profile-feedback .form label,
    .exact-reference .profile-modal .profile-feedback .form button,
    .exact-reference .profile-modal .profile-feedback .form-msg {
        grid-column: 1;
    }
}

@media (max-width: 380px) {
    .exact-reference .profile-modal .profile-top {
        padding-inline: 10px !important;
    }

    .exact-reference .profile-modal .profile-info-card {
        padding: 11px !important;
    }

    .exact-reference .profile-modal .profile-info-card p.profile-long-text {
        padding: 10px !important;
        font-size: 12.5px !important;
    }
}


/* FINAL SIMPLIFICATION: one border per responsibility section.
   The section wrapper stays visually quiet; only the scrollable text area
   has an outline. Existing black/green palette is intentionally preserved. */
.exact-reference .profile-modal .profile-info-card,
.exact-reference .profile-modal .goal-card {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.exact-reference .profile-modal .profile-section-heading {
    gap: 8px !important;
    padding: 0 2px 8px !important;
    margin: 0 0 10px !important;
    border: 0 !important;
}

.exact-reference .profile-modal .profile-info-card .profile-section-kicker {
    display: none !important;
}

.exact-reference .profile-modal .profile-section-icon {
    flex-basis: 28px !important;
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 21px !important;
}

.exact-reference .profile-modal .profile-section-copy h3 {
    margin: 0 !important;
    font-size: 17px !important;
    letter-spacing: 0 !important;
}

.exact-reference .profile-modal .profile-info-card p.profile-long-text {
    margin: 0 !important;
    border: 1px solid rgba(32, 214, 178, .22) !important;
    border-radius: 12px !important;
    background: rgba(1, 12, 8, .24) !important;
    box-shadow: none !important;
    padding: 14px 15px !important;
    max-height: min(36dvh, 350px) !important;
    line-height: 1.95 !important;
}

.exact-reference .profile-modal .profile-main {
    gap: 23px !important;
}

@media (max-width: 700px) {
    .exact-reference .profile-modal .profile-main {
        gap: 20px !important;
    }
    .exact-reference .profile-modal .profile-section-heading {
        padding-inline: 1px !important;
        margin-bottom: 8px !important;
    }
    .exact-reference .profile-modal .profile-section-copy h3 {
        font-size: 15px !important;
    }
    .exact-reference .profile-modal .profile-info-card p.profile-long-text {
        max-height: min(35dvh, 320px) !important;
        padding: 12px !important;
        font-size: 13px !important;
    }
}


/* =====================================================================
   PROFILE CENTERED LAYOUT — user-requested refinement
   Center the profile identity and place all description sections below it.
   Preserve the existing dark green / mint palette and independent text scrolling.
   ===================================================================== */
.exact-reference .profile-modal .profile-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    justify-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
}

.exact-reference .profile-modal .profile-side {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 22px 16px 20px !important;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(32, 214, 178, .18) !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-avatar-shell {
    display: grid !important;
    place-items: center !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 auto 4px !important;
    order: 0 !important;
}

.exact-reference .profile-modal .profile-side .avatar {
    width: 112px !important;
    height: 112px !important;
    min-width: 112px !important;
    border-radius: 50% !important;
}

.exact-reference .profile-modal .profile-side .avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

.exact-reference .profile-modal .profile-identity-copy {
    display: block !important;
    order: 1 !important;
    width: min(100%, 760px) !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-side h2 {
    margin: 0 auto 5px !important;
    font-size: clamp(19px, 3vw, 23px) !important;
    line-height: 1.7 !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-side .role {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    font-size: 13px !important;
    line-height: 2 !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-side .feedback-btn {
    order: 2 !important;
    display: inline-flex !important;
    align-self: center !important;
    width: min(100%, 420px) !important;
    margin: 7px auto 0 !important;
}

.exact-reference .profile-modal .profile-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-info-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.exact-reference .profile-modal .profile-section-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-section-copy {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-section-copy h3 {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-info-card p.profile-long-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 2.05 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    max-height: min(43vh, 420px) !important;
}

.exact-reference .profile-modal .post-section .section-head {
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
}

.exact-reference .profile-modal .post-section .section-head > div {
    text-align: center !important;
}

.exact-reference .profile-modal .profile-feedback-heading {
    justify-content: center !important;
    text-align: center !important;
}

.exact-reference .profile-modal .profile-feedback > p {
    text-align: center !important;
}

.exact-reference .profile-modal .profile-feedback .form label {
    text-align: center !important;
}

@media (max-width: 800px) {
    .exact-reference .profile-modal .profile-top {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 15px 12px 18px !important;
        gap: 14px !important;
    }

    .exact-reference .profile-modal .profile-side {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 17px 10px 18px !important;
        text-align: center !important;
    }

    .exact-reference .profile-modal .profile-side .avatar {
        width: 104px !important;
        height: 104px !important;
        min-width: 104px !important;
    }

    .exact-reference .profile-modal .profile-identity-copy {
        width: 100% !important;
        text-align: center !important;
    }

    .exact-reference .profile-modal .profile-side h2 {
        font-size: 19px !important;
        text-align: center !important;
    }

    .exact-reference .profile-modal .profile-side .role {
        font-size: 13px !important;
        text-align: center !important;
    }

    .exact-reference .profile-modal .profile-info-card p.profile-long-text {
        max-height: min(44vh, 390px) !important;
        padding: 12px 11px !important;
        font-size: 14px !important;
        text-align: center !important;
    }
}

@media (max-width: 380px) {
    .exact-reference .profile-modal .profile-side .avatar {
        width: 96px !important;
        height: 96px !important;
        min-width: 96px !important;
    }

    .exact-reference .profile-modal .profile-info-card p.profile-long-text {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
}
