/* Telya : typographie des réponses (proche de l'interface Claude) et zone de saisie partagée. */
.tmd {
  --tmd-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tmd-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --tmd-line: color-mix(in srgb, currentColor 14%, transparent);
  --tmd-soft: color-mix(in srgb, currentColor 5%, transparent);
  --tmd-strong: color-mix(in srgb, currentColor 100%, #fff 0%);
  font-family: var(--tmd-font);
  font-size: 14.5px;
  line-height: 1.65;
  letter-spacing: 0;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  white-space: normal;
}
.tmd > :first-child { margin-top: 0 !important; }
.tmd > :last-child { margin-bottom: 0 !important; }
.tmd p { margin: 0 0 .8em; }
.tmd strong { font-weight: 600; color: inherit; filter: brightness(1.15); }
.tmd em { font-style: italic; }
.tmd del { opacity: .65; }
.tmd a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.tmd a:hover { text-decoration-color: currentColor; }
.tmd h2, .tmd h3, .tmd h4, .tmd h5 { font-family: var(--tmd-font); font-weight: 600; line-height: 1.35; letter-spacing: -.005em; margin: 1.35em 0 .5em; filter: brightness(1.15); }
.tmd h2 { font-size: 1.22em; }
.tmd h3 { font-size: 1.1em; }
.tmd h4, .tmd h5 { font-size: 1em; }
.tmd ul, .tmd ol { margin: 0 0 .85em; padding-left: 1.45em; }
.tmd li { margin: .28em 0; padding-left: .2em; }
.tmd li::marker { color: color-mix(in srgb, currentColor 55%, transparent); }
.tmd ol > li::marker { font-variant-numeric: tabular-nums; }
.tmd li > ul, .tmd li > ol { margin: .25em 0 .3em; }
.tmd .tmd-check { display: inline-block; width: .9em; height: .9em; margin: 0 .45em -.1em 0; border: 1.5px solid var(--tmd-line); border-radius: 3px; }
.tmd .tmd-check.on { background: currentColor; }
.tmd hr { border: 0; border-top: 1px solid var(--tmd-line); margin: 1.3em 0; }
.tmd blockquote { margin: 0 0 .85em; padding: .1em 0 .1em 1em; border-left: 3px solid var(--tmd-line); color: color-mix(in srgb, currentColor 80%, transparent); }
.tmd code { font-family: var(--tmd-mono); font-size: .86em; padding: .12em .38em; border-radius: 5px; background: color-mix(in srgb, currentColor 9%, transparent); border: 1px solid color-mix(in srgb, currentColor 8%, transparent); }
.tmd .tmd-code { margin: 0 0 .9em; border: 1px solid var(--tmd-line); border-radius: 10px; overflow: hidden; background: color-mix(in srgb, #000 22%, transparent); }
.tmd .tmd-code-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 12px; font: 500 11.5px var(--tmd-font); color: color-mix(in srgb, currentColor 60%, transparent); border-bottom: 1px solid var(--tmd-line); background: var(--tmd-soft); }
.tmd .tmd-copy { border: 0; background: none; color: inherit; font: inherit; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.tmd .tmd-copy:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: color-mix(in srgb, currentColor 100%, transparent); }
.tmd pre { margin: 0; padding: 12px 14px; overflow: auto; max-height: 420px; }
.tmd pre code { display: block; padding: 0; border: 0; background: none; font-size: 12.5px; line-height: 1.6; white-space: pre; tab-size: 4; }
.tmd .tmd-table { margin: .2em 0 1em; overflow-x: auto; border: 1px solid var(--tmd-line); border-radius: 10px; }
.tmd table { width: 100%; border-collapse: collapse; font-size: .93em; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tmd th, .tmd td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tmd-line); }
.tmd th { font-weight: 600; background: var(--tmd-soft); white-space: nowrap; }
.tmd tbody tr:last-child td { border-bottom: 0; }
.tmd tbody tr:hover td { background: color-mix(in srgb, currentColor 3%, transparent); }

/* Zone de saisie façon Claude : grand cadre arrondi, barre d'outils en bas, bouton d'envoi rond. */
.tcomp { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 18px; background: color-mix(in srgb, currentColor 4%, #0000); padding: 12px 10px 8px 14px; box-shadow: 0 1px 0 color-mix(in srgb, currentColor 4%, transparent) inset, 0 8px 24px -16px rgba(0,0,0,.6); transition: border-color .15s, box-shadow .15s; }
.tcomp:focus-within { border-color: color-mix(in srgb, currentColor 30%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 6%, transparent), 0 8px 24px -16px rgba(0,0,0,.6); }
.tcomp textarea { width: 100%; resize: none; border: 0; outline: 0; background: none; color: inherit; font: 15px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif; padding: 0 2px; min-height: 44px; max-height: 200px; }
.tcomp textarea::placeholder { color: color-mix(in srgb, currentColor 45%, transparent); }
.tcomp-row { display: flex; align-items: center; gap: 6px; }
.tcomp-sp { flex: 1; }
.tcomp-send { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--tcomp-send-bg, #ececee); color: #0b0b0c; font-size: 16px; line-height: 1; transition: opacity .15s, transform .1s; }
.tcomp-send:active { transform: scale(.94); }
.tcomp-send:disabled { cursor: default; background: color-mix(in srgb, currentColor 16%, transparent); color: color-mix(in srgb, currentColor 55%, transparent); }
.tcomp-send svg { width: 16px; height: 16px; }
.tcomp-pill { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: none; color: color-mix(in srgb, currentColor 80%, transparent); border-radius: 999px; padding: 4px 10px; font: 500 12.5px ui-sans-serif, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.tcomp-pill:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.tcomp select { appearance: none; -webkit-appearance: none; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: none; color: color-mix(in srgb, currentColor 85%, transparent); border-radius: 999px; padding: 4px 22px 4px 10px; font: 500 12.5px ui-sans-serif, -apple-system, "Segoe UI", sans-serif; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 52%, calc(100% - 8px) 52%; background-size: 4px 4px; background-repeat: no-repeat; max-width: 100%; }
.tcomp select option { background: #17171a; color: #e7e7ea; }
