/* EBAI INTERFACE 3.0 — Phase 2: scoped Targeted onboarding/dashboard, approved Gateway palette. */
#ebai-interface3.ebai-targeted .ebai-targeted-shell { max-width: 1000px; }
#ebai-interface3 .ebai-targeted-welcome, #ebai-interface3 .ebai-targeted-back { color: #607080; font-size: 14px; font-weight: 750; text-decoration: none; }
#ebai-interface3 .ebai-targeted-card { background: #fff; border: 1px solid rgba(20,40,60,.1); border-radius: 28px; padding: 40px; box-shadow: 0 18px 46px rgba(20,40,60,.08); }
#ebai-interface3 .ebai-targeted-onboarding { max-width: 640px; margin: 0 auto; }
#ebai-interface3 .ebai-targeted-step { margin: 0 0 12px; color: #007eae; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
#ebai-interface3 .ebai-targeted-progress { display: flex; gap: 8px; width: 96px; margin-bottom: 24px; }
#ebai-interface3 .ebai-targeted-progress span { height: 4px; border-radius: 4px; flex: 1; background: #e5edf3; }
#ebai-interface3 .ebai-targeted-progress span:first-child, #ebai-interface3 .ebai-targeted-progress .is-filled { background: #00baff; }
#ebai-interface3.ebai-targeted h1 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; }
#ebai-interface3 .ebai-targeted-intro { margin: 14px 0 28px; color: #607080; font-size: 16px; line-height: 1.6; }
#ebai-interface3 .ebai-targeted-question { display: block; margin: 20px 0 10px; font-size: 15px; font-weight: 800; }
#ebai-interface3 select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d9e2e9; border-radius: 14px; background: #f5f9fc; color: #17212b; font: inherit; font-size: 16px; }
#ebai-interface3 .ebai-targeted-navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; }
#ebai-interface3 .ebai-targeted-primary { display: inline-flex; justify-content: center; align-items: center; gap: 18px; width: auto; min-height: 52px; margin: 0; padding: 14px 22px; border-radius: 18px; background: #00baff; color: #17212b; font-size: 16px; font-weight: 850; box-shadow: 0 12px 28px rgba(0,186,255,.2); }
#ebai-interface3 .ebai-targeted-primary:hover { background: #00a6e6; }
#ebai-interface3 .ebai-targeted-primary:disabled { opacity: .7; cursor: wait; }
#ebai-interface3 .ebai-targeted-back { width: auto; min-height: 44px; margin: 0; padding: 10px 0; background: none; border: 0; box-shadow: none; }
#ebai-interface3 .ebai-targeted-skill-options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#ebai-interface3 .ebai-targeted-skill-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px; border: 1px solid #d9e2e9; border-radius: 18px; cursor: pointer; font-weight: 800; }
#ebai-interface3 .ebai-targeted-skill-option:has(input:checked) { border-color: #00a6e6; background: #eaf7ff; }
#ebai-interface3 .ebai-targeted-skill-option input { width: 18px; height: 18px; margin: 0; accent-color: #007eae; flex: 0 0 auto; }
#ebai-interface3 .ebai-targeted-skill-option img { object-fit: contain; flex: 0 0 44px; }
#ebai-interface3 .ebai-targeted-unknown { display: grid; place-items: center; width: 44px; height: 44px; background: #eaf7ff; color: #007eae; border-radius: 14px; font-size: 24px; }
#ebai-interface3 .ebai-targeted-goal { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
#ebai-interface3 .ebai-targeted-goal span { padding: 10px 16px; background: #eaf7ff; border-radius: 12px; color: #607080; font-size: 15px; }
#ebai-interface3 .ebai-targeted-goal strong { color: #17212b; margin-left: 6px; }
#ebai-interface3 .ebai-targeted-self-report { color: #607080; font-size: 12px; margin: 0 0 26px; }
#ebai-interface3 .ebai-targeted-recommendation { padding: 24px; background: #f5f9fc; border-radius: 20px; margin-bottom: 24px; }
#ebai-interface3 .ebai-targeted-recommendation h2 { font-size: 23px; font-weight: 800; margin: 0; }
#ebai-interface3 .ebai-targeted-recommendation p { font-size: 15px; line-height: 1.6; color: #607080; margin: 10px 0 18px; }
#ebai-interface3 .ebai-targeted-catalogs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
#ebai-interface3 .ebai-targeted-catalog { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #d9e2e9; border-radius: 20px; color: #17212b; }
#ebai-interface3 .ebai-targeted-catalog div { flex: 1; min-width: 0; }
#ebai-interface3 .ebai-targeted-catalog img { object-fit: contain; flex: 0 0 64px; }
#ebai-interface3 .ebai-targeted-catalog h2 { margin: 0; font-size: 18px; font-weight: 800; }
#ebai-interface3 .ebai-targeted-catalog p { color: #607080; font-size: 12px; margin: 5px 0 0; }
#ebai-interface3 .ebai-targeted-catalog.is-recommended { border-color: #00a6e6; background: #eaf7ff; }
#ebai-interface3 .ebai-targeted-suggested { display: block; margin-top: 7px; font-size: 11px; color: #007eae; font-weight: 800; }
#ebai-interface3 .ebai-targeted-restart { width: auto; min-height: 44px; margin: 22px 0 0; padding: 10px 0; background: none; border: 0; box-shadow: none; color: #607080; font-size: 14px; }
#ebai-interface3 .ebai-targeted-save-note { color: #607080; font-size: 13px; line-height: 1.5; text-align: center; }
#ebai-interface3 .ebai-targeted-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#ebai-interface3.ebai-targeted button:focus-visible, #ebai-interface3.ebai-targeted select:focus-visible, #ebai-interface3.ebai-targeted input:focus-visible { outline: 3px solid #007eae; outline-offset: 4px; }
@media (max-width: 640px) {
  #ebai-interface3 .ebai-targeted-card { padding: 28px 20px; border-radius: 24px; }
  #ebai-interface3 .ebai-targeted-skill-options { grid-template-columns: 1fr; }
  #ebai-interface3 .ebai-targeted-catalogs { grid-template-columns: 1fr; }
  #ebai-interface3 .ebai-targeted-welcome { font-size: 12px; }
  #ebai-interface3.ebai-targeted .ebai-gateway-brand { justify-content: space-between; gap: 12px; }
  #ebai-interface3.ebai-targeted .ebai-gateway-identity { gap: 8px; }
  #ebai-interface3.ebai-targeted .ebai-gateway-identity strong { font-size: 17px; }
  #ebai-interface3 .ebai-targeted-recommendation { padding: 20px; }
  #ebai-interface3 .ebai-targeted-primary { max-width: 100%; white-space: nowrap; font-size: 15px; gap: 10px; padding: 14px; }
}

