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

This commit is contained in:
a2a-cloud
2026-07-18 02:33:49 +00:00
parent b9d4623bee
commit 9dc468521b

View File

@@ -1,244 +1,64 @@
: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: #f5f2ea;
color: #17201b;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: #090909;
}
button,
textarea {
font: inherit;
}
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;
}
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #fff7dc 0, #f5f2ea 36%, #edf5f0 100%); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
.loading { min-height: 100vh; display: grid; place-items: center; color: #56645d; }
.product-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 42px; display: grid; gap: 22px; }
.hero { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 22px; align-items: stretch; }
.eyebrow { margin: 0 0 8px; color: #0b7f68; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 14px; font-size: clamp(38px, 7vw, 72px); line-height: .94; letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: 25px; letter-spacing: -.03em; }
.lede { max-width: 760px; color: #48564f; font-size: 18px; line-height: 1.55; }
.session-card, .panel { border: 1px solid rgba(23,32,27,.12); border-radius: 22px; background: rgba(255,255,255,.76); box-shadow: 0 20px 70px rgba(28,44,36,.08); backdrop-filter: blur(12px); }
.session-card { padding: 22px; display: grid; align-content: start; gap: 8px; }
.session-card span { color: #65736c; }
.session-card strong { font-size: 20px; overflow-wrap: anywhere; }
.session-card a, .actions button, .section-title button, .upload-box button, .quote-row button { border: 0; border-radius: 999px; background: #17201b; color: #fff; padding: 10px 15px; text-decoration: none; text-align: center; }
.session-card small { color: #69756f; line-height: 1.4; }
.studio { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 22px; align-items: start; }
.panel { padding: 22px; }
.section-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.section-title button, .upload-box button, .quote-row button { background: #e5efe9; color: #163d32; }
.field, .upload-box label, .slider { display: grid; gap: 8px; color: #35443d; font-weight: 700; }
.field input, .quote-row input { width: 100%; border: 1px solid #cfd9d3; border-radius: 12px; background: #fff; color: #17201b; padding: 11px 12px; }
.upload-box { margin: 16px 0; display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 14px; border: 1px dashed #a9bab1; border-radius: 16px; background: #f9fbf8; }
.upload-box input { max-width: 100%; }
.quotes-table { display: grid; gap: 8px; overflow-x: auto; }
.quote-row { min-width: 860px; display: grid; grid-template-columns: 1.45fr .85fr .65fr .85fr .95fr auto; gap: 8px; align-items: center; }
.quote-row.header { color: #5e6c65; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.quote-row button { padding: 9px 12px; }
.weights { position: sticky; top: 18px; display: grid; gap: 18px; }
.slider { grid-template-columns: 84px 1fr 42px; align-items: center; text-transform: capitalize; }
.slider input { accent-color: #0b7f68; width: 100%; }
.slider output { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions button { background: #0b7f68; }
.actions button + button { background: #17201b; }
.notice { margin: 0; color: #56645d; line-height: 1.45; }
.error { margin: 0; border-radius: 14px; background: #fff0ed; color: #9d2412; padding: 12px 14px; line-height: 1.45; }
.result-panel { display: grid; gap: 16px; }
.pill { border-radius: 999px; background: #e7f6ef; color: #08785f; padding: 7px 10px; font-size: 13px; font-weight: 800; }
.result-grid { display: grid; gap: 18px; }
.winner-card { border-radius: 18px; background: linear-gradient(135deg, #0b7f68, #12241e); color: #fff; padding: 20px; display: grid; gap: 8px; }
.winner-card strong { font-size: 30px; letter-spacing: -.04em; }
.winner-card span { color: #b8f1e1; font-weight: 800; }
.winner-card p { margin: 0; line-height: 1.5; color: #eefaf6; }
.scores { display: grid; gap: 10px; }
.scorebar { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 54px; gap: 10px; align-items: center; }
.scorebar span, .scorebar b { font-size: 14px; }
.scorebar div { height: 12px; overflow: hidden; border-radius: 999px; background: #e3ebe6; }
.scorebar i { display: block; height: 100%; border-radius: 999px; background: #0b7f68; }
table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; background: #fff; }
th, td { padding: 12px; border-bottom: 1px solid #edf1ee; text-align: left; }
th { color: #5b6a63; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.receipt, .empty { margin: 0; color: #5c6c65; }
@media (max-width: 900px) { .hero, .studio { grid-template-columns: 1fr; } .weights { position: static; } h1 { font-size: clamp(34px, 12vw, 56px); } }