示例工程 59-agent-runtime-main
59-agent-runtime-main/app/src/styles/app.css
.app {
min-height: 100vh;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
height: 60px;
padding: 0 20px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
}
.logo {
display: grid;
place-items: center;
width: 30px;
height: 30px;
border-radius: 9px;
background: #0f172a;
color: #ffffff;
font-size: 13px;
font-weight: 700;
}
.brand h1 {
margin: 0;
font-size: 15px;
}
.header-side {
display: flex;
align-items: center;
gap: 7px;
}
.pill {
padding: 2px 8px;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--muted);
font-size: 10px;
}
.ok-pill {
border-color: #86efac;
background: #f0fdf4;
color: #166534;
}
.bad-pill {
border-color: #fecaca;
background: #fef2f2;
color: #991b1b;
}
.warn-pill {
border-color: #fcd34d;
background: #fffbeb;
color: #92400e;
}
.banner {
margin: 12px 20px 0;
padding: 8px 11px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
color: var(--muted);
font-size: 11px;
}
.control {
margin: 10px 20px 0;
}
.control-row {
display: flex;
align-items: flex-end;
gap: 8px;
}
.field {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 132px;
}
.field.grow {
flex: 1;
min-width: 0;
}
.field select,
.field input {
height: 30px;
padding: 0 8px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--text);
font-size: 11px;
}
.field input {
width: 100%;
}
.control-note {
margin: 6px 0 0;
}
.layout {
display: grid;
grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
gap: 12px;
padding: 10px 20px 20px;
}
.column {
display: flex;
flex-direction: column;
gap: 10px;
min-width: 0;
}
.card-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-bottom: 7px;
}
.card h2 {
margin: 0;
font-size: 12.5px;
}
.small {
font-size: 10.5px;
}
.btn {
height: 30px;
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--text);
font-size: 10.5px;
}
.btn.primary {
border-color: var(--primary);
background: var(--primary);
color: #ffffff;
}
.btn:disabled {
opacity: 0.45;
}
.stats {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
margin: 0;
}
.stats div {
padding: 6px 8px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--panel);
}
.stats dt {
color: var(--muted);
font-size: 8.6px;
}
.stats dd {
margin: 2px 0 0;
font-size: 11.5px;
font-weight: 600;
}
.tool-row {
display: grid;
grid-template-columns: 46px minmax(0, 1fr);
gap: 6px;
align-items: start;
padding: 4px 0;
border-bottom: 1px solid var(--border);
}
.tool-row:last-of-type {
border-bottom: none;
}
.tool-row code {
font-size: 8.8px;
overflow-wrap: anywhere;
}
.tool-note {
margin: 7px 0 0;
line-height: 1.55;
}
.checks {
margin: 0;
padding: 0;
list-style: none;
}
.check-row {
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 82px;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid var(--border);
font-size: 9.6px;
}
.check-row:last-child {
border-bottom: none;
}
.check-row code {
color: var(--muted);
font-size: 8.4px;
text-align: right;
overflow-wrap: anywhere;
}
.events {
max-height: 520px;
margin: 0;
padding: 0;
overflow: auto;
list-style: none;
}
.event-row {
display: grid;
grid-template-columns: 22px 52px 42px minmax(0, 1fr);
gap: 6px;
align-items: start;
padding: 4px 2px;
border-bottom: 1px solid var(--border);
font-size: 9.4px;
}
.event-row:last-child {
border-bottom: none;
}
.seq {
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 8.4px;
}
.time {
font-size: 8.4px;
}
.detail {
line-height: 1.55;
overflow-wrap: anywhere;
}
.delta-text {
color: var(--text);
}
.tag {
padding: 1px 5px;
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font-size: 8.2px;
font-weight: 600;
white-space: nowrap;
text-align: center;
}
.tag.run {
background: #e0e7ff;
color: #3730a3;
}
.tag.turn {
background: #ede9fe;
color: #5b21b6;
}
.tag.delta {
background: #dbeafe;
color: #1e40af;
}
.tag.tool {
background: #fef3c7;
color: #92400e;
}
.tag.result {
background: #dcfce7;
color: #166534;
}
.tag.usage {
background: #f1f5f9;
color: #475569;
}
.tag.done {
background: #dcfce7;
color: #166534;
}
.tag.cancel {
background: #ffedd5;
color: #9a3412;
}
.tag.error {
background: #fee2e2;
color: #991b1b;
}
body[data-shot="tool"] .checks-card,
body[data-shot="tool"] .tool-note {
display: none;
}
body[data-shot="tool"] .tool-card {
border-color: #fcd34d;
box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08);
}
body[data-shot="tool"] .events {
max-height: 360px;
}
body[data-shot="cancel"] .tool-card {
display: none;
}
body[data-shot="cancel"] .timeline-card {
border-color: #fdba74;
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.08);
}
body[data-shot="stream"] .timeline-card {
border-color: #bfdbfe;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
@media (max-width: 820px) {
.layout {
grid-template-columns: 1fr;
}
.control-row {
flex-wrap: wrap;
}
.field.grow {
flex-basis: 100%;
}
}