:root { color-scheme: light; font: 16px/1.55 system-ui, sans-serif; background: #f5f7fa; color: #212632; --accent: #304f86; --line: #d9dfeb; --muted: #4d586b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 66rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
.intro { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; column-gap: 2rem; row-gap: .7rem; margin-bottom: 1.35rem; }
.intro p, #file-help, #preview-help, #embedded-help, #notice-overflow { color: var(--muted); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .55rem; }
h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.05rem; }
p { margin: .35rem 0 .65rem; }
#workspace > section, .legal { border: 1px solid var(--line); background: #fff; border-radius: .78rem; padding: clamp(.8rem, 3vw, 1.5rem); margin-bottom: 1rem; }
label, legend, summary { font-weight: 600; }
.file-label { display: block; margin-bottom: .3rem; }
select, input, button { font: inherit; max-width: 100%; }
select { padding: .4rem .5rem; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: .35rem; }
button, input::file-selector-button { padding: .5rem .8rem; border: 1px solid var(--accent); border-radius: .4rem; color: white; background: var(--accent); cursor: pointer; }
button.secondary, input::file-selector-button { color: var(--accent); background: #fff; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; margin: .65rem 0; }
details { margin: .55rem 0 .8rem; }
summary { cursor: pointer; }
fieldset { display: flex; gap: .5rem 1rem; flex-wrap: wrap; margin: .65rem 0; border: 1px solid var(--line); }
fieldset label { font-weight: 400; overflow-wrap: anywhere; }
.table-wrap { width: 100%; max-height: 25rem; overflow: auto; border: 1px solid var(--line); border-radius: .4rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: .55rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; min-width: 8.5rem; }
th { background: #f0f4fb; font-size: .88rem; }
td { font-size: .92rem; }
#notices { margin: 1rem 0 .85rem; }
#issues { margin: .45rem 0; padding-inline-start: 1.3rem; overflow-wrap: anywhere; }
#error { color: #8e253d; }
#error:empty, #export-status:empty { display: none; }
footer { margin-top: 1rem; display: flex; flex-wrap: wrap; column-gap: 1rem; color: var(--muted); font-size: .86rem; }
a { color: var(--accent); }
@media (max-width: 32rem) { .intro select { display: block; margin-top: .25rem; } }