/* EBAI INTERFACE 3.0 — direct-answer, three-step onboarding only. Dashboard styles above are unchanged. */
html:has(#ebai-interface3.ebai-onboarding), body.ebai-interface-active:has(#ebai-interface3.ebai-onboarding) { background: #FFFFFF !important; overflow-x: hidden; }
html:has(#ebai-interface3.ebai-onboarding) { height: auto; overflow-y: auto; }
#ebai-interface3.ebai-onboarding { background: #FFFFFF; }
#ebai-interface3 .ebai-onboarding-flow { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
#ebai-interface3 .ebai-onboarding-content { width: min(720px, 100%); text-align: center; }
#ebai-interface3 .ebai-onboarding-step { margin: 0 0 12px; color: #607080; font-size: 13px; font-weight: 750; }
#ebai-interface3 .ebai-onboarding-progress { width: 104px; display: flex; gap: 7px; margin: 0 auto 32px; }
#ebai-interface3 .ebai-onboarding-progress span { flex: 1; height: 3px; border-radius: 3px; background: #E5EDF3; }
#ebai-interface3 .ebai-onboarding-progress .is-filled { background: #00BAFF; }
#ebai-interface3 .ebai-onboarding-viewport { position: relative; min-height: 280px; overflow: hidden; }
#ebai-interface3 .ebai-onboarding-panel { width: 100%; }
#ebai-interface3.ebai-onboarding h1 { max-width: 640px; margin: 0 auto 32px; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.2; font-weight: 800; }
#ebai-interface3 .ebai-onboarding-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
#ebai-interface3 .ebai-onboarding-answer { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; min-width: 86px; min-height: 52px; margin: 0; padding: 12px 16px; border: 1px solid #D9E2E9; border-radius: 18px; background: #FFFFFF; color: #17212B; font-family: inherit; font-size: 16px; font-weight: 750; white-space: nowrap; box-shadow: none; }
#ebai-interface3 .is-skills .ebai-onboarding-answer { width: 190px; min-height: 64px; }
#ebai-interface3 .ebai-onboarding-answer img { object-fit: contain; flex: 0 0 28px; }
#ebai-interface3 .ebai-onboarding-answer:hover:not(:disabled), #ebai-interface3 .ebai-onboarding-answer.is-selected { background: #EAF7FF; border-color: #00A6E6; }
#ebai-interface3 .ebai-onboarding-answer:disabled { cursor: default; }
#ebai-interface3 .ebai-onboarding-answer:focus-visible { outline: 3px solid #007EAE; outline-offset: -4px; }
#ebai-interface3 .ebai-onboarding-note { margin: 24px 0 0; color: #607080; font-size: 13px; line-height: 1.6; }
#ebai-interface3 .ebai-onboarding-panel.is-next { position: absolute; top: 0; left: 0; transform: translateX(100%); }
#ebai-interface3 .ebai-onboarding-panel.is-outgoing { animation: ebaiQuestionOut 350ms ease both; }
#ebai-interface3 .ebai-onboarding-panel.is-incoming { animation: ebaiQuestionIn 350ms ease both; }
@keyframes ebaiQuestionOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-100%); opacity: .65; } }
@keyframes ebaiQuestionIn { from { transform: translateX(100%); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 640px) {
  #ebai-interface3 .ebai-onboarding-flow { padding: 32px 20px; }
  #ebai-interface3 .ebai-onboarding-viewport { min-height: 360px; }
  #ebai-interface3 .ebai-onboarding-answer { min-width: 60px; min-height: 48px; padding: 10px 12px; font-size: 15px; border-radius: 15px; }
  #ebai-interface3 .ebai-onboarding-options { gap: 9px; }
  #ebai-interface3 .is-skills .ebai-onboarding-answer { width: 128px; min-height: 62px; padding: 10px 8px; gap: 7px; }
  #ebai-interface3 .is-skills .ebai-onboarding-answer img { width: 24px; height: 24px; flex-basis: 24px; }
}
@media (prefers-reduced-motion: reduce) { #ebai-interface3 .ebai-onboarding-panel { animation: none !important; transform: none !important; } }

/* EBAI INTERFACE 3.0 — Phase 2.2: current-band slider, Step 1 only. */
/* EBAI INTERFACE 3.0 — requested countdown and lower Continue follow-up. */
#ebai-interface3 .ebai-onboarding-panel:has(.ebai-band-control) { display: flex; flex-direction: column; min-height: 280px; }
#ebai-interface3 .ebai-band-control { display: flex; flex-direction: column; flex: 1; width: 100%; max-width: 590px; margin: 0 auto; }
#ebai-interface3 .ebai-band-value, #ebai-interface3 .ebai-band-rail { flex-shrink: 0; }
#ebai-interface3 .ebai-band-value { display: block; height: 40px; color: #00BAFF; font-size: 32px; line-height: 40px; font-weight: 800; }
#ebai-interface3 .ebai-band-rail { position: relative; height: 78px; margin: 10px 24px 0; touch-action: none; user-select: none; cursor: grab; }
#ebai-interface3 .ebai-band-scale { position: absolute; top: 0; left: 80px; right: 16px; height: 78px; }
#ebai-interface3 .ebai-band-track, #ebai-interface3 .ebai-band-trace { position: absolute; top: 23px; left: 0; height: 4px; border-radius: 4px; background: #E5EDF3; width: 100%; }
#ebai-interface3 .ebai-band-trace { width: 0; background: #00BAFF; }
#ebai-interface3 .ebai-band-not-sure { position: absolute; left: 0; top: 49px; width: 44px; font-size: 11px; font-weight: 750; line-height: 14px; color: #9D5A67; }
#ebai-interface3 .ebai-band-not-sure::before { content: ""; position: absolute; top: -26px; left: 8px; width: 28px; height: 4px; background: #F1DEE3; border-radius: 4px; }
#ebai-interface3 .ebai-band-barrier { position: absolute; top: 14px; left: 59px; height: 22px; width: 2px; border-radius: 2px; background: #D9E2E9; }
#ebai-interface3 .ebai-band-tick { position: absolute; top: 35px; width: 2px; height: 12px; background: #A9B9C7; transform: translateX(-50%); border-radius: 2px; }
#ebai-interface3 .ebai-band-tick.is-half { width: 1px; height: 6px; background: #C2CED8; }
#ebai-interface3 .ebai-band-tick span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: #607080; font-size: 12px; font-weight: 750; white-space: nowrap; }
#ebai-interface3 .ebai-band-handle { position: absolute; top: 3px; width: 44px; height: 44px; transform: translateX(-50%); border-radius: 50%; background: transparent; cursor: grab; outline: none; }
#ebai-interface3 .ebai-band-handle::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #00BAFF; border: 0; box-shadow: none; }
#ebai-interface3 .ebai-band-handle:focus-visible { outline: 3px solid #007EAE; outline-offset: 2px; }
#ebai-interface3 .is-dragging .ebai-band-handle { cursor: grabbing; }
#ebai-interface3 .is-pointer-input .ebai-band-handle:focus-visible { outline: none; }
#ebai-interface3 .is-snapping .ebai-band-handle { transition: left 180ms ease-out; }
#ebai-interface3 .is-snapping .ebai-band-trace { transition: width 180ms ease-out; }
#ebai-interface3 .is-not-sure .ebai-band-handle { transition-duration: 240ms; }
#ebai-interface3 .is-not-sure .ebai-band-handle::before { background: #B75F73; box-shadow: none; }
#ebai-interface3 .is-not-sure .ebai-band-value { color: #B75F73; }
#ebai-interface3 .is-not-sure .ebai-band-not-sure::before { background: #B75F73; }
#ebai-interface3 .is-resisting .ebai-band-handle::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 2px solid #B75F73; clip-path: inset(0 100% 0 0); animation: ebaiBandHold 0.5s linear forwards; }
#ebai-interface3 .is-resisting .ebai-band-barrier { background: #B75F73; }
#ebai-interface3 .ebai-band-help { margin: 0; }
#ebai-interface3 .ebai-band-continue-slot { display: flex; justify-content: center; align-items: flex-end; min-height: 58px; margin-top: auto; }
/* EBAI INTERFACE 3.0 — Phase 2.3: minimal semantic Continue action. */
#ebai-interface3 .ebai-band-continue { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; min-height: 48px; margin: 0 auto; padding: 12px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #00BAFF; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
#ebai-interface3 .ebai-band-continue span { color: inherit; margin: 0; flex: 0 0 auto; }
#ebai-interface3 .ebai-band-continue:hover:not(:disabled) { color: #007EAE; text-decoration: underline; text-underline-offset: 4px; }
#ebai-interface3 .ebai-band-continue:focus-visible { outline: 2px solid #007EAE; outline-offset: 2px; }
#ebai-interface3 .ebai-band-continue[hidden] { display: none; }
#ebai-interface3 .ebai-band-continue.is-revealed { animation: ebaiBandContinue 300ms ease-out both; }
#ebai-interface3 .ebai-band-continue:disabled { opacity: .65; cursor: default; }
@keyframes ebaiBandHold { to { clip-path: inset(0 0 0 0); } }
@keyframes ebaiBandContinue { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  #ebai-interface3 .ebai-onboarding-panel:has(.ebai-band-control) { min-height: 360px; }
  #ebai-interface3 .ebai-band-rail { margin-left: 22px; margin-right: 22px; }
  #ebai-interface3 .ebai-band-scale { left: 58px; }
  #ebai-interface3 .ebai-band-barrier { left: 45px; }
  #ebai-interface3 .ebai-band-not-sure { width: 40px; left: -4px; }
  #ebai-interface3 .ebai-band-handle::before { inset: 10px; }
  #ebai-interface3 .ebai-band-tick span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #ebai-interface3 .ebai-band-handle, #ebai-interface3 .ebai-band-trace { transition: none !important; }
  #ebai-interface3 .ebai-band-continue { animation: none !important; }
  #ebai-interface3 .is-resisting .ebai-band-handle::after { animation: none; clip-path: none; border-style: dashed; }
}

/* EBAI INTERFACE 3.0 — Phase 2.4: Step 2 cylindrical skill wheel only. */
body.ebai-interface-active:has(#ebai-interface3 .ebai-skill-wheel-control) { overscroll-behavior-y: auto; }
#ebai-interface3 .ebai-onboarding-panel:has(.ebai-skill-wheel-control) { display: flex; flex-direction: column; min-height: 340px; }
#ebai-interface3 .ebai-skill-wheel-control { display: flex; flex-direction: column; flex: 1; width: 100%; }
#ebai-interface3 .ebai-skill-wheel { --ebai-skill-row: 64px; position: relative; width: min(320px, 100%); height: calc(var(--ebai-skill-row) * 3); flex-shrink: 0; margin: 0 auto 20px; overflow: hidden; perspective: 600px; touch-action: none; user-select: none; cursor: grab; outline: none; }
#ebai-interface3 .ebai-skill-item { position: absolute; top: 50%; left: 0; width: 100%; height: var(--ebai-skill-row); display: flex; align-items: center; justify-content: center; transform: translateY(calc(-50% + var(--ebai-skill-position) * var(--ebai-skill-row))) scale(var(--ebai-skill-scale)); color: #17212B; font-size: 32px; font-weight: 800; line-height: 1; white-space: nowrap; backface-visibility: hidden; transition: color 120ms ease; }
#ebai-interface3 .ebai-skill-item[aria-selected="true"] { color: #4AA8E4; }
#ebai-interface3 #ebai-skill-option-listening[aria-selected="true"] { color: #61B979; }
#ebai-interface3 #ebai-skill-option-writing[aria-selected="true"] { color: #F3A24D; }
#ebai-interface3 #ebai-skill-option-speaking[aria-selected="true"] { color: #A579EB; }
#ebai-interface3 #ebai-skill-option-not_sure[aria-selected="true"] { color: #B75F73; }
#ebai-interface3 .ebai-skill-wheel:focus-visible { outline: 2px solid #007EAE; outline-offset: -2px; }
#ebai-interface3 .is-pointer-input .ebai-skill-wheel:focus-visible { outline: none; }
#ebai-interface3 .is-dragging .ebai-skill-wheel { cursor: grabbing; }
#ebai-interface3 .ebai-skill-continue-slot { display: flex; justify-content: center; align-items: flex-end; min-height: 58px; margin-top: auto; }
#ebai-interface3 .ebai-skill-continue { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; min-height: 48px; margin: 0 auto; padding: 12px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #00BAFF; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
#ebai-interface3 .ebai-skill-continue span { color: inherit; margin: 0; flex: 0 0 auto; }
#ebai-interface3 .ebai-skill-continue:hover:not(:disabled) { color: #007EAE; text-decoration: underline; text-underline-offset: 4px; }
#ebai-interface3 .ebai-skill-continue:focus-visible { outline: 2px solid #007EAE; outline-offset: 2px; }
#ebai-interface3 .ebai-skill-continue[hidden] { display: none; }
#ebai-interface3 .ebai-skill-continue.is-revealed { animation: ebaiBandContinue 300ms ease-out both; }
#ebai-interface3 .ebai-skill-continue:disabled { opacity: .65; cursor: default; }
@media (min-width: 1024px) {
  #ebai-interface3 .ebai-onboarding-panel:has(.ebai-skill-wheel-control) h1 { max-width: none; white-space: nowrap; font-size: clamp(28px, 3.3vw, 38px); }
}
@media (max-width: 640px) {
  #ebai-interface3 .ebai-onboarding-panel:has(.ebai-skill-wheel-control) { min-height: 380px; }
  #ebai-interface3 .ebai-skill-wheel { --ebai-skill-row: 60px; width: min(280px, 100%); }
  #ebai-interface3 .ebai-skill-item { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  #ebai-interface3 .ebai-skill-item { transition: none !important; }
  #ebai-interface3 .ebai-skill-continue { animation: none !important; }
}

/* EBAI INTERFACE 3.0 — Phase 2.5: target-band journey, Step 3 only. */
#ebai-interface3 .ebai-target-journey { width: 100%; }
#ebai-interface3 .ebai-journey-current { margin: 0 0 16px; color: #607080; font-size: 13px; line-height: 1.5; }
#ebai-interface3 .ebai-journey-current strong { font-weight: 750; }
#ebai-interface3 .ebai-journey-map { position: relative; width: 100%; height: auto; aspect-ratio: 600 / 440; margin: 0 auto; }
#ebai-interface3 .ebai-journey-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
#ebai-interface3 .ebai-journey-segment { transition: stroke 180ms ease; }
#ebai-interface3 .ebai-journey-segment.is-future { filter: drop-shadow(0 0 2px #A579EB40); }
#ebai-interface3 .ebai-journey-checkpoint { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: var(--ebai-journey-hit-size, 44px); min-width: var(--ebai-journey-hit-size, 44px); height: var(--ebai-journey-hit-size, 44px); min-height: var(--ebai-journey-hit-size, 44px); margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: #607080; font-family: inherit; cursor: pointer; }
#ebai-interface3 .ebai-journey-node { display: flex; align-items: center; justify-content: center; width: var(--ebai-journey-node-size, 36px); height: var(--ebai-journey-node-size, 36px); border: 2px solid #DDE6ED; border-radius: 50%; background: #FFFFFF; font-size: 15px; font-weight: 800; line-height: 1; transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
#ebai-interface3 .ebai-journey-checkpoint:hover:not(:disabled) .ebai-journey-node, #ebai-interface3 .ebai-journey-checkpoint:focus-visible .ebai-journey-node { transform: scale(1.1); border-color: #A579EB; }
#ebai-interface3 .ebai-journey-checkpoint:focus-visible { outline: 2px solid #007EAE; outline-offset: 1px; }
#ebai-interface3 .ebai-journey-checkpoint:disabled { opacity: 1; cursor: default; }
#ebai-interface3 .ebai-journey-checkpoint.is-reached .ebai-journey-node { border-color: #00BAFF; color: #007EAE; background: #EAF7FF; }
#ebai-interface3 .ebai-journey-checkpoint.is-current .ebai-journey-node { border-width: 3px; color: #007EAE; }
#ebai-interface3 .ebai-journey-checkpoint.is-future .ebai-journey-node, #ebai-interface3 .ebai-journey-checkpoint.is-selected .ebai-journey-node { border-color: #A579EB; color: #8056BD; }
#ebai-interface3 .ebai-journey-checkpoint.is-current.is-selected .ebai-journey-node { box-shadow: 0 0 0 3px #00BAFF33; }
#ebai-interface3 .has-arrived .ebai-journey-checkpoint.is-selected .ebai-journey-node { transform: scale(1.1); box-shadow: 0 0 0 4px #A579EB20; }
#ebai-interface3 .has-arrived .ebai-journey-checkpoint.is-current.is-selected .ebai-journey-node { box-shadow: 0 0 0 3px #00BAFF33, 0 0 0 6px #A579EB20; }
#ebai-interface3 .ebai-journey-marker { position: absolute; top: 50%; transform: translateY(-50%); color: #607080; font-size: 10px; font-weight: 750; line-height: 1.2; white-space: nowrap; pointer-events: none; }
#ebai-interface3 .ebai-journey-marker.is-right { left: calc(100% + 5px); }
#ebai-interface3 .ebai-journey-marker.is-left { right: calc(100% + 5px); }
#ebai-interface3 .is-selected .ebai-journey-marker { color: #8056BD; }
#ebai-interface3 .ebai-journey-continue-slot { min-height: 58px; margin-top: 16px; }
#ebai-interface3 .ebai-journey-continue { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; min-height: 48px; margin: 0 auto; padding: 12px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #00BAFF; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
#ebai-interface3 .ebai-journey-continue span { color: inherit; margin: 0; flex: 0 0 auto; }
#ebai-interface3 .ebai-journey-continue[hidden] { display: none; }
#ebai-interface3 .ebai-journey-continue:hover:not(:disabled) { color: #007EAE; text-decoration: underline; text-underline-offset: 4px; }
#ebai-interface3 .ebai-journey-continue:focus-visible { outline: 2px solid #007EAE; outline-offset: 2px; }
#ebai-interface3 .ebai-journey-continue.is-revealed { animation: ebaiBandContinue 300ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  #ebai-interface3 .ebai-journey-segment, #ebai-interface3 .ebai-journey-node { transition: none !important; }
  #ebai-interface3 .ebai-journey-continue { animation: none !important; }
}

/* EBAI INTERFACE 3.0 — Step 3 only: viewport-constrained single-screen layout. */
html:has(#ebai-interface3 .ebai-onboarding-panel .ebai-target-journey),
body.ebai-interface-active:has(#ebai-interface3 .ebai-onboarding-panel .ebai-target-journey) { height: 100dvh !important; min-height: 0; overflow: hidden !important; }
#ebai-interface3:has(.ebai-onboarding-panel .ebai-target-journey) { height: 100dvh; min-height: 0; }
#ebai-interface3 .ebai-onboarding-flow:has(.ebai-target-journey) { height: 100%; min-height: 0; padding: 82px 6px 112px; }
#ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; min-height: 0; }
#ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-step { margin-bottom: 6px; }
#ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-progress { margin-bottom: 12px; }
#ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-viewport { min-height: 0; overflow: visible; }
#ebai-interface3 .ebai-onboarding-panel:has(.ebai-target-journey) { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#ebai-interface3 .ebai-onboarding-panel:has(.ebai-target-journey) h1 { flex-shrink: 0; margin-bottom: 8px; }
#ebai-interface3 .ebai-onboarding-panel .ebai-target-journey { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; flex: 1; min-height: 0; }
#ebai-interface3 .ebai-onboarding-panel .ebai-journey-current { margin-bottom: 4px; }
#ebai-interface3 .ebai-onboarding-panel .ebai-journey-map { width: min(500px, calc(100cqw - 16px), calc((100cqh - 16px) * 1.363636)); height: auto; aspect-ratio: 600 / 440; min-height: 0; flex-shrink: 0; }
#ebai-interface3 .ebai-onboarding-panel .ebai-journey-svg { left: 0; width: 100%; }
#ebai-interface3 .ebai-onboarding-panel .ebai-journey-continue-slot { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px; }
#ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-note { margin-top: 8px; line-height: 1.4; }
@media (max-height: 700px) {
  #ebai-interface3 .ebai-onboarding-flow:has(.ebai-target-journey) { padding-block: 40px 56px; }
  #ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-step { margin-bottom: 4px; }
  #ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-progress { margin-bottom: 6px; }
  #ebai-interface3 .ebai-onboarding-panel:has(.ebai-target-journey) h1 { margin-bottom: 6px; }
  #ebai-interface3 .ebai-onboarding-panel .ebai-journey-current { margin-bottom: 2px; }
  #ebai-interface3 .ebai-onboarding-panel .ebai-journey-continue-slot { margin-top: 0; }
  #ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-note { margin-top: 4px; }
}

/* EBAI INTERFACE 3.0 — compact geometry and complete-view transition; no post-paint sizing. */
#ebai-interface3:has(.ebai-target-journey) { position: relative; }
#ebai-interface3 .ebai-onboarding-content:has(.ebai-target-journey) .ebai-onboarding-viewport { display: flex; align-items: center; }
#ebai-interface3 .ebai-onboarding-panel:has(.ebai-target-journey) { justify-content: center; }
#ebai-interface3 .ebai-onboarding-panel .ebai-target-journey { display: flex; flex-direction: column; flex: 0 1 auto; }
#ebai-interface3 .ebai-journey-stage { container-type: size; width: min(516px, 100%); aspect-ratio: 600 / 440; min-height: 0; flex: 0 1 auto; display: grid; place-items: center; margin: 0 auto; }
#ebai-interface3 .ebai-journey-map { container-type: inline-size; --ebai-journey-node-size: 36px; --ebai-journey-hit-size: 44px; }
#ebai-interface3 .ebai-step3-incoming { position: absolute; inset: 0; width: 100%; height: 100dvh; transform: translateX(100%); }
#ebai-interface3 .ebai-step3-incoming.is-incoming { animation: ebaiQuestionIn 350ms ease both; }
#ebai-interface3 .ebai-step3-outgoing.is-outgoing { animation: ebaiQuestionOut 350ms ease both; }

@media (max-width: 340px) { #ebai-interface3 .ebai-journey-map { --ebai-journey-hit-size: 38px; } }

/* EBAI INTERFACE 3.0 — center Step 3 between inset progress and Profile note. */
@media (max-width: 640px) and (min-height: 701px) {
  #ebai-interface3 .ebai-onboarding-flow:has(.ebai-target-journey) { padding-block: 64px 88px; }
}

/* EBAI INTERFACE 3.0 — Phase 3.1: existing header, personalized dashboard only. */
body.ebai-interface-active:has(#ebai-interface3.ebai-dashboard) { background: #FFFFFF !important; height: 100dvh !important; overflow: hidden !important; }
html:has(#ebai-interface3.ebai-dashboard) { height: 100%; overflow: hidden !important; }
body.ebai-interface-active:has(#ebai-interface3.ebai-dashboard) > .app { display: block !important; height: 100dvh !important; min-height: 100dvh; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; background: #FFFFFF; }
body.ebai-interface-active:has(#ebai-interface3.ebai-dashboard) .website-header { display: flex !important; }
body.ebai-interface-active:has(#ebai-interface3.ebai-dashboard) #content,
body.ebai-interface-active:has(#ebai-interface3.ebai-dashboard) .bottom-nav { display: none !important; }
#ebai-interface3.ebai-dashboard { min-height: 0; background: #FFFFFF; padding: 48px 24px 56px; }
#ebai-interface3 .ebai-dashboard-shell { max-width: 1060px; margin: 0 auto; }
#ebai-interface3 .ebai-dashboard-card { padding: 40px; border: 1px solid #E3ECF2; border-radius: 28px; box-shadow: 0 14px 40px #14283C08; background: #FFFFFF; }
#ebai-interface3 .ebai-dashboard-eyebrow { color: #007EAE; font-size: 11px; font-weight: 800; letter-spacing: .09em; margin: 0 0 12px; }
#ebai-interface3 .ebai-dashboard-card h1 { margin: 0; font-size: clamp(28px, 3.5vw, 40px); }
#ebai-interface3 .ebai-dashboard-intro { color: #607080; font-size: 15px; margin: 10px 0 32px; }
#ebai-interface3 .ebai-insights-grid { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 18px; }
#ebai-interface3 .ebai-insight { position: relative; padding: 24px 20px; border-radius: 20px; background: #F5F9FC; min-width: 0; }
#ebai-interface3 .ebai-insight-label { color: #607080; font-size: 11px; font-weight: 800; letter-spacing: .06em; margin: 0 0 12px; }
#ebai-interface3 .ebai-insight-value { color: #17212B; font-size: clamp(32px, 4vw, 54px); font-weight: 850; line-height: 1.15; }
#ebai-interface3 .ebai-insight-value small { font-size: 18px; font-weight: 750; color: #607080; }
#ebai-interface3 .ebai-insight-note { color: #607080; font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
#ebai-interface3 .ebai-current-value { display: inline-flex; flex-direction: column; align-items: flex-start; width: auto; min-height: 48px; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; cursor: pointer; }
#ebai-interface3 .ebai-current-value:focus-visible, #ebai-interface3 #ebai-insights-login:focus-visible { outline: 2px solid #007EAE; outline-offset: 4px; }
#ebai-interface3 .ebai-band-change { font-size: 20px; line-height: 1; margin-top: 4px; }
#ebai-interface3 .ebai-band-change.is-up { color: #318953; }
#ebai-interface3 .ebai-band-change.is-down { color: #B75F73; }
#ebai-interface3 .ebai-band-change.is-new { animation: ebaiBandInsight 400ms ease-out both; }
@keyframes ebaiBandInsight { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
#ebai-interface3 #ebai-band-tooltip { display: none; position: absolute; z-index: 10; top: 100%; left: 0; max-width: min(300px, 100%); width: max-content; padding: 12px 14px; border: 1px solid #DDE6ED; border-radius: 12px; background: #FFFFFF; box-shadow: 0 8px 24px #14283C14; color: #17212B; font-size: 12px; font-weight: 600; line-height: 1.5; }
#ebai-interface3 .ebai-insight:has(.ebai-current-value:hover) #ebai-band-tooltip,
#ebai-interface3 .ebai-insight:focus-within #ebai-band-tooltip,
#ebai-interface3 .ebai-insight.is-tooltip-open #ebai-band-tooltip { display: block; }
#ebai-interface3 .ebai-insights-invitation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 16px 20px; border: 1px solid #E3ECF2; border-radius: 16px; color: #607080; }
#ebai-interface3 .ebai-insights-invitation p { flex: 1; margin: 0; font-size: 14px; }
#ebai-interface3 #ebai-insights-login { width: auto; min-height: 44px; padding: 8px 12px; margin: 0; background: transparent; box-shadow: none; border: 0; color: #007EAE; font-size: 14px; font-weight: 800; }
#ebai-interface3 .ebai-insights-context { margin: 18px 0 0; color: #607080; font-size: 12px; }
#ebai-interface3.ebai-dashboard .ebai-targeted-catalogs { margin-top: 24px; }
#ebai-interface3 .ebai-dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
#ebai-interface3 .ebai-dashboard-actions .ebai-targeted-restart { margin: 0; }
@media (max-width: 640px) {
  #ebai-interface3.ebai-dashboard { padding: 24px 16px 40px; }
  #ebai-interface3 .ebai-dashboard-card { padding: 24px 18px; border-radius: 24px; }
  #ebai-interface3 .ebai-insights-grid { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 12px; }
  #ebai-interface3 .ebai-insight { padding: 20px 14px; }
  #ebai-interface3 .ebai-insight:last-child:nth-child(3) { grid-column: 1 / -1; }
  #ebai-interface3 .ebai-insight-value { font-size: 34px; }
  #ebai-interface3 .ebai-insights-invitation { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { #ebai-interface3 .ebai-band-change.is-new { animation: none; } }

/* EBAI INTERFACE 3.0 — Phase 3.2: dashboard presentation only; native app scroller unchanged. */
body.ebai-interface-active:has(#ebai-interface3.ebai-dashboard),
body.ebai-interface-active:has(#ebai-interface3.ebai-dashboard) > .app { background: #F5F9FC !important; }
#ebai-interface3.ebai-dashboard { background: transparent; }
#ebai-interface3 .ebai-dashboard-card { padding: 36px; border-color: #E1EAF1; background: #FFFFFF; box-shadow: 0 18px 46px #14283C08; }
#ebai-interface3 .ebai-dashboard-eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .12em; margin-bottom: 14px; }
#ebai-interface3 .ebai-dashboard-eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: #00BAFF; }
#ebai-interface3 .ebai-dashboard-card h1 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.025em; }
#ebai-interface3 .ebai-dashboard-intro { margin-bottom: 28px; }
#ebai-interface3 .ebai-insights-grid { gap: 16px; }
#ebai-interface3 .ebai-insight { padding: 24px; border: 1px solid var(--metric-border); background: var(--metric-background); border-radius: 22px; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
#ebai-interface3 .ebai-insight-current { --metric-border: #CBEAF6; --metric-background: linear-gradient(135deg, #EEF9FE, #DFF2FC); --metric-accent: #007EAE; --metric-icon: #D1ECF9; }
#ebai-interface3 .ebai-insight-target { --metric-border: #E1D9F3; --metric-background: linear-gradient(135deg, #F7F3FE, #ECE5F8); --metric-accent: #7651B0; --metric-icon: #E4DAF4; }
#ebai-interface3 .ebai-insight-days { --metric-border: #D0EBDD; --metric-background: linear-gradient(135deg, #F2FBF6, #E2F3E9); --metric-accent: #327753; --metric-icon: #D2EBDD; }
#ebai-interface3 .ebai-insight-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
#ebai-interface3 .ebai-insight-label { color: var(--metric-accent); margin: 0; letter-spacing: .065em; font-size: 11px; }
#ebai-interface3 .ebai-dashboard-icon { width: 24px; height: 24px; flex: 0 0 auto; }
#ebai-interface3 .ebai-insight-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; color: var(--metric-accent); background: var(--metric-icon); transition: transform 180ms ease; }
#ebai-interface3 .ebai-insight-value { font-size: clamp(42px, 4.4vw, 62px); color: var(--metric-accent); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
#ebai-interface3 .ebai-insight-value small { font-size: 17px; letter-spacing: 0; color: var(--metric-accent); opacity: .85; }
#ebai-interface3 .ebai-insight-note { margin-top: 14px; line-height: 1.5; }
#ebai-interface3 .ebai-insight-lock { display: inline-grid; place-items: center; min-height: 70px; }
#ebai-interface3 .ebai-insight-lock svg { width: 32px; height: 32px; opacity: .65; }
#ebai-interface3 .ebai-secondary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 4px; margin-top: 8px; border-bottom: 1px solid #E8EEF3; }
#ebai-interface3 .ebai-secondary-stat { display: flex; gap: 14px; align-items: flex-start; }
#ebai-interface3 .ebai-secondary-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: #EDF7FD; color: #007EAE; }
#ebai-interface3 .ebai-secondary-stat.is-positive .ebai-secondary-icon { background: #EAF6EF; color: #318953; }
#ebai-interface3 .ebai-secondary-stat.is-negative .ebai-secondary-icon { background: #FAEEF1; color: #B75F73; }
#ebai-interface3 .ebai-secondary-stat.is-neutral .ebai-secondary-icon { background: #F1F4F7; color: #607080; }
#ebai-interface3 .ebai-secondary-stat strong { display: block; font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.2; }
#ebai-interface3 .ebai-secondary-stat span:not(.ebai-secondary-icon) { display: block; color: #17212B; font-size: 13px; font-weight: 750; margin-top: 4px; }
#ebai-interface3 .ebai-secondary-stat small { display: block; color: #607080; font-size: 11px; line-height: 1.5; margin-top: 4px; }
#ebai-interface3 .ebai-secondary-stat.is-positive strong { color: #318953; }
#ebai-interface3 .ebai-secondary-stat.is-negative strong { color: #B75F73; }
#ebai-interface3 .ebai-secondary-stat.is-neutral strong { color: #607080; }
#ebai-interface3 .ebai-progress-message { display: flex; align-items: center; gap: 12px; margin: 22px 4px 0; color: #526778; font-size: 13px; line-height: 1.5; }
#ebai-interface3 .ebai-progress-message svg { color: #007EAE; width: 20px; height: 20px; }
#ebai-interface3 .ebai-progress-message.is-achievement svg { color: #B78125; }
#ebai-interface3 .ebai-insights-invitation { display: flex; flex-wrap: nowrap; gap: 16px; padding: 22px; margin-top: 24px; border: 1px solid #D9EAF4; background: linear-gradient(110deg, #F2F9FE, #FCFDFF); border-radius: 18px; }
#ebai-interface3 .ebai-unlock-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 14px; background: #DEEFF9; color: #007EAE; }
#ebai-interface3 .ebai-insights-invitation > div { flex: 1; }
#ebai-interface3 .ebai-insights-invitation h2 { margin: 0 0 6px; color: #17212B; font-size: 17px; font-weight: 850; }
#ebai-interface3 .ebai-insights-invitation p { margin: 0; font-size: 13px; line-height: 1.6; }
#ebai-interface3 #ebai-insights-login { flex: 0 0 auto; padding: 12px 16px; border-radius: 12px; color: #FFFFFF; background: #007EAE; font-weight: 800; transition: background 180ms ease, box-shadow 180ms ease; }
#ebai-interface3 #ebai-insights-login:hover { background: #006A94; box-shadow: 0 4px 12px #007EAE20; }
#ebai-interface3 .ebai-number-updated { display: inline-block; animation: ebaiNumberReveal 320ms ease-out both; }
@keyframes ebaiNumberReveal { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) {
  #ebai-interface3 .ebai-insight:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #14283C0C; }
  #ebai-interface3 .ebai-insight:hover .ebai-insight-icon { transform: translateY(-1px); }
}
@media (max-width: 760px) {
  #ebai-interface3 .ebai-dashboard-card { padding: 28px 22px; }
  #ebai-interface3 .ebai-insight { padding: 20px 16px; }
}
@media (max-width: 640px) {
  #ebai-interface3 .ebai-dashboard-card { padding: 26px 18px; }
  #ebai-interface3 .ebai-insights-grid { gap: 12px; }
  #ebai-interface3 .ebai-insight { padding: 18px 14px; border-radius: 18px; }
  #ebai-interface3 .ebai-insight-top { gap: 6px; margin-bottom: 14px; }
  #ebai-interface3 .ebai-insight-label { font-size: 10px; letter-spacing: .035em; }
  #ebai-interface3 .ebai-insight-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; }
  #ebai-interface3 .ebai-insight-icon svg { width: 19px; height: 19px; }
  #ebai-interface3 .ebai-insight-value { font-size: 40px; }
  #ebai-interface3 .ebai-secondary-stats { gap: 16px; padding: 22px 0; }
  #ebai-interface3 .ebai-secondary-stat { gap: 10px; }
  #ebai-interface3 .ebai-secondary-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
  #ebai-interface3 .ebai-secondary-icon svg { width: 20px; height: 20px; }
  #ebai-interface3 .ebai-secondary-stat strong { font-size: 24px; }
  #ebai-interface3 .ebai-insights-invitation { flex-wrap: wrap; padding: 18px; gap: 12px; }
  #ebai-interface3 .ebai-insights-invitation > div { flex-basis: calc(100% - 60px); }
  #ebai-interface3 #ebai-insights-login { margin-left: 58px; }
}
@media (max-width: 359px) {
  #ebai-interface3 .ebai-insight-top { flex-wrap: wrap; }
  #ebai-interface3 .ebai-secondary-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #ebai-interface3 .ebai-insight, #ebai-interface3 .ebai-insight-icon, #ebai-interface3 #ebai-insights-login { transition: none; }
  #ebai-interface3 .ebai-insight:hover, #ebai-interface3 .ebai-insight:hover .ebai-insight-icon { transform: none; }
  #ebai-interface3 .ebai-number-updated { animation: none; }
}

/* EBAI INTERFACE 3.0 — Phase 3.3 dashboard refinements; no engine or onboarding changes. */
#ebai-interface3 .ebai-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
#ebai-interface3 .ebai-insight-days { grid-column: 1 / -1; padding: 22px 24px; }
#ebai-interface3 .ebai-insight-days .ebai-insight-top { margin-bottom: 8px; padding-right: 70px; }
#ebai-interface3 .ebai-insight-days .ebai-insight-label { font-size: 14px; letter-spacing: 0; }
#ebai-interface3 .ebai-insight-days .ebai-insight-icon { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
#ebai-interface3 .ebai-insight-days .ebai-insight-value { font-size: 46px; padding-right: 70px; }
#ebai-interface3 .ebai-insight-days .ebai-insight-note { margin-top: 12px; }
#ebai-interface3 .ebai-insight-days:has([data-dashboard-days]) .ebai-insight-note::before { content: ""; display: block; height: 2px; border-radius: 2px; background: #C5E3D2; margin-bottom: 10px; width: calc(100% - 70px); }
#ebai-interface3 .ebai-insight-current { cursor: pointer; }
#ebai-interface3 .ebai-current-value { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
#ebai-interface3 .ebai-band-change { margin-top: 0; font-size: 22px; flex: 0 0 auto; letter-spacing: 0; }
#ebai-interface3 .ebai-secondary-stat { padding: 12px; border-radius: 14px; color: inherit; text-decoration: none; cursor: pointer; transition: background 150ms ease, box-shadow 150ms ease; }
#ebai-interface3 .ebai-secondary-stat:hover { background: #F5F9FC; }
#ebai-interface3 .ebai-secondary-stat:focus-visible,
#ebai-interface3 .ebai-insight-current:focus-visible { outline: 2px solid #007EAE; outline-offset: 3px; }
#ebai-interface3 #ebai-band-tooltip[hidden], .ebai-analytics-popover[hidden] { display: none !important; }
.ebai-analytics-popover { position: fixed; display: block; box-sizing: border-box; z-index: 1200; max-width: calc(100vw - 24px); padding: 22px 20px; border: 1px solid #D9E5EE; border-radius: 16px; background: #FFFFFF; color: #17212B; box-shadow: 0 14px 40px #14283C24; font-family: Nunito, Manrope, system-ui, sans-serif; font-size: 13px; font-weight: 600; line-height: 1.6; white-space: normal; }
.ebai-analytics-popover h2 { font-size: 17px; line-height: 1.4; margin: 0 30px 16px 0; }
.ebai-analytics-popover p { margin: 0; }
.ebai-popover-close { position: absolute; top: 3px; right: 4px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #607080; font-size: 22px; cursor: pointer; }
.ebai-popover-close:focus-visible { outline: 2px solid #007EAE; }
.ebai-band-history-chart { display: block; width: 100%; height: auto; }
.ebai-band-history-chart text { font: 16px Nunito, system-ui, sans-serif; fill: #607080; }
.ebai-chart-caption { font-size: 11px; color: #607080; margin-top: 10px !important; }
.ebai-chart-empty { color: #607080; padding-bottom: 8px; }
#ebai-interface3 .ebai-history-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 18px; color: #007EAE; font-size: 14px; font-weight: 800; text-decoration: none; }
#ebai-interface3 .ebai-history-back:focus-visible, #ebai-interface3 .ebai-history-open:focus-visible { outline: 2px solid #007EAE; outline-offset: 4px; }
#ebai-interface3 #ebai-history-content { margin-top: 28px; }
#ebai-interface3 .ebai-history-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 14px; }
#ebai-interface3 .ebai-history-list li { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid #E1EAF1; border-radius: 18px; }
#ebai-interface3 .ebai-history-detail { flex: 1; min-width: 0; }
#ebai-interface3 .ebai-history-detail h2 { font-size: 16px; margin: 0 0 6px; overflow-wrap: anywhere; }
#ebai-interface3 .ebai-history-detail p { font-size: 12px; color: #607080; margin: 0; }
#ebai-interface3 .ebai-history-skill-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: #EAF6FE; color: #007EAE; }
#ebai-interface3 .ebai-history-skill-icon svg { width: 22px; height: 22px; }
#ebai-interface3 .ebai-history-skill-icon.is-writing { color: #BA762A; background: #FFF3E7; }
#ebai-interface3 .ebai-history-skill-icon.is-speaking { color: #7651B0; background: #F1EAFB; }
#ebai-interface3 .ebai-history-skill-icon.is-listening { color: #327753; background: #EDF8F1; }
#ebai-interface3 .ebai-history-list li > strong { font-size: 15px; white-space: nowrap; }
#ebai-interface3 .ebai-history-open { font-size: 12px; font-weight: 800; color: #007EAE; text-decoration: none; }
#ebai-interface3 .ebai-history-undated { margin: 30px 0 8px; font-size: 17px; }
#ebai-interface3 .ebai-history-limit { margin: 10px 0 20px; color: #607080; font-size: 12px; }
#ebai-interface3 .ebai-history-empty { padding: 32px 0; color: #607080; }
#ebai-interface3 .ebai-history-signin { padding: 24px 0; color: #607080; }
#ebai-interface3 #ebai-history-login { min-height: 44px; width: auto; margin: 12px 0 0; padding: 10px 16px; border: 0; border-radius: 12px; background: #007EAE; color: white; font-weight: 800; }
@media (max-width: 640px) {
 #ebai-interface3 .ebai-insight-days { padding: 20px 16px; }
 #ebai-interface3 .ebai-insight-days .ebai-insight-value { font-size: 40px; }
 #ebai-interface3 .ebai-insight-days .ebai-insight-icon { right: 16px; width: 42px; height: 42px; }
 #ebai-interface3 .ebai-secondary-stats { gap: 8px; padding: 18px 0 0; border-bottom: 0; }
 #ebai-interface3 .ebai-secondary-stat { padding: 10px 6px; }
 #ebai-interface3 .ebai-history-list li { flex-wrap: wrap; padding: 16px; gap: 12px; }
 #ebai-interface3 .ebai-history-detail { flex-basis: calc(100% - 60px); }
 #ebai-interface3 .ebai-history-open { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { #ebai-interface3 .ebai-secondary-stat { transition: none; } }

@media (max-width: 640px) { .ebai-band-history-chart text { font-size: 20px; } }

/* EBAI INTERFACE 3.0 — Phase 3.4: Guide Me discovery only; shared Full Version list unchanged. */
#ebai-interface3 .ebai-insight-current:not(:has(#ebai-band-tooltip)), #ebai-interface3 .ebai-insight-current:not(:has(#ebai-band-tooltip)) .ebai-current-value { cursor: default; }
#ebai-interface3 .ebai-discovery { width: 100%; margin-top: 24px; }
#ebai-interface3 .ebai-discovery-skills { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
#ebai-interface3 .ebai-discovery-skills button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; width: 100%; min-height: 84px; margin: 0; padding: 18px 12px; border: 1px solid #DCE7EF; border-radius: 18px; background: #FFFFFF; box-shadow: 0 4px 14px #14283C04; color: #405466; font-size: 15px; font-weight: 850; transition: border-color 160ms ease, background 160ms ease; }
#ebai-interface3 .ebai-discovery-skills button[aria-selected="true"] { border-color: #54BDE6; color: #007EAE; background: #EAF7FD; }
#ebai-interface3 .ebai-discovery-skills button:hover { border-color: #54BDE6; }
#ebai-interface3 .ebai-discovery-skills button:focus-visible { outline: 2px solid #007EAE; outline-offset: 3px; }
#ebai-interface3 .ebai-discovery-skill-icon { display: flex; flex: 0 0 22px; }
#ebai-interface3 .ebai-discovery-skill-icon svg { width: 22px; height: 22px; }
#ebai-interface3 .ebai-skill-recommendation { display: flex; color: #B78125; flex: 0 0 14px; }
#ebai-interface3 .ebai-skill-recommendation svg { width: 14px; height: 14px; }
#ebai-interface3 .ebai-discovery-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 16px; }
#ebai-interface3 .ebai-discovery-tools label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 750; color: #607080; }
#ebai-interface3 .ebai-discovery-tools select { width: auto; min-height: 44px; font-size: 13px; border-radius: 12px; background: #FFFFFF; }
#ebai-interface3 .ebai-discovery-favorites input { width: 18px; height: 18px; accent-color: #007EAE; }
#ebai-interface3 .ebai-discovery-panel[hidden] { display: none !important; }
#ebai-interface3 .ebai-discovery-panel .free-trial-intro { max-width: none; width: 100%; margin: 0; padding: 24px; background: #FFFFFF; border: 1px solid #E1EAF1; border-radius: 24px; }
#ebai-interface3 .ebai-discovery-panel .free-trial-topbar h2 { margin: 0 0 8px; font-size: 24px; font-weight: 850; }
#ebai-interface3 .ebai-discovery-panel .free-trial-practice-list { overflow: visible; }
@media (max-width: 900px) {
 #ebai-interface3 .ebai-discovery-skills { gap: 16px; }
 #ebai-interface3 .ebai-discovery-skills button { gap: 6px; font-size: 13px; padding: 16px 10px; }
}
@media (max-width: 640px) {
 #ebai-interface3 .ebai-discovery-skills { grid-template-columns: 1fr 1fr; gap: 12px; }
 #ebai-interface3 .ebai-discovery-skills button { min-height: 72px; font-size: 14px; }
 #ebai-interface3 .ebai-discovery-tools { align-items: flex-start; }
 #ebai-interface3 .ebai-discovery-tools label { flex-wrap: wrap; gap: 8px; }
 #ebai-interface3 .ebai-discovery-panel .free-trial-intro { padding: 20px 14px; border-radius: 20px; }
}
@media (max-width: 359px) { #ebai-interface3 .ebai-discovery-skill-icon { display: none; } }
@media (prefers-reduced-motion: reduce) { #ebai-interface3 .ebai-discovery-skills button { transition: none; } }

/* EBAI INTERFACE 3.0 — Phase 3.5. Out of flow: visibility never changes page height. */
.ebai-compact-dashboard { position: fixed; z-index: 800; height: 48px; box-sizing: border-box; background: #FFFFFFF5; border-bottom: 1px solid #E1EAF1; box-shadow: 0 3px 10px #14283C08; opacity: 0; visibility: hidden; transform: none; transition: none; pointer-events: none; }
.ebai-compact-dashboard.is-visible { opacity: 1; visibility: visible; transform: none; }
.ebai-compact-inner { max-width: 1060px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 26px; white-space: nowrap; font-size: 14px; color: #607080; box-sizing: border-box; }
.ebai-compact-title { font-weight: 700; color: #233747; }
.ebai-compact-current { color: #007EAE; }
.ebai-compact-target { color: #7956BE; }
.ebai-compact-days { color: #357859; }
.ebai-compact-inner strong { font-weight: 800; margin-left: 4px; }
@media(max-width:600px) {
 .ebai-compact-inner { padding: 0 16px; gap: 16px; font-size: 12px; justify-content: center; }
 .ebai-compact-title { display: none; }
}
@media(max-width:359px) { .ebai-compact-inner { gap: 10px; } }
@media(prefers-reduced-motion:reduce) { .ebai-compact-dashboard { transition: none; transform: none; } }

/* EBAI INTERFACE 3.0 — Phase 3.5 hotfix: coordinated collapse and balanced summary. */
.ebai-compact-inner { width: var(--ebai-summary-width); max-width: none; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; }
.ebai-compact-title { display: flex; align-items: center; gap: 8px; }
.ebai-compact-title[hidden], .ebai-compact-days[hidden] { display: none; }
.ebai-compact-bands { grid-column: 2; display: flex; align-items: center; gap: 12px; }
.ebai-compact-days { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.ebai-compact-inner svg { width: 18px; height: 18px; flex: none; }
.ebai-dashboard-collapse { min-width: 0; }
@media(max-width:600px) {
 .ebai-compact-inner { display: flex; justify-content: center; gap: 16px; }
 .ebai-compact-title { display: none; }
 .ebai-compact-bands { gap: 8px; }
 .ebai-compact-current > span,.ebai-compact-target > span { display: none; }
 .ebai-compact-inner strong { margin: 0; }
}

/* EBAI INTERFACE 3.0: practice leads the visual transition; original nodes stay mounted. */
.ebai-dashboard-collapse { position: relative; z-index: 0; }
.ebai-practice-motion { position: relative; z-index: 1; display: flow-root; background: #F5F9FC; }

/* EBAI INTERFACE 3.0 — localized dashboard priority and compact filtering. */
#ebai-interface3 .ebai-discovery-skill-group { display:flex; align-items:center; justify-content:center; gap:8px; min-height:84px; border:1px solid #DCE7EF; border-radius:18px; background:#fff; box-shadow:0 4px 14px #14283C04; cursor:pointer; }
#ebai-interface3 .ebai-discovery-skill-group:has([aria-selected="true"]) { border-color:#54BDE6; background:#EAF7FD; }
#ebai-interface3 .ebai-discovery-skill-group > [data-discovery-skill] { border:0; border-radius:0; background:transparent; box-shadow:none; width:auto; min-height:44px; padding:8px 0; }
#ebai-interface3 .ebai-discovery-skills .ebai-priority-star { display:none; flex:0 0 auto; min-height:44px; width:28px; padding:0; border:0; background:transparent; color:#607080; }
#ebai-interface3 .ebai-priority-star svg { width:18px; height:18px; }
#ebai-interface3 .ebai-discovery-skill-group:hover .ebai-priority-star,
#ebai-interface3 .ebai-discovery-skill-group:focus-within .ebai-priority-star,
#ebai-interface3 .ebai-discovery-skills .ebai-priority-star[aria-pressed="true"] { display:flex; }
#ebai-interface3 .ebai-discovery-skills .ebai-priority-star[aria-pressed="true"] { color:#B78125; }
#ebai-interface3 .ebai-discovery-tools { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; margin:18px 0 14px; }
#ebai-interface3 .ebai-discovery-tools input,
#ebai-interface3 .ebai-discovery-tools select,
#ebai-interface3 [data-discovery-filters] { min-width:0; width:auto; height:44px; min-height:44px; margin:0; box-sizing:border-box; border:1px solid #E1EAF1; border-radius:12px; padding:10px 12px; background:#fff; font:inherit; font-size:13px; line-height:20px; }
#ebai-interface3 [data-discovery-filters] { display:inline-flex; align-items:center; justify-content:center; color:#007EAE; font-weight:750; white-space:nowrap; cursor:pointer; }
#ebai-interface3 .ebai-discovery-panel [data-free-trial-list-filters][hidden],
#ebai-interface3 .ebai-discovery-favorites[hidden] { display:none!important; }
#ebai-interface3 .ebai-discovery-panel [data-free-trial-list-filters] { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:14px; }
#ebai-interface3 .ebai-practice-availability { margin:0; color:#607080; font-size:13px; font-weight:650; }
#ebai-interface3 .ebai-discovery[data-priority-editing="true"] .ebai-priority-star { display:flex; }
@media (max-width:600px) {
 #ebai-interface3 .ebai-discovery-skill-group { min-height:72px; gap:5px; }
}
@media (max-width:480px) {
 #ebai-interface3 .ebai-discovery-tools { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
 #ebai-interface3 [data-discovery-search] { grid-column:1 / -1; }
 #ebai-interface3 .ebai-discovery-tools select { width:100%; }
}

/* EBAI INTERFACE 3.0 — Guide Me preview layout; original modal CSS is reused. */
#ebai-interface3 .ebai-discovery-panel .free-trial-practice-row-slot { display:grid; grid-template-columns:minmax(0,1fr) 32px; align-items:center; gap:10px; }
#ebai-interface3 .ebai-discovery-panel .free-trial-practice-info { position:static; display:inline-flex; margin:0; width:32px; height:32px; min-width:32px; transform:none; }
#ebai-interface3 .ebai-discovery-panel .free-trial-practice-list-header { margin-right:42px; }
body.ebai-guide-preview-open { overflow:hidden!important; }
#ebai-interface3 .ebai-preview-invitation-description { max-width:580px; color:#607080; line-height:1.6; margin:20px 0 28px; }
#ebai-interface3 .ebai-preview-setup { display:inline-flex; align-items:center; min-height:48px; padding:12px 20px; border-radius:16px; background:#00BAFF; color:#17212B; font-weight:850; }
@media (max-width:600px) {
 #ebai-interface3 .ebai-discovery-panel .free-trial-practice-row-slot { gap:8px; }
 #ebai-interface3 .ebai-discovery-panel .free-trial-practice-list-header { margin-right:40px; }
}

/* Native select metrics ignore line-height; use the same 20px text box and centered chevron. */
#ebai-interface3 .ebai-discovery-tools select { appearance:none; padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23607080' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:12px 12px; }

/* Incomplete guest welcome only; personalized dashboard rules remain unchanged. */
#ebai-interface3.ebai-public-guided .ebai-guest-welcome { display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(28px,5vw,72px); align-items:center; padding:clamp(28px,4vw,48px); margin-bottom:28px; background:linear-gradient(125deg,#FFFFFF 55%,#F0F9FD); border:1px solid #E0EBF2; border-radius:28px; }
#ebai-interface3.ebai-public-guided .ebai-guest-eyebrow { margin:0 0 16px; font-size:11px; font-weight:850; letter-spacing:.16em; color:#337FAA; }
#ebai-interface3.ebai-public-guided .ebai-guest-copy h1 { margin:0 0 18px; font-size:clamp(32px,3.5vw,44px); line-height:1.12; letter-spacing:-.035em; font-weight:850; }
#ebai-interface3.ebai-public-guided .ebai-guest-copy h1 span { color:#337FAA; }
#ebai-interface3.ebai-public-guided .ebai-guest-description { max-width:430px; margin:0 0 24px; color:#607080; font-size:15px; line-height:1.7; }
#ebai-interface3.ebai-public-guided .ebai-guest-start { width:auto; max-width:100%; margin:0; box-shadow:none; display:inline-flex; align-items:center; gap:20px; min-height:48px; padding:12px 22px; border:0; border-radius:14px; background:#00BAFF; color:#17212B; font:inherit; font-size:15px; font-weight:850; cursor:pointer; }
#ebai-interface3.ebai-public-guided .ebai-guest-start:focus-visible, #ebai-interface3.ebai-public-guided #ebai-guest-login:focus-visible { outline:3px solid #337FAA; outline-offset:4px; }
#ebai-interface3.ebai-public-guided .ebai-guest-login { margin:15px 0 0; color:#607080; font-size:12px; }
#ebai-interface3.ebai-public-guided #ebai-guest-login { display:inline; width:auto; height:auto; min-height:0; margin:0; box-shadow:none; border-radius:0; border:0; background:none; padding:2px; color:#337FAA; font:inherit; font-weight:800; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefits { display:grid; gap:24px; list-style:none; margin:0; padding:0; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefits li { display:flex; gap:15px; align-items:flex-start; min-width:0; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefit-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:13px; background:#E7F5FD; color:#337FAA; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefit-icon svg { width:23px; height:23px; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefits li:nth-child(2) .ebai-guest-benefit-icon { color:#7751AE; background:#F0EAFA; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefits li:nth-child(3) .ebai-guest-benefit-icon { color:#32825E; background:#EAF7EF; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefits h2 { margin:1px 0 5px; font-size:15px; line-height:1.3; font-weight:850; }
#ebai-interface3.ebai-public-guided .ebai-guest-benefits p { margin:0; color:#607080; font-size:13px; line-height:1.6; }
@media(max-width:700px){
 #ebai-interface3.ebai-public-guided .ebai-guest-welcome { grid-template-columns:1fr; gap:28px; padding:26px 22px; border-radius:22px; margin-bottom:22px; }
 #ebai-interface3.ebai-public-guided .ebai-guest-copy h1 { font-size:34px; }
 #ebai-interface3.ebai-public-guided .ebai-guest-benefits { gap:18px; }
 #ebai-interface3.ebai-public-guided .ebai-guest-description { font-size:14px; margin-bottom:20px; }
}
