#chat-view[hidden], #chat-view [hidden] { display: none !important; }
#chat-view {
  --tc-ink: #193f36;
  --tc-text: #304e43;
  --tc-muted: #58695d;
  --tc-paper: #faf9f5;
  --tc-line: #d4ddd1;
  color: var(--tc-ink);
}
#chat-view *, #chat-view *::before, #chat-view *::after { box-sizing: border-box; }
#chat-view button, #chat-view textarea { font: inherit; }
#chat-view button, #chat-view a { -webkit-tap-highlight-color: transparent; }
#chat-view :is(a, button, textarea, [tabindex]):focus-visible {
  outline: 3px solid #548256; outline-offset: 4px;
}
.tc-page { width: min(100%, 72rem); margin-inline: auto; padding: clamp(1rem, 2.6vw, 2.25rem) clamp(1rem, 3vw, 2.5rem) 3.5rem; }
.tc-top { display: flex; align-items: center; justify-content: space-between; min-height: 2.35rem; gap: 1rem; }
.tc-home, .tc-reset, .tc-retry { color: #345b47; font-size: .9rem; font-weight: 650; }
.tc-home, .tc-retry { text-decoration: underline; text-underline-offset: .22em; text-decoration-color: #a8b8a5; }
.tc-home:hover, .tc-retry:hover { text-decoration-color: currentColor; }
.tc-reset, .tc-retry { border: 0; background: transparent; padding: .45rem 0; cursor: pointer; }
.tc-reset:hover { text-decoration: underline; text-underline-offset: .22em; }
.tc-intro { margin: clamp(1.05rem, 2vw, 1.7rem) 0 clamp(1.45rem, 3vw, 2.2rem); }
#chat-view .tc-intro h1, #chat-view .tc-welcome h2, #chat-view .tc-aside-body h2, #chat-view .tc-dialog h2 {
  margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400;
  letter-spacing: -.045em; color: var(--tc-ink); line-height: 1.08;
}
#chat-view .tc-intro h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
.tc-intro p { margin: .7rem 0 0; color: var(--tc-muted); font-size: 1.05rem; line-height: 1.5; }
.tc-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(14rem, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.tc-room, .tc-aside { border: 1px solid var(--tc-line); border-radius: 1.35rem; overflow: hidden; }
.tc-room { min-width: 0; background: #fffefa; box-shadow: 0 5px 22px rgb(40 63 39 / 4%); }
.tc-identity { display: flex; gap: .75rem; align-items: center; padding: 1rem clamp(1.05rem, 3vw, 2rem); border-bottom: 1px solid var(--tc-line); }
.tc-avatar { display: block; width: 2.8rem; height: 2.8rem; }
.tc-identity strong, .tc-identity div > span { display: block; }
.tc-identity strong { font-size: 1rem; color: var(--tc-ink); }
.tc-identity div > span { margin-top: .16rem; font-size: .85rem; color: var(--tc-muted); }
.tc-welcome { padding: clamp(1.65rem, 3.6vw, 2.9rem) clamp(1.05rem, 3vw, 2rem) .7rem; }
#chat-view .tc-welcome h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.tc-welcome p, .tc-aside-body p { color: var(--tc-muted); margin: .65rem 0 0; font-size: 1rem; line-height: 1.55; }
.tc-prompts { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.25rem 0 .35rem; }
#chat-view .tc-prompts button { background: #f1f4e9; color: #33583e; border: 1px solid #d3dfca; border-radius: 2rem; padding: .55rem .85rem; font-size: .9rem; cursor: pointer; min-height: 2.5rem; }
.tc-prompts button:hover { background: #e5eddc !important; }
.tc-log { max-height: min(52vh, 31rem); min-height: 10rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b5c2b1 transparent; padding: 1.35rem clamp(1.05rem, 3vw, 2rem) .65rem; }
.tc-message { width: fit-content; max-width: 90%; margin: 0 0 .9rem; border-radius: 1rem 1rem 1rem .2rem; padding: .8rem 1.05rem; background: #edf1e6; overflow-wrap: anywhere; }
.tc-message.tc-user { margin-left: auto; background: var(--tc-ink); color: #fff; border-radius: 1rem 1rem .2rem 1rem; }
.tc-message strong { display: block; font-size: .78rem; font-weight: 650; margin-bottom: .22rem; color: #45634b; }
.tc-message.tc-user strong { color: #cadfc9; }
.tc-message p { margin: 0; white-space: pre-wrap; line-height: 1.5; font-size: 1rem; color: inherit; }
.tc-status:empty { display: none; }
.tc-status { margin: 0 clamp(1.05rem, 3vw, 2rem) .2rem; font-size: .9rem; color: var(--tc-muted); }
.tc-interruption { margin: .25rem clamp(1.05rem, 3vw, 2rem); border: 1px solid #dccdb2; background: #fcf7e9; border-radius: .8rem; padding: .65rem .95rem; }
.tc-interruption p { margin: 0; color: #614d32; font-size: .95rem; line-height: 1.45; }
.tc-compose { padding: 1rem clamp(1.05rem, 3vw, 2rem) 1.35rem; }
.tc-compose label { display: block; margin: 0 0 .5rem; font-size: .9rem; font-weight: 650; color: var(--tc-text); }
.tc-input-wrap { border: 1px solid #adbfae; border-radius: .95rem; background: #fff; padding: .9rem .9rem .7rem; }
.tc-input-wrap:focus-within { border-color: #537b57; box-shadow: 0 0 0 2px rgb(73 106 75 / 13%); }
#chat-view textarea { display: block; width: 100%; min-height: 4.7rem; max-height: 13rem; resize: vertical; font-size: 1rem; color: var(--tc-ink); background: transparent; border: 0; border-radius: .15rem; padding: 0; line-height: 1.5; }
#chat-view textarea:focus-visible { outline: none; }
#chat-view textarea::placeholder { color: #788476; }
.tc-tools { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .4rem; }
.tc-count, .tc-data { font-size: .82rem; color: var(--tc-muted); }
.tc-data { line-height: 1.5; margin: .75rem .15rem 0; }
#chat-view .tc-send, #chat-view .tc-confirm, #chat-view .tc-cancel, .tc-practice {
  min-height: 2.65rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: 2rem;
  font-size: .92rem; font-weight: 650; line-height: 1.25; cursor: pointer;
}
#chat-view .tc-send, #chat-view .tc-confirm { background: var(--tc-ink); color: #fff; }
#chat-view .tc-send:hover:enabled, #chat-view .tc-confirm:hover { background: #285746; }
#chat-view .tc-send:disabled { cursor: default; background: #e1e7dd; color: #546550; }
.tc-aside { background: #f0f2e8; }
.tc-scene { display: block; width: 100%; height: auto; object-fit: contain; border: 0; }
.tc-aside-body { padding: clamp(1.2rem, 2.5vw, 1.75rem); }
#chat-view .tc-aside-body h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); }
.tc-aside-body p { font-size: .96rem; }
.tc-practice { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; text-decoration: none; background: transparent; border-color: #a1b5a0; color: #274d35; }
.tc-practice:hover { background: #e3eadb; }
.tc-dialog { border: 1px solid var(--tc-line); color: var(--tc-ink); border-radius: 1.15rem; padding: 1.6rem; max-width: min(26rem, calc(100vw - 2rem)); background: var(--tc-paper); }
.tc-dialog::backdrop { background: rgb(13 36 28 / 55%); }
#chat-view .tc-dialog h2 { font-size: 2rem; }
.tc-dialog p { line-height: 1.5; color: var(--tc-muted); margin: .8rem 0 1.25rem; }
.tc-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
#chat-view .tc-cancel { color: var(--tc-text); border-color: #bdcdbd; background: transparent; }
@media (max-width: 48rem) {
  .tc-layout { display: flex; flex-direction: column; }
  .tc-room, .tc-aside { width: 100%; }
  .tc-aside { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
  .tc-scene { padding: .8rem 0 .8rem .8rem; border-radius: 1.3rem; }
  .tc-welcome { padding-top: 1.5rem; }
  .tc-intro p { font-size: 1rem; }
  .tc-log { max-height: 45vh; }
}
@media (max-width: 25rem) {
  .tc-page { padding-inline: .75rem; }
  .tc-prompts { gap: .35rem; }
  #chat-view .tc-prompts button { padding: .45rem .65rem; }

}
.tc-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  margin: .65rem 0;
  padding: .55rem .85rem;
  border-radius: .65rem;
  color: #3f5e47;
  background: #edf1e8;
  font-size: .88rem;
}
.tc-leave-mode {
  border: 0;
  padding: .3rem 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.tc-rehearse:disabled { opacity: .7; }
.tc-parked { margin: 1rem clamp(1.05rem, 3vw, 2rem) 1.5rem; padding: 1rem; background: #f3f4e9; border: 1px solid #cbd6c5; border-radius: .85rem; }
.tc-parked p { margin: 0 0 .7rem; color: var(--tc-ink); font-weight: 600; }
#chat-view .tc-parked-confirm { min-height: 2.6rem; padding: .5rem .9rem; border: 1px solid #a8baa5; border-radius: 1.25rem; line-height: 1.35; color: #254b38; background: #fffefa; cursor: pointer; }
.tc-driving-pause .tc-suggest-practice { display: none; }
@media (max-width: 33rem) {
  .tc-aside { display: block; }
  .tc-scene { padding: 0; border-radius: 0; }
}
