/* Self settings presentation only; native fields, tabs and actions stay in app.js. */
@media (min-width: 721px) {
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal {
    padding: 16px;
    overflow: auto;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .profile-card--self {
    --self-unit: calc(100cqw / 1380);
    --self-frame-clip: polygon(9.4203% 7.5439%, 90.4348% 7.5439%, 94.5652% 12.5439%, 94.5652% 89.9123%, 90.4348% 94.7368%, 9.4203% 94.7368%, 5.4348% 89.9123%, 5.4348% 12.5439%);
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    flex: 0 0 auto;
    display: block;
    width: min(1120px, calc(100vw - 32px), calc((100dvh - 32px) * 1380 / 1140));
    aspect-ratio: 1380 / 1140;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    clip-path: var(--self-frame-clip);
    font-family: Arial, sans-serif;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .profile-card--self::before,
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .profile-card--self::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: center / 100% 100% no-repeat;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .profile-card--self::before {
    z-index: -2;
    background-image: linear-gradient(180deg, #00051b80 12%, #00051b90 30%, transparent 37%, transparent 59%, #00051b66 67%, #00051bc7 78%, #00051b80 92%, #00051b40), url("assets/self-profile/space-background.png");
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .profile-card--self::after { z-index: -1; background-image: url("assets/self-profile/frame.svg"); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-title {
    position: absolute;
    z-index: 1;
    top: calc(var(--self-unit) * 143);
    left: calc(var(--self-unit) * 334);
    width: calc(var(--self-unit) * 712);
    margin: 0;
    color: #e2f7ff;
    font: 700 calc(var(--self-unit) * 50)/1.1 Arial, sans-serif;
    text-transform: uppercase;
    text-align: center;
    text-shadow: -3px 0 9px #00bfff88, 3px 0 9px #e433ff88;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-title::before,
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-title::after {
    content: "";
    position: absolute;
    top: 48%;
    left: 0;
    width: calc(var(--self-unit) * 197);
    height: calc(var(--self-unit) * 10);
    background: radial-gradient(circle at calc(100% - var(--self-unit) * 5) center, #00dfff 0 calc(var(--self-unit) * 4.5), transparent calc(var(--self-unit) * 5)), linear-gradient(90deg, transparent, #d33dff) left center / 88% 1px no-repeat;
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-title::after { left: auto; right: 0; transform: scaleX(-1); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-close {
    position: absolute;
    z-index: 3;
    top: calc(var(--self-unit) * 130);
    right: calc(var(--self-unit) * 123);
    width: max(32px, calc(var(--self-unit) * 68));
    height: max(32px, calc(var(--self-unit) * 68));
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 0;
    border: 2px solid #f07aff;
    border-radius: 50%;
    --self-button-fill: radial-gradient(circle at 50% 35%, #420848, #140521);
    background: var(--self-button-fill);
    box-shadow: inset 0 0 8px #e041f955, 0 0 8px #e32fff88;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-close::before,
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-close::after {
    content: "";
    position: absolute;
    width: 51%;
    height: max(2px, calc(var(--self-unit) * 4));
    border-radius: 2px;
    background: #fff0ff;
    transform: rotate(45deg);
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-close::after { transform: rotate(-45deg); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-tabs {
    position: absolute;
    z-index: 1;
    top: calc(var(--self-unit) * 211);
    left: calc(var(--self-unit) * 176);
    width: calc(var(--self-unit) * 1036);
    display: grid;
    grid-template-columns: 332fr 339fr 338fr;
    gap: calc(var(--self-unit) * 10) calc(var(--self-unit) * 14);
    margin: 0;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-tab {
    position: relative;
    height: calc(var(--self-unit) * 66);
    padding: 0 calc(var(--self-unit) * 14) 0 calc(var(--self-unit) * 96);
    border: max(1px, calc(var(--self-unit) * 1.7)) solid #9187ff;
    border-radius: calc(var(--self-unit) * 23);
    --self-button-fill: radial-gradient(ellipse at top, #16437644, transparent 75%), linear-gradient(#010a22d9, #010a22d9);
    background: var(--self-button-fill);
    box-shadow: inset 0 0 9px #4b7fd52b;
    color: #b9b6f5;
    font: 600 calc(var(--self-unit) * 28)/1.1 Arial, sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-tab:nth-child(n+4) { border-color: #c76aff; }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-tab::before {
    content: "";
    position: absolute;
    left: calc(var(--self-unit) * 60);
    top: 50%;
    width: calc(var(--self-unit) * 40);
    height: calc(var(--self-unit) * 40);
    transform: translateY(-50%);
    background: currentColor;
    mask: var(--self-tab-icon) center / contain no-repeat;
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-tab="main"] { --self-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='11' r='8' fill='white'/%3E%3Cpath d='M5 38v-5c0-10 6-14 15-14s15 4 15 14v5z' fill='white'/%3E%3C/svg%3E"); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-tab="appearance"] { --self-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3C9 3 3 11 3 21c0 10 8 16 16 16 6 0 7-4 4-7-3-4 0-7 4-6 10 2 13-6 8-13C32 6 26 3 20 3z' fill='none' stroke='white' stroke-width='3'/%3E%3Cg fill='white'%3E%3Ccircle cx='12' cy='15' r='2'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3Ccircle cx='28' cy='14' r='2'/%3E%3Ccircle cx='9' cy='23' r='2'/%3E%3C/g%3E%3C/svg%3E"); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-tab="security"] { --self-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='m20 3 14 5v12c0 9-7 14-14 18C13 34 6 29 6 20V8z' fill='none' stroke='white' stroke-width='3.4'/%3E%3Cpath d='m13 19 5 5 10-11' fill='none' stroke='white' stroke-width='3.4'/%3E%3C/svg%3E"); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-tab="dialogs"] { --self-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 5h25v22H15l-8 7v-7H5zM34 13h3v23l-7-5H20' fill='none' stroke='white' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-tab="chats"] { --self-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='white'%3E%3Ccircle cx='20' cy='10' r='8'/%3E%3Cpath d='M9 37V30c0-8 4-12 11-12s11 4 11 12v7z'/%3E%3Ccircle cx='6' cy='20' r='5'/%3E%3Ccircle cx='34' cy='20' r='5'/%3E%3Cpath d='M0 37v-7c0-5 4-6 7-6l-2 13zM40 37v-7c0-5-4-6-7-6l2 13z'/%3E%3C/g%3E%3C/svg%3E"); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-tab="contacts"] { --self-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='5' y='5' width='30' height='31' rx='5' fill='none' stroke='white' stroke-width='3.5'/%3E%3Ccircle cx='17' cy='16' r='4' fill='white'/%3E%3Cpath d='M10 29c0-8 14-8 14 0z' fill='white'/%3E%3Cpath d='M27 15h3m-3 5h3' stroke='white' stroke-width='3'/%3E%3C/svg%3E"); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-tab.is-active {
    color: #edfbff;
    border-color: #72eaff;
    --self-button-fill: linear-gradient(105deg, #006bb2c4, #003ba5b8 70%, #005e97cc);
    background: var(--self-button-fill);
    box-shadow: inset 0 0 calc(var(--self-unit) * 19) #00a4ffbb, 0 0 calc(var(--self-unit) * 14) #008dff99;
    text-shadow: 0 0 7px #107cfe88;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-tab.is-active::before { background: #20eaff; }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-scroll {
    position: absolute;
    z-index: 1;
    top: calc(var(--self-unit) * 357);
    left: calc(var(--self-unit) * 148);
    width: calc(var(--self-unit) * 1084);
    height: calc(var(--self-unit) * 515);
    padding: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6876b8 #020a23;
    overscroll-behavior: contain;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-section="main"] { position: relative; min-height: calc(var(--self-unit) * 510); padding: 0; }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-section="main"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(var(--self-unit) * 336);
    height: calc(var(--self-unit) * 336);
    transform: translateX(-50%);
    background: url("assets/profile/avatar-orbit.svg") center / contain no-repeat;
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-avatar-preview {
    position: absolute;
    top: calc(var(--self-unit) * 36);
    left: 50%;
    width: calc(var(--self-unit) * 264);
    height: calc(var(--self-unit) * 264);
    border: 0;
    margin: 0;
    border-radius: 50%;
    box-shadow: none;
    filter: none;
    object-fit: cover;
    mix-blend-mode: normal;
    transform: translateX(-50%);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-upload-label {
    position: absolute;
    top: calc(var(--self-unit) * 320);
    left: 50%;
    width: calc(var(--self-unit) * 452);
    height: calc(var(--self-unit) * 80);
    min-width: 0;
    margin: 0;
    padding: 0 0 0 calc(var(--self-unit) * 94);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4f4ff;
    font: 700 calc(var(--self-unit) * 34)/1.1 Arial, sans-serif;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateX(-50%);
    cursor: pointer;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-upload-label::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: calc(var(--self-unit) * -5);
    pointer-events: none;
    filter: drop-shadow(0 0 calc(var(--self-unit) * 7) #146aff99);
    --self-upload-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 462 90'%3E%3Cdefs%3E%3ClinearGradient id='f'%3E%3Cstop stop-color='%23008ddd'/%3E%3Cstop offset='.5' stop-color='%23003bd1'/%3E%3Cstop offset='1' stop-color='%239800dd'/%3E%3C/linearGradient%3E%3ClinearGradient id='e'%3E%3Cstop stop-color='%2300eaff'/%3E%3Cstop offset='.55' stop-color='%236d89ff'/%3E%3Cstop offset='1' stop-color='%23ff9fff'/%3E%3C/linearGradient%3E%3Cfilter id='g' x='-.2' y='-.5' width='1.4' height='2'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M30 5h402l25 22v36l-25 22H30L5 63V27Z' stroke='url(%23e)' stroke-width='7' filter='url(%23g)' opacity='.7'/%3E%3Cpath d='M30 5h402l25 22v36l-25 22H30L5 63V27Z' fill='url(%23f)' stroke='url(%23e)' stroke-width='2'/%3E%3Cpath d='M32 9h398l23 20v32l-23 20H32L9 61V29Z' fill='none' stroke='url(%23e)' stroke-width='1.5'/%3E%3C/svg%3E");
    background: var(--self-upload-art) center / 100% 100% no-repeat;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-upload-label::before {
    content: "";
    position: absolute;
    left: calc(var(--self-unit) * 76);
    top: 50%;
    width: calc(var(--self-unit) * 53);
    height: calc(var(--self-unit) * 47);
    transform: translateY(-50%);
    background: #c4faff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 48'%3E%3Cpath d='M6 12h9l4-7h16l4 7h9v30H6z' fill='none' stroke='white' stroke-width='3.5' stroke-linejoin='round'/%3E%3Ccircle cx='27' cy='26' r='10' fill='none' stroke='white' stroke-width='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-section="main"] .self-profile-field {
    position: absolute;
    top: calc(var(--self-unit) * 398);
    left: 0;
    width: 100%;
    margin: 0;
    gap: calc(var(--self-unit) * 3);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal [data-self-profile-section="main"] .self-profile-field > span {
    color: #b4c8ef;
    font: 400 calc(var(--self-unit) * 30)/1.1 Arial, sans-serif;
    letter-spacing: 0;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-login {
    height: calc(var(--self-unit) * 76);
    padding: 0 calc(var(--self-unit) * 32);
    border: max(1px, calc(var(--self-unit) * 1.5)) solid #8acbff;
    border-radius: calc(var(--self-unit) * 20);
    color: #f6f5ff;
    background: #03132cf5;
    box-shadow: inset 0 0 calc(var(--self-unit) * 10) #15466b44;
    font: 400 calc(var(--self-unit) * 34)/1 Arial, sans-serif;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-footer-actions {
    position: absolute;
    z-index: 1;
    top: calc(var(--self-unit) * 924);
    left: calc(var(--self-unit) * 148);
    width: calc(var(--self-unit) * 1084);
    height: calc(var(--self-unit) * 104);
    display: flex;
    justify-content: center;
    gap: calc(var(--self-unit) * 14);
    padding: 0;
    border: 0;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-footer-actions::before {
    content: "";
    position: absolute;
    top: calc(var(--self-unit) * -39);
    left: 0;
    width: 100%;
    height: calc(var(--self-unit) * 20);
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1084 20'%3E%3Cdefs%3E%3ClinearGradient id='d'%3E%3Cstop stop-color='%2300dcff'/%3E%3Cstop offset='1' stop-color='%23f035ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 10h426m18 6h10l10-10h150l10 10h10m14-6h420' stroke='url(%23d)' fill='none'/%3E%3Cpath d='M496 6h64' stroke='%23ee4bff' stroke-width='3'/%3E%3Cg fill='url(%23d)'%3E%3Ccircle cx='8' cy='10' r='4'/%3E%3Ccircle cx='434' cy='10' r='4'/%3E%3Ccircle cx='648' cy='10' r='4'/%3E%3Ccircle cx='1076' cy='10' r='4'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-footer-actions > .profile-action {
    --self-button-scale: 1;
    --self-button-cut: calc(var(--self-unit) * 30 * var(--self-button-scale));
    position: relative;
    flex: 1 1 0;
    max-width: calc(var(--self-unit) * 756);
    height: 100%;
    padding: 0 calc(var(--self-unit) * 18);
    border: 0;
    border-radius: 0;
    color: #f9f4ff;
    --self-button-fill: radial-gradient(ellipse at 18% 0, #00eaffb3, transparent 58%), radial-gradient(ellipse at 90% 100%, #fb00ff8c, transparent 65%), linear-gradient(105deg, #007bdd, #083eff 45%, #6600ed 70%, #db00f7);
    background: var(--self-button-fill);
    font: 700 calc(var(--self-unit) * 40)/1.1 Arial, sans-serif;
    clip-path: polygon(var(--self-button-cut) 0, calc(100% - var(--self-button-cut)) 0, 100% var(--self-button-cut), 100% calc(100% - var(--self-button-cut)), calc(100% - var(--self-button-cut)) 100%, var(--self-button-cut) 100%, 0 calc(100% - var(--self-button-cut)), 0 var(--self-button-cut));
    box-shadow: inset 0 0 calc(var(--self-unit) * 18) #c4a4ffc7, inset 0 calc(var(--self-unit) * 6) calc(var(--self-unit) * 7) #c5ecff70;
    text-shadow: 0 0 7px #445cff88;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-footer-actions:not(.is-single) > .profile-action { font-size: max(14px, calc(var(--self-unit) * 27)); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-footer-actions.is-single > #self-profile-save {
    --self-button-scale: .88;
    flex: 0 1 calc(var(--self-unit) * 665.28);
    max-width: calc(var(--self-unit) * 665.28);
    height: 88%;
    align-self: center;
    font-size: calc(var(--self-unit) * 35.2);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-footer-actions > .profile-action::before {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    background: none;
    border: calc(var(--self-unit) * 32 * var(--self-button-scale)) solid transparent;
    border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='756' height='104' viewBox='0 0 756 104'%3E%3Cdefs%3E%3ClinearGradient id='e'%3E%3Cstop stop-color='%23a1ffff'/%3E%3Cstop offset='.2' stop-color='%2319daff'/%3E%3Cstop offset='.62' stop-color='%23aaa8ff'/%3E%3Cstop offset='1' stop-color='%23ffe6ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23e)' stroke-linejoin='round'%3E%3Cpath d='M31 2h694l29 29v42l-29 29H31L2 73V31Z' stroke-width='2.5'/%3E%3Cpath d='M34 8h688l26 26v36l-26 26H34L8 70V34Z' stroke-width='2.7'/%3E%3Cpath d='M36 12h684l24 24v32l-24 24H36L12 68V36Z' stroke-width='1.3'/%3E%3Cpath d='M12 37v30m732-30v30' stroke-width='4.5'/%3E%3C/g%3E%3C/svg%3E");
    border-image-slice: 32;
    border-image-width: 1;
    border-image-repeat: stretch;
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    clip-path: var(--self-frame-clip);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal :is(button, .self-profile-upload-label, #self-profile-avatar-preview) { transition: transform .2s cubic-bezier(.22, 1, .36, 1), filter .2s ease, box-shadow .2s ease; }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.2); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal button:active:not(:disabled) { transform: scale(.98); filter: brightness(1.35); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-upload-label:hover { transform: translateX(-50%) scale(1.02); filter: brightness(1.2); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal .self-profile-upload-label:active { transform: translateX(-50%) scale(.98); filter: brightness(1.35); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-avatar-preview:hover { transform: translateX(-50%) scale(1.025); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal #self-profile-avatar-preview:active { transform: translateX(-50%) scale(.975); }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal :is(button, input, .self-profile-upload-label):focus-visible { outline: 2px solid #d8ffff; outline-offset: -4px; }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal :is(.self-profile-scroll, #self-profile-footer-actions, .profile-action).hidden { display: none; }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal button:disabled { opacity: .55; filter: none; transform: none; cursor: not-allowed; }
  #self-profile-modal[data-self-profile-motion="running"] :is(.self-profile-tab, .self-profile-upload-label, #self-profile-save, #self-profile-close) { animation: self-profile-breathe 4.4s ease-in-out infinite; }
  #self-profile-modal[data-self-profile-motion="running"] .self-profile-tab:nth-child(even) { animation-delay: -2.2s; }
  #self-profile-modal[data-self-profile-motion="running"] :is(.self-profile-tab, .self-profile-upload-label, #self-profile-save, #self-profile-close):is(:hover, :active, :focus-visible, :disabled) { animation: none; }
  #self-profile-modal[data-self-profile-motion="running"] [data-self-profile-section="main"]::before { animation: self-profile-orbit 6.8s ease-in-out infinite; }
  /* A moving surface reflection, independent of text/position feedback. */
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal {
    --self-hover-gloss: linear-gradient(110deg, transparent 35%, #b2f8ff0a 43%, #ffffff55 50%, #e6adff1a 56%, transparent 65%);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal[data-self-profile-motion="running"] :is(button, #self-profile-save, #self-profile-reset-settings, #self-profile-admin-panel, #self-profile-close):is(:hover, :focus-visible):not(:disabled) {
    background-image: var(--self-hover-gloss), var(--self-button-fill, linear-gradient(transparent, transparent));
    background-size: 220% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    animation: self-profile-control-sweep 1.3s ease-in-out infinite;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal[data-self-profile-motion="running"] .self-profile-upload-label:is(:hover, :focus-within)::after {
    background-image: var(--self-hover-gloss), var(--self-upload-art);
    background-size: 220% 100%, 100% 100%;
    background-repeat: no-repeat;
    mask: var(--self-upload-art) center / 100% 100% no-repeat;
    animation: self-profile-control-sweep 1.3s ease-in-out infinite;
  }
}
@keyframes self-profile-control-sweep {
  from { background-position: 120% 0, 0 0, 0 0, 0 0; }
  to { background-position: -20% 0, 0 0, 0 0, 0 0; }
}
@keyframes self-profile-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14); } }
@keyframes self-profile-orbit { 0%, 100% { opacity: .86; transform: translateX(-50%) rotate(-1deg); } 50% { opacity: 1; transform: translateX(-50%) rotate(1deg); } }
@media (min-width: 721px) and (prefers-reduced-motion: reduce) {
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal *,
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal *::before,
  body:has(#message-form[data-composer-theme="neon-space"]) #self-profile-modal *::after { animation: none !important; transition: none !important; }
}
