/* Bobby v36: one quiet conversation, with identity and privacy on demand. */
.bobby { padding-block: clamp(56px, 7vw, 92px); background: radial-gradient(ellipse at 50% 0, #25374688, transparent 65%), #0c1929; }
.bobby-shell { max-width: 1200px; }
.bobby-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid #b3c7d21f; }
.bobby-signature { margin: 0; gap: 18px; }
.bobby-signature .bobby-orbit { width: 38px; height: 38px; }
.bobby-signature .bobby-orbit:before { inset: 7px -3px; }
.bobby-signature .bobby-orbit:after { inset: -3px 8px; }
#bobby-title { margin: 0; font: 500 25px/1 'Space Grotesk', sans-serif; letter-spacing: .19em; color: #f1e5d6; }
.bobby-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border: 0; padding: 8px 0; background: none; color: #b5c2cc; cursor: pointer; font: 400 12px/1.5 'DM Sans', sans-serif; text-align: left; text-underline-offset: 5px; }
.bobby-text-button:hover { color: #f1c7a7; text-decoration: underline; }
.bobby-info-symbol { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #c1ccd780; border-radius: 50%; font: italic 12px Georgia, serif; }
.bobby-chat { max-width: 800px; margin: 0 auto; padding: 0; border: 0; background: none; box-shadow: none; }
.bobby-welcome { text-align: center; padding: clamp(56px, 6.8vw, 90px) 0 42px; }
.bobby-welcome h3 { margin: 0; font: 500 clamp(34px, 4.2vw, 57px)/1.14 Syne, sans-serif; letter-spacing: -.055em; color: #f5eade; }
.bobby-welcome h3 i { font: italic 1.08em/1 Georgia, serif; color: #e8b38f; }
.bobby-welcome p { margin: 23px 0 0; color: #b1c0cd; font-size: 15px; line-height: 1.7; }
.bobby-log { margin: 38px 0 24px; height: auto; min-height: 180px; max-height: min(48svh, 440px); overflow-y: auto; overscroll-behavior-y: auto; touch-action: pan-y pinch-zoom; border: 0; padding: 8px 16px 12px 0; gap: 30px; scrollbar-width: thin; scrollbar-color: #67809555 transparent; }
.bobby [hidden],.bobby-log[hidden],.bobby-welcome[hidden],.bobby-status[hidden],.bobby-clear[hidden],.bobby-count[hidden],.bobby-dialog [hidden] { display: none; }
.bobby-message { font-size: 15px; line-height: 1.8; }
.bobby-message-label { font-size: 9px; margin-bottom: 7px; color: #e3b393; }
.bobby-message-user { margin-left: 9%; padding: 0 0 0 16px; border-left-color: #94aab933; color: #c2d1db; }
.bobby-message-assistant { color: #f0e7dc; padding-right: 5%; }
.bobby-message p { white-space: pre-wrap; }
.bobby-message a { color: #edbf9f; }
.bobby-status { margin: 12px 2px; min-height: 0; font-size: 12px; color: #b2c1cb; }
.bobby-status[data-state="thinking"]::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 9px 2px 0; border-radius: 50%; background: #edb38a; animation: bobby-think 1.2s ease-in-out infinite alternate; }
@keyframes bobby-think { to { opacity: .25; } }
.bobby-composer { display: flex; align-items: flex-end; gap: 15px; padding: 17px 18px 17px 24px; border: 1px solid #a4b9ca52; border-radius: 24px; background: linear-gradient(135deg,#21324888,#13253b99); box-shadow: 0 14px 35px -25px #0008; transition: border-color 180ms ease, background-color 180ms ease; }
.bobby-composer:focus-within { border-color: #e9b58fbb; background-color: #20334966; }
.bobby-composer { flex-wrap: wrap; }
.bobby-composer #bobby-message { flex: 1 1 0; min-width: 0; width: auto; }
.bobby-suggestions { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; padding-bottom: 3px; }
.bobby-suggestions button { min-height: 44px; padding: 8px 9px; border: 1px solid #b4c4d12e; border-radius: 12px; background: #a7bed208; color: #c4d0d9; font: 400 11px/1.5 'DM Sans',sans-serif; text-align: left; cursor: pointer; transition: border-color 160ms ease,background-color 160ms ease; }
.bobby-suggestions button:hover:not(:disabled) { border-color: #e9b58f88; background: #e9b58f0c; color: #f1d0b8; }
.bobby-suggestions button:focus-visible { outline: 2px solid #f2b183; outline-offset: 3px; }
.bobby-suggestions button:disabled { opacity: .5; cursor: default; }
@media (max-width: 760px) { .bobby-suggestions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.bobby-suggestions button { font-size: 11px; padding: 9px 10px; } }
@media (prefers-reduced-motion: reduce) { .bobby-suggestions button { transition: none; } }
#bobby-message { resize: none; min-height: 52px; max-height: 160px; height: 52px; padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: #f5eadd; font: 400 16px/1.6 'DM Sans',sans-serif; outline: none; scroll-margin-block: 20px; scrollbar-width: thin; overscroll-behavior-y: auto; touch-action: pan-y pinch-zoom; }
#bobby-message::placeholder { color: #aabcc9; opacity: 1; }
#bobby-message[readonly] { cursor: text; }
.bobby-send { width: 46px; height: 46px; min-height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 50%; padding: 0; background: #e9b693; border: 1px solid #e9b693; color: #12253a; font: 400 25px/1 sans-serif; cursor: pointer; }
.bobby-send:disabled { background: #adbec511; border-color: #adbec530; color: #a2b5c1; opacity: .65; cursor: default; }
.bobby-send:hover:not(:disabled) { background: #f8ccad; }
.bobby-chat-footer { display: flex; align-items: center; gap: 20px; margin-top: 8px; padding-inline: 4px; min-height: 44px; }
.bobby-chat-footer .bobby-text-button { font-size: 11px; }
.bobby-count { color: #a3b3c0; font: 10px/1.5 'Space Grotesk',sans-serif; margin-left: auto; }
.bobby-clear { margin-left: auto; border: 0; padding: 8px 0; }
.bobby-count:not([hidden]) + .bobby-clear:not([hidden]) { margin-left: 0; }
.bobby.has-conversation .bobby-heading { border-bottom-color: #b3c7d21f; }
.bobby-dialog { color: #eee6db; background: radial-gradient(ellipse at 0 0,#253b4c88,transparent 70%),#111f30; border: 1px solid #aec2d345; border-radius: 24px; padding: 36px; width: min(510px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; margin: auto; box-shadow: 0 25px 100px #0007; font-family: 'DM Sans',sans-serif; }
.bobby-dialog:not([open]) { display: none; }
.bobby-dialog::backdrop { background: #040d18aa; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bobby-dialog[data-panel="privacy"] { width: min(600px,calc(100vw - 32px)); }
.bobby-dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: #c3cfd7; font: 300 29px/1 sans-serif; cursor: pointer; border-radius: 50%; }
.bobby-dialog h3 { font: 500 28px/1.18 Syne,sans-serif; letter-spacing: -.045em; margin: 0 20px 22px 0; outline: none; }
.bobby-dialog p { font-size: 14px; line-height: 1.75; color: #c0cdd5; margin: 0 0 16px; }
.bobby-dialog .bobby-dialog-eyebrow { font: 500 9px/1.5 'Space Grotesk',sans-serif; letter-spacing: .18em; color: #deaf8d; margin-bottom: 19px; }
.bobby-dialog a { color: #e6b797; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.bobby-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bobby-primary-button,.bobby-secondary-button { border-radius: 999px; min-height: 46px; padding: 11px 19px; font: 500 12px/1.5 'DM Sans',sans-serif; cursor: pointer; }
.bobby-primary-button { color: #102237; background: #ebbb98; border: 1px solid #ebbb98; }
.bobby-secondary-button { background: none; color: #cbd6de; border: 1px solid #abc1d04d; }
.bobby-data-link { color: #e6b797; text-decoration: underline; font-size: 12px; }
.bobby-dialog button:focus-visible,.bobby-dialog a:focus-visible,.bobby-dialog summary:focus-visible { outline: 2px solid #f2b183; outline-offset: 4px; }
.bobby-dialog-close:hover { background: #ffffff0c; }
.bobby-data-details { margin: 20px 0; padding-block: 16px; border-block: 1px solid #aec2d326; }
.bobby-data-details summary { cursor: pointer; font-size: 13px; color: #e9d9c8; padding: 5px 0; }
.bobby-data-details[open] summary { margin-bottom: 16px; }
.bobby-data-details p,.bobby-data-details a,.bobby-dialog .bobby-privacy-contact { font-size: 12px; }
.bobby-data-details a { display: inline-block; margin-bottom: 16px; }
.bobby-preferences { padding-top: 14px; border-top: 1px solid #aec2d326; }
.bobby-analytics-choice { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0; padding: 5px 0; min-height: 44px; border: 0; background: none; color: #d2dce3; font: 400 12px/1.6 'DM Sans',sans-serif; text-align: left; cursor: pointer; }
.bobby-switch-track { width: 32px; height: 19px; border: 1px solid #a7bdcd66; background: #203347; border-radius: 20px; flex: none; position: relative; }
.bobby-switch-track::before { content: ''; width: 11px; height: 11px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #93a5b3; }
.bobby-analytics-choice[aria-checked="true"] .bobby-switch-track { background: #deb28e; border-color: #deb28e; }
.bobby-analytics-choice[aria-checked="true"] .bobby-switch-track::before { left: 16px; background: #13263b; }
.bobby-preferences p { font-size: 11px; line-height: 1.6; padding-left: 44px; }
.bobby-dialog .bobby-preference-status { color: #b7c7d2; font-size: 11px; margin: 15px 0 0; }
.bobby-preference-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.bobby-preference-actions .bobby-text-button { font-size: 11px; }
@media (max-width: 760px) {
  .bobby { padding-block: 48px 56px; }
  .bobby-heading { gap: 12px; padding-bottom: 22px; }
  #bobby-title { font-size: 21px; letter-spacing: .12em; }
  .bobby-signature { gap: 12px; }
  .bobby-signature .bobby-orbit { width: 30px; height: 30px; }
  .bobby-about { font-size: 11px; gap: 7px; }
  .bobby-chat { padding: 0; }
  .bobby-welcome { padding: 55px 0 32px; }
  .bobby-welcome h3 { font-size: clamp(31px,7vw,44px); }
  .bobby-welcome p { font-size: 13px; margin-top: 20px; }
  .bobby-composer { padding: 12px 12px 12px 17px; border-radius: 20px; gap: 10px; }
  .bobby-log { max-height: min(46svh, var(--bobby-log-height, 390px)); margin-top: 26px; min-height: 100px; padding-right: 8px; }
  .bobby-message { font-size: 14px; }
  .bobby-message-user { margin-left: 4%; }
  .bobby-chat-footer { gap: 12px; }
  .bobby-dialog { padding: 30px 24px; border-radius: 20px; max-height: calc(100dvh - 24px); }
  .bobby-dialog h3 { font-size: 25px; }
  .bobby-dialog p { font-size: 13px; }
  .bobby-dialog .bobby-data-details p,.bobby-dialog .bobby-privacy-contact { font-size: 12px; }
  .bobby-dialog .bobby-preference-status,.bobby-preferences p { font-size: 11px; }
}
@media (max-width: 360px) { .bobby-info-symbol { display: none; }.bobby-welcome h3 { font-size: 29px; }.bobby-dialog-actions { flex-direction: column-reverse; }.bobby-dialog-actions button { width: 100%; }.bobby-chat-footer { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .bobby-composer { transition: none; }.bobby-status[data-state="thinking"]::before { animation: none; } }
