/* /assets/shell.css — EvO V1 Universal Shell, /sjobs Header, Pain-First App LP & 5-Min SSO Gate */
:root:root,
html:root[data-theme="light"] {
  color-scheme: light;
  --evo-home-bg: #F4F2EC;
  --evo-home-bg-gradient: radial-gradient(ellipse at 50% 10%, #FAF9F5 0%, #F4F2EC 55%, #EAE6DC 100%);
  --evo-paper: #F4F2EC;
  --evo-sheet: rgba(250, 249, 245, 0.92);
  --evo-card: #FFFFFF;
  --evo-ink: #0E0E0D;
  --evo-ink-soft: #2B312E;
  --evo-muted: #4A4945;
  --evo-accent: #19583B;
  --evo-accent-soft: rgba(25, 88, 59, 0.09);
  --evo-on-accent: #FAF9F5;
  --evo-line: #D5D2C8;
  --evo-line-strong: #B8BDB2;
  --evo-cta-bg: #1B4332;
  --evo-cta-border: #1B4332;
  --evo-cta-ink: #FAF9F5;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html:root[data-theme="dark"],
html[data-theme="dark"],
html:root:not([data-theme="light"]) body.dark-grey,
html:not([data-theme="light"]) body.dark-grey,
html:root:not([data-theme="light"]) body.dark-mode,
html:not([data-theme="light"]) body.dark-mode {
  color-scheme: dark;
  --evo-home-bg: #242625;
  --evo-home-bg-gradient: radial-gradient(ellipse at 50% 10%, #2E3130 0%, #242625 60%, #1C1E1D 100%);
  --evo-paper: #242625;
  --evo-sheet: rgba(28, 30, 29, 0.90);
  --evo-card: #181A19;
  --evo-ink: #F4F2EC;
  --evo-ink-soft: #DCE7E1;
  --evo-muted: #B8B6AF;
  --evo-accent: #4ADE80;
  --evo-accent-soft: rgba(74, 222, 128, 0.12);
  --evo-on-accent: #0E0E0D;
  --evo-line: #323634;
  --evo-line-strong: #434845;
  --evo-cta-bg: #1B4332;
  --evo-cta-border: rgba(116, 198, 157, 0.36);
  --evo-cta-ink: #FAF9F5;
  /* Compatibilidade universal em 100% dos módulos internos */
  --bg-ivory: #242625;
  --surface-paper: #1B1E1D;
  --paper-ivory: #242625;
  --paper-card: #1B1E1D;
  --ink-primary: #F4F2EC;
  --ink-dark: #FAF9F5;
  --ink-muted: #B8B6AF;
  --emerald: #4ADE80;
  --emerald-evo: #4ADE80;
  --emerald-soft: rgba(74, 222, 128, 0.14);
  --hairline: rgba(244, 242, 236, 0.13);
  --border-warm: rgba(244, 242, 236, 0.13);
}

/* ── Strict Guardrail: EvO Privacy & Session Controls ONLY in Authenticated Environment ── */
html:not([data-evo-auth="authenticated"]) #evo-privacy-global-toggle,
html:not([data-evo-auth="authenticated"]) .evo-privacy-toggle-btn,
html:not([data-evo-auth="authenticated"]) #lifecardsHeaderFreshness,
html:not([data-evo-auth="authenticated"]) .evo-universal-header button[onclick*="syncLifeCardsNow"],
html:not([data-evo-auth="authenticated"]) .evo-universal-right a[href="/admin/instances"],
html:not([data-evo-auth="authenticated"]) .evo-universal-header [data-evo-auth-only="true"] {
  display: none !important;
}

/* ── Universal Home Background & 3D Botanical Atmosphere Consolidation ── */
html,
html body {
  background-color: var(--evo-home-bg) !important;
  background-image: var(--evo-home-bg-gradient) !important;
  background-attachment: fixed;
}

.evo-3d-floor,
#evo3dFloor {
  display: none !important;
}

.ambient-nature-glow {
  position: fixed;
  bottom: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 85vw;
  height: 45vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, rgba(25, 88, 59, 0.06) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

#botanicalCanvas {
  display: block !important;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

main,
.evo-unauth-lp,
.app-shell,
.shell,
.sso-shell,
.workforce-shell,
.holding-wrap,
.connect-shell {
  position: relative;
  z-index: 1;
}

/* When header sits cleanly outside content shells, preserve 100dvh zero-scroll budgets */
header.evo-universal-header ~ .app-shell {
  min-height: calc(100dvh - 58px) !important;
}

header.evo-universal-header ~ .connect-shell {
  min-height: calc(100dvh - 58px) !important;
  grid-template-rows: auto 1fr auto !important;
}

header.evo-universal-header ~ .shell {
  height: calc(100dvh - 58px) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

/* ── Universal Level-1 Header (/sjobs Braun / Apple Tactile Bar) ── */
header.evo-universal-header,
.evo-universal-header {
  position: sticky;
  top: 0;
  z-index: 9999 !important;
  width: 100%;
  margin: 0 !important;
  background: rgba(244, 242, 236, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--evo-line) !important;
  box-shadow: none !important;
  font-family: var(--font-sans);
}

html[data-theme="dark"] header.evo-universal-header,
html[data-theme="dark"] .evo-universal-header,
html:not([data-theme="light"]) body.dark-grey .evo-universal-header {
  background: rgba(36, 38, 37, 0.92) !important;
  border-bottom-color: rgba(244, 242, 236, 0.09) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28) !important;
}

.evo-universal-bar {
  width: 100%;
  max-width: 1180px;
  min-height: 56px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: visible !important;
  box-sizing: border-box;
}

.evo-universal-left,
.evo-universal-right {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.evo-brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 2px 6px 2px 2px;
  border-radius: 999px;
  color: var(--evo-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.evo-brand-wordmark:hover {
  opacity: 0.85;
}

.evo-brand-wordmark img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(25, 88, 59, 0.35);
}

html[data-theme="dark"] .evo-brand-wordmark img {
  border-color: rgba(116, 198, 157, 0.38);
}

.evo-nav-menu {
  position: relative;
}

.evo-nav-menu > summary,
.evo-hdr-btn,
.evo-voice-pill {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--evo-line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--evo-ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

html[data-theme="dark"] .evo-nav-menu > summary,
html[data-theme="dark"] .evo-hdr-btn,
html[data-theme="dark"] .evo-voice-pill,
html:not([data-theme="light"]) body.dark-grey .evo-nav-menu > summary,
html:not([data-theme="light"]) body.dark-grey .evo-hdr-btn,
html:not([data-theme="light"]) body.dark-grey .evo-voice-pill {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(244, 242, 236, 0.11);
  color: var(--evo-ink);
}

/* ── Tactile Dark Mode Activation Switch (.evo-dark-switch) ── */
.evo-dark-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  height: 23px;
  min-height: 23px !important;
  padding: 2px !important;
  border-radius: 999px !important;
  border: 1px solid var(--evo-line-strong) !important;
  background: rgba(14, 29, 22, 0.10) !important;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.evo-dark-switch:hover {
  border-color: var(--evo-accent) !important;
}

.evo-dark-switch:focus-visible {
  outline: 2px solid var(--evo-accent);
  outline-offset: 2px;
}

.evo-dark-switch-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #19583B;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.evo-dark-switch-thumb svg {
  width: 10.5px;
  height: 10.5px;
  display: block;
}

.evo-dark-switch .evo-sw-moon {
  display: none;
}

.evo-dark-switch .evo-sw-sun {
  display: block;
}

html[data-theme="dark"] .evo-dark-switch,
.evo-dark-switch[aria-checked="true"] {
  background: #19583B !important;
  border-color: rgba(74, 222, 128, 0.52) !important;
}

html[data-theme="dark"] .evo-dark-switch .evo-dark-switch-thumb,
.evo-dark-switch[aria-checked="true"] .evo-dark-switch-thumb {
  transform: translateX(17px);
  background: #F4F2EC;
  color: #0E0E0D;
}

html[data-theme="dark"] .evo-dark-switch .evo-sw-sun,
.evo-dark-switch[aria-checked="true"] .evo-sw-sun {
  display: none;
}

html[data-theme="dark"] .evo-dark-switch .evo-sw-moon,
.evo-dark-switch[aria-checked="true"] .evo-sw-moon {
  display: block;
}

.evo-nav-menu > summary::-webkit-details-marker {
  display: none;
}

.evo-nav-menu > summary::marker {
  content: "";
}

.evo-nav-menu > summary:hover,
.evo-hdr-btn:hover,
.evo-voice-pill:hover {
  background: var(--evo-accent-soft);
  border-color: var(--evo-accent);
  color: var(--evo-accent);
}

.evo-nav-menu > summary:focus-visible,
.evo-hdr-btn:focus-visible,
.evo-voice-pill:focus-visible,
.evo-brand-wordmark:focus-visible {
  outline: 2px solid var(--evo-accent);
  outline-offset: 2px;
}

/* Primary Header Entry CTA (Entrar · SSO / Perfil) — Subtle Tactile Prominence */
#headerLoginLink,
.evo-hdr-sso-cta {
  font-weight: 600;
  background: var(--evo-cta-bg) !important;
  border-color: var(--evo-cta-border) !important;
  color: var(--evo-cta-ink) !important;
}

#headerLoginLink:hover,
.evo-hdr-sso-cta:hover {
  opacity: 0.92;
  color: var(--evo-cta-ink) !important;
  border-color: var(--evo-accent) !important;
}

.evo-voice-pill {
  padding-left: 7px;
}

.evo-voice-pill .evo-voice-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--evo-ink);
  color: var(--evo-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  transition: background 0.2s ease, color 0.2s ease;
}

.evo-voice-pill.playing {
  border-color: var(--evo-accent);
  background: var(--evo-accent-soft);
  color: var(--evo-accent);
}

.evo-voice-pill.playing .evo-voice-dot {
  background: #25D366;
  color: #0E0E0D;
}

.hdr-eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  margin-left: 2px;
}

.evo-voice-pill.playing .hdr-eq-bars {
  display: inline-flex;
}

.hdr-eq-bar {
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: #25D366;
}

.evo-voice-pill.playing .hdr-eq-bar:nth-child(1) { animation: evoHdrEq 0.45s infinite 0.05s alternate; }
.evo-voice-pill.playing .hdr-eq-bar:nth-child(2) { animation: evoHdrEq 0.6s infinite 0.2s alternate; }
.evo-voice-pill.playing .hdr-eq-bar:nth-child(3) { animation: evoHdrEq 0.5s infinite 0.1s alternate; }
.evo-voice-pill.playing .hdr-eq-bar:nth-child(4) { animation: evoHdrEq 0.55s infinite 0.25s alternate; }

@keyframes evoHdrEq {
  0% { height: 3px; }
  100% { height: 11px; }
}

.evo-nav-menu > summary::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.72;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.evo-nav-menu[open] > summary {
  border-color: var(--evo-accent);
}

.evo-nav-menu[open] > summary::after {
  transform: rotate(180deg);
}

/* ── Módulos Dropdown Panel (/sjobs Clean Sheet + Group Hairlines Only) ── */
.evo-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 296px;
  max-height: min(84dvh, 660px);
  overflow-y: auto;
  padding: 8px;
  background: #FAF9F5;
  border: 1px solid var(--evo-line-strong);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(14, 14, 13, 0.13);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 10000;
}

html[data-theme="dark"] .evo-menu-panel,
html:not([data-theme="light"]) body.dark-grey .evo-menu-panel {
  background: #1D201F;
  border-color: rgba(244, 242, 236, 0.13);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
}

.evo-nav-menu.menu-end .evo-menu-panel {
  left: auto;
  right: 0;
}

.evo-menu-group-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--evo-muted);
  padding: 6px 11px 4px;
}

