:root{font-family:SF Pro Text,Segoe UI,sans-serif;color:#1f2933;background:radial-gradient(circle at top,rgba(214,177,138,.3),transparent 34%),linear-gradient(180deg,#f8f4ee,#efe5d9);color-scheme:light;--app-height: 100dvh;--app-top: 0px;--chat-header-height: 88px;--chat-composer-height: 92px}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;height:100%}body{min-height:100vh;overflow:hidden}button,input{font:inherit}.app-shell{min-height:var(--app-height);height:var(--app-height);padding:16px;display:grid;place-items:center;overflow:hidden}.chat-card{width:min(100%,860px);height:min(calc(var(--app-height) - 32px),900px);background:#fffcf7e0;border:1px solid rgba(84,59,36,.12);border-radius:28px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 24px 80px #6e4f2f26;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;overscroll-behavior:none}.chat-header{padding:20px 20px 14px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid rgba(84,59,36,.12);position:sticky;top:0;z-index:3;background:#fffcf7f5;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.eyebrow{margin:0 0 6px;color:#9b6c3f;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem}.chat-header h1{margin:0;font-size:1.2rem;font-weight:600}.header-actions{display:inline-flex;align-items:center;gap:10px}.new-chat-button{width:44px;height:44px;border:0;border-radius:14px;background:#2a211a;color:#fffaf3;border:1px solid rgba(42,33,26,.18);font-size:1.5rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:0}.logout-button,.auth-button,.secondary-button{min-height:55px;border:0;border-radius:14px;padding:0 16px;cursor:pointer}.auth-card .auth-button,.auth-card .secondary-button{border-radius:999px}.logout-button,.secondary-button{background:#2a211a;color:#fffaf3}.auth-button{background:linear-gradient(135deg,#1b3232,#3a4f4f);color:#fffaf3;font-weight:600}.install-secondary-button{background:#fffaf3;color:#1b3232;border:1px solid rgba(27,50,50,.28)}.messages{min-height:0;overflow-y:auto;padding:22px 16px;display:flex;flex-direction:column;gap:14px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}.log-card{grid-template-rows:auto 1fr}.log-content{min-height:0;overflow-y:auto;padding:18px 20px 20px}.log-output{margin:0;white-space:pre-wrap;font:500 .98rem/1.6 SF Mono,Menlo,monospace;color:#1f2933}.audio-visualizer{height:44px;display:flex;align-items:end;gap:8px}.audio-visualizer span{width:8px;height:12px;border-radius:999px;background:#9b6c3f33;transition:height .12s ease,background .2s ease}.audio-visualizer.is-active span{background:linear-gradient(180deg,#d6b18a,#f4f1ea)}.audio-visualizer.is-connecting span{background:#d6b18a73}.auth-card{width:min(100%,460px);padding:28px;background:#fffcf7eb;border:1px solid rgba(84,59,36,.12);border-radius:28px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 24px 80px #6e4f2f26}.auth-card h1{margin:0;font-size:1.7rem}.auth-copy,.auth-status{margin:12px 0 0;color:#1f2933c2;line-height:1.5}.auth-form{margin-top:20px;display:grid;gap:12px}.install-help{margin-top:18px;padding:16px;border-radius:18px;background:#d6b18a17;border:1px solid rgba(84,59,36,.12)}.install-help-title{margin:0 0 10px;color:#1f2933;font-weight:600}.empty-state{margin:auto;max-width:420px;padding:24px;text-align:center;border-radius:24px;background:#fffaf3cc;color:#1f2933c7}.empty-state p{margin:0}.empty-state p+p{margin-top:8px}.message{display:flex}.message-user{justify-content:flex-end}.message-assistant{justify-content:flex-start}.message-bubble{max-width:min(100%,680px);padding:14px 16px;border-radius:22px;line-height:1.5;white-space:pre-wrap}.message-user .message-bubble{background:#fffaf3;color:#2b3138;border:1px solid rgba(84,59,36,.1);border-bottom-right-radius:8px}.message-assistant .message-bubble{background:#d6b18a24;color:#1f2933;border:1px solid rgba(84,59,36,.12);border-bottom-left-radius:8px}.typing{color:#1f293394}.composer{padding:14px;display:grid;gap:10px;border-top:1px solid rgba(84,59,36,.12);background:#fcf7f0e0;position:sticky;bottom:0;z-index:3;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);flex-shrink:0;touch-action:manipulation}.composer-main{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid rgba(84,59,36,.12);border-radius:999px;background:#fffcf7f5;box-shadow:0 8px 24px #543b2414}.composer-input{width:100%;min-height:56px;border:0;background:transparent;color:#1f2933;border-radius:999px;padding:0 20px;outline:none;font-size:1.15rem}.auth-input{border:1px solid #33333326;background:transparent}.audio-composer{min-height:56px;border:0;background:transparent;border-radius:999px;padding:10px 20px;display:grid;align-items:center;gap:6px;overflow:hidden}.audio-inline-status{margin:0;color:#1f29339e;font-size:.9rem;line-height:1.3}.composer-input::placeholder{color:#1f29336b}.mic-button,.send-button{border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:600;position:relative;z-index:1;pointer-events:auto;-webkit-tap-highlight-color:transparent}.mic-button{min-width:56px;min-height:56px;background:#fffaf3;color:#101010;border:1px solid rgba(84,59,36,.12);flex-shrink:0}.mic-icon{width:24px;height:24px;display:block;filter:invert(0%) brightness(0)}.mic-button.is-listening .mic-icon{filter:none}.mic-button.is-listening{background:#d6b18a;color:#2a211a}.mic-close-icon{font-size:1.6rem;line-height:1}.mic-button:disabled{opacity:.45;cursor:not-allowed}.send-button{min-width:56px;min-height:56px;background:#101010;color:#fff;padding:0;touch-action:manipulation;flex-shrink:0}.send-button:disabled{opacity:.45;cursor:not-allowed}.send-icon{width:20px;height:20px;display:block;filter:invert(100%) brightness(200%)}.speech-status{margin:0;padding:0 4px;color:#1f29339e;font-size:.9rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width: 640px){html,body,#root{width:100%;min-height:var(--app-height);height:var(--app-height);overflow:hidden}body{position:fixed;top:0;right:0;bottom:0;left:0;overscroll-behavior:none}.app-shell{padding:0;position:fixed;top:var(--app-top);left:0;right:0;width:100%;min-height:var(--app-height);height:var(--app-height);overscroll-behavior:none;display:block}.chat-card{width:100%;height:var(--app-height);border-radius:0;border-left:0;border-right:0;border-bottom:0;position:absolute;top:0;right:0;bottom:0;left:0;display:block}.chat-header{align-items:center;position:absolute;top:0;left:0;right:0}.header-actions{gap:8px}.header-actions .secondary-button{min-height:44px;padding:0 12px}.messages{position:absolute;top:var(--chat-header-height);bottom:var(--chat-composer-height);left:0;right:0;padding-bottom:18px}.composer{gap:10px;position:absolute;left:0;right:0;bottom:0}.composer-main{grid-template-columns:minmax(0,1fr) auto auto}.mic-button,.send-button{min-height:54px}.composer-input,.audio-composer{min-width:0}}
