/*
Theme Name: AI Powered Therapist V62.5.2 Security Hardening + App Launch Login Protection
Author: OpenAI for Enrico
Description: Adds admin/security guardrails, front-end member login protection, app launch security checks, XML-RPC/user enumeration hardening, and a Tools security dashboard without changing SEO, SMS, referrals, or product logic.
Version: 62.5.2
Text Domain: ai-powered-therapist-v6252-security-hardening-app-login-protection
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --bg:#0b0e14;
  --bg2:#070a10;
  --panel:#101726;
  --panel2:#0f1420;
  --text:#f1f5f9;
  --muted:#9aa4b2;
  --muted2:#6b7280;
  --gold:#b89f5a;
  --blue:#2f6bff;
  --blue2:#66a3ff;
  --line:rgba(255,255,255,.08);
  --glass:rgba(17,22,34,.72);
  --shadow: 0 16px 60px rgba(0,0,0,.55);
  --shadow2: 0 0 0 1px rgba(255,255,255,.06), 0 18px 70px rgba(47,107,255,.12);
  --radius: 14px;
  --radius2: 18px;
  --max: 1240px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-size:17px;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(47,107,255,.16), transparent 55%),
    radial-gradient(700px 420px at 80% 20%, rgba(184,159,90,.12), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(47,107,255,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  font-family:'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: .2px;
  overflow-x:hidden;
}

/* subtle grid + noise */
body:before{
  content:"";
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity:.06;
  pointer-events:none;
  z-index:-2;
}
body:after{
  content:"";
  position:fixed;
  inset:-50%;
  background-image:url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22%3E%3Cfilter id=%22n%22 x=%220%22 y=%220%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22120%22 height=%22120%22 filter=%22url(%23n)%22 opacity=%220.18%22/%3E%3C/svg%3E');
  opacity:.035;
  pointer-events:none;
  z-index:-1;
  transform: rotate(8deg);
}

/* top compliance bar */
.apt-topbar{
  position:sticky;
  top:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  font-size:12px;
  letter-spacing:.3px;
  color:rgba(241,245,249,.78);
  background:rgba(9,12,18,.68);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.apt-topbar strong{color:rgba(241,245,249,.92);font-weight:600}

/* header nav */
.apt-header{
  position:sticky;
  top:42px;
  z-index:998;
  background:rgba(9,12,18,.45);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.apt-nav{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.apt-brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  text-decoration:none;
}
.apt-brand .mark{
  width:10px;height:10px;border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--blue2), var(--blue));
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 0 40px rgba(47,107,255,.35);
}
.apt-brand .name{
  color:rgba(241,245,249,.95);
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-size:13px;
}
.apt-brand .tag{
  font-family:'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:rgba(154,164,178,.9);
  font-size:12px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.apt-menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.apt-menu a{
  color:rgba(241,245,249,.78);
  font-size:13px;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  transition:.2s ease;
}
.apt-menu a:hover{
  color:rgba(241,245,249,.95);
  border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.apt-cta{
  display:flex;
  gap:10px;
  align-items:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  font-size:13px;
  letter-spacing:.25px;
  text-decoration:none;
  user-select:none;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:rgba(241,245,249,.92);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform: translateY(-1px); border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.05);}
.btn:active{transform: translateY(0);}
.btn-primary{
  border-color: rgba(184,159,90,.35);
  background: linear-gradient(90deg, rgba(184,159,90,.85), rgba(47,107,255,.85));
  box-shadow: 0 12px 38px rgba(47,107,255,.18);
}
.btn-primary:hover{
  box-shadow: 0 18px 52px rgba(47,107,255,.22);
}
.btn-primary .dot{
  width:7px;height:7px;border-radius:50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 18px rgba(255,255,255,.28);
}

/* layout */
.apt-wrap{max-width:var(--max); margin:0 auto; padding: 0 22px;}
.section{padding: 84px 0;}
.section.tight{padding: 64px 0;}
.kicker{
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12px;
  color:rgba(154,164,178,.88);
  letter-spacing:.18em;
  text-transform:uppercase;
}
.h1{
  font-size: clamp(40px, 5.2vw, 68px);
  line-height:1.02;
  margin: 12px 0 14px;
  letter-spacing:-.02em;
}
.h2{
  font-size: clamp(24px, 2.4vw, 34px);
  line-height:1.12;
  margin: 0 0 12px;
  letter-spacing:-.01em;
}
.lead{
  color:rgba(241,245,249,.78);
  font-size:18px;
  line-height:1.55;
  max-width: 720px;
}

.hero{
  position:relative;
  padding: 92px 0 64px;
  overflow:hidden;
}
.hero .glow{
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(600px 300px at 40% 20%, rgba(47,107,255,.22), transparent 55%),
    radial-gradient(520px 260px at 65% 35%, rgba(184,159,90,.16), transparent 60%),
    radial-gradient(520px 320px at 50% 60%, rgba(47,107,255,.10), transparent 60%);
  filter: blur(18px);
  opacity:.9;
  pointer-events:none;
  z-index:-1;
}
#aptParticles{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:-2;
  opacity:.92;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items:start;
}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; gap:24px;}
}

.hero-card{
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(17,22,34,.78), rgba(14,18,30,.60));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow2);
  padding: 22px;
  overflow:hidden;
  position:relative;
}
.hero-card:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(360px 240px at 30% 0%, rgba(47,107,255,.18), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.hero-card .mini{
  display:grid;
  gap:12px;
}
.pill-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px;}
.pill{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(241,245,249,.86);
  font-size:12px;
  padding: 10px 12px;
  border-radius: 999px;
}
.scanline{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,.65), rgba(184,159,90,.55), transparent);
  opacity:.9;
  margin-top: 18px;
  position:relative;
  overflow:hidden;
}
.scanline:after{
  content:"";
  position:absolute; inset:0;
  transform: translateX(-65%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: scan 4.8s linear infinite;
  opacity:.55;
}
@keyframes scan{to{transform: translateX(65%);}}

/* cards */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px){.grid3{grid-template-columns:1fr;}}
.card{
  background: linear-gradient(180deg, rgba(17,22,34,.75), rgba(12,15,24,.55));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.card:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(420px 260px at 20% 0%, rgba(47,107,255,.14), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.card h3{margin: 0 0 10px; font-size:18px;}
.card p{margin:0; color: rgba(241,245,249,.74); line-height:1.55;}

/* split */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px){.split{grid-template-columns:1fr;}}
.panel{
  background: rgba(17,22,34,.55);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel p{color: rgba(241,245,249,.74); line-height:1.6; margin: 0 0 12px;}
.panel ul{margin: 8px 0 0 18px; color: rgba(241,245,249,.74);}
.panel li{margin: 8px 0;}

/* pricing */
.pricing{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 980px){.pricing{grid-template-columns:1fr;}}
.price-card{
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(17,22,34,.78), rgba(11,14,20,.62));
  border:1px solid rgba(184,159,90,.26);
  box-shadow: var(--shadow2);
  padding: 26px;
  position:relative;
  overflow:hidden;
}
.price-card:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(520px 320px at 40% 0%, rgba(184,159,90,.18), transparent 62%);
  opacity:.9;
  pointer-events:none;
}
.price{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin: 10px 0 4px;
}
.price .num{font-size:44px; font-weight:700; letter-spacing:-.02em;}
.price .per{color: rgba(154,164,178,.9); font-family:'IBM Plex Mono', monospace;}
.small{color: rgba(154,164,178,.88); font-size:13px; line-height:1.5;}
hr.sep{border:none; border-top:1px solid rgba(255,255,255,.08); margin:18px 0;}

.checks{display:grid; gap:10px; margin: 14px 0 0;}
.check{
  display:flex; gap:10px;
  color: rgba(241,245,249,.82);
  font-size:13px;
}
.check:before{
  content:"";
  width:10px;height:10px;
  margin-top:5px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(47,107,255,.9));
  box-shadow: 0 0 16px rgba(47,107,255,.35);
}

/* FAQ */
.faq-item{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,22,34,.45);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.faq-item summary{
  cursor:pointer;
  font-weight:600;
  color: rgba(241,245,249,.92);
}
.faq-item p{
  margin: 10px 0 0;
  color: rgba(241,245,249,.74);
  line-height:1.6;
}

/* Access + Console apps */
.apt-app{
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(17,22,34,.78), rgba(11,14,20,.62));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
}
.apt-app:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(520px 320px at 30% 0%, rgba(47,107,255,.18), transparent 65%);
  opacity:.8;
  pointer-events:none;
}
.apt-app .inner{padding: 22px 22px 26px; position:relative;}
.app-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 16px 22px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: rgba(9,12,18,.35);
}
.progress{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  flex:1;
}
.progress > span{
  display:block;
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(184,159,90,.9), rgba(47,107,255,.9));
  transition: width .35s ease;
}
.app-step{
  animation: fadeUp .35s ease both;
}
@keyframes fadeUp{
  from{opacity:0; transform: translateY(8px);}
  to{opacity:1; transform: translateY(0);}
}
.q-title{
  margin: 4px 0 12px;
  font-size:20px;
  letter-spacing:-.01em;
}
.q-sub{
  margin: 0 0 14px;
  color: rgba(154,164,178,.92);
  line-height:1.5;
  font-size:13px;
  font-family:'IBM Plex Mono', monospace;
}
.choice-grid{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}
@media (max-width: 740px){.choice-grid{grid-template-columns:1fr;}}
.choice{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: .18s ease;
  position:relative;
}
.choice:hover{background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); transform: translateY(-1px);}
.choice.selected{
  border-color: rgba(47,107,255,.42);
  box-shadow: 0 0 0 1px rgba(47,107,255,.22), 0 20px 60px rgba(47,107,255,.12);
  background: rgba(47,107,255,.08);
}
.choice .label{font-weight:600; color: rgba(241,245,249,.92);}
.choice .hint{color: rgba(154,164,178,.86); font-size:12px; margin-top:6px; font-family:'IBM Plex Mono', monospace;}
.controls{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  margin-top: 18px;
}
.controls .btn{flex:1;}
.input{
  width:100%;
  padding: 14px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(241,245,249,.92);
  outline:none;
  font-family: inherit;
  transition: .18s ease;
}
.input:focus{border-color: rgba(47,107,255,.45); box-shadow: 0 0 0 4px rgba(47,107,255,.12);}
.range-row{display:flex; align-items:center; gap: 12px;}
.range-row input[type=range]{width:100%;}
.badge{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  padding: 8px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: rgba(241,245,249,.86);
  min-width: 48px;
  text-align:center;
}

/* console */
.console-header{
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
  margin-bottom: 16px;
}
.console-header .meta{
  color: rgba(154,164,178,.9);
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
}
.mode-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 980px){.mode-grid{grid-template-columns:1fr;}}
.mode{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 16px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: .18s ease;
}
.mode:hover{background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); transform: translateY(-1px);}
.mode.active{
  border-color: rgba(184,159,90,.35);
  box-shadow: 0 0 0 1px rgba(184,159,90,.22), 0 22px 60px rgba(184,159,90,.10);
  background: rgba(184,159,90,.06);
}
.mode .t{font-weight:700;}
.mode .d{color: rgba(154,164,178,.86); font-size:12px; margin-top:6px; font-family:'IBM Plex Mono', monospace;}
.output{
  margin-top: 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(9,12,18,.45);
  padding: 16px 16px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(241,245,249,.86);
  white-space: pre-wrap;
}
.loader{
  display:none;
  margin-top: 12px;
  align-items:center;
  gap: 10px;
  color: rgba(154,164,178,.92);
  font-family:'IBM Plex Mono', monospace;
}
.loader .spin{
  width:12px;height:12px;border-radius:50%;
  border:2px solid rgba(255,255,255,.20);
  border-top-color: rgba(47,107,255,.9);
  animation: rot 1s linear infinite;
}
@keyframes rot{to{transform: rotate(360deg);}}

/* footer */
.apt-footer{
  padding: 46px 0 60px;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(9,12,18,.35);
  margin-top: 70px;
}
.apt-footer .fine{
  color: rgba(154,164,178,.88);
  font-size: 12px;
  line-height: 1.55;
}
.apt-footer a{color: rgba(184,159,90,.9);}

.reveal{opacity:0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease;}
.reveal.is-visible{opacity:1; transform: translateY(0);}


/* Clarity Session textarea polish */
textarea.input{
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}


/* Educational (light) sections for subtopic SEO pages */
.apt-edu{
  background: rgba(248,250,252,.98);
  color: #0b1220;
}
.apt-edu .kicker{color: rgba(15,23,42,.62);}
.apt-edu .lead{color: rgba(15,23,42,.82);}
.apt-edu p, .apt-edu li{color: rgba(15,23,42,.86);}
.apt-edu a{color: rgba(47,107,255,.92); text-decoration: none;}
.apt-edu a:hover{text-decoration: underline;}
.apt-edu .panel{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 16px 46px rgba(0,0,0,.14);
}
.apt-edu .btn{
  border-color: rgba(15,23,42,.16);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.92);
}
.apt-edu .btn:hover{
  border-color: rgba(15,23,42,.24);
  background: rgba(15,23,42,.06);
}
.apt-edu .faq-item{
  border-color: rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
}
.apt-edu .faq-item summary{color: rgba(15,23,42,.92);}
.apt-edu .faq-item p{color: rgba(15,23,42,.86);}


/* ==========================================================
   V16 additions: light Apple-style homepage + menu compatibility
   ========================================================== */

body.home{
  background: #f6f7fb;
  color:#111827;
}
body.home:before,
body.home:after{
  display:none;
}
body.home .apt-topbar{
  background: rgba(255,255,255,.9);
  color:#475569;
  border-bottom:1px solid rgba(15,23,42,.08);
}
body.home .apt-topbar strong{color:#111827;}
body.home .apt-header{
  background: rgba(255,255,255,.88);
  border-bottom:1px solid rgba(15,23,42,.08);
}
body.home .apt-brand .mark{
  box-shadow:none;
}
body.home .apt-brand .name{ color:#111827; }
body.home .apt-brand .tag{ color:#64748b; }
body.home .apt-menu a{
  color:#475569;
}
body.home .apt-menu a:hover{
  color:#111827;
  border-color:rgba(15,23,42,.08);
  background:rgba(15,23,42,.03);
}
body.home .btn{
  color:#0f172a;
  border-color:rgba(15,23,42,.1);
  background:#fff;
}
body.home .btn:hover{
  background:#f8fafc;
  border-color:rgba(15,23,42,.14);
}
body.home .btn-primary{
  color:#fff;
  border-color:transparent;
  background:#111827;
  box-shadow: 0 18px 40px rgba(17,24,39,.15);
}
body.home .btn-primary:hover{
  background:#0f172a;
  box-shadow: 0 24px 48px rgba(17,24,39,.18);
}
body.home .btn-primary .dot{
  background:#fff;
  box-shadow:none;
}

.apt-menu,
.apt-menu ul{
  list-style:none;
  margin:0;
  padding:0;
}
.apt-menu{
  display:flex;
  align-items:center;
  gap:14px;
}
.apt-menu li{
  list-style:none;
}
.apt-menu .sub-menu{
  display:none;
}

.apt-home-shell{
  padding: 36px 0 92px;
}
.apt-home-hero{
  padding: 60px 0 30px;
}
.apt-home-eyebrow{
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#64748b;
}
.apt-home-title{
  margin:14px 0 16px;
  font-size: clamp(42px, 6vw, 74px);
  line-height:1.02;
  letter-spacing:-.04em;
  color:#0f172a;
  max-width: 980px;
}
.apt-home-subtitle{
  max-width: 760px;
  font-size:19px;
  line-height:1.65;
  color:#475569;
}
.apt-home-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.apt-home-section{
  padding-top:24px;
}
.apt-home-panel{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  padding:32px;
  box-shadow: 0 24px 60px rgba(15,23,42,.06);
}
.apt-home-kicker{
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#64748b;
}
.apt-home-h2{
  margin:10px 0 12px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height:1.08;
  letter-spacing:-.03em;
  color:#0f172a;
}
.apt-home-copy{
  color:#475569;
  line-height:1.75;
  max-width: 920px;
}
.apt-home-copy p{margin:0 0 14px;}
.apt-tool-stack{
  display:grid;
  gap:16px;
  margin-top:22px;
}
.apt-tool-button-large{
  display:block;
  width:100%;
  text-decoration:none;
  background:#fff;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  padding:24px 26px;
  box-shadow: 0 16px 45px rgba(15,23,42,.07);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.apt-tool-button-large:hover{
  transform: translateY(-2px);
  border-color:rgba(15,23,42,.15);
  box-shadow: 0 26px 56px rgba(15,23,42,.10);
}
.apt-tool-title{
  display:block;
  font-size:25px;
  font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:6px;
}
.apt-tool-desc{
  display:block;
  color:#64748b;
  line-height:1.6;
}
.apt-home-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
.apt-city-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:20px;
}
.apt-city-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  padding:22px;
  box-shadow: 0 16px 40px rgba(15,23,42,.05);
}
.apt-city-card h3{
  margin:0 0 10px;
  color:#0f172a;
  font-size:22px;
  letter-spacing:-.02em;
}
.apt-city-card p{
  margin:0;
  color:#64748b;
  line-height:1.7;
}
.apt-city-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.apt-mini-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#0f172a;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
}
.apt-home-note{
  margin-top:16px;
  color:#64748b;
  font-size:14px;
  line-height:1.7;
}

@media (max-width: 980px){
  .apt-nav{
    flex-wrap:wrap;
  }
  .apt-menu{
    order:3;
    width:100%;
    overflow:auto;
    padding-bottom:2px;
  }
  .apt-home-grid,
  .apt-city-grid{
    grid-template-columns:1fr;
  }
  .apt-home-panel{
    padding:24px;
    border-radius:20px;
  }
  .apt-home-title{
    font-size: clamp(36px, 12vw, 58px);
  }
}

/* Tool jump targets */
#tool-start,
#cbt,
#clarity,
#aptCbtRoot,
#aptClarityRoot,
#aptConsoleRoot,
#aptExecutiveResetRoot,
.apt-reset-root,
.apt-mf-root,
.apt-pm-root,
[data-apt-mf-checkin-form],
[data-apt-mf-relationship-form],
[data-apt-pm-form],
#aptConsoleApp,
#aptCbtApp,
#apt_generate{
  scroll-margin-top: 126px;
}

html.apt-reduced-motion{
  scroll-behavior:auto;
}


/* Tools dropdown + crawl amplification blocks */
.apt-menu > li{position:relative;}
.apt-menu > li > a{display:inline-flex; align-items:center; gap:8px;}
.apt-menu .menu-item-has-children > a:after{
  content:'▾';
  font-size:11px;
  opacity:.8;
  transform:translateY(-1px);
}
.apt-menu .sub-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:260px;
  display:none;
  grid-template-columns:1fr;
  gap:4px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(11,14,20,.98);
  backdrop-filter: blur(14px);
  box-shadow:0 20px 54px rgba(2,6,23,.45);
  z-index:90;
}
.apt-menu li:hover > .sub-menu,
.apt-menu li:focus-within > .sub-menu,
.apt-menu li.is-open > .sub-menu{display:grid;}
.apt-menu .sub-menu li{width:100%;}
.apt-menu .sub-menu a{
  display:block;
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  white-space:nowrap;
}
.apt-link-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.apt-link-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 14px;
  border-radius:999px;
  color:rgba(241,245,249,.92);
  text-decoration:none;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  transition:.18s ease;
}
.apt-link-chip:hover{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  transform:translateY(-1px);
}
.apt-tool-cta-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.apt-tool-cta-card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:18px;
  padding:18px;
  min-height:100%;
}
.apt-tool-cta-card h3{
  margin:0 0 8px;
  font-size:18px;
}
.apt-tool-cta-card p{
  margin:0;
  color:rgba(241,245,249,.78);
  line-height:1.65;
}
.apt-tool-cta-card .btn{margin-top:14px;}

@media (max-width: 980px){
  .apt-menu .sub-menu{
    position:static;
    min-width:0;
    margin-top:8px;
    box-shadow:none;
  }
  .apt-tool-cta-grid{grid-template-columns:1fr;}
}


/* V19 — Decode My Text split from Relationship Translator */
.apt-decode-hero .lead{max-width:920px}
.apt-decode-shell{display:block}
.apt-decode-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr);gap:18px;align-items:start}
.apt-decode-main,.apt-decode-side{display:flex;flex-direction:column;gap:18px}
.apt-decode-notice{margin-bottom:16px}
.apt-decode-form textarea[data-apt-mf-relationship-text]{min-height:190px}
.apt-decode-tone{grid-template-columns:repeat(3,minmax(0,1fr))}
.apt-decode-output-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.apt-decode-next-step{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.apt-decode-list{margin:0;padding-left:18px;color:rgba(241,245,249,.86)}
.apt-decode-list li+li{margin-top:8px}
.apt-decode-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.apt-decode-mini-card{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);border-radius:14px;padding:14px}
.apt-decode-mini-card strong{display:block;color:rgba(241,245,249,.94);margin-bottom:6px}
.apt-decode-mini-card span{display:block;color:rgba(154,164,178,.92);font-size:14px;line-height:1.5}
.apt-decode-side .panel p{color:rgba(241,245,249,.86)}
.apt-decode-tagline{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:rgba(241,245,249,.86);font-size:13px;letter-spacing:.2px}
.apt-decode-tagline .dot{width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 30% 30%, var(--blue2), var(--blue));box-shadow:0 0 24px rgba(47,107,255,.35)}
.apt-decode-root [data-apt-mf-relationship-output] .apt-mf-output-card:nth-child(4),
.apt-decode-root [data-apt-mf-relationship-output] .apt-mf-output-card:nth-child(5),
.apt-decode-root [data-apt-mf-relationship-output] .apt-mf-output-card:nth-child(6){background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025))}
@media (max-width:980px){
  .apt-decode-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .apt-decode-output-grid,.apt-decode-mini{grid-template-columns:1fr}
  .apt-decode-next-step .btn{width:100%;justify-content:center}
}

/* V20 homepage polish */
.apt-home-shell-v20{
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.08), transparent 34%),
    radial-gradient(circle at top right, rgba(147,197,253,.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 36%, #ffffff 100%);
}
.apt-home-hero-v20{
  padding: 68px 0 40px;
}
.apt-hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap:30px;
  align-items:center;
}
.apt-home-actions-primary{
  margin-top:28px;
}
.apt-hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.apt-hero-pills span,
.apt-tool-meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#475569;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  padding:10px 14px;
}
.apt-hero-preview{
  position:relative;
}
.apt-preview-window{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,1));
  border:1px solid rgba(15,23,42,.08);
  border-radius:28px;
  padding:22px;
  box-shadow:0 34px 80px rgba(15,23,42,.12);
}
.apt-preview-topbar{
  display:flex;
  gap:8px;
  margin-bottom:18px;
}
.apt-preview-topbar span{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#dbe7f3;
}
.apt-preview-label{
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12px;
  letter-spacing:.16em;
  color:#64748b;
  text-transform:uppercase;
}
.apt-preview-window h2{
  margin:10px 0 8px;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.04em;
  color:#0f172a;
}
.apt-preview-sub{
  color:#475569;
  line-height:1.7;
  margin:0 0 18px;
}
.apt-preview-message{
  border:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
  color:#0f172a;
  border-radius:18px;
  padding:16px 18px;
  font-size:18px;
  line-height:1.55;
  margin-bottom:16px;
}
.apt-preview-result-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.apt-preview-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:16px;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.apt-preview-card strong{
  display:block;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:8px;
}
.apt-preview-card span{
  color:#0f172a;
  line-height:1.6;
}
.apt-preview-card-wide{
  grid-column:1 / -1;
}
.apt-preview-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.apt-home-section-tight{
  padding-top:6px;
}
.apt-home-grid-three{
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.apt-value-card .apt-home-h2{
  font-size: clamp(22px, 2.2vw, 30px);
  line-height:1.2;
}
.apt-tool-stack-featured{
  grid-template-columns:1fr;
}
.apt-tool-button-featured{
  position:relative;
  overflow:hidden;
}
.apt-tool-button-featured::after{
  content:"";
  position:absolute;
  inset:auto -10% -45% auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(59,130,246,.10), transparent 70%);
  pointer-events:none;
}
.apt-mini-tools-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}
.apt-mini-tool-card{
  display:block;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:18px;
  color:#0f172a;
  box-shadow:0 14px 34px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.apt-mini-tool-card:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 42px rgba(15,23,42,.08);
  border-color:rgba(15,23,42,.15);
}
.apt-mini-tool-card strong{
  display:block;
  font-size:18px;
  letter-spacing:-.02em;
  margin-bottom:6px;
}
.apt-mini-tool-card span{
  display:block;
  color:#64748b;
  line-height:1.65;
}
.apt-process-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}
.apt-process-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  padding:24px;
  box-shadow:0 16px 40px rgba(15,23,42,.05);
}
.apt-process-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12px;
  letter-spacing:.08em;
  margin-bottom:14px;
}
.apt-process-card h3{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.02em;
  color:#0f172a;
}
.apt-process-card p{
  margin:0;
  color:#64748b;
  line-height:1.7;
}
.apt-home-grid-spotlight{
  align-items:stretch;
}

@media (max-width: 1080px){
  .apt-hero-grid,
  .apt-home-grid-three,
  .apt-mini-tools-grid,
  .apt-process-grid{
    grid-template-columns:1fr;
  }
  .apt-preview-window h2{
    font-size:30px;
  }
}

@media (max-width: 680px){
  .apt-home-hero-v20{
    padding:46px 0 24px;
  }
  .apt-home-title{
    letter-spacing:-.05em;
  }
  .apt-preview-window{
    padding:18px;
    border-radius:22px;
  }
  .apt-preview-result-grid{
    grid-template-columns:1fr;
  }
  .apt-home-actions-primary,
  .apt-preview-actions,
  .apt-home-actions{
    gap:10px;
  }
  .apt-home-actions .btn,
  .apt-home-actions-primary .btn,
  .apt-preview-actions .btn{
    width:100%;
    justify-content:center;
  }
}


/* V21 — mobile homepage clarity patch */
.apt-home-mobile-more-tools{
  display:none;
}

