:root {
  color-scheme: dark;
  --bg: #0c0e12;
  --panel: #101318;
  --panel-raised: #15191f;
  --panel-hover: #1a1f26;
  --border: rgba(255, 255, 255, .075);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #eef1f4;
  --muted: #8d949e;
  --muted-2: #626b76;
  --mint: #9ce4bf;
  --mint-bright: #aaf2cb;
  --mint-ink: #15261d;
  --purple: #c2b6ff;
  --coral: #f5a69c;
  --amber: #e5c98a;
  --sidebar: #101216;
  --shadow: 0 22px 80px rgba(0, 0, 0, .45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { min-width: 320px; min-height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid rgba(156, 228, 191, .8); outline-offset: 3px; }
a { color: inherit; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.app-shell { width: 100%; height: 100dvh; min-height: 560px; display: grid; grid-template-columns: 252px minmax(450px, 1fr) 294px; background: var(--bg); }
.sidebar { position: relative; z-index: 20; display: flex; flex-direction: column; min-width: 0; padding: 23px 15px 14px; border-right: 1px solid var(--border); background: var(--sidebar); }
.brand { display: flex; width: max-content; align-items: center; gap: 10px; margin: 0 0 29px 4px; text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; color: var(--mint); }
.brand-mark svg { width: 37px; height: 37px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-copy strong { color: #f5f6f5; font-size: 20px; font-weight: 650; letter-spacing: -.9px; }
.brand-copy small { color: #747c85; font-size: 8px; font-weight: 750; letter-spacing: 1.45px; }
.new-session-button { display: flex; align-items: center; gap: 10px; width: 100%; height: 39px; padding: 0 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: rgba(255,255,255,.025); color: #e8ebec; cursor: pointer; font-size: 12px; font-weight: 550; transition: border-color .16s, background .16s; }
.new-session-button:hover { border-color: rgba(156,228,191,.4); background: rgba(156,228,191,.055); }
.new-session-button svg { width: 17px; height: 17px; color: var(--mint); }
.new-session-button kbd { margin-left: auto; color: #68717b; font-size: 10px; }
.side-label { margin: 25px 9px 9px; color: #68717b; font-size: 9px; font-weight: 750; letter-spacing: 1.15px; }
.primary-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { position: relative; display: flex; align-items: center; width: 100%; height: 38px; gap: 11px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #939ba5; text-align: left; font-size: 12px; cursor: pointer; transition: color .15s, background .15s; }
.nav-item svg { width: 17px; height: 17px; color: #77808a; }
.nav-item:hover { background: rgba(255,255,255,.035); color: #e8ebec; }
.nav-item:disabled, .mode-tab:disabled { opacity: .6; cursor: wait; }
.nav-item.is-active { color: #e7efea; background: linear-gradient(90deg, rgba(156,228,191,.11), rgba(156,228,191,.035)); }
.nav-item.is-active svg { color: var(--mint); }
.nav-indicator { width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: var(--mint); opacity: 0; }
.nav-item.is-active .nav-indicator { opacity: 1; }
.nav-tag { margin-left: auto; padding: 3px 5px 2px; border: 1px solid rgba(194,182,255,.18); border-radius: 4px; color: #b9aff1; font-size: 8px; font-weight: 750; letter-spacing: .55px; }
.side-divider { height: 1px; margin: 19px 3px 0; background: var(--border); }
.side-label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.recent-count { color: #56606b; font-size: 10px; font-weight: 550; }
.history-list { display: flex; min-height: 0; flex-direction: column; gap: 2px; overflow-y: auto; }
.history-empty { padding: 8px 10px; color: #69727c; font-size: 11px; line-height: 1.55; }
.history-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 0 9px; overflow: hidden; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #939ba5; text-align: left; cursor: pointer; font-size: 11px; }
.history-item:hover { background: rgba(255,255,255,.035); color: #e7e9eb; }
.history-item.is-current { border-color: rgba(255,255,255,.06); background: rgba(255,255,255,.045); color: #e6e9ec; }
.history-item svg { width: 14px; height: 14px; min-width: 14px; color: #727b85; }
.history-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-spacer { flex: 1; min-height: 18px; }
.provider-card { padding: 12px 11px 11px; border: 1px solid rgba(255,255,255,.075); border-radius: 9px; background: linear-gradient(140deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.provider-card-heading { display: flex; align-items: center; gap: 7px; color: #dfe4e2; font-size: 11px; font-weight: 620; }
.provider-icon { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; background: rgba(156,228,191,.11); color: var(--mint); }
.provider-icon svg { width: 15px; height: 15px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #6d7680; box-shadow: 0 0 0 3px rgba(109,118,128,.1); }
.status-dot.is-connected { background: #8dddac; box-shadow: 0 0 0 3px rgba(141,221,172,.12), 0 0 11px rgba(141,221,172,.36); }
.status-dot.is-error { background: #e9978c; box-shadow: 0 0 0 3px rgba(233,151,140,.12); }
.provider-card p { margin: 8px 0 10px; color: #818a94; font-size: 10px; line-height: 1.5; }
.provider-connect { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0; border: 0; background: none; color: var(--mint); text-align: left; font-size: 10px; font-weight: 620; cursor: pointer; }
.provider-connect:hover { color: #c3f6d9; }
.sidebar-footer { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.footer-link { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: #77808a; text-align: left; text-decoration: none; font-size: 10px; cursor: pointer; }
.footer-link:hover { background: rgba(255,255,255,.04); color: #d9dddf; }
.footer-link svg { width: 15px; height: 15px; }
.external-mark { margin-left: auto; color: #5e6670; }

.main-column { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse at 53% 0%, rgba(74,96,81,.075), transparent 40%), #0c0e12; }
.topbar { z-index: 5; display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 25px; border-bottom: 1px solid var(--border); background: rgba(12,14,18,.88); backdrop-filter: blur(14px); }
.topbar-left, .topbar-actions { display: flex; min-width: 0; align-items: center; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #787f89; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .75px; }
.breadcrumb strong { color: #e5e8e9; font-size: 11px; font-weight: 580; letter-spacing: 0; }
.breadcrumb-slash { color: #48505a; font-size: 13px; font-weight: 350; }
.topbar-divider { height: 16px; width: 1px; background: var(--border-strong); }
.workspace-chip { display: flex; max-width: 180px; align-items: center; gap: 7px; overflow: hidden; color: #7f8791; font-size: 10px; white-space: nowrap; }
.workspace-chip span { overflow: hidden; text-overflow: ellipsis; }
.tiny-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #626a74; }
.workspace-chip.is-connected { color: #b7c6bc; }
.workspace-chip.is-connected .tiny-dot { background: #9ce4bf; box-shadow: 0 0 8px rgba(156,228,191,.35); }
.mode-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.065); border-radius: 8px; background: #111419; }
.mode-tab { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #7e8791; font-size: 10px; font-weight: 560; cursor: pointer; }
.mode-tab:hover { color: #dce1df; }
.mode-tab.is-active { background: #252a30; color: #e6ebe8; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tab-spark { color: var(--mint); font-size: 12px; }
.model-select-wrap { position: relative; display: flex; height: 34px; align-items: center; gap: 7px; padding: 0 26px 0 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: #12151a; color: #bfc6c6; }
.model-select-wrap:hover { border-color: rgba(255,255,255,.16); }
.model-cube { color: #9ce4bf; }
.model-cube svg { width: 16px; height: 16px; }
.model-select-wrap select { position: relative; z-index: 1; width: 132px; max-width: 160px; overflow: hidden; border: 0; outline: 0; appearance: none; background: transparent; color: #d8dcdb; text-overflow: ellipsis; font-size: 10px; cursor: pointer; }
.model-select-wrap select option { color: #1a1d21; background: #fff; }
.select-chevron { position: absolute; right: 7px; width: 13px; height: 13px; color: #78818a; pointer-events: none; }
.api-status-button { display: flex; min-width: max-content; height: 33px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.025); color: #bdc3c4; font-size: 10px; font-weight: 550; cursor: pointer; transition: background .15s, border-color .15s; }
.api-status-button:hover { border-color: rgba(156,228,191,.32); background: rgba(156,228,191,.04); }
.api-status-button .status-dot { width: 6px; height: 6px; margin: 0; box-shadow: none; }

.chat-area { position: relative; display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: auto; scrollbar-color: #2a3037 transparent; scrollbar-width: thin; }
.welcome-screen { display: flex; min-height: 100%; align-items: center; justify-content: center; padding: 26px 34px 23px; }
.welcome-content { width: min(100%, 720px); margin: auto; padding: 3px 0 0; animation: welcomeIn .45s ease both; }
@keyframes welcomeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: #89938d; font-size: 9px; font-weight: 760; letter-spacing: 1.4px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #9be0b9; box-shadow: 0 0 0 4px rgba(155,224,185,.1), 0 0 12px rgba(155,224,185,.38); }
.kicker-line { width: 25px; height: 1px; margin-left: 2px; background: #424a46; }
.hero-glyph { position: relative; display: grid; width: 88px; height: 88px; margin: 24px 0 14px -5px; place-items: center; color: #a6e6bf; }
.hero-glyph > svg { position: relative; z-index: 2; width: 82px; height: 82px; filter: drop-shadow(0 0 20px rgba(156,228,191,.11)); }
.glyph-ring { position: absolute; inset: 9px; border: 1px solid rgba(156,228,191,.075); border-radius: 23px; transform: rotate(30deg); }
.ring-two { inset: 14px -4px; border-radius: 35%; transform: rotate(-35deg); opacity: .55; }
.glyph-star { position: absolute; z-index: 3; color: #d1c8ff; }
.star-a { top: 0; right: -11px; font-size: 13px; }
.star-b { bottom: 14px; left: -16px; color: #e8c784; font-size: 25px; line-height: 10px; }
.welcome-content h1 { margin: 0; color: #eff2ef; font-size: clamp(38px, 4.2vw, 54px); font-weight: 540; letter-spacing: -2.8px; line-height: 1.04; }
.welcome-content h1 em { color: #a7e5c0; font-family: Iowan Old Style, "Palatino Linotype", Georgia, serif; font-size: 1.02em; font-weight: 450; letter-spacing: -2.4px; }
.hero-description { max-width: 530px; margin: 14px 0 18px; color: #939ba3; font-size: 12px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 9px; }
.primary-cta, .secondary-cta { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 11px; padding: 0 13px; border-radius: 7px; font-size: 10px; font-weight: 650; cursor: pointer; transition: transform .15s, background .15s; }
.primary-cta { border: 1px solid rgba(179,239,201,.9); background: var(--mint); color: #1a2a21; box-shadow: 0 5px 17px rgba(100,187,132,.1); }
.primary-cta:hover { transform: translateY(-1px); background: #b7f0cd; }
.secondary-cta { border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.025); color: #b9c0bf; }
.secondary-cta svg { width: 15px; height: 15px; color: #9be0b9; }
.secondary-cta:hover { background: rgba(255,255,255,.06); }
.suggestion-heading { display: flex; justify-content: space-between; margin: 27px 0 9px; color: #717a83; font-size: 8px; font-weight: 750; letter-spacing: 1.05px; }
.suggestion-heading span:last-child { color: #555d65; font-size: 8px; letter-spacing: .55px; }
.suggestion-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.suggestion-card { display: flex; min-width: 0; min-height: 58px; align-items: center; gap: 9px; padding: 9px 8px; border: 1px solid rgba(255,255,255,.075); border-radius: 8px; background: rgba(255,255,255,.02); text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.suggestion-card:hover { transform: translateY(-2px); border-color: rgba(156,228,191,.23); background: rgba(156,228,191,.045); }
.suggestion-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(194,182,255,.13); border-radius: 7px; background: rgba(194,182,255,.09); color: #d3caff; font-size: 15px; }
.icon-coral { border-color: rgba(245,166,156,.14); background: rgba(245,166,156,.09); color: #f3afa3; font-size: 21px; }
.icon-mint { border-color: rgba(156,228,191,.15); background: rgba(156,228,191,.09); color: #abe7c1; }
.suggestion-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.suggestion-card strong { overflow: hidden; color: #d8dddb; font-size: 9px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-card small { overflow: hidden; color: #77818a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-arrow { align-self: flex-start; margin-left: auto; color: #67717a; font-size: 10px; }
.trust-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 15px; color: #707a82; font-size: 8px; line-height: 1.5; }
.trust-note svg { width: 13px; height: 13px; color: #8fd6ab; }
.trust-separator { color: #505860; }

.message-list { width: min(100%, 820px); margin: 0 auto; padding: 33px 30px 44px; }
.message-row { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 25px; animation: messageIn .25s ease both; }
@keyframes messageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.message-avatar { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(156,228,191,.15); border-radius: 8px; background: rgba(156,228,191,.08); color: var(--mint); }
.message-avatar svg { width: 16px; height: 16px; }
.user-avatar { border-color: rgba(194,182,255,.16); background: rgba(194,182,255,.1); color: #c2b6ff; }
.user-avatar svg { width: 15px; height: 15px; }
.message-body { min-width: 0; flex: 1; padding-top: 2px; }
.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #838d96; font-size: 9px; font-weight: 560; }
.message-meta strong { color: #cdd4d1; font-weight: 640; }
.message-meta time { color: #59616b; font-weight: 450; }
.message-text { color: #d6dbd9; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.user-message-row { justify-content: flex-end; }
.user-message-row .message-avatar { order: 2; }
.user-message-row .message-body { display: flex; flex: 0 1 auto; flex-direction: column; align-items: flex-end; max-width: 82%; }
.user-message-row .message-meta { width: 100%; justify-content: flex-end; }
.user-message-row .message-text { width: fit-content; max-width: 100%; padding: 10px 13px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px 4px 12px 12px; background: rgba(255,255,255,.055); color: #e0e4e2; }
.assistant-message-row .message-body { max-width: 100%; }
.markdown-content p { margin: 0 0 10px; }
.markdown-content p:last-child { margin-bottom: 0; }
.markdown-content h1, .markdown-content h2, .markdown-content h3 { margin: 17px 0 8px; color: #edf0ef; font-weight: 620; letter-spacing: -.35px; }
.markdown-content h1 { font-size: 18px; }
.markdown-content h2 { font-size: 15px; }
.markdown-content h3 { font-size: 13px; }
.markdown-content ul, .markdown-content ol { margin: 5px 0 12px; padding-left: 20px; }
.markdown-content li { margin: 3px 0; padding-left: 2px; }
.markdown-content li::marker { color: #94d8ae; }
.markdown-content a { color: #a9e8c2; text-decoration: underline; text-decoration-color: rgba(169,232,194,.4); text-underline-offset: 2px; }
.markdown-content code:not(pre code) { padding: 2px 5px; border: 1px solid rgba(255,255,255,.075); border-radius: 4px; background: rgba(255,255,255,.055); color: #bdebd0; font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }
.code-block-wrap { position: relative; margin: 12px 0; overflow: hidden; border: 1px solid rgba(255,255,255,.085); border-radius: 8px; background: #101318; }
.code-block-head { display: flex; height: 31px; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.065); color: #7f8993; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.code-copy-button { border: 0; background: transparent; color: #7f8993; font-size: 9px; cursor: pointer; }
.code-copy-button:hover { color: #c7e9d3; }
.code-block-wrap pre { max-height: 430px; margin: 0; overflow: auto; padding: 13px 14px; color: #d6e4db; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 10px; line-height: 1.7; tab-size: 2; }
.code-block-wrap pre code { white-space: pre; }
.agent-activity { display: flex; align-items: flex-start; gap: 8px; margin: 11px 0; padding: 8px 10px; border: 1px solid rgba(156,228,191,.11); border-radius: 6px; background: rgba(156,228,191,.035); color: #9da9a2; font-size: 9px; line-height: 1.5; }
.agent-activity svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: var(--mint); }
.agent-activity strong { color: #bfdfc9; font-weight: 600; }
.typing-indicator { display: inline-flex; gap: 4px; padding: 4px 0 1px; }
.typing-indicator span { width: 4px; height: 4px; border-radius: 50%; background: #8fe0ae; animation: typePulse 1s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typePulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.message-error { padding: 10px 12px; border: 1px solid rgba(237,151,140,.18); border-radius: 7px; background: rgba(237,151,140,.055); color: #e9ada5; font-size: 10px; line-height: 1.6; }

.composer-area { position: relative; z-index: 3; width: min(100%, 860px); flex: 0 0 auto; margin: 0 auto; padding: 10px 30px 14px; background: linear-gradient(180deg, rgba(12,14,18,0), #0c0e12 14%); }
.quick-prompts { display: flex; justify-content: center; gap: 7px; margin: 0 0 8px; overflow: hidden; }
.quick-prompts button { display: flex; max-width: 33%; min-height: 25px; align-items: center; gap: 8px; padding: 0 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.065); border-radius: 999px; background: rgba(255,255,255,.018); color: #838c95; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; cursor: pointer; }
.quick-prompts button:hover { border-color: rgba(156,228,191,.23); color: #c3dccb; }
.quick-prompts button span { color: #69747c; }
.prompt-card { padding: 11px 11px 9px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: #15191e; box-shadow: 0 10px 30px rgba(0,0,0,.17); transition: border .15s, box-shadow .15s; }
.prompt-card:focus-within { border-color: rgba(156,228,191,.4); box-shadow: 0 0 0 3px rgba(156,228,191,.035), 0 10px 30px rgba(0,0,0,.2); }
.prompt-card textarea { display: block; width: 100%; min-height: 31px; max-height: 170px; resize: none; padding: 0; border: 0; outline: 0; background: transparent; color: #e4e9e7; font-size: 11px; line-height: 1.55; }
.prompt-card textarea::placeholder { color: #6e7881; }
.prompt-card textarea:focus-visible { outline: 0; }
.prompt-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 8px; }
.prompt-tools, .prompt-submit-side { display: flex; min-width: 0; align-items: center; gap: 10px; }
.composer-tool { display: flex; height: 25px; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid rgba(255,255,255,.075); border-radius: 5px; background: rgba(255,255,255,.02); color: #a1a9ad; font-size: 9px; cursor: pointer; }
.composer-tool:hover { border-color: rgba(156,228,191,.24); color: #d2e4d8; }
.composer-tool svg { width: 13px; height: 13px; color: #9ce4bf; }
.composer-context { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; color: #68737c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.composer-context i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #515b64; }
.composer-context.is-connected { color: #a1b8a8; }
.composer-context.is-connected i { background: #92d8a9; }
.prompt-mode-label { color: #747e86; font-size: 8px; font-weight: 750; letter-spacing: .85px; }
.prompt-mode-label.agent-mode { color: #a9e5c0; }
.send-button { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(179,239,201,.7); border-radius: 7px; background: var(--mint); color: #18251d; cursor: pointer; transition: background .15s, transform .15s; }
.send-button svg { width: 16px; height: 16px; stroke-width: 1.8; }
.send-button:hover { transform: translateY(-1px); background: #b7f0cd; }
.send-button:disabled { opacity: .55; cursor: wait; transform: none; }
.send-button.is-stop { border-color: rgba(237,151,140,.55); background: rgba(237,151,140,.14); color: #f0a69b; }
.send-button.is-stop svg { display: none; }
.send-button.is-stop::before { width: 9px; height: 9px; border-radius: 2px; background: currentColor; content: ""; }
.composer-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 2px 0; color: #5c656e; font-size: 8px; }
.caption-shortcuts { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.caption-shortcuts kbd { padding: 1px 4px; border: 1px solid rgba(255,255,255,.09); border-radius: 3px; color: #77818a; font-family: inherit; font-size: 8px; }

.inspector { z-index: 8; display: flex; min-width: 0; flex-direction: column; padding: 25px 17px 12px; border-left: 1px solid var(--border); background: #101216; }
.inspector-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.eyebrow { color: #747e87; font-size: 8px; font-weight: 750; letter-spacing: 1.2px; }
.inspector-topline h2 { margin: 5px 0 0; color: #e8ecea; font-size: 15px; font-weight: 560; letter-spacing: -.3px; }
.icon-button { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #78828b; cursor: pointer; }
.icon-button:hover { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: #c9d0ce; }
.icon-button svg { width: 16px; height: 16px; }
.mobile-menu { display: none; }
.workspace-panel { padding: 12px 11px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.012)); }
.workspace-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.workspace-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(156,228,191,.12); border-radius: 7px; background: rgba(156,228,191,.07); color: #97d8b0; }
.workspace-avatar svg { width: 18px; height: 18px; }
.workspace-title-wrap { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.workspace-title-wrap strong { overflow: hidden; color: #e1e6e3; font-size: 10px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.workspace-title-wrap span { overflow: hidden; color: #75808a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-state-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #59626b; }
.workspace-state-dot.is-ready { background: #9be0b9; box-shadow: 0 0 8px rgba(156,228,191,.36); }
.workspace-connect-actions { display: grid; gap: 6px; margin-top: 12px; }
.connect-action { display: flex; min-width: 0; align-items: center; gap: 8px; height: 31px; padding: 0 8px; border: 1px solid rgba(255,255,255,.075); border-radius: 6px; background: rgba(255,255,255,.022); color: #b2b9b8; text-align: left; font-size: 9px; cursor: pointer; transition: border .15s, background .15s; }
.connect-action:hover { border-color: rgba(156,228,191,.22); background: rgba(156,228,191,.035); }
.connect-action-icon { display: grid; width: 17px; height: 17px; place-items: center; color: #92cda5; }
.connect-action-icon svg { width: 15px; height: 15px; }
.github-action .connect-action-icon { color: #c2b6ff; }
.connect-arrow { margin-left: auto; color: #6e7780; font-size: 10px; }
.workspace-connected-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.connected-badges { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; gap: 5px; }
.connected-badge { display: inline-flex; min-height: 18px; align-items: center; padding: 0 6px; border: 1px solid rgba(156,228,191,.14); border-radius: 4px; background: rgba(156,228,191,.055); color: #9dd9b3; font-size: 7px; font-weight: 750; letter-spacing: .65px; }
.branch-badge { max-width: 94px; overflow: hidden; border-color: rgba(255,255,255,.085); background: rgba(255,255,255,.025); color: #9ba3a9; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; font-weight: 530; }
.text-action { padding: 3px 0; border: 0; background: transparent; color: #77818b; font-size: 8px; cursor: pointer; }
.text-action:hover { color: #d3ded7; }
.commit-message-field { display: flex; width: 100%; height: 28px; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid rgba(255,255,255,.065); border-radius: 5px; background: rgba(0,0,0,.12); color: #78838b; }
.commit-message-field svg { width: 12px; height: 12px; flex: 0 0 auto; }
.commit-message-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #c7d2cb; font-size: 8px; }
.commit-message-field input::placeholder { color: #67727b; }
.commit-message-field input:focus-visible { outline: 0; }
.push-button { display: flex; width: 100%; min-height: 29px; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid rgba(156,228,191,.19); border-radius: 6px; background: rgba(156,228,191,.07); color: #a9e7c1; font-size: 9px; font-weight: 570; cursor: pointer; }
.push-button:hover { background: rgba(156,228,191,.12); }
.push-button svg { width: 14px; height: 14px; }
.push-button b { display: grid; width: 16px; height: 16px; margin-left: auto; place-items: center; border-radius: 4px; background: rgba(156,228,191,.13); font-size: 8px; }
.download-button { border-color: rgba(194,182,255,.18); background: rgba(194,182,255,.055); color: #c7bdff; }
.download-button:hover { background: rgba(194,182,255,.1); }
.download-button b { background: rgba(194,182,255,.12); }
.workspace-divider { height: 1px; margin: 12px 0 11px; background: rgba(255,255,255,.06); }
.file-panel-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; color: #737d86; font-size: 7px; font-weight: 750; letter-spacing: 1px; }
.file-panel-heading span:last-child { color: #606a73; font-weight: 550; letter-spacing: 0; }
.file-search { display: flex; height: 27px; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid rgba(255,255,255,.065); border-radius: 5px; background: rgba(0,0,0,.13); color: #68737d; }
.file-search svg { width: 13px; height: 13px; }
.file-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #c4ceca; font-size: 9px; }
.file-search input::placeholder { color: #68727b; }
.file-search input:focus-visible { outline: 0; }
.file-list { display: flex; max-height: min(32vh, 260px); flex-direction: column; gap: 1px; margin-top: 7px; overflow: auto; scrollbar-width: thin; scrollbar-color: #2b323a transparent; }
.file-row { display: flex; min-width: 0; align-items: center; gap: 7px; min-height: 24px; padding: 0 5px; border: 0; border-radius: 4px; background: transparent; color: #929ba3; text-align: left; cursor: pointer; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.file-row:hover { background: rgba(255,255,255,.045); color: #e0e6e2; }
.file-row svg { width: 12px; height: 12px; flex: 0 0 auto; color: #849288; }
.file-row .file-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .dirty-mark { width: 4px; height: 4px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: #e3c47f; }
.file-list-empty { padding: 9px 4px; color: #707982; font-size: 9px; line-height: 1.5; }
.workspace-empty { padding: 21px 6px 9px; text-align: center; }
.empty-orbit { position: relative; width: 44px; height: 44px; margin: 0 auto 13px; border: 1px solid rgba(156,228,191,.14); border-radius: 50%; }
.empty-orbit::before { position: absolute; inset: 7px; border: 1px dashed rgba(156,228,191,.19); border-radius: 50%; content: ""; }
.empty-orbit span { position: absolute; top: 8px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #9fe5bb; box-shadow: 0 0 10px rgba(159,229,187,.5); }
.empty-orbit i { position: absolute; bottom: 3px; left: 8px; width: 4px; height: 4px; border-radius: 50%; background: #c2b6ff; }
.empty-orbit b { position: absolute; top: 18px; left: 18px; width: 7px; height: 7px; border-radius: 50%; background: rgba(156,228,191,.65); }
.workspace-empty strong { color: #bdc7c1; font-size: 9px; font-weight: 570; }
.workspace-empty p { margin: 6px 0 0; color: #737e87; font-size: 8px; line-height: 1.6; }
.inspector-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.model-status { color: #8ccba2; font-size: 7px; font-weight: 720; letter-spacing: .65px; }
.model-status.is-muted { color: #727c85; }
.model-inspector h3 { margin: 10px 0 5px; overflow: hidden; color: #dfe7e1; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.model-inspector > p { min-height: 25px; margin: 0; color: #7d878f; font-size: 8px; line-height: 1.55; }
.model-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.model-facts > div { display: flex; min-height: 39px; flex-direction: column; justify-content: center; gap: 4px; padding: 0 8px; border: 1px solid rgba(255,255,255,.055); border-radius: 5px; background: rgba(255,255,255,.017); }
.model-facts span { color: #727d84; font-size: 7px; font-weight: 720; letter-spacing: .75px; }
.model-facts strong { color: #c6d0ca; font-size: 9px; font-weight: 550; }
.rate-limit-line { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: #69747c; font-size: 8px; line-height: 1.4; }
.rate-indicator { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #8cd5a8; }
.usage-disclaimer { margin: 6px 0 0 11px; color: #657079; font-size: 7px; line-height: 1.5; }
.privacy-note { display: flex; gap: 9px; margin-top: auto; padding: 12px 10px; border: 1px solid rgba(156,228,191,.085); border-radius: 7px; background: rgba(156,228,191,.025); }
.privacy-icon { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: rgba(156,228,191,.085); color: #94d7ac; }
.privacy-icon svg { width: 14px; height: 14px; }
.privacy-note strong { color: #b9c9be; font-size: 8px; font-weight: 630; }
.privacy-note p { margin: 4px 0 0; color: #747e86; font-size: 7px; line-height: 1.55; }
.inspector-bottom { display: flex; align-items: center; gap: 6px; min-height: 27px; margin-top: 6px; color: #6a747d; font-size: 8px; }
.bottom-led { width: 5px; height: 5px; border-radius: 50%; background: #91d6a8; }
.inspector-bottom button { margin-left: auto; padding: 3px 0; border: 0; background: none; color: #8b949c; font-size: 8px; cursor: pointer; }
.inspector-bottom button:hover { color: #d0d6d2; }

.modal { width: min(500px, calc(100vw - 30px)); max-height: calc(100dvh - 36px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #15191e; color: var(--text); box-shadow: var(--shadow); scrollbar-color: #353c45 transparent; }
.modal::backdrop { background: rgba(3,5,7,.72); backdrop-filter: blur(5px); }
.modal-card { padding: 23px 25px 21px; }
.modal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(156,228,191,.14); border-radius: 9px; background: rgba(156,228,191,.075); color: #a3e7be; }
.modal-icon svg { width: 21px; height: 21px; }
.github-modal-icon { border-color: rgba(194,182,255,.16); background: rgba(194,182,255,.075); color: #c8bdff; }
.approval-modal-icon { border-color: rgba(229,201,138,.17); background: rgba(229,201,138,.075); color: #e5cc91; }
.file-modal-icon { color: #b8d9c4; }
.modal-close { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8c959d; font-size: 21px; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: #e2e7e4; }
.modal-eyebrow { margin: 0 0 7px; color: #8fcba3; font-size: 8px; font-weight: 760; letter-spacing: 1.2px; }
.modal-card h2 { margin: 0; color: #eef1ef; font-size: 21px; font-weight: 570; letter-spacing: -.65px; }
.modal-description { margin: 9px 0 20px; color: #929ba3; font-size: 10px; line-height: 1.65; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin: 0 0 7px; color: #cbd2cf; font-size: 9px; font-weight: 620; }
.field-label a { color: #9edfb7; text-decoration: none; font-size: 8px; font-weight: 500; }
.field-label a:hover { text-decoration: underline; }
.field-label span { color: #76818a; font-size: 8px; font-weight: 450; }
.secret-input-wrap { display: flex; height: 39px; align-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: #0f1216; }
.secret-input-wrap:focus-within { border-color: rgba(156,228,191,.38); }
.secret-input-wrap input { min-width: 0; flex: 1; height: 100%; padding: 0 10px; border: 0; outline: 0; background: transparent; color: #e5ece7; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.secret-input-wrap input:focus-visible { outline: 0; }
.secret-input-wrap input::placeholder { color: #59636c; }
.secret-input-wrap button { height: 26px; margin-right: 6px; padding: 0 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; background: rgba(255,255,255,.025); color: #89939a; font-size: 8px; cursor: pointer; }
.text-field { width: 100%; height: 37px; padding: 0 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 6px; background: #0f1216; color: #e3e9e5; font-size: 10px; }
.text-field:focus { border-color: rgba(156,228,191,.38); outline: none; }
.text-field::placeholder { color: #5f6972; }
.field-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 13px; }
.security-callout { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; padding: 9px 10px; border: 1px solid rgba(156,228,191,.09); border-radius: 6px; background: rgba(156,228,191,.028); color: #83918a; font-size: 8px; line-height: 1.55; }
.security-callout svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; color: #8ecfa5; }
.form-error { display: none; margin-top: 10px; padding: 8px 9px; border: 1px solid rgba(241,139,130,.17); border-radius: 5px; background: rgba(241,139,130,.055); color: #e8aaa2; font-size: 9px; line-height: 1.5; }
.form-error.is-visible { display: block; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.modal-secondary, .modal-primary { display: inline-flex; min-height: 33px; align-items: center; justify-content: center; gap: 9px; padding: 0 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: rgba(255,255,255,.025); color: #aab2b1; font-size: 9px; font-weight: 590; cursor: pointer; }
.modal-secondary:hover { background: rgba(255,255,255,.06); color: #e1e6e3; }
.modal-primary { border-color: rgba(179,239,201,.75); background: var(--mint); color: #192a20; }
.modal-primary:hover { background: #b8f2ce; }
.modal-primary:disabled { opacity: .55; cursor: wait; }
.modal-primary span { font-size: 11px; }
.change-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.075); border-bottom: 0; border-radius: 6px 6px 0 0; background: #111419; color: #c2d2c8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.change-preview-header span:last-child { color: #76818a; font-family: inherit; font-size: 8px; }
.change-preview, .file-preview { max-height: 220px; min-height: 58px; margin: 0; overflow: auto; padding: 10px; border: 1px solid rgba(255,255,255,.075); border-radius: 0 0 6px 6px; background: #0d1014; color: #cddbd1; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; line-height: 1.6; white-space: pre; }
.change-preview code, .file-preview code { font: inherit; }
.approval-card .security-callout { margin-top: 11px; }
.file-preview-card { width: 100%; }
.file-preview { max-height: min(54vh, 440px); min-height: 140px; }
.file-preview-card .modal-description { margin-bottom: 10px; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 18px; display: flex; max-width: min(360px, calc(100vw - 40px)); flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #1b2025; color: #dbe3de; box-shadow: 0 10px 40px rgba(0,0,0,.35); font-size: 10px; line-height: 1.5; animation: toastIn .2s ease both; }
.toast::before { width: 6px; height: 6px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #98dbb0; content: ""; }
.toast.is-error::before { background: #ea988f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-height: 760px) and (min-width: 980px) {
  .welcome-screen { align-items: flex-start; padding-top: 25px; }
  .hero-glyph { width: 70px; height: 70px; margin-top: 17px; margin-bottom: 10px; }
  .hero-glyph > svg { width: 69px; height: 69px; }
  .welcome-content h1 { font-size: 43px; }
  .hero-description { margin: 10px 0 13px; }
  .suggestion-heading { margin-top: 18px; }
  .trust-note { margin-top: 10px; }
  .composer-area { padding-top: 5px; }
  .inspector { padding-top: 18px; }
  .inspector-topline { margin-bottom: 12px; }
  .privacy-note { padding: 9px; }
}
@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 230px minmax(420px, 1fr) 260px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .inspector { padding-left: 13px; padding-right: 13px; }
  .topbar { padding-right: 17px; padding-left: 17px; }
  .mode-switch { gap: 0; }
  .model-select-wrap select { width: 108px; }
}
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 224px minmax(420px, 1fr); }
  .inspector { display: none; }
  .topbar { padding: 0 22px; }
  .composer-area { width: min(100%, 850px); }
  .welcome-content { width: min(100%, 690px); }
}
@media (max-width: 760px) {
  body { overflow: hidden; }
  .app-shell { position: relative; grid-template-columns: minmax(0,1fr); min-height: 0; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px, calc(100vw - 52px)); transform: translateX(-103%); box-shadow: 20px 0 50px rgba(0,0,0,.36); transition: transform .22s ease; }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .app-shell.menu-open::before { position: fixed; z-index: 19; inset: 0; background: rgba(0,0,0,.54); content: ""; }
  .main-column { min-height: 0; }
  .mobile-menu { display: grid; margin-left: -8px; }
  .topbar { min-height: 58px; gap: 6px; padding: 0 12px; }
  .topbar-left, .topbar-actions { gap: 7px; }
  .breadcrumb { gap: 6px; font-size: 8px; }
  .breadcrumb strong { font-size: 10px; }
  .topbar-divider, .workspace-chip { display: none; }
  .mode-switch { display: none; }
  .model-select-wrap { height: 31px; gap: 4px; padding-left: 6px; }
  .model-cube { display: none; }
  .model-select-wrap select { width: 100px; max-width: 110px; font-size: 9px; }
  .api-status-button { height: 31px; gap: 6px; padding: 0 7px; font-size: 9px; }
  .welcome-screen { align-items: flex-start; padding: 34px 20px 18px; }
  .welcome-content { width: min(100%, 560px); padding-top: 2px; }
  .hero-glyph { width: 74px; height: 74px; margin-top: 22px; margin-bottom: 11px; }
  .hero-glyph > svg { width: 71px; height: 71px; }
  .welcome-content h1 { font-size: clamp(40px, 10vw, 51px); letter-spacing: -2.5px; }
  .hero-description { max-width: 470px; margin: 13px 0 17px; font-size: 11px; }
  .suggestion-grid { grid-template-columns: 1fr; gap: 6px; }
  .suggestion-card { min-height: 47px; padding: 7px 9px; }
  .suggestion-card strong { font-size: 10px; }
  .suggestion-card small { font-size: 8px; }
  .suggestion-heading { margin-top: 22px; }
  .trust-note { margin-top: 12px; }
  .chat-area { overscroll-behavior: contain; }
  .message-list { padding: 22px 15px 30px; }
  .composer-area { width: 100%; padding: 8px 12px max(10px, env(safe-area-inset-bottom)); }
  .quick-prompts { justify-content: flex-start; margin-bottom: 7px; }
  .quick-prompts button { max-width: none; flex: 0 0 auto; }
  .composer-caption { font-size: 7px; }
  .caption-shortcuts { display: none; }
  .prompt-card { padding: 10px 9px 8px 10px; }
  .prompt-card textarea { font-size: 11px; }
  .composer-context { max-width: 38vw; }
  .footer-link { font-size: 11px; }
}
@media (max-width: 430px) {
  .api-status-button { width: 31px; justify-content: center; padding: 0; }
  .api-status-button span:not(.status-dot) { display: none; }
  .api-status-button .status-dot { width: 7px; height: 7px; }
  .topbar { padding-right: 9px; padding-left: 9px; }
  .model-select-wrap select { width: 94px; max-width: 94px; }
  .welcome-screen { padding-right: 16px; padding-left: 16px; }
  .hero-kicker { font-size: 8px; letter-spacing: 1px; }
  .suggestion-heading { margin-top: 20px; }
  .trust-note { align-items: flex-start; font-size: 7px; }
  .trust-note svg { flex: 0 0 auto; }
  .composer-context { max-width: 32vw; }
  .composer-tool { padding: 0 5px; }
  .composer-tool span { display: none; }
  .message-row { gap: 8px; }
  .user-message-row .message-body { max-width: 88%; }
  .modal-card { padding: 19px 17px 17px; }
  .field-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Forge additions: environment banner, token saver, Claude skills, doctor
   ========================================================================== */

.env-banner { position: fixed; top: 12px; left: 50%; z-index: 90; display: flex; max-width: min(760px, calc(100vw - 32px)); align-items: flex-start; gap: 9px; padding: 10px 12px; transform: translateX(-50%); border: 1px solid rgba(241,201,130,.28); border-radius: 9px; background: #1b1a14; color: #e6d5a6; font-size: 10px; line-height: 1.55; box-shadow: 0 14px 44px rgba(0,0,0,.45); }
.env-banner svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: #e5c98a; }
.env-banner code { padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,.07); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.env-banner-close { margin-left: 4px; padding: 0 4px; border: 0; background: transparent; color: #b8a878; font-size: 15px; line-height: 1; cursor: pointer; }
.env-banner-close:hover { color: #f0e0b8; }

.saver-chip { color: #a8e6c0; }
.saver-chip b { margin-left: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(156,228,191,.13); color: #b7ecc9; font-size: 8px; font-weight: 700; }

.saver-meter { position: relative; height: 5px; margin: 13px 0 11px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.saver-meter.large { height: 7px; margin: 10px 0 12px; }
.saver-meter span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6fbf93, #aaf2cb); transition: width .35s ease; }
.saver-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.saver-facts > div { display: flex; min-height: 38px; flex-direction: column; justify-content: center; gap: 3px; padding: 0 8px; border: 1px solid rgba(255,255,255,.055); border-radius: 5px; background: rgba(255,255,255,.017); }
.saver-facts span { color: #727d84; font-size: 7px; font-weight: 720; letter-spacing: .75px; }
.saver-facts strong { color: #c6d0ca; font-size: 10px; font-weight: 550; }
.saver-panel h3, .skills-panel h3 { margin: 9px 0 5px; color: #e4e9e6; font-size: 13px; font-weight: 560; letter-spacing: -.3px; }
.saver-panel p, .skills-panel p { margin: 0 0 10px; color: #838d96; font-size: 9px; line-height: 1.6; }

.skill-mini-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.skill-mini { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.055); border-radius: 5px; background: rgba(255,255,255,.017); }
.skill-mini strong { overflow: hidden; color: #cfd8d3; font-size: 9px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.skill-mini small { margin-left: auto; color: #6d767f; font-size: 7px; font-weight: 680; letter-spacing: .5px; }
.skill-mini.is-off { opacity: .5; }

.wide-modal { width: min(660px, calc(100vw - 30px)); }
.saver-modal-icon { border-color: rgba(156,228,191,.16); }
.skills-modal-icon { border-color: rgba(194,182,255,.18); background: rgba(194,182,255,.075); color: #c8bdff; }
.doctor-modal-icon { border-color: rgba(229,201,138,.18); background: rgba(229,201,138,.075); color: #e5cc91; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 15px; }
.profile-option { display: flex; flex-direction: column; gap: 5px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.018); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.profile-option:hover { border-color: rgba(156,228,191,.28); background: rgba(156,228,191,.045); }
.profile-option.is-active { border-color: rgba(156,228,191,.55); background: rgba(156,228,191,.075); }
.profile-option strong { color: #e2e9e4; font-size: 10px; font-weight: 620; }
.profile-option small { color: #86909a; font-size: 8px; line-height: 1.55; }
.profile-option .profile-tag { width: max-content; padding: 2px 5px; border-radius: 4px; font-size: 7px; font-weight: 720; letter-spacing: .6px; }
.profile-tag.lossless { background: rgba(156,228,191,.13); color: #a9e7c0; }
.profile-tag.lossy { background: rgba(229,201,138,.14); color: #e6cc92; }

.switch-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.switch-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; background: rgba(255,255,255,.015); cursor: pointer; }
.switch-row input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: #9ce4bf; flex: 0 0 auto; }
.switch-row span { display: flex; flex-direction: column; gap: 3px; }
.switch-row strong { color: #d8e0db; font-size: 9.5px; font-weight: 580; }
.switch-row small { color: #7f8993; font-size: 8px; line-height: 1.55; }

.saver-grid { grid-template-columns: 1fr 1fr; margin: 0 0 14px; }
.saver-report { margin-top: 6px; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.014); }
.saver-report-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.saver-report-head strong { color: #dfe6e1; font-size: 10.5px; font-weight: 600; }
.saver-report-head span { color: #7c868f; font-size: 8px; }
.technique-table { display: flex; flex-direction: column; gap: 3px; }
.technique-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 8.5px; }
.technique-row:last-child { border-bottom: 0; }
.technique-row span { color: #b9c2bd; }
.technique-row .technique-tag { padding: 1px 5px; border-radius: 4px; background: rgba(229,201,138,.13); color: #e0c48c; font-size: 7px; font-weight: 700; letter-spacing: .5px; }
.technique-row .technique-tag.is-lossless { background: rgba(156,228,191,.12); color: #a5e3bd; }
.technique-row b { color: #a9e7c0; font-size: 9px; font-weight: 600; }
.technique-empty { padding: 6px 0; color: #6f7981; font-size: 8.5px; }
.saver-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.modal-footnote { margin: 13px 0 0; color: #6f7981; font-size: 8px; line-height: 1.6; }

.skills-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.skills-count { margin-left: auto; color: #7c868f; font-size: 8.5px; }
.skills-list { display: flex; max-height: 330px; flex-direction: column; gap: 7px; overflow: auto; padding-right: 3px; scrollbar-color: #353c45 transparent; }
.skill-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.016); }
.skill-row-head { display: flex; align-items: center; gap: 8px; }
.skill-row-head strong { color: #e2e9e4; font-size: 10.5px; font-weight: 600; }
.skill-badge { padding: 2px 5px; border-radius: 4px; font-size: 7px; font-weight: 740; letter-spacing: .6px; }
.skill-badge.kind-skill { background: rgba(156,228,191,.14); color: #a9e7c0; }
.skill-badge.kind-memory { background: rgba(194,182,255,.14); color: #c6bbff; }
.skill-badge.kind-command { background: rgba(229,201,138,.14); color: #e2c78e; }
.skill-badge.kind-agent { background: rgba(245,166,156,.14); color: #f0b0a7; }
.skill-badge.bad { background: rgba(241,139,130,.16); color: #eea9a0; }
.skill-row p { margin: 0; color: #8b949c; font-size: 8.5px; line-height: 1.6; }
.skill-path { color: #6d767f; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.skill-problems { margin: 0; padding-left: 15px; color: #e0b48c; font-size: 8px; line-height: 1.6; }
.skill-problems li.is-error { color: #eca79e; }
.skill-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.skill-row-actions .modal-secondary { min-height: 26px; padding: 0 9px; font-size: 8px; }
.skill-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #8c959d; font-size: 8px; cursor: pointer; }
.skill-toggle input { accent-color: #9ce4bf; }
.skill-empty { padding: 14px; border: 1px dashed rgba(255,255,255,.1); border-radius: 8px; color: #7d868f; font-size: 9px; line-height: 1.6; text-align: center; }
.skill-editor { margin-top: 13px; padding: 13px; border: 1px solid rgba(156,228,191,.16); border-radius: 9px; background: rgba(156,228,191,.03); }
.skill-editor .text-field { margin-bottom: 10px; }
.code-field { min-height: 170px; padding: 9px 10px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; line-height: 1.65; resize: vertical; }
.skill-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }

.doctor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.doctor-actions-foot { margin: 14px 0 0; }
.link-button { text-decoration: none; }
.doctor-status { margin-left: auto; color: #7c868f; font-size: 8.5px; }
.doctor-results { display: flex; flex-direction: column; gap: 6px; }
.doctor-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; background: rgba(255,255,255,.014); }
.doctor-row i { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #7c868f; }
.doctor-row.is-pass i { background: #7cd39c; }
.doctor-row.is-warn i { background: #e5c98a; }
.doctor-row.is-fail i { background: #ef958b; }
.doctor-row.is-run i { background: #c2b6ff; animation: doctor-pulse 1.1s ease-in-out infinite; }
@keyframes doctor-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.doctor-row div { display: flex; flex-direction: column; gap: 3px; }
.doctor-row strong { color: #dbe2de; font-size: 9.5px; font-weight: 590; }
.doctor-row small { color: #838d96; font-size: 8px; line-height: 1.6; }
.doctor-row small code { padding: 1px 4px; border-radius: 3px; background: rgba(255,255,255,.06); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.doctor-steps { margin: 14px 0 0; padding-left: 17px; color: #89929b; font-size: 8.5px; line-height: 1.75; }
.doctor-steps li { margin-bottom: 5px; }
.doctor-steps strong { color: #cdd5d0; font-weight: 600; }

.signin-row { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 9px 10px; border: 1px solid rgba(194,182,255,.16); border-radius: 7px; background: rgba(194,182,255,.04); }
.signin-button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid rgba(194,182,255,.28); border-radius: 6px; background: rgba(194,182,255,.1); color: #d3cbff; font-size: 9px; font-weight: 580; cursor: pointer; }
.signin-button:hover { background: rgba(194,182,255,.17); }
.signin-dot { width: 6px; height: 6px; border-radius: 50%; background: #c2b6ff; }
.signin-hint { color: #828b95; font-size: 8px; line-height: 1.5; }
.advanced-block { margin-top: 12px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(255,255,255,.014); }
.advanced-block summary { color: #a9b2ac; font-size: 9px; font-weight: 570; cursor: pointer; }
.advanced-block p { margin: 8px 0; color: #7f8993; font-size: 8px; line-height: 1.6; }

.meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid rgba(156,228,191,.16); border-radius: 99px; background: rgba(156,228,191,.07); color: #9fdcb6; font-size: 8px; font-weight: 620; letter-spacing: .2px; }
.meta-chip.is-muted { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.03); color: #8b949c; }
.meta-chip.is-lossy { border-color: rgba(229,201,138,.2); background: rgba(229,201,138,.07); color: #e0c48c; }
.saver-chip b.is-off { background: rgba(255,255,255,.07); color: #8b949c; }
