:root {
  font-family: system-ui, sans-serif;
  color: #14282d;
  background: #f2f7f6;
  line-height: 1.5;
  --accent: #075d51;
  --line: #cededb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  min-height: 60px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 4rem);
}
a { color: var(--accent); }
.brand { font-weight: 750; text-decoration: none; }
main { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 8vw, 5rem) 1rem; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.055em; line-height: 1.08; margin: 0; }
h2 { margin: 0; font-size: 1.3rem; }
.intro { margin: .8rem 0 1.8rem; }
form, section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1rem, 4vw, 1.6rem);
  margin: 0 0 1rem;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-weight: 700; margin-bottom: .35rem; }
button, input, .primary { font: inherit; }
button, .primary, input::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f7f6;
  color: #14282d;
  cursor: pointer;
  min-height: 44px;
  padding: .55rem .8rem;
}
input[type="text"] { border: 1px solid var(--line); border-radius: 8px; width: 100%; padding: .6rem .75rem; }
input[type="file"] { max-width: 100%; min-width: 0; }
input::file-selector-button { margin-right: .6rem; }
.source, .result-header { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.result-header { justify-content: space-between; }
#split, .primary { color: white; background: var(--accent); border-color: var(--accent); text-decoration: none; }
#split:disabled { opacity: .52; cursor: default; }
.help { margin: .3rem 0 1.15rem; color: #405b60; font-size: .91rem; overflow-wrap: anywhere; }
#status { margin: .8rem 0 0; }
#status:empty { margin: 0; }
#status[data-error="true"] { color: #8e2422; }
ul { margin-bottom: 0; padding-left: 1.4rem; }
li { margin-top: .35rem; }