@media (max-width: 680px){
  body.home .apt-vis-shell,
  body.front-page .apt-vis-shell,
  body.page-template-front-page .apt-vis-shell{
    display:none !important;
  }

  .apt-mobile-hide{
    display:none !important;
  }

  .apt-home-mobile-more-tools{
    display:block;
    margin-top:18px;
  }

  .apt-home-mobile-tools-list{
    display:grid;
    gap:10px;
  }

  .apt-home-mobile-tool{
    display:block;
    text-decoration:none;
    background:#ffffff;
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    padding:16px 18px;
    color:#0f172a;
    box-shadow:0 12px 30px rgba(15,23,42,.06);
  }

  .apt-home-mobile-tool strong{
    display:block;
    font-size:17px;
    letter-spacing:-.02em;
    margin-bottom:4px;
    color:#0f172a;
  }

  .apt-home-mobile-tool span{
    display:block;
    color:#64748b;
    line-height:1.55;
  }

  .apt-home-shell-v20 .apt-hero-preview{
    display:none;
  }

  .apt-home-shell-v20 .apt-hero-pills{
    gap:8px;
    margin-top:14px;
  }

  .apt-home-shell-v20 .apt-hero-pills span{
    padding:10px 12px;
    font-size:12px;
  }
}

/* V24 — cleaner mobile homepage + reliable tool entry jumps */
@media (max-width: 900px){
  body.home .apt-vis-mobile-priority,
  body.front-page .apt-vis-mobile-priority,
  body.page-template-front-page .apt-vis-mobile-priority,
  body.home [data-apt-vis-mobile-priority],
  body.front-page [data-apt-vis-mobile-priority],
  body.page-template-front-page [data-apt-vis-mobile-priority],
  body.home .apt-vis-more,
  body.front-page .apt-vis-more,
  body.page-template-front-page .apt-vis-more,
  body.home [data-apt-vis-more],
  body.front-page [data-apt-vis-more],
  body.page-template-front-page [data-apt-vis-more],
  body.home .apt-vis-spotlight,
  body.front-page .apt-vis-spotlight,
  body.page-template-front-page .apt-vis-spotlight,
  body.home .apt-vis-ribbon,
  body.front-page .apt-vis-ribbon,
  body.page-template-front-page .apt-vis-ribbon{
    display:none !important;
  }

  body.home .apt-nav.apt-vis-nav-patched,
  body.front-page .apt-nav.apt-vis-nav-patched,
  body.page-template-front-page .apt-nav.apt-vis-nav-patched{
    align-items:center !important;
    gap:12px;
  }

  body.home .apt-nav.apt-vis-nav-patched .apt-cta,
  body.front-page .apt-nav.apt-vis-nav-patched .apt-cta,
  body.page-template-front-page .apt-nav.apt-vis-nav-patched .apt-cta{
    order:initial !important;
    width:auto !important;
    margin-left:auto;
    gap:8px;
  }

  body.home .apt-nav.apt-vis-nav-patched .apt-cta .btn,
  body.front-page .apt-nav.apt-vis-nav-patched .apt-cta .btn,
  body.page-template-front-page .apt-nav.apt-vis-nav-patched .apt-cta .btn{
    min-height:42px;
    border-radius:12px;
    padding:10px 13px;
  }
}

@media (max-width: 680px){
  body.home .apt-topbar,
  body.front-page .apt-topbar,
  body.page-template-front-page .apt-topbar{
    padding:10px 12px;
  }

  body.home .apt-header,
  body.front-page .apt-header,
  body.page-template-front-page .apt-header{
    top:42px;
  }

  body.home .apt-nav,
  body.front-page .apt-nav,
  body.page-template-front-page .apt-nav{
    padding-top:14px;
    padding-bottom:14px;
  }

  body.home .apt-home-mobile-more-tools,
  body.front-page .apt-home-mobile-more-tools,
  body.page-template-front-page .apt-home-mobile-more-tools{
    margin-top:16px;
  }

  .apt-brand .name{
    font-size:13px;
  }

  .apt-brand .tag{
    font-size:10px;
    letter-spacing:.14em;
  }
}

/* V22 — clear / reset controls for relationship tools */
.apt-mf-utility-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.apt-mf-utility-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(241,245,249,.88);
  border-radius:12px;
  padding:11px 14px;
  font-size:13px;
  font-weight:600;
  line-height:1;
  letter-spacing:.01em;
  cursor:pointer;
  transition:.18s ease;
}
.apt-mf-utility-btn:hover{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.18);
}
.apt-mf-utility-btn:disabled,
.apt-mf-utility-btn[aria-disabled="true"]{
  opacity:.48;
  cursor:not-allowed;
}
.apt-mf-utility-btn-secondary{
  background:rgba(8,12,20,.52);
}
@media (max-width:720px){
  .apt-mf-utility-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .apt-mf-utility-btn{
    width:100%;
    justify-content:center;
    min-height:44px;
  }
}


/* V23 — simple mobile header + home cleanup */
@media (max-width: 900px){
  .apt-brand{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }
  .apt-brand .name{
    font-size:12px;
    letter-spacing:.04em;
  }
  .apt-brand .tag{
    font-size:11px;
    letter-spacing:.14em;
  }
  .apt-nav{
    align-items:flex-start;
  }
  .apt-menu{
    gap:10px;
    flex-wrap:nowrap;
    scrollbar-width:none;
  }
  .apt-menu::-webkit-scrollbar{display:none;}
  .apt-menu a{
    white-space:nowrap;
    padding:8px 12px;
  }
}

@media (max-width: 680px){
  body.home .apt-vis-mobile-priority,
  body.front-page .apt-vis-mobile-priority,
  body.home .apt-vis-more,
  body.front-page .apt-vis-more,
  body.home .apt-vis-spotlight,
  body.front-page .apt-vis-spotlight{
    display:none !important;
  }

  body.home .apt-menu,
  body.front-page .apt-menu{
    display:flex !important;
  }

  body.home .apt-home-section .apt-tool-stack-featured,
  body.front-page .apt-home-section .apt-tool-stack-featured{
    display:none;
  }

  body.home .apt-home-section .apt-mini-tools-grid,
  body.front-page .apt-home-section .apt-mini-tools-grid{
    display:none;
  }

  body.home .apt-home-section .apt-home-panel .apt-home-kicker,
  body.front-page .apt-home-section .apt-home-panel .apt-home-kicker{
    margin-bottom:8px;
  }
}


@media (max-width: 680px){
  body.home .apt-vis-dock,
  body.front-page .apt-vis-dock{display:none !important;}
}


/* V24 — footer contrast + builder name + lighter home dropdown */
.apt-footer{
  background:#0b1120;
  border-top:1px solid rgba(148,163,184,.14);
}
.apt-footer .fine{
  color:rgba(226,232,240,.90);
  font-size:13px;
}
.apt-footer .fine strong{
  color:#f8fafc;
}
.apt-footer a{
  color:#d9bb68;
  text-decoration-thickness:1.5px;
  text-underline-offset:2px;
}

body.home .apt-menu .sub-menu,
body.front-page .apt-menu .sub-menu{
  background:#ffffff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 20px 48px rgba(15,23,42,.14);
}
body.home .apt-menu .sub-menu a,
body.front-page .apt-menu .sub-menu a{
  color:#111827 !important;
}
body.home .apt-menu .sub-menu a:hover,
body.front-page .apt-menu .sub-menu a:hover{
  background:#f8fafc;
  border-color:rgba(15,23,42,.08);
  color:#0f172a !important;
}

@media (max-width: 680px){
  .apt-footer{
    padding:38px 0 52px;
  }
  .apt-footer .fine{
    font-size:13px;
    line-height:1.65;
  }
  body.home .apt-menu .sub-menu,
  body.front-page .apt-menu .sub-menu{
    min-width:280px;
  }
}


/* V29 — relationship pattern check + repair attempt builder */
.apt-conflict-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);gap:18px;align-items:start}
.apt-conflict-main,.apt-conflict-side{display:flex;flex-direction:column;gap:18px}
.apt-conflict-card{min-width:0}
.apt-conflict-copy{color:rgba(241,245,249,.86);line-height:1.72}
.apt-conflict-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.apt-conflict-field{display:flex;flex-direction:column;gap:8px}
.apt-conflict-field label{font-weight:600;color:rgba(241,245,249,.92)}
.apt-conflict-field select,.apt-conflict-field textarea{width:100%;border-radius:14px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.03);color:var(--text);padding:14px 16px;font:inherit}
.apt-conflict-field textarea{min-height:220px;resize:vertical;line-height:1.6}
.apt-conflict-field select:focus,.apt-conflict-field textarea:focus{outline:none;border-color:rgba(102,163,255,.55);box-shadow:0 0 0 4px rgba(47,107,255,.12)}
.apt-conflict-helper{margin-top:12px;color:rgba(154,164,178,.9);font-size:14px;line-height:1.6}
.apt-conflict-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.apt-conflict-result-card{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);border-radius:18px;padding:18px;min-width:0}
.apt-conflict-result-card strong{display:block;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:rgba(154,164,178,.95);margin-bottom:10px}
.apt-conflict-result-card span{display:block;color:rgba(241,245,249,.92);line-height:1.72}
.apt-conflict-result-card-wide{grid-column:1 / -1}
.apt-conflict-support{margin-top:16px;color:rgba(154,164,178,.94);line-height:1.7}

.apt-conflict-repair-builder{margin-top:20px;border-top:1px solid rgba(255,255,255,.08);padding-top:18px}
.apt-conflict-repair-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.apt-conflict-repair-card{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);border-radius:18px;padding:18px;min-width:0;display:flex;flex-direction:column;gap:12px}
.apt-conflict-repair-card strong{display:block;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:rgba(154,164,178,.95)}
.apt-conflict-repair-card p{margin:0;color:rgba(241,245,249,.92);line-height:1.72;flex:1}
.apt-copy-btn{appearance:none;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:var(--text);padding:12px 14px;border-radius:14px;font:inherit;font-weight:600;cursor:pointer;transition:transform .18s ease, border-color .18s ease, background .18s ease}
.apt-copy-btn:hover,.apt-copy-btn:focus{outline:none;border-color:rgba(102,163,255,.55);background:rgba(47,107,255,.12);transform:translateY(-1px)}
.apt-conflict-copy-status{min-height:22px;margin-top:12px;color:rgba(154,164,178,.96);font-size:14px;line-height:1.5}
.apt-pathways-shell{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.apt-pathways-status{color:rgba(241,245,249,.86);font-size:14px;line-height:1.6}
.apt-pathways-frame-wrap{border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.apt-pathways-frame-wrap iframe{display:block;width:100%;aspect-ratio:16/9;min-height:220px;border:0;background:#000}
@media (max-width:980px){
  .apt-conflict-grid,.apt-conflict-form-grid,.apt-conflict-result-grid,.apt-conflict-repair-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .apt-conflict-field textarea{min-height:180px}
}

/* V30 console dashboard */
.apt-console-dash{display:flex;flex-direction:column;gap:18px;margin:0 0 20px}
.apt-console-summary-copy{max-width:920px;color:rgba(241,245,249,.86)}
.apt-console-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.apt-console-meta-card{border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));border-radius:14px;padding:16px}
.apt-console-meta-card strong{display:block;color:rgba(154,164,178,.92);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.apt-console-meta-card span{display:block;margin-top:10px;color:rgba(241,245,249,.96);font-size:18px;line-height:1.35;font-weight:600}
.apt-console-summary-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.apt-console-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.apt-console-tool-card{min-height:192px}
.apt-console-tool-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.apt-console-tool-top h3{margin:10px 0 0;font-size:30px;line-height:1;color:rgba(241,245,249,.98)}
.apt-console-tool-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:rgba(241,245,249,.92);text-decoration:none;font-size:13px}
.apt-console-tool-link:hover{border-color:rgba(102,163,255,.34);color:#fff}
.apt-console-tool-headline{margin-top:14px;color:rgba(241,245,249,.94);font-weight:600;line-height:1.45}
.apt-console-tool-card p{margin:10px 0 0;color:rgba(154,164,178,.95);line-height:1.6}
.apt-console-timeline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.apt-console-empty{padding:18px;border:1px dashed rgba(255,255,255,.12);border-radius:14px;color:rgba(154,164,178,.95)}
.apt-console-timeline-list{display:flex;flex-direction:column;gap:12px}
.apt-console-timeline-item{display:grid;grid-template-columns:180px minmax(0,1fr);gap:8px 16px;padding:16px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);text-decoration:none}
.apt-console-timeline-item:hover{border-color:rgba(102,163,255,.34);transform:translateY(-1px)}
.apt-console-timeline-tool{grid-column:1;grid-row:1 / span 2;color:rgba(102,163,255,.95);font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;align-self:start}
.apt-console-timeline-item strong{display:block;color:rgba(241,245,249,.96);line-height:1.45}
.apt-console-timeline-item span{display:block;color:rgba(154,164,178,.95);line-height:1.6}
.apt-console-timeline-item em{grid-column:2;font-style:normal;color:rgba(107,114,128,.95);font-size:12px;letter-spacing:.04em}
@media (max-width: 980px){
  .apt-console-meta-grid,.apt-console-tool-grid{grid-template-columns:1fr 1fr}
  .apt-console-timeline-item{grid-template-columns:1fr}
  .apt-console-timeline-tool,.apt-console-timeline-item em{grid-column:auto;grid-row:auto}
}
@media (max-width: 700px){
  .apt-console-meta-grid,.apt-console-tool-grid{grid-template-columns:1fr}
  .apt-console-timeline-head{flex-direction:column}
  .apt-console-tool-top h3{font-size:26px}
}


/* V31 — Daily Connection foundation */
.apt-dc-banner{margin-bottom:18px;padding:16px 18px;border-radius:18px}
.apt-dc-banner-ok{background:rgba(23,114,74,.18);border:1px solid rgba(52,211,153,.28)}
.apt-dc-banner-error{background:rgba(127,29,29,.22);border:1px solid rgba(248,113,113,.35)}
.apt-dc-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:24px;align-items:start}
.apt-dc-main-panel,.apt-dc-side-panel,.apt-dc-story-panel{position:relative;overflow:hidden}
.apt-dc-form{display:flex;flex-direction:column;gap:16px;margin-top:18px}
.apt-dc-form label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:var(--text)}
.apt-dc-form label span{font-size:14px;color:var(--muted)}
.apt-dc-form input,.apt-dc-form textarea{width:100%;border-radius:16px;border:1px solid rgba(255,255,255,.09);background:rgba(6,10,18,.75);color:var(--text);padding:14px 16px;font:inherit}
.apt-dc-form textarea{min-height:180px;resize:vertical}
.apt-dc-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.apt-dc-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.apt-dc-list{margin:14px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:10px}
.apt-dc-list li{color:var(--text)}
.apt-dc-share-link{margin-top:18px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.apt-dc-share-link code{display:block;margin-top:8px;white-space:normal;word-break:break-word;font-family:'IBM Plex Mono', monospace;color:#dbeafe}
.apt-dc-prompt-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 18px}
.apt-dc-story-text{font-size:18px;line-height:1.8;color:var(--text);max-width:900px}
.apt-dc-story-item{cursor:default}
.apt-dc-console-panel{margin-bottom:22px}
.apt-dc-console-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.apt-dc-console-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}
@media (max-width: 980px){
  .apt-dc-grid{grid-template-columns:1fr}
  .apt-dc-field-grid,.apt-dc-console-meta{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .apt-dc-form input,.apt-dc-form textarea{font-size:16px}
}


/* V32 — Daily Connection invite/state polish */
body.page-template-page-daily-connection .apt-vis-dock,
body.page-template-page-daily-connection-php .apt-vis-dock{display:none !important;}
.apt-dc-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.apt-dc-status-grid-wide{grid-template-columns:repeat(3,minmax(0,1fr));}
.apt-dc-status-card{padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);display:flex;flex-direction:column;gap:8px}
.apt-dc-status-card strong{font-size:13px;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}
.apt-dc-status-card span{font-size:18px;line-height:1.5;color:var(--text)}
.apt-dc-overview-panel{margin-bottom:24px}
.apt-dc-accept-box{margin-top:18px;padding:18px;border-radius:16px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.04)}
@media (max-width: 900px){
  .apt-dc-status-grid,.apt-dc-status-grid-wide{grid-template-columns:1fr;}
}


.apt-dc-console-notice{margin-top:14px;padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:6px;background:rgba(255,255,255,.04)}
.apt-dc-console-notice strong{font-size:18px;color:var(--text)}
.apt-dc-console-notice span{color:var(--muted2);line-height:1.6}
.apt-dc-console-notice-partner_answered,.apt-dc-status-partner_answered{background:rgba(59,130,246,.12);border:1px solid rgba(96,165,250,.28)}
.apt-dc-console-notice-waiting_partner,.apt-dc-status-waiting_partner{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.apt-dc-console-notice-chapter_ready,.apt-dc-status-chapter_ready{background:rgba(22,101,52,.16);border:1px solid rgba(74,222,128,.24)}
.apt-dc-console-notice-prompt_waiting,.apt-dc-status-prompt_waiting{background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.22)}
.apt-dc-console-notice-invite_pending,.apt-dc-status-invite_pending,.apt-dc-console-notice-invite_needed,.apt-dc-status-invite_needed{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.apt-dc-status-callout{margin-top:18px;padding:16px 18px;border-radius:18px;display:flex;flex-direction:column;gap:8px}
.apt-dc-status-callout strong{font-size:18px;color:var(--text)}
.apt-dc-status-callout span{color:var(--muted2);line-height:1.6}
.apt-dc-inline-note{margin:10px 0 18px;padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);display:flex;flex-direction:column;gap:6px}
.apt-dc-inline-note strong{color:var(--text)}
.apt-dc-inline-note span{color:var(--muted2);line-height:1.6}



/* V36 — mobile stabilization across non-home pages */
@media (max-width: 900px){
  html, body{
    max-width:100%;
    overflow-x:hidden !important;
  }

  body{
    position:relative;
  }

  .apt-topbar,
  .apt-header,
  .apt-nav,
  .apt-wrap,
  .section,
  .hero,
  main,
  article,
  aside{
    max-width:100%;
    box-sizing:border-box;
  }

  .apt-topbar{
    position:sticky;
    top:0;
    padding:10px 12px;
    line-height:1.45;
  }

  .apt-header{
    top:42px;
  }

  .apt-nav{
    width:100%;
    padding:12px 14px;
    gap:12px;
    align-items:stretch;
    flex-wrap:wrap;
    overflow:hidden;
  }

  .apt-brand{
    min-width:0;
    width:100%;
  }

  .apt-brand .name,
  .apt-brand .tag{
    white-space:normal;
  }

  .apt-menu{
    width:100%;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    overflow:visible !important;
    padding-bottom:0;
    min-width:0;
  }

  .apt-menu > li{
    min-width:0;
  }

  .apt-menu a{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    white-space:normal;
    line-height:1.35;
    padding:10px 12px;
  }

  .apt-menu .sub-menu{
    position:static;
    top:auto;
    left:auto;
    min-width:0;
    width:100%;
    margin-top:8px;
    box-shadow:none;
  }

  .apt-cta{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .apt-cta .btn{
    width:100%;
    min-height:46px;
    padding:12px 10px;
  }

  .apt-wrap{
    padding-left:14px;
    padding-right:14px;
  }

  [class*="grid"],
  [class*="row"],
  [class*="columns"],
  [class*="stack"],
  [class*="shell"],
  [class*="layout"]{
    min-width:0;
  }

  [class*="card"],
  [class*="panel"],
  [class*="box"]{
    min-width:0;
    max-width:100%;
  }

  img,
  iframe,
  video,
  canvas,
  svg,
  textarea,
  input,
  select,
  button{
    max-width:100%;
    box-sizing:border-box;
  }

  .apt-console-timeline-item,
  .apt-conflict-result-card,
  .apt-conflict-repair-card,
  .apt-dc-status-card{
    min-width:0;
  }

  .apt-vis-dock,
  [class*="vis-dock"],
  .daily-tools{
    display:none !important;
  }
}

@media (max-width: 680px){
  .apt-menu{
    grid-template-columns:1fr 1fr;
  }

  .apt-cta{
    grid-template-columns:1fr 1fr;
  }

  .h1{
    font-size:clamp(34px, 10vw, 48px);
  }

  .lead{
    font-size:16px;
  }

  .section,
  .hero{
    padding-top:56px;
    padding-bottom:44px;
  }
}

@media (max-width: 520px){
  .apt-menu,
  .apt-cta{
    grid-template-columns:1fr;
  }

  .apt-nav{
    padding:12px;
  }

  .apt-topbar{
    font-size:11px;
  }

  .apt-wrap{
    padding-left:12px;
    padding-right:12px;
  }
}


/* V36.1 — mobile sticky header hotfix for non-home pages */
@media (max-width: 900px){
  body:not(.home):not(.front-page) .apt-topbar,
  body:not(.home):not(.front-page) .apt-header{
    position: static !important;
    top: auto !important;
  }

  body:not(.home):not(.front-page) .apt-header{
    background: rgba(9,12,18,.92) !important;
    backdrop-filter: blur(8px);
  }

  body:not(.home):not(.front-page) .apt-nav{
    align-items: stretch;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  body:not(.home):not(.front-page) .apt-cta{
    order: 2;
  }

  body:not(.home):not(.front-page) .apt-menu{
    order: 3;
    margin-top: 4px;
  }

  body:not(.home):not(.front-page) #tool-start,
  body:not(.home):not(.front-page) #cbt,
  body:not(.home):not(.front-page) #clarity,
  body:not(.home):not(.front-page) .apt-wrap,
  body:not(.home):not(.front-page) main,
  body:not(.home):not(.front-page) article,
  body:not(.home):not(.front-page) .section,
  body:not(.home):not(.front-page) .hero{
    scroll-margin-top: 24px !important;
  }
}

/* V37 — mobile shell reset */
.apt-mobile-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:rgba(241,245,249,.92);
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
}
.apt-mobile-toggle .icon,
.apt-mobile-toggle .icon:before,
.apt-mobile-toggle .icon:after{
  display:block;
  width:16px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  content:"";
}
.apt-mobile-toggle .icon{
  position:relative;
}
.apt-mobile-toggle .icon:before{position:absolute;top:-5px;left:0;}
.apt-mobile-toggle .icon:after{position:absolute;top:5px;left:0;}

@media (max-width: 900px){
  html, body{
    max-width:100%;
    overflow-x:hidden !important;
  }

  body.apt-mobile-shell-ready .apt-topbar,
  body.apt-mobile-shell-ready .apt-header{
    position:static !important;
    top:auto !important;
  }

  body.apt-mobile-shell-ready .apt-topbar{
    padding:10px 14px !important;
    font-size:11px !important;
    line-height:1.5;
    background:rgba(9,12,18,.86) !important;
    backdrop-filter:blur(8px);
  }

  body.apt-mobile-shell-ready .apt-header{
    background:rgba(9,12,18,.94) !important;
    backdrop-filter:blur(12px) !important;
    border-bottom:1px solid rgba(255,255,255,.06);
  }

  body.apt-mobile-shell-ready .apt-nav{
    max-width:none !important;
    margin:0 !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "brand toggle"
      "cta cta"
      "menu menu";
    align-items:start !important;
    gap:12px !important;
    padding:14px !important;
    overflow:visible !important;
  }

  body.apt-mobile-shell-ready .apt-brand{
    grid-area:brand;
    min-width:0 !important;
    width:auto !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:6px !important;
  }

  body.apt-mobile-shell-ready .apt-brand .name,
  body.apt-mobile-shell-ready .apt-brand .tag{
    white-space:normal !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-toggle{
    grid-area:toggle;
    display:inline-flex !important;
    align-self:start;
  }

  body.apt-mobile-shell-ready .apt-cta{
    grid-area:cta;
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    order:initial !important;
  }

  body.apt-mobile-shell-ready .apt-cta .btn{
    width:100% !important;
    min-height:46px;
    padding:12px 10px !important;
  }

  body.apt-mobile-shell-ready .apt-menu{
    grid-area:menu;
    width:100% !important;
    min-width:0 !important;
    display:none !important;
    flex-direction:column !important;
    gap:8px !important;
    margin:0 !important;
    padding:8px !important;
    background:rgba(255,255,255,.02);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    box-shadow:0 16px 36px rgba(0,0,0,.22);
  }

  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-menu{
    display:flex !important;
  }

  body.apt-mobile-shell-ready .apt-menu > li{
    width:100% !important;
    min-width:0 !important;
  }

  body.apt-mobile-shell-ready .apt-menu > li > a,
  body.apt-mobile-shell-ready .apt-menu a{
    display:flex !important;
    align-items:center;
    justify-content:flex-start !important;
    width:100% !important;
    min-height:46px;
    padding:12px 14px !important;
    text-align:left !important;
    white-space:normal !important;
    line-height:1.35;
    border-radius:12px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
  }

  body.apt-mobile-shell-ready .apt-menu .sub-menu{
    position:static !important;
    top:auto !important;
    left:auto !important;
    min-width:0 !important;
    width:100% !important;
    display:none !important;
    box-shadow:none !important;
    margin-top:6px !important;
    padding:4px 0 0 10px !important;
    background:transparent !important;
    border:none !important;
    gap:6px !important;
  }

  body.apt-mobile-shell-ready .apt-menu li.is-open > .sub-menu,
  body.apt-mobile-shell-ready .apt-menu li:focus-within > .sub-menu{
    display:grid !important;
  }

  body.apt-mobile-shell-ready .apt-menu .sub-menu a{
    background:rgba(255,255,255,.025) !important;
    border-color:rgba(255,255,255,.04) !important;
    font-size:13px !important;
  }

  body.apt-mobile-shell-ready .apt-wrap,
  body.apt-mobile-shell-ready main,
  body.apt-mobile-shell-ready article,
  body.apt-mobile-shell-ready .section,
  body.apt-mobile-shell-ready .hero,
  body.apt-mobile-shell-ready .apt-console-dash,
  body.apt-mobile-shell-ready .apt-decode-root,
  body.apt-mobile-shell-ready .apt-mf-root,
  body.apt-mobile-shell-ready .apt-conflict-main,
  body.apt-mobile-shell-ready .apt-dc-main-panel,
  body.apt-mobile-shell-ready .apt-dc-overview-panel,
  body.apt-mobile-shell-ready .apt-dc-side-panel,
  body.apt-mobile-shell-ready .apt-home-shell,
  body.apt-mobile-shell-ready .apt-home-shell-v20{
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box;
  }

  body.apt-mobile-shell-ready .apt-wrap{
    padding-left:14px !important;
    padding-right:14px !important;
  }

  body.apt-mobile-shell-ready .apt-city-grid,
  body.apt-mobile-shell-ready .apt-console-meta-grid,
  body.apt-mobile-shell-ready .apt-console-tool-grid,
  body.apt-mobile-shell-ready .apt-conflict-grid,
  body.apt-mobile-shell-ready .apt-conflict-result-grid,
  body.apt-mobile-shell-ready .apt-conflict-repair-grid,
  body.apt-mobile-shell-ready .apt-decode-grid,
  body.apt-mobile-shell-ready .apt-dc-grid,
  body.apt-mobile-shell-ready .apt-dc-status-grid,
  body.apt-mobile-shell-ready .apt-home-grid,
  body.apt-mobile-shell-ready .apt-home-grid-three,
  body.apt-mobile-shell-ready .apt-mini-tools-grid,
  body.apt-mobile-shell-ready .apt-tool-cta-grid,
  body.apt-mobile-shell-ready .grid2,
  body.apt-mobile-shell-ready .grid3,
  body.apt-mobile-shell-ready .hero-grid,
  body.apt-mobile-shell-ready .split{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  body.apt-mobile-shell-ready .apt-city-actions,
  body.apt-mobile-shell-ready .hero-actions,
  body.apt-mobile-shell-ready .cta-row,
  body.apt-mobile-shell-ready .apt-console-summary-actions,
  body.apt-mobile-shell-ready .apt-dc-actions,
  body.apt-mobile-shell-ready .apt-dc-side-actions,
  body.apt-mobile-shell-ready .apt-preview-actions,
  body.apt-mobile-shell-ready .apt-home-actions,
  body.apt-mobile-shell-ready .apt-home-actions-primary{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }

  body.apt-mobile-shell-ready .apt-city-actions .btn,
  body.apt-mobile-shell-ready .hero-actions .btn,
  body.apt-mobile-shell-ready .cta-row .btn,
  body.apt-mobile-shell-ready .apt-console-summary-actions .btn,
  body.apt-mobile-shell-ready .apt-dc-actions .btn,
  body.apt-mobile-shell-ready .apt-dc-side-actions .btn,
  body.apt-mobile-shell-ready .apt-preview-actions .btn,
  body.apt-mobile-shell-ready .apt-home-actions .btn,
  body.apt-mobile-shell-ready .apt-home-actions-primary .btn,
  body.apt-mobile-shell-ready .apt-tool-button-large,
  body.apt-mobile-shell-ready .apt-tool-button-featured,
  body.apt-mobile-shell-ready .apt-tool-stack-featured,
  body.apt-mobile-shell-ready .apt-mini-link{
    width:100% !important;
  }

  body.apt-mobile-shell-ready .apt-city-card,
  body.apt-mobile-shell-ready .apt-console-tool-card,
  body.apt-mobile-shell-ready .apt-console-timeline-item,
  body.apt-mobile-shell-ready .apt-conflict-card,
  body.apt-mobile-shell-ready .apt-conflict-result-card,
  body.apt-mobile-shell-ready .apt-conflict-repair-card,
  body.apt-mobile-shell-ready .apt-dc-status-card,
  body.apt-mobile-shell-ready .apt-home-panel,
  body.apt-mobile-shell-ready .apt-preview-card,
  body.apt-mobile-shell-ready .apt-preview-window,
  body.apt-mobile-shell-ready .apt-tool-cta-card,
  body.apt-mobile-shell-ready .card,
  body.apt-mobile-shell-ready .panel{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box;
  }

  body.apt-mobile-shell-ready img,
  body.apt-mobile-shell-ready iframe,
  body.apt-mobile-shell-ready video,
  body.apt-mobile-shell-ready canvas,
  body.apt-mobile-shell-ready svg,
  body.apt-mobile-shell-ready textarea,
  body.apt-mobile-shell-ready input,
  body.apt-mobile-shell-ready select,
  body.apt-mobile-shell-ready button{
    max-width:100% !important;
    box-sizing:border-box;
  }

  body.apt-mobile-shell-ready .apt-vis-dock,
  body.apt-mobile-shell-ready [class*="vis-dock"],
  body.apt-mobile-shell-ready .daily-tools{
    display:none !important;
  }
}

@media (max-width: 520px){
  body.apt-mobile-shell-ready .apt-cta{
    grid-template-columns:1fr !important;
  }

  body.apt-mobile-shell-ready .apt-wrap{
    padding-left:12px !important;
    padding-right:12px !important;
  }
}


/* V37.1 — mobile menu polish */
@media (max-width: 900px){
  body.apt-mobile-shell-ready .apt-topbar{
    padding:8px 12px !important;
    font-size:10.5px !important;
    line-height:1.35 !important;
  }

  body.apt-mobile-shell-ready .apt-header{
    background:rgba(9,12,18,.96) !important;
    box-shadow:0 8px 22px rgba(0,0,0,.18);
  }

  body.apt-mobile-shell-ready .apt-nav{
    gap:10px !important;
    padding:10px 12px 12px !important;
  }

  body.apt-mobile-shell-ready .apt-brand{
    gap:4px !important;
  }

  body.apt-mobile-shell-ready .apt-brand .mark{
    width:9px !important;
    height:9px !important;
    box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 0 20px rgba(47,107,255,.28) !important;
  }

  body.apt-mobile-shell-ready .apt-brand .name{
    color:rgba(241,245,249,.96) !important;
    font-size:12px !important;
    font-weight:700 !important;
    letter-spacing:.05em !important;
    text-shadow:0 1px 0 rgba(0,0,0,.18);
  }

  body.apt-mobile-shell-ready .apt-brand .tag{
    color:rgba(168,179,196,.94) !important;
    font-size:10px !important;
    font-weight:600 !important;
    letter-spacing:.16em !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-toggle{
    padding:9px 12px !important;
    border-radius:14px !important;
  }

  body.apt-mobile-shell-ready .apt-cta{
    gap:8px !important;
  }

  body.apt-mobile-shell-ready .apt-cta .btn{
    min-height:42px !important;
    padding:11px 10px !important;
    border-radius:14px !important;
  }

  body.home.apt-mobile-shell-ready .apt-cta .btn,
  body.front-page.apt-mobile-shell-ready .apt-cta .btn{
    color:rgba(241,245,249,.94) !important;
    background:rgba(255,255,255,.035) !important;
    border-color:rgba(255,255,255,.10) !important;
    box-shadow:none !important;
  }

  body.home.apt-mobile-shell-ready .apt-cta .btn-primary,
  body.front-page.apt-mobile-shell-ready .apt-cta .btn-primary{
    color:#fff !important;
    border-color:rgba(184,159,90,.35) !important;
    background:linear-gradient(90deg, rgba(184,159,90,.88), rgba(47,107,255,.88)) !important;
    box-shadow:0 12px 32px rgba(47,107,255,.16) !important;
  }

  body.home.apt-mobile-shell-ready .apt-cta .btn-primary .dot,
  body.front-page.apt-mobile-shell-ready .apt-cta .btn-primary .dot{
    background:rgba(255,255,255,.92) !important;
  }

  body.apt-mobile-shell-ready .apt-menu{
    gap:6px !important;
    padding:6px !important;
    margin-top:2px !important;
    background:rgba(255,255,255,.015) !important;
    border:1px solid rgba(255,255,255,.06) !important;
    border-radius:16px !important;
    box-shadow:0 10px 24px rgba(0,0,0,.18) !important;
  }

  body.apt-mobile-shell-ready .apt-menu > li > a,
  body.apt-mobile-shell-ready .apt-menu a{
    min-height:40px !important;
    padding:10px 12px !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.025) !important;
    border-color:rgba(255,255,255,.04) !important;
    color:rgba(241,245,249,.92) !important;
    font-size:14px !important;
  }

  body.apt-mobile-shell-ready .apt-menu .sub-menu{
    padding:4px 0 0 8px !important;
    gap:4px !important;
  }

  body.apt-mobile-shell-ready .apt-menu .sub-menu a{
    min-height:38px !important;
    font-size:13px !important;
    color:rgba(222,228,238,.9) !important;
  }
}

@media (max-width: 520px){
  body.apt-mobile-shell-ready .apt-nav{
    padding:10px 10px 12px !important;
  }

  body.apt-mobile-shell-ready .apt-topbar{
    padding:8px 10px !important;
  }

  body.apt-mobile-shell-ready .apt-menu > li > a,
  body.apt-mobile-shell-ready .apt-menu a{
    min-height:38px !important;
    padding:9px 11px !important;
  }
}


/* V37.2 — mobile tools accordion + solid dark drawer */
@media (max-width: 900px){
  html.apt-mobile-menu-open,
  body.apt-mobile-menu-open{
    overflow:hidden !important;
    overscroll-behavior:none !important;
  }

  body.apt-mobile-shell-ready .apt-nav{
    position:relative;
    z-index:1003;
  }

  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-menu{
    position:fixed !important;
    top:var(--apt-mobile-menu-top, 130px) !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    z-index:1002 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    margin:0 !important;
    padding:14px 12px 28px !important;
    border-radius:0 !important;
    border:none !important;
    border-top:1px solid rgba(255,255,255,.07) !important;
    background:linear-gradient(180deg, rgba(7,10,18,.98), rgba(7,10,18,.99)) !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
  }

  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-menu > li{
    opacity:1 !important;
    transform:none !important;
  }

  body.apt-mobile-shell-ready .apt-menu > li.menu-item-has-children > a{
    justify-content:space-between !important;
  }

  body.apt-mobile-shell-ready .apt-menu > li.menu-item-has-children > a::after{
    transition:transform .18s ease;
  }

  body.apt-mobile-shell-ready .apt-menu li.is-open > a::after{
    transform:rotate(180deg);
  }

  body.apt-mobile-shell-ready .apt-menu .sub-menu{
    padding:8px 0 0 12px !important;
    gap:6px !important;
  }

  body.apt-mobile-shell-ready .apt-menu li.is-open > .sub-menu,
  body.apt-mobile-shell-ready .apt-menu li.is-open:focus-within > .sub-menu{
    display:flex !important;
    flex-direction:column !important;
  }

  body.apt-mobile-shell-ready .apt-menu .sub-menu a{
    background:rgba(255,255,255,.035) !important;
    color:rgba(241,245,249,.94) !important;
  }

  body:not(.home):not(.front-page).apt-mobile-shell-ready,
  body:not(.home):not(.front-page).apt-mobile-shell-ready #page,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .site,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .site-main,
  body:not(.home):not(.front-page).apt-mobile-shell-ready main{
    background:radial-gradient(circle at 18% 10%, rgba(47,107,255,.16), transparent 28%), radial-gradient(circle at 82% 0%, rgba(184,159,90,.12), transparent 24%), #070b13 !important;
  }

  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-wrap,
  body:not(.home):not(.front-page).apt-mobile-shell-ready article,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .section,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .hero,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-console-dash,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-decode-root,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-mf-root,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-conflict-main,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-dc-main-panel,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-dc-overview-panel,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-dc-side-panel,
  body:not(.home):not(.front-page).apt-mobile-shell-ready .apt-page-shell{
    background:transparent !important;
  }
}


.apt-steps{margin:0;padding-left:1.2rem;color:var(--text);display:grid;gap:12px}.apt-steps li{line-height:1.6}

/* V41.2 — therapist slot logic + waitlist */
.apt-founding-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:18px}
.apt-founding-card{border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(13,18,31,.88),rgba(10,14,24,.82));border-radius:18px;padding:20px;box-shadow:var(--shadow2)}
.apt-founding-card h3{margin:10px 0 8px;font-size:22px}
.apt-founding-card p{color:rgba(241,245,249,.78);line-height:1.6}
.apt-founding-count{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-family:'IBM Plex Mono', ui-monospace, monospace;background:rgba(47,107,255,.12);color:rgba(193,219,255,.96);border:1px solid rgba(47,107,255,.28)}
.apt-founding-count.limited{background:rgba(184,159,90,.14);border-color:rgba(184,159,90,.38);color:rgba(245,233,196,.98)}
.apt-founding-count.full{background:rgba(220,68,68,.14);border-color:rgba(220,68,68,.32);color:rgba(255,210,210,.98)}
.apt-founding-count.open{background:rgba(47,107,255,.12);border-color:rgba(47,107,255,.28);color:rgba(193,219,255,.96)}
.apt-slot-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.apt-slot-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);font-size:12px;color:rgba(241,245,249,.78)}
.apt-founding-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.apt-why-callout{margin-top:14px;padding:16px 18px;border-radius:16px;background:rgba(47,107,255,.09);border:1px solid rgba(47,107,255,.22);color:rgba(241,245,249,.92);line-height:1.65}
.apt-value-stack{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.apt-value-panel{padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);line-height:1.65;color:rgba(241,245,249,.8)}
.apt-value-panel strong{display:block;color:rgba(241,245,249,.95);margin-bottom:6px}
.apt-city-strip{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.apt-city-chip{display:inline-flex;align-items:center;padding:10px 13px;border-radius:999px;text-decoration:none;color:rgba(241,245,249,.9);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.apt-waitlist-shell{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;align-items:start}
.apt-waitlist-form{display:grid;gap:12px;margin-top:16px}
.apt-waitlist-form label{display:grid;gap:6px;color:rgba(241,245,249,.9);font-size:14px}
.apt-waitlist-form input,.apt-waitlist-form select,.apt-waitlist-form textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--text);font:inherit}
.apt-waitlist-form textarea{min-height:120px;resize:vertical}
.apt-alert{padding:14px 16px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);margin-top:16px}
.apt-alert.success{background:rgba(32,130,78,.14);border-color:rgba(32,130,78,.28);color:#d8ffe7}
.apt-alert.error{background:rgba(190,67,67,.14);border-color:rgba(190,67,67,.28);color:#ffd9d9}
.apt-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:18px}
.apt-status-card{padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.apt-status-card h3{margin:10px 0 8px}
.apt-status-card p{margin:0;color:rgba(241,245,249,.78)}
@media (max-width:980px){.apt-waitlist-shell,.apt-value-stack{grid-template-columns:1fr}}

/* V41.2 — therapist proofline + layout helpers */
.apt-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.apt-proofline{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.apt-proof-pill{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:rgba(241,245,249,.88);font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-family:'IBM Plex Mono', ui-monospace, monospace}
@media (max-width:980px){.apt-grid-2{grid-template-columns:1fr}}


/* V50.1 — theme absorption pass */
body.apt-path-story-book .apt-vis-dock,
body.apt-path-story-book .daily-tools,
body.apt-path-therapist-success .apt-vis-dock,
body.apt-path-therapist-success .daily-tools{
  display:none !important;
}

@media (max-width: 900px){
  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-header::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(2,6,12,.72);
    backdrop-filter:blur(2px);
    z-index:1001;
    pointer-events:auto;
  }

  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-menu{
    width:min(100vw, 100%);
    max-width:100vw;
    box-shadow:0 24px 80px rgba(0,0,0,.45) !important;
  }

  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-cta,
  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-brand,
  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-mobile-toggle{
    position:relative;
    z-index:1004;
  }

  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-topbar,
  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-header{
    background:rgba(7,10,18,.96) !important;
  }
}


/* V50.3 — dedicated mobile drawer content fix */
.apt-mobile-drawer{display:none;}
@media (max-width: 900px){
  body.apt-mobile-shell-ready .apt-mobile-drawer{
    display:block;
    grid-area:menu;
    width:100%;
  }

  body.apt-mobile-shell-ready .apt-mobile-drawer[hidden]{
    display:none !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-drawer .apt-mobile-menu{
    display:none;
    list-style:none;
    margin:0;
    padding:0;
  }

  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-mobile-drawer{
    position:fixed;
    top:var(--apt-mobile-menu-top, 130px);
    left:0;
    right:0;
    bottom:0;
    z-index:1005;
    padding:14px 12px 28px;
    overflow-y:auto;
    overflow-x:hidden;
    background:linear-gradient(180deg, rgba(7,10,18,.98), rgba(7,10,18,.99));
    border-top:1px solid rgba(255,255,255,.07);
  }

  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-mobile-drawer .apt-mobile-menu,
  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-mobile-menu[hidden]{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }

  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-mobile-menu > li,
  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-mobile-menu .sub-menu,
  body.apt-mobile-shell-ready .apt-nav.apt-mobile-menu-open .apt-mobile-menu a{
    visibility:visible !important;
    opacity:1 !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-menu > li{list-style:none;width:100%;}
  body.apt-mobile-shell-ready .apt-mobile-menu > li > a,
  body.apt-mobile-shell-ready .apt-mobile-menu a{
    display:flex !important;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    min-height:48px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
    color:rgba(241,245,249,.96) !important;
    text-decoration:none;
    white-space:normal;
    line-height:1.35;
  }
  body.apt-mobile-shell-ready .apt-mobile-menu > li.menu-item-has-children > a{justify-content:space-between;}
  body.apt-mobile-shell-ready .apt-mobile-menu > li.menu-item-has-children > a::after{content:'▾';opacity:.8;font-size:12px;transition:transform .18s ease;}
  body.apt-mobile-shell-ready .apt-mobile-menu li.is-open > a::after{transform:rotate(180deg);}
  body.apt-mobile-shell-ready .apt-mobile-menu .sub-menu{
    display:none;
    list-style:none;
    margin:8px 0 0 0;
    padding:0 0 0 12px;
    gap:8px;
    flex-direction:column;
  }
  body.apt-mobile-shell-ready .apt-mobile-menu li.is-open > .sub-menu,
  body.apt-mobile-shell-ready .apt-mobile-menu li.is-open:focus-within > .sub-menu{
    display:flex !important;
  }
  body.apt-mobile-shell-ready .apt-mobile-menu .sub-menu a{
    min-height:44px;
    background:rgba(255,255,255,.04);
    color:rgba(233,239,249,.94) !important;
  }

  /* hide desktop menu list on mobile; drawer is the source of truth */
  body.apt-mobile-shell-ready .apt-nav > .apt-menu{
    display:none !important;
  }
}


/* V50.5 — theme-only mobile menu reset */
@media (max-width: 900px){
  body.apt-mobile-reset-ready .apt-header::after,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .apt-header::after,
  body.apt-mobile-reset-ready .apt-nav::after,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .apt-nav::after{
    display:none !important;
    content:none !important;
  }

  body.apt-mobile-reset-ready .apt-topbar{
    position:relative !important;
    z-index:5 !important;
  }

  body.apt-mobile-reset-ready .apt-header{
    position:relative !important;
    top:auto !important;
    z-index:20 !important;
    background:rgba(6,10,18,.98) !important;
    backdrop-filter: blur(14px) !important;
    border-bottom:1px solid rgba(255,255,255,.06) !important;
  }

  body.apt-mobile-reset-ready .apt-nav{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:start !important;
    gap:14px !important;
    padding:16px 16px 18px !important;
  }

  body.apt-mobile-reset-ready .apt-brand{
    grid-column:1 / 2 !important;
    min-width:0 !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-toggle{
    grid-column:2 / 3 !important;
    display:inline-flex !important;
    justify-self:end !important;
    align-self:start !important;
    min-width:140px !important;
  }

  body.apt-mobile-reset-ready .apt-menu{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  body.apt-mobile-reset-ready .apt-cta{
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    width:100% !important;
  }

  body.apt-mobile-reset-ready .apt-cta .btn{
    width:100% !important;
    justify-content:center !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer{
    grid-column:1 / -1 !important;
    display:none !important;
    margin-top:4px !important;
    width:100% !important;
  }

  body.apt-mobile-reset-ready .apt-nav.apt-mobile-menu-open .apt-mobile-drawer,
  body.apt-mobile-reset-ready .apt-nav.apt-mobile-menu-open .apt-mobile-drawer[hidden]{
    display:block !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-panel{
    padding:6px 0 0 !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-group{
    display:grid !important;
    gap:12px !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-link,
  body.apt-mobile-reset-ready .apt-mobile-drawer-summary{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:100% !important;
    min-height:56px !important;
    padding:0 18px !important;
    border-radius:20px !important;
    border:1px solid rgba(255,255,255,.12) !important;
    background:linear-gradient(180deg, rgba(10,15,26,.96), rgba(8,12,20,.98)) !important;
    color:#eef3ff !important;
    font-weight:600 !important;
    font-size:17px !important;
    text-decoration:none !important;
    box-shadow:0 10px 30px rgba(0,0,0,.25) !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-link:hover,
  body.apt-mobile-reset-ready .apt-mobile-drawer-summary:hover{
    border-color:rgba(102,163,255,.35) !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-tools{
    margin-top:12px !important;
    display:grid !important;
    gap:10px !important;
    padding:0 6px 4px !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-tools .apt-mobile-drawer-link{
    min-height:52px !important;
    font-size:16px !important;
    padding:0 16px !important;
    background:rgba(10,15,26,.85) !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-details{
    border:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-details[open] .apt-mobile-drawer-summary{
    border-color:rgba(102,163,255,.38) !important;
    box-shadow:0 0 0 1px rgba(102,163,255,.08), 0 10px 30px rgba(0,0,0,.28) !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-summary{
    list-style:none !important;
    cursor:pointer !important;
  }
  body.apt-mobile-reset-ready .apt-mobile-drawer-summary::-webkit-details-marker{ display:none !important; }

  body.apt-mobile-reset-ready .apt-mobile-drawer-summary .apt-mobile-plus{
    font-size:28px !important;
    line-height:1 !important;
    color:#eef3ff !important;
  }

  body.apt-mobile-reset-ready .apt-mobile-drawer-details[open] .apt-mobile-plus{
    transform:rotate(45deg) !important;
  }
}


/* V50.6 — theme-only mobile menu reset */
@media (max-width: 900px){
  body.apt-mobile-shell-ready{
    --apt-mobile-top-space: calc(env(safe-area-inset-top, 0px) + 86px);
  }

  body.apt-mobile-shell-ready .apt-cta{
    display:none !important;
  }

  body.apt-mobile-shell-ready .apt-menu,
  body.apt-mobile-shell-ready .apt-mobile-drawer{
    display:none !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-drawer{
    display:none;
  }

  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-mobile-reset-drawer{
    display:block !important;
    position:fixed;
    inset:0;
    z-index:1005;
    padding-top:var(--apt-mobile-top-space);
    background:linear-gradient(180deg, rgba(7,10,18,.985), rgba(5,8,14,.995));
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-topbar,
  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-header{
    background:rgba(7,10,18,.98) !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-panel{
    padding:18px 18px calc(36px + env(safe-area-inset-bottom, 0px));
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-actions{
    display:grid;
    gap:12px;
    margin-bottom:16px;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-actions .btn,
  body.apt-mobile-shell-ready .apt-mobile-reset-link,
  body.apt-mobile-shell-ready .apt-mobile-reset-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:58px;
    padding:0 18px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.12);
    background:linear-gradient(180deg, rgba(10,15,26,.96), rgba(8,12,20,.98));
    color:#eef3ff !important;
    text-decoration:none !important;
    font-weight:600;
    font-size:17px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-actions .btn.btn-primary{
    background:linear-gradient(90deg, rgba(194,166,95,.95), rgba(70,116,255,.96)) !important;
    color:#fff !important;
    border-color:rgba(255,255,255,.14) !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-nav{
    display:grid;
    gap:12px;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-link:hover,
  body.apt-mobile-shell-ready .apt-mobile-reset-summary:hover{
    border-color:rgba(102,163,255,.35) !important;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-details{
    margin:0;
    padding:0;
    border:none;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-summary{
    list-style:none;
    cursor:pointer;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-summary::-webkit-details-marker{display:none;}

  body.apt-mobile-shell-ready .apt-mobile-reset-plus{
    font-size:28px;
    line-height:1;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-details[open] .apt-mobile-reset-plus{
    transform:rotate(45deg);
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-tools{
    display:grid;
    gap:10px;
    padding:12px 6px 0;
  }

  body.apt-mobile-shell-ready .apt-mobile-reset-tools .apt-mobile-reset-link{
    min-height:52px;
    font-size:16px;
    padding:0 16px;
    background:rgba(10,15,26,.85);
  }

  body.apt-mobile-shell-ready.apt-mobile-menu-open .daily-tools,
  body.apt-mobile-shell-ready.apt-mobile-menu-open .apt-vis-dock,
  body.apt-mobile-shell-ready.apt-mobile-menu-open [class*="vis-dock"]{
    display:none !important;
  }

  html.apt-mobile-menu-open,
  body.apt-mobile-menu-open{
    overflow:hidden !important;
    height:100%;
  }
}


/* V50.6 — true mobile nav drawer */
@media (max-width: 900px){
  body.apt-mobile-reset-ready .apt-nav{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:"brand toggle" "cta cta" !important;
    align-items:start !important;
    gap:14px !important;
    padding:16px !important;
  }
  body.apt-mobile-reset-ready .apt-menu{display:none !important;}
  body.apt-mobile-reset-ready .apt-mobile-toggle{display:inline-flex !important; justify-self:end !important; min-width:140px !important;}
  body.apt-mobile-reset-ready .apt-cta{display:grid !important; grid-template-columns:1fr !important; gap:12px !important; width:100% !important;}
  body.apt-mobile-reset-ready .apt-cta .btn{width:100% !important; justify-content:center !important;}

  body.apt-mobile-reset-ready .apt-mobile-drawer-shell[hidden]{display:none !important;}
  body.apt-mobile-reset-ready .apt-mobile-drawer-shell{
    position:fixed !important;
    top:var(--apt-mobile-drawer-top, 160px) !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    z-index:2000 !important;
    display:block !important;
  }
  body.apt-mobile-reset-ready .apt-mobile-drawer-backdrop{
    position:absolute !important;
    inset:0 !important;
    border:0 !important;
    margin:0 !important;
    padding:0 !important;
    background:rgba(5,8,14,.68) !important;
    display:block !important;
  }
  body.apt-mobile-reset-ready .apt-mobile-drawer-panel{
    position:relative !important;
    z-index:1 !important;
    height:100% !important;
    overflow-y:auto !important;
    padding:16px 14px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
    background:linear-gradient(180deg, rgba(7,10,18,.98), rgba(7,10,18,.99)) !important;
    border-top:1px solid rgba(255,255,255,.06) !important;
  }
  body.apt-mobile-reset-ready .apt-mobile-drawer-links{display:grid !important; gap:12px !important;}
  body.apt-mobile-reset-ready .apt-mobile-drawer-link,
  body.apt-mobile-reset-ready .apt-mobile-drawer-summary{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:100% !important;
    min-height:56px !important;
    padding:0 18px !important;
    border-radius:20px !important;
    border:1px solid rgba(255,255,255,.12) !important;
    background:linear-gradient(180deg, rgba(10,15,26,.96), rgba(8,12,20,.98)) !important;
    color:#eef3ff !important;
    font-weight:600 !important;
    font-size:17px !important;
    text-decoration:none !important;
  }
  body.apt-mobile-reset-ready .apt-mobile-drawer-summary{cursor:pointer !important; list-style:none !important;}
  body.apt-mobile-reset-ready .apt-mobile-drawer-summary::-webkit-details-marker{display:none !important;}
  body.apt-mobile-reset-ready .apt-mobile-plus{font-size:28px !important; line-height:1 !important; transition:transform .18s ease !important;}
  body.apt-mobile-reset-ready .apt-mobile-drawer-details[open] .apt-mobile-plus{transform:rotate(45deg) !important;}
  body.apt-mobile-reset-ready .apt-mobile-drawer-details{margin:0 !important; padding:0 !important; border:none !important;}
  body.apt-mobile-reset-ready .apt-mobile-drawer-tools{display:grid !important; gap:10px !important; padding:12px 6px 0 !important;}
  body.apt-mobile-reset-ready .apt-mobile-drawer-tools .apt-mobile-drawer-link{min-height:52px !important; font-size:16px !important;}

  /* ensure page/cards never masquerade as menu content */
  body.apt-mobile-reset-ready.apt-mobile-menu-open .apt-wrap,
  body.apt-mobile-reset-ready.apt-mobile-menu-open main,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .section,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .hero,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .apt-home-shell,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .apt-home-shell-v20,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .apt-home-mobile-more-tools,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .apt-vis-dock,
  body.apt-mobile-reset-ready.apt-mobile-menu-open .daily-tools,
  body.apt-mobile-reset-ready.apt-mobile-menu-open [class*="vis-dock"]{
    pointer-events:none !important;
  }
}


/* V50.7 — simple inline mobile nav reset */
@media (max-width: 900px){
  .apt-header{position:relative !important; top:auto !important;}
  .apt-nav{display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; align-items:start !important; gap:14px !important; padding:16px !important;}
  .apt-brand{grid-column:1 / 2 !important; min-width:0 !important;}
  .apt-brand .tag{display:block !important;}
  .apt-menu{display:none !important;}
  .apt-cta{display:none !important;}

  .apt-mobile-drawer-shell{display:none !important;}

  .apt-mobile-inline-nav{display:block !important; grid-column:2 / 3 !important; align-self:start !important; justify-self:end !important; min-width:160px;}
  .apt-mobile-inline-nav > summary{list-style:none !important;}
  .apt-mobile-inline-nav > summary::-webkit-details-marker{display:none !important;}
  .apt-mobile-inline-nav > summary.apt-mobile-inline-toggle{display:flex !important; align-items:center !important; justify-content:center !important; gap:12px !important; min-height:58px !important; padding:0 22px !important; border-radius:20px !important; border:1px solid rgba(255,255,255,.12) !important; background:linear-gradient(180deg, rgba(10,15,26,.96), rgba(8,12,20,.98)) !important; color:#eef3ff !important; font-weight:600 !important; font-size:17px !important; cursor:pointer !important; box-shadow:0 10px 30px rgba(0,0,0,.25) !important;}
  .apt-mobile-inline-nav .apt-mobile-inline-label-close{display:none !important;}
  .apt-mobile-inline-nav[open] .apt-mobile-inline-label-open{display:none !important;}
  .apt-mobile-inline-nav[open] .apt-mobile-inline-label-close{display:inline !important;}
  .apt-mobile-inline-nav .icon{display:inline-block; position:relative; width:24px; height:2px; border-radius:999px; background:#eef3ff; box-shadow:0 -7px 0 0 #eef3ff, 0 7px 0 0 #eef3ff;}

  .apt-mobile-inline-nav[open]{grid-column:1 / -1 !important;}
  .apt-mobile-inline-nav[open] > summary.apt-mobile-inline-toggle{justify-self:end !important; width:max-content !important; margin-left:auto !important;}

  .apt-mobile-inline-panel{display:none !important;}
  .apt-mobile-inline-nav[open] .apt-mobile-inline-panel{display:grid !important; gap:12px !important; margin-top:14px !important; padding:0 0 8px !important;}

  .apt-mobile-inline-actions,.apt-mobile-inline-links,.apt-mobile-inline-tools{display:grid !important; gap:12px !important;}

  .apt-mobile-inline-link,.apt-mobile-inline-action,.apt-mobile-inline-tools a,.apt-mobile-inline-tools summary{display:flex !important; align-items:center !important; justify-content:space-between !important; width:100% !important; min-height:58px !important; padding:0 18px !important; border-radius:20px !important; border:1px solid rgba(255,255,255,.12) !important; background:linear-gradient(180deg, rgba(10,15,26,.96), rgba(8,12,20,.98)) !important; color:#eef3ff !important; text-decoration:none !important; font-weight:600 !important; font-size:17px !important; box-shadow:0 10px 30px rgba(0,0,0,.25) !important;}
  .apt-mobile-inline-action.btn-primary{background:linear-gradient(90deg, rgba(194,166,95,.95), rgba(70,116,255,.96)) !important; color:#fff !important; border-color:rgba(255,255,255,.14) !important;}

  .apt-mobile-inline-tools{margin:0; padding:0; border:none !important;}
  .apt-mobile-inline-tools > summary{list-style:none !important; cursor:pointer !important;}
  .apt-mobile-inline-tools > summary::-webkit-details-marker{display:none !important;}
  .apt-mobile-inline-tools .apt-mobile-plus{font-size:28px !important; line-height:1 !important;}
  .apt-mobile-inline-tools[open] .apt-mobile-plus{transform:rotate(45deg) !important;}
  .apt-mobile-inline-tools-list{display:none !important;}
  .apt-mobile-inline-tools[open] .apt-mobile-inline-tools-list{display:grid !important; gap:10px !important; padding:12px 6px 0 !important;}
  .apt-mobile-inline-tools-list a{min-height:52px !important; font-size:16px !important; padding:0 16px !important; background:rgba(10,15,26,.85) !important;}
}

@media (min-width: 901px){
  .apt-mobile-inline-nav{display:none !important;}
}


/* V51.3 — mobile inline menu stability */
@media (max-width: 900px){
  body.apt-inline-menu-open,
  html.apt-inline-menu-open{
    overflow:hidden;
  }
  .apt-mobile-inline-nav[open] .apt-mobile-inline-panel{
    position:relative;
    z-index:120;
  }
  .apt-mobile-inline-nav[open] > summary.apt-mobile-inline-toggle{
    position:sticky;
    top:0;
    z-index:121;
  }
  .apt-mobile-inline-link[href*="#tool-start"]{
    scroll-margin-top:120px;
  }
}


/* V51.6 — mobile nav + input stability */
@media (max-width: 900px){
  html{
    scroll-behavior:auto !important;
    -webkit-text-size-adjust:100%;
  }

  body{
    -webkit-text-size-adjust:100%;
  }

  body.apt-inline-menu-open .apt-topbar,
  body.apt-inline-menu-open .apt-header{
    z-index:2103 !important;
  }

  .apt-mobile-inline-nav{
    min-width:0 !important;
    width:auto !important;
  }

  .apt-mobile-inline-nav[open]{
    grid-column:2 / 3 !important;
  }

  .apt-mobile-inline-nav[open] > summary.apt-mobile-inline-toggle{
    position:relative !important;
    z-index:2104 !important;
    margin-left:auto !important;
  }

  .apt-mobile-inline-panel{
    display:none !important;
  }

  .apt-mobile-inline-nav[open] .apt-mobile-inline-panel{
    display:grid !important;
    gap:14px !important;
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:var(--apt-mobile-nav-top, 118px) !important;
    height:var(--apt-mobile-nav-height, calc(100dvh - 118px)) !important;
    max-height:var(--apt-mobile-nav-height, calc(100dvh - 118px)) !important;
    margin:0 !important;
    padding:16px 14px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    background:linear-gradient(180deg, rgba(7,10,18,.985), rgba(5,8,14,.995)) !important;
    border-top:1px solid rgba(255,255,255,.06) !important;
    box-shadow:0 18px 60px rgba(0,0,0,.40) !important;
    z-index:2102 !important;
  }

  body.apt-inline-menu-open::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(4,8,14,.78);
    z-index:2101;
    pointer-events:none;
  }

  .apt-mobile-inline-actions,
  .apt-mobile-inline-links,
  .apt-mobile-inline-section{
    display:grid !important;
    gap:12px !important;
  }

  .apt-mobile-inline-heading{
    padding:4px 4px 0 !important;
    font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size:12px !important;
    letter-spacing:.18em !important;
    text-transform:uppercase !important;
    color:rgba(168,179,196,.82) !important;
  }

  .apt-mobile-inline-tools-list{
    display:grid !important;
    gap:10px !important;
    padding:0 4px 4px !important;
  }

  .apt-mobile-inline-tools-list .apt-mobile-inline-link{
    min-height:52px !important;
    padding:0 16px !important;
    font-size:16px !important;
    background:rgba(10,15,26,.85) !important;
  }

  .apt-vis-mobile-priority,
  .apt-vis-more[data-apt-vis-more="1"]{
    display:none !important;
  }

  textarea.input,
  .input,
  .apt-mf-root textarea,
  .apt-mf-root select,
  .apt-mf-root input[type="text"],
  .apt-reset-root .apt-input,
  .apt-reset-root .apt-select,
  .apt-conflict-field select,
  .apt-conflict-field textarea,
  .apt-dc-form input,
  .apt-dc-form textarea,
  .apt-waitlist-form input,
  .apt-waitlist-form textarea,
  .apt-waitlist-form select{
    font-size:16px !important;
  }

  html.apt-mobile-input-focus,
  body.apt-mobile-input-focus{
    scroll-behavior:auto !important;
  }

  body.apt-mobile-input-focus .apt-topbar,
  body.apt-mobile-input-focus .apt-header{
    position:static !important;
    top:auto !important;
  }
}


.apt-mobile-sheet-toggle{display:none;}
.apt-mobile-sheet[hidden]{display:none!important;}

/* V51.7 — mobile sheet menu + iPhone input stability */
@media (max-width: 900px){
  html{
    scroll-behavior:auto !important;
    -webkit-text-size-adjust:100%;
  }

  body{
    -webkit-text-size-adjust:100%;
  }

  .reveal,
  .reveal.is-visible{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }

  .apt-topbar,
  .apt-header{
    position:sticky !important;
  }

  .apt-topbar{
    top:0 !important;
    z-index:2402 !important;
  }

  .apt-header{
    top:42px !important;
    z-index:2401 !important;
    background:rgba(7,10,18,.78) !important;
  }

  .apt-nav{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:14px !important;
    padding:16px !important;
  }

  .apt-brand{
    min-width:0 !important;
  }

  .apt-brand .tag{
    display:block !important;
  }

  .apt-menu,
  .apt-cta,
  .apt-mobile-inline-nav,
  .apt-mobile-drawer,
  .apt-mobile-toggle,
  .apt-mobile-drawer-shell,
  .apt-mobile-reset-drawer{
    display:none !important;
  }

  .apt-mobile-sheet-toggle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:12px !important;
    min-height:58px !important;
    min-width:156px !important;
    padding:0 22px !important;
    border-radius:22px !important;
    border:1px solid rgba(255,255,255,.12) !important;
    background:linear-gradient(180deg, rgba(10,15,26,.96), rgba(8,12,20,.98)) !important;
    color:#eef3ff !important;
    font-weight:600 !important;
    font-size:17px !important;
    cursor:pointer !important;
    box-shadow:0 10px 30px rgba(0,0,0,.25) !important;
    -webkit-appearance:none !important;
    appearance:none !important;
  }

  .apt-mobile-sheet-toggle .apt-mobile-sheet-label-close{
    display:none !important;
  }

  .apt-mobile-sheet-toggle[aria-expanded="true"] .apt-mobile-sheet-label-open,
  body.apt-mobile-sheet-open .apt-mobile-sheet-toggle .apt-mobile-sheet-label-open{
    display:none !important;
  }

  .apt-mobile-sheet-toggle[aria-expanded="true"] .apt-mobile-sheet-label-close,
  body.apt-mobile-sheet-open .apt-mobile-sheet-toggle .apt-mobile-sheet-label-close{
    display:inline !important;
  }

  .apt-mobile-sheet-toggle .icon{
    display:inline-block;
    position:relative;
    width:24px;
    height:2px;
    border-radius:999px;
    background:#eef3ff;
    box-shadow:0 -7px 0 0 #eef3ff, 0 7px 0 0 #eef3ff;
  }

  .apt-mobile-sheet[hidden]{
    display:none !important;
  }

  .apt-mobile-sheet{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:var(--apt-mobile-nav-top, 118px) !important;
    bottom:0 !important;
    z-index:2399 !important;
    contain:paint !important;
  }

  .apt-mobile-sheet-backdrop{
    position:absolute !important;
    inset:0 !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    border:0 !important;
    margin:0 !important;
    padding:0 !important;
    background:rgba(6,10,18,.96) !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  .apt-mobile-sheet-panel{
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;
    height:100% !important;
    max-height:100% !important;
    background:rgba(7,10,18,.996) !important;
    border-top:1px solid rgba(255,255,255,.07) !important;
    box-shadow:0 -1px 0 rgba(255,255,255,.03), 0 24px 80px rgba(0,0,0,.48) !important;
    overflow:hidden !important;
  }

  .apt-mobile-sheet-scroll{
    height:100% !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    padding:16px 14px calc(32px + env(safe-area-inset-bottom, 0px)) !important;
    display:grid !important;
    align-content:start !important;
    gap:14px !important;
  }

  .apt-mobile-sheet-actions,
  .apt-mobile-sheet-links,
  .apt-mobile-sheet-section{
    display:grid !important;
    gap:12px !important;
  }

  .apt-mobile-sheet-heading{
    padding:4px 4px 0 !important;
    font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size:12px !important;
    letter-spacing:.18em !important;
    text-transform:uppercase !important;
    color:rgba(168,179,196,.82) !important;
  }

  .apt-mobile-sheet-tools-list{
    display:grid !important;
    gap:10px !important;
    padding:0 4px 4px !important;
  }

  .apt-mobile-sheet-link,
  .apt-mobile-sheet-action{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:100% !important;
    min-height:58px !important;
    padding:0 18px !important;
    border-radius:20px !important;
    border:1px solid rgba(255,255,255,.12) !important;
    background:linear-gradient(180deg, rgba(10,15,26,.98), rgba(8,12,20,.99)) !important;
    color:#eef3ff !important;
    text-decoration:none !important;
    font-weight:600 !important;
    font-size:17px !important;
    box-shadow:0 10px 30px rgba(0,0,0,.25) !important;
  }

  .apt-mobile-sheet-action.btn-primary{
    background:linear-gradient(90deg, rgba(194,166,95,.96), rgba(70,116,255,.97)) !important;
    color:#fff !important;
    border-color:rgba(255,255,255,.14) !important;
  }

  .apt-mobile-sheet-tools-list .apt-mobile-sheet-link{
    min-height:52px !important;
    padding:0 16px !important;
    font-size:16px !important;
    background:rgba(10,15,26,.92) !important;
  }

  .apt-vis-mobile-priority,
  .apt-vis-more[data-apt-vis-more="1"]{
    display:none !important;
  }

  body.apt-mobile-sheet-open,
  html.apt-mobile-sheet-open{
    overflow:hidden !important;
    height:100% !important;
  }

  body.apt-mobile-sheet-open .apt-topbar,
  body.apt-mobile-sheet-open .apt-header{
    z-index:2402 !important;
  }

  body.apt-mobile-sheet-open .apt-header{
    background:rgba(7,10,18,.98) !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  body.apt-mobile-sheet-open .apt-brand .name,
  body.apt-mobile-sheet-open .apt-brand .tag,
  body.apt-mobile-sheet-open .apt-mobile-sheet-toggle,
  body.apt-mobile-sheet-open .apt-mobile-sheet-toggle .apt-mobile-sheet-label-open,
  body.apt-mobile-sheet-open .apt-mobile-sheet-toggle .apt-mobile-sheet-label-close{
    color:#eef3ff !important;
    opacity:1 !important;
    text-shadow:none !important;
  }

  body.apt-mobile-sheet-open .apt-mobile-sheet-toggle .icon{
    background:#eef3ff !important;
    box-shadow:0 -7px 0 0 #eef3ff, 0 7px 0 0 #eef3ff !important;
  }

  body.home.apt-mobile-sheet-open .apt-brand .name,
  body.front-page.apt-mobile-sheet-open .apt-brand .name,
  body.page-template-front-page.apt-mobile-sheet-open .apt-brand .name{
    color:#eef3ff !important;
  }

  body.home.apt-mobile-sheet-open .apt-brand .tag,
  body.front-page.apt-mobile-sheet-open .apt-brand .tag,
  body.page-template-front-page.apt-mobile-sheet-open .apt-brand .tag{
    color:rgba(214,223,240,.82) !important;
  }

  body.apt-mobile-sheet-open .apt-wrap,
  body.apt-mobile-sheet-open main,
  body.apt-mobile-sheet-open .section,
  body.apt-mobile-sheet-open .hero{
    transform:translateZ(0) !important;
  }

  body:not(.home):not(.front-page) .hero{
    background:linear-gradient(180deg, rgba(7,10,18,.88), rgba(7,10,18,.72)) !important;
  }

  textarea.input,
  .input,
  .apt-mf-root textarea,
  .apt-mf-root select,
  .apt-mf-root input[type="text"],
  .apt-reset-root .apt-input,
  .apt-reset-root .apt-select,
  .apt-conflict-field select,
  .apt-conflict-field textarea,
  .apt-dc-form input,
  .apt-dc-form textarea,
  .apt-waitlist-form input,
  .apt-waitlist-form textarea,
  .apt-waitlist-form select,
  .apt-cn-apply-form input,
  .apt-cn-apply-form textarea,
  .apt-cn-apply-form select{
    font-size:16px !important;
    -webkit-text-size-adjust:100% !important;
    -webkit-appearance:none !important;
    appearance:none !important;
  }

  textarea.input,
  .apt-mf-root textarea,
  .apt-conflict-field textarea,
  .apt-dc-form textarea,
  .apt-waitlist-form textarea,
  .apt-cn-apply-form textarea,
  .apt-reset-root textarea,
  .apt-reset-root .apt-input{
    resize:none !important;
  }

  #aptClarityRoot,
  #aptCbtRoot,
  .apt-mf-root,
  .apt-reset-root,
  .apt-conflict-main,
  .apt-dc-main-panel,
  .apt-dc-overview-panel,
  .apt-dc-side-panel,
  .apt-waitlist-form,
  .apt-cn-apply-form{
    scroll-margin-top:18px !important;
  }

  body.apt-mobile-input-focus .apt-vis-ribbon,
  body.apt-mobile-input-focus .apt-vis-dock,
  body.apt-mobile-input-focus .daily-tools,
  body.apt-mobile-input-focus [class*="vis-dock"]{
    display:none !important;
  }

  html.apt-mobile-nav-routing,
  body.apt-mobile-nav-routing{
    background:#070b13 !important;
  }
}


/* V52.0 — Daily Connection dashboard shared summary + story book integration */
.apt-story-book-callout{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.apt-story-book-callout::before{content:"";position:absolute;inset:0;background:radial-gradient(600px 220px at 0% 0%, rgba(184,159,90,.16), transparent 55%),radial-gradient(600px 320px at 100% 0%, rgba(47,107,255,.16), transparent 60%);pointer-events:none}
.apt-story-book-callout > *{position:relative;z-index:1}
.apt-story-book-callout-top{display:flex;gap:18px;justify-content:space-between;align-items:flex-start}
.apt-story-book-callout-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.apt-story-book-pill-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.apt-story-book-pill{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-family:'IBM Plex Mono',ui-monospace,monospace;color:rgba(241,245,249,.88)}
.apt-story-book-inline{margin-bottom:24px}
@media (max-width:980px){.apt-story-book-callout-top{flex-direction:column}.apt-story-book-callout-actions{justify-content:flex-start}}


.apt-dc-shared-answers-panel{margin-top:24px}
.apt-dc-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.apt-dc-answer-card{padding:18px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);display:flex;flex-direction:column;gap:14px;min-width:0}
.apt-dc-answer-top{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.apt-dc-answer-top strong{font-size:18px;color:var(--text)}
.apt-dc-answer-prompt{padding:12px 14px;border-radius:14px;background:rgba(11,14,20,.72);border:1px solid rgba(255,255,255,.07);color:var(--text);line-height:1.65;font-weight:600}
.apt-dc-answer-text{font-size:17px;line-height:1.8;color:var(--text);word-break:break-word}
.apt-dc-answer-text p{margin:0 0 14px}
.apt-dc-answer-text p:last-child{margin-bottom:0}
@media (max-width:980px){.apt-dc-answer-grid{grid-template-columns:1fr}}


.apt-dc-dashboard-panel{margin-top:24px}
.apt-dc-dashboard-panel .apt-dc-console-meta{margin-top:18px}
.apt-dc-answer-grid-single{grid-template-columns:minmax(0,1fr);max-width:820px}
.apt-dc-dashboard-note{margin-top:12px;color:var(--muted);font-size:14px;line-height:1.7}
.apt-dc-dashboard-chapter{margin-top:18px;padding:18px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.apt-dc-dashboard-chapter .apt-dc-story-text{font-size:16px;line-height:1.8;color:var(--text)}
.apt-dc-dashboard-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}


.apt-dc-growth-strip{margin-bottom:24px;background:linear-gradient(135deg,rgba(47,107,255,.12),rgba(184,159,90,.08));border:1px solid rgba(102,163,255,.18)}
.apt-dc-growth-strip-gated{background:linear-gradient(135deg,rgba(184,159,90,.12),rgba(47,107,255,.08));border-color:rgba(184,159,90,.24)}
.apt-dc-growth-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.apt-dc-growth-head p{max-width:780px}
.apt-dc-growth-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.apt-dc-growth-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.apt-dc-growth-foot{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);color:var(--muted2);line-height:1.6}
.apt-dc-growth-strip .apt-console-meta-card{min-height:100%}
@media (max-width:980px){
  .apt-dc-growth-head{flex-direction:column}
  .apt-dc-growth-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .apt-dc-growth-foot{flex-direction:column;align-items:flex-start}
}
@media (max-width:640px){
  .apt-dc-growth-meta{grid-template-columns:1fr}
  .apt-dc-growth-actions{width:100%}
  .apt-dc-growth-actions .btn{width:100%;justify-content:center}
}


/* V52.2 hard paywall */
.apt-dc-gate-card{
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(15,20,32,.96), rgba(10,14,22,.96));
  border-radius:18px;
  padding:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.28);
}
.apt-dc-gate-card h3,
.apt-dc-gate-card h4{margin-top:0}
.apt-dc-gate-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 14px;
}
.apt-dc-gate-pills .apt-story-book-pill{
  background:rgba(255,255,255,.06);
}
.apt-dc-gate-card .btn + .btn{margin-left:10px}
@media (max-width: 720px){
  .apt-dc-gate-card{padding:16px}
  .apt-dc-gate-card .btn{display:block;width:100%;margin:10px 0 0}
  .apt-dc-gate-card .btn + .btn{margin-left:0}
}


/* V52.3 native dashboard */
.apt-checkin-home{margin:0 0 24px}
.apt-checkin-home-summary{position:relative;overflow:hidden}
.apt-checkin-home-summary::before{content:"";position:absolute;inset:0;background:radial-gradient(720px 260px at 0% 0%, rgba(47,107,255,.14), transparent 58%),radial-gradient(640px 260px at 100% 0%, rgba(184,159,90,.12), transparent 60%);pointer-events:none}
.apt-checkin-home-summary > *{position:relative;z-index:1}
.apt-checkin-home-note{margin-top:16px;padding:14px 16px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:var(--muted);line-height:1.7}
.apt-checkin-home-actions .apt-console-tool-card{min-height:220px}
.apt-checkin-home-actions .apt-console-summary-actions{margin-top:auto}
.apt-checkin-home-timeline{margin-top:0}
@media (max-width:700px){
  .apt-checkin-home-actions .apt-console-tool-card{min-height:0}
}


/* V52.5 — inside page shell unification */
@media (max-width: 900px){
  body.apt-inside-shell .apt-nav[data-apt-theme-mobile-shell="1"] [data-apt-vis-mobile-priority="1"],
  body.apt-inside-shell .apt-nav[data-apt-theme-mobile-shell="1"] .apt-vis-more[data-apt-vis-more="1"],
  body.apt-inside-shell .apt-vis-shell,
  body.apt-inside-shell .apt-vis-ribbon,
  body.apt-inside-shell .apt-vis-dock{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  body.apt-inside-shell .apt-topbar,
  body.apt-inside-shell .apt-header,
  body.apt-inside-shell .apt-mobile-sheet,
  body.apt-inside-shell .apt-mobile-sheet-panel,
  body.apt-inside-shell .apt-mobile-sheet-backdrop{
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  body.apt-inside-shell .apt-brand .name,
  body.apt-inside-shell .apt-brand .tag,
  body.apt-inside-shell .apt-mobile-sheet-toggle,
  body.apt-inside-shell .apt-mobile-sheet-toggle .apt-mobile-sheet-label-open,
  body.apt-inside-shell .apt-mobile-sheet-toggle .apt-mobile-sheet-label-close{
    color:#eef3ff !important;
    opacity:1 !important;
    text-shadow:none !important;
  }

  body.apt-inside-shell .apt-mobile-sheet-toggle .icon{
    background:#eef3ff !important;
    box-shadow:0 -7px 0 0 #eef3ff, 0 7px 0 0 #eef3ff !important;
  }
}

@media (min-width: 901px){
  .apt-nav[data-apt-theme-mobile-shell="1"][data-apt-vis-mobile-patched="1"] .apt-menu,
  .apt-nav[data-apt-theme-mobile-shell="1"] .apt-menu.apt-vis-is-hidden{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }

  .apt-nav[data-apt-theme-mobile-shell="1"] [data-apt-vis-mobile-priority="1"],
  .apt-nav[data-apt-theme-mobile-shell="1"] .apt-vis-more[data-apt-vis-more="1"]{
    display:none !important;
  }
}

/* V52.9 — Daily Connection story polish, legacy ribbon cleanup, and shared-answer card balance */
body.apt-entry-minimal .apt-topbar,
body.apt-entry-minimal .apt-header,
body.apt-entry-minimal footer,
body.apt-entry-minimal .hero,
body.apt-entry-minimal .apt-mobile-sheet {
  display: none !important;
}
body.apt-entry-minimal {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: #0f172a;
}
body.apt-entry-minimal:before,
body.apt-entry-minimal:after {
  display: none !important;
}
body.apt-entry-minimal #page,
body.apt-entry-minimal .site,
body.apt-entry-minimal .site-content {
  padding-top: 0 !important;
}
.apt-dc-compact-entry {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 28px 0 36px;
}
.apt-dc-compact-wrap {
  max-width: 760px;
}
.apt-dc-compact-card {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(15,23,42,.10);
}
.apt-dc-compact-card .kicker,
.apt-dc-compact-card .small,
.apt-dc-compact-card p,
.apt-dc-compact-card .apt-dc-form label span,
.apt-dc-compact-card .apt-dc-inline-note span,
.apt-dc-compact-card .apt-dc-prompt-meta .small {
  color: #64748b;
}
.apt-dc-compact-card h1,
.apt-dc-compact-card h2,
.apt-dc-compact-card h3,
.apt-dc-compact-card strong,
.apt-dc-compact-card label,
.apt-dc-compact-card .apt-dc-story-text,
.apt-dc-compact-card .apt-dc-answer-text,
.apt-dc-compact-card .apt-dc-answer-top strong {
  color: #0f172a;
}
.apt-dc-compact-card .badge {
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
  color: #334155;
}
.apt-dc-compact-card .apt-dc-answer-grid {
  margin-top: 18px;
}
.apt-dc-compact-card .apt-dc-answer-card,
.apt-dc-compact-card .apt-dc-story-panel,
.apt-dc-compact-card .apt-dc-inline-note,
.apt-dc-compact-card .apt-dc-share-link,
.apt-dc-compact-card .apt-dc-dashboard-chapter,
.apt-dc-compact-card .apt-dc-gate-card {
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: none;
}
.apt-dc-compact-card .apt-dc-answer-prompt {
  background: #111827;
  border-color: rgba(15,23,42,.12);
  color: #f8fafc;
}
.apt-dc-compact-card .apt-dc-form input,
.apt-dc-compact-card .apt-dc-form textarea,
.apt-dc-compact-card .apt-dc-compact-phone input[type="tel"] {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.12);
  color: #0f172a;
  font-size: 16px;
}
.apt-dc-compact-card .apt-dc-form input::placeholder,
.apt-dc-compact-card .apt-dc-form textarea::placeholder,
.apt-dc-compact-card .apt-dc-compact-phone input[type="tel"]::placeholder {
  color: #94a3b8;
}
body.apt-entry-minimal .apt-dc-banner-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
body.apt-entry-minimal .apt-dc-banner-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
body.apt-entry-minimal .apt-dc-banner-ok p,
body.apt-entry-minimal .apt-dc-banner-error p {
  color: inherit;
}
.apt-dc-compact-card .apt-dc-story-text,
.apt-dc-compact-card .apt-dc-answer-text {
  font-size: 16px;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .apt-dc-compact-entry {
    padding: 18px 0 24px;
    align-items: flex-start;
  }
  .apt-dc-compact-card {
    padding: 18px;
    border-radius: 22px;
  }
}


/* V52.9 — Daily Connection polish */
.apt-rich-story{display:block}
.apt-rich-story-heading{
  margin:22px 0 10px;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(184,159,90,.95);
  font-family:'IBM Plex Mono',ui-monospace,monospace;
}
.apt-rich-story-heading:first-child{margin-top:0}
.apt-rich-story p{margin:0 0 14px}
.apt-rich-story p:last-child{margin-bottom:0}
.apt-dc-story-text .apt-rich-story p,
.apt-dc-answer-text p{max-width:76ch}
body.apt-path-daily-connection .apt-vis-shell,
body.apt-path-daily-connection .apt-vis-ribbon,
body.apt-path-daily-connection .apt-vis-dock,
body.apt-path-our-story-book .apt-vis-shell,
body.apt-path-our-story-book .apt-vis-ribbon,
body.apt-path-our-story-book .apt-vis-dock,
body.apt-path-mental-fitness-dashboard .apt-vis-shell,
body.apt-path-mental-fitness-dashboard .apt-vis-ribbon,
body.apt-path-mental-fitness-dashboard .apt-vis-dock{
  display:none !important;
}
.apt-dc-answer-grid{
  align-items:stretch;
}
.apt-dc-answer-card{
  position:relative;
  overflow:hidden;
  height:100%;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
}
.apt-dc-answer-text{
  flex:1 1 auto;
}
.apt-dc-answer-foot{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.apt-dc-answer-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg, rgba(184,159,90,.55), rgba(102,163,255,.45));
  opacity:.7;
  pointer-events:none;
}
.apt-dc-answer-card-partner .apt-dc-answer-text,
.apt-dc-answer-card-you .apt-dc-answer-text{
  min-height:0;
}
.apt-dc-shared-answers-panel > p{
  max-width:860px;
  color:var(--muted);
}
body.page-template-page-daily-connection [data-apt-dc-promo-pruned="1"],
body.page-template-page-daily-connection .apt-dc-legacy-promo-hidden{
  display:none !important;
}
@media (max-width:980px){
  .apt-dc-answer-card{padding:16px}
}


/* V53.1 — Daily Connection conversion polish */
.apt-dc-field-grid-single{grid-template-columns:minmax(0,1fr);}
.apt-dc-linklike-btn{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  color:rgba(241,245,249,.82);
  padding-inline:4px;
}
.apt-dc-linklike-btn:hover{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  color:#fff;
  transform:none;
  text-decoration:underline;
  text-underline-offset:3px;
}
.apt-dc-trust-line{
  color:rgba(154,164,178,.96);
  line-height:1.7;
}
.apt-dc-trust-line strong{color:rgba(241,245,249,.96);}
.apt-dc-list-numbered{
  list-style:decimal;
  padding-left:20px;
}
.apt-dc-side-note{
  color:rgba(154,164,178,.94);
  line-height:1.7;
}
body.apt-dc-free-entry-funnel .apt-menu,
body.apt-dc-free-entry-funnel .apt-cta{
  display:none !important;
}

body.apt-dc-free-entry-funnel .apt-mobile-sheet-toggle{
  display:inline-flex !important;
}

body.apt-dc-free-entry-funnel .apt-mobile-sheet[hidden]{
  display:none !important;
}

body.apt-dc-free-entry-funnel .apt-mobile-sheet:not([hidden]){
  display:block !important;
}
body.apt-dc-free-entry-funnel .apt-nav{
  justify-content:flex-start;
}
body.apt-dc-free-entry-funnel .hero{
  padding-top:56px !important;
}
body.apt-dc-free-entry-funnel .apt-dc-main-panel{
  border-color:rgba(255,255,255,.12);
  box-shadow:0 24px 70px rgba(0,0,0,.24);
}
body.apt-dc-free-entry-funnel .apt-dc-side-panel{
  border-color:rgba(255,255,255,.10);
}
body.apt-dc-free-entry-funnel .apt-dc-main-panel .btn.btn-primary{
  min-width:220px;
}
@media (max-width: 900px){
  body.apt-dc-free-entry-funnel .hero{
    padding-top:40px !important;
  }
  body.apt-dc-free-entry-funnel .apt-topbar span{
    font-size:12px;
  }
}
@media (max-width: 640px){
  .apt-dc-actions-stack-on-mobile{
    flex-direction:column;
    align-items:stretch;
  }
  .apt-dc-actions-stack-on-mobile .btn{
    width:100%;
    justify-content:center;
  }
  .apt-dc-actions-stack-on-mobile .apt-dc-linklike-btn{
    width:auto;
    padding-left:0;
    padding-right:0;
  }
}


/* V53.2 — Daily Connection phone capture after first answer */
.apt-dc-phone-capture-panel{
  margin-bottom:18px;
  border-color:rgba(102,163,255,.24);
  box-shadow:0 18px 54px rgba(0,0,0,.24);
}
.apt-dc-phone-capture-shell{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr);
  gap:18px;
  align-items:end;
}
.apt-dc-phone-copy,
.apt-dc-phone-foot{
  color:rgba(154,164,178,.96);
}
.apt-dc-phone-form-inline{
  gap:12px;
  align-items:end;
}
.apt-dc-phone-form-inline label{
  margin:0;
}
.apt-dc-phone-form-inline .apt-dc-actions{
  margin-top:0;
}
.apt-dc-phone-capture-panel-saved{
  padding-block:14px;
}
@media (max-width: 820px){
  .apt-dc-phone-capture-shell{
    grid-template-columns:minmax(0,1fr);
  }
  .apt-dc-phone-form-inline .apt-dc-actions .btn{
    width:100%;
    justify-content:center;
  }
}


/* V55.3 — route-specific mobile flash fix (pricing + therapist pages) */
@media (max-width: 900px){
  body.apt-path-present-mode,
  body.apt-path-ai-relationship-translator,
  body.apt-path-relationship-conflict-check,
  body.apt-path-mental-fitness-dashboard,
  body.apt-path-daily-check-in,
  body.apt-path-relationship-pattern-check,
  body.apt-path-pricing,
  body.apt-path-for-therapists,
  body.apt-path-therapist-network{
    background:
      radial-gradient(900px 500px at 15% 10%, rgba(47,107,255,.16), transparent 55%),
      radial-gradient(700px 420px at 80% 20%, rgba(184,159,90,.12), transparent 60%),
      radial-gradient(900px 700px at 50% 100%, rgba(47,107,255,.08), transparent 55%),
      linear-gradient(180deg, #0b0e14, #070a10) !important;
    background-color:#0b0e14 !important;
    color:var(--text) !important;
  }

  body.apt-path-present-mode::before,
  body.apt-path-ai-relationship-translator::before,
  body.apt-path-relationship-conflict-check::before,
  body.apt-path-mental-fitness-dashboard::before,
  body.apt-path-daily-check-in::before,
  body.apt-path-relationship-pattern-check::before,
  body.apt-path-pricing::before,
  body.apt-path-for-therapists::before,
  body.apt-path-therapist-network::before{
    opacity:.06 !important;
    filter:none !important;
  }

  body.apt-path-present-mode .apt-topbar,
  body.apt-path-present-mode .apt-header,
  body.apt-path-ai-relationship-translator .apt-topbar,
  body.apt-path-ai-relationship-translator .apt-header,
  body.apt-path-relationship-conflict-check .apt-topbar,
  body.apt-path-relationship-conflict-check .apt-header,
  body.apt-path-mental-fitness-dashboard .apt-topbar,
  body.apt-path-mental-fitness-dashboard .apt-header,
  body.apt-path-daily-check-in .apt-topbar,
  body.apt-path-daily-check-in .apt-header,
  body.apt-path-relationship-pattern-check .apt-topbar,
  body.apt-path-relationship-pattern-check .apt-header,
  body.apt-path-pricing .apt-topbar,
  body.apt-path-pricing .apt-header,
  body.apt-path-for-therapists .apt-topbar,
  body.apt-path-for-therapists .apt-header,
  body.apt-path-therapist-network .apt-topbar,
  body.apt-path-therapist-network .apt-header{
    background:rgba(7,10,18,.96) !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  body.apt-path-present-mode:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-ai-relationship-translator:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-relationship-conflict-check:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-mental-fitness-dashboard:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-daily-check-in:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-relationship-pattern-check:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-pricing:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-for-therapists:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after,
  body.apt-path-therapist-network:not(.apt-mobile-sheet-open):not(.apt-mobile-menu-open):not(.apt-inline-menu-open) .apt-header::after{
    content:none !important;
    opacity:0 !important;
    background:transparent !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    pointer-events:none !important;
  }

  body.apt-path-pricing .hero,
  body.apt-path-pricing .section,
  body.apt-path-for-therapists .section,
  body.apt-path-therapist-network .hero,
  body.apt-path-therapist-network .section{
    background:transparent !important;
  }

  body.apt-path-pricing .hero .glow,
  body.apt-path-therapist-network .hero .glow{
    filter:none !important;
    opacity:.55 !important;
  }

  body.apt-path-pricing #aptParticles,
  body.apt-path-therapist-network #aptParticles{
    opacity:.78 !important;
    transform:translateZ(0);
  }

  body.apt-path-pricing .apt-wrap,
  body.apt-path-for-therapists .apt-wrap,
  body.apt-path-therapist-network .apt-wrap,
  body.apt-path-pricing .panel,
  body.apt-path-for-therapists .panel,
  body.apt-path-therapist-network .panel{
    position:relative;
    z-index:1;
  }

  html.apt-tool-firstpaint-stable,
  body.apt-tool-firstpaint-stable{
    background-color:#0b0e14 !important;
  }
}




/* V56.2 Decode conversion polish */
.apt-decode-proof{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.apt-decode-proof span{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(148,163,184,.18);color:rgba(241,245,249,.94);font-size:14px}
.apt-decode-proof span::before{content:'•';color:var(--gold);font-weight:700}
.apt-decode-proof-single span{width:100%;justify-content:flex-start;border-radius:14px}
.apt-decode-conversion{margin-top:18px;border:1px solid rgba(96,165,250,.26);background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(11,14,20,.88));box-shadow:0 16px 60px rgba(0,0,0,.32);transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease}
.apt-decode-conversion.is-hidden{display:none}
.apt-decode-conversion.is-working{display:block;border-color:rgba(184,159,90,.35);box-shadow:0 16px 60px rgba(0,0,0,.32),0 0 0 1px rgba(184,159,90,.18)}
.apt-decode-conversion.is-live{display:block;border-color:rgba(96,165,250,.44);box-shadow:0 18px 70px rgba(47,107,255,.14);transform:translateY(-1px)}
.apt-decode-conversion-copy{color:rgba(241,245,249,.94);max-width:60ch}
.apt-decode-ref-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(96,165,250,.12);border:1px solid rgba(96,165,250,.28);color:#eef3ff;font-size:14px;font-weight:600;margin:8px 0 2px}
.apt-decode-conversion-list{margin:14px 0 0;padding-left:18px;color:rgba(154,164,178,.96);display:grid;gap:8px}
.apt-decode-conversion-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;align-items:center}
.apt-decode-conversion-note{margin-top:10px}
@media (max-width: 900px){
  .apt-decode-proof span{width:100%;justify-content:flex-start}
  .apt-decode-conversion-actions .btn{width:100%;justify-content:center}
}


/* V57.2 Decode above-the-fold referral polish */
.apt-decode-inline-howto{margin:0 0 14px;color:rgba(241,245,249,.86);font-size:15px;line-height:1.55}
.apt-decode-inline-howto strong{color:rgba(241,245,249,.96)}
.apt-decode-form-card{scroll-margin-top:96px}
body.apt-referral-landing .apt-decode-hero{padding-top:34px !important;padding-bottom:16px !important}
body.apt-referral-landing #tool-start{padding-top:12px !important}
body.apt-referral-landing .apt-decode-grid{grid-template-columns:1fr !important;gap:14px}
body.apt-referral-landing .apt-decode-side{display:none !important}
body.apt-referral-landing .apt-decode-proof{display:none !important}
body.apt-referral-landing .apt-decode-root > .apt-decode-notice{display:none !important}
body.apt-referral-landing .apt-decode-howto-card{display:none !important}
body.apt-referral-landing .apt-decode-form-card{margin-top:0 !important}
body.apt-referral-landing .apt-decode-form-card .apt-mf-heading{margin-bottom:8px}
body.apt-referral-landing .apt-decode-form textarea[data-apt-mf-relationship-text]{min-height:150px}
body.apt-referral-landing .apt-mf-actions{margin-top:14px}
body.apt-referral-landing .apt-decode-tagline{font-size:12px;padding:8px 12px}
@media (min-width: 1101px){
  body.apt-referral-landing .apt-decode-hero .h1{font-size:72px;line-height:.95;max-width:980px}
  body.apt-referral-landing .apt-decode-hero .lead{font-size:17px;max-width:900px;margin-bottom:14px}
}
@media (max-width: 900px){
  body.apt-referral-landing .apt-decode-hero{padding-top:26px !important;padding-bottom:10px !important}
  body.apt-referral-landing .apt-decode-hero .h1{font-size:48px;line-height:.98}
  body.apt-referral-landing .apt-decode-hero .lead{font-size:16px}
  body.apt-referral-landing .apt-decode-form textarea[data-apt-mf-relationship-text]{min-height:132px}
}


/* V57.3 — mobile header cleanup: keep Menu as the single mobile nav */
@media (max-width: 900px){
  body.apt-mobile-header-clean .apt-nav > .apt-menu,
  html.apt-mobile-header-clean .apt-nav > .apt-menu{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    position:absolute !important;
    left:-9999px !important;
    top:auto !important;
    width:1px !important;
    height:1px !important;
    max-height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
  }

  body.apt-mobile-header-clean .apt-nav > .apt-menu *,
  html.apt-mobile-header-clean .apt-nav > .apt-menu *{
    visibility:hidden !important;
  }

  body.apt-mobile-header-clean .apt-nav > .apt-cta,
  html.apt-mobile-header-clean .apt-nav > .apt-cta{
    display:none !important;
  }

  body.apt-mobile-header-clean .apt-mobile-sheet-toggle,
  html.apt-mobile-header-clean .apt-mobile-sheet-toggle{
    display:inline-flex !important;
  }
}


/* V61.3 — root dark surface lock + story book answer previews */
html, body, #page, .site, .site-content { background:#070b14 !important; }
body { overscroll-behavior-y:none; }
#wpadminbar, #wpadminbar .quicklinks, #wpadminbar .ab-sub-wrapper, #wpadminbar .ab-item { background:#070b14 !important; }
#wpadminbar .ab-item, #wpadminbar .ab-label, #wpadminbar a { color:#eef3ff !important; }
.apt-mobile-sheet, .apt-mobile-sheet-panel, .apt-mobile-sheet-backdrop, .apt-header, .apt-topbar { background-color:#070b14 !important; }
.apt-mobile-sheet-backdrop { opacity:1 !important; }
.apt-dc-preview-card{margin-top:18px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.035);padding:18px}
.apt-dc-preview-card .kicker{margin-bottom:10px}
.apt-dc-preview-card .apt-dc-answer-prompt{margin-bottom:12px}
.apt-story-book-answer-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
.apt-story-book-answer{padding:12px 14px;border:1px solid #e4eaf5;border-radius:14px;background:#fff}
.apt-story-book-answer strong{display:block;color:#13213f;margin-bottom:6px}
.apt-story-book-answer span{display:block;color:#394b73;line-height:1.6;font-size:14px}
.apt-story-book-reflection{margin-top:12px;padding-top:12px;border-top:1px solid #e8eef8}
.apt-story-book-reflection .label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#7b6d55;margin-bottom:6px}
.apt-story-book-reflection .excerpt{font-size:15px;line-height:1.6;color:#394b73}


/* V61.4 — Decode conversion landing update */
.apt-decode-landing-section{padding-top:0;padding-bottom:10px}
.apt-decode-landing-panel{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:18px;align-items:start;border-color:rgba(96,165,250,.24);box-shadow:0 20px 70px rgba(0,0,0,.22)}
.apt-decode-landing-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.apt-decode-landing-point{padding:14px 16px;border-radius:16px;border:1px solid rgba(148,163,184,.16);background:rgba(255,255,255,.03)}
.apt-decode-landing-point strong{display:block;color:rgba(241,245,249,.96);margin-bottom:6px;font-size:14px;letter-spacing:.02em}
.apt-decode-landing-point span{display:block;color:rgba(154,164,178,.95);font-size:14px;line-height:1.55}
.apt-decode-preset-shell{padding:18px;border-radius:18px;border:1px solid rgba(148,163,184,.16);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02))}
.apt-decode-preset-copy{color:rgba(226,232,240,.86);line-height:1.65;margin:10px 0 0}
.apt-decode-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.apt-decode-preset{appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;gap:8px;align-items:flex-start;justify-content:flex-start;width:100%;padding:16px;border-radius:16px;border:1px solid rgba(148,163,184,.16);background:rgba(15,23,42,.56);color:#eef3ff;text-align:left;cursor:pointer;transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;font:inherit}
.apt-decode-preset:hover,.apt-decode-preset:focus-visible{transform:translateY(-1px);border-color:rgba(96,165,250,.38);box-shadow:0 16px 40px rgba(47,107,255,.12);background:rgba(15,23,42,.72);outline:none}
.apt-decode-preset strong{display:block;color:#fff;font-size:16px;line-height:1.45;letter-spacing:-.01em}
.apt-decode-preset span{display:block;color:rgba(154,164,178,.95);font-size:13px;line-height:1.4}
.apt-decode-preset-note{margin-top:12px}
.apt-decode-meta-grid{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);gap:16px}
.apt-decode-howto-card-updated{border-color:rgba(255,255,255,.1)}
.apt-decode-form-card .apt-decode-inline-howto{margin-bottom:16px}
.apt-decode-form .apt-mf-helper{max-width:60ch}
.apt-decode-conversion .apt-mf-heading{max-width:18ch}
.apt-decode-conversion-note{color:rgba(226,232,240,.8)}
@media (max-width: 1080px){
  .apt-decode-landing-panel,
  .apt-decode-landing-points,
  .apt-decode-preset-grid,
  .apt-decode-meta-grid{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .apt-decode-landing-panel{padding:18px}
  .apt-decode-preset{padding:14px}
}
body.apt-referral-landing .apt-decode-landing-section{padding-top:8px !important;padding-bottom:4px !important}
body.apt-referral-landing .apt-decode-landing-panel{grid-template-columns:1fr;gap:16px}
body.apt-referral-landing .apt-decode-landing-points{grid-template-columns:1fr}
body.apt-referral-landing .apt-decode-preset-grid{grid-template-columns:1fr 1fr}
@media (max-width: 720px){
  body.apt-referral-landing .apt-decode-preset-grid{grid-template-columns:1fr}
}


/* V61.5 — Daily Connection motivation update */
.apt-dc-preview-card-soft{
  background:linear-gradient(180deg, rgba(16,24,40,.88), rgba(10,16,28,.94));
  border-color:rgba(102,163,255,.18);
}
.apt-dc-preview-lead{
  margin:8px 0 14px;
  color:rgba(226,232,240,.88);
  font-size:15px;
  line-height:1.6;
}
.apt-dc-story-timeline{
  display:block;
}
.apt-dc-story-details{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.apt-dc-story-details + .apt-dc-story-details{
  margin-top:14px;
}
.apt-dc-story-details[open]{
  border-color:rgba(102,163,255,.22);
  background:linear-gradient(180deg, rgba(17,24,39,.92), rgba(12,17,29,.96));
}
.apt-dc-story-details summary{
  list-style:none;
  cursor:pointer;
}
.apt-dc-story-details summary::-webkit-details-marker{
  display:none;
}
.apt-dc-story-summary{
  position:relative;
  align-items:start;
  border:none;
  background:transparent;
  border-radius:0;
  padding:18px;
}
.apt-dc-story-summary:hover{
  border:none;
  transform:none;
}
.apt-dc-story-summary::after{
  content:"Open";
  position:absolute;
  top:18px;
  right:18px;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(154,164,178,.92);
}
.apt-dc-story-details[open] .apt-dc-story-summary::after{
  content:"Close";
  color:rgba(241,245,249,.82);
}
.apt-dc-story-summary-main{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.apt-dc-story-summary-main strong{
  padding-right:78px;
}
.apt-dc-story-summary-quote{
  display:block;
  color:rgba(241,245,249,.92);
  line-height:1.65;
}
.apt-dc-story-summary-quote em{
  font-style:normal;
  color:rgba(184,159,90,.96);
  margin-right:6px;
}
.apt-dc-story-details-body{
  padding:0 18px 18px;
}
.apt-dc-story-details-body .apt-dc-answer-grid{
  margin-top:0;
}
.apt-dc-story-details-reflection{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
}
@media (max-width:900px){
  .apt-dc-story-summary::after{
    position:static;
    display:inline-flex;
    margin-top:10px;
  }
  .apt-dc-story-summary-main strong{
    padding-right:0;
  }
  .apt-dc-story-details-body{
    padding:0 14px 14px;
  }
}


/* ---------------------------------------
   V61.7 Companion MVP
--------------------------------------- */
.apt-companion-shell{
  display:grid;
  grid-template-columns:minmax(300px, 380px) minmax(0,1fr);
  gap:24px;
  align-items:start;
  margin-top:28px;
}
.apt-companion-sidebar,
.apt-companion-main{
  display:grid;
  gap:24px;
}
.apt-companion-profile{
  position:sticky;
  top:96px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.apt-companion-profile::after{
  content:"";
  position:absolute;
  inset:auto -24px -36px auto;
  width:160px;
  height:160px;
  background:radial-gradient(circle, rgba(47,107,255,.16), transparent 68%);
  pointer-events:none;
}
.apt-companion-avatar{
  width:68px;
  height:68px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:700;
  background:linear-gradient(135deg, rgba(47,107,255,.22), rgba(184,159,90,.18));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 40px rgba(0,0,0,.28);
}
.apt-companion-profile-copy{margin-top:14px}
.apt-companion-tagline{
  color:rgba(241,245,249,.88);
  margin:10px 0 0;
  line-height:1.55;
}
.apt-companion-status{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.apt-companion-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:rgba(241,245,249,.92);
}
.apt-companion-pill.is-member{
  background:rgba(47,107,255,.14);
  border-color:rgba(102,163,255,.4);
}
.apt-companion-mini-form,
.apt-companion-summary,
.apt-companion-checkin-card,
.apt-companion-upgrade{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}
.apt-companion-mini-form select,
.apt-companion-checkin-form select,
.apt-companion-checkin-form input[type="range"],
.apt-companion-memory-form textarea,
.apt-companion-chat-form textarea,
.apt-companion-checkin-form textarea{
  width:100%;
}
.apt-companion-mini-form select,
.apt-companion-checkin-form select{
  min-height:44px;
  border-radius:12px;
  background:rgba(7,11,20,.76);
  border:1px solid rgba(255,255,255,.1);
  color:#f1f5f9;
  padding:10px 12px;
  margin-top:8px;
}
.apt-companion-summary p,
.apt-companion-upgrade p{
  margin:10px 0 0;
  color:rgba(241,245,249,.88);
  line-height:1.6;
}
.apt-companion-memory-panel,
.apt-companion-thread-panel,
.apt-companion-checkin-panel{
  overflow:hidden;
}
.apt-companion-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.apt-companion-memory-form{
  display:grid;
  gap:12px;
}
.apt-companion-memory-form textarea,
.apt-companion-chat-form textarea,
.apt-companion-checkin-form textarea{
  resize:vertical;
  min-height:110px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(7,11,20,.76);
  color:#f1f5f9;
  padding:14px 15px;
  font:inherit;
}
.apt-companion-checkin-form textarea{min-height:90px}
.apt-companion-chat-form textarea:focus,
.apt-companion-memory-form textarea:focus,
.apt-companion-checkin-form textarea:focus,
.apt-companion-mini-form select:focus,
.apt-companion-checkin-form select:focus{
  outline:none;
  border-color:rgba(102,163,255,.58);
  box-shadow:0 0 0 3px rgba(47,107,255,.14);
}
.apt-companion-memory-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.apt-companion-memory{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.03);
}
.apt-companion-memory strong{
  display:block;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(154,164,178,.95);
}
.apt-companion-memory p{
  margin:8px 0 0;
  color:rgba(241,245,249,.92);
  line-height:1.55;
}
.apt-companion-empty-note{
  color:rgba(154,164,178,.95);
  line-height:1.6;
  padding:14px 0 4px;
}
.apt-companion-thread-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.apt-companion-usage{
  min-width:110px;
  text-align:right;
  font-size:13px;
  color:rgba(154,164,178,.95);
}
.apt-companion-greeting{
  margin-top:18px;
  padding:16px 18px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(47,107,255,.12), rgba(255,255,255,.03));
  border:1px solid rgba(102,163,255,.18);
  color:rgba(241,245,249,.94);
  line-height:1.65;
}
.apt-companion-prompt-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.apt-companion-prompt{
  appearance:none;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.04);
  color:#f1f5f9;
  border-radius:999px;
  padding:10px 14px;
  font:inherit;
  cursor:pointer;
  transition:.18s ease;
}
.apt-companion-prompt:hover,
.apt-companion-prompt.is-active{
  border-color:rgba(102,163,255,.42);
  background:rgba(47,107,255,.12);
  transform:translateY(-1px);
}
.apt-companion-thread{
  margin-top:18px;
  max-height:540px;
  overflow:auto;
  padding-right:6px;
  display:grid;
  gap:14px;
}
.apt-companion-thread-empty{
  padding:24px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.12);
  background:rgba(255,255,255,.02);
  color:rgba(154,164,178,.96);
}
.apt-companion-bubble{
  max-width:min(86%, 720px);
  border-radius:18px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 34px rgba(0,0,0,.2);
}
.apt-companion-bubble.is-user{
  margin-left:auto;
  background:rgba(47,107,255,.12);
  border-color:rgba(102,163,255,.22);
}
.apt-companion-bubble.is-assistant{
  margin-right:auto;
  background:rgba(255,255,255,.04);
}
.apt-companion-bubble-meta{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(154,164,178,.96);
  margin-bottom:8px;
}
.apt-companion-bubble-body{
  color:rgba(241,245,249,.96);
  line-height:1.7;
}
.apt-companion-chat-form{
  margin-top:18px;
  display:grid;
  gap:12px;
}
.apt-companion-chat-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.apt-companion-limit-card{
  margin-top:18px;
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(184,159,90,.24);
  background:rgba(184,159,90,.08);
}
.apt-companion-limit-card strong{
  display:block;
  margin-bottom:8px;
}
.apt-companion-checkin-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin-bottom:14px;
}
.apt-companion-checkin-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.apt-companion-checkin-stats span{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;
}
.apt-companion-checkin-card p{
  margin:10px 0 0;
  color:rgba(241,245,249,.88);
}
.apt-companion-upgrade .btn{margin-top:10px}
.apt-console-tool-card.apt-console-tool-companion{
  background:linear-gradient(180deg, rgba(47,107,255,.1), rgba(255,255,255,.03));
}
@media (max-width: 1024px){
  .apt-companion-shell{
    grid-template-columns:1fr;
  }
  .apt-companion-profile{
    position:static;
  }
}
@media (max-width: 720px){
  .apt-companion-checkin-grid{
    grid-template-columns:1fr;
  }
  .apt-companion-bubble{
    max-width:100%;
  }
  .apt-companion-chat-actions{
    align-items:stretch;
  }
}


/* V61.8 Companion polish */
.apt-companion-preview-grid,
.apt-companion-chooser-grid,
.apt-companion-starter-grid{
  display:grid;
  gap:14px;
}
.apt-companion-preview-grid,
.apt-companion-chooser-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.apt-companion-starter-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:12px;
}
.apt-companion-identity{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:16px;
  align-items:center;
}
.apt-companion-avatar-wrap,
.apt-companion-card-avatar{
  position:relative;
}
.apt-companion-avatar-wrap::before,
.apt-companion-card-avatar::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(102,163,255,.22), transparent 70%);
  pointer-events:none;
}
.apt-companion-profile[data-companion-key="ava"] .apt-companion-avatar,
.apt-companion-card[data-companion-key="ava"] .apt-companion-card-avatar{
  background:linear-gradient(135deg, rgba(47,107,255,.24), rgba(148,163,184,.24));
}
.apt-companion-profile[data-companion-key="milo"] .apt-companion-avatar,
.apt-companion-card[data-companion-key="milo"] .apt-companion-card-avatar{
  background:linear-gradient(135deg, rgba(184,159,90,.28), rgba(96,165,250,.18));
}
.apt-companion-profile[data-companion-key="sage"] .apt-companion-avatar,
.apt-companion-card[data-companion-key="sage"] .apt-companion-card-avatar{
  background:linear-gradient(135deg, rgba(148,163,184,.32), rgba(129,140,248,.18));
}
.apt-companion-profile[data-companion-key="nova"] .apt-companion-avatar,
.apt-companion-card[data-companion-key="nova"] .apt-companion-card-avatar{
  background:linear-gradient(135deg, rgba(96,165,250,.26), rgba(47,107,255,.24));
}
.apt-companion-profile[data-companion-key="lane"] .apt-companion-avatar,
.apt-companion-card[data-companion-key="lane"] .apt-companion-card-avatar{
  background:linear-gradient(135deg, rgba(129,140,248,.3), rgba(47,107,255,.18));
}
.apt-companion-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.apt-companion-chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:rgba(241,245,249,.92);
  font-size:13px;
  line-height:1.45;
}
.apt-companion-meter{
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.apt-companion-meter.is-low{
  border-color:rgba(184,159,90,.28);
  background:rgba(184,159,90,.08);
}
.apt-companion-meter-copy{
  display:grid;
  gap:5px;
}
.apt-companion-meter-copy strong{
  color:#f8fafc;
}
.apt-companion-meter-copy span{
  color:rgba(154,164,178,.96);
  font-size:13px;
}
.apt-companion-meter-bar{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.07);
  margin-top:12px;
}
.apt-companion-meter-fill{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(102,163,255,.96), rgba(184,159,90,.84));
}
.apt-companion-member-note{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}
.apt-companion-member-note p{
  margin:10px 0 0;
  color:rgba(241,245,249,.88);
  line-height:1.6;
}
.apt-companion-chooser{
  overflow:hidden;
  background:linear-gradient(180deg, rgba(47,107,255,.08), rgba(255,255,255,.03));
}
.apt-companion-chooser-copy{
  margin:0 0 18px;
  color:rgba(241,245,249,.88);
  line-height:1.6;
}
.apt-companion-card{
  display:grid;
  gap:14px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  box-shadow:0 10px 32px rgba(0,0,0,.18);
  transition:border-color .18s ease, transform .18s ease, background .18s ease;
}
.apt-companion-card:hover{
  transform:translateY(-1px);
  border-color:rgba(102,163,255,.28);
}
.apt-companion-card.is-selected{
  border-color:rgba(102,163,255,.44);
  background:linear-gradient(180deg, rgba(47,107,255,.14), rgba(255,255,255,.04));
}
.apt-companion-card.is-preview{padding:16px}
.apt-companion-card-head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px;
  align-items:center;
}
.apt-companion-card-avatar{
  width:58px;
  height:58px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:700;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 38px rgba(0,0,0,.22);
}
.apt-companion-card-copy,
.apt-companion-card-goodfor{
  color:rgba(241,245,249,.9);
  line-height:1.55;
}
.apt-companion-card-goodfor strong{
  color:#f8fafc;
}
.apt-companion-starter-wrap{
  margin-top:18px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.apt-companion-starter{
  appearance:none;
  text-align:left;
  display:grid;
  gap:8px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,11,20,.58);
  color:#f1f5f9;
  font:inherit;
  cursor:pointer;
  transition:border-color .18s ease, transform .18s ease, background .18s ease;
}
.apt-companion-starter:hover{
  transform:translateY(-1px);
  border-color:rgba(102,163,255,.32);
  background:rgba(47,107,255,.08);
}
.apt-companion-starter strong{font-size:15px}
.apt-companion-starter span{
  color:rgba(154,164,178,.95);
  line-height:1.55;
  font-size:14px;
}
.apt-companion-inline-upgrade{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.apt-companion-inline-upgrade strong{
  display:block;
  margin-bottom:6px;
}
.apt-companion-inline-upgrade p{
  margin:0;
  color:rgba(241,245,249,.88);
  line-height:1.6;
}
.apt-companion-inline-upgrade.is-urgent{
  border-color:rgba(184,159,90,.3);
  background:rgba(184,159,90,.08);
}
.apt-companion-upgrade-list{
  list-style:none;
  margin:14px 0 0;
  padding:0;
  display:grid;
  gap:10px;
}
.apt-companion-upgrade-list li{
  position:relative;
  padding-left:18px;
  color:rgba(241,245,249,.92);
  line-height:1.55;
}
.apt-companion-upgrade-list li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:rgba(102,163,255,.95);
}
.apt-companion-checkin-nudge{
  margin-bottom:16px;
  padding:14px 16px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:rgba(241,245,249,.88);
  line-height:1.6;
}
[hidden]{display:none !important}
@media (max-width: 900px){
  .apt-companion-preview-grid,
  .apt-companion-chooser-grid,
  .apt-companion-starter-grid{
    grid-template-columns:1fr;
  }
  .apt-companion-inline-upgrade{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* V61.8.1 Snapshot-first layout */
.apt-companion-main.is-snapshot-first .apt-companion-checkin-panel{
  order:1;
}
.apt-companion-main.is-snapshot-first .apt-companion-thread-panel{
  order:2;
}
.apt-companion-today-snapshot{
  margin-top:16px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.apt-companion-today-snapshot .apt-companion-checkin-stats{
  margin-top:12px;
}
.apt-companion-today-snapshot p{
  margin:12px 0 0;
  color:rgba(241,245,249,.9);
  line-height:1.65;
}
.apt-companion-checkin-panel .apt-companion-checkin-nudge{
  margin-bottom:14px;
}


/* ---------------------------------------
   V61.8.2 Companion sidebar overlap fix
   The companion profile became taller than the viewport.
   A sticky, translucent panel allowed the memory/check-in panel below
   to visually slide underneath it while scrolling. Keep the sidebar
   natural-height instead of sticky so sections never stack on top of
   each other.
--------------------------------------- */
.apt-companion-shell .apt-companion-sidebar{
  position:relative;
  z-index:1;
  align-self:start;
}

.apt-companion-shell .apt-companion-profile{
  position:relative !important;
  top:auto !important;
  z-index:2;
  overflow:visible;
  isolation:isolate;
  background:rgba(17,22,34,.96);
}

.apt-companion-shell .apt-companion-profile::after{
  z-index:0;
}

.apt-companion-shell .apt-companion-profile > *{
  position:relative;
  z-index:1;
}

.apt-companion-shell .apt-companion-summary,
.apt-companion-shell .apt-companion-checkin-card,
.apt-companion-shell .apt-companion-member-note,
.apt-companion-shell .apt-companion-upgrade,
.apt-companion-shell .apt-companion-memory-panel{
  position:relative;
  z-index:1;
  clear:both;
}

.apt-companion-shell .apt-companion-summary p,
.apt-companion-shell .apt-companion-checkin-card p,
.apt-companion-shell .apt-companion-empty-note,
.apt-companion-shell .apt-companion-member-note p{
  overflow-wrap:anywhere;
  word-break:normal;
}

.apt-companion-shell .apt-companion-memory-panel{
  background:rgba(17,22,34,.96);
}

@media (min-width:1025px){
  .apt-companion-shell .apt-companion-sidebar{
    display:flex;
    flex-direction:column;
    gap:24px;
  }
}

/* V61.8.3 — TaxHackAI earnings support flow */
.apt-taxhackai-card{
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:18px;
  align-items:stretch;
  padding:18px;
  border:1px solid rgba(34,197,94,.22);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(16,185,129,.10),rgba(37,99,235,.08) 52%,rgba(255,255,255,.035));
  box-shadow:0 24px 80px rgba(0,0,0,.18);
}
.apt-taxhackai-card h3,
.apt-taxhackai-flow-card h2,
.apt-taxhackai-account-card h3,
.apt-taxhackai-checklist-card h2{margin-bottom:10px}
.apt-taxhackai-card p{max-width:740px;color:rgba(226,232,240,.86)}
.apt-taxhackai-flow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0 16px;
}
.apt-taxhackai-flow span{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(148,163,184,.18);
  border-radius:999px;
  padding:8px 10px;
  background:rgba(15,23,42,.42);
  color:rgba(226,232,240,.9);
  font-size:12px;
  letter-spacing:.02em;
}
.apt-taxhackai-side{
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  padding:16px;
  background:rgba(2,6,23,.32);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}
.apt-taxhackai-side strong{font-size:16px;color:#fff}
.apt-taxhackai-side span{color:rgba(203,213,225,.86);font-size:14px;line-height:1.45}
.apt-taxhackai-flow-page .apt-wrap{max-width:1180px}
.apt-taxhackai-hero{padding:34px}
.apt-taxhackai-hero-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:18px}
.apt-taxhackai-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:18px;
  margin-top:18px;
}
.apt-taxhackai-steps{display:grid;gap:12px;margin-top:18px}
.apt-taxhackai-steps div{
  border:1px solid rgba(148,163,184,.16);
  border-radius:18px;
  padding:15px 16px;
  background:rgba(255,255,255,.035);
}
.apt-taxhackai-steps strong{display:block;color:#fff;margin-bottom:6px}
.apt-taxhackai-steps span{display:block;color:rgba(203,213,225,.86);line-height:1.5}
.apt-taxhackai-account-card{align-self:start}
.apt-taxhackai-code{
  margin:12px 0;
  display:inline-flex;
  border:1px solid rgba(96,165,250,.26);
  border-radius:16px;
  padding:10px 14px;
  background:rgba(37,99,235,.10);
  font-weight:800;
  letter-spacing:.08em;
}
.apt-taxhackai-checklist-card{margin-top:18px}
.apt-taxhackai-checklist{min-height:290px;font-family:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.55}
.apt-taxhackai-disclaimer{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid rgba(251,191,36,.20);
  border-radius:16px;
  background:rgba(251,191,36,.07);
  color:rgba(226,232,240,.88);
}
@media(max-width:900px){
  .apt-taxhackai-card,
  .apt-taxhackai-layout{grid-template-columns:1fr}
  .apt-taxhackai-hero{padding:24px}
}

.apt-dc-sms-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(232,238,252,.88);
  margin-top: 10px;
}
.apt-dc-sms-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
}
.apt-dc-sms-consent a {
  color: rgba(214,225,255,.96);
  text-decoration: underline;
}

/* V61.8.8 — Daily Connection dual prompt clarity */
.apt-dc-dual-note{
  display:flex;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin:14px 0 18px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(102,163,255,.22);
  background:linear-gradient(135deg, rgba(47,107,255,.10), rgba(184,159,90,.07));
  color:rgba(241,245,249,.90);
  line-height:1.55;
}
.apt-dc-dual-note strong{
  color:#fff;
}
.apt-dc-dual-note span{
  color:rgba(241,245,249,.78);
}
.apt-dc-prompt-label{
  display:block;
  margin:2px 0 -6px;
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(184,159,90,.95);
}
.apt-dc-prompt-label-inline{
  margin:0 0 6px;
}

/* V61.8.9 — Daily Connection layout flow fix */
.apt-dc-flow-v2 .apt-dc-prompt-meta-tight{
  margin:10px 0 12px;
}
.apt-dc-flow-v2 .apt-dc-flow-lead{
  max-width:72ch;
  margin:12px 0 0;
  color:rgba(226,232,240,.86);
  line-height:1.7;
}
.apt-dc-flow-v2 .apt-dc-flow-primary-block{
  margin-top:18px;
}
.apt-dc-flow-v2 .apt-dc-primary-answer-form{
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(102,163,255,.20);
  background:linear-gradient(180deg, rgba(15,23,42,.54), rgba(8,13,23,.74));
  box-shadow:0 18px 50px rgba(0,0,0,.16);
}
.apt-dc-flow-v2 .apt-dc-primary-answer-form textarea{
  min-height:210px;
  background:rgba(4,8,15,.88);
  border-color:rgba(148,163,184,.16);
}
.apt-dc-flow-v2 .apt-dc-primary-answer-form label > span{
  color:rgba(241,245,249,.92);
  font-size:15px;
}
.apt-dc-flow-alert{
  margin-top:18px;
  border-color:rgba(96,165,250,.30);
  background:rgba(37,99,235,.14);
}
.apt-dc-dual-note-compact{
  margin-top:16px;
  margin-bottom:0;
  padding:10px 12px;
  font-size:14px;
}
.apt-dc-complete-card{
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(74,222,128,.24);
  background:linear-gradient(135deg, rgba(22,101,52,.18), rgba(15,23,42,.74));
}
.apt-dc-complete-card h3{
  margin:8px 0 8px;
}
.apt-dc-complete-card p{
  margin:0 0 16px;
  color:rgba(226,232,240,.88);
  line-height:1.65;
}
.apt-dc-saved-answer-card{
  border-color:rgba(184,159,90,.25);
  background:linear-gradient(180deg, rgba(184,159,90,.10), rgba(15,23,42,.70));
}
.apt-dc-edit-answer-details,
.apt-dc-context-details{
  margin-top:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.026);
  overflow:hidden;
}
.apt-dc-edit-answer-details summary,
.apt-dc-context-details summary{
  cursor:pointer;
  list-style:none;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:rgba(241,245,249,.92);
  font-weight:700;
}
.apt-dc-edit-answer-details summary::-webkit-details-marker,
.apt-dc-context-details summary::-webkit-details-marker{
  display:none;
}
.apt-dc-edit-answer-details summary::after,
.apt-dc-context-details summary::after{
  content:'Open';
  font:700 11px/1 'IBM Plex Mono',ui-monospace,monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(154,164,178,.95);
}
.apt-dc-edit-answer-details[open] summary::after,
.apt-dc-context-details[open] summary::after{
  content:'Close';
}
.apt-dc-edit-answer-details .apt-dc-form{
  margin:0;
  padding:0 16px 16px;
}
.apt-dc-preview-card-context{
  margin:0 16px 16px;
}
.apt-dc-flow-complete .apt-dc-dual-note-compact{
  opacity:.86;
}
@media (max-width: 700px){
  .apt-dc-flow-v2 .apt-dc-primary-answer-form,
  .apt-dc-complete-card{
    padding:14px;
  }
  .apt-dc-flow-v2 .apt-dc-primary-answer-form textarea{
    min-height:170px;
  }
}

/* ===== V61.9 SMS Engagement Engine ===== */
.apt-dc-sms-pref-card{
  display:grid;
  gap:14px;
}
.apt-dc-sms-pref-card.is-paused .apt-dc-inline-note{
  border-color:rgba(184,159,90,.3);
  background:linear-gradient(135deg, rgba(184,159,90,.12), rgba(255,255,255,.03));
}
.apt-dc-sms-preferences-form{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.apt-dc-sms-toggle{
  flex:1 1 360px;
  margin:0;
}
.apt-dc-sms-preferences-form .btn{
  flex:0 0 auto;
}
@media (max-width: 720px){
  .apt-dc-sms-preferences-form{
    align-items:flex-start;
  }
  .apt-dc-sms-preferences-form .btn{
    width:100%;
  }
}

/* ===== V61.9.2 Referral + SMS combo loop ===== */
.apt-referral-sms-loop-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 23, 42, 0.78));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.apt-referral-sms-loop-card h3 {
  margin: 7px 0 8px;
  font-size: 22px;
  line-height: 1.16;
}
.apt-referral-sms-loop-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
}
.apt-referral-sms-loop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.apt-referral-sms-loop-pills span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  color: rgba(226, 232, 240, 0.9);
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
}
.apt-referral-sms-loop-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.apt-referral-sms-loop-actions .btn {
  justify-content: center;
}
@media (max-width: 760px) {
  .apt-referral-sms-loop-card {
    grid-template-columns: 1fr;
  }
  .apt-referral-sms-loop-actions {
    min-width: 0;
    width: 100%;
  }
}

/* ===== V61.9.3 SMS + Referral Onboarding Flow ===== */
.apt-growth-onboarding {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 23, 42, 0.76));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}
.apt-growth-onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.apt-growth-onboarding-head h3 {
  margin: 8px 0 8px;
  color: #f8fafc;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.apt-growth-onboarding-head p {
  margin: 0;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.84);
}
.apt-growth-onboarding-meter {
  position: relative;
  flex: 0 0 124px;
  min-width: 124px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  padding: 12px;
  text-align: center;
}
.apt-growth-onboarding-meter strong {
  display: block;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1;
}
.apt-growth-onboarding-meter span {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.74);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.apt-growth-onboarding-meter i {
  position: relative;
  display: block;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.apt-growth-onboarding-meter i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--apt-growth-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #d7b86a, #3b82f6);
}
.apt-growth-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.apt-growth-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.56);
}
.apt-growth-step.is-complete {
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.56));
}
.apt-growth-step.is-open {
  border-color: rgba(215, 184, 106, 0.28);
}
.apt-growth-step-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
  font-weight: 800;
}
.apt-growth-step.is-complete .apt-growth-step-status {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}
.apt-growth-step-main span {
  display: block;
  margin-bottom: 6px;
  color: rgba(203, 213, 225, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.apt-growth-step-main strong {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.25;
}
.apt-growth-step-main p {
  margin: 8px 0 0;
  color: rgba(203, 213, 225, 0.78);
  font-size: 13px;
  line-height: 1.45;
}
.apt-growth-step-link {
  display: inline-flex;
  margin-top: 12px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.apt-growth-step-link:hover,
.apt-growth-step-link:focus {
  color: #fff;
}
.apt-growth-onboarding-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.apt-growth-onboarding-foot {
  display: block;
  margin-top: 10px;
  color: rgba(203, 213, 225, 0.66);
}
.apt-dc-sms-pref-card.is-paused {
  border-color: rgba(215, 184, 106, 0.35);
  background: linear-gradient(135deg, rgba(215, 184, 106, 0.12), rgba(15, 23, 42, 0.66));
}
.apt-dc-sms-pref-card.is-paused .apt-dc-inline-note strong {
  color: #f8fafc;
}
@media (max-width: 980px) {
  .apt-growth-onboarding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .apt-growth-onboarding {
    padding: 16px;
  }
  .apt-growth-onboarding-head {
    flex-direction: column;
  }
  .apt-growth-onboarding-meter {
    width: 100%;
    flex-basis: auto;
  }
  .apt-growth-onboarding-steps {
    grid-template-columns: 1fr;
  }
  .apt-growth-onboarding-actions .btn,
  .apt-growth-onboarding-actions .apt-copy-button {
    width: 100%;
    justify-content: center;
  }
}


/* ===== V61.9.4 Micro-animations + progress feedback ===== */
.apt-growth-onboarding {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}
.apt-growth-onboarding::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(520px 180px at 12% 0%, rgba(96, 165, 250, 0.18), transparent 62%),
    radial-gradient(420px 170px at 92% 8%, rgba(215, 184, 106, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 520ms ease;
}
.apt-growth-onboarding.apt-growth-ready::before {
  opacity: 1;
}
.apt-growth-onboarding > * {
  position: relative;
  z-index: 1;
}
.apt-growth-progress-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
  color: rgba(226, 232, 240, 0.86);
  font-size: 13px;
  line-height: 1.35;
}
.apt-growth-progress-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  font-weight: 900;
}
.apt-growth-onboarding.is-complete-all .apt-growth-progress-feedback {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}
.apt-growth-onboarding.is-complete-all .apt-growth-progress-feedback-icon {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}
.apt-growth-onboarding-meter {
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.apt-growth-onboarding.apt-growth-ready .apt-growth-onboarding-meter {
  animation: apt-growth-meter-pop 560ms cubic-bezier(.2,.9,.2,1.2) both;
}
.apt-growth-onboarding-meter i::before {
  transition: width 1200ms cubic-bezier(.22,1,.36,1);
}
.apt-growth-onboarding-meter i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 48px;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  animation: apt-growth-progress-shine 2200ms ease-in-out 700ms infinite;
  pointer-events: none;
}
.apt-growth-step {
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.apt-growth-js .apt-growth-step {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}
.apt-growth-ready .apt-growth-step {
  animation: apt-growth-step-in 520ms cubic-bezier(.2,.85,.2,1) both;
  animation-delay: calc(var(--apt-growth-step-index, 1) * 75ms);
}
.apt-growth-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
.apt-growth-step.is-complete .apt-growth-step-status {
  animation: apt-growth-check-pop 720ms cubic-bezier(.2,.9,.2,1.25) both;
}
.apt-growth-step.is-next {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.10), 0 18px 42px rgba(37, 99, 235, 0.16);
}
.apt-growth-step.is-next::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(96, 165, 250, 0.32);
  opacity: 0;
  animation: apt-growth-next-pulse 2200ms ease-out infinite;
  pointer-events: none;
}
.apt-growth-next-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.10);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.apt-growth-step.is-next .apt-growth-step-link,
.apt-growth-onboarding-actions .btn.btn-primary {
  position: relative;
  overflow: hidden;
}
.apt-growth-step.is-next .apt-growth-step-link::after,
.apt-growth-onboarding-actions .btn.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 42%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: apt-growth-button-shine 2600ms ease-in-out infinite;
  pointer-events: none;
}
.apt-growth-action-clicked {
  transform: translateY(1px) scale(0.98) !important;
}
.apt-growth-share-tapped .apt-growth-progress-feedback {
  border-color: rgba(215, 184, 106, 0.42);
  background: rgba(215, 184, 106, 0.10);
}
.apt-growth-share-tapped .apt-growth-progress-feedback strong::after {
  content: " Share opened — send the text to start momentum.";
  color: #fde68a;
}
.apt-growth-just-progress {
  animation: apt-growth-panel-glow 1600ms ease-out 2;
}
.apt-growth-just-progress .apt-growth-progress-feedback {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.12);
}
.apt-growth-just-progress .apt-growth-progress-feedback-icon {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}
@keyframes apt-growth-step-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes apt-growth-check-pop {
  0% { transform: scale(0.7); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes apt-growth-meter-pop {
  0% { transform: translateY(-4px) scale(0.96); }
  60% { transform: translateY(0) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes apt-growth-progress-shine {
  0%, 44% { transform: translateX(-130%); }
  72%, 100% { transform: translateX(360%); }
}
@keyframes apt-growth-next-pulse {
  0% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.035); }
}
@keyframes apt-growth-button-shine {
  0%, 48% { left: -70%; }
  78%, 100% { left: 130%; }
}
@keyframes apt-growth-panel-glow {
  0% { box-shadow: 0 22px 60px rgba(0,0,0,0.18); }
  45% { box-shadow: 0 22px 70px rgba(34,197,94,0.22), 0 0 0 1px rgba(34,197,94,0.18); }
  100% { box-shadow: 0 22px 60px rgba(0,0,0,0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .apt-growth-onboarding,
  .apt-growth-onboarding *,
  .apt-growth-onboarding *::before,
  .apt-growth-onboarding *::after {
    animation: none !important;
    transition: none !important;
  }
  .apt-growth-js .apt-growth-step {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* V61.9.5 — overlay close + scroll unlock fix */
.apt-dc-compact-card{position:relative;}
.apt-dc-compact-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px;}
.apt-dc-compact-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:34px;min-height:34px;border-radius:999px;border:1px solid rgba(15,23,42,.10);background:rgba(15,23,42,.05);color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;text-decoration:none;font-size:20px;line-height:1;font-weight:900;opacity:1!important;box-shadow:none;}
.apt-dc-compact-close:hover,.apt-dc-compact-close:focus{background:rgba(15,23,42,.10);color:#020617!important;-webkit-text-fill-color:#020617!important;outline:none;}
.apt-dc-compact-close span{display:none;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-family:'IBM Plex Mono',ui-monospace,monospace;}
.apt-dc-compact-card .apt-dc-actions .btn:not(.btn-primary){color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;border-color:rgba(15,23,42,.12)!important;background:rgba(15,23,42,.035)!important;opacity:1!important;}
.apt-dc-compact-card .apt-dc-actions .btn:not(.btn-primary):hover{background:rgba(15,23,42,.08)!important;}
@media (min-width:901px){
  html.apt-overlay-scroll-unlocked,body.apt-overlay-scroll-unlocked,html.apt-inline-menu-open,body.apt-inline-menu-open,html.apt-mobile-menu-open,body.apt-mobile-menu-open,html.apt-mobile-sheet-open,body.apt-mobile-sheet-open,html.apt-mobile-nav-routing,body.apt-mobile-nav-routing,html.menu-open,body.menu-open,html.nav-open,body.nav-open,html.tools-open,body.tools-open{overflow-y:auto!important;overflow-x:hidden!important;height:auto!important;max-height:none!important;position:static!important;overscroll-behavior:auto!important;}
  body.apt-inline-menu-open::before,body.apt-mobile-menu-open::before,body.apt-mobile-sheet-open::before,body.apt-mobile-nav-routing::before,body.menu-open::before,body.nav-open::before,body.tools-open::before,body.apt-overlay-scroll-unlocked::before,body.apt-overlay-scroll-unlocked::after{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
  body.apt-path-console,body.apt-therapy-therapists,body[class*="apt-path-therapy-"]{overflow-y:auto!important;height:auto!important;min-height:100vh!important;}
  body.apt-path-console main,body.apt-path-console .section,body.apt-path-console .apt-wrap,body.apt-therapy-therapists main,body.apt-therapy-therapists .section,body.apt-therapy-therapists .apt-wrap,body[class*="apt-path-therapy-"] main,body[class*="apt-path-therapy-"] .section,body[class*="apt-path-therapy-"] .apt-wrap{overflow:visible!important;max-height:none!important;}
  .apt-mobile-sheet-backdrop,.apt-mobile-drawer-backdrop,.apt-vis-backdrop,.apt-vis-overlay,[data-apt-overlay-backdrop],[class*="tool-backdrop"],[class*="tools-backdrop"],[class*="drawer-backdrop"]{opacity:0!important;visibility:hidden!important;pointer-events:none!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
  body:not(.apt-mobile-menu-open) main,body:not(.apt-mobile-menu-open) .site,body:not(.apt-mobile-menu-open) .site-content,body:not(.apt-mobile-menu-open) .apt-wrap,body:not(.apt-mobile-menu-open) .panel,body:not(.apt-mobile-menu-open) .card,body:not(.apt-mobile-menu-open) .apt-home-shell-v20,body:not(.apt-mobile-menu-open) .apt-home-shell-v20 *{filter:none!important;mix-blend-mode:normal!important;}
}
@media (max-width:560px){.apt-dc-compact-head{align-items:flex-start}.apt-dc-compact-close{min-width:38px;min-height:38px}}

/* V61.9.6 — console + therapist directory scroll fix */
@media (min-width:901px){
  /* Passive visibility shells can sit over the page, dim content, and catch scroll on console/provider routes. */
  body.apt-path-console .apt-vis-shell,
  body.apt-path-console .apt-vis-ribbon,
  body.apt-therapy-therapists .apt-vis-shell,
  body.apt-therapy-therapists .apt-vis-ribbon,
  body[class*="apt-path-therapy-"] .apt-vis-shell,
  body[class*="apt-path-therapy-"] .apt-vis-ribbon,
  body[class*="apt-path-therapists-"] .apt-vis-shell,
  body[class*="apt-path-therapists-"] .apt-vis-ribbon{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    max-height:0!important;
    overflow:hidden!important;
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  /* Keep the Daily Tools launcher usable, but do not let passive wrappers lock the page. */
  body.apt-path-console .apt-vis-dock,
  body.apt-therapy-therapists .apt-vis-dock,
  body[class*="apt-path-therapy-"] .apt-vis-dock,
  body[class*="apt-path-therapists-"] .apt-vis-dock{
    pointer-events:auto!important;
    filter:none!important;
    mix-blend-mode:normal!important;
  }

  /* Release fixed/inner-scroll traps around clinical-network/provider panels. */
  body.apt-path-console .apt-console-dash,
  body.apt-path-console .apt-console-summary,
  body.apt-path-console .apt-console-tool-grid,
  body.apt-path-console .apt-console-timeline,
  body.apt-path-console .apt-app,
  body.apt-path-console #aptConsoleRoot,
  body.apt-path-console #aptConsoleApp,
  body.apt-path-console [class*="clinical"],
  body.apt-path-console [class*="provider"],
  body.apt-path-console [class*="therapist"],
  body.apt-path-console [class*="directory"],
  body.apt-path-console [class*="network"],
  body.apt-therapy-therapists [class*="clinical"],
  body.apt-therapy-therapists [class*="provider"],
  body.apt-therapy-therapists [class*="therapist"],
  body.apt-therapy-therapists [class*="directory"],
  body.apt-therapy-therapists [class*="network"]{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }

  /* If a plugin creates a scrollable cards column, make it part of the page flow. */
  body.apt-path-console [class*="therapist-list"],
  body.apt-path-console [class*="therapists-list"],
  body.apt-path-console [class*="provider-list"],
  body.apt-path-console [class*="providers-list"],
  body.apt-path-console [class*="clinical-list"],
  body.apt-path-console [class*="directory-list"],
  body.apt-path-console [class*="network-list"]{
    overflow-y:visible!important;
    max-height:none!important;
  }

  /* Prevent transparent overlays from eating scroll on the center content. */
  body.apt-path-console [class*="overlay"],
  body.apt-path-console [class*="backdrop"],
  body.apt-therapy-therapists [class*="overlay"],
  body.apt-therapy-therapists [class*="backdrop"]{
    pointer-events:none!important;
  }
  body.apt-path-console .apt-vis-dock [class*="overlay"],
  body.apt-path-console .apt-vis-dock [class*="backdrop"],
  body.apt-therapy-therapists .apt-vis-dock [class*="overlay"],
  body.apt-therapy-therapists .apt-vis-dock [class*="backdrop"]{
    pointer-events:auto!important;
  }
}

/* V61.9.6 — console therapist-list scroll + stale tool-shell guard */
@media (min-width:901px){
  body.apt-path-console,
  body.apt-therapy-therapists,
  body[class*="apt-path-therapists-"]{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    height:auto!important;
    min-height:100vh!important;
    max-height:none!important;
    position:relative!important;
    overscroll-behavior:auto!important;
  }

  body.apt-path-console main,
  body.apt-path-console .section,
  body.apt-path-console .apt-wrap,
  body.apt-path-console .apt-app,
  body.apt-path-console .apt-app .inner,
  body.apt-path-console #aptConsoleRoot,
  body.apt-path-console #aptConsoleApp,
  body.apt-therapy-therapists main,
  body.apt-therapy-therapists .section,
  body.apt-therapy-therapists .apt-wrap,
  body[class*="apt-path-therapists-"] main,
  body[class*="apt-path-therapists-"] .section,
  body[class*="apt-path-therapists-"] .apt-wrap{
    overflow:visible!important;
    overflow-y:visible!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    position:relative;
  }

  body.apt-path-console .apt-vis-shell,
  body.apt-path-console .apt-vis-ribbon,
  body.apt-path-console [data-apt-legacy-inline-tools="1"],
  body.apt-therapy-therapists .apt-vis-shell,
  body.apt-therapy-therapists .apt-vis-ribbon,
  body[class*="apt-path-therapists-"] .apt-vis-shell,
  body[class*="apt-path-therapists-"] .apt-vis-ribbon{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  body.apt-path-console .apt-vis-dock:not(.daily-tools),
  body.apt-therapy-therapists .apt-vis-dock:not(.daily-tools),
  body[class*="apt-path-therapists-"] .apt-vis-dock:not(.daily-tools){
    pointer-events:none!important;
    visibility:hidden!important;
    opacity:0!important;
  }

  body.apt-path-console .daily-tools,
  body.apt-therapy-therapists .daily-tools,
  body[class*="apt-path-therapists-"] .daily-tools{
    pointer-events:auto!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:1200!important;
  }

  body.apt-path-console [class*="therapist"],
  body.apt-path-console [class*="clinical"],
  body.apt-path-console [class*="provider"]{
    max-height:none!important;
  }
}

/* V61.9.6 — console therapist directory scroll stabilization */
@media (min-width:901px){
  body.apt-path-console,
  body.apt-path-console.apt-console-scroll-unlocked{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    position:static!important;
  }

  body.apt-path-console #page,
  body.apt-path-console .site,
  body.apt-path-console .site-content,
  body.apt-path-console main,
  body.apt-path-console .section,
  body.apt-path-console .apt-wrap,
  body.apt-path-console #aptConsoleRoot,
  body.apt-path-console #aptConsoleApp,
  body.apt-path-console .apt-app,
  body.apt-path-console .apt-app .inner,
  body.apt-path-console .apt-console-dash,
  body.apt-path-console .apt-console-summary,
  body.apt-path-console .apt-console-tool-grid,
  body.apt-path-console .apt-console-timeline,
  body.apt-path-console .apt-console-timeline-list,
  body.apt-path-console [class*="clinical-network"],
  body.apt-path-console [class*="clinician-list"],
  body.apt-path-console [class*="therapist-network"],
  body.apt-path-console [class*="therapist-directory"],
  body.apt-path-console [class*="therapist-list"],
  body.apt-path-console [class*="therapist-grid"]{
    overflow:visible!important;
    overflow-y:visible!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    transform:none!important;
    overscroll-behavior:auto!important;
    -webkit-overflow-scrolling:auto!important;
  }

  body.apt-path-console #aptConsoleRoot,
  body.apt-path-console .apt-app{
    max-width:980px;
  }

  body.apt-path-console .apt-console-dash,
  body.apt-path-console [class*="clinical-network"],
  body.apt-path-console [class*="therapist-directory"],
  body.apt-path-console [class*="therapist-list"],
  body.apt-path-console [class*="therapist-grid"]{
    pointer-events:auto!important;
  }

  body.apt-path-console .panel,
  body.apt-path-console .card,
  body.apt-path-console [class*="therapist-card"],
  body.apt-path-console [class*="clinician-card"]{
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    pointer-events:auto!important;
  }

  body.apt-path-console .apt-mobile-sheet-backdrop,
  body.apt-path-console .apt-mobile-drawer-backdrop,
  body.apt-path-console .apt-vis-backdrop,
  body.apt-path-console .apt-vis-overlay,
  body.apt-path-console [data-apt-overlay-backdrop],
  body.apt-path-console [class*="tool-backdrop"],
  body.apt-path-console [class*="tools-backdrop"],
  body.apt-path-console [class*="drawer-backdrop"]{
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

/* ===== V61.9.7 legal compliance pages ===== */
.apt-legal-page .apt-wrap{
  max-width: 980px;
}
.apt-legal-hero{
  margin-bottom: 18px;
}
.apt-legal-hero .lead{
  max-width: 760px;
  color: rgba(226,232,240,.9);
  font-size: 1.06rem;
  line-height: 1.65;
}
.apt-legal-panel{
  padding: clamp(22px, 4vw, 42px);
}
.apt-legal-panel h2{
  margin: 28px 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--text);
}
.apt-legal-panel h2:first-child{
  margin-top: 0;
}
.apt-legal-panel p,
.apt-legal-panel li{
  color: rgba(226,232,240,.86);
  line-height: 1.72;
}
.apt-legal-panel ul{
  padding-left: 1.25rem;
  margin: 10px 0 18px;
}
.apt-legal-panel strong{
  color: #fff;
}
.apt-legal-panel a{
  color: #a8c7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ===== V62.0 Programmable SEO Engine ===== */
.apt-pseo-authority .apt-pseo-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(102, 163, 255, 0.18);
  background:
    radial-gradient(720px 260px at 18% 0%, rgba(47,107,255,.14), transparent 62%),
    linear-gradient(180deg, rgba(18,26,42,.94), rgba(13,19,31,.92));
}

.apt-pseo-authority .apt-pseo-panel::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184,159,90,.18), transparent 70%);
  pointer-events: none;
}

.apt-pseo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.apt-pseo-group {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.025);
}

.apt-pseo-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.apt-pseo-link-list a,
.apt-pseo-inline-note a {
  color: rgba(197, 218, 255, .96);
  text-decoration: none;
  border-bottom: 1px solid rgba(102,163,255,.32);
}

.apt-pseo-link-list a:hover,
.apt-pseo-inline-note a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,.75);
}

.apt-pseo-inline-note {
  margin-top: 18px;
  border: 1px solid rgba(184,159,90,.22);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(184,159,90,.06);
}

.apt-pseo-inline-note p {
  margin: 0;
  color: rgba(241,245,249,.88);
}

.apt-pseo-city-cloud .apt-link-chip {
  font-weight: 650;
}

.apt-therapy-national .hero .lead {
  max-width: 960px;
}

.apt-pseo-national-intro p a {
  color: rgba(197, 218, 255, .96);
}

@media (max-width: 980px) {
  .apt-pseo-grid { grid-template-columns: 1fr; }
}

/* ===== V62.1 National City + Therapist Placement Expansion ===== */
.apt-national-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 12px;
  margin-top: 18px;
}
.apt-national-stats div {
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(23,31,48,.82), rgba(10,15,26,.82));
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.apt-national-stats strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  color: rgba(248,250,252,.98);
}
.apt-national-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(190,199,214,.82);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.apt-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.apt-region-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.04);
  color: rgba(241,245,249,.95);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 700;
}
.apt-region-tabs a:hover,
.apt-region-tabs a:focus {
  border-color: rgba(94,153,255,.42);
  background: rgba(94,153,255,.12);
  color: #fff;
}
.apt-region-tabs a span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(203,213,225,.95);
  font-size: .72rem;
}
.apt-region-block {
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,13,24,.44);
  border-radius: 24px;
  padding: 18px;
}
.apt-region-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 4px;
}
.apt-region-heading h2,
.apt-region-heading h3 {
  margin: 8px 0 0;
  color: rgba(248,250,252,.98);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.apt-region-heading > span {
  color: rgba(203,213,225,.78);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 8px 11px;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 800;
}
.apt-national-city-grid {
  margin-top: 18px;
}
.apt-empty-provider-panel {
  grid-column: 1 / -1;
  border-color: rgba(94,153,255,.24) !important;
  background: linear-gradient(135deg, rgba(29,78,216,.12), rgba(12,18,32,.88)) !important;
}
.apt-therapist-application-intro {
  border-color: rgba(94,153,255,.24) !important;
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(29,78,216,.12)) !important;
}
@media (max-width: 760px) {
  .apt-national-stats { grid-template-columns: 1fr; }
  .apt-region-heading { align-items: flex-start; flex-direction: column; }
  .apt-region-block { padding: 14px; }
}

/* ===== V62.2 National SEO Quality + Indexing Control ===== */
.apt-seo-quality-panel {
  border-color: rgba(94,153,255,.22) !important;
  background: linear-gradient(135deg, rgba(15,23,42,.9), rgba(29,78,216,.10)) !important;
}
.apt-seo-quality-copy p {
  margin-top: 10px;
}
.apt-seo-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.apt-seo-quality-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.apt-seo-quality-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: rgba(248,250,252,.92) !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: .9rem;
  line-height: 1.2;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.apt-seo-quality-chip:hover,
.apt-seo-quality-chip:focus {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,.38);
  background: rgba(96,165,250,.12);
  color: #fff !important;
}
.apt-seo-quality-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}
.apt-seo-quality-stat-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,13,24,.52);
  color: rgba(203,213,225,.95);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .82rem;
  font-weight: 800;
}
.apt-provider-quality-panel {
  border-color: rgba(34,197,94,.20) !important;
  background: linear-gradient(135deg, rgba(12,18,32,.92), rgba(22,101,52,.10)) !important;
}
.apt-seo-quality-admin code {
  white-space: normal;
}
@media (max-width: 780px) {
  .apt-seo-quality-grid {
    grid-template-columns: 1fr;
  }
}

/* V62.3.4 — Daily Tools non-modal color + public card cleanup
   Daily Tools should behave like a floating assistant panel, not a modal that washes out public pages. */
@media (min-width:901px){
  html.apt-daily-tools-nonmodal,
  body.apt-daily-tools-nonmodal,
  html.tools-open,
  body.tools-open{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    height:auto !important;
    max-height:none !important;
    position:static !important;
  }

  .apt-vis-backdrop,
  .apt-vis-overlay,
  .apt-vis-spotlight,
  [data-apt-vis-backdrop],
  [data-apt-vis-overlay],
  [data-apt-vis-spotlight],
  [class*="apt-vis-backdrop"],
  [class*="apt-vis-overlay"],
  [class*="apt-vis-spotlight"],
  [class*="tool-backdrop"],
  [class*="tools-backdrop"],
  [class*="tool-overlay"],
  [class*="tools-overlay"]{
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    background:transparent !important;
    box-shadow:none !important;
    filter:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  body.apt-daily-tools-nonmodal main,
  body.apt-daily-tools-nonmodal .site,
  body.apt-daily-tools-nonmodal .site-content,
  body.apt-daily-tools-nonmodal .apt-home-shell,
  body.apt-daily-tools-nonmodal .apt-home-section,
  body.apt-daily-tools-nonmodal .apt-wrap,
  body.apt-daily-tools-nonmodal .panel,
  body.apt-daily-tools-nonmodal .card,
  body.apt-daily-tools-nonmodal .apt-home-panel,
  body.tools-open main,
  body.tools-open .site,
  body.tools-open .site-content,
  body.tools-open .apt-home-shell,
  body.tools-open .apt-home-section,
  body.tools-open .apt-wrap,
  body.tools-open .panel,
  body.tools-open .card,
  body.tools-open .apt-home-panel{
    opacity:1 !important;
    filter:none !important;
    mix-blend-mode:normal !important;
    background-blend-mode:normal !important;
    transform:none !important;
  }

  .apt-vis-dock,
  .daily-tools,
  [class*="daily-tools"]{
    filter:none !important;
    mix-blend-mode:normal !important;
  }
}

/* Public homepage support/resource cards should look intentional, not greyed out or strategy-blue. */
body.home .apt-seo-public-resource-panel,
body.front-page .apt-seo-public-resource-panel,
body.page-template-front-page .apt-seo-public-resource-panel{
  background:linear-gradient(180deg,#ffffff,#f8fbff) !important;
  border:1px solid rgba(15,23,42,.08) !important;
  color:#0f172a !important;
  box-shadow:0 22px 60px rgba(15,23,42,.08) !important;
}
body.home .apt-seo-public-resource-panel .kicker,
body.front-page .apt-seo-public-resource-panel .kicker,
body.page-template-front-page .apt-seo-public-resource-panel .kicker{
  color:#64748b !important;
  letter-spacing:.16em;
}
body.home .apt-seo-public-resource-panel .h2,
body.front-page .apt-seo-public-resource-panel .h2,
body.page-template-front-page .apt-seo-public-resource-panel .h2,
body.home .apt-seo-public-resource-panel h2,
body.front-page .apt-seo-public-resource-panel h2,
body.page-template-front-page .apt-seo-public-resource-panel h2{
  color:#0f172a !important;
}
body.home .apt-seo-public-resource-panel p,
body.front-page .apt-seo-public-resource-panel p,
body.page-template-front-page .apt-seo-public-resource-panel p,
body.home .apt-seo-public-resource-panel li,
body.front-page .apt-seo-public-resource-panel li,
body.page-template-front-page .apt-seo-public-resource-panel li{
  color:#475569 !important;
}
body.home .apt-seo-public-resource-panel a,
body.front-page .apt-seo-public-resource-panel a,
body.page-template-front-page .apt-seo-public-resource-panel a{
  color:#1d4ed8 !important;
  -webkit-text-fill-color:#1d4ed8 !important;
  opacity:1 !important;
}
body.home .apt-seo-public-resource-panel .apt-link-chip,
body.front-page .apt-seo-public-resource-panel .apt-link-chip,
body.page-template-front-page .apt-seo-public-resource-panel .apt-link-chip{
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
  background:#ffffff !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:0 6px 18px rgba(15,23,42,.04) !important;
  text-decoration:none !important;
}
body.home .apt-seo-public-resource-panel .apt-link-chip:hover,
body.front-page .apt-seo-public-resource-panel .apt-link-chip:hover,
body.page-template-front-page .apt-seo-public-resource-panel .apt-link-chip:hover{
  border-color:rgba(47,107,255,.24) !important;
  box-shadow:0 10px 24px rgba(47,107,255,.10) !important;
}

/* V62.3.5 — menu font contrast fix
   Keeps the header dark but makes navigation labels readable on public/member pages. */
.apt-header,
.site-header,
header.site-header {
  color: #f8fafc !important;
}

.apt-topbar,
.apt-topbar *,
.apt-header,
.apt-header *,
.apt-nav,
.apt-nav *,
.apt-menu,
.apt-menu *,
.apt-brand,
.apt-brand * {
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.apt-brand .name,
.apt-header .apt-brand .name,
.apt-nav .apt-brand .name {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
}

.apt-brand .tag,
.apt-header .apt-brand .tag,
.apt-nav .apt-brand .tag {
  color: rgba(226,232,240,.96) !important;
  -webkit-text-fill-color: rgba(226,232,240,.96) !important;
  opacity: 1 !important;
}

.apt-menu > li > a,
.apt-menu a,
.apt-header .apt-menu > li > a,
.apt-header .apt-menu a,
.apt-nav .apt-menu > li > a,
.apt-nav .apt-menu a,
.apt-nav a:not(.btn),
.apt-header nav a:not(.btn) {
  color: rgba(248,250,252,.94) !important;
  -webkit-text-fill-color: rgba(248,250,252,.94) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.apt-menu > li > a:hover,
.apt-menu > li > a:focus,
.apt-menu a:hover,
.apt-menu a:focus,
.apt-menu .current-menu-item > a,
.apt-menu .current_page_item > a,
.apt-menu .current-menu-ancestor > a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(255,255,255,.14) !important;
}

.apt-menu .sub-menu,
.apt-header .apt-menu .sub-menu,
.apt-nav .apt-menu .sub-menu {
  background: #0b1220 !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 22px 50px rgba(0,0,0,.34) !important;
}

.apt-menu .sub-menu a,
.apt-header .apt-menu .sub-menu a,
.apt-nav .apt-menu .sub-menu a,
body.home .apt-menu .sub-menu a,
body.front-page .apt-menu .sub-menu a {
  color: rgba(248,250,252,.96) !important;
  -webkit-text-fill-color: rgba(248,250,252,.96) !important;
  opacity: 1 !important;
  background: transparent !important;
}

.apt-menu .sub-menu a:hover,
.apt-menu .sub-menu a:focus,
body.home .apt-menu .sub-menu a:hover,
body.front-page .apt-menu .sub-menu a:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
}

.apt-cta .btn,
.apt-header .apt-cta .btn,
.apt-nav .apt-cta .btn,
.apt-header .btn {
  opacity: 1 !important;
  text-shadow: none !important;
}

.apt-cta .btn:not(.primary):not(.gold),
.apt-header .apt-cta .btn:not(.primary):not(.gold),
.apt-nav .apt-cta .btn:not(.primary):not(.gold) {
  color: rgba(248,250,252,.94) !important;
  -webkit-text-fill-color: rgba(248,250,252,.94) !important;
  border-color: rgba(255,255,255,.14) !important;
}

.apt-topbar,
.apt-topbar strong,
.apt-topbar span,
.apt-topbar a {
  color: rgba(226,232,240,.92) !important;
  -webkit-text-fill-color: rgba(226,232,240,.92) !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  body.apt-mobile-shell-ready .apt-menu a,
  body.apt-mobile-shell-ready .apt-menu > li > a,
  body.apt-mobile-shell-ready .apt-menu .sub-menu a {
    color: rgba(248,250,252,.96) !important;
    -webkit-text-fill-color: rgba(248,250,252,.96) !important;
    opacity: 1 !important;
  }
}

/* V62.3.6 — Header logout/member button contrast fix
   Home/front-page button rules made the non-primary header CTA render as a white blank pill.
   Keep secondary header CTAs dark-outline on every page so Log out / Member Login stay readable. */
.apt-header .apt-cta a.btn:not(.btn-primary):not(.gold),
.apt-nav .apt-cta a.btn:not(.btn-primary):not(.gold),
body.home .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold),
body.front-page .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold),
body.page-template-front-page .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold) {
  background: rgba(15, 23, 42, .72) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  color: rgba(248, 250, 252, .96) !important;
  -webkit-text-fill-color: rgba(248, 250, 252, .96) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):hover,
.apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):focus,
.apt-nav .apt-cta a.btn:not(.btn-primary):not(.gold):hover,
.apt-nav .apt-cta a.btn:not(.btn-primary):not(.gold):focus,
body.home .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):hover,
body.home .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):focus,
body.front-page .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):hover,
body.front-page .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):focus,
body.page-template-front-page .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):hover,
body.page-template-front-page .apt-header .apt-cta a.btn:not(.btn-primary):not(.gold):focus {
  background: rgba(30, 41, 59, .86) !important;
  border-color: rgba(255, 255, 255, .24) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* V62.3.6 final guard — explicitly target WordPress logout/member secondary CTAs. */
.apt-header .apt-cta a[href*="wp-login.php?action=logout"],
.apt-nav .apt-cta a[href*="wp-login.php?action=logout"],
.apt-header .apt-cta a[href*="/login/"],
.apt-nav .apt-cta a[href*="/login/"] {
  background: rgba(8, 13, 24, 0.92) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: rgba(248,250,252,0.98) !important;
  -webkit-text-fill-color: rgba(248,250,252,0.98) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 10px 24px rgba(0,0,0,0.16) !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

.apt-header .apt-cta a[href*="wp-login.php?action=logout"]:hover,
.apt-header .apt-cta a[href*="wp-login.php?action=logout"]:focus,
.apt-nav .apt-cta a[href*="wp-login.php?action=logout"]:hover,
.apt-nav .apt-cta a[href*="wp-login.php?action=logout"]:focus,
.apt-header .apt-cta a[href*="/login/"]:hover,
.apt-header .apt-cta a[href*="/login/"]:focus,
.apt-nav .apt-cta a[href*="/login/"]:hover,
.apt-nav .apt-cta a[href*="/login/"]:focus {
  background: rgba(15, 23, 42, 0.98) !important;
  border-color: rgba(255,255,255,0.28) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* V62.3.7 — Executive Reset full-width toggle fix
   Reconnects existing/fullscreen controls and provides a safe fallback button for the tool. */
.apt-er-fullwidth-row{
  display:flex;
  justify-content:flex-end;
  margin:0 0 14px;
}

.apt-er-fullwidth-header-target{
  position:relative;
}

.apt-exec-reset-fullwidth-toggle,
button.apt-exec-reset-fullwidth-toggle,
a.apt-exec-reset-fullwidth-toggle,
.apt-er-fullwidth-toggle{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background:rgba(15,23,42,.76) !important;
  color:rgba(248,250,252,.96) !important;
  -webkit-text-fill-color:rgba(248,250,252,.96) !important;
  padding:10px 14px !important;
  min-height:38px !important;
  font:700 12px/1 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  cursor:pointer !important;
  opacity:1 !important;
  filter:none !important;
  box-shadow:0 10px 26px rgba(0,0,0,.18) !important;
}

.apt-exec-reset-fullwidth-toggle:hover,
.apt-exec-reset-fullwidth-toggle:focus,
.apt-exec-reset-fullwidth-toggle.is-active{
  background:linear-gradient(90deg, rgba(192,168,103,.92), rgba(47,107,255,.92)) !important;
  border-color:rgba(255,255,255,.22) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  outline:none !important;
}

.apt-exec-reset-fullwidth-wrap{
  transition:max-width .22s ease, width .22s ease;
}

.apt-exec-reset-fullwidth-panel,
.apt-exec-reset-fullwidth-root{
  transition:width .22s ease, max-width .22s ease, transform .22s ease, box-shadow .22s ease;
}

html.apt-exec-reset-fullwidth-active,
body.apt-exec-reset-fullwidth-active{
  overflow-x:hidden !important;
}

body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-wrap.is-exec-fullwidth{
  max-width:none !important;
  width:100% !important;
}

body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-panel.is-exec-fullwidth{
  width:min(1500px, calc(100vw - 48px)) !important;
  max-width:min(1500px, calc(100vw - 48px)) !important;
  margin-left:50% !important;
  transform:translateX(-50%) !important;
  position:relative !important;
  z-index:30 !important;
  box-shadow:0 32px 90px rgba(2,6,23,.42) !important;
}

body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth{
  width:100% !important;
  max-width:none !important;
}

body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth .apt-reset-grid,
body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth .apt-er-grid,
body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth .apt-tool-grid,
body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth .apt-mf-grid,
body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth [class*="grid"]{
  max-width:none !important;
}

body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth textarea,
body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth .apt-input,
body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-root.is-fullwidth .input{
  min-height:220px;
}

.apt-er-fullwidth-toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translate(-50%, 16px);
  opacity:0;
  pointer-events:none;
  z-index:100000;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(8,13,24,.92);
  color:#fff;
  padding:11px 15px;
  font:700 12px/1 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 18px 48px rgba(0,0,0,.35);
  transition:opacity .18s ease, transform .18s ease;
}

.apt-er-fullwidth-toast.is-visible{
  opacity:1;
  transform:translate(-50%, 0);
}

@media (max-width: 760px){
  body.apt-exec-reset-fullwidth-active .apt-exec-reset-fullwidth-panel.is-exec-fullwidth{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    margin-left:50% !important;
  }

  .apt-exec-reset-fullwidth-toggle,
  button.apt-exec-reset-fullwidth-toggle,
  a.apt-exec-reset-fullwidth-toggle{
    width:100% !important;
  }
}

/* ===== V62.4 High-Value SEO Quiz + Tool Routing Layer ===== */
.apt-seo-quiz-section {
  position: relative;
}
.apt-seo-quiz {
  position: relative;
  border: 1px solid rgba(184,159,90,.34) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(184,159,90,.14), transparent 34%),
    linear-gradient(135deg, rgba(14,20,34,.98), rgba(11,18,32,.96)) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.apt-seo-quiz::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47,107,255,.06), rgba(184,159,90,.08), transparent);
  pointer-events: none;
}
.apt-seo-quiz > * {
  position: relative;
  z-index: 1;
}
.apt-seo-quiz-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: start;
}
.apt-seo-quiz-head p {
  max-width: 860px;
  color: rgba(226,232,240,.92);
}
.apt-seo-quiz-progress {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  padding: 14px;
  text-align: left;
}
.apt-seo-quiz-progress strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.02em;
}
.apt-seo-quiz-progress span {
  display: block;
  margin-top: 5px;
  color: rgba(203,213,225,.86);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.apt-seo-quiz-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  margin-top: 12px;
  overflow: hidden;
}
.apt-seo-quiz-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #facc15);
  transition: width .24s ease;
}
.apt-seo-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.apt-seo-quiz-question {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  padding: 16px;
}
.apt-seo-quiz-question h3 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.25;
}
.apt-seo-quiz-options {
  display: grid;
  gap: 8px;
}
.apt-seo-quiz-option {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(15,23,42,.82);
  color: rgba(241,245,249,.92);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.28;
  text-align: left;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.apt-seo-quiz-option:hover,
.apt-seo-quiz-option:focus {
  border-color: rgba(184,159,90,.58);
  background: rgba(30,41,59,.96);
  transform: translateY(-1px);
  outline: none;
}
.apt-seo-quiz-option.is-selected {
  border-color: rgba(250,204,21,.86);
  background: rgba(184,159,90,.18);
  box-shadow: 0 0 0 3px rgba(184,159,90,.12);
  color: #fff;
}
.apt-seo-quiz-results {
  margin-top: 18px;
}
.apt-seo-quiz-result {
  border: 1px solid rgba(47,107,255,.34);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47,107,255,.16), rgba(15,23,42,.92));
  padding: 18px;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.apt-seo-quiz-result.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.apt-seo-quiz-result h3 {
  color: #fff;
  margin: 8px 0 8px;
  font-size: 21px;
}
.apt-seo-quiz-result p {
  max-width: 900px;
  color: rgba(226,232,240,.94);
}
.apt-seo-quiz-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.apt-seo-quiz-footnote {
  margin-top: 14px;
  color: rgba(203,213,225,.82);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .apt-seo-quiz-head,
  .apt-seo-quiz-grid {
    grid-template-columns: 1fr;
  }
  .apt-seo-quiz-progress {
    max-width: 260px;
  }
}


/* V62.4.1 — Quiz route + overlay regression fix
   Challenge and high-value SEO pages must stay readable when Daily Tools is injected/open. */
@media (min-width:901px){
  body[class*="apt-path-therapy-"]::before,
  body[class*="apt-path-therapy-"]::after,
  body[class*="apt-path-therapists-"]::before,
  body[class*="apt-path-therapists-"]::after{
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    background:transparent!important;
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  body[class*="apt-path-therapy-"].tools-open main,
  body[class*="apt-path-therapy-"].tools-open .site,
  body[class*="apt-path-therapy-"].tools-open .site-content,
  body[class*="apt-path-therapy-"].tools-open .section,
  body[class*="apt-path-therapy-"].tools-open .hero,
  body[class*="apt-path-therapy-"].tools-open .apt-wrap,
  body[class*="apt-path-therapy-"].tools-open .apt-edu,
  body[class*="apt-path-therapy-"].tools-open .split,
  body[class*="apt-path-therapy-"].tools-open .grid3,
  body[class*="apt-path-therapy-"].tools-open .panel,
  body[class*="apt-path-therapy-"].tools-open .card,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal main,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .site,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .site-content,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .section,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .hero,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .apt-wrap,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .apt-edu,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .split,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .grid3,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .panel,
  body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .card{
    opacity:1!important;
    filter:none!important;
    mix-blend-mode:normal!important;
    background-blend-mode:normal!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  body[class*="apt-path-therapy-"] .apt-vis-backdrop,
  body[class*="apt-path-therapy-"] .apt-vis-overlay,
  body[class*="apt-path-therapy-"] .apt-vis-spotlight,
  body[class*="apt-path-therapy-"] [data-apt-vis-backdrop],
  body[class*="apt-path-therapy-"] [data-apt-vis-overlay],
  body[class*="apt-path-therapy-"] [data-apt-vis-spotlight],
  body[class*="apt-path-therapy-"] [class*="tool-backdrop"],
  body[class*="apt-path-therapy-"] [class*="tools-backdrop"],
  body[class*="apt-path-therapy-"] [class*="tool-overlay"],
  body[class*="apt-path-therapy-"] [class*="tools-overlay"]{
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  body[class*="apt-path-therapy-"] .daily-tools,
  body[class*="apt-path-therapy-"] .apt-vis-dock,
  body[class*="apt-path-therapy-"] [class*="daily-tools"]{
    opacity:1!important;
    filter:none!important;
    visibility:visible!important;
    pointer-events:auto;
  }
}


/* ===== V62.4.2 Challenge page overlay + public copy polish =====
   Light challenge pages should look intentionally readable, not dimmed by legacy
   dark card styles or Daily Tools states. */
body[class*="apt-path-therapy-"] .apt-edu .reveal,
body[class*="apt-path-therapy-"] .apt-edu .reveal.is-visible{
  opacity:1 !important;
  transform:none !important;
}

body[class*="apt-path-therapy-"] .apt-edu .panel,
body[class*="apt-path-therapy-"] .apt-edu .card,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card{
  color:#0f172a !important;
  background:rgba(255,255,255,.96) !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:0 18px 52px rgba(15,23,42,.12) !important;
  opacity:1 !important;
  filter:none !important;
  mix-blend-mode:normal !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body[class*="apt-path-therapy-"] .apt-edu .card h1,
body[class*="apt-path-therapy-"] .apt-edu .card h2,
body[class*="apt-path-therapy-"] .apt-edu .card h3,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card h1,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card h2,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card h3,
body[class*="apt-path-therapy-"] .apt-edu .panel h1,
body[class*="apt-path-therapy-"] .apt-edu .panel h2,
body[class*="apt-path-therapy-"] .apt-edu .panel h3{
  color:#0f172a !important;
}

body[class*="apt-path-therapy-"] .apt-edu .card p,
body[class*="apt-path-therapy-"] .apt-edu .card li,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card p,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card li,
body[class*="apt-path-therapy-"] .apt-edu .panel p,
body[class*="apt-path-therapy-"] .apt-edu .panel li{
  color:rgba(15,23,42,.82) !important;
}

body[class*="apt-path-therapy-"] .apt-edu .small,
body[class*="apt-path-therapy-"] .apt-edu .card .small,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card .small{
  color:rgba(71,85,105,.82) !important;
}

body[class*="apt-path-therapy-"] .apt-edu .btn,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card .btn,
body[class*="apt-path-therapy-"] .apt-edu .card .btn{
  color:#0f172a !important;
  background:#fff !important;
  border-color:rgba(15,23,42,.16) !important;
  box-shadow:none !important;
}

body[class*="apt-path-therapy-"] .apt-edu .btn:hover,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card .btn:hover,
body[class*="apt-path-therapy-"] .apt-edu .card .btn:hover{
  background:#f8fafc !important;
  border-color:rgba(15,23,42,.24) !important;
}

body[class*="apt-path-therapy-"] .apt-edu .btn-primary,
body[class*="apt-path-therapy-"] .apt-edu .apt-tool-cta-card .btn-primary,
body[class*="apt-path-therapy-"] .apt-edu .card .btn-primary{
  color:#fff !important;
  background:linear-gradient(135deg, var(--gold), var(--blue)) !important;
  border-color:transparent !important;
}

body[class*="apt-path-therapy-"] .apt-edu .apt-link-chip{
  color:#0f172a !important;
  background:rgba(248,250,252,.96) !important;
  border-color:rgba(15,23,42,.14) !important;
}

body[class*="apt-path-therapy-"] .apt-edu .apt-link-chip:hover{
  background:#fff !important;
  border-color:rgba(47,107,255,.28) !important;
}

/* Extra safety: Daily Tools should not dim content on public therapy pages. */
body[class*="apt-path-therapy-"].tools-open .apt-edu,
body[class*="apt-path-therapy-"].tools-open .apt-edu .panel,
body[class*="apt-path-therapy-"].tools-open .apt-edu .card,
body[class*="apt-path-therapy-"].tools-open .apt-edu .apt-tool-cta-card,
body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .apt-edu,
body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .apt-edu .panel,
body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .apt-edu .card,
body[class*="apt-path-therapy-"].apt-daily-tools-nonmodal .apt-edu .apt-tool-cta-card{
  opacity:1 !important;
  filter:none !important;
  transform:none !important;
  mix-blend-mode:normal !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* ===== V62.4.3 Twilio CTA + SMS Opt-In Verification ===== */
.apt-sms-proof-page .apt-wrap{max-width:1120px;}
.apt-sms-proof-hero{background:linear-gradient(135deg,rgba(37,99,235,.18),rgba(15,23,42,.96));border-color:rgba(96,165,250,.28);}
.apt-sms-proof-hero .h1{max-width:820px;}
.apt-sms-proof-hero p{max-width:820px;color:rgba(226,232,240,.9);}
.apt-sms-proof-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.apt-sms-proof-badges span{display:inline-flex;align-items:center;border:1px solid rgba(148,163,184,.28);border-radius:999px;padding:8px 12px;background:rgba(15,23,42,.45);color:#e5e7eb;font-size:.82rem;font-weight:800;letter-spacing:.03em;}
.apt-sms-proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px;}
.apt-sms-proof-card ul,.apt-sms-proof-panel ul{margin:14px 0 0 20px;color:rgba(226,232,240,.86);line-height:1.65;}
.apt-sms-proof-panel{margin-top:18px;}
.apt-sms-proof-form-box{margin-top:18px;border:1px solid rgba(148,163,184,.22);background:rgba(15,23,42,.5);border-radius:18px;padding:18px;display:grid;gap:14px;}
.apt-sms-proof-form-box label{display:grid;gap:8px;color:#e5e7eb;font-weight:800;}
.apt-sms-proof-form-box input[type="tel"]{width:100%;border:1px solid rgba(148,163,184,.28);background:rgba(2,6,23,.72);border-radius:14px;padding:13px 14px;color:#f8fafc;}
.apt-sms-proof-consent{display:grid!important;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;font-weight:600!important;color:rgba(226,232,240,.9)!important;line-height:1.55;}
.apt-sms-proof-consent input{margin-top:4px;}
.apt-sms-proof-panel blockquote{margin:16px 0 0;padding:18px;border-left:4px solid #60a5fa;background:rgba(37,99,235,.12);border-radius:14px;color:#f8fafc;line-height:1.65;}
.apt-sms-proof-samples{margin:16px 0 0 22px;color:rgba(226,232,240,.9);line-height:1.7;}
.apt-sms-proof-samples li{margin-bottom:10px;}
.apt-sms-compliance-admin .apt-admin-card{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:16px;margin:16px 0;max-width:980px;}
.apt-sms-compliance-admin textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;}
@media (max-width:760px){.apt-sms-proof-grid{grid-template-columns:1fr}.apt-sms-proof-badges{gap:8px}.apt-sms-proof-badges span{font-size:.75rem}}

/* === V62.4.4 Signup SMS Consent + Footer Proof Link === */
.apt-sms-signup-consent{
  margin:18px 0 8px;
  padding:16px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
  background:linear-gradient(135deg, rgba(47,107,255,.08), rgba(184,159,90,.08));
  box-shadow:0 10px 34px rgba(2,6,23,.22);
}
.apt-sms-signup-consent h3{
  margin:7px 0 8px;
  font-size:18px;
  color:rgba(241,245,249,.98);
}
.apt-sms-signup-consent p{
  margin:0 0 12px;
  color:rgba(203,213,225,.82);
  font-size:14px;
  line-height:1.55;
}
.apt-sms-signup-consent label{
  display:block;
  margin:12px 0 0;
}
.apt-sms-signup-consent label > span:first-child{
  display:block;
  margin-bottom:7px;
  color:rgba(226,232,240,.92);
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.apt-sms-signup-consent input[type="tel"]{
  width:100%;
  border:1px solid rgba(148,163,184,.28);
  border-radius:13px;
  background:rgba(15,23,42,.72);
  color:#f8fafc;
  padding:12px 14px;
}
.apt-sms-signup-consent-check{
  display:grid !important;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:12px;
  border-radius:13px;
  background:rgba(2,6,23,.32);
  border:1px solid rgba(148,163,184,.18);
}
.apt-sms-signup-consent-check input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:3px;
}
.apt-sms-signup-consent-check span{
  color:rgba(226,232,240,.86);
  font-size:13px;
  line-height:1.55;
}
.apt-sms-signup-consent-check a{
  color:#93c5fd;
  text-decoration:underline;
  text-underline-offset:3px;
}
.apt-sms-signup-consent .small{
  margin-top:10px;
  color:rgba(148,163,184,.9);
}
@media (max-width:640px){
  .apt-sms-signup-consent{padding:14px;}
}

/* ===== V62.5 Scottsdale Couples Ranking Acceleration Pilot ===== */
.apt-rank-accel-section .apt-rank-accel-panel,
.apt-rank-accel-section .apt-rank-accel-city-push {
  border-color: rgba(102,163,255,.28);
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(12,18,31,.9));
  box-shadow: 0 18px 70px rgba(47,107,255,.12), inset 0 1px 0 rgba(255,255,255,.04);
}
.apt-rank-accel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.apt-rank-accel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184,159,90,.32);
  background: rgba(184,159,90,.10);
  color: rgba(250,244,210,.92);
  border-radius: 999px;
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.apt-rank-accel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.apt-rank-accel-card {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 18px;
}
.apt-rank-accel-card p:last-child { margin-bottom: 0; }
.apt-rank-accel-answer strong { color: rgba(255,255,255,.98); }
.apt-rank-accel-pattern {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(280px, 1.28fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(5,9,16,.38);
  border-radius: 18px;
  padding: 18px;
}
.apt-rank-accel-pattern h3,
.apt-rank-accel-toolbridge h3,
.apt-rank-accel-card h3 {
  margin: 8px 0 10px;
  font-size: 19px;
  color: rgba(255,255,255,.96);
}
.apt-rank-accel-pattern ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 9px;
}
.apt-rank-accel-pattern li { color: rgba(226,232,240,.92); }
.apt-rank-accel-toolbridge {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(102,163,255,.22);
  background: linear-gradient(135deg, rgba(47,107,255,.10), rgba(184,159,90,.07));
  border-radius: 18px;
  padding: 18px;
}
.apt-rank-accel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.apt-rank-accel-links { margin-top: 18px; }
.apt-rank-accel-city-push p { max-width: 980px; }
@media (max-width: 900px) {
  .apt-rank-accel-topline,
  .apt-rank-accel-toolbridge,
  .apt-rank-accel-pattern { display: block; }
  .apt-rank-accel-grid { grid-template-columns: 1fr; }
  .apt-rank-accel-actions { justify-content: flex-start; margin-top: 14px; }
  .apt-rank-accel-badge { margin-top: 12px; }
}

/* =========================================================
   V62.5.1 — GDPR + Cookie Consent Compliance Layer
   ========================================================= */
.apt-cookie-consent[hidden],
.apt-cookie-modal[hidden]{
  display:none !important;
}

.apt-cookie-consent{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:99998;
  padding:18px;
  pointer-events:none;
}

.apt-cookie-consent-card{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(8,13,24,.94);
  box-shadow:0 24px 80px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.05) inset;
  backdrop-filter:blur(18px);
  pointer-events:auto;
}

.apt-cookie-consent-card h2,
.apt-cookie-modal-panel h2{
  margin:6px 0 8px;
  font-size:22px;
  line-height:1.12;
  color:#f8fafc;
}

.apt-cookie-consent-card p,
.apt-cookie-modal-copy,
.apt-cookie-consent-small{
  margin:0;
  color:#cbd5e1;
  line-height:1.55;
}

.apt-cookie-consent-small{
  margin-top:6px;
  font-size:12px;
  color:#94a3b8;
}

.apt-cookie-consent-actions,
.apt-cookie-modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.apt-cookie-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:20px;
}

.apt-cookie-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.72);
  border:0;
  cursor:pointer;
}

.apt-cookie-modal-panel{
  position:relative;
  width:min(820px, calc(100vw - 28px));
  max-height:min(86vh, 820px);
  overflow:auto;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(148,163,184,.28);
  background:linear-gradient(180deg, rgba(16,23,38,.98), rgba(9,14,25,.98));
  box-shadow:0 30px 100px rgba(0,0,0,.66), 0 0 0 1px rgba(255,255,255,.05) inset;
  color:#e5e7eb;
}

.apt-cookie-modal-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.apt-cookie-close{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.28);
  color:#f8fafc;
  background:rgba(255,255,255,.06);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.apt-cookie-category-list{
  display:grid;
  gap:12px;
  margin:18px 0;
}

.apt-cookie-category{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(15,23,42,.72);
}

.apt-cookie-category span span{
  display:block;
  color:#a7b1c2;
  margin-top:5px;
  line-height:1.45;
}

.apt-cookie-category input[type="checkbox"]{
  width:22px;
  height:22px;
  accent-color:#3b82f6;
  flex:0 0 auto;
}

.apt-cookie-modal-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:8px 0 18px;
}

.apt-cookie-modal-links a{
  color:#bfdbfe;
  text-decoration:underline;
  text-underline-offset:3px;
}

.apt-cookie-toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translateX(-50%) translateY(20px);
  z-index:100000;
  opacity:0;
  pointer-events:none;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(15,23,42,.96);
  color:#f8fafc;
  box-shadow:0 12px 40px rgba(0,0,0,.42);
  transition:opacity .18s ease, transform .18s ease;
}

.apt-cookie-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.apt-cookie-modal-open body{
  overflow:hidden;
}

.apt-cookie-policy-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}

.apt-cookie-policy-card{
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  padding:16px;
  background:rgba(15,23,42,.55);
}

.apt-cookie-policy-card h3{
  margin:0 0 8px;
  color:#f8fafc;
}

.apt-cookie-policy-card p{
  margin:0;
}

.apt-privacy-request-form{
  display:grid;
  gap:14px;
  margin-top:20px;
}

.apt-privacy-request-form label{
  display:grid;
  gap:8px;
  color:#dbeafe;
  font-weight:700;
}

.apt-privacy-request-form input,
.apt-privacy-request-form select,
.apt-privacy-request-form textarea{
  width:100%;
  border:1px solid rgba(148,163,184,.22);
  border-radius:14px;
  background:rgba(2,6,23,.62);
  color:#f8fafc;
  padding:12px 13px;
  font:inherit;
}

