.guide-dock { position: fixed; z-index: 8; right: max(24px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
.guide-launcher { display: flex; align-items: center; gap: 6px; padding: 2px 13px 2px 5px; min-height: 60px; border: 1px solid var(--chat-line); border-radius: 32px; color: var(--chat-launcher-ink); background: var(--chat-panel); box-shadow: var(--shadow-launcher); cursor: pointer; font-size: 13px; font-weight: 500; transition: box-shadow 160ms, transform 160ms; }
.guide-launcher:hover { box-shadow: var(--shadow-launcher-hover); transform: translateY(-2px); }
.guide-launcher img { width: 54px; height: 54px; }
.guide-minimize, .guide-restore { display: none; border: 1px solid var(--chat-line); background: var(--chat-panel); color: var(--muted); cursor: pointer; }
.guide-minimize:hover, .guide-restore:hover { color: var(--ink); background: var(--chat-hover); }
.guide-minimize svg, .guide-restore svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guide-dialog { position: fixed; inset: auto 24px 24px auto; padding: 0; margin: 0; width: 394px; max-width: calc(100vw - 32px); height: min(628px, calc(100dvh - 48px)); max-height: calc(100dvh - 32px); border: 1px solid var(--chat-line); border-radius: 22px; background: var(--chat-panel); color: var(--ink); box-shadow: var(--shadow-dialog); font-family: var(--sans); overflow: hidden; }
.guide-dialog::backdrop { background: var(--chat-backdrop); }
.guide-dialog[open] { display: flex; flex-direction: column; }
.guide-header { display: flex; align-items: center; gap: 9px; padding: 13px 14px; border-bottom: 1px solid var(--chat-divider); flex-shrink: 0; }
.guide-header > img { width: 44px; height: 44px; }
.guide-heading { flex: 1; min-width: 0; }
.guide-heading h2 { font-size: 16px; line-height: 1.4; letter-spacing: -.2px; font-weight: 600; }
.guide-heading p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; }
.guide-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 36px; flex-shrink: 0; padding: 7px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.guide-icon:hover { background: var(--chat-hover); color: var(--ink); }
.guide-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guide-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 16px; scroll-behavior: smooth; }
.guide-intro { padding: 4px 0 22px; }
.guide-intro > img { width: 76px; height: 76px; display: block; margin-bottom: 10px; }
.guide-intro h3 { font-size: 22px; line-height: 1.3; font-weight: 550; letter-spacing: -.6px; margin: 0 0 9px; text-wrap: auto; }
.guide-intro p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.guide-suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.guide-suggestions button { border: 1px solid var(--chat-line); border-radius: 12px; padding: 8px 11px; background: var(--chat-panel); color: var(--chat-secondary); font-size: 12px; line-height: 1.5; cursor: pointer; }
.guide-suggestions button:hover { background: var(--chat-suggestion-hover); border-color: var(--chat-suggestion-outline); }
.guide-messages { display: flex; flex-direction: column; gap: 18px; }
.guide-message { max-width: 100%; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.guide-message > p { white-space: pre-wrap; text-wrap: auto; }
.guide-message.user { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--chat-bubble); color: var(--chat-bubble-ink); }
.guide-message.assistant { padding: 0 1px; }
.guide-speaker { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-bottom: 5px; }
.guide-sources { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; }
.guide-sources a { color: var(--accent); font-size: 12px; text-decoration: none; }
.guide-sources a:hover { text-decoration: underline; }
.guide-mode { display: block; color: var(--muted); font-size: 11px; margin-top: 9px; }
.guide-answer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.guide-copy { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.guide-copy:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.guide-copy-feedback { color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-status { min-height: 0; font-size: 12px; color: var(--muted); margin-top: 12px; }
.guide-status:empty { display: none; }
.guide-new-answer { align-self: center; flex-shrink: 0; min-height: 36px; padding: 7px 14px; margin: 0 0 8px; border: 1px solid var(--chat-line); border-radius: 18px; background: var(--chat-panel); color: var(--accent); font-size: 12px; line-height: 1.5; cursor: pointer; }
.guide-new-answer:hover { background: var(--chat-hover); }
.guide-composer { flex-shrink: 0; padding: 10px 16px 14px; background: var(--chat-panel); border-top: 1px solid var(--chat-divider); }
.guide-input-wrap { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--chat-input-border); border-radius: 14px; padding: 7px 7px 7px 12px; }
.guide-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-glow); }
.guide-input { flex: 1; min-width: 0; resize: none; height: auto; min-height: 44px; max-height: 106px; overflow-y: auto; border: 0; padding: 9px 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 22px; outline: none; }
.guide-input::placeholder { color: var(--chat-placeholder); }
.guide-send { width: 34px; height: 34px; margin-bottom: 4px; color: var(--button-ink); background: var(--button-fill); border-radius: 10px; }
.guide-send:hover { background: var(--button-hover); color: var(--button-ink); }
.guide-send:disabled { background: var(--button-disabled-fill); color: var(--button-disabled-ink); cursor: default; }
.guide-privacy { font-size: 10px; line-height: 1.55; color: var(--muted); margin-top: 9px; text-wrap: auto; }
.guide-privacy a { color: inherit; }
.guide-dialog button:focus-visible, .guide-dialog a:focus-visible { outline-offset: 3px; }
.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; }
html.guide-is-open { overflow: hidden; }
@media (max-width: 600px) {
  .guide-dock { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .guide-launcher { padding: 2px; min-height: 58px; }
  .guide-launcher span { display: none; }
  .guide-minimize { position: absolute; right: -4px; top: -13px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 5px; border-radius: 50%; }
  .guide-dock[data-minimized] { right: 0; }
  .guide-dock[data-minimized] .guide-launcher, .guide-dock[data-minimized] .guide-minimize { display: none; }
  .guide-dock[data-minimized] .guide-restore { display: flex; align-items: center; justify-content: center; width: 24px; height: 48px; padding: 3px; border-right: 0; border-radius: 12px 0 0 12px; }
  .guide-dialog { inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; width: auto; max-width: none; height: min(628px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .guide-dialog:not(.has-conversation) { height: auto; }
  .guide-input { font-size: 16px; }
  .guide-header { gap: 5px; padding: 10px 11px; }
  .guide-heading p { font-size: 10px; }
  .guide-scroll { padding: 18px 16px 14px; }
  .guide-composer { padding: 10px 12px 12px; }
}
@media (max-width: 1250px) { body:has(.guide-dock:not([hidden])) .site-footer { padding-bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .guide-launcher { transition: none; } .guide-scroll { scroll-behavior: auto; } }
@media print { .guide-dock, .guide-dialog { display: none !important; } }
