a2a-source-edit: write frontend/src/style.css
This commit is contained in:
@@ -1,244 +1,58 @@
|
|||||||
:root {
|
:root {
|
||||||
color-scheme: dark;
|
color-scheme: light;
|
||||||
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: #090909;
|
background: #f4f1ea;
|
||||||
color: #f5f5f5;
|
color: #17211d;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* { box-sizing: border-box; }
|
||||||
box-sizing: border-box;
|
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #d6f4e9 0, transparent 32rem), #f4f1ea; }
|
||||||
}
|
button, textarea, input { font: inherit; }
|
||||||
|
button { cursor: pointer; }
|
||||||
|
.loading { min-height: 100vh; display: grid; place-items: center; color: #52635c; }
|
||||||
|
|
||||||
body {
|
.product-shell { max-width: 1180px; margin: 0 auto; padding: 28px; display: grid; gap: 18px; }
|
||||||
margin: 0;
|
.hero-card, .workflow, .results, .notice, .error { border: 1px solid #d9d1c3; border-radius: 24px; background: rgba(255,255,255,0.86); box-shadow: 0 20px 60px rgba(45, 34, 12, 0.08); }
|
||||||
min-height: 100vh;
|
.hero-card { padding: 28px; }
|
||||||
background: #090909;
|
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
|
||||||
}
|
.eyebrow { margin: 0 0 10px; color: #15735f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
|
||||||
|
h1, h2, h3, p { margin-top: 0; }
|
||||||
button,
|
h1 { max-width: 780px; margin-bottom: 14px; font-size: clamp(34px, 6vw, 70px); line-height: .95; letter-spacing: -0.055em; }
|
||||||
textarea {
|
h2 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.035em; }
|
||||||
font: inherit;
|
h3 { margin-bottom: 8px; }
|
||||||
}
|
.lede { max-width: 760px; margin-bottom: 0; color: #4b5e56; font-size: 19px; line-height: 1.55; }
|
||||||
|
.session-card { border: 1px solid #cfe7de; border-radius: 18px; background: #eefbf6; padding: 18px; display: grid; gap: 8px; }
|
||||||
button {
|
.session-card span { color: #476159; font-size: 13px; font-weight: 700; }
|
||||||
cursor: pointer;
|
.session-card strong { overflow-wrap: anywhere; }
|
||||||
}
|
.session-card a, .session-card button, .actions button, .result-header button { border: 0; border-radius: 999px; background: #17211d; color: white; padding: 11px 15px; text-decoration: none; text-align: center; font-weight: 800; }
|
||||||
|
.session-card .ghost { background: white; color: #17211d; border: 1px solid #bfd8cf; }
|
||||||
.loading {
|
.notice { padding: 14px 18px; color: #3a5149; }
|
||||||
min-height: 100vh;
|
.error { padding: 16px 18px; color: #8a1f11; background: #fff2ed; border-color: #f4c6b8; }
|
||||||
display: grid;
|
.workflow { padding: 22px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; }
|
||||||
place-items: center;
|
.workflow label { display: grid; gap: 10px; color: #2d3c37; font-weight: 800; }
|
||||||
color: #b8b8b8;
|
.workflow textarea { width: 100%; min-height: 330px; resize: vertical; border: 1px solid #d8cfc0; border-radius: 16px; background: #fffdf9; color: #17211d; padding: 14px; line-height: 1.5; }
|
||||||
}
|
.workflow textarea.policy { min-height: 330px; }
|
||||||
|
.actions { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
|
||||||
.app-shell {
|
.small-field { max-width: 160px; }
|
||||||
min-height: 100vh;
|
.small-field input { width: 100%; border: 1px solid #d8cfc0; border-radius: 12px; padding: 11px; background: white; }
|
||||||
display: grid;
|
.actions button:disabled { cursor: not-allowed; opacity: .55; }
|
||||||
grid-template-columns: minmax(260px, 340px) 1fr;
|
.results { padding: 22px; display: grid; gap: 16px; }
|
||||||
}
|
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
|
||||||
|
.boundary { border-left: 4px solid #15735f; padding-left: 12px; color: #425951; }
|
||||||
.sidebar {
|
.receipt { border-radius: 14px; padding: 12px; margin: 0; }
|
||||||
min-height: 100vh;
|
.receipt.ok { background: #e7f8ef; color: #0f6844; }
|
||||||
border-right: 1px solid #222;
|
.receipt.warn { background: #fff4d6; color: #705500; }
|
||||||
background: #0d0d0d;
|
.queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
|
||||||
padding: 28px;
|
.queue-card { min-width: 0; border: 1px solid #ddd3c4; border-radius: 18px; background: #fffdf9; padding: 16px; display: grid; gap: 8px; }
|
||||||
display: grid;
|
.queue-card.urgent { border-color: #d66a50; box-shadow: inset 0 4px 0 #d66a50; }
|
||||||
align-content: start;
|
.queue-card.high { border-color: #d59a31; box-shadow: inset 0 4px 0 #d59a31; }
|
||||||
gap: 28px;
|
.queue-card.normal { box-shadow: inset 0 4px 0 #47a88e; }
|
||||||
}
|
.queue-card.low { opacity: .88; }
|
||||||
|
.queue-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #63756e; font-size: 13px; }
|
||||||
.eyebrow {
|
.pill { display: inline-flex; border-radius: 999px; background: #17211d; color: white; padding: 5px 9px; font-size: 12px; text-transform: uppercase; font-weight: 900; }
|
||||||
margin: 0 0 10px;
|
details { border-top: 1px solid #ebe1d4; padding-top: 10px; }
|
||||||
color: #8bd8c6;
|
summary { cursor: pointer; font-weight: 900; }
|
||||||
font-size: 12px;
|
.draft pre { white-space: pre-wrap; overflow: auto; max-height: 260px; border-radius: 14px; background: #f6f1e8; padding: 12px; line-height: 1.45; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 13px; }
|
||||||
letter-spacing: 0;
|
ul { padding-left: 20px; margin-bottom: 0; }
|
||||||
text-transform: uppercase;
|
@media (max-width: 940px) { .hero-grid, .workflow, .queue { grid-template-columns: 1fr; } .result-header { align-items: flex-start; flex-direction: column; } }
|
||||||
}
|
@media (max-width: 560px) { .product-shell { padding: 14px; } .hero-card, .workflow, .results { border-radius: 18px; padding: 16px; } }
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user