/* ZiorTechEarn 1.5.9 — production UI completion */
:root{--zte159-title-color:#fff}

/* Colored/dark application surfaces: titles inherit the user's title color.
   Default is white. Scope is deliberately limited to ZiorTechEarn, not the
   rest of wp-admin or third-party plugins. */
.zte150-hero h1,.zte150-hero h2,.zte150-hero h3,
.cp-admin-hero h1,.cp-admin-hero h2,.cp-admin-hero h3,
.cp140-hero h1,.cp140-hero h2,.cp140-hero h3,
.cp144-hero h1,.cp144-hero h2,.cp144-hero h3,
.cp146-hero h1,.cp146-hero h2,.cp146-hero h3,
.cp147-hero h1,.cp147-hero h2,.cp147-hero h3,
.cp-fin-hero h1,.cp-fin-hero h2,.cp-fin-hero h3,
.cp-mail-hero h1,.cp-mail-hero h2,.cp-mail-hero h3,
.cp-sp-hero h1,.cp-sp-hero h2,.cp-sp-hero h3,
.cp-zte-143-hero h1,.cp-zte-143-hero h2,.cp-zte-143-hero h3,
.cp-zte155-menu-hero h1,.cp-zte155-menu-hero h2,.cp-zte155-menu-hero h3,
.zte156-admin-hero h1,.zte156-admin-hero h2,.zte156-admin-hero h3,
.acrm-hero-card h1,.acrm-hero-card h2,.acrm-hero-card h3,
.cp-pro-hero h1,.cp-pro-hero h2,.cp-pro-hero h3,
.cpcc-hero h1,.cpcc-hero h2,.cpcc-hero h3,
.cp-hero h1,.cp-hero h2,.cp-hero h3{
  color:var(--zte159-title-color,#fff)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.10)
}
.zte150-hero>div>span,.zte150-hero>div>p,
.cp140-hero>div>span,.cp140-hero>div>p,
.cp144-hero .cp144-eyebrow,.cp144-hero p,
.cp146-hero span,.cp146-hero p,.cp147-hero span,.cp147-hero p,
.cp-fin-hero span,.cp-fin-hero p,.cp-mail-hero span,.cp-mail-hero p,
.cp-sp-hero span,.cp-sp-hero p,.cp-zte-143-hero span,.cp-zte-143-hero p,
.cp-zte155-menu-hero span,.cp-zte155-menu-hero p,.zte156-admin-hero span,.zte156-admin-hero p,
.acrm-hero-card p,.cp-pro-hero p,.cpcc-hero p,.cp-hero p{color:rgba(255,255,255,.90)!important}

/* Custom palette controls */
.zte159-color-control{display:grid;grid-template-columns:58px minmax(120px,1fr);gap:9px;align-items:center;margin-top:5px}
.zte159-color-control input[type=color]{width:58px!important;min-width:58px!important;height:42px!important;padding:3px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;cursor:pointer}
.zte159-color-control input[type=text],.zte159-color-control input.regular-text{min-height:42px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;text-transform:uppercase}
.zte159-color-field small{display:block;margin-top:4px;color:#64748b;font-weight:500;line-height:1.35}

/* Personal earnings */
.zte159-earnings{--zte159-line:#dce6f2;--zte159-ink:#10223b;--zte159-muted:#64748b}
.zte159-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0 18px}
.zte159-metric-grid article{background:#fff;border:1px solid var(--zte159-line);border-radius:16px;padding:17px;box-shadow:0 5px 20px rgba(15,23,42,.045)}
.zte159-metric-grid span,.zte159-metric-grid small{display:block;color:var(--zte159-muted);font-size:11px;font-weight:800;letter-spacing:.035em}
.zte159-metric-grid strong{display:block;margin:6px 0 3px;color:var(--zte159-ink);font-size:24px;line-height:1.1}
.zte159-table-wrap{width:100%;overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid #e2e8f0;border-radius:12px}
.zte159-table{width:100%;min-width:760px;border-collapse:collapse;background:#fff}
.zte159-table th{padding:11px 12px;background:#f5f8fc;color:#334155;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.045em;border-bottom:1px solid #dce6f2}
.zte159-table td{padding:12px;color:#1e293b;border-bottom:1px solid #edf2f7;vertical-align:top}
.zte159-table tbody tr:last-child td{border-bottom:0}.zte159-table tbody tr:hover td{background:#f8fbff}
.zte159-empty{padding:24px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;text-align:center}

/* Chat: keep launcher close to the viewport footer and preserve safe-area. */
.zte151-chat{bottom:max(8px,env(safe-area-inset-bottom))!important}
@media(max-width:760px){.zte151-chat{right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important}}

/* Chat navigation must never disappear after selecting a conversation/person. */
.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(210px,36%) minmax(0,1fr)!important}
.zte151-chat-sidebar,.zte151-chat-layout.zte156-chat-active-mobile .zte151-chat-sidebar{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;visibility:visible!important;opacity:1!important;min-width:0!important}
.zte151-chat-sidebar .zte151-chat-search{display:block!important;visibility:visible!important;opacity:1!important}
.zte151-chat-sidebar .zte151-chat-tabs{display:grid!important;visibility:visible!important;opacity:1!important}
.zte151-chat-main{display:flex!important;visibility:visible!important;opacity:1!important;min-width:0!important}
.zte156-chat-back{display:none!important}
@media(max-width:760px){
 .zte151-chat-layout,.zte151-chat-layout.zte156-chat-active-mobile,.zte151-chat-layout:not(.zte156-chat-active-mobile){grid-template-columns:minmax(118px,34%) minmax(0,1fr)!important}
 .zte151-chat-sidebar{padding:7px 5px!important;grid-template-rows:auto auto minmax(0,1fr)!important}
 .zte151-chat-sidebar .zte151-chat-search{display:block!important;width:100%!important;font-size:11px!important;padding:7px!important}
 .zte151-chat-tabs{grid-template-columns:1fr 1fr!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(104px,36%) minmax(0,1fr)!important}
 .zte151-chat-list-item{grid-template-columns:34px minmax(0,1fr)!important}
 .zte151-chat-avatar{width:34px!important;height:34px!important}
}

/* Custom UI color becomes the main app accent while dark nav remains derived server-side. */
.zte150-btn,.acrm-btn,.cp144-front .button-primary{background:var(--zte150-primary,#2167f3)!important;border-color:var(--zte150-primary,#2167f3)!important}
.acrm-sidebar,.zte150-sidebar{background:linear-gradient(180deg,var(--zte150-nav,#07192e),var(--zte150-nav-2,#0c376c))!important}
.zte150-nav a.is-active,.acrm-nav a.is-active{background:color-mix(in srgb,var(--zte150-primary,#2167f3) 32%,rgba(255,255,255,.13))!important}

@media(max-width:782px){
 .zte159-color-control{grid-template-columns:52px minmax(0,1fr)}
 .zte159-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){.zte159-metric-grid{grid-template-columns:1fr}.zte159-table{min-width:680px}}

/* Agenda header is intentionally a colored surface, so its title can never
   inherit the dark generic wp-admin heading color. */
.zte156-calendar-toolbar{
  background:linear-gradient(125deg,var(--zte150-nav,#07192e) 0%,var(--zte150-nav-2,#0c376c) 72%,var(--zte150-primary,#2167f3) 145%)!important;
  color:#fff!important;
}
.zte156-calendar-toolbar h1,.zte156-calendar-toolbar h2,.zte156-calendar-toolbar h3{
  color:var(--zte159-title-color,#fff)!important;
}
.zte156-calendar-toolbar>div>span{color:rgba(255,255,255,.86)!important}
.zte156-calendar-toolbar .zte156-calendar-actions strong{color:#fff!important}
