* { box-sizing: border-box; }
:root {
  --ink: #111822;
  --ink-soft: #24303c;
  --paper: #f4f1ea;
  --paper-light: #fbfaf7;
  --line: rgba(17, 24, 34, .12);
  --muted: #7c817e;
  --coral: #e66b51;
  --coral-dark: #bd4f3c;
  --mint: #b9d9c8;
  --shadow: 0 20px 60px rgba(21, 28, 36, .10);
}
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; height: 100vh; min-height: 680px; overflow: hidden; }
.sidebar { width: 300px; flex: 0 0 300px; background: var(--ink); color: #f5f2eb; display: flex; flex-direction: column; padding: 31px 22px 24px; position: relative; z-index: 3; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 12px 38px; }
.brand-name { font: 700 24px/1 'Space Grotesk'; letter-spacing: -.06em; }
.brand-mark { height: 22px; width: 25px; display: flex; align-items: end; gap: 3px; }
.brand-mark span { display: block; width: 6px; border-radius: 5px 5px 1px 1px; background: var(--coral); }
.brand-mark span:nth-child(1) { height: 12px; opacity: .7; }.brand-mark span:nth-child(2) { height: 20px; }.brand-mark span:nth-child(3) { height: 16px; opacity: .85; }
.new-chat-button { border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; height: 49px; padding: 0 13px; display: flex; align-items: center; gap: 10px; font-weight: 600; transition: background .2s, transform .2s, border-color .2s; }
.new-chat-button:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.32); transform: translateY(-1px); }.new-chat-button kbd { margin-left: auto; color: #8e969e; font-size: 11px; }
.plus-icon { color: var(--coral); font-size: 23px; font-weight: 400; line-height: 0; }
.history-heading { display: flex; justify-content: space-between; color: #7e8990; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 35px 12px 13px; }.history-count { font-variant-numeric: tabular-nums; }
.conversation-list { overflow: auto; display: flex; flex-direction: column; gap: 3px; }.conversation-item { border: 0; background: transparent; color: #aab2b6; text-align: left; border-radius: 7px; padding: 12px; display: flex; align-items: center; gap: 10px; transition: color .2s, background .2s; }.conversation-item:hover, .conversation-item.active { color: #fff; background: rgba(255,255,255,.08); }.conversation-item.active::before { content: ''; width: 4px; height: 4px; background: var(--coral); border-radius: 50%; }.conversation-item .conversation-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.empty-history { color: #67737b; padding: 12px; font-size: 13px; line-height: 1.5; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 12px 0; }.status-pill { display: flex; align-items: center; gap: 8px; color: #abb8b2; font-size: 12px; }.status-dot { width: 6px; height: 6px; background: #8cccaa; border-radius: 50%; box-shadow: 0 0 0 4px rgba(140,204,170,.1); }.model-label { margin-top: 20px; display: flex; justify-content: space-between; align-items: baseline; color: #67737b; font-size: 9px; letter-spacing: .1em; }.model-label strong { color: #9ea9ad; font-size: 11px; letter-spacing: 0; }
.chat-area { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--paper-light); }.topbar { height: 94px; padding: 0 42px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }.current-chat-info .eyebrow, .eyebrow { display: block; font-size: 9px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }.current-chat-info h1 { margin: 6px 0 0; font: 600 18px/1 'Space Grotesk'; letter-spacing: -.04em; }.topbar-actions { display: flex; align-items: center; gap: 20px; }.icon-button { border: 0; background: transparent; width: 34px; height: 34px; padding: 7px; color: #757d7e; }.icon-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.icon-button:hover { color: var(--coral); }.menu-button { display: none; }.avatar { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #426050; font: 700 11px 'Space Grotesk'; }
.message-viewport { flex: 1; min-height: 0; overflow-y: auto; }.welcome-state { width: min(770px, calc(100% - 60px)); margin: 0 auto; padding: clamp(55px, 9vh, 110px) 0 48px; animation: rise .6s ease both; }.signal-orbit { width: 54px; height: 54px; position: relative; margin-bottom: 30px; }.signal-orbit::before, .signal-orbit::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(230,107,81,.28); border-radius: 50%; }.signal-orbit::after { inset: 9px; border-color: var(--coral); border-style: dashed; animation: spin 12s linear infinite; }.signal-orbit span { position: absolute; width: 9px; height: 9px; background: var(--coral); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }.signal-orbit i { position: absolute; right: 1px; top: 6px; width: 6px; height: 6px; background: var(--ink); border: 2px solid var(--paper-light); border-radius: 50%; }
.welcome-state h2 { font: 600 clamp(42px, 5vw, 67px)/.98 'Space Grotesk'; letter-spacing: -.075em; margin: 0; }.welcome-state h2 em { color: var(--coral); font-style: normal; }.welcome-copy { width: 385px; max-width: 100%; color: #7b817f; line-height: 1.6; margin: 25px 0 48px; font-size: 14px; }.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }.prompt-card { text-align: left; position: relative; min-height: 136px; border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 16px; color: var(--ink); transition: border .2s, background .2s, transform .2s; }.prompt-card:hover { border-color: var(--coral); background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }.prompt-card span { display: block; color: var(--coral); font: 600 11px 'Space Grotesk'; margin-bottom: 16px; }.prompt-card strong, .prompt-card small { display: block; }.prompt-card strong { font-size: 13px; margin-bottom: 6px; }.prompt-card small { color: #8b908d; font-size: 11px; line-height: 1.3; max-width: 115px; }.prompt-card b { position: absolute; right: 14px; bottom: 14px; color: var(--coral); font-size: 18px; font-weight: 400; }
.messages { width: min(770px, calc(100% - 60px)); margin: 0 auto; padding: 42px 0 30px; }.message { display: flex; gap: 15px; margin: 0 0 29px; animation: rise .35s ease both; }.message.user { flex-direction: row-reverse; }.message-avatar { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 10px 'Space Grotesk'; }.message.assistant .message-avatar { background: var(--ink); color: var(--coral); }.message.user .message-avatar { background: var(--mint); color: #426050; }.message-body { max-width: min(650px, calc(100% - 45px)); }.message.user .message-body { text-align: right; }.message-role { color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .13em; margin-bottom: 7px; }.message-content { font-size: 14px; line-height: 1.7; color: #34404a; white-space: pre-wrap; }.message.user .message-content { display: inline-block; text-align: left; background: #eae8e1; border-radius: 12px 3px 12px 12px; padding: 12px 15px; }.typing-dots { display: flex; gap: 4px; padding: 11px 0; }.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); animation: blink 1s ease-in-out infinite; }.typing-dots i:nth-child(2) { animation-delay: .15s; }.typing-dots i:nth-child(3) { animation-delay: .3s; }
.composer-wrap { width: min(770px, calc(100% - 60px)); margin: auto auto 0; padding: 0 0 27px; }.composer { border: 1px solid #d8d7d0; background: #fff; box-shadow: 0 10px 30px rgba(17,24,34,.05); border-radius: 9px; padding: 16px 17px 11px; transition: border .2s, box-shadow .2s; }.composer:focus-within { border-color: var(--coral); box-shadow: 0 10px 35px rgba(230,107,81,.1); }.composer textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; min-height: 25px; max-height: 130px; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.6; }.composer textarea::placeholder { color: #aaaead; }.composer-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }.composer-hint { color: #b1b3ae; font-size: 10px; }.send-button { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 5px; background: var(--coral); color: #fff; padding: 9px 12px 9px 14px; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }.send-button:hover { background: var(--coral-dark); transform: translateY(-1px); }.send-button:disabled { opacity: .55; cursor: wait; }.send-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.privacy-note { text-align: center; margin: 13px 0 0; color: #aaaead; font-size: 10px; }.lock-icon { color: var(--coral); font-size: 15px; vertical-align: -1px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: #fff; padding: 12px 17px; border-radius: 6px; font-size: 12px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; z-index: 10; }.toast.visible { transform: translateY(0); opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } @keyframes spin { to { transform: rotate(360deg); } } @keyframes blink { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 820px) { .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .3s ease; box-shadow: 10px 0 40px rgba(0,0,0,.2); }.sidebar.open { transform: translateX(0); }.menu-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; }.menu-button span { width: 17px; height: 1px; background: currentColor; }.topbar { padding: 0 20px; gap: 10px; }.current-chat-info { margin-right: auto; }.welcome-state, .messages, .composer-wrap { width: calc(100% - 40px); }.prompt-grid { grid-template-columns: 1fr; }.prompt-card { min-height: auto; padding: 14px; }.prompt-card span { display: inline; margin-right: 10px; }.prompt-card strong { display: inline; }.prompt-card small { margin: 5px 0 0 26px; }.prompt-card b { bottom: 20px; }.welcome-state { padding-top: 55px; } }
@media (max-width: 500px) { .topbar { height: 78px; }.topbar-actions { gap: 6px; }.welcome-state h2 { font-size: 42px; }.welcome-copy { margin-bottom: 32px; }.composer-wrap { width: calc(100% - 28px); padding-bottom: 16px; }.composer-hint { display: none; }.composer-tools { justify-content: flex-end; }.message-body { max-width: calc(100% - 40px); }.messages { width: calc(100% - 28px); }.message { gap: 10px; }.message-avatar { flex-basis: 27px; height: 27px; } }
