/* Shared readability and compact account controls. Preserve the supplied logo artwork. */
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header .logo {
    display: inline-flex !important; align-items: center; justify-content: flex-start !important;
    gap: 10px; width: auto !important; margin: 0 !important; flex: 0 1 auto;
    color: #b2efca !important; font-size: 20px !important;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header .brand-mark {
    border: 2px solid #65bd88 !important; border-radius: 12px !important;
    box-shadow: 0 0 0 4px #153b282e !important;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern main :is(.field-help,.help-text,.form-help) {
    font-size: 14px !important; line-height: 1.6 !important; color: #b7ccc0 !important;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern :is(#add-athlete-certificate,#add-coach-certificate,.tt-carousel-controls button) {
    min-height: 44px !important; min-width: 44px !important;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .profile-section-card small {
    font-size: 13px !important; line-height: 1.6 !important;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .tt-score-component small { font-size: 12px !important; }
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .monthly-limit-box {
    min-width: 260px; max-width: 380px; border-radius: 12px; padding: 18px 20px !important;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .monthly-limit-box > span {
    display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .08em;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern #monthly-endorsement-count {
    color: #dcf6e5 !important; font-size: 22px !important; letter-spacing: -.02em;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern #monthly-endorsement-reset {
    margin: 10px 0 0; color: #b7ccc0; font-size: 13px; line-height: 1.6;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern #endorsement-limit-help {
    margin-top: 8px; color: #b7ccc0; font-size: 13px; text-align: left;
}
#endorsement-limit-help summary { cursor: pointer; min-height: 44px; display: list-item; align-content: center; }
#endorsement-limit-help p { margin: 6px 0 0; line-height: 1.65; }
html body.ui-modern .review-status-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
}
html body.ui-modern .review-status-controls {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
    grid-column: 1 / -1; color: #b7ccc0; font-size: 13px;
}
html body.ui-modern main > .review-status-controls { padding: 10px 0; margin-bottom: 12px; }
html body.ui-modern .review-refresh-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 8px 12px; border: 1px solid #466b53; border-radius: 9px;
    background: #173025; color: #d8f2e2; font-size: 13px; font-weight: 650; cursor: pointer;
}
html body.ui-modern .review-refresh-feedback { font-size: 12px; color: #b7ccc0; }
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.athlete-profile-page .page-main {
    display: grid; gap: 24px; margin-top: 24px !important; padding-top: 0 !important;
}
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.athlete-profile-page .page-main > [hidden] { display: none !important; }
html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.athlete-profile-page .profile-action {
    background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important;
}
@media (min-width: 901px) {
    html body.ui-modern:is([data-require-role="athlete"], [data-require-role="coach"], [data-require-role="organization"], .athlete-profile-page, .athlete-onboarding-page, .coach-about-page, .coach-discovery-page, .edit-coach-page, .coach-approval-page, :has(.has-notification-bell), :has(.has-account-nav), :has(.navbar-centered)) .header,
    html body.ui-modern .header:is(.has-account-nav, .has-notification-bell, :has([data-notification-bell])) {
        position: sticky !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 81px !important;
        height: 81px !important;
        box-sizing: border-box !important;
    }
    html body.ui-modern:is([data-require-role="athlete"], [data-require-role="coach"], [data-require-role="organization"], .athlete-profile-page, .athlete-onboarding-page, .coach-about-page, .coach-discovery-page, .edit-coach-page, .coach-approval-page, :has(.has-notification-bell), :has(.has-account-nav), :has(.navbar-centered)) .header .logo,
    html body.ui-modern .header:is(.has-account-nav, .has-notification-bell, :has([data-notification-bell])) .logo {
        flex: 0 0 auto !important;
        z-index: 2;
    }
    html body.ui-modern:is([data-require-role="athlete"], [data-require-role="coach"], [data-require-role="organization"], .athlete-profile-page, .athlete-onboarding-page, .coach-about-page, .coach-discovery-page, .edit-coach-page, .coach-approval-page, :has(.has-notification-bell), :has(.has-account-nav), :has(.navbar-centered)) .header .navbar,
    html body.ui-modern .header:is(.has-account-nav, .has-notification-bell, :has([data-notification-bell])) .navbar,
    html body.ui-modern .header .navbar.navbar-centered {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1;
        width: max-content !important;
        height: 48px !important;
    }
    html body.ui-modern:is([data-require-role="athlete"], [data-require-role="coach"], [data-require-role="organization"], .athlete-profile-page, .athlete-onboarding-page, .coach-about-page, .coach-discovery-page, .edit-coach-page, .coach-approval-page, :has(.has-notification-bell), :has(.has-account-nav), :has(.navbar-centered)) .header .notification-bell,
    html body.ui-modern .header:is(.has-account-nav, .has-notification-bell, :has([data-notification-bell])) .notification-bell {
        margin-left: auto !important;
        z-index: 2;
    }
}
@media (max-width: 900px) {
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .monthly-limit-box { min-width: 0; max-width: none; width: 100%; }
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header {
        display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
        justify-content: flex-start !important; gap: 8px 10px !important;
    }
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header .logo { margin-right: auto !important; }
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header .nav-toggle {
        min-height: 44px; width: 44px; margin-left: 0 !important; flex-shrink: 0;
    }
    html body.ui-modern .header .navbar { order: 3; }
    html body.ui-modern .header .notification-bell { order: 1; }
    html body.ui-modern .header .nav-toggle { order: 2; }
}
@media (max-width: 600px) {
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.coach-discovery-page .page-main {
        padding: 24px 0 40px !important; gap: 20px !important; margin-top: 0 !important;
    }
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .review-status-heading { gap: 8px; }
}
@media (max-width: 420px) {
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header { padding: 12px 14px !important; }
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header .logo { font-size: 18px !important; gap: 8px; }
    html body.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern.ui-modern .header .brand-mark {
        width: 44px !important; height: 44px !important; flex-basis: 44px;
    }
}

/* Contact honeypot security trap: completely hidden from real visitors */
.contact-spam-trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* Contact dropdown custom arrow styling & alignment */
html body.ui-modern select#contact-type {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2388a396' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 16px 16px !important;
    padding-right: 48px !important;
    cursor: pointer;
}
html body.ui-modern select#contact-type:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9f23b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}
html body.ui-modern select#contact-type option {
    background-color: #0c1b15;
    color: #edf5f2;
}
html body.ui-modern select#contact-type option:disabled {
    color: #60796e;
}

