.marq-chat {
    --marq-ink: #1f2a24;
    --marq-sage: #7d9a85;
    --marq-sage-soft: #eef3ef;
    --marq-line: #dfe5e0;
    --marq-paper: #ffffff;
    font: inherit;
    color: var(--marq-ink);
    background: var(--marq-paper);
    border: 1px solid var(--marq-line);
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .marq-chat__head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--marq-line); }
  .marq-chat__mark { font-size: 34px; line-height: 1; color: var(--marq-sage); font-weight: 700; }
  .marq-chat__title { margin: 0; font-weight: 600; font-size: 1.05rem; }
  .marq-chat__sub { margin: 2px 0 0; font-size: .875rem; opacity: .7; }
  .marq-chat__log { min-height: 180px; max-height: 420px; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
  .marq-chat__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; font-size: .95rem; }
  .marq-chat__msg--james { background: var(--marq-sage-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
  .marq-chat__msg--you { background: var(--marq-ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
  .marq-chat__msg--note { align-self: center; background: none; font-size: .8rem; opacity: .65; padding: 2px; }
  .marq-chat__msg a { color: inherit; text-decoration: underline; }
  .marq-chat__typing { display: inline-flex; gap: 4px; }
  .marq-chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--marq-sage); animation: marq-bounce 1s infinite ease-in-out; }
  .marq-chat__typing i:nth-child(2) { animation-delay: .15s; }
  .marq-chat__typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes marq-bounce { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
  @media (prefers-reduced-motion: reduce) { .marq-chat__typing i { animation: none; opacity: .7; } }
  .marq-chat__form { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--marq-line); align-items: flex-end; }
  .marq-chat__form textarea { flex: 1; resize: none; font: inherit; font-size: .95rem; color: inherit; border: 1px solid var(--marq-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
  .marq-chat__form textarea:focus-visible, .marq-chat__form button:focus-visible { outline: 2px solid var(--marq-sage); outline-offset: 2px; }
  .marq-chat__form button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--marq-ink); color: #fff; cursor: pointer; }
  .marq-chat__form button:disabled { opacity: .5; cursor: default; }
  .marq-chat__fine { margin: 0; padding: 0 20px 14px; font-size: .75rem; opacity: .6; }
  .marq-chat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marq-chat, .marq-chat * { box-sizing: border-box; }
.marq-chat__form textarea { min-width: 0; }
.marq-chat__fine { opacity: 1; color: #53645a; }
@media (max-width: 400px) { .marq-chat__form { padding: 12px; gap: 8px; } .marq-chat__form button { padding: 11px 12px; } }

