:root {
  color-scheme: light;
  --paper: #f5f4ef; --ink: #182c3e; --muted: #4d6070; --blue: #164e84;
  --line: #c9d0d5; --wash: #edf3f8;
  font-family: system-ui, sans-serif; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
header, main, footer { max-width: 1120px; margin: auto; padding-inline: clamp(18px, 4vw, 44px); }
header { display: flex; justify-content: space-between; align-items: baseline; padding-block: 21px; border-bottom: 1px solid var(--line); gap: 1em; }
header span, footer, .hint { color: var(--muted); font-size: .85rem; }
.wordmark { color: var(--ink); font-weight: 750; text-decoration: none; }
.intro { padding-block: clamp(32px, 5vw, 66px) 30px; max-width: 720px; }
h1 { font: normal clamp(2.45rem, 5vw, 4.1rem)/1.04 Georgia, serif; letter-spacing: -.03em; margin: 0 0 16px; }
.intro p { font-size: 1.09rem; color: var(--muted); max-width: 61ch; margin: 0; }
h2 { font-size: 1.22rem; margin: 0; line-height: 1.4; } h3 { font-size: .96rem; margin: 24px 0 0; }
p { margin: 10px 0; }
.desk { border-top: 1px solid var(--line); padding-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 27%); gap: clamp(24px,4vw,46px); align-items: start; }
.workspace { background: white; padding: clamp(18px,3vw,30px); }
.heading, .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.heading { justify-content: space-between; margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
#file { display: block; width: 100%; color: var(--muted); border: 1px dashed #889bab; padding: 12px; border-radius: 5px; }
button, #file::file-selector-button { cursor: pointer; font: inherit; font-size: .92rem; font-weight: 600; min-height: 44px; padding: 9px 15px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; }
#file::file-selector-button { margin-right: 8px; min-height: 36px; background: var(--wash); }
button:hover:not(:disabled), #file::file-selector-button:hover { background: var(--wash); }
button.primary { background: var(--blue); border-color: var(--blue); color: white; }
button.primary:hover:not(:disabled) { background: #103b66; }
button.quiet { background: transparent; color: var(--muted); border-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .52; } button, input { font-family: inherit; }
:focus-visible { outline: 3px solid #236bad; outline-offset: 3px; }
.sample-help { margin-top: 20px; font-size: .93rem; } #create { margin-top: 22px; }
#status { color: var(--muted); font-size: .89rem; min-height: 1.5em; } #status.error { color: #922719; }
aside { padding-top: 4px; } aside p { font-size: .94rem; color: var(--muted); }
#result { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: .84rem; }
details { margin-top: 16px; } summary { color: var(--blue); cursor: pointer; } pre { max-height: 22em; overflow: auto; padding: 12px; background: var(--wash); }
caption { color: var(--muted); text-align: left; padding: 6px 0; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px 9px 0; font-variant-numeric: tabular-nums; }
.review { display: flex; gap: 8px; align-items: flex-start; margin: 20px 0 14px; font-size: .9rem; } input[type=checkbox] { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--blue); }
footer { border-top: 1px solid var(--line); margin-top: 36px; padding-block: 20px; }
@media(max-width: 760px) { .desk { grid-template-columns: minmax(0,1fr); } aside { padding-top: 20px; border-top: 1px solid var(--line); } }
@media(max-width: 450px) { .workspace { padding: 18px 12px; } .actions { gap: 7px; } .primary { width: 100%; } }
