:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f7f1ed;
  background: #121113;
  --muted: #c7bbba;
  --accent: #ff8f87;
  --line: #4b3638;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 15% 15%, #401a21, transparent 58%);
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #ffb3aa; outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; }
.brand small { color: var(--muted); font-size: .68rem; letter-spacing: .14em; }
.language { padding: 8px 13px; border: 1px solid #735253; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 76px); align-items: start; padding-block: clamp(32px, 6vw, 86px); }
.eyebrow { color: var(--accent); letter-spacing: .18em; font-size: .76rem; font-weight: 800; margin: 0 0 17px; }
h1 { margin: 0; font-size: clamp(2.1rem, 4.2vw, 4.1rem); line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
.intro { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.features { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); }
.features li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.features span { color: var(--accent); font: .76rem ui-monospace, monospace; margin-right: 12px; }
.contact { display: inline-block; padding-block: 10px; color: #ffc0b7; font-weight: 700; text-underline-offset: .25em; }
.picker, .chat { overflow: hidden; background: #1d181b; border: 1px solid #684348; border-radius: 18px; box-shadow: 0 22px 60px #090608aa; min-width: 0; }
.picker { padding: clamp(16px, 3vw, 30px); }
.picker h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 18px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: grid; align-content: start; justify-items: start; gap: 6px; padding: clamp(11px, 2vw, 18px); text-align: left; color: inherit; background: #302227; border: 1px solid #735253; border-radius: 10px; overflow-wrap: anywhere; }
.choice:hover { border-color: #ff9a90; background: #482930; }
.choice-icon { color: #ffb3aa; font-size: 1.4rem; line-height: 1; margin-bottom: 4px; }
.choice-preview { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; flex: 0 0 42px; aspect-ratio: 1; place-items: center; color: #2a1215; background: #ff9a90; border-radius: 10px; font-weight: 900; }
.chat-header h2 { font-size: 1rem; margin: 0; }
.chat-header p { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.reset { margin-left: auto; padding: 7px 10px; border: 1px solid #735253; border-radius: 6px; color: inherit; background: transparent; }
.chat-navigation { padding: 6px 16px 0; }
.chat-navigation button { background: transparent; color: #ffc0b7; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: .25em; }
.log { display: flex; flex-direction: column; gap: 11px; height: clamp(230px, 38vh, 430px); overflow: auto; padding: 16px; }
.log:focus-visible { outline-offset: -3px; }
.bubble { flex: 0 0 auto; max-width: 91%; margin: 0; padding: 10px 13px; border-radius: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.assistant { align-self: start; background: #33272c; border-bottom-left-radius: 2px; }
.visitor { align-self: end; background: #683037; border-bottom-right-radius: 2px; }
.controls { padding: 14px 16px; border-top: 1px solid var(--line); }
.prompts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.prompts button { color: #ffd2cb; background: #342327; border: 1px solid #735253; padding: 7px 10px; border-radius: 20px; font-size: .8rem; }
.prompts button:hover, .reset:hover { background: #543036; }
form { display: flex; gap: 8px; }
input { color: inherit; background: #120f12; border: 1px solid #735253; min-width: 0; flex: 1; border-radius: 8px; padding: 10px 11px; }
input::placeholder { color: #c7b5b6; }
.send { color: #210f12; background: #ff9a90; border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 800; }
.send:hover { background: #ffb3aa; }
.controls p { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .shell { width: min(570px, calc(100% - 32px)); }
  .layout { display: flex; flex-direction: column; }
  .picker, .chat { width: 100%; order: 1; }
  .features { display: none; }
  .intro { margin-bottom: 6px; }
  .log { height: clamp(225px, 36vh, 380px); }
}
