:root {
  font-family: system-ui, sans-serif;
  color: #162c29;
  background: #eef3f2;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 68rem; margin: auto; padding: clamp(1rem, 5vw, 4rem) 1rem; }
header { background: #143e38; color: #fff; padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 1rem; }
h1 { margin: 0; font-size: clamp(1.85rem, 5vw, 3.1rem); line-height: 1.15; letter-spacing: -.04em; }
header p { color: #d4e8e3; margin: .75rem 0 0; }
.controls, .results { background: #fff; border: 1px solid #d7e4e0; border-radius: 1rem; margin-top: 1rem; padding: clamp(1rem, 3vw, 1.75rem); }
.controls { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; }
.controls > * { min-width: 0; }
label { display: block; font-weight: 700; margin-bottom: .5rem; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; }
textarea { padding: .75rem; border: 1px solid #93ada6; border-radius: .5rem; resize: vertical; }
.import-option { margin-top: 1.1rem; }
.url-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.url-controls input { flex: 1 1 12rem; min-width: 0; padding: .55rem .75rem; border: 1px solid #93ada6; border-radius: .5rem; }
#import-status { margin-bottom: 0; }
#import-status:empty { margin-top: 0; }
input::file-selector-button, button { border: 0; border-radius: .5rem; padding: .55rem .85rem; cursor: pointer; font-weight: 650; }
input::file-selector-button { color: #143e38; background: #e4eeeb; margin-right: .5rem; }
button { background: #176456; color: #fff; }
button:hover { background: #114b41; }
:focus-visible { outline: 3px solid #297e71; outline-offset: 3px; }
.hint { margin: .4rem 0 .85rem; color: #4a605b; font-size: .9rem; }
h2 { margin: 0; font-size: 1.4rem; }
#status { margin: .4rem 0 0; }
.error { color: #a52a2a; }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid #dde8e5; padding: .65rem .75rem; }
th { background: #eef4f2; }
td:nth-child(2) { white-space: nowrap; }
@media (max-width: 42rem) { .controls { grid-template-columns: 1fr; gap: 1rem; } }
