/* Account-only layout. Shared header markup and sizing match the home page. */
.sage-account-page .atf-main-header-in{gap:0}
.sage-account-page .atf-site-header .sage-brand,.sage-account-page .atf-footer-logo .sage-brand{filter:invert(1) hue-rotate(180deg)}
.sage-account-page .atf-site-header .atf-themes-btn:before{content:"\f358"!important}
.sage-account-page{background:#f7f8fc;color:#424c66}
.sage-account-page .native-page-heading{padding:44px 0 42px;background:#f3effb;border-bottom:1px solid #e9e3f1}
.sage-account-page .native-page-heading h1{font-size:42px;line-height:1.15;margin:12px 0 14px}
.sage-account-page .native-page-heading p{font-size:15px;line-height:1.7}
.sage-account-page .native-content{padding-top:36px;padding-bottom:64px}
.sage-account-page .native-account-layout{grid-template-columns:210px minmax(0,1fr);gap:28px}
.sage-account-page .native-account-content{min-width:0}
.sage-account-page .native-account-layout>#local-storage{grid-column:2;min-width:0;margin:0;background:#fff;border:1px solid #e5e6ee;border-radius:16px;padding:28px}
.sage-account-page .native-account-layout .native-account-nav{background:#fff;border:1px solid #e5e6ee;padding:18px 12px;box-shadow:0 4px 16px #252c4b04;top:24px}
.sage-account-page .native-account-nav a{font-weight:500;padding:12px 14px}
.sage-account-page .native-account-menu-title{padding-left:14px;letter-spacing:1.2px}
.sage-account-page .native-account-nav .sage-account-logout{padding-left:14px}
.sage-account-page .portal-top{margin:0 0 20px;padding:14px 18px;background:#eeeff7;border-radius:12px;display:flex;flex-wrap:wrap;align-items:center;font-size:14px;gap:12px}
.sage-account-page .portal-top p{margin:0;flex:1 1 240px}
.sage-account-page .native-content-block,.sage-account-page .sage-customer-summary,.sage-account-page .sage-subscription-summary,.sage-account-page .sage-profile-settings{background:#fff;border:1px solid #e5e6ee;border-radius:16px;padding:28px;margin:0 0 24px;box-shadow:0 5px 20px #252c4b03}
.sage-account-page .native-account-content h1{font-size:34px;line-height:1.2;margin:0 0 16px}
.sage-account-page .native-account-content h2{font-size:26px;line-height:1.25;margin:0 0 12px;color:#252c4b;letter-spacing:-.4px}
.sage-account-page .native-account-content h3{font-size:18px;line-height:1.4;margin:24px 0 12px;color:#252c4b;letter-spacing:0}
.sage-account-page .native-account-content p{font-size:14px;line-height:1.8;margin:0 0 16px}
.sage-account-page .native-account-content p:last-child{margin-bottom:0}
.sage-account-page .native-account-content .small{font-size:12px;line-height:1.7}
.sage-account-page .native-account-content .native-kicker{font-size:11px;margin:0 0 12px}
.sage-account-page .sage-account-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:22px 0}
.sage-account-page .sage-account-details>div{min-width:0}
.sage-account-page .sage-account-details dt{font-size:12px;font-weight:500;color:#73788c;margin-bottom:5px}
.sage-account-page .sage-account-details dd{font-size:16px;line-height:1.6;font-weight:600;color:#252c4b;margin:0;overflow-wrap:anywhere}
.sage-account-page .sage-account-section-heading{margin-bottom:20px}
.sage-account-page .sage-profile-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 22px}
.sage-account-page .sage-profile-settings>.sage-account-section-heading{grid-column:1/-1}
.sage-account-page .sage-profile-settings>.native-content-block{background:#f8f8fc;box-shadow:none;padding:22px;margin:0;align-self:start}
.sage-account-page .sage-profile-settings .native-content-block h3{margin-top:0}
.sage-account-page .native-account-content .form-field{gap:7px;margin-bottom:18px}
.sage-account-page .native-account-content label{font-size:13px;font-weight:600;line-height:1.6;color:#343a57}
.sage-account-page .native-account-content input:not([type=checkbox]):not([type=radio]),.sage-account-page .native-account-content select,.sage-account-page .native-account-content textarea{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #d9dce8;border-radius:9px;background:#fff;color:#252c4b;padding:11px 13px;font-size:14px;line-height:1.5}
.sage-account-page .native-account-content input:disabled,.sage-account-page .native-account-content select:disabled{background:#f0f1f6;color:#777d90}
.sage-account-page .native-account-content button:not(.sage-account-logout),.sage-account-page .native-account-content .atf-themes-btn,.sage-account-page .native-account-content .sage-outline-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;box-sizing:border-box;padding:11px 19px;border:1px solid #6809dc;border-radius:9px;background:#6809dc;color:#fff;font:600 13px/1.5 'Segoe UI',Arial,sans-serif;text-transform:none;letter-spacing:0;text-decoration:none;box-shadow:none;white-space:normal;text-align:center;vertical-align:middle;transition:background .15s,border-color .15s}
.sage-account-page .native-account-content button:hover:not(:disabled),.sage-account-page .native-account-content .atf-themes-btn:hover{background:#5405b6;border-color:#5405b6;color:#fff}
.sage-account-page .native-account-content button:disabled{background:#eeeff5;border-color:#dddfe8;color:#8b90a2;opacity:1;cursor:not-allowed}
.sage-account-page .native-account-content .sage-text-button,.sage-account-page .native-account-content .sage-outline-button,.sage-account-page #telegram-refresh,.sage-account-page #telegram-disconnect,.sage-account-page #groups button{background:#fff;color:#5d20b6;border-color:#d8c8ee}
.sage-account-page .native-account-content .sage-text-button:hover,.sage-account-page .native-account-content .sage-outline-button:hover,.sage-account-page #telegram-refresh:hover:not(:disabled),.sage-account-page #telegram-disconnect:hover:not(:disabled),.sage-account-page #groups button:hover{background:#f4effb;color:#4e169e;border-color:#b99cdd}
.sage-account-page .native-account-content .atf-themes-btn:before,.sage-account-page .native-account-content .atf-themes-btn:after{display:none!important}
.sage-account-page #telegram .buttons{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 24px}
.sage-account-page #telegram>label{display:flex;align-items:flex-start;gap:10px;background:#f7f4fc;border:1px solid #e8def5;border-radius:10px;padding:14px 16px;font-weight:400;margin:18px 0}
.sage-account-page #telegram input[type=checkbox]{width:18px;height:18px;margin:2px 0 0;flex:0 0 18px;accent-color:#6809dc}
.sage-account-page #telegram>h3{padding-top:24px;margin-top:24px;border-top:1px solid #ececf3}
.sage-account-page #telegram>h3:first-of-type{padding-top:4px;border-top:0;margin-top:16px}
.sage-account-page #telegram-status,.sage-account-page #sage-ai-notice{font-size:13px;color:#666d84}
.sage-account-page #telegram-pending{padding:16px;background:#f7f4fc;border-radius:10px;margin:16px 0}
.sage-account-page #telegram-pair-link a{display:inline-block;overflow-wrap:anywhere;font-weight:600;margin:8px 0}
.sage-account-page #telegram-device-code:not(:empty){padding:14px;background:#f4effb;border:1px solid #e5d7f6;border-radius:10px;margin:14px 0;overflow-wrap:anywhere}
.sage-account-page #telegram details{border-top:1px solid #ececf3;padding-top:18px;margin-top:22px}
.sage-account-page #telegram summary{cursor:pointer;color:#5d20b6;font-size:13px;font-weight:600}
.sage-account-page #telegram details[open] summary{margin-bottom:14px}
.sage-account-page #sage-ai-choice ol{padding-left:22px;margin:16px 0 22px}
.sage-account-page #sage-ai-choice li{padding-left:3px;margin-bottom:12px;font-size:14px;line-height:1.8}
.sage-account-page #sage-ai-form{max-width:520px;margin:20px 0}
.sage-account-page #sage-ai-notice{margin-top:12px}
.sage-account-page #groups .sage-connection-row{padding:18px 0}
.sage-account-page #groups .sage-connection-row p{margin-bottom:8px}
.sage-account-page #groups .sage-connection-types{font-size:12px;color:#73788c}
.sage-account-page #groups .sage-connection-row p:nth-child(2){font-weight:600;color:#343a57}
.sage-account-page .native-account-content .sage-quick-links{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}
.sage-account-page .sage-quick-links a{padding:9px 15px;background:#fff;border:1px solid #e0d7ef;border-radius:24px;font-size:13px;font-weight:600;color:#5d20b6;text-decoration:none}
.sage-account-page .sage-quick-links a:hover{background:#f4effb}
.sage-account-page .native-account-content section{scroll-margin-top:24px}
.sage-account-page .native-account-content [hidden]{display:none!important}
@media(max-width:991px){.sage-account-page .native-account-layout{grid-template-columns:180px minmax(0,1fr);gap:20px}.sage-account-page .sage-profile-settings{grid-template-columns:1fr;gap:18px}.sage-account-page .native-content-block,.sage-account-page .sage-customer-summary,.sage-account-page .sage-subscription-summary,.sage-account-page .sage-profile-settings{padding:22px}}
@media(max-width:767px){.sage-account-page .native-page-heading{padding:32px 0}.sage-account-page .native-page-heading h1{font-size:32px}.sage-account-page .native-account-layout{grid-template-columns:1fr;gap:22px}.sage-account-page .native-account-layout>#local-storage{grid-column:1;padding:22px}.sage-account-page .native-account-layout .native-account-nav{position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;padding:12px}.sage-account-page .native-account-menu-title{width:100%;padding:4px 10px}.sage-account-page .native-account-nav a{padding:10px;font-size:12px}.sage-account-page .native-account-nav .sage-account-logout{width:auto;border:0;margin:0;padding:10px;font-size:12px}.sage-account-page .native-account-content h2{font-size:23px}.sage-account-page .sage-account-details{grid-template-columns:1fr;gap:16px}.sage-account-page #telegram .buttons{flex-direction:column}.sage-account-page #telegram .buttons button{width:100%}.sage-account-page .native-account-content .atf-themes-btn{width:100%}.sage-account-page .portal-top{padding:14px}.sage-account-page .portal-top p{flex-basis:100%}}

/* Short, plain-language account setup steps. */
.sage-account-page #telegram .sage-setup-steps{padding-left:22px;margin:10px 0 16px}
.sage-account-page #telegram .sage-setup-steps li{padding-left:3px;margin:0 0 8px;font-size:14px;line-height:1.75}
.sage-account-page #telegram>h3{padding-top:18px;margin-top:18px}
.sage-account-page #telegram .buttons{margin:14px 0 18px}

.sage-account-page .sage-manual-setup{border-top:1px solid #ececf3;padding-top:16px;margin:20px 0}
.sage-account-page .sage-manual-setup summary{cursor:pointer;color:#5d20b6;font-size:13px;font-weight:600}
.sage-account-page .sage-manual-setup[open] summary{margin-bottom:12px}

/* AI, business connections and Telegram share one setup card. */
/* Folder tabs: the selected tab joins the white content panel. */
.sage-account-page .sage-setup-tabs{display:flex;align-items:stretch;gap:6px;padding:0;margin:22px 0 0;background:transparent;border:0;border-radius:0}
.sage-account-page .native-account-content .sage-setup-tabs [role=tab]{flex:1;min-width:0;min-height:52px;padding:13px 18px;border:1px solid #76668f;border-bottom:0;border-radius:6px 6px 0 0;background:#51456e;color:#f3eefb;font-size:14px;font-weight:600;box-shadow:none;position:relative;margin-bottom:0}
.sage-account-page .native-account-content .sage-setup-tabs [role=tab][aria-selected=true]{background:#fff;color:#5d20b6;border-color:#d8cfea;box-shadow:none;z-index:1}
.sage-account-page .native-account-content .sage-setup-tabs [role=tab]:hover{background:#665581;border-color:#8a77a7;color:#fff}
.sage-account-page .native-account-content .sage-setup-tabs [role=tab][aria-selected=true]:hover{background:#fff;border-color:#d8cfea;color:#5d20b6}
.sage-account-page .native-account-content .sage-setup-tabs [role=tab]:focus-visible{outline:3px solid #bb9cff;outline-offset:-5px}
.sage-account-page .native-account-content .sage-setup-card>.sage-setup-panel{border:1px solid #d8cfea;border-top:0;border-radius:0 0 10px 10px;box-shadow:none;padding:26px;margin:0;background:#fff;outline-offset:6px}
.sage-account-page .sage-setup-card>.sage-setup-panel>h2{font-size:22px;margin-bottom:12px}
.sage-account-page .sage-setup-card>#sage-ai-choice{margin-top:0}
.sage-account-page .sage-setup-panel[hidden]{display:none!important}
@media(max-width:767px){.sage-account-page .sage-setup-tabs{gap:4px;padding:0;margin:18px 0 0}.sage-account-page .native-account-content .sage-setup-tabs [role=tab]{padding:12px 5px;font-size:12px;min-height:48px}.sage-account-page .native-account-content .sage-setup-card>.sage-setup-panel{padding:20px 16px}.sage-account-page .sage-setup-card>.sage-setup-panel>h2{font-size:21px}}

.sage-account-page .sage-connections-footer{margin-top:24px;padding-top:16px;border-top:1px solid #e7e1ef;background:transparent}
.sage-account-page .sage-connections-footer p{margin:0;font-size:12px;color:#73788c;line-height:1.7}

/* Account controls stay hidden until the live website session is verified. */
.sage-account-page #app[hidden],.sage-account-page #account-loading[hidden]{display:none!important}
