 :root {
	--ink: #17211f;
	--muted: #75807b;
	--line: #e6e9e4;
	--paper: #f7f8f5;
	--white: #ffffff;
	--green: #3d8b68;
	--green-dark: #296348;
	--orange: #f19a60;
	--blue: #6b91ca;
	--sidebar: #f1f3ef;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Manrope', sans-serif; }
button, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 286px; flex: 0 0 286px; display: flex; flex-direction: column; padding: 29px 17px 18px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand-row, .topbar, .section-label, .profile-row, .route-heading, .composer-toolbar, .topbar-actions { display: flex; align-items: center; }
.brand-row { padding: 0 14px 30px; gap: 10px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.8px; }.brand-name span { color: var(--green); }
.brand-logo { width: 24px; height: 24px; display: block; border-radius: 7px; }
.new-chat-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 13px; color: white; background: var(--green); border-radius: 8px; font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px #3d8b6822; }.new-chat-button svg { width: 16px; }.new-chat-button kbd { margin-left: auto; padding: 2px 5px; color: #d4e9dc; background: #ffffff1c; border-radius: 4px; font-size: 10px; font-family: 'DM Mono', monospace; }
.sidebar-section { margin-top: 35px; }.section-label { justify-content: space-between; padding: 0 10px 11px; color: #99a19c; text-transform: uppercase; letter-spacing: 1.3px; font-size: 9px; font-weight: 800; }.icon-button { display: grid; place-items: center; padding: 6px; color: var(--muted); background: transparent; border-radius: 6px; }.icon-button:hover { color: var(--ink); background: #e5e9e4; }.icon-button svg { width: 16px; height: 16px; }
.conversation-list { display: grid; gap: 3px; }.conversation { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 9px; width: 100%; padding: 11px 10px; text-align: left; color: #7b847f; background: transparent; border-radius: 7px; }.conversation:hover, .conversation.active { color: var(--ink); background: var(--white); }.conversation.active { box-shadow: 0 1px 2px #1835280a; }.conversation-dot { width: 5px; height: 5px; border-radius: 50%; background: #bfc8c1; }.conversation.active .conversation-dot { background: var(--orange); }.conversation-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }.conversation-time { color: #a9b0ab; font-size: 9px; }
.sidebar-bottom { margin-top: auto; }.route-card { margin: 10px 4px 20px; padding: 14px; background: #e7eee8; border: 1px solid #dbe7dd; border-radius: 9px; }.route-heading { gap: 7px; color: var(--green-dark); font-size: 10px; font-weight: 800; }.route-live { margin-left: auto; color: #5c9d78; font-size: 8px; letter-spacing: .8px; }.status-pulse { width: 7px; height: 7px; display: inline-block; background: #62b985; border-radius: 50%; box-shadow: 0 0 0 3px #62b98522; }.route-card p { margin: 9px 0 12px; color: #748278; font-size: 10px; line-height: 1.5; }.provider-stack { display: flex; flex-wrap: wrap; gap: 4px; }.provider { padding: 4px 6px; color: #839088; background: #ffffff9c; border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 8px; }.active-provider { color: var(--green-dark); background: #d1e7d7; }.profile-row { width: 100%; gap: 9px; padding: 10px; text-align: left; background: transparent; border-radius: 8px; }.profile-row:hover { background: #e6eae5; }.avatar { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: #cb8667; border-radius: 50%; font-family: 'DM Mono', monospace; font-size: 11px; }.profile-copy { display: grid; gap: 2px; flex: 1; }.profile-copy strong { font-size: 10px; }.profile-copy small { color: var(--muted); font-size: 9px; }.profile-row > svg { width: 13px; color: #99a29c; }
.main-panel { min-width: 0; display: flex; flex: 1; flex-direction: column; }.topbar { justify-content: space-between; height: 74px; padding: 0 37px; border-bottom: 1px solid var(--line); background: #fafbf8cc; }.model-picker { display: flex; align-items: center; gap: 9px; color: #53615a; font-size: 11px; font-weight: 700; }.model-picker svg { width: 13px; color: #9ba49e; }.topbar-actions { gap: 9px; }.top-avatar { width: 26px; height: 26px; font-size: 10px; }.menu-toggle, .sidebar-close { display: none; }
.chat-view { position: relative; display: flex; flex: 1; flex-direction: column; min-height: calc(100vh - 74px); }.chat-content { width: min(760px, calc(100% - 44px)); margin: auto; padding: 60px 0 210px; }.welcome-block { animation: rise-in .6s ease both; }.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green); text-transform: uppercase; letter-spacing: 1.7px; font-size: 9px; font-weight: 800; }.eyebrow-line { width: 24px; height: 1px; background: var(--green); }.welcome-block h1 { margin: 21px 0 13px; font-size: clamp(42px, 5.3vw, 68px); line-height: .98; letter-spacing: -3.8px; font-weight: 800; }.welcome-block h1 em { color: var(--green); font-style: normal; }.welcome-copy { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 48px; }.prompt-card { min-height: 126px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }.prompt-card:hover { transform: translateY(-3px); border-color: #c7d8cb; box-shadow: 0 8px 20px #284c3810; }.prompt-card > svg { width: 14px; align-self: flex-end; color: #a9b3ac; }.prompt-card > span:not(.prompt-icon) { max-width: 125px; font-size: 11px; font-weight: 700; line-height: 1.4; }.prompt-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; }.prompt-icon svg { width: 16px; }.orange { color: #c87947; background: #fff0e7; }.blue { color: #5579ae; background: #eaf0fb; }.green { color: #4a926d; background: #e7f3ea; }
.composer-wrap { position: absolute; right: 0; bottom: 0; left: 0; padding: 0 22px 22px; background: linear-gradient(transparent, var(--paper) 31%); }.composer { width: min(760px, 100%); margin: 0 auto; padding: 16px 15px 11px; background: var(--white); border: 1px solid #dce3dd; border-radius: 11px; box-shadow: 0 12px 35px #2444330c; }.composer:focus-within { border-color: #a3c3ab; box-shadow: 0 0 0 3px #75a88418, 0 12px 35px #2444330c; }.composer textarea { display: block; width: 100%; min-height: 27px; max-height: 140px; padding: 0; resize: none; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; line-height: 1.5; }.composer textarea::placeholder { color: #a2aaa5; }.composer-toolbar { justify-content: space-between; margin-top: 13px; }.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 4px; }.tool-button { display: flex; align-items: center; gap: 5px; padding: 5px; color: #929c95; background: transparent; border-radius: 5px; font-size: 10px; }.tool-button:hover { color: var(--green); background: #f0f5f0; }.tool-button svg { width: 14px; }.shortcut-hint { margin-right: 7px; color: #b0b7b2; font-size: 9px; }.send-button { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; background: var(--green); border-radius: 7px; }.send-button:hover { background: var(--green-dark); }.send-button:disabled { cursor: wait; opacity: .75; }.send-button svg { width: 15px; }.loader { width: 12px; height: 12px; border: 2px solid #ffffff77; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }.composer-note { width: min(760px, 100%); display: flex; justify-content: space-between; gap: 10px; margin: 9px auto 0; color: #a0a9a2; font-size: 9px; }.composer-note span:first-child { display: flex; align-items: center; gap: 4px; }.composer-note svg { width: 11px; color: var(--green); }
.message { display: flex; gap: 13px; max-width: 680px; margin: 0 auto 28px; animation: rise-in .35s ease both; }.message-avatar { flex: 0 0 27px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; }.user-avatar { color: white; background: #cb8667; font-family: 'DM Mono', monospace; font-size: 10px; }.ai-avatar { display: flex; align-items: end; gap: 2px; background: #e1f0e4; padding: 0 7px 7px; }.ai-avatar span { width: 3px; border-radius: 2px; background: var(--green); }.ai-avatar span:first-child { height: 8px; opacity: .55; }.ai-avatar span:nth-child(2) { height: 13px; }.ai-avatar span:last-child { height: 10px; opacity: .7; }.message-body { min-width: 0; }.message-meta { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 10px; font-weight: 800; }.message-meta time { color: #a7afa9; font-size: 9px; font-weight: 400; }.provider-label { padding: 3px 5px; color: var(--green); background: #e5f0e7; border-radius: 3px; font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 400; }.message-body p { margin: 0; color: #52605a; font-size: 12px; line-height: 1.7; white-space: normal; }.message.user { flex-direction: row-reverse; text-align: right; }.message.user .message-meta { justify-content: flex-end; }.message.user .message-body { max-width: 80%; padding: 10px 13px; background: #eaf1eb; border-radius: 9px; }.message.user .message-body p { color: #40564a; }
.message.assistant .message-body { flex: 1; }.message-body h1, .message-body h2, .message-body h3 { margin: 18px 0 8px; color: var(--ink); line-height: 1.25; }.message-body h1 { font-size: 21px; }.message-body h2 { font-size: 17px; }.message-body h3 { font-size: 14px; }.message-body ul, .message-body ol { margin: 8px 0; padding-left: 22px; }.message-body li { margin: 4px 0; }.message-body strong { color: var(--ink); }.message-body a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }.message-body code { padding: 2px 5px; color: #38604a; background: #eaf1eb; border-radius: 4px; font-family: 'DM Mono', monospace; font-size: .9em; }.message-body pre { overflow-x: auto; margin: 12px 0; padding: 13px 15px; color: #e8f0e9; background: #1d2a24; border-radius: 7px; line-height: 1.6; }.message-body pre code { padding: 0; color: inherit; background: transparent; border-radius: 0; font-size: 10px; }.message-body blockquote { margin: 10px 0; padding: 3px 13px; color: #69766f; border-left: 3px solid #b7d2bd; }.message-body hr { margin: 15px 0; border: 0; border-top: 1px solid var(--line); }.message-body .katex-display { overflow-x: auto; margin: 15px 0; padding: 4px 0; }.message-body .katex { font-size: 1.05em; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }.attachment-chip { display: flex; align-items: center; gap: 7px; max-width: 230px; padding: 6px 7px; background: #f1f6f1; border: 1px solid #dce9de; border-radius: 7px; }.attachment-icon { display: grid; place-items: center; width: 25px; height: 25px; color: var(--green); background: #deeee1; border-radius: 5px; }.attachment-icon svg { width: 13px; }.attachment-copy { min-width: 0; display: grid; gap: 2px; }.attachment-copy strong { overflow: hidden; color: #40574a; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.attachment-copy small { color: #94a098; font-size: 8px; }.attachment-chip > button { display: grid; place-items: center; padding: 3px; color: #9aa79d; background: transparent; border-radius: 4px; }.attachment-chip > button:hover { color: #b65f54; background: #f6e9e7; }.attachment-chip > button svg { width: 12px; }.message-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 9px; }.message-file { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; color: #67816e; background: #dfece1; border-radius: 4px; font-size: 9px; }.message-file svg { width: 11px; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 15px; }.project-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--green-dark); background: #e8f3ea; border: 1px solid #d3e7d7; border-radius: 6px; font-size: 10px; font-weight: 700; }.project-action:hover:not(:disabled) { background: #dceee0; }.project-action:disabled { cursor: not-allowed; color: #9aa79d; background: #f1f3f0; border-color: #e5e9e4; }.project-action svg { width: 13px; }.deploy-status { color: #718077; font-size: 9px; }.deploy-status a { color: var(--green-dark); font-weight: 700; }
.settings-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: #00000099; }.settings-backdrop[hidden] { display: none; }.settings-panel { width: min(430px, 100%); overflow: hidden; color: #d7e0dc; background: #121a17; border: 1px solid #2b3934; border-radius: 10px; box-shadow: 0 24px 70px #00000080; }.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #26332f; }.settings-header h2 { margin: 4px 0 0; font-size: 18px; }.settings-body { display: grid; gap: 13px; padding: 18px 20px; }.setting-field { display: grid; gap: 7px; color: #98a89e; font-size: 10px; font-weight: 700; }.setting-field select { padding: 10px; color: #d7e0dc; background: #1a2421; border: 1px solid #304039; border-radius: 6px; outline: 0; font-size: 11px; }.setting-toggle { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid #22302a; cursor: pointer; }.setting-toggle span { display: grid; gap: 3px; }.setting-toggle strong { color: #d7e0dc; font-size: 11px; }.setting-toggle small { color: #7d8b85; font-size: 9px; }.setting-toggle input { position: absolute; opacity: 0; }.setting-toggle i { position: relative; flex: 0 0 31px; width: 31px; height: 18px; background: #2b3934; border-radius: 20px; }.setting-toggle i::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: #829188; border-radius: 50%; content: ''; transition: transform .18s ease, background .18s ease; }.setting-toggle input:checked + i { background: #285d3d; }.setting-toggle input:checked + i::after { background: #8bd6a4; transform: translateX(13px); }.settings-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; color: #718079; background: #0f1513; border-top: 1px solid #26332f; font-size: 9px; }.settings-done { padding: 8px 13px; color: #0b1710; background: #69c58c; border-radius: 5px; font-size: 10px; font-weight: 800; }
.mobile-overlay { display: none; }
.workspace-panel { width: min(520px, 42vw); min-width: 360px; display: flex; flex-direction: column; background: #eef1ed; border-left: 1px solid var(--line); }.workspace-panel[hidden] { display: none; }.workspace-header { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 20px; background: #fafbf8; border-bottom: 1px solid var(--line); }.workspace-header > div { display: grid; gap: 4px; }.workspace-kicker { color: var(--green); font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 1.1px; }.workspace-header strong { font-size: 13px; }.workspace-tabs { display: flex; gap: 3px; padding: 10px 13px 0; background: #fafbf8; border-bottom: 1px solid var(--line); }.workspace-tab { display: flex; align-items: center; gap: 6px; padding: 9px 11px; color: #89948d; background: transparent; border-bottom: 2px solid transparent; font-size: 10px; font-weight: 800; }.workspace-tab svg { width: 13px; }.workspace-tab.active { color: var(--green-dark); border-bottom-color: var(--green); }.workspace-view { display: none; flex: 1; flex-direction: column; min-height: 0; }.workspace-view.active { display: flex; }.preview-toolbar, .code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 13px; color: #839088; background: #f8faf7; border-bottom: 1px solid var(--line); font-size: 9px; }.preview-toolbar a { color: var(--green-dark); font-weight: 700; }.preview-toolbar a:hover { text-decoration: underline; }.preview-toolbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.preview-toolbar { gap: 10px; }.preview-toolbar a { flex: 0 0 auto; }.workspace-view iframe { width: 100%; flex: 1; min-height: 0; background: white; border: 0; }.code-toolbar { gap: 8px; }.code-toolbar select { min-width: 0; flex: 1; padding: 7px 8px; color: var(--ink); background: white; border: 1px solid #dce3dd; border-radius: 5px; outline: none; font-family: 'DM Mono', monospace; font-size: 9px; }.code-toolbar .icon-button { padding: 5px; color: var(--green-dark); background: #e5f1e7; }.workspace-view textarea { flex: 1; min-height: 0; width: 100%; padding: 17px; resize: none; color: #e5f0e8; background: #1d2a24; border: 0; outline: 0; font-family: 'DM Mono', monospace; font-size: 11px; line-height: 1.65; }.code-status { min-height: 27px; padding: 7px 13px; color: #849188; background: #f8faf7; border-top: 1px solid var(--line); font-size: 9px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) { .workspace-panel { position: fixed; z-index: 4; top: 0; right: 0; bottom: 0; width: min(620px, 92vw); box-shadow: -12px 0 30px #1b342016; } }
@media (max-width: 760px) { .sidebar { position: fixed; z-index: 3; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 30px #1b342016; }.sidebar.is-open { transform: translateX(0); }.sidebar-close, .menu-toggle { display: grid; }.mobile-overlay { position: fixed; z-index: 2; inset: 0; background: #1a29204d; }.mobile-overlay.is-visible { display: block; }.topbar { height: 62px; padding: 0 16px; }.topbar .menu-toggle { margin-right: auto; }.model-picker { margin: 0 auto; }.topbar-actions .icon-button { display: none; }.chat-view { min-height: calc(100vh - 62px); }.chat-content { width: calc(100% - 32px); padding: 43px 0 190px; }.welcome-block h1 { font-size: 49px; letter-spacing: -2.6px; }.prompt-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 34px; }.prompt-card { min-height: 68px; display: grid; grid-template-columns: 36px 1fr 16px; align-items: center; padding: 10px 12px; }.prompt-card > span:not(.prompt-icon) { max-width: none; }.prompt-icon { width: 29px; height: 29px; }.composer-wrap { padding: 0 12px 13px; }.shortcut-hint { display: none; }.composer-note { font-size: 8px; }.composer-note span:last-child { text-align: right; }.message { gap: 9px; }.message.user .message-body { max-width: 82%; } }

/* Dark coding workspace */
:root { --ink: #d7e0dc; --muted: #7d8b85; --line: #26332f; --paper: #0f1413; --white: #151c19; --sidebar: #111816; --green: #69c58c; --green-dark: #8bd6a4; }
body { color: var(--ink); background: #0f1413; }.sidebar { background: #111816; border-color: #202b28; }.topbar { background: #111816; border-color: #202b28; }.main-panel { background: #0f1413; }.new-chat-button { color: #0b1710; background: #69c58c; box-shadow: none; }.conversation:hover, .conversation.active { color: #e1ebe5; background: #1a2421; }.conversation { color: #718079; }.route-card { background: #16231c; border-color: #254333; }.route-card p, .welcome-copy { color: #82938a; }.profile-row:hover { background: #1a2421; }.model-picker { color: #b3c4ba; }.chat-content { scrollbar-color: #2b3b34 transparent; }.prompt-card { color: #d7e0dc; background: #151c19; border-color: #26332f; }.prompt-card:hover { border-color: #477857; box-shadow: 0 8px 20px #00000030; }.composer { background: #151c19; border-color: #2b3934; box-shadow: 0 12px 35px #00000040; }.composer textarea { color: #d7e0dc; }.composer textarea::placeholder { color: #64736b; }.composer-note { color: #68766e; }.message-body p { color: #aab9b0; }.message.user .message-body { background: #1b2b22; }.message.user .message-body p { color: #b9d3c0; }.provider-label, .active-provider { color: #8bd6a4; background: #1b3927; }.message-body strong, .welcome-block h1 { color: #e4eee8; }.ai-avatar { background: #1b3927; }.prompt-icon.orange { background: #39261c; }.prompt-icon.blue { background: #1d2d43; }.prompt-icon.green { background: #1b3927; }.workspace-panel { background: #0d1211; border-color: #26332f; }.workspace-header, .workspace-tabs, .preview-toolbar, .code-toolbar, .code-status { background: #111816; border-color: #26332f; }.workspace-header strong, .workspace-kicker { color: #d7e0dc; }.workspace-kicker { color: #69c58c; }.workspace-tab { color: #73827a; }.workspace-tab.active { color: #8bd6a4; border-color: #69c58c; }.workspace-view iframe { background: #fff; }.file-explorer { width: 178px; flex: 0 0 178px; background: #111816; border-right: 1px solid #26332f; }.code-layout { display: flex; flex: 1; min-height: 0; }.editor-area { display: flex; flex: 1; flex-direction: column; min-width: 0; }.explorer-heading { display: flex; justify-content: space-between; padding: 14px 12px 12px; color: #718079; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 1px; }.explorer-heading svg { width: 13px; }.explorer-root { display: flex; align-items: center; gap: 4px; padding: 7px 10px; color: #a9b9b0; font-size: 9px; }.explorer-root svg { width: 12px; }.file-tree { display: grid; gap: 1px; padding: 3px 6px; }.file-tree-item { display: flex; align-items: center; gap: 7px; overflow: hidden; padding: 7px 6px; color: #84948b; background: transparent; border-radius: 4px; text-align: left; font-family: 'DM Mono', monospace; font-size: 9px; }.file-tree-item:hover, .file-tree-item.active { color: #d6e5dc; background: #1c2923; }.file-tree-item svg { flex: 0 0 13px; width: 13px; color: #6fc68e; }.file-tree-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.editor-tab { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 10px; color: #9fb0a6; background: #151d1a; border-bottom: 1px solid #26332f; font-family: 'DM Mono', monospace; font-size: 9px; }.editor-tab > span:first-child { color: #69c58c; }.editor-tab > span:first-child svg { width: 13px; display: block; }.editor-tab .icon-button { margin-left: auto; padding: 4px; }.editor-tab .icon-button svg { width: 13px; }.code-toolbar select { color: #d7e0dc; background: #151c19; border-color: #2b3934; }.code-toolbar .icon-button { color: #8bd6a4; background: #1b3927; }.workspace-view textarea { color: #d9e8df; background: #0c1110; }.code-status { color: #718079; }.project-action { color: #8bd6a4; background: #173021; border-color: #2d5940; }.project-action:disabled { color: #64736b; background: #151c19; border-color: #26332f; }.deploy-status { color: #8a9a90; }
