/* ZiorTechEarn 7.3.3.6 — unified readable presentation. */
:root{--zte160-title:var(--zte159-title-color,#fff);--zte160-ink:#10213a;--zte160-muted:#607086;--zte160-line:#dbe4ef;--zte160-card:#fff;--zte160-heading-bg:linear-gradient(125deg,var(--zte150-nav,#07192e),var(--zte150-nav-2,#0c376c) 72%,var(--zte150-primary,#2167f3) 150%)}

/* Every ZiorTechEarn semantic heading uses the user's Title Color.
 * wp-admin is scoped to ZiorTechEarn pages only; portal/advisor selectors are
 * likewise isolated so third-party WordPress screens are never touched.
 * The controlled colored surface guarantees that the #FFFFFF default is
 * readable even where a legacy screen previously placed a heading on white. */
body.zte160-plugin-admin #wpbody-content :is(h1,h2,h3,h4,h5,h6),
.zte150-portal .zte150-main :is(h1,h2,h3,h4,h5,h6),
.acrm-layout .acrm-page-content :is(h1,h2,h3,h4,h5,h6){box-sizing:border-box;color:#fff!important;background:var(--zte160-heading-bg);padding:8px 12px;border-radius:9px;text-shadow:0 1px 2px rgba(0,0,0,.22);line-height:1.28}

/* Existing colored surfaces never inherit a dark WordPress heading color. */
:is(.zte150-portal,.acrm-layout,body.zte160-plugin-admin) :is(.zte150-hero,.cp-admin-hero,.cp140-hero,.cp144-hero,.cp146-hero,.cp147-hero,.cp-fin-hero,.cp-mail-hero,.cp-sp-hero,.cp-zte-143-hero,.cp-zte155-menu-hero,.zte156-admin-hero,.acrm-hero-card,.cp-pro-hero,.cpcc-hero,.cp-hero,.zte156-calendar-toolbar) :is(h1,h2,h3,h4,h5,h6,strong.zte160-title){color:#fff!important;background:transparent!important;padding-left:0!important;padding-right:0!important;text-shadow:0 1px 2px rgba(0,0,0,.28)}

/* Legacy white cards receive a compact title strip so the global title color remains legible instead of becoming white-on-white. */
body.zte160-plugin-admin #wpbody-content :is(.cp-premium-panel,.cp-pro-panel,.cp140-panel,.cp144-panel,.cp146-panel,.cp147-panel,.cp-fin-panel,.cp-sp-panel,.cp-mail-panel,.zte156-admin-card,.zte150-card,.acrm-card) > :is(h2,h3,h4,h5,h6),
.zte150-portal .zte150-main :is(.zte150-card,.cp-pro-panel,.cp140-panel,.cp144-panel,.cp146-panel,.cp147-panel,.cp-fin-panel,.cp-sp-panel,.cp-mail-panel) > :is(h2,h3,h4,h5,h6),
.acrm-layout .acrm-page-content :is(.acrm-card,.cp144-panel,.cp146-panel,.zte150-card) > :is(h2,h3,h4,h5,h6){display:block;margin:-2px -2px 14px!important;padding:10px 13px!important;border-radius:10px!important;background:var(--zte160-heading-bg)!important;color:#fff!important;line-height:1.25!important}

/* Compact page-title labels are real UI titles too. Give them a controlled
 * colored chip so the user-selected Title Color remains readable even on the
 * portal's translucent white topbar. */
:is(.zte150-portal,.acrm-layout) .zte151-page-title strong,
body.zte160-focus-mode .zte160-focus-page strong{display:inline-block!important;align-self:flex-start!important;padding:5px 9px!important;border-radius:8px!important;background:var(--zte160-heading-bg)!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.22)!important;line-height:1.2!important}

/* Titles inside user-authored message/email bodies are content rather than
 * application chrome; keep them readable and do not recolor user content. */
body.zte160-plugin-admin #wpbody-content :is(.zte151-chat-message,.zte151-chat-body,.zte156-reply-preview,.cp-mail-message-body,.message-body,.cp146-message-body,.cp140-message-body) :is(h1,h2,h3,h4,h5,h6),
.zte150-portal .zte150-main :is(.zte151-chat-message,.zte151-chat-body,.zte156-reply-preview,.cp-mail-message-body,.message-body,.cp146-message-body,.cp140-message-body) :is(h1,h2,h3,h4,h5,h6),
.acrm-layout .acrm-page-content :is(.zte151-chat-message,.zte151-chat-body,.zte156-reply-preview,.cp-mail-message-body,.message-body,.cp146-message-body,.cp140-message-body) :is(h1,h2,h3,h4,h5,h6){background:transparent!important;color:#10213a!important;padding:0!important;border-radius:0!important;text-shadow:none!important}

/* Do not let global title styling leak into table headers, form labels or ordinary body copy. */
body.zte160-plugin-admin #wpbody-content :is(p,td,th,label,input,textarea,select,button),.zte150-portal :is(p,td,th,label,input,textarea,select,button),.acrm-layout :is(p,td,th,label,input,textarea,select,button){text-shadow:none}

/* Chat is an isolated app: readable regardless of selected appearance or wp-admin theme. */
.zte151-chat{isolation:isolate;bottom:max(6px,env(safe-area-inset-bottom))!important;color:#10213a!important}
.zte151-chat-panel{background:#fff!important;color:#10213a!important}
.zte151-chat-header{background:var(--zte160-heading-bg)!important;color:#fff!important}
.zte151-chat-header strong{color:#fff!important}
.zte151-chat-header span{color:rgba(255,255,255,.86)!important}
.zte151-chat-sidebar{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;background:#f7f9fc!important;color:#10213a!important;visibility:visible!important;opacity:1!important}
.zte151-chat-search,.zte151-chat-tabs{display:block!important;visibility:visible!important;opacity:1!important}
.zte151-chat-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;background:#fff!important}
.zte151-chat-tabs button{color:#52647b!important;background:transparent!important}
.zte151-chat-tabs button.is-active{color:#fff!important;background:var(--zte150-primary,#2167f3)!important}
.zte151-chat-list{display:block;color:#10213a!important}
.zte151-chat-list[hidden]{display:none!important}
.zte151-chat-list-item{color:#10213a!important;background:transparent!important}
.zte151-chat-list-item:hover,.zte151-chat-list-item:focus-visible,.zte151-chat-list-item.is-active{background:#eaf2ff!important;color:#10213a!important}
.zte151-chat-list-copy strong,.zte151-chat-person strong,.zte151-chat-empty strong,.zte151-chat-message-sender strong{color:#10213a!important}
.zte151-chat-list-copy small,.zte151-chat-person span,.zte151-chat-list-meta time,.zte151-chat-empty,.zte151-chat-list-empty{color:#607086!important}
.zte151-chat-main,.zte151-chat-person,.zte151-chat-composer{background:#fff!important;color:#10213a!important}
.zte151-chat-layout,.zte151-chat-layout.zte156-chat-active-mobile,.zte151-chat-layout:not(.zte156-chat-active-mobile){display:grid!important;grid-template-columns:minmax(230px,35%) minmax(0,1fr)!important}
.zte151-chat-layout .zte151-chat-sidebar{display:grid!important}
.zte151-chat-layout .zte151-chat-main{display:block!important}
.zte156-chat-back{display:none!important}
.zte151-chat-bubble{color:#10213a!important;background:#fff!important}
.zte151-chat-message.is-mine .zte151-chat-bubble{color:#fff!important;background:linear-gradient(135deg,var(--zte150-primary,#2167f3),var(--zte150-nav-2,#0c376c))!important}
.zte151-chat-message.is-mine .zte151-chat-body,.zte151-chat-message.is-mine .zte151-chat-bubble time{color:#fff!important}
.zte151-chat-compose-row textarea,.zte151-chat-search input{color:#10213a!important;background:#fff!important}

/* Drag-and-drop organizer. */
.cp-zte155-menu-sort{display:grid!important;gap:9px!important;max-width:980px!important}
.cp-zte155-menu-sort>li{display:grid!important;grid-template-columns:44px 34px minmax(180px,1fr) minmax(150px,.65fr)!important;align-items:center!important;gap:10px!important;min-height:60px!important;padding:9px 12px!important;border:1px solid #dbe4ef!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 14px rgba(15,23,42,.045)!important;cursor:default!important;transition:box-shadow .12s ease,transform .12s ease,border-color .12s ease!important}
.cp-zte155-menu-sort>li.is-dragging{opacity:.82!important;border-color:var(--zte150-primary,#2167f3)!important;box-shadow:0 18px 38px rgba(15,23,42,.18)!important;transform:scale(1.01)!important;z-index:5}
.zte160-drag-handle{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#f8fafc!important;color:#334155!important;cursor:grab!important;touch-action:none!important;font-size:20px!important;line-height:1!important}
.zte160-drag-handle:active{cursor:grabbing!important}.zte160-drag-handle:focus-visible{outline:3px solid color-mix(in srgb,var(--zte150-primary,#2167f3) 25%,transparent)!important;outline-offset:2px!important}
.cp-zte155-menu-actions{display:none!important}
.cp-zte155-menu-sort code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Focus switch in normal wp-admin. */
.zte160-focus-entry{margin:6px 20px 12px 0;display:flex;justify-content:flex-end}
.zte160-focus-entry>a{display:inline-flex;align-items:center;gap:10px;padding:8px 10px 8px 12px;border:1px solid #d6e0ec;border-radius:999px;background:#fff;color:#10213a;text-decoration:none;box-shadow:0 6px 18px rgba(15,23,42,.08)}
.zte160-focus-entry>a>.dashicons{color:var(--zte150-primary,#2167f3)}.zte160-focus-entry a>span:nth-child(2){display:grid;line-height:1.1}.zte160-focus-entry strong{font-size:12px}.zte160-focus-entry small{margin-top:2px;color:#64748b;font-size:9px}.zte160-focus-entry i{width:36px;height:20px;position:relative;border-radius:999px;background:#dbe5f1}.zte160-focus-entry i:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.25)}

/* Super Admin Focus Mode — same visual language as the operational portal, proven wp-admin callbacks underneath. */
body.zte160-focus-mode{--zte160-side:272px;--zte160-top:68px;background:#f3f6fa!important}
body.zte160-focus-mode #wpadminbar,body.zte160-focus-mode #adminmenumain,body.zte160-focus-mode #wpfooter{display:none!important}
body.zte160-focus-mode #wpcontent{margin-left:var(--zte160-side)!important;padding-left:0!important}
body.zte160-focus-mode #wpbody{padding-top:var(--zte160-top)!important}
body.zte160-focus-mode #wpbody-content{box-sizing:border-box!important;padding:22px 26px 48px!important;min-height:100vh!important}
body.zte160-focus-mode .update-nag,body.zte160-focus-mode .notice:not(.zte160-keep-notice){max-width:1200px}
.zte160-focus-sidebar{position:fixed;z-index:9990;left:0;top:0;bottom:0;width:272px;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--zte150-nav,#07192e),var(--zte150-nav-2,#0c376c));box-shadow:12px 0 32px rgba(7,25,46,.16);overflow:hidden}
.zte160-focus-brand{display:grid;justify-items:center;gap:7px;padding:19px 16px 17px;border-bottom:1px solid rgba(255,255,255,.13);color:#fff;text-decoration:none!important}.zte160-focus-logo{display:block;width:auto;max-width:180px;height:44px;object-fit:contain}.zte160-focus-brand span{color:rgba(255,255,255,.72);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.zte160-focus-nav{min-height:0;overflow:auto;padding:12px 10px 28px;display:grid;align-content:start;gap:3px}.zte160-focus-nav a{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;min-height:38px;padding:7px 10px;border-radius:9px;color:rgba(255,255,255,.82)!important;text-decoration:none!important;font-size:12px;font-weight:700}.zte160-focus-nav a:hover,.zte160-focus-nav a.is-active{color:#fff!important;background:rgba(255,255,255,.12)!important}.zte160-focus-nav a.is-active{box-shadow:inset 3px 0 var(--zte150-accent,#55c7f3)}
.zte160-focus-topbar{position:fixed;z-index:9989;left:272px;right:0;top:0;height:68px;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:9px 22px;background:#fff;border-bottom:1px solid #dbe4ef;box-shadow:0 5px 18px rgba(15,23,42,.05)}.zte160-focus-menu-toggle{display:none;width:40px;height:40px;border:1px solid #ccd7e5;border-radius:10px;background:#fff;color:#10213a;font-size:20px;line-height:1;cursor:pointer}.zte160-focus-page{display:grid;min-width:0;margin-left:2px}.zte160-focus-page strong{color:#10213a;font-size:16px}.zte160-focus-page span{color:#64748b;font-size:10px}.zte160-focus-controls{min-width:0;flex-wrap:nowrap!important;justify-content:flex-start}.zte160-focus-controls .zte151-account{flex:0 1 auto}.zte160-focus-controls .zte151-account-button{max-width:270px}.zte160-focus-controls .zte151-account-button>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.zte160-focus-account-menu{left:0!important;right:auto!important;z-index:10020!important}.zte160-focus-controls .zte151-account{position:relative}.zte160-focus-controls .zte151-account-button{display:inline-flex;align-items:center;gap:9px;min-height:45px;padding:5px 11px 5px 5px;border:1px solid #ccd7e5;border-radius:999px;color:#10213a;background:#fff;font:inherit;font-weight:800;cursor:pointer}.zte160-focus-controls .zte151-account-button:hover,.zte160-focus-controls .zte151-account-button:focus-visible{border-color:var(--zte150-primary,#2167f3);outline:3px solid color-mix(in srgb,var(--zte150-primary,#2167f3) 15%,transparent)}.zte160-focus-controls .zte151-account-menu{position:absolute;top:calc(100% + 8px);min-width:190px;display:grid!important;gap:4px;padding:8px;border:1px solid #d6e0eb;border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(16,33,58,.18)}.zte160-focus-controls .zte151-account-menu[hidden]{display:none!important}.zte160-focus-controls .zte151-account-menu a{padding:9px 11px;border-radius:8px;color:#10213a!important;text-decoration:none!important;font-weight:750;white-space:nowrap}.zte160-focus-controls .zte151-account-menu a:hover,.zte160-focus-controls .zte151-account-menu a:focus-visible{color:var(--zte150-primary,#2167f3)!important;background:#edf5ff;outline:0}.zte160-focus-avatar{width:34px;height:34px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--zte150-nav,#07192e);color:#fff;font-size:10px;font-weight:900;flex:0 0 auto}.zte160-focus-avatar img{width:100%;height:100%;object-fit:cover}.zte160-focus-switch{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:8px 11px;border-radius:9px;background:#edf3fb;color:#173a66!important;text-decoration:none!important;font-size:11px;font-weight:800;white-space:nowrap}.zte160-focus-switch:hover{background:#dfeaf8}
body.zte160-focus-mode .zte151-chat{right:14px!important;bottom:max(7px,env(safe-area-inset-bottom))!important}

@media(max-width:1180px){.zte160-focus-controls .zte151-account-button>strong{max-width:125px}.zte160-focus-switch-label{display:none}.zte160-focus-page span{display:none}}
@media(max-width:960px){body.zte160-focus-mode{--zte160-side:218px}.zte160-focus-sidebar{width:218px}.zte160-focus-topbar{left:218px;padding-inline:14px}.zte160-focus-nav a{font-size:11px}.zte160-focus-logo{max-width:150px}.zte160-focus-controls{gap:5px!important}.zte160-focus-controls .zte151-account-button>strong{max-width:90px}.cp-zte155-menu-sort>li{grid-template-columns:44px 30px minmax(150px,1fr)!important}.cp-zte155-menu-sort code{display:none}}
@media(max-width:760px){
 body.zte160-focus-mode{--zte160-side:0px;--zte160-top:62px}body.zte160-focus-mode #wpcontent{margin-left:0!important}.zte160-focus-sidebar{display:flex;width:min(86vw,300px);transform:translateX(-105%);transition:transform .18s ease;box-shadow:16px 0 36px rgba(7,25,46,.24)}body.zte160-focus-menu-open .zte160-focus-sidebar{transform:translateX(0)}body.zte160-focus-menu-open:after{content:"";position:fixed;inset:0;z-index:9988;background:rgba(5,18,34,.42)}.zte160-focus-topbar{left:0;height:62px;padding:7px 10px;gap:6px}.zte160-focus-menu-toggle{display:grid;place-items:center;flex:0 0 auto}.zte160-focus-page{display:none}.zte160-focus-controls{gap:4px!important}.zte160-focus-controls .zte151-account-button{min-height:40px;padding:4px!important}.zte160-focus-controls .zte151-account-button>strong,.zte160-focus-controls .zte151-account-button>span:last-child{display:none}.zte160-focus-switch{padding:7px 9px}.zte160-focus-topbar .zte151-language{margin:0}
 .zte151-chat-panel{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;inset:0!important;border-radius:0!important}.zte151-chat-layout,.zte151-chat-layout.zte156-chat-active-mobile,.zte151-chat-layout:not(.zte156-chat-active-mobile){grid-template-columns:minmax(122px,35%) minmax(0,1fr)!important}.zte151-chat-sidebar{display:grid!important;padding:7px!important}.zte151-chat-search{display:block!important}.zte151-chat-list-copy small,.zte151-chat-list-meta{display:none!important}
}
@media(max-width:480px){.zte151-chat-layout,.zte151-chat-layout.zte156-chat-active-mobile,.zte151-chat-layout:not(.zte156-chat-active-mobile){grid-template-columns:minmax(108px,36%) minmax(0,1fr)!important}.zte151-chat-tabs button{font-size:9px!important}.zte151-chat-list-item{grid-template-columns:34px minmax(0,1fr)!important}.zte151-chat-avatar{width:34px!important;height:34px!important}.cp-zte155-menu-sort>li{grid-template-columns:42px 28px minmax(0,1fr)!important}.cp-zte155-menu-sort code{display:none}}
@media(prefers-reduced-motion:reduce){.cp-zte155-menu-sort>li,.zte160-focus-entry *{transition:none!important}}
html.zte160-focus-root{padding-top:0!important}
