a2a-source-edit: write frontend/src/style.css

This commit is contained in:
a2a-cloud
2026-07-18 06:09:48 +00:00
parent 8a6c9bcb53
commit 82caf0132c

View File

@@ -1,244 +1,70 @@
:root {
color-scheme: dark;
color-scheme: light;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #090909;
color: #f5f5f5;
background: #f7f3ea;
color: #18211f;
}
* {
box-sizing: border-box;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f7f3ea; }
button, input, textarea { font: inherit; }
button, input[type="file"] { cursor: pointer; }
body {
margin: 0;
min-height: 100vh;
background: #090909;
}
.loading { min-height: 100vh; display: grid; place-items: center; color: #55615d; }
.app-shell { min-height: 100vh; display: grid; gap: 24px; padding: 22px; }
.hero { border-radius: 28px; padding: 22px; color: #f8fff8; background: radial-gradient(circle at top right, #3dbd8f, transparent 35%), linear-gradient(135deg, #10251f, #17392f 55%, #0d1916); box-shadow: 0 20px 70px rgba(21, 50, 42, 0.24); }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 54px; }
.topbar > div { display: flex; align-items: center; gap: 12px; }
.logo { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #d9ff73; color: #10251f; font-weight: 900; }
.session-pill { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); }
.session-pill a, .primary-link { color: #d9ff73; font-weight: 800; text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: end; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: #2a8f70; }
.hero .eyebrow { color: #aaf1d9; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(44px, 7vw, 92px); line-height: .88; letter-spacing: -0.07em; }
h2 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.04em; }
.lede { max-width: 690px; color: #dcebe5; font-size: 18px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
button, .primary-link { border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 800; }
button { background: #d9ff73; color: #13211d; }
button.secondary, .secondary { border: 1px solid #cfc7b8; background: #fffaf0; color: #26332f; }
.hero button.secondary { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.09); color: #fff; }
button:disabled { cursor: not-allowed; opacity: .58; }
.score-card { border: 1px solid rgba(255,255,255,.18); border-radius: 24px; padding: 22px; background: rgba(255,255,255,.10); backdrop-filter: blur(16px); }
.score-card span { color: #b8d8ce; }
.score-card strong { display: block; margin: 10px 0; font-size: 34px; letter-spacing: -0.04em; }
.score-card p { color: #e4f0ec; line-height: 1.5; }
button,
textarea {
font: inherit;
}
.studio, .results-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 20px; align-items: start; }
.panel { border: 1px solid #e5dccd; border-radius: 24px; background: rgba(255,255,255,.72); padding: 22px; box-shadow: 0 16px 55px rgba(42, 31, 12, .08); }
.section-title { display: flex; gap: 18px; justify-content: space-between; align-items: start; }
.id-label { min-width: 260px; }
label { display: grid; gap: 7px; color: #4d5c57; font-size: 13px; font-weight: 800; }
input { width: 100%; border: 1px solid #d8cfbf; border-radius: 12px; background: #fffdf7; color: #18211f; padding: 10px 12px; }
.upload-box { margin: 14px 0 18px; border: 1px dashed #b9ad99; border-radius: 18px; padding: 16px; background: #fff9ed; }
.upload-box small, .hint { color: #6b746f; }
.hint.danger { color: #a13b2b; }
.quotes-table { display: grid; gap: 10px; }
.quote-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(90px, .6fr)) 42px; gap: 10px; align-items: end; }
.icon { width: 42px; height: 42px; display: grid; place-items: center; background: #fee3d7; color: #8c2e1f; padding: 0; }
.weights-panel { position: sticky; top: 20px; }
.slider { margin: 20px 0; }
.slider span { display: flex; justify-content: space-between; text-transform: capitalize; }
.slider input { accent-color: #1d8d68; padding: 0; }
.primary, .primary-link { display: inline-block; width: 100%; margin-top: 12px; text-align: center; background: #17392f; color: #fff; }
.alert { border: 1px solid #f2b8a8; border-radius: 18px; padding: 16px 18px; background: #fff0eb; color: #8c2e1f; font-weight: 800; }
.rankings { display: grid; gap: 10px; padding-left: 22px; }
.rankings li { padding: 10px 0; }
.rankings strong { display: block; }
.rankings span { color: #5e6965; }
pre { max-height: 460px; overflow: auto; border-radius: 16px; margin: 16px 0 0; padding: 16px; background: #13211d; color: #dff7ed; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
button {
cursor: pointer;
}
.loading {
min-height: 100vh;
display: grid;
place-items: center;
color: #b8b8b8;
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-columns: minmax(260px, 340px) 1fr;
}
.sidebar {
min-height: 100vh;
border-right: 1px solid #222;
background: #0d0d0d;
padding: 28px;
display: grid;
align-content: start;
gap: 28px;
}
.eyebrow {
margin: 0 0 10px;
color: #8bd8c6;
font-size: 12px;
letter-spacing: 0;
text-transform: uppercase;
}
h1,
h2,
h3,
p {
margin-top: 0;
}
h1 {
margin-bottom: 10px;
font-size: clamp(32px, 5vw, 56px);
line-height: 0.95;
letter-spacing: 0;
}
h2 {
margin-bottom: 0;
font-size: 30px;
letter-spacing: 0;
}
h3 {
margin-bottom: 12px;
color: #d7d7d7;
font-size: 14px;
letter-spacing: 0;
}
.agent-meta {
margin-bottom: 0;
color: #a6a6a6;
}
.skill-list {
display: grid;
gap: 10px;
}
.skill {
width: 100%;
min-height: 58px;
border: 1px solid #252525;
border-radius: 8px;
background: #121212;
color: #f3f3f3;
padding: 12px 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
text-align: left;
}
.skill:hover,
.skill.active {
border-color: #5bb7a7;
background: #15201d;
}
.skill span {
overflow-wrap: anywhere;
}
.skill small {
color: #9d9d9d;
}
.session {
border: 1px solid #252525;
border-radius: 8px;
padding: 14px;
color: #a6a6a6;
display: grid;
gap: 4px;
}
.session strong {
color: #f3f3f3;
overflow-wrap: anywhere;
}
.workbench {
padding: 28px;
display: grid;
align-content: start;
gap: 22px;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
}
.toolbar a,
.runner button {
border: 1px solid #e8e8e8;
border-radius: 7px;
background: #f4f4f4;
color: #111;
padding: 10px 14px;
text-decoration: none;
white-space: nowrap;
}
.runner {
display: grid;
gap: 12px;
}
.runner label {
display: grid;
gap: 10px;
color: #d7d7d7;
}
.runner textarea {
width: 100%;
min-height: 170px;
resize: vertical;
border: 1px solid #252525;
border-radius: 8px;
background: #070707;
color: #eeeeee;
padding: 14px;
line-height: 1.5;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.runner button {
justify-self: start;
}
.runner button:disabled {
cursor: wait;
opacity: 0.72;
}
.panels {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.panel {
min-width: 0;
border: 1px solid #252525;
border-radius: 8px;
padding: 16px;
background: #0d0d0d;
}
pre {
min-height: 260px;
max-height: 420px;
margin: 0;
overflow: auto;
color: #dcdcdc;
line-height: 1.5;
font-size: 13px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.empty {
color: #aaa;
}
@media (max-width: 820px) {
.app-shell {
grid-template-columns: 1fr;
}
.sidebar {
min-height: auto;
border-right: 0;
border-bottom: 1px solid #222;
}
.panels {
grid-template-columns: 1fr;
}
.toolbar {
align-items: flex-start;
flex-direction: column;
}
@media (max-width: 980px) {
.hero-grid, .studio, .results-grid { grid-template-columns: 1fr; }
.weights-panel { position: static; }
.quote-row { grid-template-columns: 1fr 1fr; }
.icon { width: 100%; }
.section-title, .topbar { align-items: stretch; flex-direction: column; }
.id-label { min-width: 0; }
}