:root { color-scheme: light; font: 15px/1.5 system-ui, sans-serif; color: #233240; background: #eef1f8; --ink: #283960; --accent: #334d86; --line: #bcc8e2; --muted: #4b5d7e; --tint: #e7edf9; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 71rem; margin: auto; padding: clamp(.8rem, 4vw, 2.5rem); }
h1, h2, p { margin: 0; }
h1 { color: var(--ink); font-size: clamp(2rem, 5vw, 3.55rem); letter-spacing: -.05em; line-height: 1.05; }
h2 { font-size: 1.25rem; }
.intro, .toolbar, .actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.intro { border-bottom: 2px solid var(--accent); padding: .25rem 0 1rem; margin-bottom: .9rem; }
.intro p, .hint { color: var(--muted); margin-top: .25rem; }
.import-panel, .library-panel, .legal { background: #fcfdff; border: 1px solid var(--line); border-radius: .65rem; padding: clamp(.8rem, 3vw, 1.25rem); margin-bottom: .85rem; }
.upload { display: block; margin-top: .6rem; }
label { font-weight: 620; }
input, select, textarea, button { max-width: 100%; font: inherit; }
input[type=file] { display: block; }
input[type=date], select, textarea { border: 1px solid #8191ad; border-radius: .36rem; padding: .4rem .5rem; color: var(--ink); background: #fff; }
textarea { min-height: 5rem; width: 100%; resize: vertical; font: 13px/1.5 ui-monospace, Consolas, monospace; }
form label { display: block; margin-top: .5rem; }
button { cursor: pointer; color: #fff; background: var(--accent); border: 1px solid var(--accent); padding: .43rem .7rem; border-radius: .38rem; font-weight: 650; }
button.secondary { color: var(--ink); background: var(--tint); border-color: var(--line); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #34578d; outline-offset: 2px; }
input[type=checkbox] { accent-color: var(--accent); }
[role=status]:empty, [role=alert]:empty { display: none; }
[role=alert] { color: #8b2a25; overflow-wrap: anywhere; }
.actions { justify-content: flex-start; margin: .5rem 0; }
#external { margin-top: .4rem; }
.settings { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-bottom: .55rem; }
.settings label { margin: 0; }
.settings input, .settings select { display: block; }
.table-wrap { overflow: auto; margin: .6rem 0; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .44rem .55rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: var(--tint); }
.legal h2:not(:first-child) { margin-top: .8rem; }
footer { display: flex; gap: .25rem 1rem; flex-wrap: wrap; }
a { color: var(--accent); }
