:root {
  --font-display: Nunito, "Avenir Next", "Segoe UI", ui-sans-serif, sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-navy: #04173B;
  --color-blue: #1684F2;
  --color-purple: #8244F3;
  --color-ink: #04173B;
  --color-muted: #5b6478;
  --color-canvas: #f4f6fb;
  --color-surface: #ffffff;
  --color-card: #ffffff;
  --color-line: #d5dbe8;
  --color-accent: #1684F2;
  --color-accent-bright: #8244F3;
  --color-warm: #1684F2;
  --color-danger: #c0394a;
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --shadow-card: 0 24px 80px rgba(4, 23, 59, 0.16);
  --shadow-soft: 0 10px 30px rgba(4, 23, 59, 0.08);
  --transition: 180ms cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--color-canvas); }
body { margin: 0; min-height: 100vh; color: var(--color-ink); font-family: var(--font-body); background: var(--color-canvas); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.mobile-only { display: inline-grid; }

.ambient { display: none; }
.ambient-one { width: 34rem; height: 34rem; right: -16rem; top: -15rem; background: radial-gradient(circle, rgba(22,132,242,.45), transparent 65%); }
.ambient-two { width: 28rem; height: 28rem; left: -13rem; bottom: -14rem; background: radial-gradient(circle, rgba(130,68,243,.32), transparent 65%); }

.app-shell { min-height: 100vh; position: relative; z-index: 1; }
.view { min-height: 100vh; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark-logo { height: 1.55rem; width: auto; display: block; }
.wordmark-dark { display: none; }
.eyebrow { margin: 0 0 .85rem; color: var(--color-accent); font-size: .8rem; font-weight: 650; letter-spacing: .01em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font: 500 clamp(2.15rem, 5.2vw, 4.2rem)/.98 var(--font-display); }
h2 { margin-bottom: .75rem; font: 500 clamp(2.2rem, 5vw, 3.4rem)/1 var(--font-display); }
h3 { font-size: 1.15rem; }
.lede { max-width: 40rem; color: #4b5563; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.65; }
.muted { color: var(--color-muted); line-height: 1.55; }

.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-panel { width: min(100%, 22rem); display: grid; justify-items: stretch; position: relative; }
.auth-layout .wordmark { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 2.5rem; }
.auth-layout .wordmark-logo { height: 2.4rem; }
.signal-dot, .online-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #4da3ff; box-shadow: 0 0 0 5px rgba(22,132,242,.18); }
.auth-card { width: 100%; }
.auth-card label:first-of-type { margin-top: 0; }
.auth-card .text-button { margin: 0 0 .35rem; padding: 0; }
label { display: block; margin: 1.4rem 0 .55rem; font-size: .83rem; font-weight: 750; }
input, textarea { width: 100%; border: 1px solid #c4c8ce; border-radius: var(--radius-sm); outline: none; color: var(--color-ink); background: #fff; transition: border var(--transition), box-shadow var(--transition); }
input { height: 3.25rem; padding: 0 1rem; }
textarea { resize: none; min-height: 3rem; max-height: 12rem; padding: .82rem 3.4rem .82rem 1rem; line-height: 1.45; }
input:focus, textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(22,132,242,.14); }
.otp-input { text-align: center; font-size: 1.7rem; font-weight: 750; letter-spacing: .35em; }
.button { min-height: 3.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .7rem 1.1rem; border: 0; border-radius: var(--radius-sm); cursor: pointer; font-weight: 750; transition: transform var(--transition), background var(--transition); }
.button:hover { transform: translateY(-1px); }
.button-primary { width: 100%; margin-top: 1rem; justify-content: space-between; color: #fff; background: linear-gradient(135deg, #1684F2, #8244F3); }
.button-primary:hover { background: linear-gradient(135deg, #0f74d8, #6d35d8); }
.button-secondary { border: 1px solid var(--color-line); background: var(--color-card); }
.text-button, .icon-button { border: 0; padding: .4rem; cursor: pointer; color: var(--color-muted); background: transparent; }
.icon-button { width: 2.3rem; height: 2.3rem; place-items: center; border-radius: 50%; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.35rem 0; color: #7b8496; font-size: .78rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.google-button { min-height: 2.8rem; }
.form-error { min-height: 1.25rem; margin: .7rem 0 0; color: var(--color-danger); font-size: .84rem; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem clamp(1rem, 5vw, 4rem); }
.topbar-actions { display: flex; align-items: center; gap: .85rem; }
.onboarding-layout { padding-bottom: 4rem; }
.onboarding-copy { width: min(40rem, calc(100% - 2rem)); margin: 1.4rem auto 0; text-align: center; }
.onboarding-copy h1 { margin-bottom: 1.2rem; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.onboarding-copy .lede { margin-inline: auto; }
.loading-card, .manual-card { width: min(50rem, calc(100% - 2rem)); margin: 2rem auto; padding: 1.4rem; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.loading-card { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.loading-card p { margin: .2rem 0 0; }
.spinner { width: 1.8rem; height: 1.8rem; border: 2px solid var(--color-line); border-top-color: var(--color-accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.onboard-tabs { width: min(40rem, calc(100% - 2rem)); margin: 1.2rem auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .15rem; }
.onboard-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .55rem .85rem; cursor: pointer; color: #6b7280; background: transparent; font-size: .88rem; font-weight: 650; }
.onboard-tab.is-active { color: var(--color-ink); border-bottom-color: var(--color-ink); }
.onboard-tab:hover { color: var(--color-ink); }
.candidate-sheet { width: min(40rem, calc(100% - 2rem)); margin: 1.25rem auto 0; display: grid; gap: 1.4rem; }
.onboard-section h2 { display: none; }
.onboard-section h2 { margin: 0 0 .45rem; font: 650 1rem/1.2 var(--font-body); letter-spacing: 0; }
.onboard-rows { display: grid; }
.onboard-role { display: grid; gap: .05rem; padding: .55rem 0 .15rem; }
.onboard-photo-add { display: grid; justify-items: center; gap: .35rem; width: 6.4rem; margin: 0; cursor: pointer; font-size: inherit; font-weight: inherit; }
.onboard-photo-add .onboard-label { margin: 0; text-align: center; }
.onboard-photo-add-frame { width: 6.4rem; height: 6.4rem; border-radius: 14px; display: grid; place-items: center; border: 1px dashed #c4c8ce; background: #fff; color: #9ca3af; font-size: 1.8rem; }
.onboard-photo-add:hover .onboard-photo-add-frame { border-color: #6b7280; color: var(--color-ink); }
.onboard-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.onboard-location { grid-template-columns: 1fr 1fr 1fr; }
.onboard-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: .28rem; padding: .42rem 0; }
.onboard-label { padding-left: .15rem; color: var(--color-muted); font-size: .68rem; font-weight: 650; }
.onboard-field { display: flex; align-items: center; overflow: hidden; min-width: 0; border: 1px solid #c4c8ce; border-radius: 10px; background: #fff; }
.onboard-field:focus-within { border-color: #6b7280; }
.onboard-field input.onboard-value,
.onboard-field select.onboard-value { width: auto; flex: 1; min-width: 0; height: 2.4rem; border: 0; border-radius: 0; padding: 0 .7rem; background: transparent; box-shadow: none; color: var(--color-ink); }
.onboard-field select.onboard-value { appearance: none; cursor: pointer; padding-right: 1.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.2 1.5 6 6.3 10.8 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .65rem center; }
.onboard-field input.onboard-value:hover,
.onboard-field input.onboard-value:focus,
.onboard-field select.onboard-value:hover,
.onboard-field select.onboard-value:focus { border: 0; background-color: transparent; box-shadow: none; }
.onboard-logo { width: 1rem; height: 1rem; margin-left: .7rem; flex: none; }
.onboard-field.is-removed .onboard-logo { opacity: .35; }
.onboard-popout { width: 1.8rem; height: 1.8rem; display: inline-grid; place-items: center; flex: none; color: #9ca3af; border-radius: 7px; }
.onboard-popout svg { width: 13px; height: 13px; }
.onboard-popout:hover { color: var(--color-ink); background: #f3f4f6; }
.onboard-dismiss, .onboard-undo { flex: none; border: 0; background: transparent; cursor: pointer; }
.onboard-dismiss { width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; margin-right: .15rem; color: #9ca3af; border-radius: 8px; }
.onboard-dismiss svg { width: 12px; height: 12px; }
.onboard-dismiss:hover { color: var(--color-danger); background: #f3f4f6; }
.onboard-undo { padding: 0 .8rem 0 .4rem; color: #6b7280; font-size: .78rem; font-weight: 600; }
.onboard-undo:hover { color: var(--color-ink); }
.onboard-field.is-removed { border-color: #e5e7eb; background: #f3f4f6; }
.onboard-skipped { flex: 1; min-width: 0; overflow: hidden; padding: 0 .7rem; color: #9ca3af; font-size: .92rem; line-height: 2.4rem; text-overflow: ellipsis; white-space: nowrap; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: #d1d5db; text-decoration-skip-ink: none; }
.onboard-value { height: 2rem; border: 1px solid #c4c8ce; border-radius: 8px; padding: 0 .55rem; color: var(--color-ink); background: transparent; font-size: .92rem; font-weight: 500; }
.onboard-photos { display: flex; flex-wrap: wrap; gap: .75rem; margin: .2rem 0 .7rem; }
.onboard-photo { display: grid; justify-items: center; gap: .35rem; width: 6.4rem; }
.onboard-photo-frame { position: relative; width: 6.4rem; height: 6.4rem; }
.onboard-photo img { width: 6.4rem; height: 6.4rem; object-fit: cover; border-radius: 14px; background: #e5e7eb; }
.onboard-photo-frame .onboard-dismiss { position: absolute; right: .3rem; bottom: .3rem; width: 1.55rem; height: 1.55rem; color: #111; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.onboard-photo-frame .onboard-undo { position: absolute; inset: auto .35rem .4rem auto; padding: .2rem .45rem; border-radius: 8px; background: rgba(255,255,255,.94); }
.onboard-photo.is-removed img { opacity: .35; filter: grayscale(1); }
.onboard-chip-block { display: grid; gap: .4rem; }
.onboard-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.onboard-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 2.4rem; padding: .35rem .5rem; border: 1px solid #c4c8ce; border-radius: 10px; background: #fff; }
.onboard-tags:focus-within { border-color: #6b7280; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .22rem .45rem .22rem .6rem; border: 1px solid #1684F2; border-radius: 999px; color: #04173B; background: #e8f2fe; font-size: .88rem; font-weight: 500; line-height: 1.25; }
.tag-remove { border: 0; background: transparent; color: #1684F2; cursor: pointer; padding: 0 .15rem; line-height: 1; font-size: inherit; }
.tag-remove:hover { color: var(--color-danger); }
.onboard-tag-input { flex: 1; min-width: 8rem; width: auto; height: auto; padding: .22rem 0; border: 0; outline: none; background: transparent; box-shadow: none; color: var(--color-ink); font-size: .88rem; font-weight: 500; line-height: 1.25; }
.onboard-tag-input:focus { box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: .28rem; border: 1px solid var(--color-line); border-radius: 999px; padding: .28rem .7rem; cursor: pointer; color: var(--color-ink); background: var(--color-card); font-size: .8rem; }
.chip svg { width: 11px; height: 11px; }
.chip.selected { border-color: #1684F2; color: #04173B; background: #e8f2fe; }
.chip:not(.selected) { color: #7b8496; }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.manual-grid input { margin: 0; }
.manual-card { display: flex; align-items: end; gap: 1rem; }
.manual-card > div:first-child { flex: 1; }
.manual-card h3 { margin-bottom: 0; }
.onboarding-actions { width: min(50rem, calc(100% - 2rem)); display: flex; justify-content: center; gap: .8rem; margin: 2rem auto; }
.onboarding-actions .button-primary { width: auto; min-width: 13rem; margin: 0; }

.chat-layout { display: grid; grid-template-columns: 18rem 1fr; padding: .7rem; gap: .7rem; }
.conversation-sidebar { height: calc(100vh - 1.4rem); display: flex; flex-direction: column; padding: 1rem; border-radius: var(--radius-md); color: var(--color-ink); background: #e7ebf2; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: .35rem; }
.bot-search { width: 100%; height: 2.4rem; margin: .35rem 0 0; padding: 0 .8rem; border: 1px solid #d5dbe8; border-radius: 10px; color: var(--color-ink); background: #fff; font-size: .88rem; }
.bot-search::placeholder { color: #9aa3b5; }
.bot-search:focus { border-color: #1684F2; box-shadow: 0 0 0 4px rgba(22,132,242,.14); }
.new-chat { width: 100%; justify-content: space-between; margin: .75rem 0 1.1rem; border-color: var(--color-line); color: var(--color-ink); background: #fff; }
.conversation-list, .search-results { flex: 1; overflow-y: auto; }
.search-group { margin: 0 0 .45rem; }
.search-group-label { margin: .4rem .55rem .15rem; color: var(--color-muted); font-size: .68rem; font-weight: 650; }
.search-row { display: grid; align-items: center; }
.search-row-copy { min-width: 0; display: grid; gap: .12rem; flex: 1; }
.search-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-row-snippet { overflow: hidden; color: var(--color-muted); font-size: .72rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: .8rem .55rem; color: var(--color-muted); font-size: .88rem; }
.message.search-hit .message-bubble { box-shadow: 0 0 0 3px rgba(22,132,242,.28); }
.message.assistant.search-hit .message-bubble { background: #e8f2fe; }
.conversation-link { width: 100%; display: flex; align-items: center; gap: .35rem; overflow: hidden; padding: .55rem .55rem .55rem .8rem; border: 0; border-radius: 9px; color: #5b6478; background: transparent; text-align: left; }
.conversation-link.active, .conversation-link:hover { color: var(--color-ink); background: rgba(4, 23, 59, .07); }
.conversation-link-title { flex: 1; min-width: 0; overflow: hidden; border: 0; padding: .17rem 0; cursor: pointer; color: inherit; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.conversation-delete { flex: none; width: 1.55rem; height: 1.55rem; border: 0; border-radius: 6px; cursor: pointer; color: #9aa3b5; background: transparent; line-height: 1; font-size: 1.05rem; }
.conversation-link:hover .conversation-delete, .conversation-delete:focus { color: #5b6478; }
.conversation-delete:hover { color: var(--color-danger); background: rgba(4, 23, 59, .06); }
.sidebar-footer { display: flex; align-items: center; gap: .65rem; padding: .8rem .3rem 0; border-top: 1px solid var(--color-line); }
.avatar { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #1684F2, #8244F3); font-weight: 800; }
.account-copy { min-width: 0; display: grid; flex: 1; }
.account-button { border: 0; padding: .2rem 0; cursor: pointer; color: inherit; background: transparent; text-align: left; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: .8rem; }
.account-copy small { color: var(--color-muted); font-size: .68rem; }
.conversation-sidebar .icon-button { color: var(--color-ink); }
.conversation-pane { height: calc(100vh - 1.4rem); min-width: 0; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: rgba(255,255,255,.86); backdrop-filter: blur(12px); }
.chat-header { min-height: 4.2rem; display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--color-line); }
.chat-header > div { display: grid; gap: .2rem; }
.chat-header small { color: var(--color-muted); font-size: .72rem; }
.online-dot { width: .35rem; height: .35rem; margin-right: .35rem; box-shadow: none; }
.sync-status { display: none; }
.message-list { overflow-y: auto; padding: clamp(1.2rem, 4vw, 3rem) max(1rem, calc((100% - 48rem) / 2)); }
.empty-chat { max-width: 38rem; margin: clamp(4rem, 14vh, 9rem) auto 0; text-align: center; }
.empty-chat h1 { margin-bottom: 1rem; font-size: clamp(1.85rem, 4.2vw, 2.8rem); }
.assistant-orb { width: 3.7rem; height: 3.7rem; display: block; margin: 0 auto 1.5rem; object-fit: contain; }
.message { max-width: 82%; margin: 0 0 1.5rem; }
.message.is-new { animation: appear .25s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } }
.message.user { margin-left: auto; }
.message-bubble { padding: .95rem 1.05rem; border-radius: 16px; line-height: 1.62; white-space: normal; overflow-wrap: anywhere; }
.message.user .message-bubble { border-bottom-right-radius: 5px; color: #fff; background: linear-gradient(135deg, #1684F2, #8244F3); }
.message.assistant .message-bubble { border: 1px solid var(--color-line); border-bottom-left-radius: 5px; color: #04173B; background: #f4f6fb; }
.message-meta { margin: .4rem .2rem 0; color: var(--color-muted); font-size: .67rem; }
.message.user .message-meta { text-align: right; }
.typing::after { content: ""; display: inline-block; width: .45rem; height: .9rem; margin-left: .2rem; vertical-align: -.1rem; background: #8244F3; animation: blink .9s steps(2) infinite; }
.message-bubble.markdown > :first-child { margin-top: 0; }
.message-bubble.markdown > :last-child { margin-bottom: 0; }
.message-bubble.markdown p,
.message-bubble.markdown ul,
.message-bubble.markdown ol,
.message-bubble.markdown .code-block,
.message-bubble.markdown blockquote,
.message-bubble.markdown h1,
.message-bubble.markdown h2,
.message-bubble.markdown h3 { margin: 0 0 .7rem; }
.message-bubble.markdown ul,
.message-bubble.markdown ol { padding-left: 1.25rem; }
.message-bubble.markdown li { margin: .15rem 0; }
.message-bubble.markdown h1,
.message-bubble.markdown h2,
.message-bubble.markdown h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.message-bubble.markdown h1 { font-size: 1.2rem; }
.message-bubble.markdown h2 { font-size: 1.08rem; }
.message-bubble.markdown h3 { font-size: 1rem; }
.message-bubble.markdown a { text-decoration: underline; }
.message.user .message-bubble a { color: #fff; }
.message.assistant .message-bubble a { color: #1684F2; }
.message-bubble.markdown code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: .12em .35em; border-radius: 5px; background: rgba(4, 23, 59, .08); }
.message.user .message-bubble.markdown code { background: rgba(4, 23, 59, .22); color: #fff; }
.message-bubble.markdown .code-block { position: relative; }
.message-bubble.markdown pre { margin: 0; white-space: pre-wrap; overflow-x: auto; padding: .75rem 2.5rem .75rem .85rem; border-radius: 10px; background: rgba(4, 23, 59, .08); }
.message-bubble.markdown pre code { display: block; padding: 0; background: transparent; font-size: .82rem; }
.message.user .message-bubble.markdown pre { background: rgba(4, 23, 59, .22); }
.copy-code { position: absolute; top: .4rem; right: .4rem; z-index: 1; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; cursor: pointer; color: #04173B; background: rgba(255,255,255,.78); }
.copy-code svg { width: .95rem; height: .95rem; display: block; }
.copy-code .copy-icon-check { display: none; }
.copy-code.is-copied .copy-icon-copy { display: none; }
.copy-code.is-copied .copy-icon-check { display: block; }
.copy-code:hover, .copy-code:focus-visible { background: #fff; }
.message.user .copy-code { color: #fff; background: rgba(4, 23, 59, .28); }
.message.user .copy-code:hover, .message.user .copy-code:focus-visible { background: rgba(4, 23, 59, .46); }
.message-bubble.markdown blockquote { margin-left: 0; padding: .1rem 0 .1rem .85rem; border-left: 3px solid rgba(4, 23, 59, .2); }
.message.user .message-bubble.markdown blockquote { border-left-color: rgba(255, 255, 255, .55); }
.message-bubble.markdown hr { border: 0; border-top: 1px solid var(--color-line); margin: .7rem 0; }
.message.user .message-bubble.markdown hr { border-top-color: rgba(255, 255, 255, .35); }
@keyframes blink { 50% { opacity: 0; } }
.composer { width: min(48rem, calc(100% - 2rem)); position: relative; margin: .5rem auto 1rem; padding: .4rem; border: 1px solid var(--color-line); border-radius: 17px; background: var(--color-card); box-shadow: var(--shadow-soft); }
.composer textarea { border: 0; background: transparent; box-shadow: none; }
.composer small { display: block; padding: .1rem .7rem .25rem; color: #9aa09d; font-size: .64rem; }
.send-button { position: absolute; right: .65rem; top: .65rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: linear-gradient(135deg, #1684F2, #8244F3); font-weight: 800; }
.mention-menu { position: absolute; left: .4rem; right: .4rem; bottom: calc(100% + .4rem); z-index: 6; max-height: 14.5rem; overflow-y: auto; padding: .3rem; border: 1px solid var(--color-line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.mention-item { width: 100%; display: block; overflow: hidden; padding: .55rem .7rem; border: 0; border-radius: 8px; cursor: pointer; color: var(--color-ink); background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.mention-item.is-active, .mention-item:hover { color: #fff; background: linear-gradient(135deg, #1684F2, #8244F3); }
.sidebar-scrim { display: none; }
.profile-dialog { width: min(34rem, calc(100% - 2rem)); max-height: min(42rem, calc(100vh - 2rem)); padding: 1.5rem; border: 1px solid var(--color-line); border-radius: var(--radius-lg); color: var(--color-ink); background: var(--color-card); box-shadow: var(--shadow-card); }
.profile-edit-onboarding { margin: 1.1rem 0 0; padding: 0; color: #1684F2; font-weight: 650; }
.profile-dialog::backdrop { background: rgba(8,20,15,.42); backdrop-filter: blur(4px); }
.profile-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.profile-dialog h2 { margin-bottom: .4rem; }
.profile-fact-list { display: grid; gap: .65rem; margin-top: 1.5rem; }
.profile-fact { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--color-line); border-radius: var(--radius-sm); }
.profile-fact > div { min-width: 0; display: grid; gap: .25rem; flex: 1; }
.profile-fact span { overflow-wrap: anywhere; color: var(--color-muted); font-size: .85rem; }
.profile-fact .text-button { color: var(--color-danger); }

@media (min-width: 801px) { .mobile-only { display: none; } }
@media (max-width: 800px) {
  .auth-layout { padding: 1.5rem 1rem; }
  .onboard-pair, .onboard-location { grid-template-columns: 1fr; }
  .manual-card, .manual-grid { display: grid; grid-template-columns: 1fr; }
  .chat-layout { display: block; padding: 0; }
  .conversation-pane { height: 100vh; border: 0; border-radius: 0; }
  .conversation-sidebar { width: min(85vw, 20rem); height: 100vh; position: fixed; z-index: 20; left: 0; top: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; transform: translateX(-105%); transition: transform var(--transition); }
  .conversation-sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 19; inset: 0; background: rgba(8,20,15,.38); }
  .sidebar-scrim.open { display: block; }
  .message { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
