:root { color-scheme: light dark; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: Canvas; color: CanvasText; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
.shell { max-width: 1400px; margin: 0 auto; padding: 1rem; }
.bar, .controls, .meta, .actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.bar { justify-content: space-between; border-bottom: 1px solid GrayText; padding-bottom: 1rem; }
.status { padding: .3rem .55rem; border: 1px solid currentColor; border-radius: .25rem; }
.layout { display: grid; grid-template-columns: minmax(18rem, 30rem) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.panel { border: 1px solid GrayText; border-radius: .4rem; padding: 1rem; min-width: 0; }
.messages { list-style: none; padding: 0; margin: 1rem 0; }
.message { width: 100%; text-align: left; padding: .75rem; border: 1px solid GrayText; background: transparent; margin-top: .5rem; }
.message[aria-current="true"] { border-width: 3px; }
.muted { color: GrayText; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dt { font-weight: 700; margin-top: .75rem; } dd { margin-left: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
iframe { display: block; width: 100%; min-height: 24rem; border: 1px solid GrayText; background: white; }
.error { border-color: #b00020; color: #b00020; }
dialog { max-width: 32rem; border: 1px solid GrayText; border-radius: .4rem; }
.hidden { display: none; }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } }
