/* Chat bubble mockup (scripted replies, no AI call). Uses the site's navy/amber tokens. */
.tmc-chat { --c-bg: var(--bg, #0C1220); --c-deep: var(--bg-deep, #070B14); --c-surface: var(--surface, #131C2E);
  --c-surface2: var(--surface-2, #16233B); --c-line: var(--line, #26314A); --c-head: var(--heading, #E8EAEE);
  --c-ink: var(--ink, #B9C0C9); --c-soft: var(--ink-soft, #8E97A6); --c-acc: var(--accent, #E3A44A);
  --c-acc-h: var(--accent-hover, #ECB868); --c-acc-ink: var(--accent-ink, #0C1220);
  font-family: "Inter", system-ui, -apple-system, sans-serif; }

.tmc-launcher { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 9998;
  display: inline-flex; align-items: center; gap: .55rem; min-height: 56px; padding: 0 1.15rem 0 .95rem;
  background: var(--c-acc); color: var(--c-acc-ink); border: none; border-radius: 999px; cursor: pointer;
  font: 600 .98rem/1 "Inter", system-ui, sans-serif; box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(227,164,74,.35);
  transition: background .15s, transform .15s; }
.tmc-launcher:hover { background: var(--c-acc-h); transform: translateY(-1px); }
.tmc-launcher:focus-visible { outline: 3px solid var(--c-head); outline-offset: 3px; }
.tmc-launcher svg { width: 24px; height: 24px; flex: none; }
.tmc-launcher .tmc-l-cursor { display: inline-block; animation: tmcblink 1.1s steps(2, start) infinite; margin-left: 1px; }
.tmc-launcher[aria-expanded="true"] { display: none; }

.tmc-panel { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 9999; width: 380px; max-width: calc(100vw - 2.5rem);
  height: min(600px, calc(100vh - 2.5rem)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-bg); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.tmc-panel[hidden] { display: none; }

.tmc-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem .85rem 1.1rem; background: var(--c-deep); border-bottom: 1px solid var(--c-line); }
.tmc-mark { font-family: "Syne", "Inter", system-ui, sans-serif; font-weight: 700; color: var(--c-head);
  text-transform: lowercase; letter-spacing: .18em; font-size: .95rem; line-height: 1; white-space: nowrap; }
.tmc-mark::after { content: "_"; color: var(--c-acc); font-weight: 500; margin-left: 2px; animation: tmcblink 1.1s steps(2, start) infinite; }
.tmc-sub { display: block; margin-top: .35rem; font-size: .78rem; color: var(--c-soft); letter-spacing: 0; }
.tmc-close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: transparent;
  color: var(--c-ink); border: 1px solid var(--c-line); border-radius: 8px; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.tmc-close:hover { color: var(--c-head); border-color: var(--c-acc); }
.tmc-close:focus-visible, .tmc-chip:focus-visible, .tmc-send:focus-visible, .tmc-input:focus-visible,
.tmc-msg a:focus-visible, .tmc-foot a:focus-visible { outline: 2px solid var(--c-acc); outline-offset: 2px; }

.tmc-log { flex: 1; overflow-y: auto; padding: 1rem 1rem .5rem; display: flex; flex-direction: column; gap: .7rem; position: relative; }
.tmc-msg { max-width: 88%; padding: .7rem .85rem; border-radius: 12px; font-size: .93rem; line-height: 1.5; }
.tmc-msg p + p { margin-top: .45rem; }
.tmc-bot { align-self: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-top-left-radius: 4px; }
.tmc-user { align-self: flex-end; background: var(--c-acc); color: var(--c-acc-ink); font-weight: 500; border-top-right-radius: 4px; }
.tmc-msg a { color: var(--c-acc); font-weight: 600; text-underline-offset: 2px; }
.tmc-msg a:hover { color: var(--c-acc-h); }
.tmc-msg ul { margin: .4rem 0 0 1.1rem; }
.tmc-msg li + li { margin-top: .2rem; }
.tmc-typing { display: inline-flex; gap: 4px; padding: .8rem .9rem; }
.tmc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-soft); animation: tmcdot 1s infinite ease-in-out; }
.tmc-typing i:nth-child(2) { animation-delay: .15s; } .tmc-typing i:nth-child(3) { animation-delay: .3s; }

.tmc-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: .25rem 1rem .75rem; }
.tmc-chip { min-height: 36px; padding: .4rem .8rem; background: transparent; color: var(--c-head); border: 1px solid var(--c-line);
  border-radius: 999px; font: 500 .84rem/1.2 "Inter", system-ui, sans-serif; cursor: pointer; text-align: left; }
.tmc-chips.tmc-compact { flex-wrap: nowrap; overflow-x: auto; padding-top: .5rem; border-top: 1px solid var(--c-line); scrollbar-width: none; }
.tmc-chips.tmc-compact::-webkit-scrollbar { display: none; }
.tmc-chips.tmc-compact .tmc-chip { flex: none; white-space: nowrap; }
.tmc-chip:hover { border-color: var(--c-acc); color: var(--c-acc); }

.tmc-form { display: flex; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--c-line); background: var(--c-deep); }
.tmc-input { flex: 1; min-width: 0; min-height: 44px; padding: .55rem .8rem; background: var(--c-surface); color: var(--c-head);
  border: 1px solid var(--c-line); border-radius: 8px; font: 400 16px/1.3 "Inter", system-ui, sans-serif; }
.tmc-input::placeholder { color: var(--c-soft); }
.tmc-send { flex: none; min-width: 44px; min-height: 44px; padding: 0 .9rem; background: var(--c-acc); color: var(--c-acc-ink);
  border: none; border-radius: 8px; font: 600 .9rem/1 "Inter", system-ui, sans-serif; cursor: pointer; }
.tmc-send:hover { background: var(--c-acc-h); }
.tmc-foot { padding: .1rem 1rem .75rem; background: var(--c-deep); font-size: .74rem; color: var(--c-soft); line-height: 1.4; }
.tmc-foot a { color: var(--c-ink); }
.tmc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes tmcblink { to { visibility: hidden; } }
@keyframes tmcdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Mobile: full-width bottom sheet; launcher shrinks to an icon-plus-short-label pill */
@media (max-width: 600px) {
  .tmc-launcher { right: .9rem; bottom: .9rem; min-height: 52px; padding: 0 1rem 0 .85rem; font-size: .92rem; }
  .tmc-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 88vh; height: 88dvh;
    border-radius: 16px 16px 0 0; border-left: none; border-right: none; border-bottom: none; }
  .tmc-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: var(--c-line); }
  .tmc-head { position: relative; padding-top: 1.1rem; }
  .tmc-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(4,7,13,.6); }
  .tmc-backdrop[hidden] { display: none; }
  .tmc-form { padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 601px) { .tmc-backdrop { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tmc-mark::after, .tmc-launcher .tmc-l-cursor, .tmc-typing i { animation: none; }
}
