:root {
  color-scheme: light;
  --background: #eef0e8;
  --panel: #fffef7;
  --ink: #1c2e26;
  --muted: #4c5f55;
  --line: #ccd6c8;
  --green: #dae9aa;
  --error: #9a332b;
  font-family: "Instrument Sans", Geist, system-ui, sans-serif;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; font-weight: 650; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #496e54; outline-offset: 4px; }
.shell { width: min(1150px, calc(100% - 56px)); margin: 0 auto; }
.site-header { background: #f9faf4; border-bottom: 1px solid var(--line); }
.header-content, .page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.header-content { padding-block: 17px; font-size: .9rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.brand span { background: var(--ink); color: var(--green); border-radius: 7px; padding: 5px 8px; font-size: .81rem; }
.intro { padding-block: clamp(32px, 6vw, 68px) 28px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.065em; line-height: 1.04; }
.intro p { max-width: 52ch; margin-top: 13px; color: var(--muted); font-size: 1.05rem; }
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(14px, 2vw, 24px);
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(18px, 3.2vw, 28px);
  background: var(--panel);
}
.results { min-height: 244px; }
h2 { margin-bottom: 10px; font-size: 1.23rem; letter-spacing: -.025em; }
p, input, button, select { font-size: .94rem; }
.hint { color: var(--muted); line-height: 1.55; font-size: .86rem; }
form { display: grid; gap: 8px; margin-top: 16px; }
label { margin-top: 6px; font-size: .9rem; font-weight: 700; }
input, select, button { font: inherit; }
input[type="file"], select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9f2;
  padding: 8px;
  font-size: .88rem;
}
input[type="file"]::file-selector-button {
  color: var(--ink);
  background: #e5ecda;
  border: 0;
  border-radius: 5px;
  padding: 6px 9px;
  margin-right: 8px;
  cursor: pointer;
}
select { min-height: 39px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
button {
  border-radius: 7px;
  border: 1px solid var(--ink);
  padding: 8px 13px;
  min-height: 42px;
  font-size: .87rem;
  font-weight: 700;
  color: var(--green);
  background: var(--ink);
  cursor: pointer;
}
button:hover { background: #2d4c3c; }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
button.secondary:hover { background: #e9efde; }
button:disabled { cursor: wait; opacity: .65; }
#status { color: var(--muted); margin-bottom: 15px; overflow-wrap: anywhere; }
#status.error, .error { color: var(--error); }
.table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 15px;
}
table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .85rem; }
th, td { max-width: 250px; padding: 10px 11px; text-align: left; overflow-wrap: anywhere; }
th { position: sticky; top: 0; background: #e5ebdb; }
td { border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { font: .81rem ui-monospace, monospace; }
.result-follow-up { margin: 0 0 12px; }
.page-footer { margin-top: 24px; padding-block: 17px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .workspace { grid-template-columns: 1fr; }
  .results { min-height: 0; }
}
