/* Profile 0.9.240: same warm canvas, quiet white cards and sage accents as Home. */
#moplano-app .profile-space{display:grid;gap:18px;padding-bottom:8px;min-width:0}
#moplano-app .profile-space .profile-home-heading{margin-bottom:0!important}
#moplano-app .profile-space .card{padding:0!important;border:0!important;border-radius:20px!important;box-shadow:none!important;overflow:hidden}
#moplano-app .profile-space-group{display:grid;gap:8px;min-width:0}
#moplano-app .profile-space-group>h2{margin:0 16px!important;color:#7e7b73!important;font-size:12px!important;font-weight:500!important;line-height:1.4!important;letter-spacing:.01em}
#moplano-app .profile-space :where(.profile-person,.profile-subscription,.profile-menu-row){appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;background:transparent;color:#262723;font:inherit;text-align:left;box-shadow:none;outline:none;-webkit-tap-highlight-color:transparent}
#moplano-app .profile-person{display:grid;grid-template-columns:48px minmax(0,1fr) 16px;align-items:center;gap:12px;min-height:88px;padding:18px 16px}
#moplano-app .profile-person .profile-identity-copy{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
#moplano-app .profile-person .profile-identity-copy b{font-size:19px;font-weight:600}
#moplano-app .profile-subscription{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) 16px;gap:12px;align-items:center;min-height:56px;padding:10px 16px;font-size:13px}
#moplano-app .profile-subscription::before{content:'';height:1px;position:absolute;top:0;left:16px;right:16px;background:#eeece7}
#moplano-app .profile-pro-badge{display:inline-flex;align-items:center;justify-content:center;background:#303d33;color:#fcfcf8;height:28px;min-width:44px;border-radius:9px;font-size:11px;letter-spacing:.14em;font-weight:550}
#moplano-app .profile-space .profile-menu-card{display:block}
#moplano-app .profile-space .profile-menu-row{position:relative;display:flex!important;align-items:center;gap:12px;min-height:64px!important;padding:12px 16px!important}
#moplano-app .profile-space .profile-menu-row::after{content:none!important}
#moplano-app .profile-space .profile-menu-row+.profile-menu-row::before{content:'';position:absolute;left:60px;right:16px;top:0;height:1px;background:#eeece7}
#moplano-app .profile-space .profile-menu-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#f1f4ef;color:#7d8979}
#moplano-app .profile-space .profile-menu-icon svg{width:21px;height:21px}
#moplano-app .profile-space .profile-menu-copy{flex:1;min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}
#moplano-app .profile-space .profile-menu-copy b{font-size:15px!important;line-height:1.3;font-weight:550!important}
#moplano-app .profile-space .profile-menu-copy small{font-size:12px!important;line-height:1.35;color:#817e76!important}
#moplano-app .profile-space .profile-menu-value{font-size:11px;color:#8a877f;flex-shrink:0;white-space:nowrap}
#moplano-app .profile-space .profile-menu-chevron{width:16px;flex:0 0 16px;color:#a7a69e;font-size:20px}
#moplano-app .profile-space button:active{background:#f6f7f3}
#moplano-app .profile-space button:focus-visible{outline:2px solid #536c57;outline-offset:-3px}
/* The install result changes only the row caption, never the surrounding page. */
#moplano-app .profile-space .profile-home-screen .profile-menu-copy small{min-height:2.7em;display:flex;align-items:center}
#moplano-app .profile-space .profile-home-screen .profile-menu-chevron svg{display:block;width:16px;height:16px}
#moplano-app .profile-space .profile-home-screen[aria-disabled=true]{cursor:default}
#moplano-app .profile-space .profile-home-screen[aria-disabled=true]:active{background:transparent}
/* All content stays on its own scroller. No lateral swipe or underlying page reflow. */
#moplano-app .profile-space-screen{opacity:1;pointer-events:auto;transition:none!important;z-index:190}
#moplano-app .profile-space-screen .profile-detail-panel{transform:none}
/* Reserve the standalone desktop's 48px wordmark header. The priority is needed
   only here to override profile-pages.css's legacy top:0!important. */
