:root {
  color-scheme: dark;
  --bg: #101216;
  --bg-deep: #0c0e12;
  --surface: #17191e;
  --surface-strong: #1d2027;
  --card: #20232b;
  --card-hover: #282c36;
  --border: rgba(255, 255, 255, .085);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #f3f5f7;
  --muted: #9096a3;
  --faint: #5f6673;
  --gold: #e6b85b;
  --gold-soft: rgba(230, 184, 91, .13);
  --indigo: #746eff;
  --green: #5fd6a0;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --sidebar-width: 260px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-deep: #eef1f5;
  --surface: #ffffff;
  --surface-strong: #f0f2f6;
  --card: #ffffff;
  --card-hover: #eef0f5;
  --border: rgba(20, 25, 35, .1);
  --border-strong: rgba(20, 25, 35, .17);
  --text: #171a20;
  --muted: #6b7280;
  --faint: #9299a7;
  --gold: #a97918;
  --gold-soft: rgba(169, 121, 24, .1);
  --indigo: #5851dc;
  --shadow: 0 18px 50px rgba(25, 35, 55, .12);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 17px; height: 17px; stroke-width: 1.8; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-only { display: none !important; }
.desktop-only { display: inline; }

.app-shell { display: flex; width: 100%; height: 100dvh; background: var(--bg); }
.sidebar {
  position: relative; z-index: 50; display: flex; flex: 0 0 var(--sidebar-width); flex-direction: column; justify-content: space-between;
  width: var(--sidebar-width); height: 100%; padding: 22px 14px 14px; overflow: hidden; background: var(--surface); border-right: 1px solid var(--border);
}
.sidebar-top { min-height: 0; overflow: auto; scrollbar-width: none; }
.sidebar-top::-webkit-scrollbar { display: none; }
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 25px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid rgba(230, 184, 91, .65); border-radius: 11px; background: #0f172a; box-shadow: 0 4px 16px rgba(230, 184, 91, .12); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong, .mobile-brand strong { font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: -.04em; }
.brand-copy small { margin-top: 5px; color: var(--gold); font-size: 7px; font-weight: 700; letter-spacing: .23em; }
.new-chat-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: linear-gradient(135deg, var(--card), var(--surface-strong)); font-weight: 600; transition: .2s ease; }
.new-chat-button:hover { border-color: rgba(230, 184, 91, .45); background: var(--card-hover); transform: translateY(-1px); }
.new-chat-button svg { color: var(--gold); }
kbd { padding: 2px 5px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--muted); background: var(--bg-deep); font-size: 10px; line-height: 1.2; }
.new-chat-button kbd { margin-left: auto; }
.channel-picker-wrap { position: relative; margin-top: 18px; }
.channel-label-row { padding-bottom: 7px; }
.live-label { display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 8px; letter-spacing: .12em; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.channel-button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-strong); text-align: left; transition: .18s ease; }
.channel-button:hover, .channel-button[aria-expanded="true"] { border-color: rgba(230, 184, 91, .38); background: var(--card-hover); }
.channel-swatch { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 8px rgba(230, 184, 91, .38); }
.channel-button-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.channel-button-copy strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.channel-button-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.channel-button > svg { width: 14px; height: 14px; color: var(--faint); }
.channel-menu { top: 75px; left: 0; width: 275px; padding: 8px; }
.channel-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border-radius: 9px; background: transparent; text-align: left; }
.channel-option:hover, .channel-option.selected { background: var(--card-hover); }
.channel-option-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.channel-option-copy strong { font-size: 11px; }.channel-option-copy small { color: var(--muted); font-size: 9px; }
.channel-option-check { display: none; width: 14px; height: 14px; color: var(--gold); }.channel-option.selected .channel-option-check { display: block; }
.channel-sync-note { display: flex; align-items: center; gap: 6px; padding: 8px 7px 4px; border-top: 1px solid var(--border); color: var(--faint); font-size: 9px; }
.channel-sync-note svg { width: 12px; height: 12px; }
.primary-nav { display: grid; gap: 3px; margin: 22px 0 29px; }
.nav-item, .pinned-item, .history-item { display: flex; align-items: center; gap: 11px; width: 100%; border-radius: 9px; color: var(--muted); text-align: left; transition: .18s ease; }
.nav-item { padding: 9px 11px; }
.nav-item:hover, .pinned-item:hover, .history-item:hover { color: var(--text); background: var(--card-hover); }
.nav-item.active { color: var(--text); background: var(--gold-soft); }
.nav-item.active svg { color: var(--gold); }
.nav-item span:nth-child(2) { flex: 1; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.sidebar-label-row { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 8px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.mini-button { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; border-radius: 6px; color: var(--faint); background: transparent; }
.mini-button:hover { color: var(--text); background: var(--card-hover); }
.mini-button svg { width: 14px; height: 14px; }
.pinned-item { padding: 9px 10px; margin-bottom: 26px; font-size: 12px; }
.pin-icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 6px; color: #f5c85e; background: rgba(245, 200, 94, .12); }
.pin-icon svg { width: 12px; height: 12px; fill: currentColor; }
.item-more { width: 15px; height: 15px; margin-left: auto; color: var(--faint); }
.history-heading { margin-bottom: 1px; }
.history-list { display: grid; gap: 2px; }
.history-item { position: relative; padding: 8px 10px; font-size: 12px; }
.history-item.current { color: var(--text); background: var(--surface-strong); }
.history-status { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--gold); opacity: 0; }
.history-item.current .history-status { opacity: 1; }
.sidebar-bottom { display: grid; gap: 13px; padding-top: 18px; }
.plan-card { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid rgba(230, 184, 91, .16); border-radius: 12px; background: linear-gradient(135deg, rgba(230, 184, 91, .1), transparent); }
.plan-icon { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 8px; color: var(--gold); background: var(--gold-soft); }
.plan-icon svg { width: 14px; height: 14px; fill: currentColor; }
.plan-card div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.plan-card strong { font-size: 11px; }
.plan-card span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.plan-card > svg { width: 14px; height: 14px; margin-left: auto; color: var(--faint); }
.account-row { display: flex; align-items: center; gap: 9px; padding: 2px 5px; }
.avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 10px; font-size: 10px; font-weight: 700; }
.user-avatar { color: #fff; background: linear-gradient(135deg, #7264e8, #3d327d); }
.account-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.account-copy strong { font-size: 12px; font-weight: 600; }
.account-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border-radius: 9px; color: var(--muted); background: transparent; transition: .18s ease; }
.icon-button:hover { color: var(--text); background: var(--card-hover); }
.icon-button svg { width: 18px; height: 18px; }
.main-view { display: flex; min-width: 0; flex: 1; flex-direction: column; height: 100%; background: var(--bg); }
.topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 68px; min-height: 68px; padding: 0 31px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.topbar-left, .topbar-actions, .mode-button, .mobile-brand, .share-button, .install-button { display: flex; align-items: center; }
.topbar-left { gap: 15px; }
.topbar-separator { width: 1px; height: 20px; background: var(--border-strong); }
.mobile-brand { display: none; gap: 7px; }
.brand-mark.small { width: 26px; height: 26px; border-radius: 8px; }
.mode-picker-wrap { position: relative; }
.mode-button { gap: 8px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-weight: 600; transition: .18s ease; }
.mode-button:hover, .mode-button[aria-expanded="true"] { border-color: var(--border); background: var(--surface-strong); }
.mode-spark { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: var(--gold); background: var(--gold-soft); }
.mode-spark svg { width: 13px; height: 13px; }
.chevron { width: 14px; height: 14px; margin-left: 5px; color: var(--muted); }
.topbar-actions { gap: 5px; }
.install-button, .share-button { gap: 7px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-strong); font-size: 11px; font-weight: 600; }
.install-button { color: var(--gold); }
.install-button:hover, .share-button:hover { border-color: var(--gold); background: var(--gold-soft); }
.install-button svg, .share-button svg { width: 15px; height: 15px; }
.auth-button { display: flex; align-items: center; gap: 7px; padding: 7px 10px 7px 7px; border: 1px solid rgba(230, 184, 91, .22); border-radius: 9px; color: var(--text); background: var(--gold-soft); font-size: 11px; font-weight: 600; transition: .18s ease; }
.auth-button:hover, .auth-button.active { border-color: rgba(230, 184, 91, .55); background: rgba(230, 184, 91, .18); }
.google-letter { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; color: #4285f4; background: #fff; font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; }
.auth-popover { top: 57px; right: 31px; width: 310px; padding: 13px; }
.auth-popover-head { display: flex; align-items: flex-start; gap: 9px; padding: 2px 2px 11px; }
.auth-popover-head > span:last-child, .auth-user-card > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.auth-popover-head strong { font-size: 12px; }.auth-popover-head small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.auth-lock { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; color: var(--green); background: rgba(95, 214, 160, .12); }.auth-lock svg { width: 15px; }
.auth-user-card { display: flex; align-items: center; gap: 9px; padding: 9px; margin-bottom: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }.auth-user-card strong { font-size: 11px; }.auth-user-card small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.google-login-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); background: var(--surface); font-size: 11px; font-weight: 600; transition: .18s ease; }.google-login-button:hover { border-color: rgba(66, 133, 244, .55); background: var(--card-hover); }.google-login-button:disabled { cursor: wait; opacity: .55; }
.logout-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; }.logout-button:hover { color: #ed8e8e; border-color: rgba(237, 142, 142, .35); background: rgba(237, 142, 142, .08); }.logout-button svg { width: 14px; }
.auth-note { margin: 10px 2px 1px; color: var(--faint); font-size: 9px; line-height: 1.5; }.auth-note code { padding: 1px 3px; border-radius: 3px; color: var(--gold); background: var(--gold-soft); font-family: ui-monospace, monospace; }
.share-button { margin-left: 3px; color: var(--muted); }
.popover { position: absolute; z-index: 100; border: 1px solid var(--border-strong); border-radius: 15px; background: color-mix(in srgb, var(--surface-strong) 96%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.mode-menu { top: 43px; left: 0; width: 280px; padding: 8px; }
.popover-title { padding: 8px 9px 7px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mode-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; border-radius: 10px; background: transparent; text-align: left; }
.mode-option:hover { background: var(--card-hover); }
.mode-option > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.mode-option strong { font-size: 12px; }
.mode-option small { color: var(--muted); font-size: 10px; }
.option-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; }
.option-icon svg { width: 14px; height: 14px; }
.option-icon.chat { color: #9c8cff; background: rgba(124, 105, 255, .14); }
.option-icon.work { color: #62d5ac; background: rgba(77, 207, 155, .13); }
.option-icon.code { color: #74c7ed; background: rgba(84, 177, 229, .13); }
.option-check { display: none; width: 14px; height: 14px; color: var(--gold); }
.mode-option.selected .option-check { display: block; }
.chat-stage { position: relative; display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: auto; isolation: isolate; scrollbar-color: var(--border-strong) transparent; scrollbar-width: thin; }
.chat-stage::-webkit-scrollbar { width: 6px; }
.chat-stage::-webkit-scrollbar-thumb { border-radius: 10px; background: var(--border-strong); }
.ambient { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(1px); }
.ambient-one { top: 14%; left: 44%; width: 320px; height: 260px; background: radial-gradient(ellipse, rgba(102, 88, 241, .11), transparent 67%); }
.ambient-two { right: 0; bottom: 8%; width: 300px; height: 300px; background: radial-gradient(ellipse, rgba(226, 173, 67, .055), transparent 68%); }
.welcome { width: min(680px, calc(100% - 34px)); margin: auto; padding: 51px 0 35px; text-align: center; animation: welcome-in .55s ease both; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.welcome-logo-wrap { position: relative; display: inline-block; }
.welcome-logo { display: grid; width: 74px; height: 74px; padding: 4px; place-items: center; border: 1px solid rgba(230, 184, 91, .75); border-radius: 22px; background: linear-gradient(145deg, #26365b, #11192f 58%, #151619); box-shadow: 0 11px 30px rgba(0, 0, 0, .3), 0 0 0 7px rgba(230, 184, 91, .04); transform: rotate(-3deg); }
.welcome-logo img { width: 100%; height: 100%; border-radius: 17px; object-fit: cover; mix-blend-mode: screen; }
.online-badge { position: absolute; right: -6px; bottom: -4px; display: grid; width: 22px; height: 22px; place-items: center; border: 4px solid var(--bg); border-radius: 50%; color: #0e3023; background: var(--green); }
.online-badge svg { width: 10px; height: 10px; stroke-width: 3; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 23px 0 14px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.eyebrow-line { width: 20px; height: 1px; background: rgba(230, 184, 91, .38); }
.welcome h1 { margin: 0; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -.055em; line-height: 1.13; }
.welcome h1 span { color: var(--muted); }
.welcome-description { margin: 15px 0 31px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.suggestions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; text-align: left; }
.suggestion-card { display: flex; align-items: center; gap: 11px; min-height: 63px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 13px; background: color-mix(in srgb, var(--surface) 76%, transparent); text-align: left; transition: .2s ease; }
.suggestion-card:hover { border-color: var(--border-strong); background: var(--card-hover); box-shadow: 0 9px 25px rgba(0, 0, 0, .13); transform: translateY(-2px); }
.suggestion-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; }
.suggestion-icon svg { width: 15px; height: 15px; }
.suggestion-icon.purple { color: #b199ff; background: rgba(145, 109, 255, .14); }
.suggestion-icon.blue { color: #75c8f0; background: rgba(75, 169, 222, .14); }
.suggestion-icon.green { color: #6fdbac; background: rgba(75, 201, 149, .14); }
.suggestion-icon.gold { color: var(--gold); background: var(--gold-soft); }
.suggestion-card > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.suggestion-card strong { color: var(--text); font-size: 11px; font-weight: 600; }
.suggestion-card small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.avatar.user-avatar:has(img) { overflow: hidden; padding: 0; }.avatar.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-arrow { width: 14px; height: 14px; color: var(--faint); transition: .2s ease; }
.suggestion-card:hover .suggestion-arrow { color: var(--gold); transform: translate(2px, -2px); }
.messages { display: flex; width: min(760px, calc(100% - 34px)); flex-direction: column; gap: 22px; margin: 0 auto; padding: 38px 0 30px; }
.message-row { display: flex; gap: 11px; animation: message-in .3s ease both; }
@keyframes message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.message-row.user { justify-content: flex-end; }
.message-row.assistant { align-items: flex-start; }
.message-bubble { max-width: min(620px, 82%); padding: 13px 16px; border: 1px solid var(--border); border-radius: 17px; font-size: 13px; line-height: 1.65; }
.user .message-bubble { border-color: rgba(230, 184, 91, .17); border-bottom-right-radius: 5px; background: linear-gradient(135deg, rgba(230, 184, 91, .16), var(--surface-strong)); }
.assistant .message-bubble { border-top-left-radius: 5px; background: var(--surface); }
.message-bubble p { margin: 0; }
.message-bubble p + p { margin-top: 8px; }
.message-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--faint); font-size: 10px; }
.assistant-avatar { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; overflow: hidden; border: 1px solid rgba(230, 184, 91, .53); border-radius: 9px; background: #17213d; }
.assistant-avatar img { width: 100%; height: 100%; object-fit: cover; }
.typing { display: flex; align-items: center; gap: 4px; min-width: 54px; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.composer-area { position: relative; width: min(760px, calc(100% - 34px)); margin: 0 auto; padding: 11px 0 max(19px, env(safe-area-inset-bottom)); }
.composer { position: relative; display: flex; align-items: flex-end; gap: 8px; min-height: 57px; padding: 9px 9px 9px 10px; border: 1px solid var(--border-strong); border-radius: 18px; background: color-mix(in srgb, var(--surface-strong) 93%, transparent); box-shadow: 0 12px 35px rgba(0, 0, 0, .16); transition: .2s ease; }
.composer:focus-within { border-color: rgba(230, 184, 91, .5); box-shadow: 0 0 0 3px rgba(230, 184, 91, .06), 0 15px 38px rgba(0, 0, 0, .2); }
.composer-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; color: var(--muted); background: transparent; transition: .18s ease; }
.composer-icon:hover { color: var(--text); background: var(--card-hover); }
.composer-icon svg { width: 19px; height: 19px; }
.composer textarea { width: 100%; min-width: 0; max-height: 130px; padding: 9px 2px; resize: none; outline: 0; border: 0; color: var(--text); background: transparent; font-size: 13px; line-height: 1.4; scrollbar-width: thin; }
.composer textarea::placeholder { color: var(--faint); }
.composer-actions { display: flex; align-items: center; gap: 3px; }
.fast-button { display: flex; align-items: center; gap: 5px; padding: 7px 8px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; }
.fast-button:hover { color: var(--text); background: var(--card-hover); }
.fast-button svg { width: 12px; height: 12px; }
.status-pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.send-button { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #141414; background: var(--gold); transition: .2s ease; }
.send-button:hover { background: #f4ce79; box-shadow: 0 5px 15px rgba(230, 184, 91, .24); transform: translateY(-1px); }
.send-button:disabled { cursor: default; opacity: .38; transform: none; box-shadow: none; }
.send-button svg { width: 18px; height: 18px; stroke-width: 2.4; }
.mic-button { display: none; }
.composer-hint { display: flex; align-items: center; justify-content: space-between; padding: 9px 3px 0; color: var(--faint); font-size: 10px; }
.composer-hint span { display: flex; align-items: center; gap: 5px; }
.composer-hint svg { width: 12px; height: 12px; color: var(--green); }
.keyboard-hint { gap: 4px !important; }
.keyboard-hint kbd { font-size: 9px; }
.tool-popover { right: auto; bottom: 91px; left: 0; width: 290px; padding: 11px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tool-tile { display: flex; align-items: center; justify-content: center; gap: 7px; height: 54px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); background: var(--surface); font-size: 11px; }
.tool-tile:hover { color: var(--text); border-color: var(--border-strong); background: var(--card-hover); }
.tool-tile svg { width: 17px; color: var(--gold); }
.tool-list { display: grid; gap: 2px; padding-top: 8px; }
.tool-list-item, .feature-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 7px; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; font-size: 11px; }
.tool-list-item:hover, .feature-toggle:hover { color: var(--text); background: var(--card-hover); }
.tool-list-item span, .feature-toggle > span:first-child { display: flex; align-items: center; gap: 9px; }
.tool-list-item svg { width: 14px; height: 14px; }.tool-list-item > svg { width: 13px; color: var(--faint); }
.tool-divider { height: 1px; margin: 6px 0; background: var(--border); }
.feature-toggle > span:first-child > svg { width: 15px; color: #a995ff; }
.feature-toggle:nth-of-type(2) > span:first-child > svg { color: #64d4ae; }
.feature-toggle span span { display: flex; flex-direction: column; gap: 2px; }
.feature-toggle strong { color: var(--text); font-size: 11px; font-weight: 500; }.feature-toggle small { color: var(--faint); font-size: 9px; }
.toggle-switch { position: relative; width: 27px; height: 16px; border-radius: 10px; background: var(--faint); }.toggle-switch::after { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: white; content: ""; transition: .2s; }.feature-toggle.active .toggle-switch { background: var(--gold); }.feature-toggle.active .toggle-switch::after { left: 14px; }
.pro-tag { padding: 3px 5px; border-radius: 5px; color: #78d9b5; background: rgba(95, 214, 160, .12); font-size: 8px; font-weight: 700; }
.attachment-preview { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 10px; margin-bottom: 7px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 11px; }
.attachment-preview svg { width: 14px; color: var(--gold); }.attachment-preview button { display: grid; width: 20px; height: 20px; margin-left: auto; place-items: center; color: var(--muted); background: transparent; }
.attachment-preview button svg { width: 13px; color: currentColor; }
.voice-panel { display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 9px 11px; margin-bottom: 8px; border: 1px solid rgba(95, 214, 160, .3); border-radius: 18px; background: color-mix(in srgb, var(--surface-strong) 96%, transparent); box-shadow: var(--shadow); }
.voice-close, .voice-send { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 11px; background: var(--surface); }.voice-close { color: var(--muted); }.voice-close:hover { color: var(--text); }.voice-send { color: #101216; background: var(--gold); }.voice-send svg { width: 17px; }
.voice-visual { display: flex; align-items: center; justify-content: center; gap: 3px; height: 30px; flex: 1; }.voice-visual span { width: 3px; min-height: 5px; border-radius: 5px; background: var(--green); animation: wave .9s ease-in-out infinite alternate; }.voice-visual span:nth-child(2n) { animation-delay: .2s; }.voice-visual span:nth-child(3n) { animation-delay: .4s; }.voice-visual span:nth-child(1) { height: 10px; }.voice-visual span:nth-child(2) { height: 19px; }.voice-visual span:nth-child(3) { height: 27px; }.voice-visual span:nth-child(4) { height: 14px; }.voice-visual span:nth-child(5) { height: 24px; }.voice-visual span:nth-child(6) { height: 12px; }.voice-visual span:nth-child(7) { height: 22px; }.voice-visual span:nth-child(8) { height: 16px; }.voice-visual span:nth-child(9) { height: 8px; }
@keyframes wave { to { transform: scaleY(.4); opacity: .55; } }
.voice-copy { display: flex; flex-direction: column; gap: 2px; }.voice-copy strong { font-size: 11px; }.voice-copy small { color: var(--green); font-size: 10px; font-variant-numeric: tabular-nums; }
.sidebar-scrim { display: none; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; max-width: min(340px, calc(100vw - 36px)); padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 11px; color: var(--text); background: var(--surface-strong); box-shadow: var(--shadow); font-size: 12px; animation: toast-in .25s ease both; }
.toast svg { width: 15px; color: var(--gold); }.toast.out { animation: toast-out .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
.noscript-message { position: fixed; inset: 20px; z-index: 500; padding: 20px; border-radius: 14px; background: var(--surface-strong); }

@media (max-width: 800px) {
  :root { --sidebar-width: min(300px, 86vw); }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); box-shadow: 18px 0 45px rgba(0, 0, 0, .28); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 40; display: block; visibility: hidden; opacity: 0; background: rgba(0, 0, 0, .58); transition: .25s ease; }
  .sidebar-scrim.visible { visibility: visible; opacity: 1; }
  .mobile-only { display: grid !important; }
  .desktop-only { display: none; }
  .topbar { height: 59px; min-height: 59px; padding: 0 14px; }
  .topbar-left { gap: 8px; }.topbar-separator, .topbar-left > .mode-picker-wrap { display: none; }.mobile-brand { display: flex; }
  .topbar-actions { gap: 2px; }.topbar-actions > .icon-button:first-of-type { display: none; }.share-button { padding: 8px; margin-left: 1px; }.share-button span { display: none; }.auth-button { padding: 7px; }.auth-button #authButtonText { display: none; }
  .install-button { padding: 8px; }.install-button span { display: none; }
  .auth-popover { top: 50px; right: 12px; width: min(310px, calc(100vw - 24px)); }
  .welcome { padding-top: 43px; }.welcome h1 { font-size: clamp(27px, 8vw, 36px); }.welcome-description { margin-bottom: 26px; }
  .composer-area { width: calc(100% - 24px); padding-bottom: max(12px, env(safe-area-inset-bottom)); }.messages { width: calc(100% - 24px); }.message-bubble { max-width: 88%; }
  .composer-hint { padding-top: 7px; }.keyboard-hint { display: none !important; }
  .tool-popover { right: 0; bottom: 88px; left: 0; width: auto; }.voice-panel { margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .topbar-actions > .icon-button { display: none; }.topbar-actions > .icon-button:last-of-type { display: grid; }.auth-button { display: flex; }
  .suggestions { grid-template-columns: 1fr; gap: 7px; }.suggestion-card { min-height: 56px; }.suggestion-card small { font-size: 10px; }
  .welcome { width: calc(100% - 28px); padding-top: 35px; }.welcome-logo { width: 64px; height: 64px; border-radius: 19px; }.welcome-logo img { border-radius: 14px; }.eyebrow { margin-top: 20px; font-size: 8px; }.eyebrow-line { width: 12px; }
  .welcome-description { font-size: 12px; }.composer { min-height: 55px; padding-left: 6px; }.fast-button { display: none; }.mic-button { display: grid; }.composer textarea { padding-left: 1px; }
  .composer-hint { font-size: 9px; }.voice-panel { gap: 8px; }.voice-visual { gap: 2px; }.voice-copy { min-width: 61px; }
  .channel-menu { right: 0; left: auto; width: min(275px, calc(100vw - 38px)); }
}

[hidden] { display: none !important; }