:root {
  color-scheme: light;
  font: 100%/1.55 system-ui, sans-serif;
  color: #142a25;
  background: #f6f7f2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.layout { max-width: 56rem; padding: clamp(1rem, 5vw, 3rem); margin-inline: auto; }
.intro { margin-block: clamp(1rem, 6vw, 3rem) 2rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6.5vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: 1.22rem; line-height: 1.25; }
.intro p { max-width: 34rem; margin-top: 1rem; font-size: 1.09rem; color: #425952; }
.tool, .preview {
  background: #fff;
  border: 1px solid #cad9d2;
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 1.6rem);
  margin-bottom: 1.25rem;
}
.choose label { display: block; font-weight: 650; margin-bottom: .35rem; }
input[type="file"], select { font: inherit; max-width: 100%; }
input[type="file"] {
  width: 100%;
  border: 1px solid #a7bcb2;
  background: #f6faf8;
  border-radius: .55rem;
  padding: .4rem;
}
input[type="file"]::file-selector-button {
  font: inherit;
  padding: .45rem .75rem;
  margin-right: .55rem;
  background: #e2eee9;
  color: #142a25;
  border: 0;
  border-radius: .35rem;
  cursor: pointer;
}
.hint { color: #435a52; font-size: .91rem; margin-top: .45rem; }
details { margin-top: .9rem; }
summary { cursor: pointer; color: #24564a; }
details label { margin-top: .55rem; }
select { padding: .5rem; border: 1px solid #a7bcb2; border-radius: .4rem; background: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block: 1.25rem .85rem; }
button {
  font: inherit;
  font-weight: 650;
  min-height: 44px;
  background: #195847;
  color: #fff;
  border: 1px solid transparent;
  border-radius: .55rem;
  padding: .5rem .85rem;
  cursor: pointer;
}
button:disabled { background: #deebe5; color: #4d655c; cursor: default; }
button.secondary { color: #174d40; border-color: #a7bcb2; background: #fff; }
button.clear { color: #24564a; background: transparent; }
:focus-visible { outline: 3px solid #867316; outline-offset: 3px; }
.status { color: #425952; overflow-wrap: anywhere; }
.status[data-state="error"] { color: #872d25; }
.table-wrap { overflow-x: auto; margin-top: .65rem; }
table { border-collapse: collapse; width: 100%; min-width: 27rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .5rem; border-bottom: 1px solid #e3eae6; }
th { background: #f0f5f2; white-space: nowrap; font-size: .88rem; }
td { overflow-wrap: anywhere; max-width: 14rem; font-size: .93rem; }
.details { max-width: 42rem; }
.details h2 { margin-top: 1.5rem; }
.details p { margin-top: .55rem; color: #425952; }
footer { margin-top: 2.25rem; padding-top: .8rem; border-top: 1px solid #cad9d2; color: #51635d; font-size: .87rem; }
@media (max-width: 25rem) {
  .actions button:not(.clear) { flex: 1 1 100%; }
}