@media(min-width:1024px){
  html:not(.telegram-webapp) #moplano-app .profile-space-screen[data-section="methods"]{top:max(var(--profile-detail-top,0px),48px)!important}
}
#moplano-app .profile-space-screen .profile-detail-scroll{gap:12px!important;padding-top:16px!important;scrollbar-gutter:stable;overflow-anchor:none}
#moplano-app .profile-space-screen .card{padding:16px!important;box-shadow:none!important;border:0!important;background:#fff!important}
#moplano-app .profile-space-screen .profile-section-intro{padding:0 4px!important}
#moplano-app .profile-space-screen .profile-section-intro p{margin:0;color:#817e76;font-size:13px;line-height:1.5}
#moplano-app .profile-space-screen :is(button,select,input){-webkit-tap-highlight-color:transparent}
#moplano-app .profile-space-screen button:focus:not(:focus-visible){outline:none!important}
#moplano-app .profile-space-screen .settings-form input:disabled{opacity:.45}
#moplano-app .profile-settings-facts>div{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;font-size:13px}
#moplano-app .profile-settings-facts>div+div{border-top:1px solid #eeece7}
#moplano-app .profile-settings-facts span{color:#817e76}
#moplano-app .profile-settings-facts b{font-weight:500;text-align:right}
#moplano-app .account-methods{padding:16px}
#moplano-app .account-methods .account-method-value{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:0 12px;min-width:0}
#moplano-app .account-methods .account-method-value b{color:#555b50}
#moplano-app .account-methods-status{margin:16px 0 0;color:#57594e;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#moplano-app .account-methods-status:empty{display:none}
#moplano-app .account-methods-actions{display:flex;flex-wrap:wrap;gap:8px}
#moplano-app .account-methods>.account-methods-actions:has(button:not([hidden])){margin-top:12px}
#moplano-app .account-methods button{min-height:44px;max-width:100%;white-space:normal}
#moplano-app .account-methods [hidden]{display:none!important}
#moplano-app .account-methods button:disabled{opacity:.55}
#moplano-app .account-methods :is(button,input):focus-visible{outline:2px solid #536c57;outline-offset:2px}
#moplano-app .account-link-form{display:grid;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #eeece7;min-width:0;max-width:30rem}
#moplano-app .account-link-form fieldset{display:grid;gap:8px;margin:0;padding:0;min-width:0;border:0}
#moplano-app .account-link-form label{font-size:14px;font-weight:550;color:#34372f}
#moplano-app .account-link-form label:not(:first-child){margin-top:4px}
#moplano-app .account-link-form input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #c6ccc2;border-radius:12px;background:#fcfcf9;color:#262723;font:inherit;font-size:16px}
#moplano-app .account-link-note{margin:0;color:#57594e;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#moplano-app .account-link-submit{padding:10px 14px;border:0;border-radius:12px;background:#415a45;color:#fff;font:inherit;font-size:14px;font-weight:550}
#moplano-app .account-link-form .profile-inline-action{width:auto;padding-inline:8px}
#moplano-app .profile-inline-error{padding:12px 16px;margin:0;color:#9d5147;background:#f9efeb;border-radius:14px;font-size:13px;line-height:1.5}
#moplano-app .profile-progress-controls{display:grid;gap:8px}
#moplano-app :is(.profile-segments,.profile-periods){display:flex;gap:4px;background:#eeede7;padding:3px;border-radius:13px}
#moplano-app :is(.profile-segments,.profile-periods) button{appearance:none;-webkit-appearance:none;flex:1;min-width:0;min-height:44px;border:0;background:transparent;color:#817e76;border-radius:10px;font:inherit;font-size:13px;box-shadow:none}
#moplano-app :is(.profile-segments,.profile-periods) button[aria-pressed=true]{background:white;color:#536c57}
#moplano-app .profile-periods{background:transparent;padding:0}
#moplano-app .profile-periods button{min-height:44px}
#moplano-app .profile-progress-controls .period-browse-row{margin:0}
#moplano-app .profile-progress-status{min-height:18px;margin:0;text-align:center;font-size:11px;line-height:18px;color:#817e76}
#moplano-app .profile-progress-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
#moplano-app .profile-progress-metrics>div{display:grid;gap:6px;align-content:start}
#moplano-app .profile-progress-metrics span{font-size:12px;color:#817e76}
#moplano-app .profile-progress-metrics b{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#moplano-app .profile-progress-metrics small{font-size:11px;color:#817e76;line-height:1.4}
#moplano-app .profile-progress-caption{font-size:11px!important;color:#817e76;line-height:1.4;margin:16px 0 0}
#moplano-app .profile-progress-money>div{min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;border-bottom:1px solid #eeece7}
#moplano-app .profile-progress-money>div:last-child{border:0}
#moplano-app .profile-progress-money span{color:#817e76}
#moplano-app .profile-progress-money b{text-align:right;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
#moplano-app .profile-help-list details+details{border-top:1px solid #eeece7}
#moplano-app .profile-help-list summary{padding:14px 0;min-height:44px;box-sizing:border-box;font-size:14px;font-weight:550;cursor:pointer}
#moplano-app .profile-help-list p{font-size:13px;color:#817e76;line-height:1.55;margin:0 0 16px}
#moplano-app .profile-support-link{display:block;min-height:44px;padding:12px 0;box-sizing:border-box;font-size:14px;color:#536c57;text-decoration:none}
#moplano-app .profile-space-about .profile-wordmark{font-size:30px;letter-spacing:.025em;font-weight:400;line-height:1.3;color:#293c32;margin-top:12px}
#moplano-app .profile-space-about .profile-tagline{font-size:14px!important;margin:6px 0 24px;color:#817e76}
@media(max-width:359px){#moplano-app .profile-space .profile-menu-row{gap:10px;padding-inline:12px!important}#moplano-app .profile-space .profile-menu-copy b{font-size:14px!important}#moplano-app .profile-progress-money{font-size:12px}#moplano-app .profile-progress-metrics b{font-size:21px}}
@media(prefers-reduced-motion:reduce){#moplano-app .profile-space-screen,#moplano-app .profile-space-screen *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#moplano-app .profile-space-screen .moplano-pro-brand{gap:8px;font-size:14px;letter-spacing:.04em}
#moplano-app .profile-space-screen .moplano-pro-brand b{display:inline-grid;place-items:center;height:28px;min-width:44px;background:#303d33;color:#fcfcf8;border-radius:9px;font-size:11px;letter-spacing:.14em;font-weight:550}
#moplano-app .profile-space-screen .moplano-pro-hero h2{margin:16px 0 8px;font-size:22px!important;line-height:1.25!important}
#moplano-app .profile-space-screen .moplano-pro-hero p{font-size:13px;line-height:1.5}
#moplano-app .app-shell.profile-detail-active .bottom-nav{display:grid!important;visibility:hidden;pointer-events:none}
