/* Telehealth flow — office hours and direct 1:1 support */

.th-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.th-stage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
.th-pathbar {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 32px;
  display: flex;
  gap: 10px;
}
.th-path {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.th-path span {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.th-path.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.th-path.is-active span { color: var(--sand); }

.th-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: thRise 0.58s ease both;
}

.th-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.th-h {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.th-h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}
.th-h1 em { font-style: italic; color: var(--accent); }
.th-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 64ch;
}
.th-section { display: flex; flex-direction: column; gap: 14px; }
.th-row { display: flex; gap: 24px; flex-wrap: wrap; }

/* providers */
.th-providers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.th-provider {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 16px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  position: relative;
}
.th-provider:hover { border-color: var(--ink-mute); }
.th-provider.is-active {
  border-color: var(--accent);
  background: rgba(193,123,75,0.06);
}
.th-provider-avatar {
  width: 46px; height: 46px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex: 0 0 46px;
}
.th-provider-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.th-provider-sub {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.th-provider-role {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-top: 6px;
}
.th-provider-check {
  position: absolute;
  top: 12px; right: 14px;
  color: var(--accent);
  font-size: 14px;
}

/* calendar */
.th-cal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  border: 1px solid var(--rule);
  padding: 14px;
  background: var(--bg-card);
}
.th-cal-day {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px;
}
.th-cal-dayhead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.th-cal-dayname {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.th-cal-daydate {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.th-cal-times {
  display: flex; flex-direction: column; gap: 6px;
}
.th-time {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.th-time:hover { border-color: var(--ink-mute); }
.th-time.is-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.th-tz {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* mode pills */
.th-mode { display: flex; gap: 10px; }
.th-mode-pill {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 12px 22px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.th-mode-pill:hover { border-color: var(--ink-mute); }
.th-mode-pill.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.th-mode-icon { font-size: 12px; }

/* topics */
.th-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.th-topic {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.th-topic:hover { border-color: var(--ink-mute); }
.th-topic.is-active {
  border-color: var(--accent);
  background: rgba(193,123,75,0.06);
}
.th-topic-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.th-topic-sub {
  font-size: 13px;
  color: var(--ink-mute);
}
.th-notes {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  min-height: 70px;
}
.th-notes:focus { outline: none; border-color: var(--accent); }
.th-context {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* integrated office-hours room */
.th-room {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 32px 96px;
}
.th-room-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  animation: thRise 0.58s ease both;
}
.th-room-title {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  font-weight: 400;
}
.th-room-status {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.th-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: 0 0 8px;
}
.th-room-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.th-room-session {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 999px;
  padding: 7px 10px;
}
.th-room-session strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
}
.th-room-session span,
.th-room-session em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.th-room-session em {
  color: var(--accent);
}
.th-room-session input {
  width: 104px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  padding: 7px 9px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0;
}
.th-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: stretch;
}
.th-room-main,
.th-room-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.th-room-access {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 32px;
}
.th-room-access h1 {
  margin: 8px 0 0;
  font-weight: 400;
}
.th-room-side {
  min-height: 0;
}
.th-stage-video {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 20%, rgba(193,123,75,0.14), transparent 28%),
    linear-gradient(135deg, var(--ink) 0%, #332016 100%);
  color: var(--bg);
  overflow: hidden;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: thStageIn 0.72s ease both;
}
.th-stage-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(244,237,228,0.08) 44%, transparent 58%);
  transform: translateX(-130%);
  animation: thSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}
.th-recording-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  border: 1px solid rgba(244,237,228,0.18);
  background: rgba(43,24,16,0.5);
  color: rgba(244,237,228,0.78);
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.th-recording-pill:hover,
.th-recording-pill.is-active {
  border-color: rgba(224,82,74,0.45);
  background: rgba(224,82,74,0.18);
  color: var(--bg);
}
.th-recording-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(244,237,228,0.45);
}
.th-recording-pill span.is-recording {
  background: #e0524a;
  border-color: #e0524a;
}
.th-stage-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.th-stage-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(244,237,228,0.28);
  background: rgba(244,237,228,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 38px;
}
.th-stage-name {
  font-size: 34px;
  letter-spacing: -0.015em;
}
.th-stage-role {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244,237,228,0.68);
}
.th-stage-member {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 172px;
  height: 124px;
  border: 1px solid rgba(244,237,228,0.22);
  background: rgba(244,237,228,0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.th-stage-member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
}
.th-stage-member .mono {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(244,237,228,0.7);
}
.th-video-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(244,237,228,0.18);
  background: rgba(43,24,16,0.7);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  animation: thControlsIn 0.62s ease both;
  animation-delay: 0.16s;
}
.th-video-controls button {
  border: 1px solid rgba(244,237,228,0.18);
  background: rgba(244,237,228,0.1);
  color: var(--bg);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.th-video-controls button:hover,
.th-video-controls button:focus-visible {
  transform: translateY(-4px) scale(1.04);
  background: rgba(244,237,228,0.18);
}
.th-video-controls button.is-on {
  border-color: var(--accent-soft);
  background: rgba(193,123,75,0.32);
}
.th-video-controls button.is-recording {
  border-color: rgba(224,82,74,0.6);
  background: rgba(224,82,74,0.26);
}
.th-video-controls button.is-muted,
.th-video-controls button.is-end {
  border-color: rgba(224,82,74,0.5);
  background: rgba(224,82,74,0.24);
}
.th-video-controls button.is-end {
  background: #c2362b;
  border-color: #c2362b;
}
.th-video-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.th-video-controls button.is-recording svg {
  fill: currentColor;
  stroke: currentColor;
}
.th-host-drawer {
  position: absolute;
  left: 24px;
  top: 70px;
  width: 260px;
  max-height: calc(100% - 154px);
  border: 1px solid rgba(244,237,228,0.22);
  background: rgba(43,24,16,0.86);
  color: var(--bg);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
  overflow: auto;
  animation: thDrawerIn 0.28s ease both;
}
.th-host-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 6px;
}
.th-host-drawer-head strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}
.th-host-drawer button {
  border: 1px solid rgba(244,237,228,0.18);
  background: rgba(244,237,228,0.08);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.th-host-drawer-head button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.th-host-peers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.th-host-peer {
  border: 1px solid rgba(244,237,228,0.16);
  background: rgba(244,237,228,0.06);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}
.th-host-peer span {
  font-size: 12px;
  color: var(--bg);
}
.th-host-peer em {
  font-style: normal;
  font-size: 9px;
  color: rgba(244,237,228,0.62);
}
.th-host-peer button {
  padding: 6px 8px;
  font-size: 10px;
  grid-column: span 1;
}
.th-room-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.th-room-control {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 8px;
  color: var(--ink);
  min-height: 82px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.th-room-control:hover,
.th-room-control:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(193,123,75,0.42);
  box-shadow: 0 16px 30px rgba(43,24,16,0.08);
}
.th-room-control input {
  display: none;
}
.th-room-control span {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.th-room-control em {
  font-style: normal;
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.th-room-control.is-primary,
.th-room-control.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.th-room-control.is-primary em,
.th-room-control.is-active em {
  color: rgba(244,237,228,0.74);
}
.th-room-compose,
.th-room-panel {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: thRise 0.58s ease both;
}
.th-room-panel { animation-delay: 0.08s; }
.th-tabs-panel {
  padding: 14px;
  flex: 1;
  min-height: 0;
}
.th-side-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 4px;
}
.th-side-tabs button {
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  padding: 10px 4px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.th-side-tabs button:hover,
.th-side-tabs button:focus-visible {
  transform: translateY(-2px);
  color: var(--ink);
}
.th-side-tabs button.is-active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
  border-radius: 6px;
}
.th-tab-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.th-tab-help {
  margin: -4px 0 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.th-room-compose h2 {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.th-care-notes {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.th-care-notes-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.th-care-notes h2 {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.th-care-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--rule);
}
.th-care-notes-grid > div {
  background: var(--bg);
  padding: 18px;
}
.th-care-notes-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}
.th-care-notes-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
}
.th-provider-panel,
.th-live-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.th-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.th-mini-toggle {
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-mute);
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.th-panel-off {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
}
.th-panel-off strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.th-panel-off span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.th-panel-provider {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
}
.th-panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.th-panel-provider strong,
.th-question-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.th-question-item small {
  display: block;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-top: 3px;
}
.th-panel-provider span,
.th-question-item span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-mute);
  margin-top: 2px;
}
.th-panel-provider em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.th-question-item {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.th-question-item:hover {
  transform: translateY(-3px);
  border-color: rgba(193,123,75,0.42);
  box-shadow: 0 12px 24px rgba(43,24,16,0.08);
}
.th-question-item .mono {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 1px;
}
.th-question-item button {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  color: var(--ink-mute);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  cursor: pointer;
}
.th-empty-line {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  color: var(--ink-mute);
  font-size: 13px;
  padding: 12px;
}
.th-roster-note {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
}
.th-roster-note strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 5px;
}
.th-roster-note span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.th-office-question {
  min-height: 150px;
}
.th-office-note,
.th-office-error {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.th-office-error { color: #9f2f1f; }
.th-flow-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.th-flow-list > div {
  background: var(--bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-flow-list strong {
  font-size: 14px;
  color: var(--ink);
}
.th-flow-list span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.th-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.th-tools-grid span {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: var(--ink-mute);
}
.th-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.th-chat-message {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
}
.th-chat-message strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 5px;
}
.th-chat-message span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.th-chat-me {
  border-color: var(--accent);
}
.th-chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}
.th-chat-compose input {
  min-width: 0;
  height: 64px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  padding: 0 18px;
  font: inherit;
}
.th-chat-compose button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  padding: 0 15px;
  cursor: pointer;
}

@keyframes thRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes thStageIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes thControlsIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes thDrawerIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes thSweep {
  0%, 42% { transform: translateX(-130%); }
  72%, 100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .th-card,
  .th-room-top,
  .th-stage-video,
  .th-video-controls,
  .th-host-drawer,
  .th-room-compose,
  .th-room-panel {
    animation: none;
  }
  .th-stage-video::after {
    animation: none;
    display: none;
  }
  .th-video-controls button,
  .th-room-control,
  .th-side-tabs button,
  .th-question-item {
    transition: none;
  }
  .th-video-controls button:hover,
  .th-video-controls button:focus-visible,
  .th-room-control:hover,
  .th-room-control:focus-visible,
  .th-side-tabs button:hover,
  .th-side-tabs button:focus-visible,
  .th-question-item:hover {
    transform: none;
  }
}
.th-control-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.th-control-groups > div {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
}
.th-control-groups strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 5px;
}
.th-control-groups span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.th-transcript-body {
  gap: 0;
}
.th-transcript-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.th-transcript-line {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
}
.th-transcript-line em {
  font-style: normal;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.th-transcript-line strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}
