.scene-help, .scene-legal {
  --sh-bg: var(--bg, #15161a);
  --sh-surface: var(--surface, #1d1e23);
  --sh-raised: var(--surface-raised, #27282f);
  --sh-accent: var(--accent, #8b5cf6);
  --sh-text: var(--text, #f3f3f6);
  --sh-muted: var(--muted, #aaaab5);
  --sh-line: var(--line, #33343d);
  color: var(--sh-text);
}
.scene-help { width: min(880px, 100%); margin: 0 auto; padding: 30px 0 32px; }
.sh-header { margin-bottom: 28px; }
.sh-kicker { color: var(--sh-muted); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.sh-header h1 { margin: 10px 0 12px; font-size: clamp(27px, 3.4vw, 34px); font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.sh-header p { color: var(--sh-muted); font-size: 14px; line-height: 1.75; margin: 0; word-break: keep-all; }
.sh-status-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.sh-status-note p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--sh-muted); word-break: keep-all; }
.sh-status-note strong { color: var(--sh-text); font-weight: 600; }
.sh-live-dot { margin-top: 8px; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #9696a3; }
.sh-tabs { display: flex; gap: 26px; margin: 26px 0 24px; border-bottom: 1px solid var(--sh-line); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.sh-tabs button { position: relative; flex: 0 0 auto; border: 0; background: none; padding: 0 0 13px; color: var(--sh-muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; min-height: 46px; }
.sh-tabs button.is-active { color: var(--sh-text); font-weight: 600; }
.sh-tabs button.is-active::after { position: absolute; content: ''; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--sh-accent); }
.sh-search { display: flex; align-items: center; gap: 12px; background: var(--sh-bg); border: 1px solid #41424c; border-radius: 5px; padding: 0 16px; min-height: 50px; }
.sh-search > span { font-size: 23px; color: var(--sh-muted); }
.sh-search input { width: 100%; min-width: 0; min-height: 48px; background: none; border: 0; color: var(--sh-text); font: inherit; font-size: 15px; outline: 0; }
.sh-search input::placeholder { color: #92929f; }
.sh-search:focus-within { outline: 2px solid var(--sh-accent); outline-offset: 2px; }
.sh-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.sh-filters button { color: var(--sh-muted); border: 1px solid var(--sh-line); background: transparent; border-radius: 4px; min-height: 40px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.sh-filters button:hover { border-color: #585963; color: var(--sh-text); }
.sh-filters button.is-active { background: #8b5cf612; border-color: #8b5cf680; color: #d0bbff; }
.sh-result-count { color: var(--sh-muted); font-size: 12px; margin: 0 0 8px; }
.sh-faq { border-bottom: 1px solid var(--sh-line); }
.sh-faq summary { display: flex; gap: 20px; align-items: center; list-style: none; cursor: pointer; padding: 20px 2px; min-height: 64px; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq-category { flex: 0 0 80px; color: var(--sh-muted); font-size: 12px; }
.sh-faq summary strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 550; line-height: 1.6; word-break: keep-all; }
.sh-faq-plus { flex: 0 0 20px; color: var(--sh-muted); font-size: 20px; transition: transform .15s; }
.sh-faq[open] .sh-faq-plus { transform: rotate(45deg); }
.sh-faq > div { padding: 0 38px 22px 102px; color: var(--sh-muted); font-size: 14px; line-height: 1.85; word-break: keep-all; }
.sh-faq p { margin: 0 0 12px; }
.sh-faq p:last-child { margin: 0; }
.scene-help a { color: #c4b5fd; text-underline-offset: 4px; }
.sh-faq strong { color: var(--sh-text); font-weight: 600; }
.sh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--accent-button, #7d4cdb); border-radius: 5px; background: var(--accent-button, #7d4cdb); color: #fff !important; text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.5; }
.sh-button:hover { background: var(--accent-hover, #7c3aed); border-color: var(--accent-hover, #7c3aed); }
.sh-secondary { border-color: #464750; background: transparent; color: var(--sh-text) !important; }
.sh-secondary:hover { background: var(--sh-raised); border-color: #676872; }
.sh-button:disabled { opacity: .45; cursor: not-allowed; }
.sh-text-button { border: 0; background: none; color: #c4b5fd; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 4px; padding: 0; min-height: 44px; }
.sh-form, .sh-detail { padding: 24px 0; border-top: 1px solid var(--sh-line); }
.sh-form > label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; margin-top: 22px; }
.sh-form input, .sh-form textarea, .sh-form select, .sh-list-controls select { width: 100%; min-width: 0; background: var(--sh-bg); border: 1px solid #41424c; border-radius: 5px; padding: 11px 13px; color: var(--sh-text); font: inherit; font-size: 15px; min-height: 46px; line-height: 1.65; color-scheme: dark; }
.sh-form :is(input, textarea)::placeholder { color: #92929f; }
.sh-form textarea { resize: vertical; min-height: 180px; }
.sh-form select { max-width: 280px; }
.sh-form-note { margin: 14px 0; color: var(--sh-muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.sh-form .sh-button[type=submit] { margin-top: 10px; }
.sh-section-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.sh-section-heading h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.sh-section-heading > span, .sh-section-heading p { color: var(--sh-muted); font-size: 13px; margin: 7px 0 0; line-height: 1.7; }
.sh-list-controls { display: flex; gap: 8px; align-items: center; }
.sh-list-controls select { width: auto; font-size: 13px; }
.sh-list-controls .sh-button { white-space: nowrap; }
.sh-message { margin: 12px 0; font-size: 14px; line-height: 1.75; }
.sh-message:empty { display: none; }
.sh-error { color: #fca5a5; }
.sh-success { color: #a7f3d0; }
.sh-empty { padding: 40px 20px; text-align: center; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.sh-empty h2, .sh-empty h3 { margin: 0 0 10px; font-size: 18px; }
.sh-empty p { color: var(--sh-muted); font-size: 14px; line-height: 1.8; margin: 0 0 18px; }
.sh-empty .sh-button { margin-top: 8px; }
.sh-loading { min-height: 150px; display: grid; place-items: center; color: var(--sh-muted); font-size: 14px; }
.sh-requests { border-top: 1px solid var(--sh-line); }
.sh-request-row { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--sh-line); background: none; color: var(--sh-text); padding: 18px 4px; font: inherit; cursor: pointer; }
.sh-request-row:hover { background: #ffffff03; }
.sh-request-status { display: inline-block; flex: 0 0 auto; font-size: 12px; line-height: 1.6; padding: 3px 7px; border: 1px solid var(--sh-line); border-radius: 3px; color: var(--sh-muted); }
.sh-status-answered { color: #c4b5fd; border-color: #8b5cf655; }
.sh-status-open { color: #d4d4dd; }
.sh-request-title { flex: 1; min-width: 0; }
.sh-request-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 550; }
.sh-request-title small { display: block; font-size: 12px; color: var(--sh-muted); margin-top: 6px; }
.sh-request-arrow { color: var(--sh-muted); }
.sh-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px 0; }
.sh-pagination > span { font-size: 13px; color: var(--sh-muted); }
.sh-detail-heading { margin-top: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--sh-line); }
.sh-detail-heading h3 { margin: 12px 0 10px; font-size: 22px; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; }
.sh-detail-heading p { color: var(--sh-muted); font-size: 13px; margin: 0; }
.sh-message-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.sh-reply { margin-top: 26px; padding: 18px 20px; background: #ffffff03; border-left: 2px solid #7b6a9c; }
.sh-reply h4 { margin: 0 0 12px; font-size: 14px; color: #d0bbff; }
.sh-reply p { color: var(--sh-muted); font-size: 14px; line-height: 1.85; margin: 0; }
.sh-reply small { display: block; color: var(--sh-muted); font-size: 12px; margin-top: 14px; }
.sh-detail-actions { margin-top: 24px; text-align: right; }
.sh-detail-actions > .sh-button { font-size: 13px; color: var(--sh-muted) !important; }
.sh-delete-confirm { margin-top: 14px; padding: 18px; text-align: left; border: 1px solid #fca5a540; border-radius: 5px; background: #fca5a509; }
.sh-delete-confirm > p { font-size: 13px; color: var(--sh-muted); line-height: 1.8; margin: 0 0 12px; }
.sh-delete-confirm .sh-button { margin-right: 8px; }
.sh-delete-confirm [data-help=confirm-delete] { background: #713e51; border-color: #a25668; }
.sh-contact { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 24px 0; margin-top: 36px; border-top: 1px solid var(--sh-line); }
.sh-contact h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sh-contact p { margin: 7px 0 0; font-size: 13px; color: var(--sh-muted); line-height: 1.75; }
.sh-contact > a { flex-shrink: 0; font-size: 14px; overflow-wrap: anywhere; }
.sh-policy-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.sh-policy-links a { color: var(--sh-muted); font-size: 13px; text-decoration: none; }
.sh-policy-links a:hover { color: var(--sh-text); }
.sh-sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0,0,0,0); white-space: nowrap; }
.scene-help [hidden] { display: none !important; }
.scene-help :focus-visible, .scene-legal :focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 4px; }
.scene-help button, .scene-help a, .scene-help summary { -webkit-tap-highlight-color: #8b5cf633; }
/* Policies read as documents, with separate sections rather than stacked cards. */
.scene-legal { max-width: 880px !important; margin: 0 auto !important; padding: 30px 0 32px !important; }
.scene-legal h1 { color: var(--sh-text) !important; font-size: clamp(27px,3.4vw,34px) !important; font-weight: 650; letter-spacing: -.035em; line-height: 1.35 !important; }
.scene-legal > .section-kicker { color: var(--sh-muted) !important; }
.scene-legal-lead { color: var(--sh-muted) !important; font-size: 15px !important; line-height: 1.8 !important; }
.scene-legal > section { padding: 26px 0 !important; margin: 0 !important; border: 0 !important; border-top: 1px solid var(--sh-line) !important; border-radius: 0 !important; background: transparent; }
.scene-legal h2 { color: var(--sh-text) !important; font-size: 19px !important; font-weight: 600; margin: 0 0 14px !important; line-height: 1.6; }
.scene-legal p, .scene-legal li { color: var(--sh-muted) !important; font-size: 15px !important; line-height: 1.95 !important; word-break: keep-all; }
.scene-legal a { color: #c4b5fd !important; text-underline-offset: 4px; }
.scene-legal table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.8; }
.scene-legal th { background: #ffffff04; color: var(--sh-text); text-align: left; font-weight: 600; }
.scene-legal td, .scene-legal th { padding: 13px; border: 1px solid var(--sh-line); vertical-align: top; }
.scene-legal td { color: var(--sh-muted); min-width: 110px; }
.scene-legal-sources { padding: 18px 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.scene-legal-sources summary { min-height: 44px; align-content: center; font-size: 14px; cursor: pointer; }
.scene-legal-sources ul { padding-left: 20px; }
.scene-legal-version { color: var(--sh-muted) !important; font-size: 12px !important; text-align: right; }
@media (max-width: 720px) {
  .scene-help, .scene-legal { padding-top: 18px !important; }
  .sh-header { margin-bottom: 24px; }
  .sh-header p { font-size: 14px; }
  .sh-tabs { gap: 24px; }
  .sh-tabs button { font-size: 14px; }
  .sh-filters { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 20px; padding-bottom: 6px; }
  .sh-filters button { flex: 0 0 auto; min-height: 44px; }
  .sh-search input, .sh-form input, .sh-form textarea, .sh-form select, .sh-list-controls select { font-size: 16px; }
  .sh-faq summary { gap: 12px; padding: 18px 0; }
  .sh-faq-category { flex-basis: 62px; font-size: 12px; }
  .sh-faq summary strong { font-size: 14px; }
  .sh-faq > div { padding: 0 4px 20px; font-size: 14px; }
  .sh-form, .sh-detail { padding: 22px 0; }
  .sh-section-heading { align-items: flex-start; flex-wrap: wrap; }
  .sh-list-controls { width: 100%; }
  .sh-list-controls select { flex: 1; }
  .sh-form .sh-section-heading > span { width: 100%; margin: 0; }
  .sh-form select { max-width: none; }
  .sh-request-row { gap: 11px; padding: 18px 1px; }
  .sh-request-title strong { font-size: 14px; }
  .sh-request-status { font-size: 12px; padding: 3px 6px; }
  .sh-contact { display: block; margin-top: 28px; }
  .sh-contact > a { display: inline-flex; align-items: center; margin-top: 10px; min-height: 44px; }
  .sh-policy-links { gap: 8px 20px; }
  .sh-policy-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .sh-empty { padding: 32px 12px; }
  .scene-legal > section { padding: 24px 0 !important; }
  .scene-legal h2 { font-size: 18px !important; }
  .scene-legal p, .scene-legal li { font-size: 14px !important; }
  .scene-legal table { display: block; overflow-x: auto; }
  .sh-detail-heading h3 { font-size: 20px; }
  .sh-reply { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sh-faq-plus { transition: none; } }
