/* A discoverable, on-demand product guide. It never opens itself. */
#ai-guide { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 100; font-family: Inter, system-ui, sans-serif; color: var(--ink); }
#ai-guide [hidden] { display: none !important; }
#ai-guide button, #ai-guide input { font: inherit; }
#ai-guide button { cursor: pointer; }
#ai-guide button:focus-visible, #ai-guide a:focus-visible { outline: 2px solid #66856e; outline-offset: 4px; }
.guide-launcher { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; width: fit-content; padding: 13px 18px; margin-left: auto; border: 1px solid #304d3f; border-radius: 999px; background: var(--forest); color: #fff; box-shadow: 0 5px 20px #172b2326; font-size: 14px !important; font-weight: 600 !important; line-height: 1.4; white-space: nowrap; transition: background .18s, box-shadow .18s; }
.guide-launcher:hover, .guide-launcher[aria-expanded="true"] { background: #162e24; box-shadow: 0 6px 24px #172b2333; }
.guide-launcher-mark { display: grid; place-items: center; flex: none; }
.guide-launcher-mark svg { width: 24px; height: 24px; }
.guide-launcher-chat { flex: none; opacity: .85; margin-left: 3px; }
.guide-panel { display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 48px); max-height: min(680px, calc(100dvh - 108px - env(safe-area-inset-bottom))); margin-bottom: 14px; overflow: hidden; background: #fff; border: 1px solid #dce1dd; border-radius: 15px; box-shadow: 0 16px 55px -10px #20342a33, 0 2px 8px #20342a0a; }
.guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 20px 20px; border-bottom: 1px solid #e8ebe8; flex: none; }
.guide-header h2 { font: 600 18px/1.3 Inter, system-ui, sans-serif; letter-spacing: -.025em; margin: 0; color: var(--ink); }
.guide-close { display: grid; place-items: center; border: 0; background: transparent; width: 40px; height: 40px; flex: none; border-radius: 8px; color: #65716a; padding: 0; margin: -7px -8px 0 0; }
.guide-close:hover { background: #f1f3f1; }
.guide-messages { display: flex; flex-direction: column; flex: 1 1 auto; gap: 16px; min-height: 0; max-height: 350px; overflow-y: auto; padding: 22px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd2cd transparent; }
.guide-message { font-size: 14px; line-height: 1.65; max-width: 95%; padding: 13px 15px; white-space: pre-wrap; overflow-wrap: anywhere; flex: none; }
.guide-message-assistant { align-self: flex-start; background: #f2f3f2; color: var(--ink); border-radius: 3px 12px 12px 12px; }
.guide-message-user { align-self: flex-end; background: #e6eae7; color: #26342c; border-radius: 12px 3px 12px 12px; }
.guide-thinking { color: #69736d; font-size: 14px; }
.guide-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; flex: none; }
.guide-suggestions button { background: #fff; border: 1px solid #d9dfda; border-radius: 8px; padding: 9px 12px; color: var(--forest); font-size: 14px !important; line-height: 1.4; text-align: left; }
.guide-suggestions button:hover { background: #f2f5f1; border-color: #abbcad; }
.guide-suggestions button:disabled { opacity: .5; cursor: wait; }
.guide-form { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 7px 7px 7px 13px; border: 1px solid #cbd4cd; border-radius: 9px; background: #fff; flex: none; }
.guide-form:focus-within { border-color: #66846a; box-shadow: 0 0 0 3px #233d3210; }
.guide-form input { border: 0; background: transparent; outline: 0; font-size: 16px !important; line-height: 1.5; flex: 1; min-width: 0; color: var(--ink); padding: 5px 0; }
.guide-form input::placeholder { color: #737c76; font-size: 14px; }
.guide-form button { border: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; flex: none; background: var(--forest); color: #fff; padding: 0; }
.guide-form button:hover { background: #162e24; }
.guide-form button:disabled { opacity: .5; cursor: wait; }
.guide-footnote { font-size: 14px; text-align: center; color: var(--forest); line-height: 1.5; margin: 16px 16px 19px; flex: none; }
.guide-footnote a { color: inherit; text-decoration: none; }
.guide-footnote a:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide-footnote span { margin-left: 4px; }
.guide-demo-link { display: inline-flex; align-self: flex-start; border: 1px solid #becbbf; border-radius: 7px; padding: 10px 13px; font-size: 14px; font-weight: 500; color: var(--forest); text-decoration: none; background: #f3f6f1; }
.guide-highlight { outline: 2px solid #90ab86; outline-offset: -2px; transition: outline-color .3s; }
.guide-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  #ai-guide { left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .guide-panel { width: min(100%,380px); max-width: none; max-height: calc(100dvh - 94px - env(safe-area-inset-bottom)); margin-left: auto; margin-bottom: 12px; }
  .guide-header { padding: 20px 18px 18px; }
  .guide-messages { max-height: 320px; padding: 20px 18px; }
  .guide-suggestions { padding-inline: 18px; }
  .guide-launcher { min-height: 50px; padding: 12px 16px; }
}
@media (max-height: 640px) {
  .guide-header { padding-block: 14px; }
  .guide-messages { padding-block: 12px; }
  .guide-suggestions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
  .guide-suggestions button { flex: none; }
  .guide-footnote { margin-block: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-launcher, .guide-highlight { transition: none; }
}