.evo-menu-panel a + .evo-menu-group-title {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--evo-line);
}

html[data-theme="dark"] .evo-menu-panel a + .evo-menu-group-title {
  border-top-color: rgba(244, 242, 236, 0.08);
}

.evo-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 9px;
  color: var(--evo-ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  transition: background 0.12s ease, color 0.12s ease;
}

.evo-menu-panel a:hover,
.evo-menu-panel a[aria-current="page"] {
  background: var(--evo-accent-soft);
  color: var(--evo-accent);
}

.evo-menu-panel a[aria-current="page"] {
  font-weight: 600;
}

/* Destaque sutil em verde diferenciado (jade esmeralda) para Cashback na última linha */
.evo-menu-panel a.evo-menu-cashback-row {
  margin-top: 7px;
  background: rgba(16, 124, 65, 0.085);
  border: 1px solid rgba(16, 124, 65, 0.22);
  color: #0F6B3A;
  font-weight: 600;
}

.evo-menu-panel a.evo-menu-cashback-row .evo-menu-meta {
  color: #15803D;
  font-weight: 500;
}

.evo-menu-panel a.evo-menu-cashback-row:hover,
.evo-menu-panel a.evo-menu-cashback-row[aria-current="page"] {
  background: rgba(16, 124, 65, 0.155);
  border-color: rgba(16, 124, 65, 0.38);
  color: #0A522B;
}

