:root {
  color-scheme: light;
  color: #20292d;
  background: #f1f4f3;
  font: 100%/1.55 system-ui, sans-serif;
  --ink: #20292d;
  --muted: #495a61;
  --accent: #075c56;
  --line: #d5dfdd;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.page-width { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
header { padding: 2.1rem 0; background: #103d3c; color: #fff; }
header p { margin: .55rem 0 0; max-width: 72ch; color: #e1efec; }
h1, h2 { margin: 0; line-height: 1.18; }
h1 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); letter-spacing: -.03em; }
h2 { font-size: 1.27rem; letter-spacing: -.02em; }
p { margin: .65rem 0; }
main { padding-block: 1.25rem 2.5rem; }
.panel { margin-bottom: 1rem; padding: 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: .7rem; }
.form-section + .form-section { margin-top: 1.25rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; margin-top: .7rem; }
label { display: grid; gap: .25rem; font-size: .94rem; font-weight: 600; }
.wide { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: .45rem; margin: 1rem 0; padding: .35rem .8rem .8rem; }
legend { padding: 0 .35rem; font-size: .94rem; font-weight: 600; }
#batch-form input:not([type="checkbox"]), #batch-form select {
  width: 100%;
  padding: .54rem .63rem;
  border: 1px solid #83948f;
  border-radius: .3rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.check { display: flex; align-items: start; gap: .5rem; }
.check input { margin-top: .26rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.actions button {
  border: 1px solid var(--accent);
  border-radius: .35rem;
  padding: .55rem .85rem;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.actions button.secondary { color: var(--accent); background: #fff; }
.actions button:disabled { opacity: .55; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #087c73; outline-offset: 3px; }
.formats, #upload-disabled, #empty-history, #closed-batch { color: var(--muted); }
.formats { font-size: .92rem; margin-bottom: 1rem; }
.feedback { color: #86251c; }
.table-wrap { overflow-x: auto; margin-top: .7rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { background: #edf4f2; white-space: nowrap; }
td:first-child, td:nth-child(2) { overflow-wrap: anywhere; }
td:nth-child(3), .status { white-space: nowrap; }
.status-stored { color: #075c43; }
.status-error, .status-held { color: #86251c; }

@media (max-width: 44rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 32rem) {
  .page-width { width: calc(100% - 1.5rem); }
  .panel { padding: .8rem; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Slide files have no browser preview; keep the details form fully visible when editing a file. */
#dashboard .uppy-Dashboard-FileCard-preview { height: 88px; flex: 0 0 88px; }
#dashboard .uppy-Dashboard-FileCard-preview .uppy-Dashboard-Item-previewIconWrap { height: 64px; }
#dashboard .uppy-Dashboard-FileCard-info { flex: 1 1 auto; height: auto; }
