:root {
  color-scheme: light;
  --purple: #522587;
  --purple-soft: #efe7f8;
  --ink: #19131f;
  --muted: #756a7d;
  --line: #e8dfef;
  --card: #ffffff;
  --bg: #fbf7fd;
  --shadow: 0 22px 70px rgba(82, 37, 135, 0.15);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 0%, #f2e9fb 0, transparent 34rem), var(--bg); }
.phone-frame { width: min(100%, 980px); height: min(900px, calc(100vh - 36px)); height: min(900px, calc(100dvh - 36px)); min-height: min(640px, calc(100dvh - 36px)); position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(180deg, #fff 0%, #fbf8fd 100%); box-shadow: var(--shadow); }
.topbar { height: 60px; flex: 0 0 60px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.topbar .question-button { margin-left: auto; }
.icon-button, .avatar, .question-button, .attach-btn, .mic-btn, .send-btn { border: 0; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-weight: 800; display: grid; place-items: center; }
.icon-button, .avatar, .question-button { width: 40px; height: 40px; }
.avatar { background: var(--purple); color: #fff; font-size: 13px; }
.question-button { background: var(--purple); color: #fff; font-size: 22px; box-shadow: 0 8px 24px rgba(82,37,135,.12); }
.avatar.small { width: 40px; height: 40px; }
.brain-top-pill { border: 1px solid var(--line); background: #fff; color: var(--purple); border-radius: 999px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; box-shadow: 0 8px 24px rgba(82,37,135,.08); }
.brand-lockup { min-height: 48px; display: inline-grid; place-items: center start; justify-self: start; padding: 7px 0; border: 0; background: transparent; cursor: pointer; }
.brand-brain-pill { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; min-height: 48px; padding: 7px 18px; display: inline-grid; place-items: center; gap: 1px; font-weight: 900; box-shadow: 0 8px 24px rgba(82,37,135,.08); }
.brand-name { font-family: "EB Garamond", Georgia, serif; color: var(--purple); font-size: 23px; line-height: .9; letter-spacing: -.02em; }
.brand-sublabel { color: var(--muted); font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: .1em; }
.brain-dot { width: 24px; height: 24px; border-radius: 999px; background: var(--purple); color: #fff; display: inline-grid; place-items: center; font-family: "EB Garamond", serif; font-weight: 700; }
.brain-dot.mini { width: 20px; height: 20px; font-size: 12px; }
.home-panel, .content-panel { flex: 1; padding: 10px 14px 142px; overflow-y: auto; }
.home-panel { display: flex; flex-direction: column; min-height: 0; }
.robyn-face-placeholder, .robyn-face-photo { width: clamp(56px, 13vw, 76px); height: clamp(56px, 13vw, 76px); border-radius: 999px; display: grid; place-items: center; border: 3px solid #fff; background: radial-gradient(circle at 35% 28%, #fff 0 8%, #f0e4f8 9% 42%, var(--purple) 43% 100%); color: #fff; font-family: "EB Garamond", Georgia, serif; font-size: 42px; font-weight: 700; box-shadow: 0 16px 42px rgba(82,37,135,.22); }
.robyn-face-photo { object-fit: cover; display: block; }
.chat-hero { display: none; }
.hero-orb { width: 58px; height: 58px; margin: 0; border-radius: 999px; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: "EB Garamond", serif; font-size: 34px; font-weight: 700; box-shadow: 0 16px 40px rgba(82,37,135,.24); }
h1 { font-family: "EB Garamond", Georgia, serif; font-size: 38px; line-height: .98; letter-spacing: -.02em; margin: 0; text-align: center; }
.chat-hero h1 { text-align: left; }
.content-panel h1 { text-align: left; margin-bottom: 12px; }
h2 { margin: 18px 0 10px; color: var(--purple); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--purple); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; margin: 0 0 10px; }
.muted { color: var(--muted); line-height: 1.5; }
.welcome-copy { margin: 6px 0 0; text-align: left; color: var(--muted); line-height: 1.35; font-size: 13px; }
.settings-list button, .drawer-nav button, .thread { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 16px; text-align: left; color: var(--ink); box-shadow: 0 8px 26px rgba(82,37,135,.06); }
.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; }
.thread-search-label { display: block; margin: 0 0 8px; }
.thread-search-label input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; font: inherit; color: var(--ink); background: rgba(255,255,255,.9); }
.drawer-section:has(.thread:nth-of-type(-n+10)) .thread-search-label { max-height: 34px; }
.drawer-nav button, .thread { padding: 8px 12px; min-height: 38px; }
.thread-list { display: grid; gap: 6px; }
.thread { display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.thread.is-active { border-color: rgba(95, 63, 176, .55); box-shadow: 0 10px 30px rgba(95,63,176,.12); }
.thread button { border: 0; background: transparent; padding: 0; color: inherit; text-align: left; }
.thread-actions { display: flex; flex-wrap: wrap; gap: 6px; opacity: .82; }
.thread:hover .thread-actions, .thread:focus-within .thread-actions { opacity: 1; }
.thread strong, .thread span { display: block; }
.thread span { color: var(--muted); font-size: 11px; margin-top: 2px; line-height: 1.35; max-height: 30px; overflow: hidden; }
.thread .pin-btn, .thread .delete-thread-btn, .show-more-threads { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--purple); font-size: 11px; font-weight: 900; background: #fff; }
.thread .delete-thread-btn { color: #a33; }
.show-more-threads { width: 100%; text-align: center; padding: 9px 10px; }
.foundation-status, .access-card, .submission-card, .resource-card, .book-card, .chat-panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 10px 34px rgba(82,37,135,.07); }
.foundation-status { margin: 0 0 12px; border-color: #f2c5c5; background: #fff7f7; color: #8a1f1f; font-size: 13px; line-height: 1.45; }
.active-brain-card h3, .resource-card h3, .book-card h3 { margin: 0 0 8px; font-size: 18px; }
.active-brain-card p, .resource-card p, .book-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.chat-note { margin-top: 10px !important; font-size: 12px; }
.chat-panel { margin-top: 0; padding: 10px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 4px; }
.chat-empty-state { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 10px 10px 30px; text-align: center; }
.chat-empty-state p { max-width: 520px; margin: 0; font-family: "EB Garamond", Georgia, serif; font-size: clamp(30px, 7vw, 58px); line-height: .98; letter-spacing: -.035em; color: var(--ink); }
.chat-empty-state [data-salutation] { color: var(--purple); }
.chat-bubble { max-width: 86%; border-radius: 18px; padding: 10px 12px; background: #f5eefb; color: var(--ink); justify-self: start; }
.chat-bubble.is-user { background: var(--purple); color: #fff; justify-self: end; }
.chat-bubble.is-error { background: #fff0f0; color: #a02727; border: 1px solid #f2c5c5; }
.chat-bubble.is-pending { opacity: .75; }
.chat-bubble span { display: block; font-size: 11px; font-weight: 900; margin-bottom: 3px; opacity: .78; }
.chat-bubble p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.chat-status { min-height: 16px; margin: 5px 4px 0; color: var(--muted); font-size: 12px; }
.chat-status.is-error { color: #a02727; }
.chat-status.is-success { color: #16753a; }
.live-badge, .api-badge, .lock-badge, .selected-badge { border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.live-badge { background: #e9f8ee; color: #16753a; }
.api-badge { background: #eef3ff; color: #2d4c8f; }
.lock-badge { background: #f1ecf5; color: #6b6073; }
.selected-badge { background: var(--purple); color: #fff; }
.composer { position: absolute; z-index: 8; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; gap: 7px; }
.composer-bar { min-height: 58px; display: grid; grid-template-columns: 36px 1fr auto 36px 36px; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.97); box-shadow: 0 12px 36px rgba(82,37,135,.14); backdrop-filter: blur(16px); }
.prompt-suggestions { display: flex; gap: 7px; overflow-x: auto; padding: 0 2px; scrollbar-width: none; }
.prompt-suggestions::-webkit-scrollbar { display: none; }
.prompt-suggestions button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: linear-gradient(180deg, #fff, #fbf7fd); color: var(--purple); padding: 7px 10px; font-size: 11px; font-weight: 500; box-shadow: 0 6px 18px rgba(82,37,135,.08); }
.prompt-suggestions button:hover, .prompt-suggestions button:focus-visible { border-color: #d8c3e8; background: var(--purple-soft); outline: none; }
.prompt-suggestions button:disabled { opacity: .58; cursor: wait; }
.composer-brain-pill { display: none; }
.composer-brain-pill span { color: var(--purple); }
.composer-brain-pill strong { color: var(--purple); }
.composer-brain-pill:hover, .composer-brain-pill:focus-visible { border-color: #d8c3e8; background: var(--purple-soft); outline: none; }

.model-picker-button { border: 1px solid var(--line); background: #fff; color: var(--purple); border-radius: 999px; min-height: 36px; padding: 0 12px; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; gap: 5px; }
.model-picker-button:hover, .model-picker-button:focus-visible { border-color: #d8c3e8; background: var(--purple-soft); outline: none; }
.model-menu { position: absolute; right: 48px; bottom: 70px; width: min(330px, calc(100vw - 32px)); display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); padding: 12px; }
.model-menu-head { color: var(--purple); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 4px 2px; }
.model-list { display: grid; gap: 6px; }
.model-row { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; text-align: left; }
.model-row:hover, .model-row:focus-visible { border-color: #d8c3e8; background: #fbf8fd; outline: none; }
.model-row.is-selected { border-color: #d8c3e8; background: var(--purple-soft); }
.model-row strong, .model-name { display: block; color: var(--ink); font-weight: 900; }
.model-benefit { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; font-weight: 500; }
.model-state { color: var(--purple); font-weight: 900; }
.upgrade-nav-button { border: 1px solid var(--line); background: var(--purple-soft); color: var(--purple); border-radius: 16px; padding: 10px 12px; text-align: left; font-weight: 900; }
.upgrade-form { display: grid; gap: 12px; }
.upgrade-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; font-size: 12px; }
.upgrade-form input, .upgrade-form select, .upgrade-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fbf8fd; padding: 12px; color: var(--ink); font: inherit; }
.upgrade-form textarea { resize: vertical; min-height: 86px; }

.composer input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.attach-btn, .mic-btn, .send-btn { width: 36px; height: 36px; }
.mic-btn { background: #fff; border: 1px solid var(--line); color: var(--purple); font-size: 16px; position: relative; overflow: hidden; }
.mic-btn .voice-meter { display: none; align-items: end; gap: 2px; height: 16px; }
.mic-btn .voice-meter i { display: block; width: 3px; border-radius: 999px; background: #fff; height: 6px; animation: voicePulse .75s ease-in-out infinite; }
.mic-btn .voice-meter i:nth-child(2) { animation-delay: .15s; height: 11px; }
.mic-btn .voice-meter i:nth-child(3) { animation-delay: .3s; height: 8px; }
.mic-btn.is-recording { background: var(--purple); color: #fff; box-shadow: 0 0 0 5px rgba(111, 58, 168, .14), 0 0 24px rgba(111, 58, 168, .42); }
.mic-btn.is-recording .mic-icon { display: none; }
.mic-btn.is-recording .voice-meter { display: flex; }
@keyframes voicePulse { 0%, 100% { transform: scaleY(.55); opacity: .7; } 50% { transform: scaleY(1.55); opacity: 1; } }
.send-btn { background: var(--purple); color: #fff; }
.drawer { position: fixed; z-index: 20; inset: 0 auto 0 0; width: min(86vw, 360px); transform: translateX(-105%); transition: transform .22s ease; background: #fff; border-right: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.scrim { position: fixed; inset: 0; z-index: 18; opacity: 0; pointer-events: none; background: rgba(25,19,31,.28); transition: opacity .2s ease; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer-head, .sheet-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-mark { width: 38px; height: 38px; border-radius: 999px; border: 2px solid #fff; background: var(--purple-soft); object-fit: cover; display: block; box-shadow: 0 8px 22px rgba(82,37,135,.18); }
.drawer-nav, .drawer-section, .settings-list, .resource-list, .book-list, .book-section { display: grid; gap: 6px; }
.book-section { gap: 10px; }
.book-section + .book-section { margin-top: 14px; }
.book-section h2 { margin: 8px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--purple); }
.drawer-nav.secondary { grid-template-columns: 1fr; }
.empty-state { border: 1px dashed var(--line); background: #fbf8fd; color: var(--muted); border-radius: 16px; padding: 12px; font-size: 12px; line-height: 1.4; }
.drawer-section h2 { margin: 2px 0 0; font-size: 11px; }
.addon-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 6px 8px; background: #fbf8fd; }
.addon-card strong { display: block; font-size: 11px; }
.addon-card span { color: var(--muted); font-size: 10px; line-height: 1.15; }
.addon-card button { border: 0; border-radius: 999px; padding: 6px 9px; background: var(--purple); color: #fff; font-weight: 800; font-size: 12px; }
.member-access { position: static; z-index: 1; margin-top: 14px; display: grid; gap: 8px; }
.member-row { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 8px; display: flex; align-items: center; gap: 8px; text-align: left; box-shadow: 0 10px 28px rgba(82,37,135,.12); }
.member-row em { display: block; color: var(--muted); font-style: normal; font-size: 11px; }
.member-access-panel .access-card { padding: 12px; border-radius: 18px; box-shadow: 0 10px 28px rgba(82,37,135,.12); }
.member-access-panel { max-height: none; overflow: visible; }
.access-card h3 { margin: 0 0 8px; font-size: 18px; }
.profile-card-head { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; }
.profile-card-head h3 { margin: 0 0 3px; }
.profile-card-head em { display: block; color: var(--muted); font-style: normal; font-size: 11px; line-height: 1.35; }
.profile-avatar { width: 58px; height: 58px; font-size: 16px; }
.profile-avatar.has-photo { background-size: cover; background-position: center; color: transparent; }
.profile-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0; }
.preferences-editor { margin: 12px 0; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fbf8fd; }
.preferences-editor h2 { margin-top: 0; }
.preferences-editor label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.preferences-editor input, .preferences-editor select, .preferences-editor textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; }
.editor-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.profile-actions button { border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); padding: 10px 11px; text-align: left; font-weight: 800; box-shadow: 0 6px 16px rgba(82,37,135,.05); }
.settings-grid { display: grid; gap: 9px; margin: 10px 0 4px; }
.settings-grid article { border: 1px solid var(--line); border-radius: 14px; background: #fbf8fd; padding: 10px 11px; }
.settings-grid h2 { margin-top: 0; }
.access-summary { border: 1px solid var(--line); border-radius: 14px; background: #fbf8fd; padding: 10px 11px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.access-summary p { margin: 0 0 6px; }
.access-summary p:last-child { margin-bottom: 0; }
.access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.access-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 7px 0; font-size: 12px; }
.access-list li:last-child { border-bottom: 0; }
.access-list strong { color: var(--purple); text-align: right; }
.sheet { position: fixed; z-index: 30; left: 50%; bottom: 0; width: min(100%, 430px); max-height: 86vh; overflow-y: auto; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; background: #fff; border: 1px solid var(--line); border-radius: 28px 28px 0 0; box-shadow: var(--shadow); padding: 10px 20px 28px; }
.sheet.is-open { transform: translate(-50%, 0); visibility: visible; pointer-events: auto; }
.sheet-handle { width: 48px; height: 5px; border-radius: 999px; margin: 4px auto 14px; background: #dfd2e9; }
.sheet h1 { text-align: left; font-size: 30px; }
.sheet p { margin: 5px 0 0; color: var(--muted); }
.brain-list { display: grid; gap: 10px; }
.brain-row { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 14px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; text-align: left; }
.brain-row.is-locked { opacity: .62; }
.brain-row strong { display: block; }
.brain-row span.desc { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.hidden { display: none !important; }
.back-link { border: 0; background: transparent; color: var(--purple); font-weight: 800; padding: 0 0 20px; }
.submission-card { display: grid; gap: 14px; }
.submission-card label { display: grid; gap: 7px; font-weight: 800; }
.submission-card input, .submission-card textarea, .submission-card select { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 12px; color: var(--ink); outline-color: var(--purple); }
.submission-card textarea { min-height: 96px; resize: vertical; }
.primary-btn { border: 0; border-radius: 999px; background: var(--purple); color: #fff; padding: 14px 18px; font-weight: 900; }
.primary-btn.secondary { margin-top: 12px; background: var(--purple-soft); color: var(--purple); }
.resource-card .primary-btn, .book-card .primary-btn { margin-top: 14px; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.book-back-actions { margin-top: 18px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.book-back-actions .back-link { margin-top: 0; }
.mini-modal { position: fixed; z-index: 34; left: 50%; top: 50%; width: min(calc(100% - 32px), 390px); transform: translate(-50%, -44%) scale(.98); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 24px; }
.mini-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.mini-modal h1 { text-align: left; margin-bottom: 10px; font-size: 32px; }
.mini-modal .primary-btn { width: 100%; margin-top: 18px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.storage-note, .form-status, .fine-print { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.descriptor-page { gap: 16px; }
.descriptor-page h1 { text-align: left; }
.descriptor-page .muted { margin: 0; }
.simple-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.intake-form select[multiple] { min-height: 116px; }
.thank-you-state { display: grid; gap: 14px; }
.form-status.is-success { color: #16753a; }
.form-status.is-error { color: #a02727; }
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 0%, #f2e9fb 0, transparent 34rem), var(--bg); }
.login-card { width: min(100%, 430px); display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 34px; background: #fff; padding: 26px; box-shadow: var(--shadow); }
.login-brand { text-align: center; display: grid; place-items: center; gap: 8px; }
.login-brand h1 { font-size: clamp(38px, 10vw, 58px); }
.login-brand .muted { margin: 0; }
.login-form { display: grid; gap: 12px; }
.login-form label { display: grid; gap: 7px; font-weight: 800; color: var(--ink); }
.login-form input, .login-form select { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: #fbf8fd; padding: 14px; color: var(--ink); outline-color: var(--purple); }
.login-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-options button { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--purple); padding: 11px; font-weight: 900; }
@media (min-width: 900px) {
  .app-shell { grid-template-columns: 300px minmax(0, 1fr); place-items: stretch; align-items: stretch; gap: 18px; padding: 18px; }
  .drawer { position: static; z-index: 1; width: 300px; transform: none; transition: none; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 12px 44px rgba(82,37,135,.08); }
  .drawer.is-open { transform: none; }
  .drawer-head .icon-button, .topbar [data-open-drawer], .scrim { display: none; }
  .phone-frame { width: 100%; max-width: none; height: min(900px, calc(100vh - 36px)); height: min(900px, calc(100dvh - 36px)); }
  .home-panel { padding: 24px 32px 152px; }
  .chat-hero { max-width: 720px; margin: 0 auto 18px; }
  .chat-panel { width: 100%; margin: 0; min-height: 0; padding: 18px; }
  .chat-log, .chat-status { width: min(100%, 760px); margin-left: auto; margin-right: auto; }
  .chat-empty-state { justify-content: center; padding: 18px 18px 34px; }
  .prompt-suggestions { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .prompt-suggestions button { flex: 0 0 auto; white-space: nowrap; text-align: center; }
  .composer { left: 50%; right: auto; width: min(calc(100% - 64px), 760px); transform: translateX(-50%); }
  .content-panel { width: min(100%, 760px); margin: 0 auto; padding: 24px 32px 152px; }
}
@media (max-width: 520px) { .app-shell { padding: 0; } .phone-frame { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border: 0; border-radius: 0; } .sheet { width: 100%; } }
@media (max-height: 720px) { .topbar { height: 54px; flex-basis: 54px; } .home-panel { padding-top: 6px; padding-bottom: 132px; } .chat-empty-state { gap: 8px; padding-bottom: 18px; } .chat-empty-state p { font-size: clamp(27px, 6.8vw, 44px); } .robyn-face-placeholder, .robyn-face-photo { width: 54px; height: 54px; } .composer-bar { min-height: 54px; } }

/* v13 Epic Team cards */
.addon-card-button { width: 100%; cursor: pointer; }
.addon-card { grid-template-columns: 1fr auto; border-radius: 18px; padding: 12px 14px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 8px 26px rgba(82,37,135,.06); }
.addon-card:hover, .addon-card:focus-visible { border-color: #d8c3e8; background: #fbf8fd; outline: none; }
.addon-card strong { font-size: 13px; }
.addon-card span span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; }
.addon-card button { display: none; }
.login-card.is-landing { width: min(100%, 760px); padding: clamp(24px, 5vw, 48px); }
.login-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.login-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.login-feature-grid article { border: 1px solid var(--line); border-radius: 20px; background: #fbf8fd; padding: 14px; }
.login-feature-grid h2 { margin: 0 0 6px; }
.login-feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.login-form.compact { max-width: 460px; margin: 0 auto; width: 100%; }
@media (max-width: 680px) { .login-feature-grid { grid-template-columns: 1fr; } .login-card.is-landing { border-radius: 28px; } }

.login-gate-card, .login-gate-card .login-brand { text-align: center; }
.login-gate-card .muted { text-align: center; margin-left: auto; margin-right: auto; }
.login-companion { font-size: 18px; line-height: 1.2; margin-top: -4px; }
.login-active-note { text-align: center; }
.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; }

.login-under-button { text-align: center; font-size: 14px; line-height: 1.35; margin: -4px auto 0; max-width: 360px; }

.one-line-title { text-wrap: balance; max-width: 100%; }
@media (max-width: 420px) { .one-line-title { font-size: 30px; letter-spacing: -0.04em; } }


/* v16 compact recents and resources hub */
.thread.compact-thread { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 6px 8px; min-height: 30px; border-radius: 13px; box-shadow: none; }
.thread-title-button { min-width: 0; overflow: hidden; }
.thread.compact-thread strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.1; }
.thread.compact-thread span { display: none; }
.thread.compact-thread .thread-actions { flex-wrap: nowrap; gap: 3px; opacity: .7; }
.thread.compact-thread:hover .thread-actions, .thread.compact-thread:focus-within .thread-actions { opacity: 1; }
.thread .icon-thread-btn { width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0; font-size: 12px; line-height: 1; }
.resource-hub-card { padding: 14px; box-shadow: 0 8px 24px rgba(82,37,135,.055); }
.resource-hub-card h3 { margin-bottom: 4px; }
.compact-resource-btn { margin-top: 10px !important; padding: 10px 13px; }
.resource-accordion summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 900; color: var(--ink); }
.resource-accordion summary::-webkit-details-marker { display: none; }
.resource-accordion summary em { color: var(--purple); font-style: normal; font-size: 11px; font-weight: 900; }
.mini-resource-list { display: grid; gap: 5px; margin-top: 10px; }
.mini-resource-list h2 { margin: 8px 0 2px; font-size: 10px; }
.mini-resource-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 10px; color: var(--ink); text-decoration: none; text-align: left; font-size: 12px; }
.mini-resource-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-resource-row em { color: var(--muted); font-size: 10px; font-style: normal; flex: 0 0 auto; }
.muted-coming-soon { background: #fbf8fd; }
.coming-soon-grid { display: grid; gap: 6px; margin-top: 8px; }
.coming-soon-grid button { border: 1px dashed #d8c9e3; border-radius: 13px; background: #f4eef8; color: #8b8094; padding: 9px 10px; text-align: left; font-weight: 900; opacity: .72; }
.coming-soon-grid span { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }


/* Development demo refinements */
.sticky-view-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  padding: 6px 0 8px;
  margin: -4px 0 8px;
  background: linear-gradient(180deg, rgba(255,250,244,.98), rgba(255,250,244,.88));
  backdrop-filter: blur(12px);
}
.sticky-view-nav .back-link,
.back-link {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.model-picker-button {
  min-width: max-content;
  font-size: 11px;
  letter-spacing: -.02em;
}
.drawer-nav button,
.drawer-section h2,
.addon-card,
.member-row,
.upgrade-nav-button {
  font-size: 12px;
}
.drawer-section {
  gap: 8px;
}
.addon-master-button {
  width: 100%;
  border: 1px solid rgba(115, 66, 38, .18);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.78);
  color: #3a241b;
  text-align: left;
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}
.addon-master-button strong { font-size: 12px; }
.addon-master-button span { font-size: 11px; color: rgba(58,36,27,.68); }
.resource-hub-card,
.book-card,
.epic-option-card {
  padding: 12px;
}
.compact-coaching-card {
  display: grid;
  gap: 8px;
}
.compact-coaching-card h3,
.resource-hub-card h3 {
  margin-bottom: 2px;
}
.compact-resource-btn {
  font-size: 12px;
  padding: 8px 10px;
  min-height: 34px;
}
.accordion-toggle,
.epic-master-toggle {
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, .82);
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3a241b;
  font-weight: 800;
  text-align: left;
}
.accordion-toggle em,
.mini-resource-row em {
  font-style: normal;
  font-size: 11px;
  color: #925f36;
  white-space: nowrap;
}
.mini-resource-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.mini-resource-item,
.epic-option-card {
  border: 1px solid rgba(115, 66, 38, .14);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  overflow: hidden;
}
.mini-resource-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #3a241b;
  text-decoration: none;
  text-align: left;
}
.mini-resource-row span {
  display: grid;
  gap: 2px;
  font-size: 13px;
  font-weight: 800;
}
.mini-resource-row small {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(58,36,27,.64);
}
.small-section-title {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(58,36,27,.62);
}
.inline-detail {
  margin: 0 10px 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 247, 236, .92);
  display: grid;
  gap: 8px;
}
.inline-detail p {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
  color: rgba(58,36,27,.74);
}
.inline-detail .primary-btn,
.link-btn {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}
.smaller-footprint h3 { font-size: 14px; }
.smaller-footprint p { font-size: 12px; margin: 0; color: rgba(58,36,27,.64); }
.epic-team-hub,
.epic-option-list {
  display: grid;
  gap: 10px;
}
.epic-option-card.is-open,
.mini-resource-item.is-open {
  border-color: rgba(151, 99, 51, .34);
  box-shadow: 0 8px 20px rgba(80, 45, 22, .08);
}
@media (min-width: 900px) {
  .drawer { font-size: 12px; }
  .drawer .addon-card { padding: 8px 9px; }
  .member-access { padding: 8px; }
}


/* v2 preference refinements */
.drawer-nav .drawer-nav-card {
  display: grid !important;
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}
.drawer-nav .drawer-nav-card strong { font-weight: 800; }
.drawer-nav .drawer-nav-card span {
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 700;
}
.member-access .profile-actions button[data-close-member-panel] {
  border-color: rgba(255,255,255,.22);
}


/* v17 Trevor correction pass */
.drawer { overflow-y: auto; }
.member-access { margin-top: auto; padding-top: 10px; }
.member-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; }
.member-row-copy { min-width: 0; }
.member-settings-icon { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-size: 12px; }
.drawer-nav .drawer-nav-card {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 11px;
  box-shadow: 0 6px 18px rgba(82,37,135,.045);
}
.drawer-nav .drawer-nav-card strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.drawer-nav .drawer-nav-card span { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.25; }
.sticky-view-nav {
  background: var(--bg);
  box-shadow: 0 12px 18px var(--bg);
  backdrop-filter: none;
  margin: -24px -32px 14px;
  padding: 16px 32px 12px;
}
@media (max-width: 899px) { .sticky-view-nav { margin: -10px -14px 14px; padding: 12px 14px 12px; } }
.sticky-view-nav .back-link, .back-link { color: var(--purple); background: var(--purple-soft); }
.resource-hub-card, .book-card, .epic-option-card, .mini-resource-item { border-color: var(--line); background: #fff; }
.mini-resource-row, .accordion-toggle, .epic-master-toggle { color: var(--ink); background: #fff; }
.mini-resource-row em, .accordion-toggle em { color: var(--purple); font-weight: 800; }
.mini-resource-row small { color: var(--muted); font-weight: 500; }
.epic-option-link { text-decoration: none; }
.epic-option-link:hover, .epic-option-link:focus-visible { border-color: #d8c3e8; background: #fbf8fd; outline: none; }
.primary-btn.secondary, .compact-resource-btn { background: var(--purple-soft); color: var(--purple); }
.coaching-action-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.coaching-action-row .compact-resource-btn { margin-top: 0 !important; text-align: center; }
@media (min-width: 560px) { .coaching-action-row { grid-template-columns: 1fr 1fr; } }
.purple-section-title { color: var(--purple); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: 11px; margin: 10px 0 0; }
.thin-section-note { margin: -2px 0 4px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.inline-detail { background: #fbf8fd; border: 1px solid var(--line); }
.inline-detail p { color: var(--muted); }
.book-download-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .book-download-actions { grid-template-columns: 1fr 1fr; } }


/* v18 minimal profile/coaching/copy polish */
.member-row-copy em { text-transform: none; }
.profile-card-simple { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px; }
.profile-card-simple .eyebrow { margin: 0 0 3px; }
.profile-close-arrow { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.profile-actions button { font-weight: 600; }
.content-panel[data-view="coaching"] .eyebrow { font-size: 10px; }
.content-panel[data-view="coaching"] h1 { font-size: clamp(22px, 5vw, 34px); line-height: 1.02; margin: 4px 0 6px; }
.content-panel[data-view="coaching"] .muted { font-size: 13px; line-height: 1.35; }
.content-panel[data-view="coaching"] .submission-card { gap: 10px; padding: 14px; border-radius: 18px; }
.content-panel[data-view="coaching"] .submission-card label { font-size: 12px; gap: 5px; }
.content-panel[data-view="coaching"] textarea { min-height: 92px; }
.label-hint { color: var(--muted); font-weight: 500; }
.is-disabled-resource { opacity: .5; cursor: default; background: #f5f2f7 !important; }
.is-disabled-resource em { color: var(--muted) !important; }
.model-row.is-coming-soon { opacity: .58; }
.bubble-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copy-bubble-btn { border: 0; background: transparent; color: var(--muted); border-radius: 7px; cursor: pointer; font-size: 13px; padding: 2px 5px; }
.copy-bubble-btn:hover, .copy-bubble-btn:focus-visible { background: var(--purple-soft); color: var(--purple); outline: none; }
.waitlist-form label { display: grid; gap: 5px; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.waitlist-form input { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; font: inherit; }

/* RobynAI login cleanup */
.login-brand h1 { font-size: clamp(34px, 8vw, 50px); }
.login-subline { font-size: 14px; line-height: 1.35; max-width: 280px; }
.login-companion { font-size: 16px; line-height: 1.2; }
