:root[data-theme="corporate"] {
  --color-primary: #b91e28;
  --color-primary-content: #fff;
  --color-base-content: #2d2d30;
  --radius-box: 1.5rem;
  --radius-field: .8rem;
  --depth: 0;
}

body {
  min-height: 100vh;
  background: #f3f3f5;
  color: var(--color-base-content);
  font-family: Inter, system-ui, sans-serif;
}

main {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: .75rem;
  max-width: 69rem;
  margin: 0 auto;
  padding: clamp(2rem, 9vh, 6rem) 1.25rem;
}

.intro, .card-body { padding: clamp(1.5rem, 3.2vw, 2.75rem); }
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-self: start;
  min-height: 22rem;
  background: #2d2d30;
  color: #fff;
}

/* Offset outlines suggest the corners of stacked sheets. */
.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4rem;
  bottom: -7rem;
  width: 16rem;
  height: 10rem;
  border-radius: 1rem;
  background: #38383c;
  transform: rotate(-26deg);
  box-shadow: 0 -.5rem #2d2d30, 0 -.6rem #69696d,
              0 -1.1rem #2d2d30, 0 -1.2rem #ad424a,
              0 -1.7rem #2d2d30, 0 -1.8rem #69696d;
}

h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); font-weight: 650; line-height: 1.03; letter-spacing: -.035em; }
.intro p { margin-top: 1.35rem; max-width: 30ch; color: #e4e4e7; font-size: 1.05rem; line-height: 1.5; }

.card-body { gap: 1rem; }
.fieldset { min-width: 0; padding: 0; gap: 0; }
.fieldset-legend { padding: 0; font-size: 1.65rem; letter-spacing: -.035em; font-weight: 650; }
#file-hint, #drop-zone, #status { color: #585861; font-size: .92rem; }
#file-hint { margin: .25rem 0 1rem; }

#drop-zone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .5rem;
  min-height: 8.25rem;
  border: 1px dashed #a8a8af;
  border-radius: 1rem;
  background: #f8f8f9;
}
#drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#drop-zone input:disabled { cursor: wait; }
#drop-zone:hover, #drop-zone.over { border-color: var(--color-primary); background: #fff6f6; }
#drop-zone:focus-within { outline: 2px solid var(--color-primary); outline-offset: 3px; }
#converter:has(#results:not(:empty)) .pick-action { background: white; border-color: #c6c6cb; color: var(--color-base-content); }

.card-actions { align-items: center; gap: .5rem; }
.card-actions .btn:disabled { color: #74747b; background: #eeeef0; }
.badge-success { color: #24643b; }
#results:empty, #status:empty, [hidden] { display: none !important; }
#results .list-row { padding-inline: 0; align-items: center; grid-template-columns: minmax(0, 1fr) auto auto; grid-auto-flow: row; }
.file-name, .alert { min-width: 0; overflow-wrap: anywhere; }
.list-row .alert { grid-column: 1 / -1; grid-row: 2; white-space: pre-line; color: var(--color-base-content); }

@media (max-width: 46rem) {
  main { grid-template-columns: minmax(0, 1fr); max-width: 38rem; padding: 1rem; }
  .intro { min-height: auto; }
  .intro p { max-width: 27ch; }
  .intro::after { right: -9rem; bottom: -8.5rem; }
}
@media (max-width: 32rem) {
  #results .list-row { display: flex; flex-wrap: wrap; gap: .5rem; }
  .file-name { flex-basis: 100%; }
}