html[data-theme="dark"] .evo-menu-panel a.evo-menu-cashback-row,
html:not([data-theme="light"]) body.dark-grey .evo-menu-panel a.evo-menu-cashback-row {
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6EE7B7;
}

html[data-theme="dark"] .evo-menu-panel a.evo-menu-cashback-row .evo-menu-meta,
html:not([data-theme="light"]) body.dark-grey .evo-menu-panel a.evo-menu-cashback-row .evo-menu-meta {
  color: rgba(167, 243, 208, 0.88);
}

html[data-theme="dark"] .evo-menu-panel a.evo-menu-cashback-row:hover,
html[data-theme="dark"] .evo-menu-panel a.evo-menu-cashback-row[aria-current="page"],
html:not([data-theme="light"]) body.dark-grey .evo-menu-panel a.evo-menu-cashback-row:hover,
html:not([data-theme="light"]) body.dark-grey .evo-menu-panel a.evo-menu-cashback-row[aria-current="page"] {
  background: rgba(16, 185, 129, 0.19);
  border-color: rgba(52, 211, 153, 0.48);
  color: #A7F3D0;
}

.evo-menu-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--evo-muted);
  white-space: nowrap;
}

.evo-menu-panel a:hover .evo-menu-meta,
.evo-menu-panel a[aria-current="page"] .evo-menu-meta {
  color: var(--evo-accent);
  opacity: 0.9;
}

