/* PROMETHEUS — static read-only recreation of the Streamlit 1.58 light theme
   plus the application's own custom CSS (Additions 7A, 8A, 8B, 9A).
   All assets are self-hosted; no external requests. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face { font-family: "Source Sans"; src: url("../vendor/fonts/SourceSansVF-Upright.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("../vendor/fonts/SourceSansVF-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("../vendor/fonts/SourceCodeVF-Upright.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("../vendor/fonts/SourceCodeVF-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

/* ---------- Theme tokens ---------- */
:root {
  --st-primary: #FF4B4B;
  --st-text: #31333F;
  --st-bg: #FFFFFF;
  --st-secondary-bg: #F0F2F6;
  --st-sidebar-bg: #f7f8f7;
  --st-border: rgba(49, 51, 63, 0.2);
  --st-faded: rgba(49, 51, 63, 0.6);
  /* captions: Streamlit fadedText60, darkened very slightly to reach WCAG AA (4.5:1) on white and on the sidebar */
  --st-caption: #686a73;
  --st-hover: rgba(151, 166, 195, 0.15);
  --st-open-summary: rgb(248, 249, 251);
  --st-code-color: rgb(21, 130, 55);
  --sidebar-w: 300px;
  --header-h: 67.5px;
  --font-sans: "Source Sans", sans-serif;
  --font-mono: "Source Code Pro", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { font-size: 18px !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--st-bg); color: var(--st-text);
  font-family: var(--font-sans); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: auto; text-rendering: optimizeLegibility;
}
button, input, textarea { font-family: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 6px 12px; border: 1px solid var(--st-border); border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid rgba(255, 75, 75, 0.6); outline-offset: 2px; }
.noscript-note { margin-top: 3rem; text-align: center; color: var(--st-faded); }

/* ---------- App frame ---------- */
.st-app { min-height: 100vh; }

.st-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: var(--sidebar-w); background: var(--st-sidebar-bg);
  transform: translateX(0); transition: transform 300ms ease, visibility 300ms;
  display: flex; flex-direction: column;
}
.sidebar-collapsed .st-sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); visibility: hidden; }
.st-sidebar:focus { outline: none; }
.st-sidebar-header {
  flex: none; height: 86px; display: flex; justify-content: flex-end; align-items: flex-start;
  padding: 18px 16px 0 22.5px;
}
.st-sidebar-header .st-icon-btn { opacity: 0; transition: opacity 150ms; }
.st-sidebar:hover .st-sidebar-header .st-icon-btn,
.st-sidebar-header .st-icon-btn:focus-visible { opacity: 1; }
@media (hover: none) { .st-sidebar-header .st-icon-btn { opacity: 1; } }
.st-sidebar-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 32px 108px 33px; overscroll-behavior: contain; }

.st-header {
  position: fixed; top: 0; right: 0; left: var(--sidebar-w); height: var(--header-h); z-index: 90;
  background: var(--st-bg); display: flex; align-items: center; padding: 0 16px 0 18px;
  transition: left 300ms ease;
}
.sidebar-collapsed .st-header { left: 0; }
#sidebarOpen { visibility: hidden; opacity: 0; transition: opacity 200ms; }
.sidebar-collapsed #sidebarOpen { visibility: visible; opacity: 1; }

.st-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: rgba(49, 51, 63, 0.75); cursor: pointer;
}
.st-icon-btn:hover { background: var(--st-hover); color: var(--st-text); }

.st-main { margin-left: var(--sidebar-w); transition: margin-left 300ms ease; outline: none; }
.sidebar-collapsed .st-main { margin-left: 0; }
.st-block-container {
  max-width: 1100px !important; margin: 0 auto; padding: 99px 90px 54px; /* 81px + the 18px gap left by the app's invisible <style> element */
  display: flex; flex-direction: column; gap: 18px;
}
.st-block-container > * { margin-top: 0; }

.st-backdrop { display: none; }

