.team-profile-page {
    --tp-accent: #2873ac;
    --tp-ink: #233647;
    --tp-muted: #71808d;
    --tp-surface: #fff;
    --tp-soft: #f7f9fb;
    --tp-line: #e4e9ee;
    width: 100%;
    max-width: 1240px !important;
    margin: 0 auto;
    padding: 28px 28px 60px;
    color: var(--tp-ink);
    background: transparent !important;
    font-family: "Segoe UI", Arial, sans-serif;
    box-sizing: border-box;
}
.team-profile-page *, .team-profile-page *::before, .team-profile-page *::after { box-sizing: border-box; }
.team-profile-page .team-profile-breadcrumb { margin-bottom: 20px; color: var(--tp-muted); font-size: 12px; display: flex; align-items: center; gap: 12px; }
.team-profile-page .team-profile-breadcrumb a { color: var(--tp-muted); text-decoration: none; }
.team-profile-page .team-profile-breadcrumb a:hover { color: var(--tp-accent); }
.team-profile-page .team-profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 30px 32px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-surface); }
.team-profile-page .team-profile-identity { min-width: 0; }
.team-profile-page .team-profile-person { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; align-items: center; }
.team-profile-page .team-profile-photo, .team-profile-page .team-profile-photo .avatar { width: 88px; height: 88px; }
.team-profile-page .team-profile-photo .avatar { display: block; overflow: hidden; border: 1px solid var(--tp-line); border-radius: 18px; background: var(--tp-soft); }
.team-profile-page .team-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-profile-page .team-profile-copy { min-width: 0; }
.team-profile-page .team-profile-eyebrow { display: block; color: var(--tp-muted); font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.team-profile-page .team-profile-copy h1 { margin: 0; color: var(--tp-ink); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.18; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
.team-profile-page .team-profile-job-title { margin: 7px 0 0; color: var(--tp-accent); font-size: 14px; font-weight: 600; }
.team-profile-page .team-profile-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 15px; color: var(--tp-muted); font-size: 12px; }
.team-profile-page .team-profile-contact > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.team-profile-page .team-profile-contact span > span { overflow-wrap: anywhere; }
.team-profile-page .team-profile-contact i { color: var(--tp-muted); }
.team-profile-page [hidden] { display: none !important; }
.team-profile-page .team-profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.team-profile-page .team-profile-actions > div:empty { display: none; }
.team-profile-page .team-profile-actions > div:not(:empty), .team-profile-page .team-profile-actions > a { margin-top: 12px; }
.team-profile-page .team-profile-password-button { align-self: start; justify-self: end; white-space: nowrap; }
.team-profile-page .btn { border-radius: 7px; padding: 10px 16px; font-size: 12px; font-weight: 600; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.team-profile-page .btn i { margin-right: 6px; }
.team-profile-page .btn-primary { color: #fff; background: var(--tp-accent); border: 1px solid var(--tp-accent); box-shadow: none; }
.team-profile-page .btn-primary:hover { color: #fff; background: #205e8d; border-color: #205e8d; }
.team-profile-page .btn:active { transform: translateY(1px); }
.team-profile-page a:focus-visible, .team-profile-page button:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 4px; }
.team-profile-page .team-profile-navigation { margin-top: 24px; }
.team-profile-page .team-profile-tabs { display: flex; gap: 28px; overflow-x: auto; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--tp-line); background: transparent; scrollbar-width: thin; }
.team-profile-page .team-profile-tabs::before, .team-profile-page .team-profile-tabs::after { display: none; }
.team-profile-page .team-profile-tabs > li { float: none; flex: 0 0 auto; margin: 0; }
.team-profile-page .team-profile-tabs > li > a { margin: 0; padding: 14px 2px 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--tp-muted); background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .18s ease, border-color .18s ease; }
.team-profile-page .team-profile-tabs > li > a i { margin-right: 8px; font-size: 14px; }
.team-profile-page .team-profile-tabs > li > a:hover { background: transparent; color: var(--tp-accent); border-color: transparent; }
.team-profile-page .team-profile-tabs > li.active > a, .team-profile-page .team-profile-tabs > li > a.active { color: var(--tp-accent); background: transparent; border: 0; border-bottom: 2px solid var(--tp-accent); }
.team-profile-page .team-profile-content { margin-top: 24px; }
.team-profile-page .team-profile-content .panel { overflow: hidden; margin-bottom: 0; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-surface); box-shadow: none; }
.team-profile-page .team-profile-content .general-form { background: transparent !important; }
.team-profile-page .team-profile-content .panel-heading { padding: 24px 30px 20px; background: var(--tp-surface); border-bottom: 1px solid var(--tp-line); }
.team-profile-page .team-profile-content .panel-heading h4 { margin: 0; color: var(--tp-ink); font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.team-profile-page .team-profile-form-caption { margin: 7px 0 0; color: var(--tp-muted); font-size: 12px; line-height: 1.6; }
.team-profile-page .team-profile-content .panel-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; padding: 28px 30px 32px; }
.team-profile-page .team-profile-content .panel-body::before, .team-profile-page .team-profile-content .panel-body::after { display: none; }
.team-profile-page .team-profile-content .panel-body > .form-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.team-profile-page .team-profile-content .form-group > label { display: block; float: none; width: 100%; margin: 0 0 9px; padding: 0; text-align: left; color: var(--tp-ink); font-size: 12px; font-weight: 600; }
.team-profile-page .team-profile-content .form-group > div { float: none; width: 100%; padding: 0; }
.team-profile-page .team-profile-content .form-control { height: 42px; padding: 10px 12px; border: 1px solid var(--tp-line); border-radius: 6px; background: var(--tp-soft); color: var(--tp-ink); font-size: 13px; box-shadow: none; transition: border-color .18s ease, box-shadow .18s ease; }
.team-profile-page .team-profile-content .form-control::placeholder { color: var(--tp-muted); opacity: .8; }
.team-profile-page .team-profile-content .form-control:focus { border-color: var(--tp-accent); box-shadow: 0 0 0 3px rgba(40, 115, 172, .12); outline: none; }
.team-profile-page .team-profile-content textarea.form-control { height: 88px; min-height: 88px; resize: vertical; }
.team-profile-page .team-profile-content .form-control.error { border-color: #ba4a43; }
.team-profile-page .team-profile-content .panel-footer { display: flex; justify-content: flex-end; padding: 18px 30px; border-top: 1px solid var(--tp-line); background: var(--tp-soft); }
.team-profile-page .team-profile-content .help-block { font-size: 12px; }
.gylet-project-shell.gylet-dashboard-dark .team-profile-page { --tp-ink: #deE7ef; --tp-muted: #98aaba; --tp-surface: #14283c; --tp-soft: #102235; --tp-line: #2a4054; --tp-accent: #76b6e5; }
.gylet-project-shell.gylet-dashboard-dark .team-profile-page .btn-primary { background: #2873ac; border-color: #2873ac; }
.gylet-project-shell.gylet-dashboard-dark .team-profile-page .btn-primary:hover { background: #205e8d; border-color: #205e8d; }
@media (max-width: 760px) {
    .team-profile-page { padding: 18px 14px 40px; }
    .team-profile-page .team-profile-hero { padding: 24px; gap: 20px; grid-template-columns: minmax(0, 1fr); }
    .team-profile-page .team-profile-password-button { grid-row: 1; }
    .team-profile-page .team-profile-content .panel-body { gap: 22px; padding: 24px; grid-template-columns: minmax(0, 1fr); }
    .team-profile-page .team-profile-content .panel-heading { padding: 22px 24px 18px; }
    .team-profile-page .team-profile-content .panel-footer { padding: 18px 24px; }
    .team-profile-page .team-profile-tabs { gap: 20px; }
}
@media (max-width: 440px) {
    .team-profile-page .team-profile-hero { padding: 20px; }
    .team-profile-page .team-profile-person { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
    .team-profile-page .team-profile-photo, .team-profile-page .team-profile-photo .avatar { width: 64px; height: 64px; border-radius: 14px; }
    .team-profile-page .team-profile-copy h1 { font-size: 25px; }
    .team-profile-page .team-profile-contact { flex-direction: column; gap: 8px; }
    .team-profile-page .team-profile-tabs > li > a i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .team-profile-page *, .team-profile-page *::before, .team-profile-page *::after { transition: none !important; animation: none !important; }
}

/* Taste direction: preserve the sign-out shell, put identity first, and group details.
   DESIGN_VARIANCE: 3; MOTION_INTENSITY: 2; VISUAL_DENSITY: 4.
   The existing Bootstrap dialog supplies its shell, theme and entrance transition. */
#ajaxModal.gp-account-profile-modal {
    --profile-ink: #0f1d31;
    --profile-label: #5f6e82;
    --profile-line: #e3e8ef;
    --profile-focus: #a47b24;
    font-family: "Segoe UI", Arial, sans-serif;
}
#ajaxModal.gp-account-profile-modal .modal-header { display: none; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-body { max-height: min(calc(80vh - 110px), calc(100vh - 210px)); max-height: min(calc(80dvh - 110px), calc(100dvh - 210px)); padding: 30px 32px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-context { margin: 0 28px 20px; color: var(--profile-label); font-size: 12px; line-height: 1.5; font-weight: 500; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-icon { overflow: hidden; margin-bottom: 18px; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-icon img { width: 100%; height: 100%; object-fit: cover; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-loading { padding-top: 67px; }
#ajaxModal.gp-account-profile-modal .gp-profile-loading-line { display: block; height: 12px; margin: 0 auto; border-radius: 5px; background: var(--profile-line); }
#ajaxModal.gp-account-profile-modal .gp-profile-loading-name { width: 48%; height: 28px; }
#ajaxModal.gp-account-profile-modal .gp-profile-loading-job { width: 36%; margin-top: 10px; }
#ajaxModal.gp-account-profile-modal .gp-profile-loading-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--profile-line); }
#ajaxModal.gp-account-profile-modal .gp-profile-loading-details span { height: 44px; border-radius: 5px; background: var(--profile-line); opacity: .5; }
#ajaxModal.gp-account-profile-modal .gp-profile-loading-details span:first-child { grid-column: 1 / -1; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-initials { font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.035em; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-name { margin: 0; color: var(--profile-ink); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-job { margin-top: 8px; color: var(--profile-label); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 27px 0 0; padding: 24px 0 0; border-top: 1px solid var(--profile-line); text-align: left; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-details > div { min-width: 0; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-email, #ajaxModal.gp-account-profile-modal .gp-account-profile-address { grid-column: 1 / -1; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-details dt { margin-bottom: 6px; color: var(--profile-label); font-size: 12px; font-weight: 400; line-height: 1.5; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-details dd { margin: 0; color: var(--profile-ink); font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-details .gp-account-profile-empty { color: var(--profile-label); font-weight: 400; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-address { white-space: pre-line; }
#ajaxModal.gp-account-profile-modal .gp-account-password-body { padding-top: 36px; }
#ajaxModal.gp-account-profile-modal .gp-account-password-fields { margin-top: 26px; text-align: left; }
#ajaxModal.gp-account-profile-modal .gp-account-password-fields .form-group { margin: 0 0 20px; padding: 0; border: 0; }
#ajaxModal.gp-account-profile-modal .gp-account-password-fields .form-group:last-child { margin-bottom: 0; }
#ajaxModal.gp-account-profile-modal .gp-account-password-fields label { display: block; margin: 0 0 8px; color: var(--profile-ink); font-size: 12px; font-weight: 600; }
#ajaxModal.gp-account-profile-modal .gp-account-password-fields .form-control { height: 44px; padding: 10px 12px; border: 1px solid var(--profile-line); border-radius: 8px; background: #f8fafc; color: var(--profile-ink); font-size: 14px; box-shadow: none; }
#ajaxModal.gp-account-profile-modal .gp-account-password-fields .form-control:focus { border-color: var(--profile-focus); box-shadow: 0 0 0 3px rgba(164, 123, 36, .12); }
#ajaxModal.gp-account-profile-modal .gp-account-password-hint { display: block; margin-top: 7px; color: var(--profile-label); font-size: 11px; line-height: 1.5; }
#ajaxModal.gp-account-profile-modal .gp-account-password-status { margin-top: 24px; padding: 12px 14px; border: 1px solid var(--profile-line); border-radius: 8px; color: var(--profile-ink); font-size: 13px; line-height: 1.6; text-align: left; }
#ajaxModal.gp-account-profile-modal .gp-account-password-status.is-error, #ajaxModal.gp-account-profile-modal .gp-account-password-fields .help-block { color: #a43434; }
#ajaxModal.gp-account-profile-modal .gp-account-password-fields .has-error .form-control { border-color: #a43434; }
#ajaxModal.gp-account-profile-modal .gp-account-password-status.is-success { border-color: #b9d0bf; background: #f4f9f5; color: #315b3c; }
#ajaxModal.gp-account-profile-modal .gp-account-password-form [hidden] { display: none !important; }
#ajaxModal.gp-account-profile-modal .modal-footer::before, #ajaxModal.gp-account-profile-modal .modal-footer::after { display: none; }
#ajaxModal.gp-account-profile-modal .gp-signout-confirm { transition: background-color .16s ease, color .16s ease, transform .12s ease; }
#ajaxModal.gp-account-profile-modal .gp-signout-confirm:active { transform: scale(.985); }
#ajaxModal.gp-account-profile-modal .gp-account-profile-password { white-space: nowrap; transition: background-color .16s ease, color .16s ease, transform .12s ease; }
#ajaxModal.gp-account-profile-modal .gp-account-profile-password:active { transform: scale(.985); }
#ajaxModal.gp-account-profile-modal button:focus-visible, #ajaxModal.gp-account-profile-modal a:focus-visible { outline: 2px solid var(--profile-focus); outline-offset: 3px; }
body.gylet-dashboard-dark #ajaxModal.gp-account-profile-modal { --profile-ink: #f0f5fb; --profile-label: #a9bcd0; --profile-line: #29415b; --profile-focus: #e8c36c; }
body.gylet-dashboard-dark #ajaxModal.gp-account-profile-modal .gp-account-password-fields .form-control { background: #142b42; }
body.gylet-dashboard-dark #ajaxModal.gp-account-profile-modal .gp-account-password-status.is-error, body.gylet-dashboard-dark #ajaxModal.gp-account-profile-modal .gp-account-password-fields .help-block { color: #f1aaaa; }
body.gylet-dashboard-dark #ajaxModal.gp-account-profile-modal .gp-account-password-status.is-success { border-color: #375943; background: #182f24; color: #c0dec7; }
@media (max-width: 480px) {
    #ajaxModal.gp-account-profile-modal .gp-account-profile-body { padding: 28px 24px 24px; }
    #ajaxModal.gp-account-profile-modal .gp-account-profile-name { font-size: 26px; }
    #ajaxModal.gp-account-profile-modal .gp-account-profile-details { gap: 20px; }
}
@media (max-width: 360px) {
    #ajaxModal.gp-account-profile-modal .gp-account-profile-details { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    #ajaxModal.gp-account-profile-modal .gp-signout-confirm, #ajaxModal.gp-account-profile-modal .gp-account-profile-password { transition: none; }
}
