:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #151718;
  --panel-soft: #1a1c1e;
  --line: #2a2d2f;
  --line-soft: #222527;
  --text: #f0f0ec;
  --muted: #9a9d9d;
  --quiet: #696e70;
  --orange: #ff8a36;
  --orange-soft: #ffad68;
  --green: #83c9a7;
  --red: #ed8278;
  --heading: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --body: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: relative; z-index: 4; display: flex; flex-direction: column; min-height: 100vh;
  padding: 22px 14px 14px; background: #141617; border-right: 1px solid var(--line-soft);
}
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; margin-bottom: 30px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--orange); transform: rotate(45deg); color: var(--orange); }
.brand-mark span { transform: rotate(-45deg); font: 700 13px var(--heading); }
.brand-name { display: grid; gap: 1px; font: 700 18px/1 var(--heading); letter-spacing: 0; }
.brand-name > span { color: var(--quiet); font: 600 8px/1.5 var(--heading); letter-spacing: 0; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--muted); cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.icon-button:hover { color: var(--text); background: #232628; border-color: #333739; }
.icon-button svg { width: 18px; height: 18px; }
.new-chat-button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 11px; border: 1px solid #55402f; border-radius: 5px; background: #211b17; color: #ffc08b; cursor: pointer; text-align: left; transition: background .18s ease, border-color .18s ease; }
.new-chat-button:hover { background: #30221a; border-color: #93613d; }
.new-chat-button svg { width: 16px; height: 16px; }
.new-chat-button span { flex: 1; font-weight: 600; }
kbd { padding: 2px 5px; background: #232526; border: 1px solid #373b3d; border-radius: 3px; color: #a4a7a7; font: 10px var(--heading); }
.new-chat-button kbd { background: #30251d; border-color: #483427; color: #b88967; }
.sidebar-label { color: #757a7b; font: 600 10px var(--heading); letter-spacing: 0; }
.primary-nav { display: grid; gap: 3px; margin: 25px 0 28px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 39px; padding: 0 10px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: #a2a5a4; cursor: pointer; text-align: left; transition: color .14s ease, background .14s ease; }
.nav-item:hover { color: #e6e5e0; background: #1d2021; }
.nav-item.active { background: #222322; color: #f4ede7; border-color: #333330; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; color: #888d8c; }
.nav-item.active svg { color: var(--orange); }
.nav-item > span:nth-of-type(1) { flex: 1; font-size: 12px; font-weight: 500; }
.nav-dot, .connection-light, .footer-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px #ff8a3666; }
.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; margin-bottom: 10px; }
.history-count { color: #707575; font: 11px var(--heading); }
.history-list { display: grid; align-content: start; gap: 3px; max-height: 40vh; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 8px 8px 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #a3a6a4; cursor: pointer; text-align: left; }
.history-item:hover, .history-item.current { background: #1e2021; color: var(--text); }
.history-item.current { border-color: #2e3132; }
.history-item svg { width: 14px; height: 14px; flex: 0 0 auto; color: #74797a; }
.history-title { flex: 1; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-delete { display: none; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 3px; background: transparent; color: #8d9292; cursor: pointer; }
.history-item:hover .history-delete, .history-item:focus-within .history-delete { display: grid; }
.history-delete:hover { background: #37302c; color: var(--orange-soft); }
.history-delete svg { width: 13px; height: 13px; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.settings-link { margin: 0 0 13px; border-top: 1px solid var(--line-soft); border-radius: 0; padding-top: 13px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 13px 8px 0; border-top: 1px solid var(--line-soft); }
.profile-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #66503a; border-radius: 50%; background: #29231d; color: #efa166; font: 700 11px var(--heading); }
.profile-copy { display: grid; gap: 2px; flex: 1; }
.profile-copy strong { font-size: 11px; font-weight: 600; }
.profile-copy span { color: #818685; font-size: 10px; }
.profile-status { width: 7px; height: 7px; border-radius: 50%; background: #87c6a2; box-shadow: 0 0 7px #87c6a277; }
.mobile-close, .mobile-menu, .sidebar-backdrop { display: none; }

.main-panel { min-width: 0; min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 32px; border-bottom: 1px solid var(--line-soft); background: rgba(16,17,18,.84); }
.topbar-left, .topbar-right, .breadcrumb, .connection-label { display: flex; align-items: center; }
.breadcrumb { gap: 10px; color: #858a8a; font: 600 11px var(--heading); letter-spacing: 0; }
.breadcrumb strong { color: #d7d7d1; font-weight: 600; }
.crumb-slash { color: #4c5152; }
.topbar-right { gap: 13px; }
.connection-label { gap: 8px; color: #9da2a0; font-size: 10px; }
.connection-light { width: 6px; height: 6px; background: #d2a46f; box-shadow: 0 0 8px #d2a46f66; }
.connection-label.connected .connection-light { background: #7fc49c; box-shadow: 0 0 8px #7fc49c77; }
.connection-label.error .connection-light { background: var(--red); box-shadow: 0 0 8px #ed827877; }
.top-settings { width: 32px; height: 32px; }
.top-settings svg { width: 16px; height: 16px; }
.chat-layout { display: grid; grid-template-columns: minmax(420px, 1fr) 248px; gap: 0; max-width: 1500px; min-height: calc(100vh - 59px); margin: 0 auto; }
.chat-column { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - 59px); border-right: 1px solid var(--line-soft); }
.welcome-view { width: min(100% - 64px, 720px); margin: auto; padding: 48px 0 36px; animation: appear .5s ease both; }
.welcome-kicker { display: flex; align-items: center; gap: 10px; color: var(--orange); font: 600 11px var(--heading); letter-spacing: 0; }
.kicker-line { width: 24px; height: 1px; background: var(--orange); }
.welcome-view h1 { margin: 18px 0 13px; color: #f1f0eb; font: 600 54px/.98 var(--heading); letter-spacing: 0; }
.welcome-view h1 span { color: var(--orange); }
.welcome-description { margin: 0; color: #a1a4a3; font-size: 13px; line-height: 1.9; }
.prompt-section { margin-top: 39px; }
.section-caption { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: #c1c2bd; font-size: 11px; font-weight: 600; }
.section-caption > span:last-child { color: #707676; font: 600 10px var(--heading); }
.prompt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.prompt-card { position: relative; display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 10px 12px; background: rgba(24,26,27,.88); border: 1px solid #2b2e2f; border-radius: 4px; cursor: pointer; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.prompt-card:hover { transform: translateY(-2px); background: #202223; border-color: #6a4a33; }
.prompt-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 4px; background: #28211b; color: var(--orange); }
.prompt-icon svg { width: 17px; height: 17px; }
.prompt-blue { color: #7caec9; background: #1b262b; }
.prompt-green { color: #88c7a6; background: #1a2722; }
.prompt-yellow { color: #d6b77d; background: #28251c; }
.prompt-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.prompt-card strong { overflow: hidden; color: #e8e7e1; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.prompt-card small { overflow: hidden; color: #858a89; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.prompt-arrow { width: 15px; height: 15px; flex: 0 0 auto; margin-left: auto; color: #6d7373; transition: transform .16s ease, color .16s ease; }
.prompt-card:hover .prompt-arrow { transform: translateX(2px); color: var(--orange); }
.welcome-footnote { display: flex; align-items: center; gap: 7px; margin-top: 19px; color: #767b7c; font-size: 10px; line-height: 1.6; }
.footnote-mark { display: grid; place-items: center; width: 14px; height: 14px; flex: 0 0 auto; border: 1px solid #626769; border-radius: 50%; color: #8e9292; font: 10px var(--heading); }
.message-list { display: none; flex: 1; width: min(100% - 64px, 780px); margin: 0 auto; padding: 30px 0 15px; }
.message-list.has-messages { display: flex; flex-direction: column; gap: 24px; }
.message { display: flex; align-items: flex-start; gap: 12px; min-width: 0; animation: appear .25s ease both; }
.message-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #66503a; border-radius: 50%; background: #29231d; color: #efa166; font: 700 10px var(--heading); }
.message.user .message-avatar { border-color: #3a4242; background: #202728; color: #b9c9c7; }
.message-body { min-width: 0; flex: 1; }
.message-meta { display: flex; align-items: center; gap: 8px; min-height: 25px; margin-bottom: 7px; color: #e8e6e0; font-size: 11px; font-weight: 600; }
.message-meta time { color: #707675; font-size: 9px; font-weight: 400; }
.message-content { color: #cfceca; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.message.user .message-content { color: #dfdfd8; white-space: pre-wrap; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 12px; }
.message-content h1, .message-content h2, .message-content h3, .message-content h4 { margin: 18px 0 8px; color: #f0eee8; font: 600 18px/1.4 var(--body); }
.message-content h1 { font-size: 21px; }
.message-content h2 { font-size: 17px; }
.message-content h3, .message-content h4 { font-size: 14px; }
.message-content strong { color: #f1b07b; font-weight: 700; }
.message-content em { color: #e3d3c3; }
.message-content code { padding: 2px 5px; border: 1px solid #343738; border-radius: 3px; background: #202223; color: #dfbd9e; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.message-content pre { overflow-x: auto; margin: 10px 0 14px; padding: 13px; border: 1px solid #303435; border-radius: 4px; background: #151718; color: #d6d3cb; font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.message-content pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.message-content blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 2px solid #bf7342; color: #b6b5b0; }
.message-content ul, .message-content ol { display: grid; gap: 5px; margin: 8px 0 13px; padding-left: 21px; }
.message-content li::marker { color: var(--orange); }
.message-content a { color: #f1a66e; text-decoration-color: #945c36; text-underline-offset: 3px; }
.message-content a:hover { color: #ffd2ad; }
.message-content hr { height: 1px; margin: 16px 0; border: 0; background: var(--line); }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 12px 0; border: 1px solid #303435; border-radius: 4px; }
.message-content table { width: 100%; border-collapse: collapse; font-size: 11px; }
.message-content th, .message-content td { min-width: 105px; padding: 8px 10px; border-bottom: 1px solid #303435; text-align: left; vertical-align: top; }
.message-content th { background: #202223; color: #eab48a; font-weight: 600; }
.message-content tr:last-child td { border-bottom: 0; }
.message-actions { display: flex; gap: 5px; margin-top: 11px; }
.message-action { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #838988; cursor: pointer; font-size: 10px; }
.message-action:hover { border-color: #353a3a; background: #202324; color: #d8d8d2; }
.message-action svg { width: 13px; height: 13px; }
.source-list { display: grid; gap: 5px; margin-top: 15px; padding-top: 11px; border-top: 1px solid #2a2e2f; }
.source-heading { color: #8f9492; font-size: 10px; }
.source-link { display: flex; align-items: baseline; gap: 6px; color: #d7a278; font-size: 10px; text-decoration: none; }
.source-link::before { content: "↗"; color: var(--orange); }
.source-link:hover { color: #ffcc9f; text-decoration: underline; }
.message-error { padding: 11px 13px; border: 1px solid #593833; border-radius: 4px; background: #281d1b; color: #e2aaa1; font-size: 11px; line-height: 1.7; }
.message-error button { display: block; margin-top: 7px; padding: 0; border: 0; background: transparent; color: #ffbd92; cursor: pointer; font-weight: 600; }
.typing-indicator { display: flex; align-items: center; gap: 5px; height: 20px; }
.typing-indicator span { width: 5px; height: 5px; border-radius: 50%; background: #e59b66; animation: typing 1.1s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
.composer-dock { width: min(100% - 64px, 780px); margin: auto auto 15px; padding-top: 18px; }
.composer-shell { padding: 11px 14px 9px; border: 1px solid #393d3e; border-radius: 6px; background: #1a1c1d; box-shadow: 0 12px 40px #00000030; transition: border-color .17s ease, box-shadow .17s ease; }
.composer-shell:focus-within { border-color: #895b3e; box-shadow: 0 0 0 2px #ff8a3614, 0 12px 40px #00000030; }
.composer-context { display: flex; align-items: center; gap: 7px; min-height: 21px; color: #bcbdb7; font-size: 10px; }
.coach-spark { color: var(--orange); font-size: 13px; }
.context-divider { width: 1px; height: 11px; margin: 0 2px; background: #45494a; }
.composer-context > span:last-child { overflow: hidden; color: #767c7c; text-overflow: ellipsis; white-space: nowrap; }
.composer-form textarea { display: block; width: 100%; min-height: 44px; max-height: 150px; resize: none; padding: 10px 0 8px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; line-height: 1.7; }
.composer-form textarea::placeholder { color: #727777; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 29px; }
.composer-tip { color: #777d7d; font-size: 9px; }
.composer-tip kbd { font-size: 9px; }
.tip-dot { margin: 0 5px; color: #525757; }
.composer-actions { display: flex; align-items: center; gap: 10px; }
.char-count { color: #737979; font: 10px var(--heading); }
.send-button { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #f19756; border-radius: 4px; background: var(--orange); color: #21170f; cursor: pointer; transition: background .15s ease, transform .15s ease, opacity .15s ease; }
.send-button:hover:not(:disabled) { transform: translateY(-1px); background: #ffad69; }
.send-button:disabled { cursor: not-allowed; opacity: .46; }
.send-button svg { width: 16px; height: 16px; }
.composer-disclaimer { margin-top: 9px; color: #676d6d; font-size: 9px; text-align: center; }
.turnstile-slot { min-height: 0; }

.insight-rail { display: flex; flex-direction: column; min-width: 0; padding: 24px 18px; background: rgba(19,21,22,.55); }
.rail-section { padding: 0 0 21px; border-bottom: 1px solid var(--line-soft); }
.rail-section + .rail-section { padding-top: 19px; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; color: #dbdcd6; font-size: 11px; font-weight: 600; }
.rail-heading-en { color: #737979; font: 600 9px var(--heading); }
.usage-number { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.usage-number strong { color: #f1a168; font: 600 36px/.95 var(--heading); }
.usage-number span { color: #939897; font-size: 10px; }
.usage-track { height: 4px; margin: 12px 0 8px; overflow: hidden; border-radius: 4px; background: #303435; }
.usage-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d87336, #ffa962); transition: width .4s ease; }
.usage-caption { color: #7c8281; font-size: 9px; }
.focus-list { display: grid; margin-top: 12px; }
.focus-row { display: flex; align-items: center; gap: 8px; min-height: 33px; border-bottom: 1px solid #242829; color: #b5b7b2; font-size: 9px; }
.focus-row:last-child { border-bottom: 0; }
.focus-index { color: #8b7059; font: 600 10px var(--heading); }
.focus-row > span:nth-child(2) { flex: 1; }
.focus-check { color: #8f9b8e; font: 14px var(--heading); }
.rail-callout { position: relative; overflow: hidden; margin-top: 20px; padding: 15px 13px; border: 1px solid #3b342e; border-radius: 4px; background: linear-gradient(135deg, #211d19, #1a1b1b 72%); }
.callout-label { color: var(--orange); font: 600 9px var(--heading); }
.rail-callout strong { position: relative; z-index: 1; display: block; margin-top: 10px; color: #eee9e0; font-size: 13px; line-height: 1.65; }
.rail-callout p { position: relative; z-index: 1; margin: 8px 0 0; color: #989996; font-size: 9px; line-height: 1.8; }
.callout-sigil { position: absolute; right: 2px; bottom: -34px; color: #ffffff08; font: 700 120px/.9 var(--heading); }
.rail-footer { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 23px; color: #767c7c; font-size: 9px; }
.footer-dot { width: 5px; height: 5px; background: #80b998; box-shadow: none; }

.settings-dialog { width: min(500px, calc(100% - 32px)); max-width: 500px; padding: 0; border: 1px solid #414445; border-radius: 6px; background: #17191a; color: var(--text); box-shadow: 0 24px 90px #000a; }
.settings-dialog::backdrop { background: #070808bd; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 21px 16px; border-bottom: 1px solid #2a2e2f; }
.dialog-kicker { color: var(--orange); font: 600 10px var(--heading); }
.dialog-header h2 { margin: 5px 0 0; font-size: 18px; font-weight: 600; }
.settings-content { padding: 3px 21px 21px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 65px; border-bottom: 1px solid #282c2d; }
.settings-row > div:first-child { display: grid; gap: 5px; }
.settings-row strong { color: #e5e4de; font-size: 11px; font-weight: 600; }
.settings-row span { color: #838988; font-size: 9px; }
.settings-row code, .setting-state { color: #d8a47a; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.text-action { border: 0; background: transparent; color: #e19a6c; cursor: pointer; font-size: 10px; }
.text-action:hover { color: #ffc79f; text-decoration: underline; }
.settings-note { margin-top: 14px; padding: 10px 11px; border: 1px solid #37342e; border-radius: 3px; background: #211e1a; color: #b2a08c; font-size: 10px; line-height: 1.7; }
.toast { position: fixed; z-index: 10; right: 18px; bottom: 18px; max-width: min(390px, calc(100vw - 36px)); padding: 11px 14px; transform: translateY(12px); border: 1px solid #544437; border-radius: 4px; background: #26211c; color: #f0d7c2; font-size: 11px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

@media (min-width: 1500px) {
  .chat-layout { grid-template-columns: minmax(480px, 1fr) 270px; }
  .insight-rail { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 225px minmax(0, 1fr); }
  .chat-layout { grid-template-columns: minmax(360px, 1fr) 220px; }
  .insight-rail { padding-right: 13px; padding-left: 13px; }
  .welcome-view, .message-list, .composer-dock { width: min(100% - 42px, 720px); }
  .topbar { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 8; width: min(290px, calc(100vw - 48px)); min-height: 100dvh; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px #0008; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.visible { position: fixed; inset: 0; z-index: 7; display: block; background: #050606a8; }
  .mobile-close, .mobile-menu { display: inline-grid; }
  .topbar { height: 54px; padding: 0 14px; }
  .topbar-left { gap: 8px; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .chat-layout { display: block; min-height: calc(100dvh - 55px); }
  .chat-column { min-height: calc(100dvh - 55px); border-right: 0; }
  .welcome-view { width: min(100% - 36px, 600px); padding: 35px 0 25px; }
  .welcome-view h1 { margin-top: 16px; font-size: 46px; }
  .welcome-description { font-size: 12px; }
  .prompt-section { margin-top: 28px; }
  .prompt-grid { gap: 7px; }
  .prompt-card { min-height: 67px; gap: 8px; padding: 9px; }
  .prompt-icon { width: 28px; height: 28px; }
  .prompt-icon svg { width: 15px; height: 15px; }
  .prompt-card strong { font-size: 10px; }
  .prompt-card small { font-size: 9px; }
  .welcome-footnote { align-items: flex-start; font-size: 9px; }
  .message-list { width: min(100% - 32px, 640px); padding-top: 22px; }
  .composer-dock { position: sticky; bottom: 0; z-index: 3; width: 100%; padding: 9px 12px max(12px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, #10111200 0, #101112e8 13%, #101112 38%); }
  .composer-shell { padding-right: 11px; padding-left: 11px; }
  .composer-context > span:last-child { max-width: 55%; }
  .composer-form textarea { min-height: 42px; font-size: 12px; }
  .composer-tip { font-size: 8px; }
  .composer-tip kbd { font-size: 8px; }
  .char-count { font-size: 9px; }
  .composer-disclaimer { margin-top: 6px; font-size: 8px; }
  .insight-rail { display: none; }
}
@media (max-width: 390px) {
  .welcome-view { width: calc(100% - 28px); }
  .welcome-view h1 { font-size: 42px; }
  .prompt-card { gap: 6px; padding: 8px 7px; }
  .prompt-icon { width: 25px; height: 25px; }
  .prompt-card strong { font-size: 9px; }
  .prompt-card small { font-size: 8px; }
  .prompt-arrow { width: 12px; height: 12px; }
  .composer-tip { letter-spacing: 0; }
  .composer-actions { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}