.tf { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tf .wl { max-width: none; min-width: 0; }
.tf-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-bar .wl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.tf-sym { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--teal-ink); }
.tf textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.tf-count, .tf-limits, .tf-warn { margin: 0; font-size: 14px; line-height: 1.6; color: var(--coach); }
.tf-count output { font-weight: 800; }
.tf-count.is-over output, .tf-warn { color: #b42318; font-weight: 600; }
.tf-warn:empty { display: none; }
.tf-prev { min-width: 0; }
.tf-prev h2 { margin: 0 0 16px; font-size: clamp(22px, 2.5vw, 30px); color: var(--coach); }
.tf-chat { padding: 18px 14px; border-radius: 16px; background: #efeae2; }
.tf-bubble { padding: 10px 12px; border-radius: 10px; background: #d9fdd3; color: #111b21; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.tf-bubble.is-empty { background: #fff; color: #54656f; }
.tf-line { min-height: 1.5em; }
.tf-li { position: relative; padding-inline-start: 1.2em; }
.tf-li::before { content: "\2022"; position: absolute; inset-inline-start: .3em; }
.tf-ol { padding-inline-start: .4em; }
.tf-q { padding-inline-start: 10px; border-inline-start: 3px solid rgba(17, 27, 33, .35); color: #3b4a54; }
.tf-bubble code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.tf-bubble code:not(.tf-mono) { padding: 0 4px; border-radius: 4px; background: rgba(17, 27, 33, .08); }
.tf-prev .wl-acts { margin-top: 16px; }
.tf-note { display: block; margin-top: 12px; color: var(--coach); font-size: 14px; line-height: 1.65; }
.tf :focus-visible { outline: 3px solid var(--coach); outline-offset: 3px; }
@media (max-width: 760px) { .tf { grid-template-columns: 1fr; } .tf .wl { padding: 20px; } }
