:root { color-scheme: light dark; font: 13px/20px ui-sans-serif, system-ui, sans-serif; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { display: flex; flex-direction: column; background: Canvas; color: CanvasText; }
#view { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 16px 16px; }
#view > p { margin: 0 0 8px; }
.st { display: block; padding: 10px 12px; margin: 0 0 8px; border-radius: 6px; background: color-mix(in srgb, CanvasText 6%, Canvas); font: 12px/18px ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
#foot { flex: none; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid color-mix(in srgb, CanvasText 12%, Canvas); }
#foot:empty { display: none; }
#foot .t3 { flex: 1 1 160px; }
button { height: 32px; padding: 0 12px; border: 1px solid color-mix(in srgb, CanvasText 18%, Canvas); border-radius: 6px; background: transparent; color: CanvasText; font: 500 13px ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pri { border-color: CanvasText; background: CanvasText; color: Canvas; }
.t3 { opacity: .6; font-size: 12px; }
.bad { color: #c2410c; }
.txt { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.files { margin: 0 0 8px; }
.files summary { cursor: pointer; }
.refs { margin: 0 0 8px; }
.refs p { margin: 0; }
.files ul, .refs ul { margin: 4px 0 0; padding-left: 18px; font: 12px/18px ui-monospace, monospace; overflow-wrap: anywhere; }
.pic { display: block; box-sizing: border-box; max-width: 100%; height: auto; margin: 0 0 8px; border: 1px solid color-mix(in srgb, CanvasText 12%, Canvas); border-radius: 6px; background: #fff; }
.opt { margin: 0 0 8px; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, CanvasText 6%, Canvas); }
.opt p { margin: 0; }
.opt .pic { margin: 8px 0 0; }
.choice { display: block; width: 100%; height: auto; min-height: 36px; margin: 0 0 8px; padding: 7px 12px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
