/* Exocellure CRM Pilot — compact editorial typography, all CRM views.
   Additive override: no business logic, no Sabrina/conversation changes. */
html body{font-size:13px;line-height:1.42;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html body :is(h1,h2,h3,h4,h5,h6){font-weight:650;letter-spacing:-.018em;overflow-wrap:break-word}
html body h1{font-size:clamp(21px,1.7vw,25px)!important}
html body h2{font-size:clamp(18px,1.45vw,22px)!important}
html body h3{font-size:clamp(15px,1.22vw,18px)!important}
html body h4{font-size:14px!important}
html body h5,html body h6{font-size:12.5px!important}
html body :is(p,li,dd,dt,td,th,label,legend,summary){font-size:13px;line-height:1.45}
html body :is(button,input,select,textarea){font-size:12.5px;line-height:1.4}
html body :is(small,.muted,.team-sub,.hint,.caption,.sidefoot){font-size:11.5px;line-height:1.4}
html body :is(.nav,.tab,.tabs button,.detail-tabs button,.btn){font-size:12.5px!important}

html body .brand h1{font-size:18px!important}

html body .detail-panel{padding:12px!important;border-radius:12px!important}
html body .clinic-hero{height:142px;padding:16px;gap:12px;border-radius:12px}
html body .clinic-hero-badge{width:50px;height:50px;font-size:19px;border-radius:11px}
html body .clinic-hero-text h3{font-size:17px!important;margin:3px 0 3px}
html body .clinic-hero-text small{font-size:9px!important;letter-spacing:1.4px}
html body .clinic-hero-text p{font-size:12px}
html body .detail-title{margin:13px 0;gap:10px}
html body .detail-title h3{font-size:17px!important;margin-bottom:3px}
html body .detail-title p{font-size:12px}
html body .detail-tabs{gap:5px;padding:4px;border-radius:10px}
html body .detail-tabs button{padding:9px 8px!important;font-weight:600!important;border-radius:8px}
html body .detail-list{column-gap:24px}
html body .detail-list>div{padding:9px 0!important;gap:12px}
html body .detail-list span{font-size:12px}
html body .detail-list strong{font-size:12.5px;font-weight:600}
html body .intelligence-panel{margin-top:14px;padding:13px!important;border-radius:12px!important}
html body .intelligence-panel h4{font-size:13.5px!important;margin:13px 0 8px}
html body .intelligence-panel :is(.chip,.service-pills span){font-size:11px}
html body .fit-summary{padding:12px!important;border-radius:10px}
html body .fit-summary>strong{font-size:20px!important}
html body .fit-summary .research-checklist>div{padding:7px 0!important;gap:12px}
html body .fit-summary .research-checklist>div>strong{font-size:11.5px!important}
html body .score-breakdown>div{padding:7px 0!important;gap:12px}

html body .vr-head h3{font-size:19px!important}
html body .od-panel h3{font-size:17px!important}
html body .exo-executive h3{font-size:18px!important}
html body .exo-section-heading h4{font-size:15px!important}
html body .exo-brief-heading h4{font-size:16px!important}
html body :is(.pill,.badge,.tag,.chip){font-size:11px}
@media(max-width:760px){
 html body{font-size:13px}
 html body :is(button,input,select,textarea){font-size:14px}
 html body .clinic-hero{height:auto;min-height:112px;padding:13px}
 html body .clinic-hero-badge{height:44px;width:44px;font-size:17px}
 html body .detail-list{grid-template-columns:minmax(0,1fr)}
 html body .detail-list>div{padding:10px 0!important}
 html body .detail-tabs button{min-height:40px;padding:9px 6px!important}
 
 html body .detail-panel{padding:12px!important}
 html body .detail-list strong{max-width:62%}
}

/* Approved light CRM visual system — preview branch only.
   Visual overrides only; do not change application logic, lead data, or Sabrina UI. */
:root {
  --exo-cloud: #F6F8FB;
  --exo-white: #FFFFFF;
  --exo-ink: #1E2A3B;
  --exo-border: #DFE5EE;
}
html body {
  background: var(--exo-cloud) !important;
  color: var(--exo-ink) !important;
}

html body :is(input, select, textarea) {
  background-color: var(--exo-white);
  color: var(--exo-ink);
  border: 1px solid var(--exo-border);
  border-radius: 8px;
}
html body :is(input, select, textarea):focus-visible,
html body :is(button, a, [role="button"]):focus-visible {
  outline: 2px solid #1E2A3B;
  outline-offset: 2px;
}

html body :is(th, td) {
  border-color: var(--exo-border);
}

html body :is(.muted, .hint, .caption, .team-sub) {
  color: #657184;
}

/* CRM light-theme pass 2: navigation, dashboard and record views.
   State badges and action buttons retain semantic styles until visual review. */

html body :is(.detail-tabs button,.tabs button):not(.active) {
  color:var(--exo-ink)!important;
  background:transparent!important;
}
html body :is(.detail-tabs button,.tabs button).active {
  color:var(--exo-ink)!important;
  background:var(--exo-cloud)!important;
  border-color:var(--exo-border)!important;
}

/* Login redesign: centered, single-column layout on desktop and mobile.
   Scoped to conventional login/auth containers only; dashboard panels unaffected. */
html body :is(.login-page,.auth-page,.login-screen,.auth-screen,#login-page,#auth-page) {
  min-height:100dvh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--exo-cloud)!important;
  color:var(--exo-ink)!important;
  padding:clamp(20px,4vw,48px);
  box-sizing:border-box;
}
html body :is(.login-page,.auth-page,.login-screen,.auth-screen,#login-page,#auth-page)
  :is(.login-layout,.auth-layout,.login-shell,.auth-shell,.login-wrapper,.auth-wrapper,.login-container,.auth-container) {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  margin-inline:auto!important;
  width:min(100%,460px)!important;
  max-width:460px!important;
  min-height:auto!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:20px;
}
html body :is(.login-page,.auth-page,.login-screen,.auth-screen,#login-page,#auth-page)
  :is(.login-left,.auth-left,.login-right,.auth-right,.login-panel,.auth-panel,.login-card,.auth-card) {
  position:static!important;
  transform:none!important;
  inset:auto!important;
  float:none!important;
  width:100%!important;
  max-width:460px!important;
  margin-inline:auto!important;
  text-align:center;
  background:var(--exo-white)!important;
  color:var(--exo-ink)!important;
  border-color:var(--exo-border)!important;
  box-shadow:none!important;
}
html body :is(.login-page,.auth-page,.login-screen,.auth-screen,#login-page,#auth-page)
  :is(form,.login-form,.auth-form) {
  width:100%!important;
  max-width:420px!important;
  margin-inline:auto!important;
  text-align:left;
}
html body :is(.login-page,.auth-page,.login-screen,.auth-screen,#login-page,#auth-page)
  :is(input,button[type=submit]) {width:100%;box-sizing:border-box}
@media(max-width:600px){
  html body :is(.login-page,.auth-page,.login-screen,.auth-screen,#login-page,#auth-page) {padding:20px 16px}
}

/* Exocellure centered login — light preview v3.
   Fallback layout is deliberately limited to pages with a password form and no CRM sidebar.
   No authentication handlers, session logic or backend requests are changed. */
html body:has(input[type="password"]):not(:has(.sidebar)) {
  --login-surface:#FFFFFF;
  --login-ink:#1E2A3B;
  --login-border:#DFE5EE;
  margin:0;
  min-height:100dvh;
  background:#F6F8FB!important;
  color:var(--login-ink)!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(main,.login-shell,.auth-shell,.login-layout,.auth-layout,.login-screen,.auth-screen,.login-page,.auth-page,#login-page,#auth-page,#login-screen,#auth-screen) {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:none!important;
  margin:0 auto!important;
  min-height:calc(100dvh - 20px);
  box-sizing:border-box;
  padding:clamp(22px,5vh,56px) 20px!important;
  background:#F6F8FB!important;
  color:#1E2A3B!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-right,.login-left,.auth-right,.auth-left,.login-panel,.auth-panel,.login-card,.auth-card,.login-container,.auth-container,.login-box,.auth-box) {
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  flex:none!important;
  margin:0 auto!important;
  width:min(100%,440px)!important;
  max-width:440px!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  background:#FFFFFF!important;
  border-color:#DFE5EE!important;
  color:#1E2A3B!important;
  box-shadow:none!important;
  text-align:center;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-card,.auth-card,.login-box,.auth-box) {
  border:1px solid #DFE5EE!important;
  border-radius:16px!important;
  padding:clamp(22px,3vw,38px)!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(form,.login-form,.auth-form) {
  width:100%!important;
  max-width:390px!important;
  margin:20px auto 0!important;
  text-align:left!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(h1,h2,h3,h4,p,small,label) {
  color:#1E2A3B!important;
  text-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(input[type="email"],input[type="password"],input[name="email"],input[type="text"]) {
  background:#FFFFFF!important;
  color:#1E2A3B!important;
  border:1px solid #DFE5EE!important;
  box-shadow:none!important;
  border-radius:9px!important;
  min-height:43px;
  width:100%!important;
  box-sizing:border-box;
  padding:11px 13px!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(input:focus-visible,button:focus-visible,a:focus-visible) {
  outline:2px solid #1E2A3B!important;
  outline-offset:2px;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(button[type="submit"],.login-form button,.auth-form button) {
  border-radius:9px!important;
  min-height:44px!important;
  width:100%!important;
  font-weight:650;
}
@media(max-width:520px){
  html body:has(input[type="password"]):not(:has(.sidebar))
    :is(.login-card,.auth-card,.login-box,.auth-box){padding:22px 18px!important}
}

/* Login visual correction v4 — remove legacy charcoal surfaces.
   Login only, CSS-only, leaves auth logic and logged-in CRM unchanged. */
html body:has(input[type="password"]):not(:has(.sidebar)) {
  background:#F6F8FB!important;
  color:#1E2A3B!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(div,main,section,article,aside,header,footer,form) {
  background-color:transparent!important;
  background-image:none!important;
  color:#1E2A3B!important;
  text-shadow:none!important;
  box-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(h1,h2,h3,h4,h5,h6,p,span,small,label,strong,em,a) {
  color:#1E2A3B!important;
  text-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-card,.auth-card,.login-box,.auth-box,form:has(input[type="password"])) {
  background:#FFFFFF!important;
  color:#1E2A3B!important;
  border:1px solid #DFE5EE!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  form:has(input[type="password"]) {
  padding:clamp(20px,3vw,32px)!important;
  width:min(100%,430px)!important;
  max-width:430px!important;
  box-sizing:border-box!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  form:has(input[type="password"]) :is(label,input) {
  text-align:left!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(input[type="password"],input[type="email"],input[name="email"]) {
  background:#FFFFFF!important;
  color:#1E2A3B!important;
  border:1px solid #DFE5EE!important;
  -webkit-text-fill-color:#1E2A3B;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(input[type="password"],input[type="email"],input[name="email"])::placeholder {
  color:#758195!important;
  -webkit-text-fill-color:#758195;
  opacity:1;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(button[type="submit"],form:has(input[type="password"]) button) {
  color:#FFFFFF!important;
  background:#1E2A3B!important;
  border:1px solid #1E2A3B!important;
  cursor:pointer;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(button[type="submit"],form:has(input[type="password"]) button):hover {
  background:#33445B!important;
}

/* Login visual refinement v5 — scoped to unauthenticated CRM only.
   Keep staging banner and authentication functionality intact. */
html body:has(input[type="password"]):not(:has(.sidebar)) {
  background:#F6F8FB!important;
  color:#1E2A3B!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(div,section,article,aside,header,footer,main):not(:has(form)):not(input) {
  background:transparent!important;
  box-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-card,.auth-card,.login-box,.auth-box,form:has(input[type="password"])) {
  background:#FFFFFF!important;
  border:1px solid #DFE5EE!important;
  box-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-brand,.auth-brand,.brand-logo,.login-logo,.auth-logo,.login-header,.auth-header)
  :is(img,svg) {
  filter:brightness(0) saturate(100%) invert(13%) sepia(17%) saturate(1405%) hue-rotate(175deg) brightness(94%) contrast(90%)!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-logo,.auth-logo,.brand-logo) {
  color:#1E2A3B!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-logo,.auth-logo,.brand-logo) svg :is(path,polygon,rect) {
  fill:#1E2A3B!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-card,.auth-card,.login-box,.auth-box) :is(h1,h2,h3,p,span,small,label) {
  color:#1E2A3B!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-notice,.auth-notice,.access-note,.login-disclaimer,.auth-disclaimer,.security-note,.restricted-note,.access-warning) {
  color:#465569!important;
  background:#FFFFFF!important;
  border:1px solid #DFE5EE!important;
  border-radius:12px!important;
  padding:15px 18px!important;
  box-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-notice,.auth-notice,.access-note,.login-disclaimer,.auth-disclaimer,.security-note,.restricted-note,.access-warning) * {
  color:#465569!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.forgot-password,.forgot-link,.password-reset,.reset-password) {
  background:transparent!important;
  color:#40536B!important;
  border:0!important;
  box-shadow:none!important;
  padding:6px!important;
  text-decoration:underline;
  text-underline-offset:3px;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  form:has(input[type="password"]) :is(button[type="submit"],input[type="submit"]) {
  background:#1E2A3B!important;
  border-color:#1E2A3B!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  form:has(input[type="password"]) :is(button[type="submit"],input[type="submit"]):hover {
  background:#33445B!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.login-header,.auth-header,.login-brand,.auth-brand) {
  margin-bottom:12px!important;
}
@media(max-width:520px){
 html body:has(input[type="password"]):not(:has(.sidebar)) form:has(input[type="password"]) {
  padding:20px!important;
 }
}

/* Final login refinements: visible supplied brand, accessible notice/link, orange CTA */
html body:has(input[type="password"]):not(:has(.sidebar)) .exo-login-brand-mark {
  display:block!important;
  width:140px!important;
  max-width:35vw!important;
  height:auto!important;
  aspect-ratio:874/514;
  object-fit:contain;
  margin:0 0 18px 0!important;
  filter:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar)) .exo-login-notice-polished {
  background:#FFFFFF!important;
  background-image:none!important;
  color:#465569!important;
  border:1px solid #DFE5EE!important;
  border-radius:12px!important;
  box-shadow:none!important;
  padding:14px 18px!important;
  min-height:0!important;
  height:auto!important;
}
html body:has(input[type="password"]):not(:has(.sidebar)) .exo-login-notice-polished * {
  color:#465569!important;
  background:transparent!important;
  text-shadow:none!important;
}
html body:has(input[type="password"]):not(:has(.sidebar)) .exo-login-forgot-polished {
  color:#40536B!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
  padding:4px 6px!important;
  font-weight:550!important;
  text-decoration:underline!important;
  text-underline-offset:3px;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  form:has(input[type="password"]) :is(button[type="submit"],input[type="submit"]) {
  background:#FF5A0A!important;
  background-image:none!important;
  border:1px solid #FF5A0A!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  form:has(input[type="password"]) :is(button[type="submit"],input[type="submit"]):hover {
  background:#E85007!important;
  border-color:#E85007!important;
}
/* Dashboard light-theme pass: explicit background-image reset on panels and heroes. */

/* Dashboard pass: convert old Mission Control and command-center blocks to cloud/white. */

/* Login v8: truly centered composition, while keeping form field labels readable. */
html body:has(input[type="password"]):not(:has(.sidebar)) {
  text-align:center!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(h1,h2,h3,h4,h5,h6,p,small,footer,header) {
  text-align:center!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(form,form:has(input[type="password"]),.exo-login-notice-polished,.exo-notice-fixed) {
  margin-left:auto!important;
  margin-right:auto!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(form,form:has(input[type="password"])) :is(label,input) {
  text-align:left!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  #exo-replacement-login-logo,
html body:has(input[type="password"]):not(:has(.sidebar))
  .exo-login-brand-mark {
  display:block!important;
  margin:0 auto 18px!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.exo-login-notice-polished,.exo-notice-fixed) {
  text-align:center!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  :is(.exo-login-notice-polished,.exo-notice-fixed) :is(p,span,small,div) {
  text-align:center!important;
}
html body:has(input[type="password"]):not(:has(.sidebar))
  .exo-login-forgot-polished {
  display:inline-block!important;
  text-align:center!important;
}

/* ==========================================================================
   INNER PAGES — OWNER-APPROVED LIGHT VISUAL SYSTEM / 2026-11-08
   Dashboard-only. Do not change login layout, auth flow, Sabrina or backend.
   White surfaces, cloud canvas, navy text, orange active/action accents.
   ========================================================================== */

/* Preserve meaningful status colours, warning states, and existing button semantics.
   The sign-in page is deliberately excluded by the .sidebar scope. */

/* INNER PAGES / LIGHT THEME CORRECTION PASS 2 — 2026-11-08.
   Fix original dark CRM widgets and orange-outlined sidebar without
   affecting locked unauthenticated login, accessibility, or any CRM logic. */

/* Convert dark workspace alert to a readable understated information notice.
   Keep the actual staging/warning message visible in inner pages. */

/* Dashboard accessibility cleanup — bright KPI labels and visible pipeline tracks.
   Scoped to authenticated CRM; locked login page untouched. */

/* Inactive mobile nav entries must never inherit the active orange treatment. */

/* Explicit KPI light lock — six Sales Pipeline totals, no charcoal regression. */



/* Shared phone button sizing, formerly in the removed body-level theme blocks; the locked login depends on it. */
@media(max-width:760px){html body :is(button,.btn,[role="button"]){min-height:42px}}

/* Approved login cleanup (docs/LOGIN-DESIGN-LOCK.md, "Approved cleanup to complete before visual signoff"):
   hide the team-access footer title on the login page. (The staging strip was removed from every page at the owner's
   request.) Environment isolation and authentication are not affected. */
html body .auth-footer{display:none!important}
