*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #f4f3f7;
--surface: rgba(255,255,255,0.75);
--border: rgba(120,115,180,0.13);
--accent: #7b74c7;
--accent2: #3aaa8a;
--text: #2d2b45;
--muted: #8f8daa;
--error: #c0504a;
--radius: 16px;
}
html, body {
height: 100%;
background: var(--bg);
color: var(--text);
font-family: 'Inter', sans-serif;
line-height: 1.6;
overflow-x: hidden;
}
/* ── soft background glows ── */
body::before {
content: '';
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 80% 60% at 5% -5%, rgba(123,116,199,0.08) 0%, transparent 55%),
radial-gradient(ellipse 60% 50% at 95% 105%, rgba(58,170,138,0.07) 0%, transparent 55%);
pointer-events: none;
z-index: 0;
}
/* ── grid dots ── */
body::after {
content: '';
position: fixed;
inset: 0;
background-image: radial-gradient(circle, rgba(123,116,199,0.07) 1px, transparent 1px);
background-size: 36px 36px;
pointer-events: none;
z-index: 0;
}
.page {
position: relative;
z-index: 1;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 56px 24px 80px;
gap: 40px;
}
/* ── header ── */
header {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.logo-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(123,116,199,0.07);
border: 1px solid rgba(123,116,199,0.16);
border-radius: 100px;
padding: 6px 16px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent);
}
.logo-badge svg { width: 14px; height: 14px; }
h1 {
font-size: clamp(2rem, 5vw, 3.2rem);
font-weight: 700;
letter-spacing: -0.03em;
background: linear-gradient(135deg, #4e47a8 0%, #7b74c7 50%, #3aaa8a 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
color: var(--muted);
font-size: 15px;
max-width: 480px;
text-align: center;
}
/* ── prompt card ── */
.prompt-card {
width: 100%;
max-width: 760px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
box-shadow:
0 2px 8px rgba(123,116,199,0.05),
0 12px 40px rgba(123,116,199,0.06),
inset 0 1px 0 rgba(255,255,255,0.9);
transition: border-color 0.2s, box-shadow 0.2s;
}
.prompt-card:focus-within {
border-color: rgba(123,116,199,0.35);
box-shadow:
0 2px 8px rgba(123,116,199,0.06),
0 12px 40px rgba(123,116,199,0.10),
0 0 0 3px rgba(123,116,199,0.08),
inset 0 1px 0 rgba(255,255,255,0.9);
}
.prompt-label {
font-size: 12px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
}
textarea {
background: transparent;
border: none;
outline: none;
resize: none;
color: var(--text);
font-family: 'Inter', sans-serif;
font-size: 15px;
line-height: 1.7;
width: 100%;
min-height: 100px;
}
textarea::placeholder { color: rgba(124,122,154,0.5); }
.prompt-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.char-count {
font-size: 12px;
color: var(--muted);
}
/* ── run button ── */
#run {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 11px 28px;
border: none;
border-radius: 10px;
background: linear-gradient(135deg, #7b74c7, #635caa);
color: #fff;
font-family: 'Inter', sans-serif;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
box-shadow: 0 4px 16px rgba(123,116,199,0.28);
position: relative;
overflow: hidden;
}
#run::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
opacity: 0;
transition: opacity 0.15s;
}
#run:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(123,116,199,0.38); }
#run:hover:not(:disabled)::after { opacity: 1; }
#run:active:not(:disabled) { transform: translateY(0); }
#run:disabled { opacity: 0.5; cursor: not-allowed; }
#run svg { width: 16px; height: 16px; }
#run.loading svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ── results section ── */
#results-section {
width: 100%;
max-width: 1200px;
display: flex;
flex-direction: column;
gap: 20px;
}
.results-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
}
.results-title {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
}
.results-meta {
font-size: 12px;
color: var(--muted);
opacity: 0;
transition: opacity 0.3s;
}
.results-meta.visible { opacity: 1; }
#results {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 20px;
}
/* ── result card ── */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
box-shadow:
0 2px 8px rgba(123,116,199,0.04),
0 8px 28px rgba(123,116,199,0.06),
inset 0 1px 0 rgba(255,255,255,0.9);
animation: cardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
position: relative;
overflow: hidden;
}
.card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 3px;
background: var(--card-accent, linear-gradient(90deg, #7b74c7, #3aaa8a));
border-radius: var(--radius) var(--radius) 0 0;
}
@keyframes cardIn {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.model-name {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
font-weight: 500;
color: var(--accent);
display: flex;
align-items: center;
gap: 8px;
}
.model-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--dot-color, #7b74c7);
box-shadow: 0 0 5px var(--dot-color, #7b74c7);
flex-shrink: 0;
}
.status-badge {
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: 100px;
letter-spacing: 0.04em;
}
.status-badge.ok {
background: rgba(58,170,138,0.09);
color: #2e8a6e;
border: 1px solid rgba(58,170,138,0.22);
}
.status-badge.err {
background: rgba(192,80,74,0.07);
color: var(--error);
border: 1px solid rgba(192,80,74,0.18);
}
.status-badge.loading {
background: rgba(123,116,199,0.07);
color: var(--accent);
border: 1px solid rgba(123,116,199,0.18);
}
.card-output {
font-size: 14px;
line-height: 1.75;
color: #374151;
white-space: pre-wrap;
word-break: break-word;
}
.card-output.error-text {
color: var(--error);
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
}
/* ── skeleton loader ── */
.skeleton {
border-radius: 6px;
background: linear-gradient(90deg,
rgba(123,116,199,0.05) 25%,
rgba(123,116,199,0.10) 50%,
rgba(123,116,199,0.05) 75%
);
background-size: 200% 100%;
animation: shimmer 1.4s infinite;
}
.skeleton-line { height: 13px; margin-bottom: 10px; }
.skeleton-line:nth-child(1) { width: 92%; }
.skeleton-line:nth-child(2) { width: 78%; }
.skeleton-line:nth-child(3) { width: 85%; }
.skeleton-line:nth-child(4) { width: 60%; }
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
/* ── empty state ── */
.empty-state {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 64px 24px;
color: var(--muted);
text-align: center;
}
.empty-state svg {
width: 48px;
height: 48px;
opacity: 0.25;
}
.empty-state p { font-size: 14px; }
/* ── responsive ── */
@media (max-width: 640px) {
.page { padding: 40px 16px 60px; gap: 28px; }
h1 { font-size: 1.9rem; }
#results { grid-template-columns: 1fr; }
}