:root {
  color-scheme: dark;
  --guest-bg: #090f12;
  --guest-panel: #101a1d;
  --guest-panel-raised: #132124;
  --guest-ink: #e7eae5;
  --guest-muted: #a0adaa;
  --guest-subtle: #71807e;
  --guest-line: #293638;
  --guest-line-bright: #405254;
  --guest-mint: #b6e5d7;
  --guest-gold: #d8bc70;
  --guest-danger: #f0a09a;
  --guest-shadow: 0 28px 80px rgb(0 0 0 / 24%);
  font-family: "DM Sans", sans-serif;
  background: var(--guest-bg);
  color: var(--guest-ink);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--guest-bg); }
body { min-width: 320px; min-height: 100dvh; margin: 0; background: var(--guest-bg); color: var(--guest-ink); }
button, textarea { font: inherit; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--guest-mint); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.guest-shell {
  width: min(100% - 52px, 1120px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}
.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--guest-line);
}
.guest-brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.guest-brand img { display: block; width: 146px; height: auto; }
.guest-header-actions { display: flex; align-items: center; gap: 20px; }
.guest-signin { color: #c3ceca; font-size: 12px; text-decoration: none; transition: color .18s ease; }
.guest-signin:hover { color: var(--guest-mint); }
.guest-header-note { display: inline-flex; align-items: center; gap: 8px; color: var(--guest-muted); font: 10px "DM Mono", monospace; letter-spacing: .04em; }
.guest-header-note::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--guest-mint); }

