#baheka-assistant-root {
  --ba-ink: #17241c;
  --ba-forest: #173c2d;
  --ba-deep: #0a2418;
  --ba-leaf: #57814e;
  --ba-gold: #e2a947;
  --ba-paper: #fffdf8;
  --ba-line: rgba(23, 36, 28, .15);
  --ba-muted: #68746c;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ba-ink);
  line-height: 1.4;
}

#baheka-assistant-root *,
#baheka-assistant-root *::before,
#baheka-assistant-root *::after { box-sizing: border-box; }
#baheka-assistant-root button,
#baheka-assistant-root input { font: inherit; }
#baheka-assistant-root button:focus-visible,
#baheka-assistant-root a:focus-visible,
#baheka-assistant-root input:focus-visible { outline: 3px solid #f2c773; outline-offset: 3px; }
#baheka-assistant-root .ba-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#baheka-assistant-root .ba-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 999990;
  min-width: 218px; padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  display: flex; align-items: center; gap: 11px;
  background: var(--ba-deep); color: #fff;
  box-shadow: 0 15px 45px rgba(5,23,15,.32); cursor: pointer; text-align: left;
}
#baheka-assistant-root .ba-launcher strong,
#baheka-assistant-root .ba-launcher small { display: block; }
#baheka-assistant-root .ba-launcher strong { font-size: 14px; }
#baheka-assistant-root .ba-launcher small { margin-top: 2px; color: rgba(255,255,255,.67); font-size: 10px; }

#baheka-assistant-root .ba-avatar {
  position: relative; flex: 0 0 auto; width: 50px; height: 50px;
  border: 2px solid var(--ba-gold); border-radius: 50%;
  background-position: 64% center; background-size: cover;
}
#baheka-assistant-root .ba-launcher .ba-avatar { width: 42px; height: 42px; }
#baheka-assistant-root .ba-avatar::after {
  content: ""; position: absolute; right: -1px; bottom: 1px;
  width: 12px; height: 12px; border: 2px solid var(--ba-deep);
  border-radius: 50%; background: #31d593;
}

#baheka-assistant-root .ba-backdrop {
  position: fixed; inset: 0; z-index: 999991; border: 0;
  background: rgba(4,20,14,.78); backdrop-filter: blur(8px); cursor: default;
}
#baheka-assistant-root .ba-widget {
  position: fixed; right: 20px; bottom: 20px; z-index: 999992;
  width: min(410px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 28px));
  overflow: hidden; border: 1px solid rgba(226,169,71,.38); border-radius: 18px;
  display: flex; flex-direction: column; background: var(--ba-paper);
  box-shadow: 0 24px 80px rgba(4,23,14,.38);
}
#baheka-assistant-root .ba-widget.ba-expanded {
  right: 50%; bottom: 50%; width: min(820px, calc(100vw - 40px));
  max-height: min(880px, calc(100vh - 36px)); transform: translate(50%, 50%);
}
#baheka-assistant-root .ba-head {
  padding: 15px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--ba-deep); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
#baheka-assistant-root .ba-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
#baheka-assistant-root .ba-identity strong,
#baheka-assistant-root .ba-identity small { display: block; }
#baheka-assistant-root .ba-identity strong { font: 18px Georgia, serif; white-space: nowrap; }
#baheka-assistant-root .ba-identity small { margin-top: 4px; color: #a8e2c8; font-size: 10px; }
#baheka-assistant-root .ba-status-dot,
#baheka-assistant-root .ba-foot i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #31d593; }
#baheka-assistant-root .ba-actions { display: flex; align-items: center; gap: 7px; }
#baheka-assistant-root .ba-expand,
#baheka-assistant-root .ba-close {
  min-height: 34px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
}
#baheka-assistant-root .ba-expand { padding: 0 11px; border-radius: 999px; font-size: 10px; font-weight: 800; }
#baheka-assistant-root .ba-close { width: 34px; border-radius: 50%; font-size: 23px; }
#baheka-assistant-root .ba-progress { height: 4px; flex: 0 0 auto; background: #e8e0cf; }
#baheka-assistant-root .ba-progress span { display: block; height: 100%; background: var(--ba-gold); transition: width .25s ease; }
#baheka-assistant-root .ba-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#baheka-assistant-root .ba-view { padding: 18px 16px 20px; }
#baheka-assistant-root .ba-message {
  padding: 14px 15px; border: 1px solid #d9d1bf; border-radius: 12px 12px 12px 3px;
  background: #fff; color: #33423a; line-height: 1.48; font-size: 14px;
}
#baheka-assistant-root .ba-message p { margin: 0; }
#baheka-assistant-root .ba-message p + p { margin-top: 7px; }
#baheka-assistant-root .ba-choice-label,
#baheka-assistant-root .ba-eyebrow {
  margin: 17px 0 9px; color: var(--ba-muted); font-size: 10px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
}
#baheka-assistant-root .ba-eyebrow { margin-top: 0; color: #9a6710; }
#baheka-assistant-root .ba-options { display: grid; gap: 8px; }
#baheka-assistant-root .ba-option,
#baheka-assistant-root .ba-how {
  width: 100%; border: 1px solid #ced4ca; border-radius: 10px;
  background: #fff; color: var(--ba-ink); cursor: pointer; text-align: left;
}
#baheka-assistant-root .ba-option {
  min-height: 54px; padding: 9px 13px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
