:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #07111f; color: #edf5ff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #143c65 0, transparent 31rem), radial-gradient(circle at 10% 25%, #12374f 0, transparent 28rem), #07111f; }
button, input, textarea { font: inherit; }
button { border: 0; border-radius: 12px; padding: 11px 16px; cursor: pointer; color: #06111d; background: #5eead4; font-weight: 750; }
button:hover { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: .5; }
button.secondary { color: #dbeafe; background: #172a42; border: 1px solid #2d4867; }
button.danger { color: #fecaca; }
.shell { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 40px 0 64px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: #5eead4; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .98; letter-spacing: -.055em; }
.subtitle, #dialog-subtitle { margin-bottom: 0; color: #91a8c2; }
.toolbar { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; justify-content: end; }
.token-field { display: grid; gap: 6px; color: #91a8c2; font-size: .76rem; font-weight: 700; }
input, textarea { color: #edf5ff; background: #091728; border: 1px solid #294662; border-radius: 12px; padding: 12px 13px; outline: none; }
input { width: min(290px, 55vw); }
input:focus, textarea:focus { border-color: #5eead4; box-shadow: 0 0 0 3px #5eead425; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.summary-grid article { display: flex; align-items: baseline; gap: 10px; padding: 18px; border: 1px solid #213c57; border-radius: 16px; background: #0c1b2dcc; box-shadow: 0 14px 36px #02060c3d; }
.summary-grid strong { font-size: 1.8rem; color: #f8fbff; }
.summary-grid span { color: #8ca4bd; }
.panel { border: 1px solid #213c57; border-radius: 18px; overflow: hidden; background: #0b192acc; box-shadow: 0 24px 70px #02060c6b; backdrop-filter: blur(18px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 19px 20px; border-bottom: 1px solid #1c344d; }
.panel-head h2 { margin-bottom: 4px; font-size: 1.05rem; }
.panel-head p { margin: 0; color: #7f98b2; font-size: .86rem; }
.connection-dot { width: 10px; height: 10px; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 5px #64748b18; }
.connection-dot.online { background: #34d399; box-shadow: 0 0 0 5px #34d39920; }
.session { display: grid; grid-template-columns: 170px 145px minmax(0, 1fr) 220px; gap: 18px; align-items: center; padding: 17px 20px; border-bottom: 1px solid #162d44; transition: background .15s ease; }
.session:last-child { border-bottom: 0; }
.session:hover { background: #10233a; }
.session-main { min-width: 0; }
.session-main button { display: block; width: 100%; padding: 0; overflow: hidden; color: #f4f8fd; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.session-main small, .time, .session-id { color: #8099b2; font-size: .82rem; }
.session-id { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; width: fit-content; border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 800; }
.badge.running { color: #a5c9ff; background: #173d70; }.badge.waiting { color: #fde2a7; background: #60441d; }.badge.ended { color: #a7ebca; background: #164a39; }
.empty { padding: 64px 20px; color: #8099b2; text-align: center; }.empty.error { color: #fca5a5; }
.dialog-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: #020711dc; backdrop-filter: blur(8px); }
.dialog { width: min(860px, 100%); max-height: 92vh; overflow: auto; padding: 24px; border: 1px solid #2a4867; border-radius: 18px; background: #0b192a; box-shadow: 0 28px 90px #000a; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.dialog-head h2 { margin-bottom: 7px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 20px; }
.detail-card { padding: 14px; border-radius: 12px; background: #10243a; }
.detail-card small { display: block; margin-bottom: 6px; color: #829ab2; }
.interaction-panel { margin-bottom: 20px; padding: 18px; border: 1px solid #785d27; border-radius: 14px; background: #2b2417; }
.interaction-panel h3 { color: #fde2a7; }
.request-text, .raw-details pre { overflow: auto; padding: 14px; border-radius: 11px; background: #07111f; color: #dce9f7; line-height: 1.5; white-space: pre-wrap; }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
.form-actions, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 10px; }
.form-actions span, .section-heading span { color: #91a8c2; font-size: .82rem; }
.interaction-actions { display: flex; justify-content: flex-end; gap: 10px; }
.output-panel { margin-bottom: 20px; }
.section-heading h3 { margin-bottom: 0; }
#recent-output { min-height: 250px; resize: vertical; white-space: pre; tab-size: 4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .83rem; }
.raw-details summary { cursor: pointer; color: #91a8c2; }
@media (max-width: 800px) { .hero { display: block; }.toolbar { justify-content: start; margin-top: 22px; }.session { grid-template-columns: 1fr auto; gap: 8px 12px; }.session .time { grid-column: 1; }.session .badge { grid-column: 2; }.session-main, .session-id { grid-column: 1 / -1; }.summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shell { width: min(100% - 20px, 480px); padding-top: 24px; }.toolbar, .token-field, input, .toolbar button { width: 100%; }.summary-grid article { padding: 14px; }.dialog { padding: 17px; }.detail-grid { grid-template-columns: 1fr; }.form-actions { align-items: stretch; flex-direction: column; }.interaction-actions { flex-direction: column; }.form-actions button { width: 100%; } }