.guest-main { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 245px; gap: clamp(36px, 6vw, 86px); align-items: start; padding: 56px 0 38px; }
.guest-chat { min-width: 0; }
.guest-intro { max-width: 700px; margin: 0 0 23px; }
.guest-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--guest-mint); font: 10px "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.guest-eyebrow::before { width: 22px; height: 1px; content: ""; background: var(--guest-gold); }
.guest-intro h1 { margin: 0; color: #edf0eb; font: 400 clamp(34px, 4.2vw, 48px)/1.08 "Newsreader", Georgia, serif; letter-spacing: -.035em; }
.guest-intro p { max-width: 590px; margin: 13px 0 0; color: #aab5b1; font-size: 14px; line-height: 1.65; }
.guest-context { padding: 15px 0 0; border-top: 1px solid var(--guest-line); }
.guest-context strong { color: #d4ded9; font-size: 11px; font-weight: 600; }
.guest-context p { margin: 5px 0 0; color: var(--guest-muted); font-size: 11px; line-height: 1.55; }

.guest-transcript-frame { position: relative; overflow: hidden; border: 1px solid var(--guest-line); border-radius: 9px; background: linear-gradient(145deg, #101a1d, #0e1719 72%); box-shadow: var(--guest-shadow); }
.guest-transcript-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--guest-line); }
.guest-transcript-title { display: flex; align-items: center; gap: 10px; color: #d8e0dc; font-size: 12px; font-weight: 600; }
.guest-mark { position: relative; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #61736d; border-radius: 50%; }
.guest-mark::before { width: 5px; height: 5px; border: 1px solid var(--guest-mint); border-radius: 50%; content: ""; }
.guest-count { color: #90a09a; font: 10px "DM Mono", monospace; }
.guest-transcript { min-height: 270px; max-height: min(52dvh, 510px); display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px 18px; overflow-y: auto; list-style: none; overscroll-behavior: contain; scrollbar-color: #405254 transparent; scrollbar-width: thin; }
.guest-message { width: fit-content; max-width: min(88%, 650px); animation: guest-appear .24s ease both; }
.guest-message-user { align-self: flex-end; }
.guest-message-assistant { align-self: flex-start; }
.guest-message-meta { display: flex; align-items: center; gap: 8px; margin: 0 2px 5px; color: #98aaa4; font: 10px "DM Mono", monospace; }
.guest-message-user .guest-message-meta { justify-content: flex-end; }
.guest-message-body { margin: 0; padding: 10px 13px 11px; border: 1px solid #2b3c3e; border-radius: 3px 10px 10px 10px; background: #111e20; color: #e0e7e2; font-size: 13px; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.guest-message-user .guest-message-body { border-color: #354a49; border-radius: 10px 3px 10px 10px; background: #152527; }
.guest-message-status { color: var(--guest-subtle); font: 9px "DM Mono", monospace; }
.guest-message-failed .guest-message-body { border-color: #684a45; }
.guest-message-failed .guest-message-status { color: #e1a89b; }
.guest-empty { display: grid; justify-items: start; align-content: center; flex: 1; min-height: 230px; padding: 17px 7px; }
.guest-empty-mark { position: relative; width: 28px; height: 28px; margin-bottom: 12px; border: 1px solid #516661; border-radius: 50%; }
.guest-empty-mark::before, .guest-empty-mark::after { position: absolute; inset: 7px; border: 1px solid #a7d9ca; border-radius: 50%; content: ""; }
.guest-empty-mark::after { inset: 12px; border-color: var(--guest-gold); background: var(--guest-gold); }
.guest-empty h2 { margin: 0; color: #dfe8e2; font: 400 22px/1.18 "Newsreader", Georgia, serif; }
.guest-empty p { max-width: 47ch; margin: 8px 0 0; color: #9eaca7; font-size: 12px; line-height: 1.65; }
.guest-live-message .guest-message-body:empty { display: none; }
.guest-live-message .guest-message-body:not(:empty)::after { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: var(--guest-mint); content: ""; vertical-align: middle; animation: guest-caret 1s steps(2, start) infinite; }

.guest-composer-wrap { margin-top: 12px; }
.guest-composer { padding: 11px 13px 9px; border: 1px solid #344648; border-radius: 8px; background: #101a1d; transition: border-color .18s ease, box-shadow .18s ease; }
.guest-composer:focus-within { border-color: #658077; box-shadow: 0 0 0 2px rgb(182 229 215 / 8%); }
.guest-composer textarea { display: block; width: 100%; min-height: 104px; max-height: 220px; padding: 3px 2px 11px; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--guest-ink); font-size: 14px; line-height: 1.6; }
.guest-composer textarea::placeholder { color: #83938e; opacity: 1; }
.guest-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #273739; }
.guest-composer-hint { margin: 0; color: #8f9f9a; font-size: 10px; line-height: 1.5; }
.guest-send { min-width: 94px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 13px; border: 1px solid var(--guest-mint); border-radius: 5px; background: var(--guest-mint); color: #10201d; font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.guest-send:hover:not(:disabled) { border-color: #d1eee4; background: #d1eee4; transform: translateY(-1px); }
.guest-send:disabled { opacity: .55; cursor: wait; }
.guest-send-arrow { font-size: 15px; line-height: 1; }
.guest-status { min-height: 19px; margin: 7px 2px 0; color: #9eaea8; font-size: 11px; line-height: 1.5; }
.guest-status[role="alert"] { color: #efb4aa; }
.guest-retry { display: inline-flex; min-height: 36px; align-items: center; margin: 4px 0 0; padding: 0 10px; border: 1px solid #5a4a43; border-radius: 5px; background: #211b19; color: #edc1b2; font-size: 11px; cursor: pointer; }
.guest-retry:hover { background: #2a211e; }
.guest-privacy { display: flex; align-items: flex-start; gap: 9px; margin: 10px 2px 0; color: #929f9b; font-size: 10px; line-height: 1.55; }
.guest-privacy-mark { flex: none; width: 13px; height: 15px; margin-top: 1px; border: 1px solid #7c938b; border-radius: 7px 7px 5px 5px; }

.guest-side { position: sticky; top: 30px; padding-top: 9px; }
.guest-side-card { padding: 18px 17px; border: 1px solid var(--guest-line); border-radius: 7px; background: #0e1719; }
.guest-side-label { margin: 0 0 13px; color: var(--guest-gold); font: 9px "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.guest-side-card h2 { margin: 0; color: #e1e8e3; font: 400 21px/1.17 "Newsreader", Georgia, serif; }
.guest-side-card > p:not(.guest-side-label) { margin: 8px 0 0; color: #9eaaa6; font-size: 11px; line-height: 1.65; }
.guest-limit { display: flex; align-items: center; gap: 9px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--guest-line); }
.guest-limit-dots { display: flex; gap: 4px; }
.guest-limit-dots i { width: 5px; height: 5px; border-radius: 50%; background: #40524e; }
.guest-limit-dots i.is-used { background: var(--guest-mint); }
.guest-limit span { color: #a4b1ac; font: 9px "DM Mono", monospace; }
.guest-side-rule { height: 1px; margin: 18px 0; background: var(--guest-line); }
.guest-side-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.guest-side-list li { display: grid; grid-template-columns: 17px 1fr; gap: 9px; color: #aab5b1; font-size: 11px; line-height: 1.5; }
.guest-side-list b { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #415652; border-radius: 50%; color: var(--guest-mint); font: 9px "DM Mono", monospace; }
.guest-side-foot { margin: 17px 0 0; padding-top: 12px; border-top: 1px solid var(--guest-line); color: #7f8f8a; font-size: 10px; line-height: 1.55; }
.guest-gate { margin-top: 13px; padding: 15px; border: 1px solid #354744; border-radius: 7px; background: #101c1d; animation: guest-appear .24s ease both; }
.guest-gate h2 { margin: 0; color: #e5ece7; font: 400 21px/1.2 "Newsreader", Georgia, serif; }
.guest-gate p { margin: 7px 0 12px; color: #a7b3ae; font-size: 11px; line-height: 1.6; }
.guest-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-account-form { margin: 0; }
.guest-account-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid #546b64; border-radius: 5px; background: #142221; color: #dce7e1; font-size: 11px; font-weight: 600; cursor: pointer; transition: background-color .18s ease,border-color .18s ease; }
.guest-account-button:hover { border-color: #8bb3a5; background: #1a2b29; }
.guest-account-button-primary { border-color: var(--guest-mint); background: var(--guest-mint); color: #10201d; }
.guest-account-button-primary:hover { border-color: #d1eee4; background: #d1eee4; }
.guest-match { width: 100%; margin-top: 9px; }
.guest-expired { margin: 0 0 13px; padding: 13px 15px; border: 1px solid #695448; border-radius: 6px; background: #201b18; color: #e6c4a9; font-size: 12px; line-height: 1.55; }
.guest-expired a { color: #f0d8c1; font-weight: 600; text-underline-offset: 3px; }
.guest-expired p { margin: 0; }
.guest-footer { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0 22px; border-top: 1px solid var(--guest-line); color: #72817d; font: 9px "DM Mono", monospace; letter-spacing: .02em; }
.guest-footer a { text-decoration: none; }
.guest-footer a:hover { color: var(--guest-mint); }
.guest-busy-note { display: flex; align-items: center; gap: 9px; color: #aebbb6; font-size: 11px; }
.guest-busy-note::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--guest-mint); animation: guest-breathe 1.5s ease-in-out infinite; }

.guest-shell { width: min(100% - 52px, 820px); }
.guest-header { min-height: 72px; }
.guest-header-actions { gap: 0; }
.guest-header-note { display: none; }
.guest-signin { padding: 8px 0 8px 12px; border: 0; background: transparent; color: #c3ceca; font-size: 12px; cursor: pointer; transition: color .18s ease; }
.guest-main { display: block; padding: clamp(58px, 11vh, 112px) 0 36px; }
.guest-intro { max-width: none; margin: 0 0 27px; }
.guest-eyebrow, .guest-context { display: none; }
.guest-intro h1 { max-width: 17ch; font-size: clamp(34px, 5.1vw, 52px); line-height: 1.08; }
.guest-intro p { display: block; margin: 14px 0 0; color: var(--guest-muted); font-size: 15px; line-height: 1.65; }
.guest-transcript-frame { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.guest-transcript-head { display: none; }
.guest-transcript { min-height: 0; max-height: min(54dvh, 520px); gap: 16px; padding: 0 0 5px; }
.guest-empty { display: none; }
.guest-composer-wrap { margin-top: 0; }
.guest-composer { padding: 12px 14px 10px; border-color: #344648; border-radius: 8px; }
.guest-composer textarea { min-height: 118px; }
.guest-composer-footer { padding-top: 9px; }
.guest-composer-footer > div { display: flex; align-items: center; gap: 13px; }
.guest-count { color: #82938d; font: 10px "DM Mono", monospace; white-space: nowrap; }
.guest-privacy { max-width: 62ch; margin-top: 12px; }
.guest-privacy-mark { display: none; }
.guest-gate { margin-top: 18px; padding: 18px; }
.guest-gate h2 { font-size: 23px; }
.guest-gate p { font-size: 12px; }
.guest-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-gate .guest-account-form { display: inline-block; margin: 0 8px 0 0; }
.guest-account-button-secondary { border-color: #465753; background: transparent; color: #c5d0ca; }
.guest-match-action { margin-top: 20px; }
.guest-match-action .guest-match { width: auto; min-height: 34px; margin: 0; padding: 0 10px; border-color: #3b504a; background: transparent; color: #b7c9c1; font-size: 10px; font-weight: 500; }
.guest-match-action .guest-match:hover { border-color: #77978a; background: #13201e; }
.guest-error { margin: 0 0 12px; color: #efb4aa; font-size: 12px; }
.guest-footer { display: none; }

.guest-suggestions { margin-top: 24px; min-width: 0; }
.guest-suggestion-list { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.guest-suggestion-list::-webkit-scrollbar { display: none; }
.guest-suggestion-page { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 0 0 100%; scroll-snap-align: start; }
.guest-suggestion-page button { min-height: 58px; padding: 11px 13px; border: 1px solid var(--guest-line-bright); border-radius: 22px; background: #0e191b; color: #c7d4d0; text-align: left; font-size: 12px; line-height: 1.4; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; cursor: pointer; transition: border-color .2s, background-color .2s; }
.guest-suggestion-page button:hover { border-color: var(--guest-mint); background: #162829; }
.guest-more-suggestions { display: block; min-height: 44px; margin: 18px auto 0; padding: 8px 16px; border: 0; background: transparent; color: var(--guest-ink); cursor: pointer; font-size: 12px; }
.guest-more-suggestions span { margin-left: 9px; }
.guest-more-suggestions:hover { color: var(--guest-mint); }

@keyframes guest-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes guest-caret { to { opacity: 0; } }
@keyframes guest-breathe { 50% { opacity: .35; } }

@media (max-width: 820px) {
  .guest-shell { width: min(100% - 36px, 700px); }
}
@media (max-width: 520px) {
  .guest-shell { width: min(100% - 28px, 460px); }
  .guest-header { min-height: 64px; }
  .guest-brand img { width: 126px; }
  .guest-main { padding: 50px 0 23px; }
  .guest-intro { margin-bottom: 22px; }
  .guest-intro h1 { font-size: 37px; }
  .guest-transcript { max-height: 48dvh; gap: 11px; }
  .guest-message { max-width: 94%; }
  .guest-message-body { padding: 9px 11px; font-size: 12px; }
  .guest-composer { padding: 9px 10px 8px; }
  .guest-composer textarea { min-height: 112px; font-size: 16px; }
  .guest-composer-hint { max-width: 22ch; font-size: 9px; }
  .guest-send { min-width: 84px; min-height: 37px; }
  .guest-composer-footer > div { gap: 8px; }
  .guest-count { font-size: 9px; }
  .guest-gate { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
