pymite6941's picture
feat: add GitHub Models support, remove Groq dependency, add backend .gitignore
b3563c0
Raw
History Blame Contribute Delete
39.2 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;
&: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);
&:hover {
color: #818cf8;
border-color: rgba(99, 102, 241, 0.5);
background: rgba(99, 102, 241, 0.1);
}
}
.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: 400px 1fr;
overflow: hidden;
min-height: 0;
}
.workspace--log-hidden {
grid-template-columns: 1fr;
}
.workspace--log-hidden .log-panel {
display: none;
}
@media (max-width: 860px) {
.workspace {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
overflow: auto;
}
.workspace--log-hidden {
grid-template-rows: auto;
}
body { overflow: auto; }
#root { height: auto; overflow: visible; }
.app { height: auto; }
}
/* ── Left panel (input) ─────────────────────────────────── */
.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;
}
.field-opt {
font-weight: 400;
color: #3d405a;
text-transform: none;
letter-spacing: 0;
font-size: 11px;
}
.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;
&::placeholder { color: #2e3148; }
&:focus {
border-color: rgba(99, 102, 241, 0.5);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(99,102,241,0.05);
}
&:disabled { opacity: 0.4; cursor: not-allowed; }
}
/* ── Dropzone ───────────────────────────────────────────── */
.dropzone {
display: flex;
align-items: center;
justify-content: center;
min-height: 68px;
border: 1.5px dashed #1e2030;
border-radius: 10px;
padding: 12px 16px;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
text-align: center;
background: #0a0b10;
&:hover, &:focus-visible {
border-color: rgba(99, 102, 241, 0.4);
background: rgba(99, 102, 241, 0.04);
outline: none;
}
}
.dropzone--has-file {
border-style: solid;
border-color: rgba(99, 102, 241, 0.4);
background: rgba(99, 102, 241, 0.05);
}
.dropzone-hint {
font-size: 12.5px;
color: #3d405a;
display: flex;
flex-direction: column;
gap: 3px;
}
.dropzone-types {
font-size: 10.5px;
opacity: 0.6;
letter-spacing: 0.6px;
color: #2e3148;
}
.dropzone-filename {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #a5b4fc;
font-weight: 500;
}
.dropzone-icon { font-size: 14px; }
.dropzone-clear {
background: none;
border: none;
cursor: pointer;
color: #3d405a;
font-size: 17px;
line-height: 1;
padding: 0 2px;
border-radius: 4px;
transition: color 0.15s;
&:hover { color: #f87171; }
}
/* ── Buttons ────────────────────────────────────────────── */
.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;
&: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);
&: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);
}
&:not(:disabled):active { transform: translateY(0); }
}
.btn-ghost {
background: #0f1018;
color: #6b7280;
border: 1px solid #1e2030;
padding: 8px 16px;
font-weight: 500;
&: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 (terminal) ─────────────────────────────── */
.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;
}
/* ── Tab bar ────────────────────────────────────────────── */
.tab-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 14px 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;
&:hover:not(:disabled) { color: #6b7280; }
&: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;
&:hover { color: #6ee7b7; }
}
.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;
}
.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); }
}
/* ── Terminal scroll area ───────────────────────────────── */
.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-terminal::-webkit-scrollbar { width: 6px; }
.log-terminal::-webkit-scrollbar-track { background: transparent; }
.log-terminal::-webkit-scrollbar-thumb { background: #1a1c28; border-radius: 3px; }
.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 lines ──────────────────────────────────────────── */
.log-line {
display: flex;
align-items: stretch;
gap: 0;
border-left: 2px solid transparent;
transition: background 0.1s;
&: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-rotate { border-left-color: rgba(251, 146, 60, 0.7); }
.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-rotate .log-text { color: #fb923c; }
.log-agent .log-text { color: #a78bfa; }
.log-success .log-text { color: #34d399; }
.log-step .log-text { color: #60a5fa; }
/* Default text slightly brighter so it's readable */
.log-line:not(.log-error):not(.log-warn):not(.log-rotate):not(.log-agent):not(.log-success):not(.log-step) .log-text {
color: #7c8494;
}
/* ── 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;
letter-spacing: 0.3px;
&: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-format-badge {
flex-shrink: 0;
padding: 8px 18px;
font-size: 10px;
font-weight: 700;
font-family: var(--mono);
letter-spacing: 1.5px;
color: #34d399;
border-bottom: 1px solid #111218;
background: rgba(52, 211, 153, 0.04);
}
.result-body {
flex: 1;
overflow-y: auto;
padding: 16px 18px;
scrollbar-width: thin;
scrollbar-color: #1a1c28 transparent;
min-height: 0;
}
/* JSON output */
.result-code {
margin: 0;
font-family: var(--mono);
font-size: 12px;
line-height: 1.7;
color: #a5f3b4;
white-space: pre-wrap;
word-break: break-word;
}
.result-json { color: #93c5fd; }
/* CSV table */
.result-table-wrap {
overflow-x: auto;
}
.result-table {
border-collapse: collapse;
width: 100%;
font-family: var(--mono);
font-size: 12px;
th {
background: #111218;
color: #6366f1;
font-weight: 600;
padding: 7px 12px;
text-align: left;
border-bottom: 1px solid #1e2030;
white-space: nowrap;
letter-spacing: 0.3px;
}
td {
color: #94a3b8;
padding: 6px 12px;
border-bottom: 1px solid #0e0f14;
white-space: nowrap;
}
tr:hover td { background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }
}
/* Plain text output */
.result-text {
font-size: 13px;
line-height: 1.8;
color: #94a3b8;
white-space: pre-wrap;
word-break: break-word;
font-family: var(--sans);
}
/* ── Pipeline diagram ───────────────────────────────────── */
.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: 72px;
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: 14px;
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; font-weight: 700; }
.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;
}
/* ── Log step cards ──────────────────────────────────────── */
.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: 12px;
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);
}
/* ── Typewriter ──────────────────────────────────────────── */
.typewriter-cursor {
display: inline-block;
width: 2px;
height: 0.9em;
background: #6366f1;
margin-left: 2px;
vertical-align: text-bottom;
animation: blink 0.8s step-end infinite;
}
/* ── Report sections fade-in ─────────────────────────────── */
.report-sections {
opacity: 0;
transform: translateY(8px);
transition: opacity 0.5s ease, transform 0.5s ease;
pointer-events: none;
display: flex;
flex-direction: column;
gap: 20px;
}
.report-sections--visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
/* ── History drawer ──────────────────────────────────────── */
.history-drawer {
background: #0f1018;
border: 1px solid #1e2030;
border-radius: 12px;
width: 400px;
max-width: calc(100vw - 32px);
max-height: 80vh;
display: flex;
flex-direction: column;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
animation: slideUp 0.15s ease;
}
.history-list {
overflow-y: auto;
padding: 8px;
display: flex;
flex-direction: column;
gap: 4px;
scrollbar-width: thin;
scrollbar-color: #1a1c28 transparent;
}
.history-empty {
padding: 28px 16px;
text-align: center;
font-size: 13px;
color: #3d405a;
line-height: 1.6;
}
.history-item {
display: flex;
flex-direction: column;
gap: 5px;
background: none;
border: 1px solid transparent;
border-radius: 8px;
padding: 10px 12px;
cursor: pointer;
text-align: left;
width: 100%;
transition: background 0.15s, border-color 0.15s;
&:hover {
background: rgba(99, 102, 241, 0.06);
border-color: rgba(99, 102, 241, 0.15);
}
}
.history-item-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.history-item-badge {
font-size: 9.5px;
font-weight: 700;
letter-spacing: 1.2px;
text-transform: uppercase;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid;
font-family: var(--mono);
}
.history-item-time {
font-size: 10.5px;
color: #3d405a;
font-family: var(--mono);
}
.history-item-context {
font-size: 12.5px;
color: #94a3b8;
line-height: 1.5;
margin: 0;
}
.history-item-meta {
font-size: 10.5px;
color: #3d405a;
font-family: var(--mono);
}
/* ── Result type bar ────────────────────────────────────── */
.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;
}
.result-chart-badge {
font-size: 10px;
font-weight: 600;
font-family: var(--mono);
letter-spacing: 0.8px;
color: #a78bfa;
background: rgba(167, 139, 250, 0.08);
border: 1px solid rgba(167, 139, 250, 0.2);
border-radius: 4px;
padding: 2px 7px;
}
/* ── Structured report ──────────────────────────────────── */
.structured-report {
display: flex;
flex-direction: column;
gap: 20px;
color: #94a3b8;
font-family: var(--sans);
}
.report-summary {
font-size: 14px;
line-height: 1.75;
color: #c9d1e0;
padding: 14px 16px;
background: rgba(99, 102, 241, 0.05);
border: 1px solid rgba(99, 102, 241, 0.12);
border-radius: 8px;
p { margin: 0; }
}
.report-section {
display: flex;
flex-direction: column;
gap: 8px;
}
.report-section-title {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.2px;
color: #6366f1;
margin: 0;
}
.report-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
li {
display: flex;
gap: 10px;
font-size: 13px;
line-height: 1.65;
color: #94a3b8;
&::before {
content: 'β–Έ';
color: #4a4f6a;
flex-shrink: 0;
margin-top: 1px;
}
p { margin: 0; }
}
}
.report-list--rec li::before {
content: 'β†’';
color: #34d399;
}
/* ── Result markdown ────────────────────────────────────── */
.result-markdown {
font-size: 13px;
line-height: 1.8;
color: #94a3b8;
font-family: var(--sans);
h1, h2, h3 { color: #e2e8f0; font-weight: 600; margin: 1em 0 0.4em; }
h1 { font-size: 16px; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }
p { margin: 0 0 0.7em; }
ul, ol { padding-left: 18px; margin: 0 0 0.7em; }
li { margin-bottom: 3px; }
code { font-family: var(--mono); font-size: 11.5px; background: #111218; padding: 1px 5px; border-radius: 3px; color: #a5f3b4; }
pre { background: #0d0e13; border: 1px solid #1e2030; border-radius: 6px; padding: 10px 12px; overflow-x: auto; }
pre code { background: none; padding: 0; }
strong { color: #c9d1e0; }
a { color: #818cf8; }
blockquote { border-left: 3px solid #1e2030; margin: 0; padding-left: 12px; color: #4a4f6a; }
}
/* ── Artifact tab styles ────────────────────────────────── */
.tab-btn--chart {
color: #a78bfa;
&:hover:not(:disabled) { color: #c4b5fd; }
}
.tab-btn--chart.tab-btn--active {
color: #a78bfa;
border-bottom-color: #8b5cf6;
}
.tab-count--chart {
background: rgba(167, 139, 250, 0.12);
color: #a78bfa;
font-size: 11px;
}
.artifact-body {
flex: 1;
overflow-y: auto;
padding: 20px 18px 16px;
display: flex;
flex-direction: column;
gap: 16px;
scrollbar-width: thin;
scrollbar-color: #1a1c28 transparent;
min-height: 0;
}
.chart-title {
font-size: 15px !important;
font-weight: 600;
color: #e2e8f0;
margin: 0;
letter-spacing: -0.3px;
}
.chart-axis-label {
font-size: 11px;
color: #3d405a;
margin: 0;
font-family: var(--mono);
letter-spacing: 0.3px;
}
.artifact-stats {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 4px;
}
.stat-chip {
display: flex;
flex-direction: column;
gap: 2px;
padding: 8px 12px;
border-radius: 8px;
border: 1px solid;
min-width: 90px;
}
.stat-label {
font-size: 10.5px;
color: #4a4f6a;
font-family: var(--mono);
letter-spacing: 0.2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 120px;
}
.stat-value {
font-size: 15px;
font-weight: 700;
font-family: var(--mono);
letter-spacing: -0.5px;
}
/* ── 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;
letter-spacing: 0.3px;
&:hover {
color: #a5b4fc;
border-color: rgba(99, 102, 241, 0.35);
background: rgba(99, 102, 241, 0.06);
}
}
/* ── Download popup ─────────────────────────────────────── */
.popup-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
animation: fadeIn 0.12s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup {
background: #0f1018;
border: 1px solid #1e2030;
border-radius: 12px;
width: 300px;
max-width: calc(100vw - 32px);
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.08);
animation: slideUp 0.15s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.popup-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px 12px;
border-bottom: 1px solid #111218;
font-size: 13px;
font-weight: 600;
color: #c9d1e0;
letter-spacing: -0.1px;
}
.popup-close {
background: none;
border: none;
color: #3d405a;
font-size: 20px;
line-height: 1;
cursor: pointer;
padding: 0 2px;
border-radius: 4px;
transition: color 0.15s;
&:hover { color: #94a3b8; }
}
.popup-body {
padding: 8px;
display: flex;
flex-direction: column;
gap: 2px;
}
.popup-option {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
background: none;
border: none;
border-radius: 8px;
padding: 10px 10px;
cursor: pointer;
text-align: left;
transition: background 0.12s;
&:hover { background: rgba(99, 102, 241, 0.07); }
&:hover .popup-option-label { color: #c9d1e0; }
}
.popup-option-icon {
font-size: 16px;
width: 24px;
text-align: center;
flex-shrink: 0;
color: #6366f1;
font-family: var(--mono);
font-weight: 700;
}
.popup-option-info {
display: flex;
flex-direction: column;
gap: 1px;
}
.popup-option-label {
font-size: 13px;
font-weight: 500;
color: #94a3b8;
transition: color 0.12s;
}
.popup-option-ext {
font-size: 10.5px;
color: #3d405a;
font-family: var(--mono);
letter-spacing: 0.5px;
}
/* ── Chart type switcher ────────────────────────────────── */
.chart-type-switcher {
display: flex;
gap: 4px;
margin-left: auto;
}
.chart-type-btn {
background: none;
border: 1px solid #1a1c28;
border-radius: 5px;
color: #3d405a;
font-size: 10.5px;
font-family: var(--mono);
font-weight: 600;
letter-spacing: 0.3px;
padding: 3px 9px;
cursor: pointer;
transition: all 0.15s;
&:hover { color: #a78bfa; border-color: rgba(167, 139, 250, 0.3); }
}
.chart-type-btn--active {
color: #a78bfa;
border-color: rgba(167, 139, 250, 0.4);
background: rgba(167, 139, 250, 0.08);
}
/* ── Artifact sub-tabs ──────────────────────────────────── */
.artifact-sub-tabs {
display: flex;
gap: 0;
border-bottom: 1px solid #111218;
flex-shrink: 0;
padding: 0 18px;
background: #08090d;
}
.artifact-sub-tab {
background: none;
border: none;
border-bottom: 2px solid transparent;
color: #3d405a;
font-size: 11.5px;
font-weight: 600;
font-family: var(--sans);
padding: 8px 12px;
cursor: pointer;
transition: color 0.15s, border-color 0.15s;
letter-spacing: 0.2px;
&:hover { color: #6b7280; }
}
.artifact-sub-tab--active {
color: #c9d1e0;
border-bottom-color: #6366f1;
}
/* ── Inline chart in result tab ─────────────────────────── */
.report-chart-inline {
border: 1px solid #1a1c28;
border-radius: 10px;
padding: 16px;
background: #08090d;
}
.chart-title--inline {
font-size: 13px !important;
color: #6b7280;
margin: 0 0 12px !important;
font-weight: 500;
letter-spacing: -0.1px;
}
/* ── Scatter tooltip ────────────────────────────────────── */
.scatter-tip {
padding: 6px 10px;
font-family: var(--mono);
font-size: 11px;
line-height: 1.7;
}
/* ── Stat category tag ──────────────────────────────────── */
.stat-category {
font-size: 9.5px;
color: #3d405a;
font-family: var(--mono);
letter-spacing: 0.5px;
text-transform: uppercase;
margin-top: 2px;
}
/* ── Code view ──────────────────────────────────────────── */
.code-view {
display: flex;
flex-direction: column;
gap: 14px;
}
.code-block {
border: 1px solid #1a1c28;
border-radius: 8px;
overflow: hidden;
}
.code-block-header {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 12px;
background: #0d0e13;
border-bottom: 1px solid #1a1c28;
}
.code-lang-badge {
font-size: 9.5px;
font-weight: 700;
font-family: var(--mono);
letter-spacing: 1px;
text-transform: uppercase;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid;
flex-shrink: 0;
}
.code-block-title {
font-size: 11.5px;
color: #6b7280;
font-family: var(--mono);
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.code-copy-btn {
background: none;
border: 1px solid #1e2030;
border-radius: 4px;
color: #3d405a;
font-size: 10px;
font-family: var(--mono);
padding: 2px 8px;
cursor: pointer;
transition: all 0.15s;
flex-shrink: 0;
&:hover { color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
}
.code-pre {
margin: 0;
padding: 14px 16px;
background: #09090e;
overflow-x: auto;
font-family: var(--mono);
font-size: 12px;
line-height: 1.75;
color: #a5f3b4;
white-space: pre;
scrollbar-width: thin;
scrollbar-color: #1a1c28 transparent;
}
/* ── Metrics view ───────────────────────────────────────── */
.metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 10px;
}
.metric-card {
display: flex;
flex-direction: column;
gap: 4px;
padding: 14px 16px;
background: #08090d;
border: 1px solid #1a1c28;
border-radius: 10px;
transition: border-color 0.2s;
&:hover { border-color: rgba(99,102,241,0.25); }
}
.metric-label {
font-size: 10.5px;
color: #4a4f6a;
font-family: var(--mono);
letter-spacing: 0.3px;
text-transform: uppercase;
}
.metric-value-row {
display: flex;
align-items: baseline;
gap: 4px;
}
.metric-value {
font-size: 22px;
font-weight: 700;
font-family: var(--mono);
color: #e2e8f0;
letter-spacing: -1px;
line-height: 1;
}
.metric-unit {
font-size: 11px;
color: #4a4f6a;
font-family: var(--mono);
}
.metric-trend {
display: flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-family: var(--mono);
font-weight: 600;
margin-top: 2px;
}
.metric-context {
color: #3d405a;
font-weight: 400;
font-size: 10px;
}
/* ── Quality badge ──────────────────────────────────────── */
.quality-badge {
font-size: 10.5px;
font-weight: 700;
font-family: var(--mono);
letter-spacing: 0.5px;
margin-left: auto;
padding: 2px 8px;
border-radius: 4px;
border: 1px solid currentColor;
opacity: 0.9;
}
.quality-verdict {
font-size: 10.5px;
color: #4a4f6a;
font-family: var(--mono);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 260px;
}
/* ── Multi-file dropzone ────────────────────────────────── */
.dropzone-filelist {
display: flex;
flex-direction: column;
gap: 5px;
width: 100%;
}
.dropzone-add {
font-size: 11px;
color: #3d405a;
font-family: var(--mono);
cursor: pointer;
align-self: flex-start;
padding: 2px 0;
}
.field-label-sub {
font-size: 10px;
color: #3d405a;
font-weight: 400;
margin-left: 4px;
font-family: var(--mono);
}
/* ── Comparison view ────────────────────────────────────── */
.comparison-view {
display: flex;
flex-direction: column;
border: 1px solid #1a1c28;
border-radius: 8px;
overflow: hidden;
}
.comparison-header {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
background: #08090d;
border-bottom: 1px solid #1a1c28;
}
.comparison-row {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
border-bottom: 1px solid #0e0f14;
&:last-child { border-bottom: none; }
&:hover { background: rgba(99,102,241,0.03); }
}
.comparison-cell {
padding: 9px 14px;
font-size: 12.5px;
color: #6b7280;
font-family: var(--mono);
display: flex;
align-items: center;
gap: 5px;
border-right: 1px solid #0e0f14;
&:last-child { border-right: none; }
}
.comparison-cell--metric {
color: #4a4f6a;
font-size: 11px;
letter-spacing: 0.2px;
}
.comparison-cell--a {
color: #a5b4fc;
}
.comparison-cell--b {
color: #6ee7b7;
}
.comparison-header .comparison-cell--a,
.comparison-header .comparison-cell--b {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.5px;
text-transform: uppercase;
}
.comparison-cell--winner {
font-weight: 700;
background: rgba(99,102,241,0.04);
}
.comparison-cell--b.comparison-cell--winner {
background: rgba(52,211,153,0.04);
}
.winner-badge {
font-size: 9px;
opacity: 0.7;
}
.comparison-footer {
display: flex;
gap: 16px;
padding: 8px 14px;
border-top: 1px solid #1a1c28;
background: #06070a;
font-size: 10.5px;
font-family: var(--mono);
font-weight: 600;
}
/* ── Heatmap view ────────────────────────────────────────── */
.heatmap-wrap {
display: flex;
flex-direction: column;
gap: 10px;
overflow-x: auto;
}
.heatmap-title {
font-size: 13px;
font-weight: 600;
color: #94a3b8;
margin: 0;
letter-spacing: -0.2px;
}
.heatmap-grid {
display: grid;
gap: 2px;
width: fit-content;
min-width: 100%;
}
.heatmap-cell {
display: flex;
align-items: center;
justify-content: center;
font-family: var(--mono);
font-size: 10.5px;
border-radius: 4px;
padding: 6px 8px;
min-width: 50px;
min-height: 34px;
text-align: center;
}
.heatmap-cell--corner {
background: none;
}
.heatmap-cell--col-label {
background: #08090d;
color: #4a4f6a;
font-weight: 600;
font-size: 10px;
letter-spacing: 0.3px;
white-space: nowrap;
}
.heatmap-cell--row-label {
background: #08090d;
color: #4a4f6a;
font-weight: 600;
font-size: 10px;
justify-content: flex-end;
text-align: right;
white-space: nowrap;
padding-right: 10px;
}
.heatmap-cell--value {
color: rgba(255, 255, 255, 0.85);
font-weight: 600;
transition: transform 0.1s;
cursor: default;
&:hover { transform: scale(1.08); z-index: 1; }
}
/* ── File preview panel ─────────────────────────────────── */
.file-preview-panel {
border: 1px solid #1a1c28;
border-radius: 8px;
overflow: hidden;
margin-top: -4px;
}
.file-preview-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 12px;
background: #08090d;
border-bottom: 1px solid #1a1c28;
font-size: 10.5px;
font-weight: 600;
color: #3d405a;
font-family: var(--mono);
letter-spacing: 0.5px;
text-transform: uppercase;
cursor: pointer;
user-select: none;
&:hover { color: #6b7280; }
}
.file-preview-toggle {
font-size: 12px;
color: #3d405a;
}
.file-preview-item {
border-bottom: 1px solid #111218;
&:last-child { border-bottom: none; }
}
.file-preview-name {
font-size: 10px;
font-family: var(--mono);
color: #4a4f6a;
padding: 5px 12px 2px;
letter-spacing: 0.3px;
}
.file-preview-content {
margin: 0;
padding: 4px 12px 10px;
font-family: var(--mono);
font-size: 10.5px;
line-height: 1.6;
color: #3d405a;
white-space: pre-wrap;
word-break: break-all;
max-height: 120px;
overflow-y: auto;
background: #06070a;
scrollbar-width: thin;
scrollbar-color: #1a1c28 transparent;
}
/* ── Share button ───────────────────────────────────────── */
.btn-share {
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;
letter-spacing: 0.3px;
&:hover {
color: #34d399;
border-color: rgba(52, 211, 153, 0.35);
background: rgba(52, 211, 153, 0.06);
}
}
/* ── Keyboard shortcut hint ─────────────────────────────── */
.kbd-hint {
font-size: 10px;
font-family: var(--mono);
color: #2a2d3d;
letter-spacing: 0.3px;
margin-left: auto;
padding: 2px 7px;
border: 1px solid #1a1c28;
border-radius: 4px;
background: #08090d;
align-self: center;
}