pymite6941's picture
Initial commit
57086e9
Raw
History Blame Contribute Delete
21.1 kB
/* ── App shell ──────────────────────────────────────────── */
.app {
height: 100svh;
display: flex;
flex-direction: column;
background: var(--bg);
overflow: hidden;
}
/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24px;
height: 50px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
background: rgba(11, 12, 16, 0.95);
backdrop-filter: blur(8px);
position: relative;
z-index: 10;
}
.topbar::after {
content: '';
position: absolute;
bottom: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
opacity: 0.6;
}
.topbar-brand {
display: flex;
align-items: center;
gap: 9px;
font-weight: 700;
font-size: 15px;
letter-spacing: -0.3px;
background: linear-gradient(135deg, #e2c5ff 0%, #a855f7 50%, #7c3aed 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.topbar-right {
display: flex;
align-items: center;
gap: 14px;
}
.topbar-tag {
font-size: 11px;
color: #3d405a;
letter-spacing: 1.2px;
text-transform: uppercase;
font-weight: 500;
}
.toggle-log-btn {
display: flex;
align-items: center;
gap: 6px;
background: #0f1018;
border: 1px solid #1e2030;
border-radius: 7px;
color: #3d405a;
font-size: 12px;
font-weight: 500;
font-family: var(--sans);
padding: 5px 12px;
cursor: pointer;
transition: all 0.15s;
letter-spacing: 0.1px;
white-space: nowrap;
}
.toggle-log-btn:hover { color: #94a3b8; border-color: #2e3148; background: #13141a; }
.toggle-log-btn--active {
color: #6366f1;
border-color: rgba(99, 102, 241, 0.3);
background: rgba(99, 102, 241, 0.06);
}
.toggle-log-count {
background: rgba(99, 102, 241, 0.15);
color: #818cf8;
border-radius: 10px;
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
min-width: 16px;
text-align: center;
}
/* ── Workspace ──────────────────────────────────────────── */
.workspace {
flex: 1;
display: grid;
grid-template-columns: 420px 1fr;
overflow: hidden;
min-height: 0;
}
@media (max-width: 860px) {
.workspace { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
body { overflow: auto; }
#root { height: auto; overflow: visible; }
.app { height: auto; }
}
/* ── Left panel ─────────────────────────────────────────── */
.input-panel {
display: flex;
flex-direction: column;
padding: 28px 24px;
border-right: 1px solid var(--border);
overflow-y: auto;
gap: 0;
scrollbar-width: thin;
scrollbar-color: #2a2d38 transparent;
background: radial-gradient(ellipse 80% 50% at 10% 0%, rgba(120, 60, 200, 0.06) 0%, transparent 70%);
}
.panel-title {
font-size: 18px !important;
font-weight: 600;
color: #e2e8f0;
margin: 0 0 8px;
letter-spacing: -0.4px;
line-height: 130%;
}
.panel-sub {
font-size: 13px;
color: #4a4f6a;
line-height: 155%;
margin: 0 0 24px;
}
/* ── Fields ─────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field-label {
display: block;
font-size: 11px;
font-weight: 600;
color: #6366f1;
margin-bottom: 7px;
letter-spacing: 1px;
text-transform: uppercase;
}
.context-area {
width: 100%;
box-sizing: border-box;
background: #0f1018;
border: 1px solid var(--border);
border-radius: 10px;
color: #c9d1e0;
font-family: var(--sans);
font-size: 13.5px;
line-height: 160%;
padding: 12px 14px;
resize: vertical;
transition: border-color 0.2s, box-shadow 0.2s;
outline: none;
}
.context-area::placeholder { color: #2e3148; }
.context-area:focus { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08); }
.context-area:disabled { opacity: 0.4; cursor: not-allowed; }
/* ── Depth selector ─────────────────────────────────────── */
.depth-row {
display: flex;
gap: 8px;
}
.depth-btn {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
padding: 10px 8px;
background: #0f1018;
border: 1px solid #1e2030;
border-radius: 8px;
cursor: pointer;
transition: all 0.15s;
font-family: var(--sans);
}
.depth-btn:hover { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.04); }
.depth-btn--active {
border-color: rgba(99,102,241,0.55);
background: rgba(99,102,241,0.08);
}
.depth-label {
font-size: 12px;
font-weight: 600;
color: #94a3b8;
letter-spacing: 0.2px;
}
.depth-btn--active .depth-label { color: #a5b4fc; }
.depth-meta {
font-size: 10px;
color: #3d405a;
font-family: var(--mono);
}
.depth-btn--active .depth-meta { color: #4a4f6a; }
/* ── Action row ─────────────────────────────────────────── */
.action-row {
display: flex;
gap: 10px;
align-items: center;
margin-top: 6px;
padding-top: 4px;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 13.5px;
font-weight: 600;
padding: 9px 22px;
border-radius: 8px;
border: none;
cursor: pointer;
transition: all 0.15s;
font-family: var(--sans);
letter-spacing: -0.1px;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: #fff;
box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 2px 12px rgba(99,102,241,0.3);
}
.btn-primary:not(:disabled):hover {
background: linear-gradient(135deg, #7c7ff5, #9d73f8);
box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 4px 20px rgba(99,102,241,0.45);
transform: translateY(-1px);
}
.btn-ghost {
background: #0f1018;
color: #6b7280;
border: 1px solid #1e2030;
padding: 8px 16px;
font-weight: 500;
}
.btn-ghost:hover { border-color: #3d405a; color: #94a3b8; background: #13141a; }
.btn-spinner {
display: inline-block;
width: 13px;
height: 13px;
border: 2px solid rgba(255,255,255,0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ── Right panel ────────────────────────────────────────── */
.log-panel {
display: flex;
flex-direction: column;
background: #07080c;
overflow: hidden;
min-height: 0;
position: relative;
}
.log-panel::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.3) 30%, rgba(168,85,247,0.3) 70%, transparent 100%);
z-index: 1;
}
/* ── Pipeline ───────────────────────────────────────────── */
.pipeline {
display: flex;
align-items: center;
justify-content: center;
padding: 10px 16px;
border-bottom: 1px solid #0e0f14;
background: #07080c;
gap: 0;
flex-shrink: 0;
overflow-x: auto;
scrollbar-width: none;
}
.pipeline::-webkit-scrollbar { display: none; }
.pipeline-node {
--nc: #3d405a;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 6px 14px;
border-radius: 8px;
border: 1px solid #1a1c28;
background: #0a0b10;
min-width: 80px;
transition: border-color 0.4s, background 0.4s, box-shadow 0.4s, opacity 0.3s;
}
.pipeline-node--idle { opacity: 0.3; }
.pipeline-node--active {
border-color: var(--nc);
background: color-mix(in srgb, var(--nc) 8%, #0a0b10);
animation: nodeGlow 1.6s ease-in-out infinite;
}
.pipeline-node--done {
border-color: color-mix(in srgb, var(--nc) 50%, transparent);
background: color-mix(in srgb, var(--nc) 5%, #0a0b10);
}
@keyframes nodeGlow {
0%, 100% { box-shadow: 0 0 8px color-mix(in srgb, var(--nc) 25%, transparent); }
50% { box-shadow: 0 0 20px color-mix(in srgb, var(--nc) 50%, transparent), 0 0 0 1px color-mix(in srgb, var(--nc) 30%, transparent); }
}
.pipeline-node-icon { font-size: 15px; color: #2e3148; line-height: 1; transition: color 0.3s; }
.pipeline-node--active .pipeline-node-icon { color: var(--nc); }
.pipeline-node--done .pipeline-node-icon { color: #34d399; }
.pipeline-node-label { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #2e3148; transition: color 0.3s; white-space: nowrap; }
.pipeline-node--active .pipeline-node-label { color: color-mix(in srgb, var(--nc) 80%, #fff); }
.pipeline-node--done .pipeline-node-label { color: #4a4f6a; }
.pipeline-conn { display: flex; align-items: center; padding: 0 4px; color: #1a1c28; transition: color 0.4s; flex-shrink: 0; }
.pipeline-conn--lit { color: #2e3148; }
.pipeline-conn-line { width: 20px; height: 1px; background: currentColor; }
.pipeline-conn-arrow { font-size: 14px; line-height: 1; margin-left: -3px; }
/* ── Tab bar ────────────────────────────────────────────── */
.tab-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 14px;
border-bottom: 1px solid #111218;
flex-shrink: 0;
background: #09090e;
height: 44px;
}
.tab-bar-left { display: flex; align-items: center; gap: 6px; height: 100%; }
.log-dots { display: flex; gap: 5px; margin-right: 6px; }
.log-dot { width: 10px; height: 10px; border-radius: 50%; }
.log-dot-r { background: #3a1f1f; }
.log-dot-y { background: #2e2a1a; }
.log-dot-g { background: #192a1e; }
.tab-btn {
display: flex;
align-items: center;
gap: 6px;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: #3d405a;
font-size: 12px;
font-weight: 500;
font-family: var(--sans);
padding: 0 8px;
height: 100%;
cursor: pointer;
transition: color 0.15s, border-color 0.15s;
letter-spacing: 0.2px;
}
.tab-btn:hover:not(:disabled) { color: #6b7280; }
.tab-btn:disabled { opacity: 0.3; cursor: default; }
.tab-btn--active { color: #a5b4fc; border-bottom-color: #6366f1; }
.tab-btn--has-result:not(.tab-btn--active) { color: #34d399; }
.tab-count {
background: #1e2030;
color: #4a4f6a;
border-radius: 10px;
font-size: 10px;
font-weight: 600;
padding: 1px 5px;
font-family: var(--mono);
}
.tab-count--result { background: rgba(52,211,153,0.12); color: #34d399; }
.tab-count--sources { background: rgba(168,85,247,0.12); color: #a855f7; }
.log-badge {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: 20px;
letter-spacing: 0.3px;
}
.log-badge--running { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.log-badge--done { background: rgba(99,102,241,0.1); color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }
.log-badge--error { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.65); } }
/* ── Log terminal ───────────────────────────────────────── */
.log-terminal {
flex: 1;
overflow-y: auto;
padding: 10px 0 20px;
font-family: var(--mono);
font-size: 12px;
line-height: 1.65;
scrollbar-width: thin;
scrollbar-color: #1a1c28 transparent;
min-height: 0;
}
.log-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
min-height: 200px;
gap: 10px;
color: #1e2030;
font-size: 12px;
font-family: var(--mono);
text-align: center;
padding: 20px;
}
.log-empty-icon { font-size: 28px; opacity: 0.3; }
.log-empty--active { color: #3d405a; }
.log-empty--active::after { content: 'β–‹'; animation: blink 1s step-end infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }
.log-line {
display: flex;
align-items: stretch;
gap: 0;
border-left: 2px solid transparent;
transition: background 0.1s;
}
.log-line:hover { background: rgba(255,255,255,0.018); }
.log-error { border-left-color: rgba(248,113,113,0.5); }
.log-warn { border-left-color: rgba(251,191,36,0.4); }
.log-agent { border-left-color: rgba(167,139,250,0.5); }
.log-success{ border-left-color: rgba(52,211,153,0.5); }
.log-step { border-left-color: rgba(96,165,250,0.4); }
.log-gutter { flex-shrink: 0; width: 46px; padding: 2px 10px 2px 14px; color: #1e2030; user-select: none; font-size: 10.5px; text-align: right; line-height: 1.65; }
.log-text { flex: 1; color: #5a6070; padding: 2px 20px 2px 2px; word-break: break-word; white-space: pre-wrap; line-height: 1.65; }
.log-error .log-text { color: #f87171; }
.log-warn .log-text { color: #fbbf24; }
.log-agent .log-text { color: #a78bfa; }
.log-success .log-text { color: #34d399; }
.log-step .log-text { color: #60a5fa; }
.log-line:not(.log-error):not(.log-warn):not(.log-agent):not(.log-success):not(.log-step) .log-text { color: #7c8494; }
.log-step-card {
--nc: #6366f1;
display: flex;
align-items: center;
gap: 8px;
padding: 5px 14px;
margin: 8px 0 2px;
border-left: 3px solid var(--nc);
background: color-mix(in srgb, var(--nc) 6%, transparent);
}
.log-step-card-icon { font-size: 13px; color: var(--nc); }
.log-step-card-name { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; color: var(--nc); font-family: var(--sans); }
/* ── Footer ─────────────────────────────────────────────── */
.log-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 18px;
border-top: 1px solid #111218;
flex-shrink: 0;
font-size: 10.5px;
color: #2a2d3e;
font-family: var(--mono);
background: #09090e;
}
.log-copy {
background: none;
border: 1px solid #1e2030;
border-radius: 5px;
color: #3d405a;
font-size: 10.5px;
padding: 3px 10px;
cursor: pointer;
font-family: var(--mono);
transition: all 0.15s;
}
.log-copy:hover { color: #a5b4fc; border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.05); }
/* ── Result panel ───────────────────────────────────────── */
.result-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.result-body { flex: 1; overflow-y: auto; padding: 16px 18px; scrollbar-width: thin; scrollbar-color: #1a1c28 transparent; min-height: 0; }
.result-type-bar {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 18px;
border-bottom: 1px solid #111218;
background: #09090e;
flex-shrink: 0;
}
.result-type-badge {
font-size: 10px; font-weight: 700; font-family: var(--mono); letter-spacing: 1.5px;
color: #34d399; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2);
border-radius: 4px; padding: 2px 7px;
}
.confidence-badge { font-size: 10px; font-weight: 700; font-family: var(--mono); letter-spacing: 1px; border-radius: 4px; padding: 2px 8px; border: 1px solid; }
.confidence-high { color: #34d399; background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.25); }
.confidence-medium { color: #fbbf24; background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.confidence-low { color: #f87171; background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.25); }
.confidence-insufficient { color: #6b7280; background: rgba(107,114,128,0.08); border-color: rgba(107,114,128,0.25); }
/* ── Report markdown ────────────────────────────────────── */
.result-markdown {
font-size: 13px;
line-height: 1.8;
color: #94a3b8;
font-family: var(--sans);
}
.result-markdown h1, .result-markdown h2, .result-markdown h3 { color: #e2e8f0; font-weight: 600; margin: 1em 0 0.4em; }
.result-markdown h1 { font-size: 16px; }
.result-markdown h2 { font-size: 14px; border-bottom: 1px solid #1a1c28; padding-bottom: 4px; }
.result-markdown h3 { font-size: 13px; color: #6366f1; }
.result-markdown p { margin: 0 0 0.7em; }
.result-markdown ul, .result-markdown ol { padding-left: 18px; margin: 0 0 0.7em; }
.result-markdown li { margin-bottom: 3px; }
.result-markdown code { font-family: var(--mono); font-size: 11.5px; background: #111218; padding: 1px 5px; border-radius: 3px; color: #a5f3b4; }
.result-markdown pre { background: #0d0e13; border: 1px solid #1e2030; border-radius: 6px; padding: 10px 12px; overflow-x: auto; }
.result-markdown pre code { background: none; padding: 0; }
.result-markdown strong { color: #c9d1e0; }
.result-markdown a { color: #818cf8; text-decoration: none; }
.result-markdown a:hover { text-decoration: underline; }
.result-markdown blockquote { border-left: 3px solid #1e2030; margin: 0; padding-left: 12px; color: #4a4f6a; }
/* ── Sources panel ──────────────────────────────────────── */
.sources-panel {
flex: 1;
overflow-y: auto;
padding: 14px 18px;
display: flex;
flex-direction: column;
gap: 8px;
scrollbar-width: thin;
scrollbar-color: #1a1c28 transparent;
min-height: 0;
}
.source-card {
display: flex;
flex-direction: column;
gap: 6px;
padding: 12px 14px;
background: #09090e;
border: 1px solid #1a1c28;
border-radius: 8px;
transition: border-color 0.2s;
}
.source-card:hover { border-color: rgba(99,102,241,0.25); }
.source-card-top { display: flex; align-items: center; gap: 10px; }
.source-score-pill {
flex-shrink: 0;
font-size: 10px;
font-weight: 700;
font-family: var(--mono);
padding: 2px 7px;
border-radius: 20px;
border: 1px solid;
}
.source-title { flex: 1; font-size: 12.5px; font-weight: 500; color: #c9d1e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-conf-badge { font-size: 9.5px; font-weight: 700; font-family: var(--mono); letter-spacing: 0.8px; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; flex-shrink: 0; }
.conf-high { color: #34d399; background: rgba(52,211,153,0.1); }
.conf-low { color: #fbbf24; background: rgba(251,191,36,0.08); }
.source-bar-track { height: 3px; background: #1a1c28; border-radius: 2px; overflow: hidden; }
.source-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.source-url { font-size: 10.5px; color: #3d405a; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-url a { color: #4a4f6a; text-decoration: none; }
.source-url a:hover { color: #818cf8; }
.sources-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 10px; color: #2e3148; font-size: 12px; font-family: var(--mono); }
/* ── Download button ────────────────────────────────────── */
.btn-download {
display: inline-flex;
align-items: center;
gap: 6px;
background: none;
border: 1px solid #1e2030;
border-radius: 5px;
color: #4a4f6a;
font-size: 11px;
font-weight: 500;
font-family: var(--mono);
padding: 3px 10px;
cursor: pointer;
transition: all 0.15s;
}
.btn-download:hover { color: #a5b4fc; border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.06); }
/* ── Examples ───────────────────────────────────────────── */
.examples { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.examples-label { font-size: 10px; font-weight: 600; color: #2e3148; letter-spacing: 1px; text-transform: uppercase; font-family: var(--mono); margin-bottom: 2px; }
.example-btn {
background: #09090e;
border: 1px solid #131520;
border-radius: 7px;
color: #4a4f6a;
font-size: 11.5px;
font-family: var(--sans);
padding: 7px 11px;
cursor: pointer;
text-align: left;
transition: all 0.15s;
line-height: 1.4;
}
.example-btn:hover { color: #94a3b8; border-color: rgba(99,102,241,0.2); background: rgba(99,102,241,0.04); }