:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #eef2f6;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #1a2d35, #0d1117 48%); }
.shell { width: min(760px, 100%); margin: 0 auto; padding: 22px 16px 42px; }
.hero { padding: 22px 4px 18px; }
.eyebrow { color: #55d6a4; font-size: 11px; letter-spacing: .18em; font-weight: 800; }
h1 { margin: 8px 0 8px; font-size: clamp(28px, 8vw, 44px); line-height: 1.05; }
.hero p { margin: 0; color: #9aa8b4; line-height: 1.5; }
.notice, .card, .metric { border: 1px solid #26343e; border-radius: 18px; background: rgba(21, 29, 36, .86); box-shadow: 0 14px 42px rgba(0,0,0,.18); }
.notice { padding: 14px 16px; margin: 8px 0 16px; color: #b9c5ce; }
.notice.error, .warning-text { color: #ffad9e; }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
button { border: 0; border-radius: 12px; padding: 12px 10px; font: inherit; color: #dfe8ed; background: #1a252d; cursor: pointer; }
button.active, button.primary { color: #08251c; background: #55d6a4; font-weight: 750; }
button.secondary { background: #26343e; }
button.small { padding: 8px 10px; font-size: 12px; }
input, select { width: 100%; min-width: 0; border: 1px solid #334653; border-radius: 11px; padding: 11px 12px; color: #eef2f6; background: #111a20; font: inherit; }
.form-row, .form-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.form-grid { grid-template-columns: 1fr 1fr auto; }
.toolbar, .list-row, .row-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.list-row { padding: 12px 0; border-bottom: 1px solid #26343e; }
.list-row:last-child { border-bottom: 0; }
.list-row strong, .list-row small { display: block; overflow-wrap: anywhere; }
.list-row small, .muted { color: #8e9da8; line-height: 1.45; }
.row-actions { flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #36534d; border-radius: 999px; padding: 7px 10px; color: #9ee8c8; font-size: 12px; }
.data-list { display: grid; gap: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric { padding: 15px; min-height: 90px; }
.metric span, .data-row span { display: block; color: #8e9da8; font-size: 12px; }
.metric strong { display: block; margin-top: 8px; font-size: 16px; overflow-wrap: anywhere; }
.card { margin-top: 12px; padding: 16px; }
.card-title { font-weight: 750; margin-bottom: 12px; }
.summary { color: #c3cdd4; line-height: 1.55; white-space: pre-wrap; }
.memory-row, .data-row { padding: 10px 0; border-bottom: 1px solid #26343e; line-height: 1.45; }
.memory-row:last-child, .data-row:last-child { border-bottom: 0; }
.data-row { display: flex; justify-content: space-between; gap: 18px; }
.data-row strong { text-align: right; overflow-wrap: anywhere; }
.messages { display: grid; gap: 10px; margin-top: 12px; }
.message { padding: 13px 15px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user { background: #203a37; margin-left: 20px; }
.message.assistant { background: #17222a; margin-right: 20px; }
.message-role { color: #55d6a4; font-size: 12px; font-weight: 750; margin-bottom: 5px; }
.message-body { line-height: 1.5; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (min-width: 560px) { .metric-grid { grid-template-columns: repeat(4, 1fr); } .tabs { grid-template-columns: repeat(4, 1fr); } }
