/* Scoped to the therapy flow; uses HomeoApp's existing blue and Inter typeface. */
body.therapy-guided-open .pro-sidebar-right { display: none; }
body.therapy-guided-open .pro-main { margin-right: 0; }
#therapy-section .tg-shell { max-width: 960px; margin: 0 auto; padding: 36px 32px 90px; color: #172033; font: 16px/1.55 Inter, sans-serif; }
#therapy-section .tg-shell *, #therapy-section .tg-shell *::before { box-sizing: border-box; }
#therapy-section .tg-shell h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
#therapy-section .tg-shell h2 { font-size: 23px; line-height: 1.35; margin: 0 0 10px; }
#therapy-section .tg-shell h3 { font-size: 18px; margin: 0 0 8px; }
#therapy-section .tg-shell p { margin: 0 0 20px; }
#therapy-section .tg-muted { color: #526176; font-size: 15px; }
#therapy-section .tg-context { padding: 16px 0; margin-bottom: 24px; border-bottom: 1px solid #dbe2ee; display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; }
#therapy-section .tg-panel { background:#fff; border:1px solid #dbe2ee; border-radius:12px; padding:28px; margin:20px 0; }
#therapy-section .tg-form { max-width:680px; }
#therapy-section .tg-shell label { display:block; font-size:16px; font-weight:600; margin:20px 0 8px; }
#therapy-section .tg-shell input:not([type=checkbox]), #therapy-section .tg-shell select, #therapy-section .tg-shell textarea { width:100%; min-width:0; min-height:48px; padding:11px 13px; font:inherit; color:#172033; border:1px solid #aab6c8; border-radius:7px; background:#fff; }
#therapy-section .tg-shell textarea { min-height:96px; resize:vertical; }
#therapy-section .tg-shell input[type=checkbox] { width:20px; height:20px; vertical-align:middle; margin-right:9px; }
#therapy-section .tg-shell :focus-visible { outline:3px solid #234ed5; outline-offset:3px; }
#therapy-section .tg-shell [aria-invalid=true] { border-color:#b42318; }
#therapy-section .tg-error { color:#9b1c13; background:#fff1ef; border:1px solid #e8a69f; border-radius:8px; padding:12px 16px; margin:12px 0; }
#therapy-section .tg-error:empty, #therapy-section .tg-notice:empty { display:none; }
#therapy-section .tg-notice { padding:14px 18px; border-radius:8px; background:#ecf7ef; color:#205c32; margin:18px 0; }
#therapy-section .tg-help { display:block; color:#526176; font-size:14px; margin-top:7px; }
#therapy-section .tg-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
#therapy-section .tg-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:22px; }
#therapy-section .tg-shell button { font:600 15px/1.3 Inter,sans-serif; cursor:pointer; border:1px solid #b7c3d7; color:#243a67; background:white; border-radius:8px; padding:12px 17px; min-height:46px; }
#therapy-section .tg-shell button.tg-primary { background:#4967ef; border-color:#4967ef; color:#fff; }
#therapy-section .tg-shell button.tg-danger { color:#a32018; }
#therapy-section .tg-shell button:disabled { opacity:.55; cursor:wait; }
#therapy-section .tg-shell fieldset { border:0; padding:0; margin:0; min-width:0; }
#therapy-section .tg-footer { display:flex; gap:12px; align-items:center; justify-content:space-between; border-top:1px solid #dbe2ee; padding-top:22px; margin-top:30px; flex-wrap:wrap; }
#therapy-section .tg-steps { display:flex; padding:0; margin:24px 0; list-style:none; gap:8px; }
#therapy-section .tg-steps li { flex:1; padding:12px 8px; border-bottom:3px solid #dbe2ee; color:#526176; font-size:14px; }
#therapy-section .tg-steps li[aria-current=step] { border-color:#4967ef; color:#2346b5; font-weight:700; }
#therapy-section .tg-item { padding:20px 0; border-bottom:1px solid #e1e6ef; }
#therapy-section .tg-item:last-child { border-bottom:0; }
#therapy-section .tg-item-head { display:flex; gap:14px; justify-content:space-between; align-items:baseline; flex-wrap:wrap; }
#therapy-section .tg-item p { margin:6px 0; }
#therapy-section .tg-shell details { margin:24px 0; border-top:1px solid #dbe2ee; padding-top:16px; }
#therapy-section .tg-shell summary { color:#263f79; cursor:pointer; font-weight:600; padding:8px 0; }
#therapy-section .tg-summary { background:#f1f5ff; border-left:4px solid #4967ef; padding:16px 20px; margin:22px 0; }
#therapy-section .tg-tags { display:flex; gap:10px; flex-wrap:wrap; color:#526176; font-size:14px; }
#therapy-section .tg-status { color:#2346b5; background:#edf1ff; padding:4px 9px; border-radius:5px; font-size:14px; }
#therapy-section .tg-warning { background:#fff7e7; border-left:4px solid #ac6800; padding:16px; margin:16px 0; }
#therapy-section .tg-tabs { display:flex; gap:10px; flex-wrap:wrap; margin:24px 0; }
#therapy-section .tg-tabs [aria-pressed=true] { background:#edf1ff; border-color:#4967ef; color:#2346b5; }
#therapy-section .tg-ai-text { white-space:pre-wrap; }
#therapy-section .tg-options { display:flex; gap:8px; flex-wrap:wrap; }
#therapy-section .tg-options button { min-width:46px; padding:10px; }
#therapy-section .tg-options [aria-pressed=true] { background:#4967ef; color:white; border-color:#4967ef; }
#therapy-section button[data-danger=true] { color:#9b1c13; border-color:#c94a3c; background:#fff; }
#therapy-section button[data-danger=true]:hover { color:#fff; background:#a82b20; border-color:#a82b20; }
#therapy-section .tg-link { overflow-wrap:anywhere; }
@media(max-width:700px) {
 #therapy-section .tg-shell { padding:24px 16px 110px; font-size:16px; }
 #therapy-section .tg-panel { padding:20px 16px; }
 #therapy-section .tg-row { grid-template-columns:1fr; gap:0; }
 #therapy-section .tg-steps li { font-size:12px; padding:8px 2px; }
 #therapy-section .tg-shell h1 { font-size:26px; }
 #therapy-section .tg-shell h2 { font-size:21px; }
 #therapy-section .tg-footer .tg-primary { flex:1; }
}
#therapy-section .tg-field-error { display:block; margin-top:8px; color:#9b1c13; font-size:14px; }
