/* Sneaky Support Centre: a few calm pieces on top of the A–F components. Logical properties keep the layout RTL-safe.
   Support's own identity (owner, 4 October 2026: "a different color theme"): Sneaky's plum and rose (tokens in
   support/widget.css) re-skin the Sneaky tokens inside .sh-sc only, the same technique as the religion identities,
   so the header, nav and footer stay standard Sneaky. Crisis styling stays calm: plum and ink, never flashing red. */
.sh-sc {
	--shsc-gap: 14px;
	--sh-action: var(--shsc-plum); --sh-action-hover: var(--shsc-plum-dark); --sh-on-action: #fff;
	--sh-teal: var(--shsc-plum); --sh-teal-dark: var(--shsc-plum-dark);
	--sh-sky: var(--shsc-rose-strong); --sh-on-sky: var(--shsc-plum-dark);
	--sh-sky-soft: var(--shsc-rose); --sh-surface-soft: var(--shsc-mist); --sh-line: var(--shsc-line);
	--sh-hero-bg: linear-gradient(135deg, rgba(243, 207, 224, .7), rgba(255, 255, 255, .96) 58%, rgba(253, 244, 248, .95)), #fff;
	background: linear-gradient(180deg, var(--shsc-mist) 0, #fff 560px);
}
.sh-sc .sh-sc-wrap { display: flex; flex-direction: column; gap: 18px; }

/* Always-present urgent link and quick exit */
.sh-sc .sh-sc-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--sh-line); border-inline-start: 4px solid var(--sh-teal); border-radius: var(--sh-radius-control); background: var(--sh-surface-soft); }
.sh-sc .sh-sc-strip p { margin: 0; color: var(--sh-ink); font-size: var(--sh-text-sm); line-height: 1.5; }
.sh-sc .sh-sc-strip a { color: var(--sh-teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sh-sc .sh-sc-leave { display: inline-flex; align-items: center; min-height: var(--sh-control-h); padding: 0 16px; border-radius: var(--sh-radius-pill); background: var(--sh-ink); color: #fff !important; text-decoration: none !important; font-weight: 800; }

/* Ask: the landing page's one question, inside the A–F detail hero (owner Ask-first correction) */
body.sh-shell .sh-sc .sh-sc-ask { margin: 0 auto; }
/* Support has one way to ask; the site-wide floating Helper launcher would sit on top of it on phones. */
body.sh-sc-page #helper-hub-button { display: none !important; }
.sh-sc .sh-sc-ask .sh-sc-intro { max-width: 62ch; font-size: 17px; line-height: 1.55; }
.sh-sc .sh-sc-ask .sh-sc-start { margin-block-start: 10px; }
.sh-sc .sh-sc-ask textarea { min-height: 150px; font-size: 17px; }
.sh-sc .sh-sc-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sh-sc .sh-sc-ask-row .sh-sc-ask-button { min-width: 168px; min-height: 52px; padding-inline: 36px; font-size: 18px; }
.sh-sc .sh-sc-saved-note { flex: 1 1 240px; }
.sh-sc .sh-sc-saved-note a { color: var(--sh-teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* The answer: directly below Ask, the person's next step inside it, routing details folded away */
.sh-sc .sh-sc-answer { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; width: min(var(--sh-width), 100%); margin: 0 auto; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--sh-line); border-radius: var(--sh-radius-card); background: #fff; box-shadow: var(--sh-shadow-card); scroll-margin-top: 120px; }
.sh-sc .sh-sc-answer[hidden], .sh-sc .sh-sc-topics[hidden] { display: none; }
.sh-sc .sh-sc-answer:focus:not(:focus-visible) { outline: none; }
.sh-sc .sh-sc-answer:focus-visible { outline: 3px solid var(--sh-focus); outline-offset: 3px; }
.sh-sc .sh-sc-answer > * { max-width: var(--sh-reading); margin: 0; }
.sh-sc .sh-sc-answer > h2 { color: var(--sh-ink); font-size: var(--sh-text-lg); font-weight: 900; line-height: 1.3; }
.sh-sc .sh-sc-answer-who span { color: var(--sh-muted); font-size: var(--sh-text-sm); font-weight: 700; }
.sh-sc .sh-sc-answer-text { display: flex; flex-direction: column; gap: 10px; color: var(--sh-ink); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.sh-sc .sh-sc-answer-text p { margin: 0; }
.sh-sc :is(.sh-sc-answer-note, .sh-sc-answer-notice) { padding: 10px 12px; border-radius: var(--sh-radius-control); background: var(--sh-surface-soft); color: var(--sh-copy); font-size: var(--sh-text-sm); line-height: 1.55; }
.sh-sc .sh-sc-answer .sh-sc-safety { margin: 0; }
.sh-sc .sh-sc-save { padding-block-start: 12px; border-block-start: 1px solid var(--sh-line); }
.sh-sc .sh-sc-save p { margin: 0 0 4px; color: var(--sh-copy); line-height: 1.55; }
.sh-sc .sh-sc-save-lead { color: var(--sh-ink) !important; font-size: 17px; font-weight: 800; }
.sh-sc :is(.sh-sc-why, .sh-sc-steady, .sh-sc-about-support) summary { display: flex; align-items: center; min-height: var(--sh-control-h); color: var(--sh-teal-dark); font-weight: 800; cursor: pointer; }
/* One chat, one box (owner correction, 4 October 2026): after Ask the question folds into the conversation and the
   only place to write is "Reply to …" under the answer; "Start a new conversation" brings the question back. */
.sh-sc .sh-sc-active { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 8px; }
.sh-sc :is(.sh-sc-active, .sh-sc-start, .sh-sc-intro)[hidden] { display: none; }
.sh-sc .sh-sc-chat { gap: 18px; }
.sh-sc .sh-sc-reply { padding-block-start: 14px; border-block-start: 1px solid var(--sh-line); }
.sh-sc .sh-sc-reply textarea { min-height: 96px; }
/* "Reply to": All Helpers (default) or one Helper, as the same quiet choices as "This is about" */
.sh-sc .sh-sc-to { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.sh-sc .sh-sc-to legend { width: 100%; margin-block-end: 8px; padding: 0; }
.sh-sc .sh-sc-to .sh-sc-avatar { width: 28px; height: 28px; }
.sh-sc .sh-sc-guest-note { margin: 0; }
.sh-sc .sh-sc-why p { margin: 6px 0 0; color: var(--sh-copy); font-size: var(--sh-text-sm); line-height: 1.55; }

/* Topic chips: compact, secondary to Ask */
.sh-sc .sh-sc-topics { display: flex; flex-direction: column; gap: 10px; width: min(var(--sh-width), 100%); margin: 0 auto; }
.sh-sc .sh-sc-topics-lead { margin: 0; color: var(--sh-copy); font-weight: 700; }
.sh-sc .sh-sc-topics .sh-sc-topic { padding: 8px 16px; font-size: 15px; font-weight: 700; }

/* Everything else, folded into one quiet disclosure */
.sh-sc .sh-sc-about-support { padding: 2px 18px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-card); background: var(--sh-surface-soft); }
.sh-sc .sh-sc-about-body { display: flex; flex-direction: column; gap: 10px; max-width: var(--sh-reading); padding-block-end: 16px; color: var(--sh-copy); line-height: 1.6; }
.sh-sc .sh-sc-about-body p { margin: 0; }
.sh-sc .sh-sc-below { display: flex; flex-direction: column; gap: 18px; }

/* Safety notes: calm, prominent, not sensational */
.sh-sc .sh-sc-safety { margin: 0 0 var(--shsc-gap); padding: 16px 18px; border: 1px solid var(--sh-line); border-inline-start: 5px solid var(--sh-teal); border-radius: var(--sh-radius-card); background: var(--sh-sky-soft); color: var(--sh-ink); }
.sh-sc .sh-sc-safety :is(h2, h3) { margin: 0 0 6px; color: var(--sh-ink); font-size: var(--sh-text-lg); font-weight: 900; line-height: 1.3; }
.sh-sc .sh-sc-safety p { margin: 0 0 10px; line-height: 1.6; }
.sh-sc .sh-sc-safety.is-urgent { border-inline-start-color: var(--sh-ink); }

/* Forms: one question, large field, 44px controls */
.sh-sc :is(.sh-sc-start, .sh-sc-composer, .sh-sc-country, .sh-sc-pending) { display: flex; flex-direction: column; gap: 10px; max-width: var(--sh-reading); }
.sh-sc .sh-sc-label { color: var(--sh-ink); font-size: var(--sh-text-lg); font-weight: 800; }
.sh-sc .sh-sc-help { margin: 0; color: var(--sh-muted); font-size: var(--sh-text-sm); line-height: 1.5; }
.sh-sc :is(.sh-sc-start, .sh-sc-composer) textarea { box-sizing: border-box; width: 100%; min-height: 132px; padding: 12px 14px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-control); background: #fff; color: var(--sh-ink); font-size: var(--sh-text-base); line-height: 1.5; resize: vertical; }
.sh-sc .sh-sc-country select { box-sizing: border-box; width: 100%; min-height: var(--sh-control-h); padding: 0 12px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-control); background: #fff; color: var(--sh-ink); font-size: var(--sh-text-base); }
.sh-sc .sh-sc-about { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.sh-sc .sh-sc-about legend { margin-block-end: 6px; color: var(--sh-ink); font-weight: 700; }
.sh-sc .sh-sc-choice { display: inline-flex; align-items: center; gap: 8px; min-height: var(--sh-control-h); padding: 0 14px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-pill); background: #fff; color: var(--sh-ink); cursor: pointer; }
.sh-sc .sh-sc-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--sh-teal); }
.sh-sc .sh-sc-choice:has(input:checked) { border-color: var(--sh-teal); background: var(--sh-sky-soft); font-weight: 700; }
.sh-sc :is(.sh-sc-submit, .sh-sc-secondary, .sh-sc-topic) { box-sizing: border-box; min-height: var(--sh-control-h); padding: 10px 20px; border-radius: var(--sh-radius-pill); font-size: var(--sh-text-base); font-weight: 800; cursor: pointer; }
.sh-sc .sh-sc-submit { align-self: flex-start; border: 0; background: var(--sh-action); color: var(--sh-on-action); }
.sh-sc .sh-sc-submit:hover { background: var(--sh-action-hover); }
.sh-sc .sh-sc-submit[disabled] { opacity: .6; cursor: progress; }
.sh-sc .sh-sc-secondary { border: 1px solid var(--sh-line); background: #fff; color: var(--sh-teal-dark); }
.sh-sc .sh-sc-status { min-height: 1.5em; margin: 0; color: var(--sh-copy); font-size: var(--sh-text-sm); }

/* Topics as a quiet wrap of choices, not a card wall */
.sh-sc .sh-sc-topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sh-sc .sh-sc-topic { border: 1px solid var(--sh-line); background: #fff; color: var(--sh-teal-dark); font-weight: 700; }
.sh-sc .sh-sc-topic:hover { border-color: var(--sh-teal); background: var(--sh-sky-soft); }

.sh-sc :is(.sh-sc-steps, .sh-sc-bounds) { margin: 0; padding-inline-start: 1.3em; color: var(--sh-copy); line-height: 1.6; }
.sh-sc :is(.sh-sc-steps, .sh-sc-bounds) li + li { margin-block-start: 6px; }
.sh-sc .sh-sc-login { display: flex; flex-direction: column; gap: 8px; }
.sh-sc .sh-sc-login p { margin: 0; color: var(--sh-copy); line-height: 1.6; }
.sh-sc .sh-sc-thread-list { margin: 0; padding: 0; list-style: none; }
.sh-sc .sh-sc-role { color: var(--sh-muted); font-size: var(--sh-text-sm); }
.sh-sc .sh-sc-notice { padding: 10px 14px; border-radius: var(--sh-radius-control); background: var(--sh-sky-soft); color: var(--sh-ink); }

/* The conversation: a calm, readable column */
.sh-sc .sh-sc-thread { display: flex; flex-direction: column; gap: 14px; max-width: var(--sh-reading); }
.sh-sc .sh-sc-messages { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sh-sc .sh-sc-msg { max-width: 88%; padding: 12px 14px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-card); background: #fff; color: var(--sh-ink); }
.sh-sc .sh-sc-msg.is-user { align-self: flex-end; background: var(--sh-sky-soft); }
.sh-sc .sh-sc-msg.is-safety { max-width: 100%; border-inline-start: 5px solid var(--sh-teal); background: var(--sh-surface-soft); }
.sh-sc .sh-sc-msg.is-safety.is-urgent { border-inline-start-color: var(--sh-ink); }
.sh-sc .sh-sc-msg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; color: var(--sh-muted); font-size: 13px; }
.sh-sc .sh-sc-msg-who { color: var(--sh-ink); font-weight: 800; }
.sh-sc .sh-sc-msg-text { display: flex; flex-direction: column; gap: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.sh-sc .sh-sc-msg-text p { margin: 0; }
.sh-sc .sh-sc-msg-text :is(ol, ul) { margin: 0; padding-inline-start: 1.4em; }
.sh-sc .sh-sc-msg-text li + li { margin-block-start: 6px; }
.sh-sc .sh-sc-msg.is-pending { opacity: .75; }

/* Who is responding: every Helper message carries the Helper's picture, name and "AI Helper". The Helper speaks in
   the reading column; the person's words sit in a tinted bubble on the other side. */
.sh-sc .sh-sc-msg-meta { align-items: center; }
.sh-sc .sh-sc-msg-meta[hidden] { display: none; }
.sh-sc .sh-sc-avatar { flex: none; display: inline-block; box-sizing: border-box; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--sh-sky-soft); box-shadow: 0 0 0 1px var(--sh-line); }
.sh-sc .sh-sc-avatar.is-lg { width: 48px; height: 48px; }
.sh-sc .sh-sc-avatar.is-empty { background: linear-gradient(135deg, var(--sh-sky-soft), var(--sh-line)); animation: sh-sc-pulse 1.4s ease-in-out infinite; }
.sh-sc .sh-sc-msg-kind { padding: 2px 8px; border-radius: var(--sh-radius-pill); background: var(--sh-sky-soft); color: var(--sh-teal); font-size: 12px; font-weight: 900; line-height: 1.4; }
.sh-sc .sh-sc-msg.is-helper { max-width: 100%; padding: 0; border: 0; background: none; }
.sh-sc .sh-sc-msg.is-helper .sh-sc-msg-meta { gap: 8px; margin-block-end: 8px; }
.sh-sc .sh-sc-msg.is-helper .sh-sc-msg-who { font-size: 16px; }
.sh-sc .sh-sc-msg.is-lead .sh-sc-msg-who { font-size: 18px; }
.sh-sc .sh-sc-msg.is-helper .sh-sc-msg-text { color: var(--sh-ink); font-size: 17px; line-height: 1.65; }
.sh-sc .sh-sc-helper-head { display: flex; align-items: center; gap: 12px; margin-block: 4px 8px; }
.sh-sc .sh-sc-helper-head :is(p, h2) { margin: 0; }
.sh-sc .sh-sc-helper-name { color: var(--sh-ink); font-size: 18px; font-weight: 900; line-height: 1.25; }
.sh-sc .sh-sc-helper-kind { color: var(--sh-muted); font-size: var(--sh-text-sm); font-weight: 700; }

/* A reply on its way: "Selecting your Helper…", "… is thinking…", "Almost there…", "Finalizing thoughts…" */
.sh-sc .sh-sc-typing { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--sh-copy); font-size: 16px; font-weight: 700; }
.sh-sc .sh-sc-dots { display: inline-flex; gap: 5px; }
.sh-sc .sh-sc-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--sh-teal); animation: sh-sc-dot 1.2s ease-in-out infinite; }
.sh-sc .sh-sc-dots span:nth-child(2) { animation-delay: .15s; }
.sh-sc .sh-sc-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes sh-sc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes sh-sc-pulse { 50% { opacity: .55; } }
.sh-sc .sh-sc-delete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 10px; }
.sh-sc #sh-sc-manage form:first-of-type { display: inline-block; }

@media (max-width: 480px) {
	.sh-sc .sh-sc-msg { max-width: 100%; }
	.sh-sc .sh-sc-submit { align-self: stretch; }
	.sh-sc .sh-sc-ask-row .sh-sc-ask-button { flex: 1 1 100%; }
	.sh-sc .sh-sc-ask .sh-sc-intro { font-size: 16px; }
	.sh-sc .sh-sc-ask textarea { min-height: 104px; }
	/* Phones: the whole question (urgent line, heading, field, choice, Ask) on the first screen at 390px. */
	.sh-sc .sh-sc-ask .sh-sc-start { gap: 8px; margin-block-start: 4px; }
	.sh-sc .sh-sc-ask .sh-sc-about { gap: 6px; }
	.sh-sc .sh-sc-ask .sh-sc-about legend { margin-block-end: 4px; }
	.sh-sc .sh-sc-ask .sh-sc-choice { gap: 6px; padding: 0 11px; font-size: 15px; }
	.sh-sc .sh-sc-strip { flex-direction: column; align-items: stretch; }
	.sh-sc .sh-sc-leave { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sh-sc * { transition: none !important; animation: none !important; } }