/* Sleek, modern notification banner & dismiss pill */
html body.ui-modern .page-message-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}
html body.ui-modern .page-message-banner.success-banner {
    background: #0f271d !important;
    border: 1px solid rgba(201, 242, 59, 0.35) !important;
    color: #e6f7ef !important;
}
html body.ui-modern .page-message-banner.error-banner {
    background: #2a1215 !important;
    border: 1px solid rgba(248, 113, 113, 0.4) !important;
    color: #fecaca !important;
}
html body.ui-modern .page-message-banner > span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}
html body.ui-modern .page-message-dismiss {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(201, 242, 59, 0.3) !important;
    border-radius: 999px !important;
    background: rgba(201, 242, 59, 0.1) !important;
    color: #c9f23b !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-left: auto !important;
}
html body.ui-modern .page-message-dismiss::before {
    content: '✕';
    margin-right: 5px;
    font-size: 10px;
}
html body.ui-modern .page-message-dismiss:hover {
    background: #c9f23b !important;
    color: #0b1a13 !important;
    border-color: #c9f23b !important;
}
html body.ui-modern .page-message-banner.error-banner .page-message-dismiss {
    border-color: rgba(248, 113, 113, 0.35) !important;
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
}
html body.ui-modern .page-message-banner.error-banner .page-message-dismiss:hover {
    background: #f87171 !important;
    color: #1a0507 !important;
    border-color: #f87171 !important;
}