.apt-privacy-request-form textarea{
  resize:vertical;
}

.apt-hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

.apt-privacy-request-notice{
  margin:18px 0;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.24);
}

.apt-privacy-request-notice.success{
  color:#bbf7d0;
  background:rgba(22,101,52,.18);
  border-color:rgba(34,197,94,.32);
}

.apt-privacy-request-notice.error{
  color:#fecaca;
  background:rgba(127,29,29,.18);
  border-color:rgba(248,113,113,.32);
}

@media (max-width: 760px){
  .apt-cookie-consent{
    padding:12px;
  }
  .apt-cookie-consent-card{
    grid-template-columns:1fr;
    align-items:start;
  }
  .apt-cookie-consent-actions,
  .apt-cookie-modal-actions{
    justify-content:stretch;
  }
  .apt-cookie-consent-actions .btn,
  .apt-cookie-modal-actions .btn{
    width:100%;
    justify-content:center;
  }
  .apt-cookie-policy-grid{
    grid-template-columns:1fr;
  }
  .apt-cookie-category{
    align-items:flex-start;
  }
}

/* V62.5.2 — Security hardening + app launch login protection */
.apt-login-security-note{
  margin-top:18px;
  padding:12px 14px;
  border:1px solid rgba(102,163,255,.22);
  background:rgba(47,107,255,.08);
  border-radius:14px;
  color:rgba(213,225,245,.86);
  font-size:13px;
  line-height:1.55;
}

.apt-security-route-note{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:rgba(226,232,240,.88);
  font-size:12px;
}
