/* Mürekkep, Kâğıt ve Bakır */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #F4F0E8; --surface: #FAF7F2; --surface-2: #EDE7DC; --surface-3: #E3DBCD;
  --ink: #1A1814; --ink-2: #5C554B; --ink-3: #8A8175;
  --brand: #B85C38; --brand-hover: #9E4B2B; --brand-soft: rgba(184, 92, 56, 0.11);
  --moss: #3E5C50; --moss-soft: rgba(62, 92, 80, 0.12);
  --amber: #A15C07; --amber-soft: rgba(161, 92, 7, 0.13);
  --danger: #B43C2F; --danger-soft: rgba(180, 60, 47, 0.12);
  --border: rgba(26, 24, 20, 0.09);
  --shadow-sm: 0 2px 8px rgba(26, 24, 20, .05);
  --shadow-md: 0 12px 32px rgba(26, 24, 20, .08);
  --shadow-lg: 0 24px 70px rgba(26, 24, 20, .14);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  --radius: 16px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12110F; --surface: #1B1916; --surface-2: #25221E; --surface-3: #302C26;
  --ink: #EDE6DC; --ink-2: #A89F92; --ink-3: #766E63;
  --brand: #E39B74; --brand-hover: #EEAE8B; --brand-soft: rgba(227, 155, 116, 0.14);
  --moss: #7BA896; --moss-soft: rgba(123, 168, 150, 0.15);
  --amber: #E5A94C; --amber-soft: rgba(229, 169, 76, 0.15);
  --danger: #E5786C; --danger-soft: rgba(229, 120, 108, 0.14);
  --border: rgba(237, 230, 220, 0.09);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .16);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .24);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
svg { flex: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand-soft); color: var(--ink); }
.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; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font: 600 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.section-title, .serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.035em; }
.section-title { margin: 12px 0 18px; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.muted { color: var(--ink-2); }
.mono, .badge, .price, .pairing-code, .count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--brand); color: var(--surface); text-decoration: none; font-weight: 600; transition: background .18s, transform .18s, border-color .18s; }
.button:hover, .btn:hover { background: var(--brand-hover); }
.button:active, .btn:active { transform: translateY(1px); }
.button.secondary, .btn-secondary { border-color: var(--border); background: var(--surface); color: var(--ink); }
.button.ghost, .btn-ghost { background: transparent; color: var(--ink-2); }
.button.secondary:hover, .btn-secondary:hover, .button.ghost:hover, .btn-ghost:hover { background: var(--surface-2); }
.icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid transparent; border-radius: 10px; color: var(--ink-2); background: transparent; }
.icon-button:hover { background: var(--surface-2); color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; color: var(--ink-2); background: var(--surface-2); font-size: 11px; line-height: 1.3; }
.badge.moss, .badge-calm { color: var(--moss); background: var(--moss-soft); }
.badge.amber, .badge-tense { color: var(--amber); background: var(--amber-soft); }
.badge.danger, .badge-urgent { color: var(--danger); background: var(--danger-soft); }
.badge.brand { color: var(--brand); background: var(--brand-soft); }
.field { display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select, .input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

/* Vitrin */
.landing { overflow: hidden; }
.landing-nav, .top-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; border-bottom: 1px solid var(--border); }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--font-serif); text-decoration: none; letter-spacing: -.03em; white-space: nowrap; flex-shrink: 0; }
.brand-mark svg, .brand-mark img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-links a:hover { color: var(--brand); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(48px, 8vw, 110px); min-height: 620px; padding-block: 80px 100px; }
.hero-copy { max-width: 620px; }
.hero h1, .hero-title { margin: 20px 0 24px; font: 500 clamp(48px, 6.5vw, 82px)/.99 var(--font-serif); letter-spacing: -.055em; }
.hero h1 em, .hero-title em { color: var(--brand); font-weight: 400; font-style: italic; padding-right: .14em; word-spacing: .16em; }
.hero-copy > p { max-width: 490px; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--ink-3); font-size: 12px; }
.phone-stage { display: grid; place-items: center; min-height: 520px; position: relative; }
.phone-stage::before { content: ''; position: absolute; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--brand-soft); }
.phone-frame, .simulator-phone { position: relative; width: min(100%, 300px); min-height: 550px; padding: 12px; border: 1px solid var(--border); border-radius: 38px; background: var(--ink); box-shadow: var(--shadow-lg); transform: rotate(3deg); }
.phone-screen { display: flex; flex-direction: column; min-height: 526px; overflow: hidden; border-radius: 28px; background: var(--surface); color: var(--ink); }
.phone-notch { align-self: center; width: 82px; height: 14px; border-radius: 0 0 10px 10px; background: var(--ink); }
.phone-header { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--border); }
.phone-messages { display: grid; align-content: start; gap: 10px; flex: 1; padding: 18px 14px; background: var(--bg); }
.phone-message { width: fit-content; max-width: 90%; padding: 10px 12px; border-radius: 12px 12px 12px 3px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 12px; }
.phone-message.outgoing { justify-self: end; border-radius: 12px 12px 3px 12px; background: var(--brand-soft); }
.phone-coach { margin: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.simulator-tabs { display: flex; justify-content: center; gap: 8px; position: relative; margin-top: 18px; }
.simulator-tab { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.simulator-tab[aria-selected="true"], .simulator-tab.active { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.landing-section { padding-block: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading p { max-width: 440px; color: var(--ink-2); }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card { grid-column: span 5; min-height: 220px; padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.bento-card:nth-child(4n + 1), .bento-card:nth-child(4n + 4) { grid-column: span 7; }
.bento-card h3, .trust-card h3 { margin: 20px 0 10px; font: 500 26px/1.1 var(--font-serif); }
.bento-card p, .trust-card p { color: var(--ink-2); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.trust-grid, .pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-card { padding: 24px; border-top: 2px solid var(--brand); }
.trust-card h3 { font-size: 21px; }
.pricing-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.pricing-card.featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.pricing-card .price { color: var(--ink); font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.06em; }
.pricing-card .price small { color: var(--ink-3); font: 400 12px var(--font-sans); letter-spacing: 0; }
.pricing-card ul { display: grid; gap: 10px; flex: 1; padding: 0; list-style: none; color: var(--ink-2); font-size: 13px; }
.landing-footer { padding: 36px 0; border-top: 1px solid var(--border); color: var(--ink-3); }

/* Studio */
.studio-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr) 390px; grid-template-rows: 64px minmax(0, 1fr); height: 100dvh; min-height: 0; overflow: hidden; background: var(--bg); }
.command-bar, .studio-header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.command-actions { display: flex; align-items: center; gap: 8px; }
.inbox-panel, .split-inbox { min-width: 0; min-height: 0; overflow-y: auto; border-right: 1px solid var(--border); background: var(--surface); }
.inbox-header { padding: 22px 20px 12px; }
.inbox-header h2 { margin: 0; font: 500 26px/1.1 var(--font-serif); }
.inbox-search { margin: 0 16px 12px; }
.briefing-strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; }
.briefing-pill { flex: none; min-height: 36px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.briefing-pill:hover { border-color: var(--brand); }
.inbox-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0 12px 12px; border-bottom: 1px solid var(--border); }
.inbox-tab { min-height: 40px; padding: 6px 4px; border: 0; border-radius: 9px; color: var(--ink-2); background: transparent; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-align: center; }
.inbox-tab.active, .inbox-tab[aria-selected="true"] { color: var(--brand); background: var(--brand-soft); }
.chat-list { display: grid; align-content: start; }
.chat-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; width: 100%; min-height: 76px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--border); text-align: left; color: var(--ink); background: transparent; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.active, .chat-item[aria-current="true"] { background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); font-weight: 600; }
.chat-item > span { min-width: 0; }
.chat-item-title, .chat-item-preview { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-item-title { font-weight: 600; }
.chat-item-preview { color: var(--ink-3); font-size: 12px; }
.chat-item-time { color: var(--ink-3); font: 11px var(--font-mono); font-variant-numeric: tabular-nums; }
.chat-stage, .conversation-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-header h2 { margin: 0; font: 500 23px/1.2 var(--font-serif); }
.chat-header p { margin: 3px 0 0; color: var(--ink-3); font-size: 12px; }
.message-stream, .messages { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; padding: 28px clamp(18px, 4vw, 56px); }
.message-bubble { align-self: flex-start; max-width: min(78%, 540px); padding: 12px 15px; border: 1px solid var(--border); border-radius: 15px 15px 15px 4px; background: var(--surface); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.message-bubble.outgoing, .message-bubble.from-me { align-self: flex-end; border-radius: 15px 15px 4px 15px; border-color: rgba(184, 92, 56, .4); background: #eed3c4; }
[data-theme="dark"] .message-bubble.outgoing, [data-theme="dark"] .message-bubble.from-me { border-color: rgba(227, 155, 116, .45); background: #513326; }
.message-sender { display: block; margin-bottom: 5px; color: var(--brand); font-size: 11px; font-weight: 700; }
.day-divider { align-self: center; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; }
.history-load-bar { align-self: center; max-width: 100%; padding: 4px; text-align: center; }
.history-load-bar .button { max-width: 100%; white-space: normal; }
.message-meta { display: block; margin-top: 6px; color: var(--ink-3); font: 10px var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.message-quote { padding-left: 10px; border-left: 2px solid var(--brand); color: var(--ink-2); font-size: 12px; }
.bubble-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bubble-action { min-height: 28px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 11px; font-weight: 600; }
.bubble-action:hover { border-color: var(--brand); color: var(--brand); }
.setup-callout { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--brand-soft); font-size: 13px; }
.setup-callout p { margin: 0; }
.account-callout { margin: 0 16px 12px; }
.composer-quote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.composer-quote strong { color: var(--brand); }
.composer-quote .button { min-height: 32px; padding: 4px 10px; margin-left: auto; font-size: 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status-dot.online { background: var(--moss); box-shadow: 0 0 0 3px var(--moss-soft); }
.status-dot.pending { background: var(--amber); }
.placeholder-lock, .slot-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--border); background: var(--amber-soft); color: var(--amber); font-size: 12px; }
.placeholder-lock input, .slot-lock input { min-height: 44px; width: 120px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.quick-chips { display: flex; overflow-x: auto; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.quick-chip { flex: none; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; }
.quick-chip:hover { border-color: var(--brand); color: var(--brand); }
.composer { padding: 14px 20px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.composer textarea { width: 100%; min-height: 76px; padding: 12px; resize: vertical; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.composer-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.composer-actions button[hidden] { display: none; }
.coach-panel, .coach-studio { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 22px; border-left: 1px solid var(--border); background: var(--surface); }
.coach-analysis, .summary-box { max-width: 100%; min-width: 0; overflow-wrap: anywhere; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--brand-soft); font-size: 13px; }
.coach-analysis p, .summary-box p { margin: 6px 0; }
.intent-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; overflow-wrap: anywhere; }
.intent-chips .tone-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.research-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; margin-top: 12px; overflow-wrap: anywhere; font-size: 13px; }
.draft-risk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; min-width: 0; padding: 10px 16px; overflow-wrap: anywhere; border-top: 1px solid var(--border); background: var(--amber-soft); color: var(--amber); font-size: 13px; }
.summary-box { display: grid; gap: 8px; background: var(--bg); }
.summary-box ul { max-width: 100%; min-width: 0; padding-left: 20px; }
.summary-box li { margin-bottom: 8px; overflow-wrap: anywhere; }
.composer-actions { flex-wrap: wrap; }
.coach-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 22px; }
.coach-status, .situation-title { margin: 10px 0 14px; font: 500 28px/1.15 var(--font-serif); letter-spacing: -.035em; }
.signal-row, .tone-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.coach-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.coach-section h3 { margin: 0 0 12px; color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tone-chip { min-height: 44px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.tone-chip.active, .tone-chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.suggestion-list { display: grid; gap: 10px; }
.suggestion-card { position: relative; padding: 16px 16px 16px 48px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.suggestion-card:hover { border-color: var(--brand); }
.suggestion-number { position: absolute; top: 15px; left: 14px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--brand); background: var(--brand-soft); font: 600 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.suggestion-card p { margin: 8px 0; overflow-wrap: anywhere; }
.suggestion-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-accordion, .accordion { border-top: 1px solid var(--border); }
.contact-accordion summary, .accordion summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; }
.contact-accordion[open] summary { color: var(--brand); }
.pairing-code { font-size: 40px; line-height: 1.1; letter-spacing: .08em; font-weight: 600; }

/* Katmanlar ve bildirimler */
.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(18, 17, 15, .58); }
.modal, .auth-modal { width: min(100%, 480px); max-height: min(90dvh, 800px); overflow: auto; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal-header h2 { margin: 0; font: 500 30px/1.1 var(--font-serif); }
.modal-form { display: grid; gap: 16px; margin-top: 24px; }
.drawer { position: fixed; z-index: 45; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; overflow-y: auto; padding: 24px; background: var(--surface); box-shadow: var(--shadow-lg); }
.toast { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60; max-width: min(360px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.mobile-only, .mobile-coach-toggle { display: none; }
[hidden] { display: none !important; }
@media (max-width: 1080px) {
  .studio-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .coach-panel, .coach-studio { position: fixed; z-index: 30; top: 64px; right: 0; bottom: 0; width: min(390px, 100vw); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .24s ease; }
  .coach-panel.open, .coach-studio.open, .studio-shell.coach-open .coach-panel, .studio-shell.coach-open .coach-studio { transform: translateX(0); }
  .mobile-coach-toggle { display: inline-grid; }
  .pricing-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 36px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 600px); }
  .landing-nav, .top-nav { min-height: 64px; }
  .landing-nav { flex-wrap: wrap; padding-block: 10px; }
  .desktop-only { display: none; }
  .nav-links { display: none; }
  .nav-actions { gap: 6px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 60px 72px; }
  .hero h1, .hero-title { font-size: clamp(44px, 12vw, 64px); }
  .hero-copy > p { font-size: 16px; }
  .phone-stage { min-height: 480px; }
  .phone-frame, .simulator-phone { transform: none; }
  .landing-section { padding-block: 60px; }
  .section-heading { display: block; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card, .bento-card:nth-child(n) { grid-column: auto; min-height: 0; padding: 24px; }
  .trust-grid, .pricing-grid { grid-template-columns: 1fr; }
  .studio-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(60px + env(safe-area-inset-top)) minmax(0, 1fr); height: 100dvh; }
  .command-bar, .studio-header { grid-column: 1; padding-inline: 12px; }
  .command-bar { padding-top: env(safe-area-inset-top); }
  .command-bar .brand-label { display: none; }
  .command-bar .command-actions { min-width: 0; overflow-x: auto; }
  .command-bar .command-actions > * { flex: none; }
  .chat-header .command-actions { min-width: 0; overflow-x: auto; width: 100%; }
  .chat-header .mobile-coach-toggle { order: -1; }
  .chat-header .command-actions > * { flex: none; }
  .composer-actions { flex-wrap: wrap; }
  .inbox-panel, .split-inbox { grid-column: 1; grid-row: 2; border: 0; }
  .chat-stage, .conversation-panel { display: none; grid-column: 1; grid-row: 2; }
  .studio-shell.chat-open .inbox-panel, .studio-shell.chat-open .split-inbox { display: none; }
  .studio-shell.chat-open .chat-stage, .studio-shell.chat-open .conversation-panel { display: flex; }
  .chat-header { min-height: 64px; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 14px; }
  .chat-header h2 { font-size: 19px; }
  .message-stream, .messages { padding: 18px 14px; }
  .message-bubble { max-width: 88%; }
  .composer { padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
  .coach-panel, .coach-studio { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: min(88dvh, 800px); padding: 20px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; transform: translateY(105%); }
  .coach-panel.open, .coach-studio.open, .studio-shell.coach-open .coach-panel, .studio-shell.coach-open .coach-studio { transform: translateY(0); }
  .mobile-only { display: initial; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal, .auth-modal { width: 100%; max-height: 90dvh; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .drawer { top: auto; bottom: 0; width: 100%; height: auto; max-height: 90dvh; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .toast { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