.th-transcript-line span,
.th-transcript-line p {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}

/* actions row */
.th-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  flex-wrap: wrap;
}
.th-summary {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.th-send-question {
  margin-left: auto;
}

/* ─── Pre-call ────────────────────────────────────────────────────── */
.th-precall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.th-precall-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.th-precall-when {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.th-precall-time {
  font-size: 32px;
  font-family: var(--serif);
  letter-spacing: -0.01em;
}
.th-precall-time span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-left: 6px;
}
.th-precall-mode {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.th-precall-prov {
  display: flex; align-items: center; gap: 12px;
}
.th-precall-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 1px solid var(--rule);
}
.th-precall-prov-name {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.th-precall-prov-role {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.th-precall-topic {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.th-precall-notes {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin-top: 4px;
}

.th-precheck {
  display: flex; flex-direction: column; gap: 14px;
}
.th-precheck-list {
  display: flex; flex-direction: column; gap: 12px;
}
.th-precheck-item {
  display: flex; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 16px 18px;
}
.th-check {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.th-precheck-item strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.th-precheck-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ─── In-call ──────────────────────────────────────────────────────── */
.th-call {
  min-height: 100vh;
  background: #0e0a08;
  color: var(--bg);
  display: flex; flex-direction: column;
}
.th-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(244,237,228,0.08);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244,237,228,0.7);
}
.th-call-rec {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d97757;
}
.th-call-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e0524a;
  animation: th-pulse 1.4s ease-in-out infinite;
}
@keyframes th-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.th-call-with { color: rgba(244,237,228,0.8); }
.th-call-topic { color: rgba(244,237,228,0.5); }

.th-call-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  padding: 24px 28px;
  position: relative;
  min-height: 0;
}

.th-tile {
  background: #1a1310;
  border: 1px solid rgba(244,237,228,0.1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.th-tile-provider {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #2a1810 0%, #120906 80%);
}
.th-tile-video {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative;
}
.th-tile-video video,
.th-tile-self-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.th-tile-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(244,237,228,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  border: 2px solid rgba(244,237,228,0.12);
  z-index: 2;
}
.th-tile-pulse {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px solid rgba(193,123,75,0.4);
  animation: th-tile-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes th-tile-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.8; }
}
.th-tile-name {
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--bg);
  z-index: 2;
}
.th-tile-role {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244,237,228,0.5);
  z-index: 2;
}

