| :root { |
| --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; |
| --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; |
|
|
| --bg: #0b0c10; |
| --bg-elev-1: #111218; |
| --bg-elev-2: #171922; |
| --bg-elev-3: #1e2130; |
| --border: #242838; |
| --border-strong: #30354a; |
|
|
| --text: #e7e9f1; |
| --text-dim: #a1a5b7; |
| --text-faint: #6a6f82; |
|
|
| --accent: #ffb020; |
| --accent-dim: #bf8418; |
| --accent-strong: #ffcd66; |
| --danger: #ff5c5c; |
| --success: #4ade80; |
|
|
| --user-bubble: #1e2130; |
| --agent-bubble: transparent; |
|
|
| --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); |
| --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4); |
|
|
| --radius-sm: 6px; |
| --radius-md: 10px; |
| --radius-lg: 14px; |
|
|
| color-scheme: dark; |
| } |
|
|
| * { |
| box-sizing: border-box; |
| } |
|
|
| html, |
| body, |
| #root { |
| height: 100%; |
| margin: 0; |
| padding: 0; |
| } |
|
|
| body { |
| background: var(--bg); |
| color: var(--text); |
| font-family: var(--font-sans); |
| font-size: 14px; |
| line-height: 1.5; |
| -webkit-font-smoothing: antialiased; |
| -moz-osx-font-smoothing: grayscale; |
| overflow: hidden; |
| } |
|
|
| button { |
| font-family: inherit; |
| font-size: inherit; |
| color: inherit; |
| background: none; |
| border: none; |
| cursor: pointer; |
| } |
|
|
| input, |
| textarea, |
| select { |
| font-family: inherit; |
| font-size: inherit; |
| color: inherit; |
| } |
|
|
| code, |
| pre, |
| .mono { |
| font-family: var(--font-mono); |
| } |
|
|
| |
| .app-shell { |
| display: flex; |
| flex-direction: column; |
| height: 100vh; |
| min-height: 0; |
| } |
|
|
| .app-main { |
| display: grid; |
| grid-template-columns: minmax(360px, 420px) 1fr; |
| flex: 1; |
| min-height: 0; |
| } |
|
|
| |
| .topbar { |
| display: flex; |
| align-items: center; |
| gap: 12px; |
| padding: 0 16px; |
| height: 52px; |
| border-bottom: 1px solid var(--border); |
| background: var(--bg-elev-1); |
| } |
|
|
| .topbar-brand { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| font-weight: 600; |
| letter-spacing: 0.01em; |
| } |
|
|
| .topbar-logo { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| height: 36px; |
| width: auto; |
| } |
|
|
| .topbar-logo img, |
| .topbar-logo svg { |
| display: block; |
| height: 100%; |
| width: auto; |
| color: var(--text); |
| } |
|
|
| .topbar-title { |
| display: flex; |
| flex-direction: column; |
| line-height: 1.15; |
| } |
|
|
| .topbar-title-main { |
| font-weight: 600; |
| } |
|
|
| .topbar-title-sub { |
| font-size: 11px; |
| color: var(--text-faint); |
| letter-spacing: 0.02em; |
| text-transform: uppercase; |
| } |
|
|
| .topbar-spacer { |
| flex: 1; |
| } |
|
|
| .topbar-model { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| font-size: 12px; |
| color: var(--text-dim); |
| } |
|
|
| .topbar-model select { |
| background: var(--bg-elev-2); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| padding: 4px 8px; |
| font-size: 12px; |
| cursor: pointer; |
| } |
|
|
| .topbar-user { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| padding: 4px 10px 4px 4px; |
| border: 1px solid var(--border); |
| border-radius: 999px; |
| background: var(--bg-elev-2); |
| } |
|
|
| .topbar-user img, |
| .topbar-user .avatar-fallback { |
| width: 24px; |
| height: 24px; |
| border-radius: 50%; |
| object-fit: cover; |
| background: var(--bg-elev-3); |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| font-size: 11px; |
| font-weight: 600; |
| } |
|
|
| .topbar-user-name { |
| font-size: 12px; |
| color: var(--text); |
| max-width: 140px; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
|
|
| .topbar-user-menu { |
| margin-left: 4px; |
| color: var(--text-faint); |
| font-size: 11px; |
| } |
|
|
| .btn { |
| display: inline-flex; |
| align-items: center; |
| gap: 6px; |
| padding: 6px 12px; |
| border-radius: var(--radius-sm); |
| background: var(--bg-elev-2); |
| border: 1px solid var(--border); |
| color: var(--text); |
| font-size: 12px; |
| font-weight: 500; |
| transition: all 0.15s ease; |
| } |
|
|
| .btn:hover { |
| background: var(--bg-elev-3); |
| border-color: var(--border-strong); |
| } |
|
|
| .btn:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| .btn-primary { |
| background: var(--accent); |
| border-color: var(--accent); |
| color: #111; |
| } |
|
|
| .btn-primary:hover { |
| background: var(--accent-strong); |
| border-color: var(--accent-strong); |
| } |
|
|
| .btn-ghost { |
| background: transparent; |
| border: 1px solid transparent; |
| color: var(--text-dim); |
| } |
|
|
| .btn-ghost:hover { |
| background: var(--bg-elev-2); |
| color: var(--text); |
| } |
|
|
| .btn-danger { |
| background: transparent; |
| border: 1px solid transparent; |
| color: var(--danger); |
| } |
|
|
| |
| .signin-screen { |
| display: flex; |
| flex-direction: column; |
| align-items: center; |
| justify-content: center; |
| height: 100%; |
| text-align: center; |
| padding: 40px 24px; |
| } |
|
|
| .signin-hero { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| height: 180px; |
| margin-bottom: 28px; |
| filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.42)); |
| animation: signin-hero-float 6s ease-in-out infinite alternate; |
| } |
|
|
| .signin-hero img, |
| .signin-hero svg { |
| display: block; |
| height: 100%; |
| width: auto; |
| } |
|
|
| @keyframes signin-hero-float { |
| from { |
| transform: translateY(-4px); |
| } |
| to { |
| transform: translateY(4px); |
| } |
| } |
|
|
| .signin-title { |
| font-size: 30px; |
| font-weight: 700; |
| letter-spacing: -0.01em; |
| margin: 0 0 10px; |
| } |
|
|
| .signin-subtitle { |
| font-size: 15px; |
| line-height: 1.55; |
| color: var(--text-dim); |
| max-width: 520px; |
| margin: 0 0 28px; |
| } |
|
|
| .signin-subtitle strong { |
| color: var(--text-color); |
| font-weight: 600; |
| } |
|
|
| .signin-button { |
| display: inline-flex; |
| align-items: center; |
| gap: 10px; |
| padding: 11px 22px 11px 18px; |
| border-radius: 999px; |
| background: transparent; |
| color: #FFD21E; |
| font-weight: 600; |
| border: 1.5px solid #FFD21E; |
| font-size: 14.5px; |
| line-height: 1; |
| cursor: pointer; |
| transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, |
| box-shadow 0.15s ease, border-color 0.15s ease; |
| } |
|
|
| .signin-button:hover:not(:disabled) { |
| background: rgba(255, 210, 30, 0.12); |
| border-color: #FFC400; |
| color: #FFC400; |
| box-shadow: 0 6px 18px rgba(255, 210, 30, 0.15); |
| } |
|
|
| .signin-button:active:not(:disabled) { |
| transform: translateY(1px); |
| } |
|
|
| .signin-button:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| .signin-hint { |
| margin-top: 16px; |
| font-size: 12px; |
| color: var(--text-faint); |
| max-width: 480px; |
| } |
|
|
| .signin-error { |
| margin-top: 20px; |
| padding: 10px 14px; |
| background: rgba(255, 92, 92, 0.1); |
| border: 1px solid rgba(255, 92, 92, 0.4); |
| border-radius: var(--radius-sm); |
| color: var(--danger); |
| font-size: 12px; |
| max-width: 520px; |
| } |
|
|
| |
| .chat-panel { |
| display: flex; |
| flex-direction: column; |
| min-height: 0; |
| border-right: 1px solid var(--border); |
| background: var(--bg-elev-1); |
| } |
|
|
| .chat-messages { |
| flex: 1; |
| overflow-y: auto; |
| padding: 16px; |
| display: flex; |
| flex-direction: column; |
| gap: 14px; |
| } |
|
|
| .chat-empty { |
| padding: 20px; |
| color: var(--text-faint); |
| font-size: 13px; |
| line-height: 1.6; |
| } |
|
|
| .chat-empty-caps { |
| margin-top: 12px; |
| } |
|
|
| .chat-empty-caps-title { |
| display: block; |
| font-size: 11px; |
| font-weight: 600; |
| text-transform: uppercase; |
| letter-spacing: 0.04em; |
| color: var(--text-dim); |
| margin-bottom: 6px; |
| } |
|
|
| .chat-empty-caps-list { |
| margin: 0; |
| padding-left: 18px; |
| display: flex; |
| flex-direction: column; |
| gap: 3px; |
| font-size: 12px; |
| color: var(--text-dim); |
| } |
|
|
| .chat-empty-examples { |
| margin-top: 16px; |
| display: flex; |
| flex-direction: column; |
| gap: 6px; |
| } |
|
|
| .chat-empty-example { |
| text-align: left; |
| padding: 8px 12px; |
| background: var(--bg-elev-2); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text-dim); |
| cursor: pointer; |
| font-size: 12px; |
| transition: all 0.15s ease; |
| } |
|
|
| .chat-empty-example:hover { |
| background: var(--bg-elev-3); |
| color: var(--text); |
| } |
|
|
| .bubble-user { |
| align-self: flex-end; |
| max-width: 85%; |
| padding: 10px 14px; |
| background: var(--user-bubble); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-md); |
| white-space: pre-wrap; |
| word-wrap: break-word; |
| } |
|
|
| .bubble-agent { |
| align-self: stretch; |
| display: flex; |
| flex-direction: column; |
| gap: 8px; |
| color: var(--text); |
| } |
|
|
| .bubble-agent-text { |
| word-wrap: break-word; |
| } |
|
|
| .bubble-agent-text.markdown > :first-child { |
| margin-top: 0; |
| } |
| .bubble-agent-text.markdown > :last-child { |
| margin-bottom: 0; |
| } |
| .bubble-agent-text.markdown p { |
| margin: 0 0 10px; |
| line-height: 1.55; |
| } |
| .bubble-agent-text.markdown h1, |
| .bubble-agent-text.markdown h2, |
| .bubble-agent-text.markdown h3, |
| .bubble-agent-text.markdown h4 { |
| margin: 14px 0 6px; |
| font-weight: 600; |
| line-height: 1.3; |
| } |
| .bubble-agent-text.markdown h1 { |
| font-size: 16px; |
| } |
| .bubble-agent-text.markdown h2 { |
| font-size: 15px; |
| } |
| .bubble-agent-text.markdown h3, |
| .bubble-agent-text.markdown h4 { |
| font-size: 14px; |
| } |
| .bubble-agent-text.markdown ul, |
| .bubble-agent-text.markdown ol { |
| margin: 6px 0 10px; |
| padding-left: 20px; |
| display: flex; |
| flex-direction: column; |
| gap: 3px; |
| } |
| .bubble-agent-text.markdown li { |
| line-height: 1.5; |
| } |
| .bubble-agent-text.markdown a { |
| color: var(--accent, #ffb020); |
| text-decoration: underline; |
| text-decoration-color: rgba(255, 176, 32, 0.4); |
| text-underline-offset: 2px; |
| } |
| .bubble-agent-text.markdown a:hover { |
| text-decoration-color: var(--accent, #ffb020); |
| } |
| .bubble-agent-text.markdown strong { |
| font-weight: 600; |
| color: var(--text, inherit); |
| } |
| .bubble-agent-text.markdown em { |
| font-style: italic; |
| } |
| .bubble-agent-text.markdown code { |
| font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; |
| font-size: 0.88em; |
| background: var(--surface-2, rgba(255, 255, 255, 0.06)); |
| border: 1px solid var(--border, rgba(255, 255, 255, 0.08)); |
| padding: 1px 5px; |
| border-radius: 4px; |
| } |
| .bubble-agent-text.markdown pre { |
| margin: 8px 0 10px; |
| padding: 10px 12px; |
| background: var(--surface-2, rgba(0, 0, 0, 0.35)); |
| border: 1px solid var(--border, rgba(255, 255, 255, 0.08)); |
| border-radius: 8px; |
| overflow-x: auto; |
| font-size: 12.5px; |
| line-height: 1.5; |
| } |
| .bubble-agent-text.markdown pre code { |
| background: transparent; |
| border: 0; |
| padding: 0; |
| font-size: inherit; |
| } |
| .bubble-agent-text.markdown blockquote { |
| margin: 6px 0 10px; |
| padding: 2px 0 2px 10px; |
| border-left: 3px solid var(--border, rgba(255, 255, 255, 0.2)); |
| color: var(--text-faint, #a1a5b7); |
| } |
| .bubble-agent-text.markdown table { |
| width: 100%; |
| border-collapse: collapse; |
| margin: 6px 0 10px; |
| font-size: 13px; |
| } |
| .bubble-agent-text.markdown th, |
| .bubble-agent-text.markdown td { |
| border: 1px solid var(--border, rgba(255, 255, 255, 0.1)); |
| padding: 4px 8px; |
| text-align: left; |
| } |
| .bubble-agent-text.markdown hr { |
| border: 0; |
| border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1)); |
| margin: 10px 0; |
| } |
|
|
| .bubble-tool { |
| align-self: stretch; |
| padding: 6px 10px; |
| background: var(--bg-elev-2); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| font-family: var(--font-mono); |
| font-size: 11px; |
| color: var(--text-dim); |
| } |
|
|
| .bubble-tool.status-done { |
| border-color: rgba(74, 222, 128, 0.3); |
| background: rgba(74, 222, 128, 0.05); |
| } |
|
|
| .bubble-tool.status-error { |
| border-color: rgba(255, 92, 92, 0.4); |
| background: rgba(255, 92, 92, 0.08); |
| color: var(--danger); |
| } |
|
|
| .bubble-tool-header { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| font-weight: 500; |
| } |
|
|
| .bubble-tool-detail { |
| margin-top: 4px; |
| color: var(--text-faint); |
| font-size: 10px; |
| white-space: pre-wrap; |
| word-break: break-all; |
| } |
|
|
| .bubble-tool-detail-inline { |
| color: var(--text-faint); |
| font-variant-numeric: tabular-nums; |
| } |
|
|
| .bubble-tool-icon-preview { |
| margin-top: 8px; |
| } |
|
|
| .bubble-tool-icon-preview img { |
| width: 96px; |
| height: 96px; |
| border-radius: 12px; |
| border: 1px solid var(--border-color, rgba(128, 128, 128, 0.25)); |
| background: |
| repeating-conic-gradient(rgba(128, 128, 128, 0.12) 0% 25%, transparent 0% 50%) |
| 50% / 16px 16px; |
| object-fit: contain; |
| } |
|
|
| .chat-composer { |
| border-top: 1px solid var(--border); |
| padding: 12px 16px; |
| background: var(--bg-elev-1); |
| } |
|
|
| .chat-composer-field { |
| display: flex; |
| align-items: flex-end; |
| gap: 8px; |
| padding: 8px; |
| background: var(--bg-elev-2); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-md); |
| transition: border-color 0.15s ease; |
| } |
|
|
| .chat-composer-field:focus-within { |
| border-color: var(--accent); |
| } |
|
|
| .chat-composer textarea { |
| flex: 1; |
| min-height: 20px; |
| max-height: 160px; |
| resize: none; |
| background: transparent; |
| border: none; |
| outline: none; |
| padding: 4px 6px; |
| line-height: 1.4; |
| color: var(--text); |
| } |
|
|
| .chat-composer textarea::placeholder { |
| color: var(--text-faint); |
| } |
|
|
| .chat-send { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| width: 32px; |
| height: 32px; |
| border-radius: var(--radius-sm); |
| background: var(--accent); |
| color: #111; |
| border: none; |
| font-size: 16px; |
| transition: all 0.15s ease; |
| } |
|
|
| .chat-send:hover:not(:disabled) { |
| background: var(--accent-strong); |
| } |
|
|
| .chat-send:disabled { |
| opacity: 0.4; |
| cursor: not-allowed; |
| } |
|
|
| .chat-composer-toolbar { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| gap: 10px; |
| margin-top: 8px; |
| } |
|
|
| .chat-status { |
| font-size: 11px; |
| color: var(--text-faint); |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| min-width: 0; |
| flex: 1; |
| overflow: hidden; |
| } |
|
|
| .chat-thinking { |
| display: inline-flex; |
| align-self: flex-start; |
| align-items: baseline; |
| gap: 6px; |
| padding: 2px 0; |
| color: var(--text-faint); |
| font-size: 11px; |
| font-weight: 400; |
| line-height: 1.3; |
| letter-spacing: 0.01em; |
| max-width: 100%; |
| min-width: 0; |
| opacity: 0.85; |
| } |
|
|
| .chat-thinking-label { |
| color: var(--text-faint); |
| } |
|
|
| .chat-thinking-detail { |
| color: var(--text-faint); |
| font-size: 10.5px; |
| opacity: 0.8; |
| } |
|
|
| .chat-thinking-dots { |
| display: inline-flex; |
| align-items: center; |
| gap: 3px; |
| transform: translateY(-1px); |
| } |
|
|
| .chat-thinking-dots > span { |
| width: 3px; |
| height: 3px; |
| border-radius: 50%; |
| background: var(--text-faint); |
| opacity: 0.35; |
| animation: chat-thinking-bounce 1.2s ease-in-out infinite; |
| } |
|
|
| .chat-thinking-dots > span:nth-child(2) { |
| animation-delay: 0.15s; |
| } |
|
|
| .chat-thinking-dots > span:nth-child(3) { |
| animation-delay: 0.3s; |
| } |
|
|
| @keyframes chat-thinking-bounce { |
| 0%, 80%, 100% { |
| opacity: 0.2; |
| transform: translateY(0); |
| } |
| 40% { |
| opacity: 0.7; |
| transform: translateY(-2px); |
| } |
| } |
|
|
| |
| .modal-overlay { |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.55); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| z-index: 200; |
| padding: 24px; |
| backdrop-filter: blur(3px); |
| } |
|
|
| .modal { |
| width: 100%; |
| max-width: 640px; |
| max-height: calc(100vh - 48px); |
| display: flex; |
| flex-direction: column; |
| background: var(--bg-elev-1); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-md); |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); |
| overflow: hidden; |
| } |
|
|
| .modal-header { |
| display: flex; |
| align-items: flex-start; |
| gap: 16px; |
| padding: 18px 20px 12px; |
| border-bottom: 1px solid var(--border); |
| } |
|
|
| .modal-header h2 { |
| margin: 0 0 4px; |
| font-size: 16px; |
| font-weight: 600; |
| color: var(--text); |
| } |
|
|
| .modal-sub { |
| margin: 0; |
| font-size: 12px; |
| line-height: 1.5; |
| color: var(--text-faint); |
| } |
|
|
| .modal-body { |
| flex: 1; |
| overflow: auto; |
| padding: 16px 20px; |
| display: flex; |
| flex-direction: column; |
| gap: 10px; |
| } |
|
|
| .modal-footer { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| padding: 12px 20px; |
| border-top: 1px solid var(--border); |
| background: var(--bg); |
| } |
|
|
| .modal-footer .spacer { |
| flex: 1; |
| } |
|
|
| .saved-pill { |
| font-size: 11px; |
| padding: 2px 8px; |
| border-radius: 999px; |
| background: rgba(60, 180, 120, 0.15); |
| color: #4cd18d; |
| } |
|
|
| .knowledge-textarea { |
| width: 100%; |
| min-height: 260px; |
| resize: vertical; |
| padding: 10px 12px; |
| background: var(--bg); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text); |
| font-family: var(--font-mono, monospace); |
| font-size: 12.5px; |
| line-height: 1.55; |
| outline: none; |
| } |
|
|
| .knowledge-textarea:focus { |
| border-color: var(--accent); |
| } |
|
|
| .knowledge-meta { |
| display: flex; |
| justify-content: space-between; |
| gap: 10px; |
| font-size: 11px; |
| color: var(--text-dim); |
| } |
|
|
| .knowledge-meta .text-faint { |
| color: var(--text-faint); |
| } |
|
|
| |
| .right-pane { |
| display: flex; |
| flex-direction: column; |
| min-height: 0; |
| background: var(--bg); |
| } |
|
|
| .tab-bar { |
| display: flex; |
| align-items: center; |
| gap: 4px; |
| padding: 0 8px; |
| height: 40px; |
| border-bottom: 1px solid var(--border); |
| background: var(--bg-elev-1); |
| } |
|
|
| .tab { |
| padding: 6px 14px; |
| color: var(--text-dim); |
| font-size: 12px; |
| font-weight: 500; |
| border-radius: var(--radius-sm); |
| border: 1px solid transparent; |
| cursor: pointer; |
| } |
|
|
| .tab.active { |
| color: var(--text); |
| background: var(--bg-elev-2); |
| border-color: var(--border); |
| } |
|
|
| .tab-spacer { |
| flex: 1; |
| } |
|
|
| .tab-actions { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| } |
|
|
| .pane-content { |
| flex: 1; |
| min-height: 0; |
| display: flex; |
| flex-direction: column; |
| } |
|
|
| .pane-content.hidden { |
| display: none; |
| } |
|
|
| |
| .code-layout { |
| display: grid; |
| grid-template-columns: 220px 1fr; |
| height: 100%; |
| min-height: 0; |
| } |
|
|
| .file-tree { |
| border-right: 1px solid var(--border); |
| background: var(--bg-elev-1); |
| overflow-y: auto; |
| padding: 8px 0; |
| } |
|
|
| .file-tree-empty { |
| padding: 16px; |
| color: var(--text-faint); |
| font-size: 12px; |
| } |
|
|
| .file-tree-item { |
| display: flex; |
| align-items: center; |
| gap: 6px; |
| padding: 5px 12px; |
| font-family: var(--font-mono); |
| font-size: 12px; |
| color: var(--text-dim); |
| cursor: pointer; |
| border-left: 2px solid transparent; |
| } |
|
|
| .file-tree-item:hover { |
| background: var(--bg-elev-2); |
| color: var(--text); |
| } |
|
|
| .file-tree-item.active { |
| background: var(--bg-elev-2); |
| color: var(--text); |
| border-left-color: var(--accent); |
| } |
|
|
| .file-tree-item.streaming { |
| color: var(--text); |
| } |
|
|
| .file-tree-item.streaming .file-tree-size { |
| color: var(--accent); |
| } |
|
|
| .file-tree-path { |
| display: inline-flex; |
| align-items: center; |
| gap: 6px; |
| min-width: 0; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
|
|
| .file-tree-spinner { |
| width: 8px; |
| height: 8px; |
| border-radius: 50%; |
| background: var(--accent); |
| animation: file-tree-pulse 1s ease-in-out infinite; |
| flex-shrink: 0; |
| } |
|
|
| @keyframes file-tree-pulse { |
| 0%, 100% { opacity: 0.35; transform: scale(0.8); } |
| 50% { opacity: 1; transform: scale(1.15); } |
| } |
|
|
| .file-tree-size { |
| margin-left: auto; |
| color: var(--text-faint); |
| font-size: 10px; |
| } |
|
|
| .tab-streaming { |
| position: relative; |
| } |
|
|
| .tab-streaming-dot { |
| display: inline-block; |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| background: var(--accent); |
| margin-left: 6px; |
| vertical-align: middle; |
| animation: file-tree-pulse 1s ease-in-out infinite; |
| } |
|
|
| .editor-area { |
| min-height: 0; |
| display: flex; |
| flex-direction: column; |
| } |
|
|
| .editor-placeholder { |
| margin: auto; |
| color: var(--text-faint); |
| font-size: 13px; |
| text-align: center; |
| padding: 40px; |
| } |
|
|
| |
| .preview-pane { |
| display: flex; |
| flex-direction: column; |
| min-height: 0; |
| } |
|
|
| .preview-pane-frame { |
| flex: 1; |
| min-height: 0; |
| display: flex; |
| position: relative; |
| } |
|
|
| |
| .preview-building { |
| position: absolute; |
| top: 10px; |
| right: 10px; |
| pointer-events: none; |
| display: inline-flex; |
| align-items: center; |
| gap: 6px; |
| padding: 3px 9px 3px 7px; |
| font-size: 10.5px; |
| font-weight: 500; |
| letter-spacing: 0.02em; |
| color: var(--text-dim); |
| background: rgba(20, 20, 22, 0.65); |
| border: 1px solid var(--border); |
| border-radius: 999px; |
| backdrop-filter: blur(4px); |
| -webkit-backdrop-filter: blur(4px); |
| z-index: 5; |
| } |
|
|
| .preview-building-dot { |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| background: var(--accent); |
| transform-origin: center; |
| animation: preview-dot-pulse 0.9s ease-in-out infinite alternate; |
| flex-shrink: 0; |
| } |
|
|
| .preview-building-label { |
| display: inline-flex; |
| align-items: baseline; |
| gap: 5px; |
| max-width: 320px; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| } |
|
|
| .preview-building-detail { |
| color: var(--text-faint); |
| font-size: 10px; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| direction: rtl; |
| max-width: 240px; |
| } |
|
|
| @keyframes preview-dot-pulse { |
| from { |
| opacity: 0.35; |
| } |
| to { |
| opacity: 1; |
| } |
| } |
|
|
| .preview-frame { |
| flex: 1; |
| min-height: 0; |
| background: white; |
| border: none; |
| } |
|
|
| .preview-empty { |
| margin: auto; |
| color: var(--text-faint); |
| font-size: 13px; |
| text-align: center; |
| padding: 40px; |
| } |
|
|
| |
| .dialog-backdrop { |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.6); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| z-index: 100; |
| padding: 24px; |
| } |
|
|
| .dialog { |
| width: 100%; |
| max-width: 480px; |
| background: var(--bg-elev-1); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-lg); |
| box-shadow: var(--shadow-md); |
| overflow: hidden; |
| } |
|
|
| .dialog-header { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| padding: 14px 18px; |
| border-bottom: 1px solid var(--border); |
| font-weight: 600; |
| } |
|
|
| .dialog-body { |
| padding: 18px; |
| display: flex; |
| flex-direction: column; |
| gap: 14px; |
| } |
|
|
| .dialog-footer { |
| display: flex; |
| justify-content: flex-end; |
| gap: 8px; |
| padding: 14px 18px; |
| border-top: 1px solid var(--border); |
| background: var(--bg-elev-2); |
| } |
|
|
| .field { |
| display: flex; |
| flex-direction: column; |
| gap: 6px; |
| } |
|
|
| .field label { |
| font-size: 12px; |
| color: var(--text-dim); |
| font-weight: 500; |
| } |
|
|
| .field input[type="text"], |
| .field input[type="password"], |
| .field textarea { |
| padding: 8px 10px; |
| background: var(--bg-elev-2); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| color: var(--text); |
| } |
|
|
| .field input:focus, |
| .field textarea:focus { |
| outline: none; |
| border-color: var(--accent); |
| } |
|
|
| .field-hint { |
| font-size: 11px; |
| color: var(--text-faint); |
| } |
|
|
| .field-row { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| } |
|
|
| .publish-log { |
| display: flex; |
| flex-direction: column; |
| gap: 6px; |
| padding: 12px; |
| background: var(--bg-elev-2); |
| border: 1px solid var(--border); |
| border-radius: var(--radius-sm); |
| font-family: var(--font-mono); |
| font-size: 11px; |
| max-height: 180px; |
| overflow-y: auto; |
| } |
|
|
| .publish-log-step { |
| color: var(--text-dim); |
| } |
|
|
| .publish-log-step.done { |
| color: var(--success); |
| } |
|
|
| .publish-log-step.error { |
| color: var(--danger); |
| } |
|
|
| .publish-success { |
| padding: 10px 12px; |
| background: rgba(74, 222, 128, 0.08); |
| border: 1px solid rgba(74, 222, 128, 0.3); |
| border-radius: var(--radius-sm); |
| color: var(--success); |
| font-size: 12px; |
| display: flex; |
| flex-direction: column; |
| gap: 4px; |
| } |
|
|
| .publish-success a { |
| color: inherit; |
| font-weight: 600; |
| } |
|
|
| .publish-error { |
| padding: 10px 12px; |
| background: rgba(255, 92, 92, 0.1); |
| border: 1px solid rgba(255, 92, 92, 0.3); |
| border-radius: var(--radius-sm); |
| color: var(--danger); |
| font-size: 12px; |
| } |
|
|
| |
| .dot { |
| display: inline-block; |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| background: currentColor; |
| } |
|
|
| .spinner { |
| display: inline-block; |
| width: 12px; |
| height: 12px; |
| border: 2px solid var(--text-faint); |
| border-top-color: var(--accent); |
| border-radius: 50%; |
| animation: spin 0.8s linear infinite; |
| } |
|
|
| .tool-spinner { |
| display: inline-block; |
| width: 10px; |
| height: 10px; |
| border: 1.5px solid var(--border); |
| border-top-color: var(--accent); |
| border-radius: 50%; |
| animation: spin 0.8s linear infinite; |
| flex: 0 0 auto; |
| } |
|
|
| .bubble-tool.status-pending { |
| border-color: rgba(255, 179, 71, 0.3); |
| background: rgba(255, 179, 71, 0.04); |
| } |
|
|
| @keyframes spin { |
| to { |
| transform: rotate(360deg); |
| } |
| } |
|
|
| .autofix-banner { |
| display: inline-flex; |
| align-self: flex-start; |
| align-items: center; |
| gap: 8px; |
| padding: 6px 10px; |
| border: 1px solid var(--border); |
| background: var(--bg-elev-2); |
| border-radius: var(--radius-sm); |
| color: var(--text-dim); |
| font-size: 12px; |
| margin-top: 4px; |
| } |
|
|
| .autofix-dot { |
| width: 8px; |
| height: 8px; |
| border-radius: 50%; |
| background: var(--accent); |
| animation: autofix-pulse 1.2s ease-in-out infinite; |
| } |
|
|
| @keyframes autofix-pulse { |
| 0%, 100% { opacity: 0.4; transform: scale(0.9); } |
| 50% { opacity: 1; transform: scale(1.1); } |
| } |
|
|
| .autofix-note { |
| align-self: flex-start; |
| padding: 6px 10px; |
| border: 1px dashed var(--border-strong); |
| background: transparent; |
| border-radius: var(--radius-sm); |
| color: var(--text-faint); |
| font-size: 12px; |
| margin-top: 4px; |
| } |
|
|
| .autofix-divider { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| margin: 6px 2px 2px; |
| color: var(--text-faint); |
| font-size: 11px; |
| text-transform: uppercase; |
| letter-spacing: 0.04em; |
| opacity: 0.85; |
| } |
|
|
| .autofix-divider-line { |
| flex: 1; |
| height: 1px; |
| background: var(--border-subtle, var(--border-strong)); |
| opacity: 0.6; |
| } |
|
|
| .autofix-divider-label { |
| display: inline-flex; |
| align-items: baseline; |
| gap: 6px; |
| white-space: nowrap; |
| } |
|
|
| .autofix-divider-label .mono { |
| font-variant-numeric: tabular-nums; |
| text-transform: none; |
| letter-spacing: 0; |
| opacity: 0.9; |
| } |
|
|
| .autofix-divider-hint { |
| text-transform: none; |
| letter-spacing: 0; |
| font-weight: 400; |
| opacity: 0.7; |
| } |
|
|
| .diagnostics-panel { |
| border-top: 1px solid var(--border); |
| background: var(--bg-elev-1); |
| display: flex; |
| flex-direction: column; |
| max-height: 240px; |
| font-size: 12px; |
| } |
|
|
| .diagnostics-header { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| padding: 6px 12px; |
| cursor: pointer; |
| user-select: none; |
| color: var(--text-dim); |
| font-weight: 500; |
| } |
|
|
| .diagnostics-header:hover { |
| color: var(--text); |
| } |
|
|
| .diagnostics-header-left { |
| display: inline-flex; |
| align-items: center; |
| gap: 8px; |
| } |
|
|
| .diagnostics-count { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| min-width: 18px; |
| height: 18px; |
| padding: 0 6px; |
| border-radius: 9px; |
| background: var(--danger); |
| color: white; |
| font-size: 11px; |
| font-weight: 600; |
| } |
|
|
| .diagnostics-count.zero { |
| background: var(--bg-elev-3); |
| color: var(--text-faint); |
| } |
|
|
| .diagnostics-clear { |
| background: transparent; |
| color: var(--text-faint); |
| border: 1px solid var(--border); |
| padding: 2px 8px; |
| border-radius: var(--radius-sm); |
| cursor: pointer; |
| font-size: 11px; |
| } |
|
|
| .diagnostics-clear:hover { |
| color: var(--text); |
| border-color: var(--border-strong); |
| } |
|
|
| .diagnostics-list { |
| overflow-y: auto; |
| padding: 4px 12px 10px; |
| display: flex; |
| flex-direction: column; |
| gap: 6px; |
| } |
|
|
| .diagnostics-empty { |
| color: var(--text-faint); |
| padding: 10px 12px 14px; |
| font-style: italic; |
| } |
|
|
| .diagnostic-row { |
| display: grid; |
| grid-template-columns: auto 1fr auto; |
| gap: 8px; |
| align-items: start; |
| padding: 6px 8px; |
| border: 1px solid var(--border); |
| background: var(--bg-elev-2); |
| border-radius: var(--radius-sm); |
| font-family: var(--font-mono); |
| font-size: 11.5px; |
| } |
|
|
| .diagnostic-row.kind-compile-error { border-left: 3px solid var(--danger); } |
| .diagnostic-row.kind-error { border-left: 3px solid var(--danger); } |
| .diagnostic-row.kind-unhandledrejection { border-left: 3px solid var(--danger); } |
| .diagnostic-row.kind-console\.error { border-left: 3px solid var(--accent); } |
|
|
| .diagnostic-kind { |
| color: var(--text-faint); |
| text-transform: uppercase; |
| letter-spacing: 0.5px; |
| font-size: 10px; |
| padding-top: 2px; |
| } |
|
|
| .diagnostic-message { |
| color: var(--text); |
| white-space: pre-wrap; |
| word-break: break-word; |
| } |
|
|
| .diagnostic-loc { |
| color: var(--text-faint); |
| font-size: 10.5px; |
| padding-top: 2px; |
| white-space: nowrap; |
| } |
|
|
| .diagnostic-count { |
| font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace); |
| font-size: 10.5px; |
| padding: 1px 6px; |
| border-radius: 999px; |
| background: var(--bg-elev-2, rgba(0, 0, 0, 0.06)); |
| color: var(--text-faint); |
| align-self: center; |
| white-space: nowrap; |
| } |
|
|