@import url("./wise-owl-character.css");

#how-owl-guide { --owl-navy: #13283f; --owl-blue: #1f3a5f; --owl-gold: #c9a55a; --owl-ink: #242923; --owl-muted: #5d625c; --owl-paper: #fbf9f4; --owl-line: #e2ded3; font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 15px; line-height: 1.55; color: var(--owl-ink); }
#how-owl-guide *, #how-owl-guide *::before, #how-owl-guide *::after { box-sizing: border-box; }
#how-owl-guide button, #how-owl-guide input { font: inherit; }
#how-owl-guide button { cursor: pointer; }
#how-owl-guide button:focus-visible, #how-owl-guide a:focus-visible { outline: 3px solid #aa7731; outline-offset: 3px; }
#how-owl-guide .owl-launcher { position: fixed; z-index: 2000; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; min-height: 60px; border: 1px solid #d2b67a; border-radius: 999px; padding: 10px 22px 10px 13px; background: var(--owl-navy); color: #fff; box-shadow: 0 6px 28px #13283f30; font-weight: 600; transition: transform 160ms ease, box-shadow 160ms ease; }
#how-owl-guide .owl-launcher:hover { transform: translateY(-2px); box-shadow: 0 8px 30px #13283f40; }
#how-owl-guide .owl-launcher img { width: 32px; height: 32px; object-fit: contain; }
#how-owl-guide .owl-launcher small { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 500; color: #e1c991; text-transform: uppercase; line-height: 1.2; margin-top: 3px; }
#how-owl-guide .owl-dialog { position: fixed; inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto; width: 410px; height: min(690px, calc(100dvh - 48px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); margin: 0; padding: 0; border: 1px solid #d1c9b9; border-radius: 20px; background: var(--owl-paper); color: var(--owl-ink); box-shadow: 0 20px 90px #13283f35; overflow: hidden; }
#how-owl-guide .owl-dialog[open] { display: flex; flex-direction: column; }
#how-owl-guide .owl-dialog::backdrop { background: #13283f22; }
#how-owl-guide .owl-header { flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 14px 18px 22px; background: var(--owl-navy); color: #fff; border-bottom: 3px solid var(--owl-gold); }
#how-owl-guide .owl-avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 43px; height: 43px; padding: 7px; border-radius: 50%; background: #ffffff0c; border: 1px solid #c9a55a66; }
#how-owl-guide .owl-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
#how-owl-guide .owl-header-copy { flex: 1; min-width: 0; }
#how-owl-guide .owl-header h2 { margin: 0; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.2; }
#how-owl-guide .owl-header p { margin: 4px 0 0; color: #e1c991; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
#how-owl-guide .owl-icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 0; border-radius: 9px; background: transparent; color: inherit; }
#how-owl-guide .owl-icon-button:hover { background: #ffffff17; }
#how-owl-guide .owl-icon-button svg { width: 21px; height: 21px; }
#how-owl-guide .owl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 20px; border-bottom: 1px solid var(--owl-line); background: #fffdf9; }
#how-owl-guide .owl-text-button { min-height: 38px; padding: 6px 0; border: 0; background: transparent; color: var(--owl-blue); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#how-owl-guide .owl-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding: 23px 20px; scrollbar-width: thin; }
#how-owl-guide .owl-welcome h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 10px; color: var(--owl-navy); font-weight: 600; }
#how-owl-guide .owl-welcome p { margin: 0 0 18px; color: var(--owl-muted); font-size: 14px; }
#how-owl-guide .owl-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #7b622d; text-transform: uppercase; margin: 22px 0 10px; }
#how-owl-guide .owl-starters, #how-owl-guide .owl-choice-list { display: grid; gap: 8px; }
#how-owl-guide .owl-question { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 10px; min-height: 46px; border: 1px solid #dbd7ca; border-radius: 10px; background: #fff; color: var(--owl-blue); padding: 11px 13px; font-size: 13px; line-height: 1.45; font-weight: 500; }
#how-owl-guide .owl-question::after { content: '↗'; color: #937134; flex: none; }
#how-owl-guide .owl-question:hover { border-color: #a98746; background: #fffdf7; }
#how-owl-guide .owl-log { display: flex; flex-direction: column; gap: 18px; }
#how-owl-guide .owl-message { overflow-wrap: anywhere; min-width: 0; }
#how-owl-guide .owl-message-user { align-self: flex-end; max-width: 92%; border-radius: 13px 13px 3px 13px; padding: 11px 15px; background: var(--owl-blue); color: #fff; font-size: 14px; }
#how-owl-guide .owl-message-assistant { align-self: stretch; font-size: 14px; }
#how-owl-guide .owl-message-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #796130; font-size: 10px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
#how-owl-guide .owl-message-assistant h3 { font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--owl-navy); margin: 0 0 8px; }
#how-owl-guide .owl-message-assistant p { margin: 0 0 12px; }
#how-owl-guide .owl-source { display: inline-flex; align-items: center; gap: 6px; color: var(--owl-blue); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 5px 0; }
#how-owl-guide .owl-related { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
#how-owl-guide .owl-chip { min-height: 40px; border-radius: 8px; border: 1px solid #d6d2c5; background: #fff; color: var(--owl-blue); padding: 7px 10px; text-align: left; font-size: 12px; line-height: 1.4; }
#how-owl-guide .owl-chip:hover { background: #f2eddf; border-color: #ab8b4c; }
#how-owl-guide .owl-topics { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--owl-line); }
#how-owl-guide .owl-topics h3 { margin: 0 0 12px; font-size: 17px; color: var(--owl-navy); }
#how-owl-guide .owl-topic-group + .owl-topic-group { margin-top: 16px; }
#how-owl-guide .owl-topic-group h4 { font-size: 12px; font-weight: 600; color: var(--owl-muted); margin: 0 0 8px; }
#how-owl-guide .owl-topic-group .owl-related { margin: 0; }
#how-owl-guide .owl-compose { flex: none; padding: 14px 17px max(13px, env(safe-area-inset-bottom)); border-top: 1px solid var(--owl-line); background: #fffdf9; }
#how-owl-guide .owl-input-row { display: flex; align-items: center; gap: 7px; border: 1px solid #c5c0b3; background: #fff; border-radius: 11px; padding: 4px 5px 4px 12px; }
#how-owl-guide .owl-input-row:focus-within { border-color: #987636; box-shadow: 0 0 0 2px #c9a55a66; }
#how-owl-guide .owl-input { min-width: 0; width: 100%; height: 44px; border: 0; padding: 0; color: var(--owl-ink); background: transparent; outline: none; font-size: 16px; }
#how-owl-guide .owl-input::placeholder { color: #73766e; }
#how-owl-guide .owl-send { width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--owl-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
#how-owl-guide .owl-send:disabled { background: #e2e2dc; color: #7b8076; cursor: default; }
#how-owl-guide .owl-send svg { width: 19px; height: 19px; }
#how-owl-guide .owl-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 9px 0 0; font-size: 10.5px; line-height: 1.4; color: var(--owl-muted); text-align: center; }
#how-owl-guide .owl-note a, #how-owl-guide .owl-note button { padding: 0; border: 0; background: transparent; color: var(--owl-blue); font: inherit; text-decoration: none; text-underline-offset: 2px; }
#how-owl-guide .owl-note a:hover, #how-owl-guide .owl-note button:hover { text-decoration: underline; }
#how-owl-guide .owl-note button:disabled { color: var(--owl-muted); cursor: default; text-decoration: none; }
#how-owl-guide .owl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#how-owl-guide [hidden] { display: none !important; }
@media (max-width: 520px) {
  #how-owl-guide .owl-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 55px; padding: 9px 17px 9px 11px; font-size: 14px; }
  #how-owl-guide .owl-launcher img { width: 28px; height: 28px; }
  #how-owl-guide .owl-dialog { inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; width: auto; max-width: none; height: min(700px, calc(100dvh - 16px)); max-height: calc(100dvh - 16px); border-radius: 17px; }
  #how-owl-guide .owl-scroll { padding: 20px 17px; }
  #how-owl-guide .owl-header { padding: 16px 12px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { #how-owl-guide * { scroll-behavior: auto !important; transition: none !important; } }
@media print { #how-owl-guide { display: none !important; } }

/* The actual platform companion, kept separate from the guide's public Q&A. */
#how-owl-guide .owl-launcher { display: block; width: 112px; height: 112px; min-height: 0; padding: 0; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 16px; background: transparent; box-shadow: none; line-height: 0; }
#how-owl-guide .owl-launcher:hover { transform: none; box-shadow: none; }
#how-owl-guide .owl-launcher:focus { outline: none; box-shadow: none; }
#how-owl-guide .owl-launcher-character, #how-owl-guide .owl-launcher-character .character-avatar { display: block; width: 112px; height: 112px; }
#how-owl-guide .owl-launcher-label { position: absolute; right: 101px; top: 32px; width: max-content; padding: 10px 13px; border: 1px solid #d9d6ce; border-radius: 10px 10px 0 10px; background: #fff; color: #1f3a5f; line-height: 1.4; font-size: 12px; font-weight: 600; box-shadow: 0 4px 14px #13283f15; opacity: 0; transform: translateX(4px); transition: opacity 180ms, transform 180ms; pointer-events: none; }
#how-owl-guide .owl-launcher:hover .owl-launcher-label, #how-owl-guide .owl-launcher:focus-visible .owl-launcher-label { opacity: 1; transform: none; }
#how-owl-guide .owl-launcher[aria-expanded="true"] .owl-launcher-label, #how-owl-guide .owl-launcher[data-tooltip-dismissed="true"] .owl-launcher-label { opacity: 0; }
#how-owl-guide .owl-dialog { bottom: max(142px, calc(env(safe-area-inset-bottom) + 130px)); width: 480px; height: min(650px, calc(100dvh - 166px)); max-height: calc(100dvh - 166px); border-radius: 22px; overflow: visible; }
#how-owl-guide .owl-dialog[open] { animation: public-owl-panel 240ms ease-out; transform-origin: bottom right; }
#how-owl-guide .owl-dialog::backdrop { background: transparent; }
#how-owl-guide .owl-dialog::after { content: ''; position: absolute; width: 22px; height: 22px; left: var(--owl-tail-x, calc(100% - 56px)); bottom: -11px; transform: translateX(-50%) rotate(45deg); background: var(--owl-tail-color, #fffdf9); border-right: 1px solid #d1c9b9; border-bottom: 1px solid #d1c9b9; pointer-events: none; }
#how-owl-guide .owl-dialog[data-owl-side="below"]::after { top: -11px; bottom: auto; transform: translateX(-50%) rotate(225deg); }
#how-owl-guide .owl-dialog[data-owl-side="left"]::after { left: auto; right: -11px; top: var(--owl-tail-y, 50%); bottom: auto; transform: translateY(-50%) rotate(-45deg); }
#how-owl-guide .owl-dialog[data-owl-side="right"]::after { left: -11px; top: var(--owl-tail-y, 50%); bottom: auto; transform: translateY(-50%) rotate(135deg); }
#how-owl-guide .owl-dialog[data-owl-side="none"]::after { display: none; }
#how-owl-guide .owl-header { gap: 8px; padding: 12px 12px 12px 14px; background: #fff; color: var(--owl-navy); border-bottom: 1px solid var(--owl-line); border-radius: 21px 21px 0 0; }
#how-owl-guide .owl-compose { border-radius: 0 0 21px 21px; }
#how-owl-guide .owl-header h2 { color: var(--owl-navy); font-size: 18px; line-height: 1.3; }
#how-owl-guide .owl-header p { margin-top: 5px; color: #617087; font-size: 12px; letter-spacing: 0; text-transform: none; }
#how-owl-guide .owl-avatar { width: 58px; height: 64px; padding: 0; border: 0; background: transparent; border-radius: 0; }
#how-owl-guide .owl-avatar .character-avatar { width: 64px; height: 64px; }
#how-owl-guide .owl-icon-button:hover { background: #f0f2f4; }
#how-owl-guide .owl-window-controls { display: inline-flex; align-items: center; align-self: flex-start; flex: none; padding: 4px; border: 1px solid #e9edf2; border-radius: 999px; background: #ffffffcc; color: #617087; box-shadow: 0 1px 3px #13283f1a; backdrop-filter: blur(12px); }
#how-owl-guide .owl-window-controls .owl-icon-button { width: 28px; height: 28px; padding: 0; border-radius: 50%; transition: background-color 160ms, color 160ms; }
#how-owl-guide .owl-window-controls .owl-icon-button svg { width: 16px; height: 16px; }
#how-owl-guide .owl-window-controls .owl-icon-button:hover, #how-owl-guide .owl-window-controls .owl-icon-button:focus-visible { color: var(--owl-navy); background: #f0f2f4; }
#how-owl-guide .owl-window-controls .owl-icon-button:focus { outline: none; box-shadow: none; }
#how-owl-guide .owl-welcome h3 { font-size: 23px; }
#how-owl-guide .owl-text-button:disabled { color: #74776f; cursor: default; text-decoration: none; }
@keyframes public-owl-panel { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  #how-owl-guide .owl-launcher, #how-owl-guide .owl-launcher-character, #how-owl-guide .owl-launcher-character .character-avatar { width: 96px; height: 96px; }
  #how-owl-guide .owl-launcher { right: 10px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 0; min-height: 0; }
  #how-owl-guide .owl-launcher-label { right: 87px; top: 25px; }
  #how-owl-guide .owl-dialog { width: auto; bottom: max(116px, calc(env(safe-area-inset-bottom) + 104px)); height: min(650px, calc(100dvh - 132px)); max-height: calc(100dvh - 132px); }
  #how-owl-guide .owl-header { padding: 10px 9px; gap: 5px; }
  #how-owl-guide .owl-header h2 { font-size: 16px; }
  #how-owl-guide .owl-header p { font-size: 11px; }
  #how-owl-guide .owl-avatar { width: 49px; height: 58px; }
  #how-owl-guide .owl-avatar .character-avatar { width: 58px; height: 58px; }
  #how-owl-guide .owl-toolbar { padding: 6px 15px; }
  #how-owl-guide .owl-text-button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { #how-owl-guide .owl-dialog[open] { animation: none; } }

/* Draggable companion and toolbar perch. The popup remains non-modal. */
#how-owl-guide .owl-dialog { z-index: 2100; }
#how-owl-guide .owl-launcher { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#how-owl-guide .owl-launcher[data-dragging="true"] { cursor: grabbing; z-index: 2200; }
#how-owl-guide .owl-launcher[data-travelling="true"] { z-index: 2200; pointer-events: none; }
#how-owl-guide .owl-launcher[data-dragging="true"] .owl-launcher-label, #how-owl-guide .owl-launcher[data-travelling="true"] .owl-launcher-label { opacity: 0; }
#how-owl-guide .owl-launcher .owl-launcher-character, #how-owl-guide .owl-launcher .character-greeting, #how-owl-guide .owl-launcher .character-avatar { width: 100%; height: 100%; }
[data-owl-toolbar-row] { position: relative; }
button[data-public-owl-restore] { position: absolute; display: inline-flex; width: 44px; height: 44px; padding: 3px; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 9px; cursor: pointer; color: #1f3a5f; }
button[data-public-owl-restore][hidden] { display: none !important; }
button[data-public-owl-restore]:hover, button[data-public-owl-restore]:focus-visible { background: transparent; }
button[data-public-owl-restore]:focus { outline: none; box-shadow: none; }
button[data-public-owl-restore] .character-greeting, button[data-public-owl-restore] .character-avatar { width: 38px; height: 38px; }
button[data-public-owl-restore] .character-avatar { animation: none !important; }
button[data-public-owl-restore] .owl-perch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
button[data-public-owl-restore][data-arriving="true"] > * { opacity: 0; }
button[data-public-owl-restore][data-fallback="true"] { position: fixed; right: 14px; top: 10px; z-index: 2001; background: #fffdf9; box-shadow: 0 2px 12px #13283f20; }
