/* Compact profile composition. Native forms and handlers are retained. */
body.profile-compact-active{--profile-ink:#173d34;--profile-muted:#667d74;--profile-line:#dde8e2;--profile-green:#087d65}
.profile-compact-active .page-header{margin-bottom:16px;align-items:center}
.profile-compact-active .page-header :is(#open-import,#add-transaction){display:none!important}
.profile-compact-active .page-header>div:has(#open-import){display:none}
#profile-view.profile-compact{width:100%;max-width:1120px;padding:0;background:transparent;border:0;box-shadow:none;min-width:0}
.profile-compact>h2{display:none}
.profile-identity{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding:0 0 20px;min-width:0}
.profile-identity-avatar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:16px;background:#e0eee6;color:#136c55;font-size:20px;font-weight:650;border:1px solid #cee1d7}
.profile-identity-copy{min-width:0}.profile-identity-name{margin:0 0 4px;font-size:18px;line-height:1.35;font-weight:650;color:var(--profile-ink)}
.profile-identity :is(#profile-email,.profile-identity-caption){margin:0;font-size:14px;line-height:1.45;color:var(--profile-muted);overflow-wrap:anywhere}
.profile-grid{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);grid-template-areas:'security interface' 'connections data';gap:16px;align-items:start}
.profile-security{grid-area:security}.profile-interface-slot{grid-area:interface;min-width:0}.profile-data{grid-area:data}.profile-connections{grid-area:connections}
.profile-compact .profile-panel{min-width:0;margin:0;padding:24px;background:#fff;border:1px solid var(--profile-line);border-radius:16px;box-shadow:0 4px 16px rgb(23 61 52/.025)}
.profile-compact .profile-section-heading{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:16px;line-height:1.4;font-weight:650;color:var(--profile-ink)}
.profile-section-heading svg{width:21px;height:21px;flex:0 0 21px;color:#3e8470}
.profile-compact svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-access-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:0 0 4px;font-size:14px}
.profile-access-label{font-weight:500;color:var(--profile-ink)}
.profile-status{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:6px;background:#f0f5f2;color:#647d70;font-size:12px;line-height:1.35;text-align:right}
.profile-status[data-tone=ready]{color:#176c50;background:#eaf4ed}
.profile-status[data-tone=ready]::before{content:'';width:5px;height:5px;background:#328461;border-radius:50%}
.profile-disclosure{min-width:0;border-top:1px solid #eaf0ec;margin:0}
.profile-disclosure>summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:68px;padding:12px 0;cursor:pointer;user-select:none;border-radius:6px}
.profile-disclosure>summary::-webkit-details-marker{display:none}
.profile-disclosure>summary:hover .profile-disclosure-title{color:var(--profile-green)}
.profile-disclosure>summary:focus-visible{outline:2px solid #3e9c80;outline-offset:4px}
.profile-disclosure-copy{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.profile-disclosure-title{font-size:14px;line-height:1.4;color:var(--profile-ink);font-weight:600}
.profile-disclosure-caption{font-size:12px;line-height:1.45;color:var(--profile-muted)}
.profile-disclosure-caption:empty{display:none}
.profile-disclosure-trail{display:inline-flex;flex:0 0 20px;align-items:center;justify-content:center;width:20px;height:20px;color:#69857a}
.profile-disclosure-trail svg{width:18px;height:18px;transition:transform 160ms ease;transform-origin:center}
.profile-disclosure[open]>summary>.profile-disclosure-trail svg{transform:rotate(180deg)}
.profile-disclosure-content{min-width:0;padding:8px 0 16px}
.profile-compact #profile-password-section>h3,.profile-compact #vk-access-profile>h3,.profile-compact #voice-bot-profile>h3{display:none}
.profile-compact :is(#vk-access-profile,#voice-bot-profile,.account-privacy){border:0;margin:0;padding:0;max-width:none}
.profile-compact :is(#vk-access-profile,#voice-bot-profile)>.muted{margin:0 0 12px;font-size:13px;line-height:1.6}
.profile-compact :is(#vk-access-profile,#voice-bot-profile)>.error-text:empty{display:none}
.profile-compact form{max-width:none}
.profile-compact label{margin:0;font-size:13px;line-height:1.4}
.profile-compact :is(input,select){max-width:100%}
.profile-compact #profile-password-form,.profile-compact #account-delete-request{display:grid;gap:16px;margin:0;max-width:460px}
.profile-compact #profile-password-form label,.profile-compact #account-delete-request label{display:grid;gap:6px;min-width:0}
.profile-compact .password-heading{min-width:0;gap:8px}
.profile-compact .password-control{margin-top:0}
.profile-compact .password-control input{min-height:42px}
.profile-compact #profile-password-form>.muted{margin:0;font-size:12px;line-height:1.5}
.profile-compact .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;line-height:1.4;white-space:normal;max-width:100%}
.profile-compact .button svg{width:17px;height:17px;flex:0 0 17px}
.profile-compact :is(#profile-password-form,#account-delete-request)>.button{justify-self:start}
.profile-compact .interface-settings{margin:0;border:1px solid var(--profile-line);padding:24px}
.profile-compact .interface-settings form{display:grid;gap:12px}
.profile-compact .interface-settings label{max-width:none;display:grid;gap:8px}
.profile-compact .interface-settings label select{width:100%;min-height:42px;margin:0}
.profile-compact .interface-settings form>.muted{font-size:12px;line-height:1.5;margin:0}
.profile-compact .interface-settings .interface-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}
.profile-compact .family-open-window{font-size:12px;line-height:1.5;min-height:32px;padding:4px 0;display:inline-flex;align-items:center;justify-content:flex-start;color:#326f5c;text-decoration:underline;text-underline-offset:3px;border:0;background:transparent;box-shadow:none;font-weight:500}
.profile-compact #interface-message{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.profile-compact #interface-message:empty{display:none}
.profile-panel-hint{margin:0;font-size:12px;line-height:1.55;color:var(--profile-muted)}
.profile-connections>.profile-panel-hint{padding-top:8px}
.profile-connections .profile-disclosure{border-top:0}
.profile-connections .profile-disclosure>summary{padding-top:0;min-height:56px}
.profile-data .profile-panel-hint{margin:0 0 16px}
.profile-export-action{display:flex;align-items:center}
.profile-data #account-data-export{font-size:13px;border-color:#cbded2;min-height:42px}
.profile-small-disclosure{border:0;margin-top:8px}
.profile-small-disclosure>summary{min-height:36px;padding:8px 0}
.profile-small-disclosure>summary .profile-disclosure-title{font-size:12px;font-weight:500;color:#567e6b}
.profile-small-disclosure .profile-disclosure-trail{width:16px;flex-basis:16px}
.profile-small-disclosure .profile-disclosure-trail svg{width:16px;height:16px}
.profile-small-disclosure .profile-disclosure-content{padding-bottom:4px;font-size:12px;line-height:1.6;color:var(--profile-muted)}
.profile-small-disclosure .profile-disclosure-content p{margin:0}
.profile-compact .profile-danger{border:1px solid var(--profile-line);border-radius:12px;background:rgb(255 255 255/.62);margin-top:16px;padding:0 24px}
.profile-danger>summary{min-height:76px;padding:16px 0}
.profile-danger>summary>svg{width:20px;height:20px;flex:0 0 20px;color:#a1776b;margin-right:4px}
.profile-danger .profile-disclosure-title{color:#915646}
.profile-danger .profile-disclosure-content{padding:4px 0 24px}
.profile-danger .account-privacy{display:block;max-width:720px}
.profile-danger .account-privacy>p.muted{font-size:13px;line-height:1.7;margin:0 0 20px}
.profile-compact #account-privacy-result{margin:16px 0 0;font-size:13px;line-height:1.5}
.profile-compact .discovery-profile{margin:16px 0 0;padding:0 4px;border:0;background:transparent}
.profile-compact .discovery-profile>summary{min-height:44px;display:flex;align-items:center;font-size:13px}
.profile-example-note{font-size:11px;line-height:1.5;margin:16px 4px 0;color:#7c8f85}
@media(max-width:1100px){.profile-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'security' 'interface' 'data' 'connections'}.profile-compact .profile-panel,.profile-compact .interface-settings{padding:20px}.profile-compact .profile-danger{padding:0 20px}.profile-identity{padding-bottom:16px}}
@media(max-width:480px){.profile-compact-active .page-header{margin-bottom:12px}.profile-compact-active .page-header h1{font-size:24px}.profile-grid{gap:12px}.profile-compact .profile-panel,.profile-compact .interface-settings{padding:18px}.profile-compact .profile-section-heading{font-size:15px;margin-bottom:12px}.profile-identity{gap:12px;margin-bottom:12px}.profile-identity-avatar{width:44px;height:44px;flex-basis:44px;border-radius:14px}.profile-identity-name{font-size:17px}.profile-identity :is(#profile-email,.profile-identity-caption){font-size:13px}.profile-disclosure>summary{min-height:64px}.profile-compact .button{min-height:44px}.profile-compact :is(input,select){font-size:16px;min-height:44px}.profile-compact #profile-password-form,.profile-compact #account-delete-request{gap:16px}.profile-compact .profile-danger{margin-top:12px;padding:0 18px}.profile-danger>summary{min-height:76px}.profile-compact .profile-danger .button{width:100%;justify-self:stretch}.profile-compact #account-data-export{width:100%}.profile-compact .interface-actions{align-items:stretch}.profile-compact #interface-save{width:100%}.profile-small-disclosure>summary{min-height:44px}.profile-example-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){.profile-disclosure-trail svg{transition:none}}
@media(max-width:480px){.profile-compact .password-control input{min-height:44px}.profile-compact .password-control :is(.password-copy,.password-reveal){min-height:44px;width:44px}.profile-compact .family-open-window{min-height:44px}}