@media (max-width: 860px) {
  .evo-universal-right #lifecardsHeaderFreshness,
  .evo-universal-right button[onclick*="syncLifeCardsNow"],
  .evo-universal-right a[href="/admin/instances"] {
    display: none !important;
  }
}

@media (max-width: 768px) {
  header.evo-universal-header,
  .evo-universal-header {
    padding-top: max(6px, env(safe-area-inset-top)) !important;
  }
  .evo-universal-bar {
    min-height: 48px;
    padding: 6px 12px;
    gap: 8px;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    max-width: 100vw;
  }
  .evo-universal-left,
  .evo-universal-right {
    gap: 6px;
    flex-wrap: nowrap !important;
  }
  .evo-brand-wordmark {
    min-height: 34px;
    font-size: 14px;
    gap: 6px;
    padding: 2px 4px 2px 0;
  }
  .evo-brand-wordmark img,
  .evo-brand-wordmark .brand-avatar {
    width: 24px;
    height: 24px;
  }
  .evo-nav-menu > summary,
  .evo-hdr-btn,
  .evo-voice-pill {
    min-height: 34px;
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
    gap: 5px;
  }
  .evo-voice-pill {
    padding-left: 6px;
  }
  .evo-voice-pill .evo-voice-dot {
    width: 20px;
    height: 20px;
  }
  .evo-dark-switch {
    width: 40px;
    height: 24px;
    min-height: 24px !important;
  }
  .evo-dark-switch::after {
    content: "";
    position: absolute;
    inset: -5px -2px;
  }
  .evo-dark-switch-thumb {
    width: 18px;
    height: 18px;
  }
  html[data-theme="dark"] .evo-dark-switch .evo-dark-switch-thumb,
  .evo-dark-switch[aria-checked="true"] .evo-dark-switch-thumb {
    transform: translateX(16px);
  }
  .evo-menu-panel {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top, 0px));
    left: 10px !important;
    right: 10px !important;
    min-width: 0;
    max-height: calc(100dvh - 68px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    z-index: 9800;
  }
}

