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

This commit is contained in:
a2a-cloud
2026-07-18 04:43:46 +00:00
parent 3ac7da515c
commit ee38c2f9c8

View File

@@ -1,80 +1,244 @@
:root { :root {
color-scheme: light; color-scheme: dark;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #f6f3ec; background: #090909;
color: #17211c; color: #f5f5f5;
} }
* { box-sizing: border-box; } * {
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #d8f5df, transparent 32rem), #f6f3ec; } box-sizing: border-box;
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.loading { min-height: 100vh; display: grid; place-items: center; color: #58635d; }
.app-shell { width: min(1440px, 100%); margin: 0 auto; padding: 24px; display: grid; gap: 20px; }
.card { background: rgba(255,255,255,0.86); border: 1px solid #e1ddd2; border-radius: 24px; box-shadow: 0 18px 50px rgba(37, 48, 42, 0.08); }
.hero { padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 24px; align-items: end; }
.eyebrow { margin: 0 0 8px; color: #19765a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; max-width: 900px; font-size: clamp(36px, 6vw, 76px); line-height: .93; letter-spacing: -0.06em; }
h2 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.035em; }
h3 { margin-bottom: 10px; font-size: 15px; }
.lede { max-width: 780px; margin-bottom: 0; color: #506058; font-size: 18px; line-height: 1.6; }
.session-box { border: 1px solid #d9d3c7; border-radius: 18px; background: #fff; padding: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.session-box p { margin: 3px 0 0; color: #65736b; font-size: 14px; }
.dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.dot.ok { background: #16a368; box-shadow: 0 0 0 5px #dff4e9; }
.dot.warn { background: #d48b12; box-shadow: 0 0 0 5px #faecd1; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.editor, .controls, .result-card { padding: 22px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.field, .quote-row label, .paste-upload label, .slider { display: grid; gap: 7px; color: #526058; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #d6d0c4; border-radius: 12px; background: #fffdfa; color: #17211c; padding: 10px 12px; outline: none; }
input:focus, textarea:focus { border-color: #1e8a68; box-shadow: 0 0 0 3px #d8f5e9; }
.id-field { max-width: 420px; margin-bottom: 16px; }
.quote-list { display: grid; gap: 10px; }
.quote-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(92px, .7fr)) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #ebe5d9; border-radius: 16px; background: #fffdfa; }
.quote-row button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f8ded9; color: #9c2d1f; font-size: 22px; }
.paste-upload { margin-top: 18px; display: grid; gap: 12px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button.primary { width: 100%; background: #17211c; color: #fff; margin-top: 12px; }
.button.secondary { background: #e7f4ed; color: #145b45; }
.button.ghost { background: #f2eee5; color: #27322d; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.controls { position: sticky; top: 18px; display: grid; gap: 12px; }
.slider { grid-template-columns: 1fr auto; align-items: center; text-transform: capitalize; }
.slider input { grid-column: 1 / -1; accent-color: #19765a; padding: 0; }
.hint, .empty { color: #65736b; line-height: 1.5; }
.validation, .error, .status { border-radius: 14px; padding: 12px; margin: 0; line-height: 1.45; }
.validation { background: #fff4d8; color: #7d5411; }
.error { background: #fde5e1; color: #8d251a; }
.status { background: #def6e8; color: #12613f; }
.signin-note { color: #145b45; text-align: center; font-weight: 800; }
.history { margin-top: 10px; border-top: 1px solid #e4ded2; padding-top: 14px; display: grid; gap: 8px; }
.history button { border: 1px solid #d6d0c4; background: #fffdfa; color: #33423b; border-radius: 10px; padding: 8px 10px; text-align: left; }
.result-card { display: grid; gap: 12px; }
.score { border-radius: 999px; background: #17211c; color: #fff; padding: 9px 14px; font-weight: 900; }
.rationale { color: #394840; font-size: 17px; line-height: 1.6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 12px; border-bottom: 1px solid #ebe5d9; text-align: left; }
th { color: #65736b; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
tr.winner td { background: #e8f7ee; font-weight: 800; }
@media (max-width: 980px) {
.hero, .grid { grid-template-columns: 1fr; }
.controls { position: static; }
.quote-row { grid-template-columns: 1fr 1fr; }
.quote-row label:first-child { grid-column: 1 / -1; }
} }
@media (max-width: 620px) { body {
.app-shell { padding: 12px; } margin: 0;
.hero, .editor, .controls, .result-card { padding: 16px; border-radius: 18px; } min-height: 100vh;
.quote-row { grid-template-columns: 1fr; } background: #090909;
.section-head { flex-direction: column; } }
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;
}
} }