:root {
  --cream: #f6f0e2;
  --paper: #fffdf7;
  --ink: #141414;
  --blue: #3157ff;
  --yellow: #ffd84d;
  --coral: #ff654d;
  --pink: #f6a8c4;
  --mint: #9fe7cb;
  --muted: #66625b;
  --line: 2px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font-family: Manrope, system-ui, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: 20; opacity: .16; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.045em; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-150%); }.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 16px "Space Grotesk"; letter-spacing: -.04em; }
.brand-face { position: relative; width: 38px; height: 38px; border: var(--line); border-radius: 50%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.brand-face::before, .brand-face::after { content: ""; position: absolute; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }.brand-face::before { left: 9px; }.brand-face::after { right: 9px; }.brand-face i { position: absolute; bottom: 8px; left: 10px; width: 16px; height: 7px; border-bottom: 2px solid; border-radius: 50%; }
.kicker { margin-bottom: 12px; font: 500 11px "DM Mono"; text-transform: uppercase; letter-spacing: .08em; }

/* Password gate */
.gate { display: grid; place-items: center; min-height: 100vh; padding: 40px 20px; background: radial-gradient(circle at 15% 15%, var(--pink) 0 11%, transparent 11.2%), radial-gradient(circle at 88% 80%, var(--yellow) 0 14%, transparent 14.2%), var(--blue); }
.gate-card { position: relative; width: min(680px, 100%); padding: 48px; overflow: hidden; border: var(--line); border-radius: 34px; background: var(--paper); box-shadow: 12px 12px 0 var(--ink); }
.gate-card h1 { max-width: 520px; margin: 48px 0 20px; font-size: clamp(52px, 8vw, 82px); line-height: .92; }
.gate-copy { max-width: 540px; margin-bottom: 32px; color: var(--muted); line-height: 1.65; }
.lock-art { position: absolute; top: 45px; right: 45px; display: grid; place-items: center; width: 105px; height: 105px; border: var(--line); border-radius: 28px; background: var(--coral); box-shadow: 6px 6px 0 var(--ink); transform: rotate(7deg); }.lock-art b { font: 700 54px "Space Grotesk"; }.lock-art span { position: absolute; top: -17px; right: -13px; color: var(--blue); font-size: 38px; }
.password-form label { display: block; margin-bottom: 9px; font: 500 11px "DM Mono"; text-transform: uppercase; }.password-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }.password-row input { min-width: 0; padding: 15px 17px; border: var(--line); border-radius: 14px; outline: none; background: white; }.password-row input:focus { box-shadow: 4px 4px 0 var(--blue); }.button { padding: 14px 21px; border: var(--line); border-radius: 999px; font-weight: 800; }.button.primary { color: white; background: var(--ink); box-shadow: 4px 4px 0 var(--coral); }.form-status { min-height: 22px; margin: 10px 0 0; color: #a32316; font-size: 13px; }

/* Chat shell */
.chat-app { min-height: 100vh; }.chat-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 86px; padding: 14px 30px; border-bottom: var(--line); background: rgba(246, 240, 226, .94); backdrop-filter: blur(14px); }
.agent-title { display: flex; align-items: center; min-width: 0; gap: 11px; }.agent-title > div { min-width: 0; }.agent-title h1 { margin: 0; font-size: 22px; }.agent-title p { margin: 3px 0 0; color: var(--muted); font: 500 10px "DM Mono"; text-transform: uppercase; }.agent-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border: var(--line); border-radius: 15px; color: white; background: var(--blue); box-shadow: 4px 4px 0 var(--ink); }.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #1baf68; }
.header-actions { display: flex; justify-content: flex-end; gap: 9px; }.icon-button { padding: 10px 13px; border: var(--line); border-radius: 999px; background: white; font-size: 12px; font-weight: 800; }.icon-button[aria-pressed="true"] { background: var(--mint); }
.chat-layout { display: grid; grid-template-columns: minmax(280px, 30%) minmax(0, 70%); min-height: calc(100vh - 86px); }
.mascot-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(24px, 3vw, 46px); overflow: clip; border-right: var(--line); background: var(--yellow); }
.mascot-panel::before { content: ""; position: absolute; top: -75px; right: -80px; width: 230px; height: 230px; border: var(--line); border-radius: 50%; background: var(--pink); }
.mascot-stage, .mascot-intro { position: relative; z-index: 1; }
.mascot-stage { position: sticky; top: 126px; align-self: flex-start; width: 100%; }
.mascot-frame { position: relative; width: min(100%, 390px); margin: 0 auto; overflow: hidden; border: var(--line); border-radius: 34px; background: white; box-shadow: var(--shadow); isolation: isolate; }
.mascot-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.mascot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.mascot-frame.is-speaking { animation: mascot-float 1.8s ease-in-out infinite; }
.mascot-presence { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 18px auto 0; padding: 8px 12px; border: var(--line); border-radius: 999px; background: var(--paper); font: 500 10px "DM Mono"; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }
.mascot-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #1baf68; box-shadow: 0 0 0 3px rgba(27, 175, 104, .16); }
.mascot-intro { margin-top: 34px; }
.mascot-intro h2 { margin-bottom: 14px; font-size: clamp(30px, 3vw, 46px); line-height: .96; }
.mascot-intro > p:last-child { max-width: 390px; margin-bottom: 0; color: #4f4935; font-size: 14px; line-height: 1.6; }
.conversation-panel { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - 86px); overflow: hidden; background: var(--paper); }.messages { flex: 1; min-width: 0; padding: 40px clamp(20px, 5vw, 60px) 18px; overflow-y: auto; }.message { display: flex; align-items: flex-start; gap: 12px; width: fit-content; max-width: 680px; margin-bottom: 22px; }.message.user-message { flex-direction: row-reverse; margin-left: auto; }.message-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border: var(--line); border-radius: 12px; background: var(--yellow); font: 700 14px "Space Grotesk"; }.user-message .message-avatar { color: white; background: var(--blue); }.message-content { min-width: 0; padding: 14px 17px; border: var(--line); border-radius: 5px 18px 18px; overflow-wrap: anywhere; background: white; box-shadow: 4px 4px 0 #d7d1c4; }.user-message .message-content { border-radius: 18px 5px 18px 18px; color: white; background: var(--blue); box-shadow: 4px 4px 0 var(--ink); }.message-label { display: block; margin-bottom: 5px; font: 500 9px "DM Mono"; text-transform: uppercase; opacity: .65; }.message-content p { margin: 0; white-space: pre-wrap; line-height: 1.6; }.typing-dots { display: flex; gap: 5px; padding: 5px 0; }.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: bounce 1s infinite; }.typing-dots i:nth-child(2) { animation-delay: .13s; }.typing-dots i:nth-child(3) { animation-delay: .26s; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 clamp(20px, 5vw, 60px) 16px; }.suggestions button { padding: 9px 12px; border: var(--line); border-radius: 999px; background: var(--pink); font-size: 12px; font-weight: 700; transition: transform .18s, box-shadow .18s; }.suggestions button:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.composer { position: sticky; bottom: 0; margin: 0 clamp(14px, 4vw, 50px) 24px; padding: 12px; border: var(--line); border-radius: 22px; background: white; box-shadow: 7px 7px 0 var(--ink); }.composer textarea { display: block; width: 100%; max-height: 140px; padding: 8px; border: 0; outline: 0; resize: none; line-height: 1.5; }.composer-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; }.mic-button, .send-button { padding: 10px 15px; border: var(--line); border-radius: 999px; font-size: 12px; font-weight: 800; }.mic-button { background: var(--paper); }.mic-button span:first-child { margin-right: 5px; color: var(--coral); }.mic-button.listening { background: var(--pink); animation: pulse 1.2s infinite; }.send-button { color: white; background: var(--ink); }.send-button:disabled, .mic-button:disabled { cursor: not-allowed; opacity: .45; }.chat-status { margin: 9px 5px 0; color: var(--muted); font: 400 10px "DM Mono"; }

@keyframes bounce { 50% { transform: translateY(-4px); opacity: .45; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(246, 168, 196, .4); } }
@keyframes mascot-float { 50% { transform: translateY(-5px) rotate(-.35deg); } }
@media (max-width: 850px) { .chat-header { grid-template-columns: minmax(0, 1fr) auto; }.chat-header > .brand { display: none; }.agent-title { justify-self: start; }.chat-layout { grid-template-columns: minmax(0, 1fr); }.mascot-panel { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); align-items: center; gap: 30px; padding: 24px; border-right: 0; border-bottom: var(--line); }.mascot-stage { position: relative; top: auto; align-self: auto; }.mascot-frame { border-radius: 26px; }.mascot-presence { margin-top: 12px; }.mascot-intro { margin: 0; }.mascot-intro h2 { font-size: 36px; }.message { max-width: 100%; } }
@media (max-width: 600px) { .gate-card { padding: 30px 22px; border-radius: 25px; }.gate-card h1 { margin-top: 70px; font-size: 52px; }.lock-art { top: 30px; right: 28px; width: 78px; height: 78px; }.lock-art b { font-size: 40px; }.password-row { grid-template-columns: 1fr; }.chat-header { min-height: 76px; padding: 10px 13px; }.agent-avatar { width: 39px; height: 39px; }.agent-title h1 { font-size: 18px; }.icon-button span { display: none; }.messages { padding-top: 24px; }.message-content { font-size: 14px; }.suggestions { flex-wrap: nowrap; overflow-x: auto; }.suggestions button { flex: 0 0 240px; text-align: left; }.composer { margin-bottom: 12px; } }
@media (max-width: 600px) { .agent-title p { display: none; }.header-actions { gap: 5px; }.icon-button { padding: 9px 10px; }.mascot-panel { grid-template-columns: 118px minmax(0, 1fr); gap: 20px; padding: 18px; }.mascot-frame { border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }.mascot-presence { display: none; }.mascot-intro h2 { margin-bottom: 8px; font-size: 27px; }.mascot-intro > p:last-child { font-size: 12px; line-height: 1.45; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