@media (max-width: 430px) {
  .evo-universal-bar {
    padding: 5px 10px;
    gap: 6px;
  }
  .evo-universal-left,
  .evo-universal-right {
    gap: 5px;
  }
  .evo-brand-wordmark {
    font-size: 13.5px;
    gap: 5px;
    padding-right: 2px;
  }
  .evo-brand-wordmark img,
  .evo-brand-wordmark .brand-avatar {
    width: 23px;
    height: 23px;
  }
  .evo-nav-menu > summary,
  .evo-hdr-btn,
  .evo-voice-pill {
    min-height: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    gap: 5px;
  }
  .evo-voice-pill {
    padding: 0 9px 0 5px;
  }
  .evo-voice-pill .evo-voice-dot {
    width: 19px;
    height: 19px;
  }
  .evo-voice-pill #headerVoiceLabel {
    display: inline-flex !important;
    align-items: center;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  .evo-voice-pill #headerVoiceLabel::after {
    content: "Ouvir";
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .evo-voice-pill.playing #headerVoiceLabel::after {
    content: "Ouvindo";
  }
  html:not([data-evo-auth="authenticated"]) #headerLoginLink {
    font-size: 0 !important;
    line-height: 0 !important;
  }
  html:not([data-evo-auth="authenticated"]) #headerLoginLink::after {
    content: "Entrar";
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 359px) {
  .evo-universal-bar {
    padding: 5px 8px;
    gap: 4px;
  }
  .evo-universal-left,
  .evo-universal-right {
    gap: 4px;
  }
  .evo-brand-wordmark {
    font-size: 13px;
    gap: 4px;
  }
  .evo-brand-wordmark img,
  .evo-brand-wordmark .brand-avatar {
    width: 21px;
    height: 21px;
  }
  .evo-nav-menu > summary,
  .evo-hdr-btn {
    padding: 0 8px;
    font-size: 11.5px;
  }
  .evo-voice-pill {
    padding: 0 7px 0 4px;
  }
  .evo-voice-pill #headerVoiceLabel::after,
  html:not([data-evo-auth="authenticated"]) #headerLoginLink::after {
    font-size: 11.5px;
  }
  html[data-evo-auth="authenticated"] .evo-voice-pill #headerVoiceLabel {
    display: none !important;
  }
  html[data-evo-auth="authenticated"] .evo-voice-pill {
    padding: 0 6px;
  }
  .evo-dark-switch {
    width: 38px;
  }
  html[data-theme="dark"] .evo-dark-switch .evo-dark-switch-thumb,
  .evo-dark-switch[aria-checked="true"] .evo-dark-switch-thumb {
    transform: translateX(14px);
  }
}

/* ── Editorial Prose Sheet (Authenticated / Public Docs) ── */
.evo-prose-sheet {
  max-width: 820px;
  margin: 26px auto 48px;
  padding: 28px 32px;
  background: var(--evo-sheet);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--evo-line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

html[data-theme="dark"] .evo-prose-sheet {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
}

.evo-sheet-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--evo-accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.evo-sheet-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 400;
  color: var(--evo-ink);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 8px;
}

.evo-sheet-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--evo-muted);
  margin-bottom: 18px;
}

.unfold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.evo-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid var(--evo-line);
  border-bottom: 3px solid var(--evo-line-strong);
  background: var(--evo-card);
  color: var(--evo-ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}

.evo-key-btn:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

