:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0c111d; color: #e7edf7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #1b3158 0, transparent 34rem), #0c111d; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.subtitle { color: #91a1ba; margin: 8px 0 0; }
.toolbar { display: flex; gap: 10px; align-items: center; }
input { background: #131d2c; border: 1px solid #2a3b57; border-radius: 10px; color: #e7edf7; padding: 11px 13px; min-width: min(320px, 52vw); }
textarea { width: 100%; resize: vertical; background: #0a101b; border: 1px solid #365077; border-radius: 10px; color: #e7edf7; padding: 13px; line-height: 1.5; }
button { border: 0; border-radius: 10px; padding: 11px 15px; background: #2f78ff; color: white; font-weight: 650; }
button.secondary { background: #1b2a41; color: #c6d3e7; }
button:disabled { opacity: .55; cursor: wait; }
.panel { background: rgba(18, 28, 44, .82); border: 1px solid #263852; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px #05080e66; }
.statusbar { padding: 15px 18px; color: #91a1ba; border-bottom: 1px solid #263852; }
.session { display: grid; grid-template-columns: 190px 170px 1fr 32px; gap: 16px; align-items: center; padding: 17px 18px; border-bottom: 1px solid #1d2b40; transition: background .15s; }
.session:last-child { border-bottom: 0; }
.session:hover { background: #1a2940; }
.session button { padding: 0; background: transparent; color: inherit; text-align: left; font-weight: 500; }
.time, .id { color: #9caec8; font-size: .9rem; }
.id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge.running { color: #9ec4ff; background: #173d74; }.badge.waiting { color: #f9d99a; background: #63451b; }.badge.ended { color: #a6e6c1; background: #174b38; }
.empty { padding: 50px 20px; text-align: center; color: #91a1ba; }.error { color: #ffaaa8; }
.dialog-backdrop { position: fixed; inset: 0; padding: 20px; display: grid; place-items: center; background: #05080ecc; }.dialog { width: min(800px, 100%); max-height: min(850px, 92vh); overflow: auto; background: #121c2c; border: 1px solid #2b4162; border-radius: 16px; padding: 24px; }.dialog header { align-items: start; margin-bottom: 18px; }.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }.detail-card { background: #18253a; border-radius: 10px; padding: 13px; }.detail-card small { display: block; color: #91a1ba; margin-bottom: 5px; }.json { background: #0a101b; border-radius: 10px; padding: 16px; overflow: auto; font-size: .84rem; line-height: 1.5; }
.interaction-panel { margin: 0 0 20px; padding: 18px; border: 1px solid #765621; border-radius: 12px; background: #2b2215; }.interaction-panel h3 { margin: 0 0 12px; color: #f9d99a; }.request-text { max-height: 280px; overflow: auto; white-space: pre-wrap; background: #15110b; border-radius: 9px; padding: 13px; color: #f2e4c8; line-height: 1.45; }.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #bda980; font-size: .85rem; }
.recent-output-panel { margin: 0 0 20px; }.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.section-heading h3 { margin: 0; }.section-heading span { color: #91a1ba; font-size: .82rem; }.recent-output { min-height: 260px; resize: vertical; overflow: auto; white-space: pre; tab-size: 4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.5; }
@media (max-width: 720px) { .shell { width: min(100% - 22px, 600px); padding-top: 22px; } header { display: block; }.toolbar { margin-top: 18px; flex-wrap: wrap; }.toolbar input { flex: 1 1 100%; min-width: 0; width: 100%; }.session { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 15px 13px; }.session .time { grid-column: 1; grid-row: 1; }.session .badge { grid-column: 2; grid-row: 1; }.session .summary { grid-column: 1 / -1; grid-row: 2; }.session .id { grid-column: 1 / -1; grid-row: 3; font-size: .77rem; }.session > button:last-child { display: none; }.detail-grid { grid-template-columns: 1fr; }.dialog { padding: 18px; }.form-actions { align-items: stretch; flex-direction: column; }.form-actions button { width: 100%; } }