#baheka-assistant-root .ba-option:hover { border-color: var(--ba-leaf); background: #f1f6ee; }
#baheka-assistant-root .ba-option strong,
#baheka-assistant-root .ba-option small { display: block; }
#baheka-assistant-root .ba-option strong { font-size: 14px; }
#baheka-assistant-root .ba-option small { margin-top: 3px; color: var(--ba-muted); font-size: 11px; }
#baheka-assistant-root .ba-arrow { color: var(--ba-leaf); font-size: 18px; }
#baheka-assistant-root .ba-how { min-height: 44px; margin-top: 9px; padding: 0 13px; color: var(--ba-forest); font-weight: 700; }
#baheka-assistant-root .ba-full-link,
#baheka-assistant-root .ba-back,
#baheka-assistant-root .ba-restart {
  width: 100%; margin-top: 13px; padding: 3px; border: 0; background: transparent;
  color: var(--ba-forest); text-decoration: underline; font-size: 11px; font-weight: 800; cursor: pointer;
}
#baheka-assistant-root .ba-view h2 { margin: 0; color: var(--ba-deep); font: 30px/1.08 Georgia, serif; letter-spacing: -.02em; }
#baheka-assistant-root .ba-help { margin: 10px 0 16px; color: var(--ba-muted); font-size: 13px; line-height: 1.5; }
#baheka-assistant-root .ba-input { width: 100%; min-height: 52px; padding: 0 13px; border: 1px solid #9da99f; border-radius: 7px; background: #fff; color: var(--ba-ink); }
#baheka-assistant-root .ba-primary {
  width: 100%; min-height: 50px; margin-top: 9px; padding: 0 18px; border: 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--ba-gold); color: #16251c; font-weight: 900; text-decoration: none; cursor: pointer;
}
#baheka-assistant-root .ba-primary:hover { background: #f0bc62; }
#baheka-assistant-root .ba-result-icon { width: 42px; height: 42px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: #dcebd7; color: var(--ba-forest); font-weight: 900; }
#baheka-assistant-root .ba-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--ba-line); border-radius: 8px; background: var(--ba-line); }
#baheka-assistant-root .ba-summary div { padding: 11px; background: #fff; }
#baheka-assistant-root .ba-summary small,
#baheka-assistant-root .ba-summary strong { display: block; }
#baheka-assistant-root .ba-summary small { margin-bottom: 4px; color: var(--ba-muted); font-size: 10px; }
#baheka-assistant-root .ba-summary strong { font-size: 12px; text-transform: capitalize; }
#baheka-assistant-root .ba-staging { padding: 9px 11px; border-left: 3px solid var(--ba-gold); background: #f8eed7; color: #60491d; font-size: 11px; }
#baheka-assistant-root .ba-secondary { margin-top: 11px; display: block; color: var(--ba-forest); text-align: center; font-size: 12px; font-weight: 800; }
#baheka-assistant-root .ba-foot { flex: 0 0 auto; padding: 10px 15px; border-top: 1px solid #ded7c9; display: flex; align-items: center; color: #778078; font-size: 9px; background: #f6f2e9; }
#baheka-assistant-root .ba-foot span { margin-left: auto; }

#baheka-assistant-root .ba-expanded .ba-head { padding: 19px 24px; }
#baheka-assistant-root .ba-expanded .ba-avatar { width: 58px; height: 58px; }
#baheka-assistant-root .ba-expanded .ba-identity strong { font-size: 22px; }
#baheka-assistant-root .ba-expanded .ba-view { padding: clamp(28px, 5vw, 50px); }
#baheka-assistant-root .ba-expanded .ba-message { padding: 20px 22px; font-size: 16px; }
#baheka-assistant-root .ba-expanded .ba-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
#baheka-assistant-root .ba-expanded .ba-view h2 { font-size: clamp(38px, 5vw, 52px); }
#baheka-assistant-root .ba-expanded .ba-help { font-size: 15px; }
#baheka-assistant-root .ba-expanded .ba-option { min-height: 75px; }

@media (max-width: 760px) {
  #baheka-assistant-root .ba-launcher { right: 12px; bottom: 12px; }
  #baheka-assistant-root .ba-widget,
  #baheka-assistant-root .ba-widget.ba-expanded {
    right: 7px; bottom: 7px; width: calc(100vw - 14px); max-height: calc(100dvh - 14px);
    border-radius: 15px; transform: none;
  }
  #baheka-assistant-root .ba-expanded .ba-options { grid-template-columns: 1fr; }
  #baheka-assistant-root .ba-expanded .ba-view { padding: 18px 16px 20px; }
  #baheka-assistant-root .ba-expand { padding: 0 9px; }
  #baheka-assistant-root .ba-identity strong { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #baheka-assistant-root * { transition: none !important; }
}