.th-tile-phone {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 40px;
}
.th-tile-phone-icon {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 8px;
}
.th-tile-waveform {
  display: inline-flex; gap: 4px; align-items: center; height: 60px;
  margin-top: 16px;
}
.th-tile-waveform span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: th-wave 1.2s ease-in-out infinite;
  display: inline-block;
}
@keyframes th-wave {
  0%, 100% { height: 8px; }
  50% { height: 48px; }
}

/* self preview */
.th-tile-self {
  position: absolute;
  right: 36px; bottom: 36px;
  width: 200px; height: 140px;
  z-index: 5;
  border: 1px solid rgba(244,237,228,0.2);
  background: linear-gradient(135deg, rgba(193,123,75,0.2), rgba(193,123,75,0.05));
}
.th-tile-self-video, .th-tile-self-off {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
}
.th-tile-self-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244,237,228,0.85);
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  z-index: 2;
}
.th-tile-self-letter {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
}

/* side panel */
.th-call-side {
  background: rgba(244,237,228,0.04);
  border: 1px solid rgba(244,237,228,0.08);
  border-radius: 4px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}
.th-call-side-h {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244,237,228,0.5);
}
.th-call-side-card {
  background: rgba(244,237,228,0.04);
  border: 1px solid rgba(244,237,228,0.08);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.th-call-side-card .th-h {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244,237,228,0.5);
}
.th-call-side-topic {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--bg);
  letter-spacing: -0.01em;
}
.th-call-side-notes {
  font-size: 12px;
  color: rgba(244,237,228,0.7);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}
