/*
 * Tell Fred (lane t22-tellfred, 15 Oct 2026; js/v3_tellfred.js 1.0.0): the leaders' guideline chat. The desk's own
 * tokens, so every theme follows (light, dark, Eucalypt, Harbour, High contrast). No inline styles.
 */
.tf-mi { display: inline-flex; align-items: center; justify-content: center; }

.sheet.tf-sheet { width: min(680px, 100%); }
.tf-sheet .sheet-b { display: flex; flex-direction: column; gap: 14px; }
.tf-intro { margin: 0; font-size: .8125rem; line-height: 1.25rem; }

.tf-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tf-item { display: flex; }
.tf-item.is-mine { justify-content: flex-end; }
.tf-item.is-note, .tf-item.is-empty, .tf-item.is-wait { justify-content: center; text-align: center; }
.tf-notel { margin: 0; padding: 4px 10px; font-size: .8125rem; overflow-wrap: anywhere; }
.tf-item.is-wait .meta { font-style: italic; }

.tf-bubble {
  max-width: min(92%, 560px); padding: 10px 12px; border-radius: 14px; border: 1px solid var(--glass-rim);
  background: var(--solid); display: grid; gap: 6px; overflow-wrap: anywhere;
}
.tf-item.is-mine .tf-bubble { background: color-mix(in srgb, var(--info) 10%, var(--solid)); }
.tf-who { font-size: .75rem; font-weight: 700; }
.tf-text, .tf-q, .tf-rule, .tf-how { margin: 0; font-size: .9375rem; line-height: 1.4rem; white-space: pre-wrap; }
.tf-q { font-weight: 600; }
.tf-rules { margin: 0; font-size: .6875rem; }

.tf-prop {
  display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--info);
  background: color-mix(in srgb, var(--info) 6%, var(--solid));
}
.tf-prop.is-added { border-color: var(--ok, #2e7d32); background: color-mix(in srgb, var(--ok, #2e7d32) 8%, var(--solid)); }
.tf-prop.is-declined, .tf-prop.is-replaced { border-color: var(--glass-rim); opacity: .75; }
.tf-prop-h { margin: 0; font-size: .8125rem; color: var(--ink-2); }
.tf-rule { font-weight: 600; }
.tf-sup { margin: 0; font-size: .8125rem; }
.tf-chip {
  display: inline-block; padding: 0 6px; border-radius: 999px; border: 1px solid var(--glass-rim); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tf-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tf-state { margin: 0; font-size: .8125rem; }

.tf-compose { display: grid; gap: 6px; position: sticky; bottom: 0; padding-top: 8px; background: var(--solid); }
.tf-box {
  width: 100%; min-height: 72px; resize: vertical; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--glass-rim);
  background: var(--solid); color: var(--ink); font: inherit; font-size: .9375rem; box-sizing: border-box;
}
.tf-box:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.tf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tf-hint { margin: 0; margin-right: auto; font-size: .75rem; }
.tf-count, .tf-spend { font-size: .75rem; font-variant-numeric: tabular-nums; }
.tf-spend.is-over { color: var(--warn); font-weight: 700; }
.tf-note { margin: 0; font-size: .8125rem; min-height: 1rem; }

@media (max-width: 520px) {
  .tf-bubble { max-width: 100%; }
  .tf-compose { position: static; }  /* a phone: the composer never covers a proposal's buttons */
}
