@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { --ink: #102a43; --muted: #627d98; --line: #d9e2ec; --paper: #f7f5ef; --cream: #fffdf8; --coral: #ef6f61; --teal: #167d81; --yellow: #f2c14e; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Manrope', sans-serif; }
body:before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: radial-gradient(#c6d2da .7px, transparent .7px); background-size: 14px 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1220px; margin: auto; padding: 25px 42px 26px; position: relative; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--coral); font-weight: 800; }
.brand strong, .brand small { display: block; line-height: 1; }.brand strong { font-size: 15px; }.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.status-pill { display: flex; align-items: center; gap: 9px; color: var(--teal); font: 500 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .1em; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #42b883; box-shadow: 0 0 0 4px #d9f3e7; }
.hero { min-height: 350px; display: flex; justify-content: space-between; align-items: center; gap: 35px; }.hero-copy { max-width: 535px; padding: 65px 0 47px; }.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--coral); font: 500 11px 'DM Mono', monospace; letter-spacing: .16em; }.hero h1 { margin: 0; font-size: clamp(48px, 7vw, 83px); line-height: .93; letter-spacing: -.075em; }.hero h1 em { color: var(--teal); font-style: normal; }.hero-intro { max-width: 470px; margin: 28px 0 25px; color: var(--muted); font-size: 15px; line-height: 1.7; }.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }.chip { border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.55); color: var(--ink); padding: 9px 13px; font-size: 11px; transition: .2s; }.chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.voice-control { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; margin: 0 0 20px; padding: 20px 25px; border: 1px solid #b9d8d4; background: #e5f1ed; }.voice-copy h2 { margin: 0; font-size: 23px; letter-spacing: -.05em; }.voice-copy p:last-child { max-width: 440px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.voice-control .section-kicker { margin-bottom: 7px; }.mic-button-large { display: flex; align-items: center; justify-content: center; gap: 11px; min-width: 220px; min-height: 68px; border: 0; border-radius: 8px; color: white; background: var(--coral); box-shadow: 0 8px 0 #d85d52; transition: transform .2s, box-shadow .2s, background .2s; }.mic-button-large:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #d85d52; }.mic-button-large:active, .mic-button-large.listening { transform: translateY(4px); box-shadow: 0 3px 0 #d85d52; }.mic-button-large.listening { animation: pulse 1.1s infinite; background: var(--teal); box-shadow: 0 3px 0 #116569, 0 0 0 8px rgba(22,125,129,.12); }.mic-button-large .mic-symbol { font-size: 12px; }.mic-label { font-size: 12px; font-weight: 700; }.voice-hint { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--muted); font: 10px 'DM Mono', monospace; text-align: right; }.voice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.workspace { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }.conversation-panel, .command-panel { border: 1px solid var(--line); background: rgba(255,253,248,.8); }.conversation-panel { min-height: 405px; display: flex; flex-direction: column; }.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 25px 19px; border-bottom: 1px solid var(--line); }.section-kicker { margin-bottom: 7px; color: var(--muted); font-size: 9px; }.panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; }.icon-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 12px; }.icon-button:hover { color: var(--coral); border-color: var(--coral); }.messages { flex: 1; overflow-y: auto; max-height: 250px; padding: 21px 25px 5px; }.message { display: flex; gap: 12px; max-width: 94%; margin-bottom: 18px; }.message p { margin: 2px 0 5px; font-size: 13px; line-height: 1.55; }.message time { color: var(--muted); font: 10px 'DM Mono', monospace; }.avatar { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--teal); font-size: 12px; font-weight: 700; }.user-message { margin-left: auto; flex-direction: row-reverse; text-align: right; }.user-message .avatar { background: var(--coral); }.typing { color: var(--muted); font-style: italic; }.composer { display: flex; gap: 9px; align-items: center; margin: 17px 25px 10px; padding: 7px; border: 1px solid var(--line); background: white; }.mic-button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%; color: white; background: var(--coral); }.mic-symbol { font: 10px 'DM Mono', monospace; text-transform: uppercase; }.composer input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 12px; }.composer input::placeholder { color: #9fb3c8; }.send-button { border: 0; padding: 11px 13px; color: white; background: var(--ink); font-size: 11px; }.privacy-note { margin: 0 25px 18px; color: var(--muted); font: 10px 'DM Mono', monospace; }.privacy-note span { color: var(--teal); }
.send-button.is-editing { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; padding: 0; border-radius: 50%; }
.send-button.is-editing svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.command-panel { padding-bottom: 17px; }.command-panel .panel-heading { padding-bottom: 21px; }.capability-list { list-style: none; margin: 0; padding: 0 25px; }.capability-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e7edf0; }.capability-list li:last-child { border-bottom: 0; }.cap-icon { color: var(--coral); font: 11px 'DM Mono', monospace; }.capability-list strong { font-size: 12px; }.capability-list p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }.language-card { display: flex; align-items: center; gap: 11px; margin: 16px 25px 0; padding: 12px; background: #e5f1ed; }.language-code { display: grid; place-items: center; width: 29px; height: 29px; color: white; background: var(--teal); font: 11px 'DM Mono', monospace; }.language-card strong { font-size: 11px; }.language-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.check { margin-left: auto; color: var(--teal); font: 10px 'DM Mono', monospace; }footer { display: flex; justify-content: space-between; padding-top: 23px; color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .08em; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(22,125,129,.15); } }
@media (max-width: 800px) { .app-shell { padding: 18px 18px 22px; }.hero { min-height: auto; display: block; }.hero-copy { padding: 55px 0 20px; }.orb-wrap { width: 100%; height: 240px; transform: scale(.8); transform-origin: center top; margin-bottom: -35px; }.workspace { grid-template-columns: 1fr; }.command-panel { order: -1; }.command-panel .capability-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }.capability-list li { min-height: 79px; }.language-card { margin-top: 8px; } }
@media (max-width: 470px) { .hero h1 { font-size: 53px; }.hero-intro { font-size: 13px; }.command-panel .capability-list { display: block; }.orb-wrap { transform: scale(.7); margin: -10px 0 -64px; }footer { font-size: 8px; } }
@media (max-width: 800px) { .voice-control { grid-template-columns: 1fr; gap: 13px; }.mic-button-large { width: 100%; }.voice-hint { justify-content: flex-start; text-align: left; } }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 600; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.theme-switch { display: inline-flex; align-items: center; width: 31px; height: 18px; padding: 3px; border: 1px solid var(--muted); border-radius: 12px; transition: background-color .2s, border-color .2s; }
.theme-switch span { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: transform .2s, background-color .2s; }
.theme-toggle[aria-pressed="true"] .theme-switch { border-color: var(--teal); background: var(--teal); }
.theme-toggle[aria-pressed="true"] .theme-switch span { transform: translateX(13px); background: var(--paper); }
body, .conversation-panel, .command-panel, .voice-control, .composer, .language-card { transition: background-color .22s ease, color .22s ease, border-color .22s ease; }
body.night { --ink: #e8efeb; --muted: #a7b7b3; --line: #374944; --paper: #15211f; --cream: #1e2d2a; --coral: #f08a77; --teal: #60c0b1; }
body.night:before { opacity: .12; background-image: radial-gradient(#a7b7b3 .7px, transparent .7px); }
body.night .voice-control { border-color: #42645b; background: #233a34; }
body.night .conversation-panel, body.night .command-panel { background: rgba(30,45,42,.92); }
body.night .chip { border-color: var(--line); color: var(--ink); background: rgba(30,45,42,.85); }
body.night .composer { border-color: var(--line); background: #253632; }
body.night .composer input { color: var(--ink); background: transparent; }
body.night .capability-list li { border-color: #34453f; }
body.night .language-card { background: #263d36; }
body.night .status-dot { box-shadow: 0 0 0 4px #254338; }
@media (max-width: 470px) { .topbar-actions { gap: 12px; }.status-pill { gap: 6px; font-size: 9px; }.theme-toggle { gap: 6px; font-size: 10px; } }
.voice-control, .conversation-panel, .command-panel { border-radius: 16px; }
.composer { border-radius: 12px; }
.composer input, .send-button { border-radius: 8px; }
.mic-button-large { border-radius: 14px; }
.language-card, .language-code, .orbit-label { border-radius: 8px; }
.theme-toggle { border-radius: 999px; }
 
body, html { width: 100%; height: 100%; }
body {
  --ink: #e5eeea;
  --muted: #a8bbb5;
  --line: #344740;
  --paper: #172622;
  --cream: #1c2e29;
  --coral: #f18b79;
  --teal: #5bc1b2;
  overflow: hidden;
  color-scheme: dark;
}
body.night {
  --ink: #e5eeea;
  --muted: #a8bbb5;
  --line: #344740;
  --paper: #172622;
  --cream: #1c2e29;
  --coral: #f18b79;
  --teal: #5bc1b2;
}
body:not(.night) {
  --ink: #18312c;
  --muted: #526b64;
  --line: #d4dfda;
  --paper: #f3f6f3;
  --cream: #ffffff;
  --coral: #bd4d3e;
  --teal: #19796e;
  color-scheme: light;
}
body:before { opacity: .12; background-image: radial-gradient(#9ab3a9 .65px, transparent .7px); }
.app-shell { width: 100%; max-width: none; height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0; background: var(--paper); }
.topbar { position: relative; z-index: 3; flex: 0 0 62px; height: 62px; padding: 0 23px; border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar:after { position: absolute; inset: 0; z-index: -1; content: ''; pointer-events: none; opacity: .22; background-image: radial-gradient(#88a99d .65px, transparent .7px); background-size: 14px 14px; }
.topbar-actions { gap: 18px; }
.brand-mark { width: 36px; height: 36px; background: var(--coral); }
.brand strong { color: var(--ink); }
.brand small { color: var(--muted); }
.theme-toggle { color: var(--muted); }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle[aria-pressed="true"] .theme-switch { border-color: var(--teal); background: var(--teal); }
.theme-toggle[aria-pressed="true"] .theme-switch span { background: var(--paper); }
.status-pill { color: var(--teal); }
.status-dot { background: #45b895; box-shadow: 0 0 0 4px rgba(69,184,149,.15); }
.brand-mark, .avatar { color: #173029; }
.hero, .voice-control, .command-panel, footer { display: none !important; }
.workspace { position: relative; display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; gap: 0; }
.conversation-panel { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; min-width: 0; min-height: 0; height: 100%; overflow: hidden; border: 0; border-radius: 0; background: var(--cream); }
.panel-heading { flex: 0 0 68px; align-items: center; gap: 16px; min-width: 0; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.conversation-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.conversation-heading > div { min-width: 0; }
.panel-heading .section-kicker { margin: 0 0 5px; color: var(--muted); font-size: 11px; letter-spacing: .13em; }
.panel-heading h2 { overflow: hidden; color: var(--ink); font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.history-toggle { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; }
.history-toggle:hover, .icon-button:hover { border-color: var(--teal); color: var(--teal); }
.icon-button { width: 34px; height: 34px; flex: 0 0 34px; border-color: var(--line); color: var(--muted); font-size: 15px; }
.messages { flex: 1 1 auto; min-height: 0; max-height: none; padding: 14px 24px 6px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #738b83 transparent; scrollbar-width: thin; }
.message { width: 100%; max-width: 100%; align-items: flex-start; gap: 12px; margin: 0 0 22px; }
.message > div:nth-child(2) { min-width: 0; max-width: min(76ch, 82%); }
.message p { margin: 2px 0 7px; color: var(--ink); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.message time { display: inline-block; color: var(--muted); font-size: 11px; }
.avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
.assistant-message .avatar { background: var(--teal); }
.user-message { align-self: flex-end; }
.user-message .avatar { background: var(--coral); }
.message-edit { display: block; margin: 8px 0 0 auto; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--muted); color: var(--muted); background: transparent; font-size: 11px; }
.message-edit:hover { border-color: var(--teal); color: var(--teal); }
.message-attachments img { display: block; width: auto; max-width: min(460px, 76vw); max-height: 420px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
.attachment-list { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; padding: 0 24px; }
.attachment-list:empty { display: none; }
.attachment-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--cream); font-size: 11px; }
.attachment-item img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.attachment-remove { border: 0; color: var(--muted); background: transparent; }
.composer { flex: 0 0 auto; min-height: 66px; gap: 9px; margin: 8px 24px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 23px; background: #223731; }
body:not(.night) .composer { border-color: var(--line); background: #e8efeb; }
.attach-button, .composer .mic-button { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; transition: border-color .16s ease, color .16s ease, background-color .16s ease; }
.attach-button strong { font-size: 24px; line-height: 1; font-weight: 600; }
.attach-button:hover, .composer .mic-button:hover { border-color: var(--teal); color: var(--teal); }
.composer .mic-button.listening { border-color: var(--teal); color: var(--teal); background: rgba(91,193,178,.13); box-shadow: 0 0 0 3px rgba(91,193,178,.12); }
.mic-symbol { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.mic-label, .visually-hidden, .file-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.composer input#textInput { width: 0; min-height: 42px; padding: 0 4px; color: var(--ink); background: transparent; font-size: 14px; }
.composer input#textInput::placeholder { color: #a9bbb6; opacity: 1; }
body:not(.night) .composer input#textInput::placeholder { color: #526b64; }
.send-button { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; padding: 0 15px; border: 0; border-radius: 14px; color: #173029; background: #e4eee9; font-size: 12px; font-weight: 700; }
.send-button:hover { background: #fff; }
.send-button:focus-visible, .attach-button:focus-visible, .composer .mic-button:focus-visible, .history-toggle:focus-visible, .icon-button:focus-visible, .message-edit:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.send-button:disabled, .composer .mic-button:disabled { cursor: not-allowed; opacity: .55; }
.send-button.is-editing { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; }
.send-button.is-editing svg { width: 20px; height: 20px; }
.privacy-note { flex: 0 0 auto; margin: 0 24px max(10px, env(safe-area-inset-bottom)); color: var(--muted); font: 500 12px 'DM Mono', monospace; line-height: 1.45; }
.privacy-note span { color: var(--teal); }
.history-sidebar { position: fixed; z-index: 6; top: 62px; bottom: 0; left: 0; display: flex; width: min(320px, 86vw); flex-direction: column; padding: 20px 16px; transform: translateX(-102%); border-right: 1px solid var(--line); background: var(--paper); transition: transform .2s ease; }
.history-sidebar.open { transform: translateX(0); }
.history-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.history-sidebar-header h2 { margin: 0; font-size: 17px; }
.new-chat-button { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: transparent; font-size: 12px; }
.new-chat-button:hover { border-color: var(--teal); color: var(--teal); }
.chat-list { display: grid; gap: 5px; overflow-y: auto; }
.chat-list-item { width: 100%; overflow: hidden; padding: 11px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-item:hover, .chat-list-item.active { border-color: var(--line); color: var(--ink); background: var(--cream); }
.history-backdrop { position: fixed; z-index: 5; inset: 62px 0 0; border: 0; background: rgba(5,13,11,.55); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.history-backdrop.open { opacity: 1; pointer-events: auto; }
body, .topbar, .conversation-panel, .composer, .history-sidebar { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
@media (max-width: 600px) {
  .topbar { flex-basis: 58px; height: 58px; padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 11px; }
  .topbar-actions { gap: 10px; }
  .theme-toggle { gap: 6px; font-size: 12px; }
  .theme-switch { width: 29px; height: 17px; }
  .theme-toggle[aria-pressed="true"] .theme-switch span { transform: translateX(11px); }
  .status-pill { gap: 5px; font-size: 11px; letter-spacing: .06em; }
  .panel-heading { flex-basis: 62px; padding: 8px 12px; }
  .conversation-heading { gap: 9px; }
  .history-toggle { min-height: 38px; padding: 0 9px; font-size: 11px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading .section-kicker { font-size: 11px; }
  .icon-button { width: 32px; height: 32px; flex-basis: 32px; }
  .messages { padding: 13px 13px 4px; }
  .message { gap: 9px; margin-bottom: 20px; }
  .message > div:nth-child(2) { max-width: 84%; }
  .message p { font-size: 13px; }
  .avatar { width: 28px; height: 28px; flex-basis: 28px; }
  .composer { min-height: 60px; gap: 6px; margin: 7px 10px 7px; padding: 6px 7px; border-radius: 20px; }
  .attach-button, .composer .mic-button { width: 36px; height: 36px; flex-basis: 36px; }
  .attach-button strong { font-size: 22px; }
  .composer input#textInput { min-height: 38px; padding: 0 2px; font-size: 13px; }
  .composer input#textInput::placeholder { font-size: 11px; }
  .send-button { min-height: 40px; padding: 0 10px; border-radius: 12px; font-size: 12px; }
  .send-button.is-editing { width: 40px; height: 40px; flex-basis: 40px; }
  .privacy-note { margin: 0 12px max(8px, env(safe-area-inset-bottom)); font-size: 12px; }
  .history-sidebar { top: 58px; }
  .history-backdrop { inset-block-start: 58px; }
}
@media (max-width: 370px) {
  .brand small, .theme-toggle > span:last-child { display: none; }
  .topbar-actions { gap: 8px; }
  .composer { gap: 4px; margin-inline: 7px; }
  .attach-button, .composer .mic-button { width: 33px; height: 33px; flex-basis: 33px; }
  .send-button { padding-inline: 8px; }
  .privacy-note { margin-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.brand small { font-size: 12px; }
