/* ZERO TWO: keep settings labels and chat contents readable after the full theme cascade. */
html body #stRoot .st2-menu,
html body #stRoot .st2-grp,
html body #stRoot .st2-item,
html body #stRoot .st2-tx,
html body #stRoot .st2-tx b,
html body #stRoot .st2-tx small {
  visibility: visible !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  -webkit-text-fill-color: currentColor;
}
html body #stRoot .st2-item { color: var(--text, #29263a) !important; }
html body #stRoot .st2-tx b { display: block !important; color: var(--text, #29263a) !important; font-size: 15px !important; }
html body #stRoot .st2-tx small { display: block !important; color: var(--muted, #706d80) !important; }
html body #stRoot .st2-grp h2 { display: block !important; color: var(--muted, #706d80) !important; }
html body .cw-page { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
html body .cw-bodywrap { display: flex !important; flex: 1 1 auto !important; flex-direction: column; min-height: 0 !important; visibility: visible !important; }
html body .cw-body { display: flex !important; flex: 1 1 auto !important; flex-direction: column; min-height: 120px !important; overflow-y: auto !important; visibility: visible !important; opacity: 1 !important; }
html body .cw-intro { display: grid !important; visibility: visible !important; opacity: 1 !important; }
html body .cw-intro p, html body .cw-intro b { display: block !important; visibility: visible !important; opacity: 1 !important; }
html body .cw-load-error button { margin-top: 8px; }
html body .cb-quote { margin: 0 0 7px; padding: 6px 9px; border-left: 3px solid var(--accent, #5140dc); border-radius: 5px; background: color-mix(in srgb, var(--accent, #5140dc) 9%, transparent); display: grid; gap: 2px; font-size: 12px; }
html body .cb-quote span { color: var(--muted, #706d80); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
html body .cb-acts { display: grid !important; gap: 6px !important; max-width: min(480px, 94vw); }
html body .cb-quick-react, html body .cb-more-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
html body .cb-quick-react button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0 !important; font-size: 18px !important; border: 1px solid var(--line2, #e6e2ef) !important; background: var(--surface, #fff) !important; }
html body .cb-more-actions button { min-height: 32px; }
html body .cb-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin: -1px 6px 3px; }
html body .cb-reaction { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 8px; border: 1px solid var(--line2, #e6e2ef); border-radius: 999px; background: var(--surface, #fff); color: var(--text, #29263a); cursor: pointer; }
html body .cb-reaction.mine { border-color: var(--accent, #5140dc); background: color-mix(in srgb, var(--accent, #5140dc) 12%, white); }
html body .cb-reaction small { font-size: 11px; }
html body .cw-compose { display: flex; flex-wrap: wrap; }
html body .cw-replying { order: -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1 0 100%; min-width: 0; padding: 7px 12px; border-left: 3px solid var(--accent, #5140dc); border-radius: 8px; background: var(--surface2, #f3f1fa); }
html body .cw-replying[hidden] { display: none !important; }
html body .cw-replying span { min-width: 0; display: grid; gap: 2px; }
html body .cw-replying small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted, #706d80); }
html body .cw-replying button { flex: none; border: 0; background: none; color: var(--muted, #706d80); font-size: 21px; cursor: pointer; }
