* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6f2;
  color: #1d342e;
  font:
    16px/1.6 system-ui,
    "PingFang SC",
    sans-serif;
}
header,
main {
  max-width: 1080px;
  margin: auto;
  padding: 22px 32px;
}
header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #cad3c9;
  font-size: 14px;
}
a {
  color: #285a4d;
  text-decoration: none;
}
h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 44px 0 12px;
}
h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.intro,
p {
  color: #52635b;
}
.intro {
  margin-bottom: 36px;
}
.controls {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid #c7d4cb;
  border-top: 4px solid #2a6757;
  background: #fff;
}
.controls > div {
  padding: 28px;
}
.controls > div + div {
  border-left: 1px solid #c7d4cb;
}
.controls p {
  min-height: 48px;
  overflow-wrap: anywhere;
}
.batch-drop,
#folder-choice {
  border: 1px dashed #92aa9e;
  border-radius: 6px;
  padding: 16px;
  overflow-wrap: anywhere;
}
.batch-drop {
  background: #f8faf7;
}
.batch-drop.dragging {
  background: #e4f2e9;
  outline: 2px solid #2a6757;
}
.batch-drop small {
  color: #52635b;
  display: block;
}
.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
#folder-choice {
  min-width: 0;
  margin: 16px 0 0;
  border-style: solid;
}
#folder-choice input { accent-color: #235c4e; }
#folder-options label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
}
#folder-options, #batch-names, #import-warnings {
  overflow: auto;
  max-height: 15rem;
  overflow-wrap: anywhere;
}
#fileText { min-height: 0; }
#batch-list {
  padding: 0;
  border: 0;
  margin: 10px 0;
}
#import-alerts {
  color: #793d21;
  border-left: 3px solid #c89369;
  padding-left: 12px;
  margin-bottom: 14px;
}
.pick,
button {
  font: inherit;
  display: inline-block;
  cursor: pointer;
  border: 1px solid #799387;
  border-radius: 6px;
  padding: 9px 18px;
  background: #fff;
  color: #244c40;
}
.pick {
  position: relative;
}
.pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.pick:focus-within,
button:focus-visible {
  outline: 3px solid #37a588;
}
button {
  background: #235c4e;
  color: white;
  border-color: #235c4e;
}
button:disabled {
  background: #d8ded8;
  border-color: #cfd6ce;
  color: #54635b;
  cursor: default;
}
.secondary {
  background: white;
  color: #245647;
}
.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-block: 1px solid #ced7cc;
}
.stats strong {
  display: block;
  font-size: 25px;
}
.stats small {
  color: #54635b;
}
.scroll {
  overflow: auto;
  max-height: 430px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  text-align: left;
  font-size: 14px;
}
td,
th {
  padding: 8px 12px;
  border-bottom: 1px solid #dde2db;
}
th {
  position: sticky;
  top: 0;
  background: #e6ece5;
}
td {
  color: #922c26;
}
details {
  margin: 26px 0;
  padding: 18px 0;
  border-top: 1px solid #cbd4cb;
}
summary {
  cursor: pointer;
}
li {
  margin: 8px 0;
}
#status {
  overflow-wrap: anywhere;
}
#results {
  padding: 20px 0;
}
#ng-summary {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #c7d4cb;
  font: inherit;
  resize: vertical;
}
@media (max-width: 650px) {
  header,
  main {
    padding: 16px;
  }
  .controls {
    grid-template-columns: 1fr;
  }
  .controls > div + div {
    border-left: 0;
    border-top: 1px solid #c7d4cb;
  }
  .controls > div {
    padding: 18px;
  }
  .controls p {
    min-height: 0;
  }
  h1 {
    margin-top: 24px;
  }
}
