/* Instant help (/help), and the blue Instant help buttons on the home page and console sign-in. */
:root { --help: #0A84FF; --help-hover: #2A95FF; --help-soft: rgba(10,132,255,.14); }
.btn.help-btn, a.btn.help-btn { background: var(--help); border-color: var(--help); color: #fff; font-weight: 600; }
.btn.help-btn:hover { background: var(--help-hover); border-color: var(--help-hover); text-decoration: none; }
.btn.help-btn:focus-visible { box-shadow: 0 0 0 3px rgba(10,132,255,.4); }

body.help-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(800px 500px at 50% -160px, rgba(10,132,255,.12), transparent 65%), var(--bg); }
.help-top { position: relative; width: 100%; max-width: 980px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 12px; }
/* Centred in the header, whatever the brand's width. */
.help-tag { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 99px; background: var(--help-soft); color: #6CB6FF; font-size: 12px; font-weight: 600; }
.help-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px 24px 64px; display: flex; justify-content: center; align-items: flex-start; }
.help-card { width: 100%; max-width: 420px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.help-card h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.help-card h2 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.help-card .lede { margin: -4px 0 4px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.help-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.help-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--help-soft); color: var(--help); }
.help-icon.ok { background: var(--accent-soft); color: var(--accent); }
.help-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.code-input { font: 600 28px var(--mono); letter-spacing: .2em; text-align: center; padding: 12px; }
.help-card .fine { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.5; }
/* Both cards as tall as the taller one; End session sits at the bottom of its card. */
.help-live { width: 100%; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 380px); gap: 20px; justify-content: center; align-items: stretch; }
.help-live .help-card { max-width: none; }
.who { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.who strong { color: var(--text); font-weight: 600; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,95,87,.2); animation: help-rec 1.6s ease-in-out infinite; }
@keyframes help-rec { 50% { opacity: .4; } }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.row-btns.center { justify-content: center; }
#stopShare { height: 40px; padding: 0 20px; font-size: 14px; } /* as tall as End session */
.install { padding: 14px 16px; border-radius: 12px; background: var(--help-soft); display: flex; flex-direction: column; gap: 8px; }
.install p { margin: 0; font-size: 13px; }
.help-card .end { margin-top: auto; }
.chat { min-height: 320px; }
.chat-log { flex: 1; min-height: 180px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { margin: 0; font-size: 13px; }
.msg { display: flex; flex-direction: column; gap: 2px; max-width: 85%; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; overflow-wrap: anywhere; }
.msg b { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.msg.mine { align-self: flex-end; background: var(--help-soft); }
.chat-form { display: flex; gap: 8px; }
.chat-form .input { flex: 1; min-width: 0; }
@media (max-width: 820px) { .help-live { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }

/* Home page: the blue button above the sign-in card; console sign-in: above the form */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.instant-help { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; font-size: 14.5px; border-radius: 12px; box-shadow: 0 12px 30px rgba(10,132,255,.25); }
.instant-help svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.instant-help small { font-weight: 400; opacity: .85; }
.auth .instant-help { width: 100%; max-width: 380px; margin: 0 auto 14px; }

/* Console: the technician's side */
.help-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.help-video { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; max-height: calc(100vh - 140px); display: grid; place-items: center; border: 1px solid var(--hairline); }
/* The console's content column is capped for reading; Instant help's picture takes the full width. */
.content.full { max-width: none; }
.help-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.help-video .waiting { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--text-2); font-size: 14px; }
.help-code { font: 600 44px var(--mono); letter-spacing: .18em; color: var(--text); margin: 6px 0; }
.help-side { display: flex; flex-direction: column; gap: 12px; }
.help-side .help-card { max-width: none; padding: 18px; box-shadow: none; border-radius: 14px; }
@media (max-width: 900px) { .help-stage { grid-template-columns: minmax(0, 1fr); } }
.auth { align-content: center; }
#shareIdle, #shareOn { display: flex; flex-direction: column; gap: 12px; }
.help-video .waiting .spinner { display: inline-block; width: 22px; height: 22px; }
.brand-slot { display: flex; align-items: center; min-height: 44px; }
.help-brand-logo { max-height: 48px; max-width: 220px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; }
.powered { align-self: center; font-size: 12px; color: var(--text-3); }
.powered:hover { color: var(--text-2); }
