/* Ask Onsite: floating button, side panel / bottom sheet, /ask/ page and project-page box.
   Colors follow the theme's light and dark modes; brand blue is #5371FF. */

:root {
    --aoo-blue: #5371FF;
    --aoo-blue-dark: #3f5ce6;
    --aoo-bg: var(--bg-color, #fff);
    --aoo-bg2: var(--bg-color-secondary, #f3f2f2);
    --aoo-text: var(--text-primary, #15171a);
    --aoo-muted: var(--text-secondary, rgba(0, 0, 0, .6));
    --aoo-border: var(--border-color, #e4e4e4);
    --aoo-tint: rgba(83, 113, 255, .08);
}
:root[data-theme="dark"] { --aoo-tint: rgba(83, 113, 255, .18); }

.aoo-fab svg, .aoo-panel svg, .aoo-chat svg { width: 1em; height: 1em; flex: none; }

/* ---------------------------------------------------------------- floating button */
.aoo-fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 9980;
    display: inline-flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
    background: var(--aoo-blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .01em;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; box-shadow: none;
    cursor: pointer; transition: transform .15s ease, background-color .15s ease, opacity .2s ease;
}
/* The button's glow is a separate soft gradient behind it rather than a CSS shadow: iPhone Safari
   cuts shadows on floating buttons off in a square. The gradient fades to nothing inside its own box. */
.aoo-fab-glow {
    position: fixed; right: -12px; bottom: -14px; width: 250px; height: 116px; z-index: 9979; pointer-events: none;
    background: radial-gradient(closest-side, rgba(83, 113, 255, .5), rgba(83, 113, 255, .24) 50%, rgba(83, 113, 255, .08) 78%, rgba(83, 113, 255, 0));
    transition: opacity .2s ease;
}
:root[data-theme="dark"] .aoo-fab-glow { background: radial-gradient(closest-side, rgba(83, 113, 255, .7), rgba(83, 113, 255, .34) 50%, rgba(83, 113, 255, .12) 78%, rgba(83, 113, 255, 0)); }
html.aoo-open .aoo-fab-glow { opacity: 0; }
body.aoo-portal-btn .aoo-fab-glow { bottom: 58px; }
.aoo-fab svg { width: 20px; height: 20px; }
@media (hover:hover){.aoo-fab:hover { background: var(--aoo-blue-dark); transform: translateY(-1px); }}
.aoo-fab:focus-visible { outline: 3px solid rgba(83, 113, 255, .45); outline-offset: 3px; }
.aoo-fab-short { display: none; }
html.aoo-open .aoo-fab { opacity: 0; pointer-events: none; }
body.aoo-portal-btn .aoo-fab { bottom: 96px; }
body.aoo-has-fab #scroll-to-top[data-visible="true"] { bottom: 92px !important; right: 30px !important; }
body.aoo-has-fab.aoo-portal-btn #scroll-to-top[data-visible="true"] { bottom: 164px !important; }

/* ---------------------------------------------------------------- panel (desktop) / bottom sheet (phone) */
.aoo-backdrop {
    position: fixed; inset: 0; z-index: 9989; background: rgba(0, 0, 0, .35);
    opacity: 0; transition: opacity .2s ease; display: none; pointer-events: none;
}
.aoo-backdrop.is-open { pointer-events: auto; }
.aoo-panel {
    position: fixed; right: 24px; bottom: 24px; z-index: 9990;
    width: 450px; height: min(760px, calc(100vh - 48px));
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--aoo-bg); color: var(--aoo-text);
    border: 0; border-radius: 16px;
    box-shadow: 0 28px 70px rgba(83, 113, 255, .36), 0 6px 20px rgba(83, 113, 255, .2);
    opacity: 0; transform: translateY(14px); transition: opacity .2s ease, transform .2s ease;
}
.aoo-panel[hidden] { display: none; }
:root[data-theme="dark"] .aoo-panel { box-shadow: 0 28px 80px rgba(83, 113, 255, .5), 0 6px 22px rgba(83, 113, 255, .3); }
.aoo-panel.is-open { opacity: 1; transform: none; }
.aoo-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 14px 16px 18px; background: var(--aoo-blue); color: #fff;
}
/* "Ask Onsite" name: white badge with the spark, big bold name, short line under it */
.aoo-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aoo-brand-icon {
    flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: #fff; color: var(--aoo-blue); box-shadow: 0 2px 10px rgba(31, 52, 170, .35);
}
.aoo-brand-icon svg { width: 22px; height: 22px; }
.aoo-brand-name { margin: 0 !important; font-family: var(--gh-font-heading, var(--font-primary, inherit)); font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.aoo-head-sub { margin: 3px 0 0 !important; color: rgba(255, 255, 255, .88); font-size: 14.5px; line-height: 1.3; }
.aoo-head-actions { display: flex; gap: 4px; }
.aoo-iconbtn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
}
.aoo-iconbtn svg { width: 19px; height: 19px; }
@media (hover:hover){.aoo-iconbtn:hover { background: rgba(255, 255, 255, .18); color: #fff; }}
.aoo-body { flex: 1; min-height: 0; display: flex; }

@media (max-width: 640px) {
    .aoo-fab { right: 16px; bottom: 16px; height: 48px; padding: 0 18px 0 15px; }
    .aoo-fab-glow { right: -20px; bottom: -18px; width: 176px; height: 104px; }
    body.aoo-portal-btn .aoo-fab-glow { bottom: 50px; }
    .aoo-fab-label { display: none; }
    .aoo-fab-short { display: inline; }
    body.aoo-portal-btn .aoo-fab { bottom: 84px; }
    body.aoo-has-fab #scroll-to-top[data-visible="true"] { bottom: 80px !important; right: 20px !important; }
    .aoo-backdrop { display: block; }
    .aoo-backdrop[hidden] { display: none; }
    .aoo-backdrop.is-open { opacity: 1; }
    .aoo-panel {
        left: 0; right: 0; bottom: 0; width: auto;
        height: 88vh; height: 88dvh; border-radius: 18px 18px 0 0;
        transform: translateY(40px);
    }
    html.aoo-open, html.aoo-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    .aoo-panel, .aoo-backdrop, .aoo-fab, .aoo-fab-glow { transition: none; }
}
@media print { .aoo-fab, .aoo-fab-glow, .aoo-panel, .aoo-backdrop { display: none !important; } }

/* ---------------------------------------------------------------- chat (shared by panel and page) */
.aoo-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; color: var(--aoo-text); font-size: 16px; line-height: 1.6; }
.aoo-chat p { margin: 0; }
.aoo-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 10px; }
.aoo-intro { display: flex; flex-direction: column; gap: 8px; }
.aoo-intro[hidden] { display: none; }
.aoo-intro-title { font-family: var(--gh-font-heading, var(--font-primary, inherit)); font-size: 22px; font-weight: 800; line-height: 1.2; }
.aoo-intro-text { color: var(--aoo-muted); font-size: 15.5px; line-height: 1.55; }
.aoo-context {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px;
    padding: 9px 8px 9px 13px; border-radius: 10px; background: var(--aoo-tint); font-size: 14.5px; line-height: 1.4;
}
.aoo-context[hidden] { display: none; }
.aoo-context b { font-weight: 700; }
.aoo-context button { display: inline-flex; border: 0; background: transparent; color: var(--aoo-muted); padding: 4px; border-radius: 6px; cursor: pointer; }
@media (hover:hover){.aoo-context button:hover { color: var(--aoo-text); }}
.aoo-suggest-label { margin-top: 12px !important; color: var(--aoo-muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aoo-suggest-label[hidden] { display: none; }
.aoo-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.aoo-chip {
    max-width: 100%; padding: 10px 14px; border: 1px solid var(--aoo-border); border-radius: 12px;
    background: var(--aoo-bg); color: var(--aoo-text); font: inherit; font-size: 15.5px; line-height: 1.4; text-align: left; cursor: pointer;
}
@media (hover:hover){.aoo-chip:hover { border-color: var(--aoo-blue); color: var(--aoo-blue); }}

/* conversation */
.aoo-thread { display: flex; flex-direction: column; gap: 26px; }
.aoo-turn { display: flex; flex-direction: column; gap: 14px; }
.aoo-q {
    align-self: flex-end; max-width: 88%; padding: 10px 15px; border-radius: 18px 18px 4px 18px;
    background: var(--aoo-blue); color: #fff; font-size: 16.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Answers sit on the page itself (no grey box), so they read like an article, not a chat bubble. */
.aoo-a { align-self: stretch; overflow-wrap: anywhere; }
.aoo-a-label { display: flex; align-items: center; gap: 7px; margin-bottom: 10px !important; color: var(--aoo-blue); font-family: var(--gh-font-heading, var(--font-primary, inherit)); font-size: 15px; font-weight: 800; }
.aoo-a-label svg { width: 16px; height: 16px; }
.aoo-answer { display: flex; flex-direction: column; gap: 13px; font-size: 17px; line-height: 1.7; }
.aoo-answer ul { margin: 0; padding-left: 1.25em; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.aoo-answer li { padding-left: 2px; }
.aoo-answer li::marker { color: var(--aoo-blue); }
.aoo-answer strong { font-weight: 700; }
.aoo-a.is-notice, .aoo-a.is-error { padding: 14px 16px; border-radius: 14px; }
.aoo-a.is-notice { background: var(--aoo-tint); }
.aoo-a.is-error { background: rgba(179, 38, 30, .08); color: #b3261e; }
:root[data-theme="dark"] .aoo-a.is-error { color: #ff8a80; }
.aoo-a.is-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.aoo-thinking { color: var(--aoo-muted); font-style: italic; }
.aoo-thinking span::after { content: '…'; animation: aoo-dots 1.2s steps(4) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes aoo-dots { from { width: 0; } to { width: 1.2em; } }
.aoo-a.is-streaming .aoo-answer > :last-child::after {
    content: ''; display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px;
    background: var(--aoo-blue); animation: aoo-blink 1s steps(2) infinite;
}
@keyframes aoo-blink { 50% { opacity: 0; } }
/* source numbers: small, quiet superscripts that link to the story */
.aoo-cite {
    display: inline-block; box-sizing: border-box; min-width: 18px; height: 18px; margin-left: 2px; padding: 0 5px;
    border-radius: 9px; background: var(--aoo-tint); color: var(--aoo-blue) !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; text-decoration: none !important; vertical-align: 5px;
}
.aoo-cite + .aoo-cite { margin-left: 1px; }
@media (hover:hover){.aoo-cite:hover { background: var(--aoo-blue); color: #fff !important; }}

/* sources, with each story's photo */
.aoo-sources { margin-top: 16px; }
.aoo-sources-label { color: var(--aoo-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px !important; }
.aoo-sources ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aoo-src {
    display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 8px;
    border: 1px solid var(--aoo-border); border-radius: 12px; color: var(--aoo-text) !important; text-decoration: none !important;
    transition: border-color .15s ease, background-color .15s ease;
}
@media (hover:hover){.aoo-src:hover { border-color: var(--aoo-blue); background: var(--aoo-tint); }}
.aoo-src-img {
    position: relative; flex: none; width: 76px; height: 57px; border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: var(--aoo-tint); color: var(--aoo-blue);
}
.aoo-src-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aoo-src-img > svg { width: 20px; height: 20px; }
.aoo-src-num {
    position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--aoo-blue); color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 1px 4px rgba(83, 113, 255, .45);
}
.aoo-src-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aoo-src-title {
    font-size: 15.5px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aoo-src-date { color: var(--aoo-muted); font-size: 13.5px; }

/* Onsite Briefs among the sources: play badge on the picture, "Watch at 0:42" in blue */
.aoo-src-play {
    position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.aoo-src-play svg { width: 14px; height: 14px; margin-left: 2px; }
.aoo-src-watch {
    display: inline-flex; align-items: center; gap: 4px; color: var(--aoo-blue); font-size: 14px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.aoo-src-watch svg { width: 12px; height: 12px; flex: none; }
.aoo-cite.is-video::before {
    content: ""; display: inline-block; width: 0; height: 0; margin-right: 3px; vertical-align: 0;
    border-style: solid; border-width: 3.5px 0 3.5px 5px; border-color: transparent transparent transparent currentColor;
}

.aoo-fb { display: flex; align-items: center; justify-content: flex-start; gap: 4px; margin-top: 12px; color: var(--aoo-muted); font-size: 15px; }
.aoo-fb span { flex: none; margin-right: 4px; white-space: nowrap; }
.aoo-fb button { flex: none; display: inline-flex; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--aoo-muted); cursor: pointer; }
.aoo-fb button svg { width: 18px; height: 18px; }
@media (hover:hover){.aoo-fb button:hover { background: var(--aoo-tint); color: var(--aoo-blue); }}
.aoo-fb.is-done { font-style: italic; }
.aoo-fb-why { display: flex; gap: 6px; margin-top: 10px; }
.aoo-fb-why input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--aoo-border); border-radius: 8px; background: var(--aoo-bg); color: var(--aoo-text); font: inherit; font-size: 16px; }
.aoo-fb-why button { padding: 0 14px; border: 0; border-radius: 8px; background: var(--aoo-blue); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

.aoo-bottom { padding: 10px 14px 12px; border-top: 1px solid var(--aoo-border); background: var(--aoo-bg); }
.aoo-composer {
    display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px;
    border: 1.5px solid var(--aoo-border); border-radius: 14px; background: var(--aoo-bg);
}
.aoo-composer:focus-within { border-color: var(--aoo-blue); }
.aoo-composer textarea {
    flex: 1; min-width: 0; max-height: 140px; padding: 8px 0; border: 0; outline: 0; resize: none;
    background: transparent; color: var(--aoo-text); font: inherit; font-size: 16px; line-height: 1.4;
}
.aoo-composer textarea::placeholder { color: var(--aoo-muted); }
.aoo-send {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 0; border-radius: 10px; background: var(--aoo-blue); color: #fff; cursor: pointer;
}
.aoo-send svg { width: 20px; height: 20px; }
@media (hover:hover){.aoo-send:hover { background: var(--aoo-blue-dark); }}
.aoo-send:disabled { opacity: .45; cursor: default; }
.aoo-chat.is-busy .aoo-send, .is-busy .aoo-send { opacity: .45; }
.aoo-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 22px; margin-top: 8px; color: var(--aoo-muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- voice */
/* mic button (shown when the service has voice on and the browser can record) */
.aoo-mic {
    flex: none; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; position: relative;
    border: 0; border-radius: 10px; background: var(--aoo-tint); color: var(--aoo-blue); cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.aoo-chat.can-record .aoo-mic { display: inline-flex; }
.aoo-mic svg { width: 21px; height: 21px; }
@media (hover:hover){.aoo-mic:hover { background: var(--aoo-blue); color: #fff; }}
.aoo-mic:disabled { opacity: .45; cursor: default; }
.aoo-chat.is-listening .aoo-mic { background: #e5484d; color: #fff; }
.aoo-chat.is-listening .aoo-mic::after {
    content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid #e5484d;
    animation: aoo-pulse 1.2s ease-out infinite; pointer-events: none;
}
.aoo-chat.is-listening .aoo-composer { border-color: #e5484d; }
.aoo-chat.is-transcribing .aoo-mic { opacity: .6; animation: aoo-blink 1s ease-in-out infinite; }
@keyframes aoo-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@keyframes aoo-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .aoo-chat.is-listening .aoo-mic::after, .aoo-chat.is-transcribing .aoo-mic { animation: none; } }
/* a line under the box: the Hands-free switch (once the mic has been used) and voice messages */
.aoo-vbar { display: none; align-items: center; gap: 12px; margin-top: 8px; color: var(--aoo-muted); font-size: 13.5px; line-height: 1.4; }
.aoo-chat.can-record.used-voice .aoo-vbar, .aoo-vbar.has-msg { display: flex; }
.aoo-vmsg:empty { display: none; }

/* Hands-free: after an answer is read aloud, listen for the next question */
.aoo-hf {
    display: none; flex: none; align-items: center; gap: 7px; padding: 0; border: 0; background: none;
    color: var(--aoo-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.aoo-chat.can-record.used-voice .aoo-hf { display: inline-flex; }
.aoo-hf::before {
    content: ""; flex: none; width: 28px; height: 16px; border-radius: 8px;
    background: var(--aoo-border) radial-gradient(circle at 8px 8px, #fff 6px, transparent 6.5px) no-repeat;
}
.aoo-hf.is-on { color: var(--aoo-blue); }
.aoo-hf.is-on::before { background: var(--aoo-blue) radial-gradient(circle at 20px 8px, #fff 6px, transparent 6.5px) no-repeat; }

/* under each answer: Listen + Helpful? */
.aoo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.aoo-actions .aoo-fb, .aoo-actions .aoo-fb-why { margin-top: 0; }
.aoo-speak {
    display: none; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 1.5px solid var(--aoo-border); border-radius: 99px;
    background: var(--aoo-bg); color: var(--aoo-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.aoo-chat.has-voice .aoo-speak { display: inline-flex; }
.aoo-speak svg { width: 17px; height: 17px; color: var(--aoo-blue); }
@media (hover:hover){.aoo-speak:hover { border-color: var(--aoo-blue); }}
.aoo-speak.is-playing { border-color: var(--aoo-blue); background: var(--aoo-tint); color: var(--aoo-blue); }
.aoo-linkbtn { padding: 0; border: 0; background: none; color: var(--aoo-blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.aoo-linkbtn[hidden] { display: none; }
.aoo-note { margin-top: 4px !important; color: var(--aoo-muted); font-size: 13px; line-height: 1.4; }

/* ---------------------------------------------------------------- locked preview */
.aoo-chat.is-locked .aoo-scroll { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; }
.aoo-sample { display: flex; flex-direction: column; gap: 10px; }
.aoo-skeleton { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 18px 16px; }
.aoo-skeleton span { display: block; height: 10px; border-radius: 5px; background: var(--aoo-border); filter: blur(1.5px); }
.aoo-skeleton span.is-short { width: 55%; }
.aoo-lockbadge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--aoo-blue); color: #fff; box-shadow: 0 6px 18px rgba(83, 113, 255, .4);
}
.aoo-lockbadge svg { width: 20px; height: 20px; }
.aoo-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: 14px; background: var(--aoo-tint); }
.aoo-cta-kicker { color: var(--aoo-blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.aoo-cta-title { font-family: var(--gh-font-heading, var(--font-primary, inherit)); font-size: 22px; font-weight: 800; line-height: 1.2; }
.aoo-cta-text { color: var(--aoo-muted); font-size: 15.5px; line-height: 1.55; }
.aoo-btn {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; padding: 12px 22px;
    border-radius: 10px; background: var(--aoo-blue); color: #fff !important; font-size: 16px; font-weight: 800; text-decoration: none !important;
}
@media (hover:hover){.aoo-btn:hover { background: var(--aoo-blue-dark); }}
.aoo-cta-link { color: var(--aoo-blue) !important; font-size: 15px; font-weight: 700; text-decoration: none !important; }
.aoo-cta-small { color: var(--aoo-muted); font-size: 14px; }

/* ---------------------------------------------------------------- /ask/ page */
.oo-askpage { padding: 40px 0 24px; }
.oo-askpage-inner { max-width: 800px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.oo-askpage-kicker { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--aoo-blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.oo-askpage-title { margin: 0; color: var(--aoo-text); font-size: 40px; line-height: 1.1; font-weight: 700; }
.oo-askpage-dek { margin: 0; color: var(--aoo-muted); font-size: 18px; }
.oo-askpage-card {
    margin-top: 22px; overflow: hidden; border-radius: 20px; background: var(--aoo-bg); border: 0;
    box-shadow: 0 26px 70px rgba(83, 113, 255, .3), 0 6px 20px rgba(83, 113, 255, .18);
}
:root[data-theme="dark"] .oo-askpage-card { box-shadow: 0 26px 80px rgba(83, 113, 255, .48), 0 6px 22px rgba(83, 113, 255, .28); }
.oo-askpage-card .aoo-head { padding: 18px 22px; }
.oo-askpage-card .aoo-brand-name { font-size: 23px; }
.oo-askpage-app .aoo-chat.aoo-mode-page { overflow: visible; background: var(--aoo-bg); }
.oo-askpage-app .aoo-mode-page .aoo-scroll { overflow: visible; padding: 26px 26px 14px; min-height: 280px; }
.oo-askpage-app .aoo-mode-page .aoo-bottom { position: sticky; bottom: 0; padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); }
.oo-askpage-app .aoo-mode-page .aoo-intro-title { font-size: 24px; }
.oo-askpage-app .aoo-mode-page .aoo-answer { font-size: 18px; }
.oo-askpage-app .aoo-mode-page .aoo-q { font-size: 17.5px; }
.oo-askpage-loading, .oo-askpage-soon { display: none; padding: 40px 28px; color: var(--aoo-muted); font-size: 17px; text-align: center; }
.oo-askpage-app:not(.is-ready):not(.is-soon) .oo-askpage-loading { display: block; }
.oo-askpage-app.is-soon .oo-askpage-soon { display: block; }
.oo-askpage-about { margin-top: 28px; }
@media (max-width: 640px) {
    .oo-askpage { padding-top: 24px; }
    .oo-askpage-title { font-size: 32px; }
    .oo-askpage-app .aoo-mode-page .aoo-scroll { padding: 18px 16px 8px; }
    .oo-askpage-app .aoo-mode-page .aoo-bottom { padding-left: 12px; padding-right: 12px; }
    .oo-askpage-card { border-radius: 16px; }
    .oo-askpage-card .aoo-head { padding: 14px 16px; }
}

/* ---------------------------------------------------------------- project-page box */
.oo-ask-box[hidden] { display: none !important; }
.oo-ask-box { display: flex; flex-direction: column; gap: 10px; background: var(--aoo-tint) !important; border-color: transparent !important; }
.oo-ask-box-kicker { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--aoo-blue); font-family: var(--gh-font-heading, var(--font-primary, inherit)); font-size: 17px; font-weight: 800; }
.oo-ask-box-kicker svg { width: 18px; height: 18px; }
.oo-ask-box-title { margin: 0; color: var(--aoo-text); font-size: 21px; font-weight: 700; line-height: 1.2; }
.oo-ask-box-form { display: flex; gap: 6px; }
.oo-ask-box-form input {
    flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--aoo-border); border-radius: 10px;
    background: var(--aoo-bg); color: var(--aoo-text); font: inherit; font-size: 16px;
}
.oo-ask-box-form input:focus { outline: 2px solid var(--aoo-blue); outline-offset: 0; border-color: transparent; }
.oo-ask-box-form button { padding: 0 16px; border: 0; border-radius: 10px; background: var(--aoo-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
@media (hover:hover){.oo-ask-box-form button:hover { background: var(--aoo-blue-dark); }}
.oo-ask-box-note { margin: 0; color: var(--aoo-muted); font-size: 14.5px; }

/* Ghost's floating Subscribe button would sit on top of the open panel */
html.aoo-open .gh-portal-triggerbtn-iframe, html.aoo-open .gh-portal-triggerbtn-wrapper { visibility: hidden !important; }
