:root {
  color-scheme: light;
}

html, body {
  height: 100%;
  margin: 0;
  background: #ffffff;
}

#root {
  height: 100dvh;
}

/* Soft, quiet scrollbar */
.tc-scroll::-webkit-scrollbar { width: 8px; }
.tc-scroll::-webkit-scrollbar-track { background: transparent; }
.tc-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}
.tc-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.24); }
.tc-scroll { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.14) transparent; }

/* Gentle entrance animation */
@keyframes tc-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tc-rise { animation: tc-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.tc-fade-in { animation: tc-rise 0.4s ease both; }

/* Typing dots */
@keyframes tc-blink {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.tc-dot { animation: tc-blink 1.2s infinite both; }
.tc-dot:nth-child(2) { animation-delay: 0.18s; }
.tc-dot:nth-child(3) { animation-delay: 0.36s; }

/* Preserve prompt whitespace */
.tc-pre {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Smooth expand/collapse for the thinking panel */
.tc-collapse {
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.28s ease;
}

textarea { field-sizing: content; }