@media (prefers-reduced-motion: reduce) {
  .st-sidebar, .st-header, .st-main, #sidebarOpen, .exp-icon { transition: none !important; }
}

/* ---------- Sidebar contents ---------- */
.st-block { display: flex; flex-direction: column; gap: 18px; }
.sb-heading {
  margin: 0; padding: 13.5px 0 18px; font-size: 20.25px; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.005em; color: var(--st-text); margin-bottom: -18px;
}
.st-sidebar button, .st-sidebar label, .st-sidebar p, .st-sidebar span, .st-sidebar .st-caption,
.st-sidebar .st-metric-value { font-size: 15px !important; line-height: 1.45 !important; }

.st-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  min-height: 45px; padding: 4.5px 13.5px; border-radius: 12px; cursor: pointer;
  font-size: 15px; line-height: 1.45; text-align: center; user-select: none;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
/* Contrast fix (reference build): Streamlit's #FF4B4B gives 3.3:1 with white text.
   #D13036 = 5.02:1, hover #B8262B = 6.27:1, active #A82226 = 7.19:1 (WCAG AA >= 4.5:1). */
.st-btn-primary { background: #D13036; border: 1px solid #D13036; color: #fff; }
.st-btn-primary:hover { background: #B8262B; border-color: #B8262B; }
.st-btn-primary:active { background: #A82226; border-color: #A82226; }
.st-btn-secondary { background: rgb(249, 249, 251); border: 1px solid var(--st-border); color: var(--st-text); }
.st-btn-secondary:hover { background: rgb(230, 234, 241); }
.st-btn-secondary:active, .st-btn-secondary.is-focused { background: rgb(230, 234, 241); }
.st-btn:focus-visible { outline: none; box-shadow: 0 0 0 0.2rem rgba(255, 75, 75, 0.5); }

.st-text-input {
  height: 45px; background: #fff; border: 1px solid #fff; border-radius: 9px; overflow: hidden;
  transition: border-color 120ms;
}
.st-text-input:focus-within { border-color: var(--st-primary); }
.st-text-input input {
  width: 100%; height: 100%; border: 0; outline: none; background: transparent;
  padding: 9px 9px 9px 13.5px; font-size: 15.75px !important; line-height: 1.4 !important;
}
.st-text-input input::placeholder { color: rgba(49, 51, 63, 0.6); opacity: 1; }

.sb-thread-list { display: flex; flex-direction: column; gap: 18px; }
.sb-thread-list:empty { display: none; }
.sb-thread-list .st-btn { white-space: normal; overflow-wrap: anywhere; }

.st-divider { margin: 18px 0; border: 0; border-top: 1px solid var(--st-border); height: 0; }

.st-caption { font-size: 15.75px; line-height: 1.7; color: var(--st-caption); overflow-wrap: anywhere; }
.st-metric { display: flex; flex-direction: column; }
.st-metric-label { font-size: 15px; line-height: 1.45; color: var(--st-text); min-height: 27px; display: flex; align-items: center; }
.st-metric-value { font-size: 23.4px; color: var(--st-text); padding-bottom: 4.5px; white-space: normal; overflow-wrap: anywhere; }

/* st.text: preformatted plain text (no markdown) */
.st-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-sans); font-size: 18px; line-height: 1.6; margin: 0; }
.st-sidebar .st-text { font-size: 15px !important; line-height: 1.45 !important; }

/* ---------- Expanders (st.expander) ---------- */
.st-expander { border: 1px solid var(--st-border); border-radius: 9px; background: transparent; }
.st-expander > summary {
  list-style: none; display: flex; align-items: center; gap: 9px;
  padding: 4.5px 13.5px; min-height: 43px; border-radius: 9px; cursor: pointer;
  font-size: 18px; line-height: 1.6; user-select: none;
}
.st-expander > summary::-webkit-details-marker { display: none; }
/* Contrast fix (reference build): hover text uses #B8262B (>= 5.4:1 on every expander/sidebar
   background) instead of Streamlit's #FF4B4B (2.9-3.3:1). */
.st-expander > summary:hover .exp-label { color: #B8262B; }
.st-expander > summary:hover .exp-icon { color: #B8262B; }
.st-expander[open] > summary { background: var(--st-open-summary); border-radius: 9px 9px 0 0; }
.st-expander.has-bubbles, .st-expander.has-bubbles[open] > summary { background: #e8f2e3 !important; }
.exp-icon {
  flex: none; width: 20px; height: 20px; color: var(--st-text);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 6.6 14.8 12l-5.4 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 6.6 14.8 12l-5.4 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  transition: transform 150ms ease;
}
.st-expander[open] > summary .exp-icon { transform: rotate(90deg); }
.exp-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-expander-details { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.st-sidebar .st-expander > summary { font-size: 15px; }
.st-sidebar .st-expander[open] > summary { background: transparent; }
.st-sidebar .st-expander-details { padding: 9px 18px 18px; }

/* ---------- Main view: home ---------- */
.hero { text-align: center; padding: 13vh 0 5vh; line-height: 1.7; margin-bottom: -18px; }
.hero-title { font-size: 45.9px; font-weight: 620; letter-spacing: -0.03em; color: #213e31; line-height: 1.7; }
.hero-subtitle { font-size: 20.88px; margin-top: 0.6rem; color: #66786d; /* app: #6f8176, darkened slightly for AA contrast */ line-height: 1.7; }

/* ---------- Main view: thread ---------- */
.main-heading { font-size: 27px; font-weight: 750; color: #245541; letter-spacing: 0.02em; line-height: 1.7; margin-bottom: -18px; }
.st-main .st-caption { line-height: 1.7; }
/* Streamlit markdown elements carry margin-bottom:-1rem; folded into the margins below */
.subheading { font-size: 18px; color: #66796e; /* app: #72867a, darkened slightly for AA contrast */ margin: 0.2rem 0 calc(1.1rem - 18px); line-height: 1.7; }
.user-question {
  background: #eef2ee; border-radius: 18px; padding: 13px 17px; margin: 16px 0 -6px 17%;
  font-size: 20.7px; line-height: 1.65; white-space: pre-wrap; color: #26372c; overflow-wrap: anywhere;
}
.answer-heading { font-size: 18.9px; font-weight: 700; color: #2b5c44; margin: 18px 0 -11px; line-height: 1.7; }

/* Streamlit markdown container */
.st-md { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.st-md > :first-child { margin-top: 0; }
.st-md > :last-child { margin-bottom: 0; }
.st-md p, .st-md li { font-size: 18px; line-height: 1.7; }
.st-md p { margin: 0 0 18px; }
.st-md strong { font-weight: 600; }
.st-md ul, .st-md ol { margin: 0 0 18px; padding-left: 1.5em; }
.st-md li { margin: 3.6px 0 0; padding-left: 0.2em; }
.st-md li > p { margin: 0 0 9px; }
.st-md li > ul, .st-md li > ol { margin-bottom: 0; }
.st-md h1, .st-md h2, .st-md h3, .st-md h4, .st-md h5, .st-md h6 { font-weight: 600; color: var(--st-text); margin: 0; scroll-margin-top: 80px; position: relative; }
.st-md h1 { font-size: 36px; line-height: 1.2; padding: 22.5px 0 18px; }
.st-md h2 { font-size: 29.7px; line-height: 1.2; padding: 18px 0 18px; }
.st-md h3 { font-size: 24.12px; line-height: 1.2; padding: 13.5px 0 18px; letter-spacing: -0.005em; }
.st-md h4 { font-size: 20.25px; line-height: 1.2; padding: 13.5px 0 18px; }
.st-md hr { margin: 36px 0; border: 0; border-top: 1px solid var(--st-border); }
.st-md code {
  font-family: var(--font-mono); font-size: 0.75em; color: var(--st-code-color);
  background: var(--st-open-summary); border-radius: 4.5px; padding: 0.15em 0.3em;
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.st-md a { color: rgb(0, 104, 201); }
.heading-anchor {
  display: inline-flex; align-items: center; margin-left: 9px; vertical-align: middle;
  color: rgba(49, 51, 63, 0.6); opacity: 0; transition: opacity 120ms; text-decoration: none;
}
.st-md h1:hover .heading-anchor, .st-md h2:hover .heading-anchor, .st-md h3:hover .heading-anchor,
.st-md h4:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.heading-anchor:hover { color: var(--st-text); }
.st-md .katex { font-size: 1.1em; }
.katex-error { color: #cc0000; }

/* ---------- Discussion bubbles (Additions 8B + 9A) ---------- */
.bubble-stack { display: flex; flex-direction: column; gap: 18px; }
.bubble {
  position: relative; border-radius: 23px; padding: 17px 21px; max-width: 84%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); white-space: pre-wrap; overflow-wrap: anywhere;
  line-height: 1.65; margin: 11px 0;
}
.bubble.qwen { background: #171a18; color: #fff; border: 1px solid #171a18; border-bottom-left-radius: 7px; margin-left: 13px; margin-right: auto; }
.bubble.muse { background: #fff; color: #111; border: 1px solid #cbd9c9; border-bottom-right-radius: 7px; margin-right: 13px; margin-left: auto; }
.bubble.qwen::after { content: ""; position: absolute; width: 12px; height: 19px; bottom: 0; left: -9px; background: #171a18; border-bottom-right-radius: 14px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.bubble.muse::after { content: ""; position: absolute; width: 12px; height: 19px; bottom: 0; right: -9px; background: #ffffff; border-bottom-left-radius: 14px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.bubble-name { font-size: 15px; font-weight: 750; margin-bottom: 5px; white-space: normal; line-height: 1.65; }
.recorded-text { font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.bubble-text { font-size: 18px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-text p, .bubble-text li { font-size: 18px; line-height: 1.7; }
.bubble-text p { margin: 0 0 18px; }
.bubble-text strong { font-weight: 600; }
.bubble-text ul, .bubble-text ol { margin: 0 0 18px; padding-left: 1.5em; }
.bubble-text li { margin: 3.6px 0 0; padding-left: 0.2em; }
.bubble-text li > p { margin: 0 0 9px; }
.bubble-text h1, .bubble-text h2, .bubble-text h3, .bubble-text h4 { font-weight: 600; margin: 0; padding: 9px 0 9px; line-height: 1.2; }
.bubble-text code {
  font-family: var(--font-mono); font-size: 0.75em; border-radius: 4.5px; padding: 0.15em 0.3em;
  color: var(--st-code-color); background: var(--st-open-summary);
}
.bubble-text .katex { font-size: 1.1em; }
.bubble-meta { font-size: 13px; margin-top: 8px; white-space: normal; line-height: 1.65; }
.bubble.qwen .bubble-name, .bubble.qwen .bubble-text, .bubble.qwen .bubble-meta { color: #fff; }
.bubble.qwen .bubble-meta { opacity: 0.75; }
.bubble.muse .bubble-name, .bubble.muse .bubble-text { color: #111; }
.bubble.muse .bubble-meta { color: #5e675d; }
.has-bubbles .st-expander-details { gap: 0; }

/* ---------- st.json (react-json-view look) ---------- */
.st-json-wrap { position: relative; }
.st-json {
  font-family: var(--font-mono); font-size: 15.75px; line-height: 1.6; background: #fff;
  white-space: pre-wrap; color: var(--st-text); cursor: default;
}
.st-json .rj-row { padding: 3px 5px 3px 20px; border-left: 1px solid rgb(235, 235, 235); }
.st-json .rj-children { margin-left: 6px; }
.st-json .rj-toggle {
  display: inline-block; width: 17px; cursor: pointer; color: rgb(88, 110, 117); border: 0; background: none; padding: 0 0 0 2px;
  vertical-align: top; line-height: inherit; font: inherit;
}
.st-json .rj-toggle svg { width: 1em; height: 1em; vertical-align: -0.12em; transition: transform 100ms; }
.st-json .rj-node.is-collapsed > .rj-head .rj-toggle svg { transform: rotate(-90deg); }
.st-json .rj-node.is-collapsed > .rj-children { display: none; }
.st-json .rj-node.is-collapsed > .rj-close { display: none; }
.st-json .rj-ellipsis { display: none; color: rgb(88, 110, 117); cursor: pointer; }
.st-json .rj-node.is-collapsed > .rj-head .rj-ellipsis { display: inline; }
.st-json .rj-head { cursor: pointer; }
.st-json .rj-key { color: rgb(0, 43, 54); letter-spacing: 0.5px; opacity: 0.85; }
.st-json .rj-index { color: #1d6fa8; opacity: 0.85; }
.st-json .rj-colon { margin: 0 5px; color: rgb(0, 43, 54); }
.st-json .rj-brace { font-weight: bold; color: rgb(0, 43, 54); }
.st-json .rj-value { display: inline-block; padding-right: 6px; vertical-align: top; }
.st-json .rj-key, .st-json .rj-index, .st-json .rj-colon { display: inline-block; vertical-align: top; }
.st-json .rj-string { color: rgb(203, 75, 22); word-break: break-all; }
.st-json .rj-number { color: #1d6fa8; }
.st-json .rj-float { color: #5e6b00; }
.st-json .rj-bool { color: rgb(42, 161, 152); }
.st-json .rj-null {
  display: inline-block; font-size: 11px; padding: 1px 2px; border-radius: 3px; vertical-align: middle;
  background: rgb(235, 235, 235); color: #a8246a; font-weight: 500; line-height: 1.4;
}
.st-json .rj-empty { color: rgb(88, 110, 117); }
.st-json-copy {
  position: absolute; top: 0; right: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 13.5px;
  border: 1px solid var(--st-border); border-radius: 7px; background: #fff; color: rgba(49, 51, 63, 0.8); cursor: pointer;
  opacity: 0; transition: opacity 120ms;
}
.st-json-wrap:hover .st-json-copy, .st-json-copy:focus-visible, .st-json-copy.is-done { opacity: 1; }
@media (hover: none) { .st-json-copy { opacity: 1; } }
.st-json-copy:hover { border-color: #B8262B; color: #B8262B; }

/* ---------- Bottom controls ---------- */
.st-checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; line-height: 1.45; align-self: flex-start; }
.st-checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.st-checkbox .cb-box {
  width: 18px; height: 18px; border: 1px solid rgba(49, 51, 63, 0.3); border-radius: 4.5px; background: #fff; flex: none;
}
.st-checkbox.is-disabled .cb-label { color: rgba(49, 51, 63, 0.4); }
.st-checkbox.is-disabled .cb-box { background: rgba(49, 51, 63, 0.03); border-color: rgba(49, 51, 63, 0.15); }
.st-help {
  display: inline-flex; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: rgba(49, 51, 63, 0.6); cursor: help; border-radius: 50%;
}
.st-help svg { width: 18px; height: 18px; }
.st-tooltip {
  position: fixed; z-index: 500; max-width: 420px; padding: 6px 10px; font-size: 13.5px; line-height: 1.45;
  background: #fff; color: var(--st-text); border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}

.st-form { border: 1px solid var(--st-border); border-radius: 9px; padding: 17px; display: flex; flex-direction: column; gap: 18px; }
.st-widget-label { font-size: 15.75px; line-height: 1.6; margin-bottom: 7px; display: block; }
.st-form.is-readonly .st-widget-label { color: rgba(49, 51, 63, 0.4); }
.st-textarea {
  display: block; width: 100%; height: 85px; resize: none; border: 0; border-radius: 14px; background: var(--st-secondary-bg);
  padding: 13.5px; font-size: 18px; line-height: 1.5; outline: none;
}
.st-textarea:disabled { cursor: not-allowed; color: rgba(49, 51, 63, 0.4); }
.st-textarea::placeholder { color: rgba(49, 51, 63, 0.45); opacity: 1; }
.st-form-row { display: grid; grid-template-columns: 5fr 1fr; gap: 18px; align-items: start; }
.st-dropzone {
  display: flex; align-items: center; gap: 18px; padding: 13.5px; border-radius: 9px; background: var(--st-secondary-bg);
  min-height: 77px; cursor: not-allowed;
}
.st-upload-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 4.5px 13.5px; min-height: 45px; font-size: 18px; border-radius: 9px;
  border: 1px solid rgba(49, 51, 63, 0.1); background: #fff; color: rgba(49, 51, 63, 0.4); cursor: not-allowed;
}
.st-upload-btn svg { width: 18px; height: 18px; }
.st-dropzone-note { font-size: 13.5px; color: rgba(49, 51, 63, 0.4); }
.st-ask-wrap { padding-top: 28.8px; }
.st-btn-ask { border-radius: 9px; font-size: 18px; line-height: 1.6; }
.st-btn[disabled], .st-btn[aria-disabled="true"] {
  background: transparent; border: 1px solid var(--st-border); color: rgba(49, 51, 63, 0.4); cursor: not-allowed;
}
.readonly-note { font-size: 15.75px; line-height: 1.7; color: var(--st-caption); margin: 0; }
.link-btn {
  border: 0; background: none; padding: 0; font: inherit; color: #c42b2b; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: rgba(255, 75, 75, 0.45);
}
.link-btn:hover { text-decoration-color: #c42b2b; }

/* Run details */
.st-radio-group { display: flex; flex-wrap: wrap; gap: 4px 18px; border: 0; margin: 0; padding: 0; }
.st-radio-group legend { font-size: 15.75px; margin-bottom: 7px; padding: 0; }
.st-radio { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; cursor: pointer; }
.st-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-radio .rd-dot {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(49, 51, 63, 0.3); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.st-radio input:checked + .rd-dot { background: var(--st-primary); border-color: var(--st-primary); }
.st-radio input:checked + .rd-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.st-radio input:focus-visible + .rd-dot { box-shadow: 0 0 0 0.2rem rgba(255, 75, 75, 0.5); }
.diag-heading { font-size: 15.75px; font-weight: 600; margin: 0; color: var(--st-text); }
.diag-table { width: 100%; border-collapse: collapse; font-size: 15.75px; line-height: 1.5; }
.diag-table th, .diag-table td { text-align: left; vertical-align: top; padding: 6px 9px; border-bottom: 1px solid rgba(49, 51, 63, 0.1); overflow-wrap: anywhere; }
.diag-table th { font-weight: 600; width: 38%; color: rgba(49, 51, 63, 0.85); }
.diag-table td code, .diag-table td .mono { font-family: var(--font-mono); font-size: 0.86em; }
.diag-table.msgs th { width: auto; }
.diag-table.msgs td.num, .diag-table.msgs th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .st-main, .sidebar-collapsed .st-main { margin-left: 0; }
  .st-header, .sidebar-collapsed .st-header { left: 0; }
  .st-sidebar { width: min(var(--sidebar-w), 85vw); box-shadow: 0 0 24px rgba(0, 0, 0, 0.18); }
  .sidebar-collapsed .st-sidebar { transform: translateX(-105%); }
  .st-backdrop { display: block; position: fixed; inset: 0; z-index: 95; background: rgba(49, 51, 63, 0.35); }
  .st-backdrop[hidden] { display: none; }
  #sidebarOpen { visibility: visible; opacity: 1; }
  .st-app:not(.sidebar-collapsed) #sidebarOpen { visibility: hidden; }
  .st-block-container { padding: 99px 18px 54px; }
  .st-form-row { grid-template-columns: 1fr; }
  .st-ask-wrap { padding-top: 0; }
  .user-question { margin-left: 17%; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .st-dropzone { flex-wrap: wrap; }
}
@media print {
  .st-sidebar, .st-header, .st-backdrop { display: none !important; }
  .st-main { margin-left: 0 !important; }
}
