[hidden] { display: none !important; }
.agent-gate { min-height: 100vh; padding: 36px 20px; display: grid; place-items: center; background: radial-gradient(circle at 12% 18%, var(--pink) 0 10%, transparent 10.3%), radial-gradient(circle at 88% 82%, var(--yellow) 0 13%, transparent 13.3%), var(--sky); }
.gate-card { position: relative; width: min(680px, 100%); padding: 48px; background: var(--white); border: var(--border); border-radius: 38px 16px; box-shadow: 12px 13px 0 var(--lavender); overflow: hidden; }
.gate-logo { margin-bottom: 65px; }
.gate-lock { position: absolute; right: 42px; top: 38px; width: 100px; height: 100px; display: grid; place-items: center; background: var(--pink); border: var(--border); border-radius: 28px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(7deg); }
.gate-lock b { font: 700 55px Gaegu, cursive; }
.gate-lock span { position: absolute; right: -13px; top: -18px; color: var(--pink-dark); font: 700 35px Gaegu, cursive; }
.gate-card h1 { margin: 0 0 18px; font-size: clamp(54px, 8vw, 84px); line-height: .9; }
.gate-card h1 span { color: #619bd0; font-family: Gaegu, cursive; }
.gate-card > p:not(.eyebrow) { max-width: 520px; margin-bottom: 28px; color: var(--ink-soft); line-height: 1.6; }
.gate-form label { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.gate-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.gate-form input { min-width: 0; padding: 14px 16px; background: white; border: var(--border); border-radius: 14px; outline: none; }
.gate-form input:focus { box-shadow: 0 0 0 4px var(--sky); }
.gate-form .button { white-space: nowrap; }
.gate-form > p { min-height: 20px; margin: 9px 0 0; color: #a32345; font-size: 12px; }
.message-error .message-bubble { background: #fff3c7; }
.send-button:disabled, .chat-composer textarea:disabled { cursor: wait; opacity: .62; }
.agent-page { min-height: 100vh; background: #dbeeff; }
.agent-page::after { content: ""; position: fixed; inset: 0; z-index: -1; background-image: radial-gradient(rgba(49,48,72,.17) 1px, transparent 1px); background-size: 18px 18px; }
.compact-header .site-nav { background: rgba(255,254,251,.95); }
.agent-nav-status { display: flex; align-items: center; gap: 7px; padding: 6px 10px; background: var(--mint); border: 1.5px solid var(--ink); border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.agent-nav-status span { width: 7px; height: 7px; background: #60ba83; border: 1px solid var(--ink); border-radius: 50%; }
.agent-shell { min-height: calc(100vh - 112px); padding: 24px 0 28px; display: grid; grid-template-columns: 30% 70%; }
.agent-portrait-panel, .chat-panel { min-width: 0; border: var(--border); }
.agent-portrait-panel { position: relative; padding: 20px; background: var(--lavender); border-radius: 26px 0 0 26px; overflow: clip; }
.portrait-heading { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.portrait-intro { position: sticky; top: 92px; z-index: 3; min-height: 285px; padding: 0; display: block; overflow: hidden; isolation: isolate; background: var(--cream); border: var(--border); border-radius: 18px 18px 7px 7px; box-shadow: 6px 7px 0 rgba(49,48,72,.16); transform: rotate(-1deg); }
.portrait-intro::after { content: ""; position: absolute; inset: 8px; z-index: 1; border: 2px solid rgba(255,255,255,.72); border-radius: 12px 12px 3px 3px; pointer-events: none; }
.portrait-intro img { display: block; width: 100%; height: 100%; min-height: 285px; aspect-ratio: 1; object-fit: cover; user-select: none; }
.portrait-intro.is-speaking { animation: mascot-float 1.15s ease-in-out infinite; }
.portrait-intro i { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 8px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 5px; font-size: 8px; font-weight: 900; font-style: normal; transform: rotate(6deg); }
@keyframes mascot-float { 0%, 100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(-.3deg) translateY(-4px); } }
.agent-presence { margin-top: 20px; padding: 12px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 13px; }.agent-presence i { width: 10px; height: 10px; background: #63c28a; border: 1px solid var(--ink); border-radius: 50%; }.agent-presence div { display: flex; flex: 1; flex-direction: column; }.agent-presence strong { font-size: 12px; }.agent-presence span { color: var(--ink-soft); font-size: 9px; }.agent-presence b { font: 700 24px Gaegu; }
.audience-picker { margin-top: 14px; }.audience-picker label { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }.audience-picker select { width: 100%; padding: 11px 12px; appearance: none; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='m2 5 5 5 5-5' fill='none' stroke='%23313048' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1.5px solid var(--ink); border-radius: 10px; font-size: 12px; font-weight: 800; }
.portrait-doodles span { position: absolute; font-family: Gaegu; }.portrait-doodles span:nth-child(1) { left: 6px; bottom: 10px; font-size: 25px; }.portrait-doodles span:nth-child(2) { right: 5px; top: 70px; color: var(--pink-dark); font-size: 25px; }.portrait-doodles span:nth-child(3) { right: 10px; bottom: 3px; font-size: 15px; transform: rotate(-8deg); }
.chat-panel { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; min-height: 720px; background: var(--white); border-left: 0; border-radius: 0 26px 26px 0; overflow: hidden; }
.chat-header { min-height: 94px; padding: 20px 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1.5px dashed rgba(49,48,72,.35); }.chat-kicker { margin: 0 0 4px; color: var(--pink-dark); font-size: 8px; font-weight: 900; letter-spacing: .12em; }.chat-header h1 { margin: 0; font-size: 27px; }.chat-actions { display: flex; gap: 7px; }.chat-actions button { padding: 8px 10px; background: white; border: 1.5px solid var(--ink); border-radius: 9px; font-size: 10px; font-weight: 900; box-shadow: 2px 2px 0 rgba(49,48,72,.15); }.chat-actions button[aria-pressed="true"] { background: var(--yellow); }
.prototype-note { margin: 12px 24px 0; padding: 9px 12px; display: flex; gap: 9px; align-items: center; background: #fff3c7; border: 1.5px solid var(--ink); border-radius: 9px; }.prototype-note span { font: 700 21px Gaegu; }.prototype-note p { margin: 0; font-size: 10px; line-height: 1.4; }
.message-list { padding: 18px 30px 20px; overflow-y: auto; }.date-divider { display: flex; align-items: center; justify-content: center; margin: 2px 0 20px; }.date-divider span { padding: 4px 9px; background: var(--cream); border: 1px solid #aaa6b2; border-radius: 999px; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.chat-message { display: flex; gap: 10px; margin: 14px 0; }.mini-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 35px; height: 35px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 50% 50% 50% 8px; font: 700 20px Gaegu; }.chat-message > div:last-child { max-width: 72%; }.sender { display: block; margin: 0 0 4px 4px; font-size: 9px; font-weight: 900; }.sender i { color: #55a876; font-size: 7px; font-style: normal; }.message-bubble { padding: 12px 14px; background: var(--pink); border: 1.5px solid var(--ink); border-radius: 5px 17px 17px 17px; box-shadow: 2px 3px 0 rgba(49,48,72,.11); }.message-bubble p { margin: 0; font-size: 12px; line-height: 1.55; }.chat-message time { display: block; margin: 4px; color: #9793a0; font-size: 7px; }.from-user { justify-content: flex-end; }.from-user > div { display: flex; flex-direction: column; align-items: flex-end; }.from-user .message-bubble { background: var(--sky); border-radius: 17px 5px 17px 17px; }
.suggestion-area { margin: 20px 0 0 45px; display: flex; flex-wrap: wrap; gap: 7px; }.suggestion-area > span { width: 100%; color: var(--ink-soft); font: 700 13px Gaegu; }.suggestion-area button { padding: 7px 10px; background: white; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 9px; transition: background .2s; }.suggestion-area button:hover { background: var(--yellow); }
.typing-dots { display: flex; gap: 4px; padding: 6px 1px; }.typing-dots i { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; animation: typing 1s infinite alternate; }.typing-dots i:nth-child(2) { animation-delay: .2s; }.typing-dots i:nth-child(3) { animation-delay: .4s; } @keyframes typing { to { transform: translateY(-4px); opacity: .45; } }
.chat-composer { position: relative; min-height: 88px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 9px; align-items: center; background: #f7f2ff; border-top: var(--border); }.composer-tools { display: flex; gap: 4px; }.composer-tools span, .voice-button { display: grid; place-items: center; width: 32px; height: 32px; background: white; border: 1.5px solid var(--ink); border-radius: 50%; }.chat-composer textarea { min-height: 48px; max-height: 120px; padding: 14px 46px 12px 14px; resize: none; background: white; border: 1.5px solid var(--ink); border-radius: 15px; font-size: 11px; outline: none; }.chat-composer textarea:focus { box-shadow: 0 0 0 3px var(--sky); }.voice-button { font-family: Gaegu; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }.voice-button:hover:not(:disabled) { background: var(--yellow); transform: translateY(-1px); }.voice-button.is-listening { background: var(--pink); box-shadow: 0 0 0 5px rgba(255,139,174,.24); animation: mic-pulse 1s ease-in-out infinite; }.voice-button:disabled { cursor: not-allowed; opacity: .45; }.send-button { height: 44px; padding: 0 15px; display: flex; align-items: center; gap: 8px; background: var(--pink); border: var(--border); border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); font-size: 11px; font-weight: 900; }.voice-status { position: absolute; left: 62px; bottom: 3px; max-width: calc(100% - 190px); margin: 0; overflow: hidden; color: #a32345; font-size: 8px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.character-count { position: absolute; right: 114px; bottom: 5px; margin: 0; color: #9692a0; font-size: 7px; }
@keyframes mic-pulse { 50% { transform: scale(1.1); box-shadow: 0 0 0 9px rgba(255,139,174,.12); } }
@media (max-width: 850px) { .agent-shell { grid-template-columns: 35% 65%; }.agent-portrait-panel { padding: 13px; }.portrait-caption span { display: none; }.chat-message > div:last-child { max-width: 84%; } }
@media (max-width: 680px) { .agent-nav-status { display: none; }.agent-shell { min-height: 0; padding-bottom: 14px; grid-template-columns: 1fr; }.agent-portrait-panel { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-radius: 22px 22px 0 0; }.portrait-heading, .portrait-intro { display: none; }.agent-presence { margin: 0; }.audience-picker { margin: 0; }.portrait-doodles { display: none; }.chat-panel { min-height: 650px; border-left: var(--border); border-top: 0; border-radius: 0 0 22px 22px; }.chat-header { padding: 15px; }.chat-actions button span { display: none; }.prototype-note { margin-inline: 14px; }.message-list { padding-inline: 15px; }.suggestion-area { margin-left: 0; }.chat-composer { padding: 12px 10px; grid-template-columns: 1fr auto auto; }.composer-tools { display: none; }.character-count { right: 105px; }.chat-header h1 { font-size: 22px; } }
@media (max-width: 560px) { .agent-gate { padding: 18px 12px; }.gate-card { padding: 31px 22px; border-radius: 28px 12px; }.gate-logo { margin-bottom: 80px; }.gate-lock { right: 25px; top: 27px; width: 78px; height: 78px; }.gate-lock b { font-size: 43px; }.gate-card h1 { font-size: 54px; }.gate-form > div { grid-template-columns: 1fr; }.gate-form .button { width: 100%; } }
@media (max-width: 680px) { .agent-portrait-panel { grid-template-columns: 94px minmax(0,1fr); align-items: center; }.portrait-heading { display: none; }.portrait-intro { position: relative; top: auto; display: block; grid-row: 1 / 3; min-height: 112px; height: 100%; transform: none; box-shadow: 4px 4px 0 var(--ink); }.portrait-intro img { min-height: 112px; height: 100%; }.portrait-intro i { display: none; } }
@media (prefers-reduced-motion: reduce) { .portrait-intro.is-speaking { animation: none; } }
@media (prefers-reduced-motion: reduce) { .voice-button.is-listening { animation: none; } }