.evo-key-btn.primary {
  background: var(--evo-cta-bg);
  color: var(--evo-cta-ink);
  border-color: var(--evo-cta-border);
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

/* ── Unauthenticated Application LP Gate (/sjobs Pain -> Path -> Payoff) ── */
html[data-evo-auth="locked"]:has(body[data-evo-protected="true"]),
html[data-evo-auth="locked"] body[data-evo-protected="true"] {
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  user-select: auto !important;
}

html[data-evo-auth="locked"] body[data-evo-protected="true"] #lifecardsHeaderFreshness,
html[data-evo-auth="locked"] body[data-evo-protected="true"] button[onclick*="syncLifeCardsNow"] {
  display: none !important;
}

html[data-evo-auth="locked"] body[data-evo-protected="true"] main:not(#evoAppUnauthLp),
html[data-evo-auth="locked"] body[data-evo-protected="true"] .app-shell,
html[data-evo-auth="locked"] body[data-evo-protected="true"] .shell,
html[data-evo-auth="locked"] body[data-evo-protected="true"] .book-container,
html[data-evo-auth="locked"] body[data-evo-protected="true"] .workforce-shell,
html[data-evo-auth="locked"] body[data-evo-protected="true"] .holding-wrap,
html[data-evo-auth="locked"] body[data-evo-protected="true"] .connect-shell,
html[data-evo-auth="locked"] body[data-evo-protected="true"] .connect-footer {
  display: none !important;
}

.evo-unauth-lp {
  min-height: calc(100dvh - 58px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 1.25rem 1.25rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.evo-unauth-center {
  margin: auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evo-unauth-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--evo-accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.evo-unauth-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--evo-ink);
  margin-bottom: 12px;
}

.evo-unauth-h1 em {
  font-style: italic;
  color: var(--evo-accent);
  font-weight: 400;
}

.evo-unauth-lead {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--evo-muted);
  max-width: 560px;
  margin: 0 auto 20px;
}

/* ── Central Card: 3 Progressive Steps, Clean /sjobs Sheet (.evo-lp-step) ── */
.evo-unauth-unfold-box {
  width: 100%;
  max-width: 590px;
  text-align: left;
  background: var(--evo-sheet);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--evo-line);
  border-radius: 16px;
  padding: 2px 22px;
  margin: 0 auto 22px;
  color: var(--evo-ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .evo-unauth-unfold-box {
  border-color: rgba(244, 242, 236, 0.10);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.evo-lp-steps-list {
  width: 100%;
  text-align: left;
}

.evo-lp-step {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.evo-lp-step + .evo-lp-step {
  border-top: 1px solid var(--evo-line);
}

html[data-theme="dark"] .evo-lp-step + .evo-lp-step {
  border-top-color: rgba(244, 242, 236, 0.08);
}

.evo-lp-step > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  margin: 0;
  padding: 15px 0;
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: var(--evo-ink);
}

.evo-lp-step > summary::-webkit-details-marker {
  display: none;
}

.evo-lp-step > summary::marker {
  content: "";
}

.evo-lp-step > summary:focus-visible {
  outline: 2px solid var(--evo-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.evo-lp-step > summary:hover .evo-lp-step-title {
  color: var(--evo-accent);
}

.evo-lp-step-copy {
  display: block;
  min-width: 0;
}

.evo-lp-step-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--evo-muted);
}

.evo-lp-step[data-step-kind="payoff"] .evo-lp-step-label {
  color: var(--evo-accent);
}

.evo-lp-step-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--evo-ink);
  transition: color 0.15s ease;
}

.evo-lp-step-chevron {
  display: block;
  width: 16px;
  height: 16px;
  color: var(--evo-muted);
  opacity: 0.72;
  transform-origin: center;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease, opacity 0.15s ease;
}

.evo-lp-step[open] > summary .evo-lp-step-chevron {
  transform: rotate(180deg);
  color: var(--evo-accent);
  opacity: 1;
}

.evo-lp-step-body {
  padding: 0 20px 16px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--evo-muted);
}

.evo-lp-step-body p {
  margin: 0;
}

.evo-unauth-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  max-width: 100%;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--evo-cta-bg);
  color: var(--evo-cta-ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid var(--evo-cta-border);
  box-shadow: 0 8px 24px rgba(14, 29, 22, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.evo-unauth-cta-btn:hover {
  transform: translateY(-1.5px);
  opacity: 0.95;
}

.evo-unauth-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--evo-muted);
  margin-top: 10px;
  line-height: 1.45;
}

.evo-ref-logos-bar {
  width: 100%;
  max-width: 580px;
  margin: 1.75rem auto 0.25rem;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--evo-muted);
}

.evo-ref-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.evo-ref-logo-item svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.82;
}

.evo-sso-expired-toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 520px);
  z-index: 10001;
  background: var(--evo-sheet);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--evo-ink);
  border: 1px solid var(--evo-accent);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 480px) {
  .evo-unauth-lp {
    padding: 1.5rem 1rem 1rem;
  }
  .evo-unauth-unfold-box {
    padding-inline: 16px;
  }
  .evo-lp-step-body {
    padding-right: 0;
  }
  .evo-prose-sheet {
    margin: 16px 12px 36px;
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evo-lp-step-chevron,
  .evo-nav-menu > summary::after,
  .evo-unauth-cta-btn {
    transition: none !important;
  }
  .evo-voice-pill.playing .hdr-eq-bar {
    animation: none !important;
    height: 7px;
  }
}