.th-call-side-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.th-call-side-list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(244,237,228,0.85);
  line-height: 1.5;
}

/* chat */
.th-call-chat {
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
  min-height: 200px;
}
.th-call-msg {
  padding: 8px 12px;
  border-radius: 4px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.4;
}
.th-call-msg-provider {
  background: rgba(244,237,228,0.06);
  align-self: flex-start;
}
.th-call-msg-me {
  background: var(--accent);
  color: var(--bg);
  align-self: flex-end;
}
.th-call-msg-text {}
.th-call-msg-t {
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-top: 4px;
}
.th-call-chat-input {
  display: flex; gap: 8px;
  border-top: 1px solid rgba(244,237,228,0.1);
  padding-top: 10px;
}
.th-call-chat-input input {
  flex: 1;
  background: rgba(244,237,228,0.06);
  border: 1px solid rgba(244,237,228,0.12);
  color: var(--bg);
  padding: 8px 12px;
  font-size: 13px;
}
.th-call-chat-input input:focus { outline: none; border-color: var(--accent); }
.th-call-chat-input button {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* call controls */
.th-call-controls {
  display: flex; justify-content: center; gap: 14px;
  padding: 22px 28px 32px;
  border-top: 1px solid rgba(244,237,228,0.08);
  background: rgba(0,0,0,0.3);
}
.th-ctl {
  background: rgba(244,237,228,0.06);
  border: 1px solid rgba(244,237,228,0.12);
  color: var(--bg);
  padding: 12px 20px;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.th-ctl:hover { background: rgba(244,237,228,0.12); }
.th-ctl.is-off {
  background: rgba(224, 82, 74, 0.16);
  border-color: rgba(224, 82, 74, 0.4);
  color: #f4a098;
}
.th-ctl.is-on {
  background: rgba(193, 123, 75, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}
.th-ctl-icon { font-size: 16px; }
.th-ctl-label {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.th-ctl-end {
  background: #c2362b;
  border-color: #c2362b;
  color: var(--bg);
}
.th-ctl-end:hover {
  background: #e0524a;
  border-color: #e0524a;
}

/* ─── Summary ──────────────────────────────────────────────────────── */
.th-summary-card {
  max-width: 880px;
  margin: 0 auto;
}
.th-sum-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.th-sum-meta > div {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px;
}
.th-sum-section {
  display: flex; flex-direction: column; gap: 12px;
}
.th-sum-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.th-sum-list li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  padding: 10px 14px;
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
}
.th-sum-list-actions li strong {
  font-family: var(--serif);
  font-weight: 400;
}

/* ─── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .th-room { padding: 28px 18px 64px; }
  .th-room-top { flex-direction: column; align-items: flex-start; }
  .th-room-status { width: 100%; align-items: flex-start; }
  .th-room-schedule { width: 100%; }
  .th-room-session { flex: 1 1 150px; justify-content: space-between; }
  .th-room-grid { grid-template-columns: 1fr; }
  .th-room-controls { grid-template-columns: 1fr; }
  .th-care-notes-head { flex-direction: column; }
  .th-care-notes-grid { grid-template-columns: 1fr; }
  .th-stage-video { min-height: 460px; padding: 20px; align-items: flex-start; padding-top: 70px; }
  .th-video-controls { left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 28px); overflow-x: auto; }
  .th-video-controls button { width: 42px; height: 42px; flex: 0 0 42px; }
  .th-host-drawer { left: 16px; right: auto; top: 82px; width: min(220px, calc(100% - 32px)); }
  .th-stage-member { right: 16px; bottom: 88px; width: 128px; height: 96px; }
  .th-stage { padding: 32px 18px 64px; }
  .th-card { padding: 28px 22px; gap: 28px; }
  .th-h1 { font-size: 38px; }
  .th-cal { grid-template-columns: 1fr; padding: 8px; }
  .th-office-session { grid-template-columns: 1fr; }
  .th-office-session em { grid-column: 1; }
  .th-tools-grid { grid-template-columns: 1fr; }
  .th-precall-grid { grid-template-columns: 1fr; }
  .th-call-stage { grid-template-columns: 1fr; }
  .th-call-side { max-height: none; }
  .th-tile-self { width: 120px; height: 90px; right: 14px; bottom: 14px; }
  .th-sum-meta { grid-template-columns: 1fr 1fr; }
  .th-call-controls { gap: 8px; padding: 14px; flex-wrap: wrap; }
  .th-ctl { padding: 10px 14px; }
  .th-call-header { flex-direction: column; gap: 6px; padding: 14px; text-align: center; }
}

@media (max-width: 560px) {
  .th-stage { padding: 22px 12px 48px; }
  .th-card { padding: 22px 16px; border-radius: 10px; gap: 22px; }
  .th-h1 { font-size: 31px; line-height: 0.98; }
  .th-sub { font-size: 15px; line-height: 1.48; }
  .th-row,
  .th-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .th-actions .btn { width: 100%; }
  .th-providers,
  .th-topics {
    grid-template-columns: 1fr;
  }
  .th-provider {
    grid-template-columns: 44px 1fr auto;
    padding: 12px;
  }
  .th-provider-avatar {
    width: 44px;
    height: 44px;
  }
  .th-provider-name { font-size: 16px; }
  .th-provider-sub,
  .th-topic-sub {
    font-size: 12px;
    line-height: 1.35;
  }
  .th-mode {
    display: grid;
    grid-template-columns: 1fr;
  }
  .th-mode-pill {
    justify-content: center;
    min-height: 46px;
  }
  .th-notes {
    min-height: 112px;
    font-size: 16px;
  }
  .th-summary {
    line-height: 1.45;
    text-align: center;
  }
  .th-room {
    padding: 20px 12px 48px;
  }
  .th-room-title {
    font-size: 34px;
    line-height: 0.96;
  }
  .th-room-session {
    flex: 1 1 100%;
  }
  .th-stage-video {
    min-height: 430px;
    padding: 68px 14px 112px;
    border-radius: 12px;
  }
  .th-stage-provider {
    width: 100%;
    max-width: 240px;
  }
  .th-stage-member {
    right: 12px;
    bottom: 84px;
    width: 108px;
    height: 82px;
  }
  .th-video-controls {
    bottom: 14px;
    padding: 8px;
    gap: 8px;
  }
  .th-video-controls button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .th-room-compose,
  .th-room-panel {
    padding: 18px;
    border-radius: 10px;
  }
  .th-room-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .th-room-tabs button {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .th-room-compose textarea {
    min-height: 150px;
  }
  .th-call {
    min-height: 100dvh;
    padding: 10px;
  }
  .th-call-stage {
    gap: 10px;
  }
  .th-tile-provider {
    min-height: 360px;
    border-radius: 12px;
  }
  .th-tile-self {
    width: 94px;
    height: 72px;
    right: 10px;
    bottom: 10px;
  }
  .th-call-side {
    padding: 14px;
    border-radius: 12px;
  }
  .th-call-chat {
    max-height: 260px;
  }
  .th-call-chat-input {
    grid-template-columns: 1fr;
  }
  .th-call-chat-input button {
    width: 100%;
  }
  .th-call-controls {
    justify-content: stretch;
  }
  .th-ctl {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    justify-content: center;
  }
  .th-ctl-end {
    flex-basis: 100%;
  }
  .th-sum-meta {
    grid-template-columns: 1fr;
  }
}
