:root {
  font-family: system-ui, sans-serif;
  color: #23251f;
  background: #f4f5ef;
  --border: #d9ddd1;
  --muted: #535c50;
  --accent: #d6ef98;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem max(5vw, 1.25rem);
  background: #242b22;
  color: white;
  font-weight: 650;
}
#sign-out { margin-inline-start: auto; border: 0; background: transparent; padding: 0; }
#sign-out button { padding: .4rem .75rem; }
#bank-actions, #match { margin-top: 1rem; }
#bank-actions button, #reuse { margin-top: .5rem; background: #eaf2db; }
.brand-mark, .empty > span {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #283322;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
}
main { width: min(90vw, 76rem); margin: 0 auto; padding: 2.75rem 0 4rem; }
.intro { margin: 0 0 2rem; }
h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: .99;
  letter-spacing: -.05em;
}
p { line-height: 1.5; }
.intro p, .note, #status, .empty p, label span { color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 1rem; align-items: start; }
form, .results { border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.65rem); background: white; }
h2 { margin: 0 0 1rem; font-size: 1.25rem; }
label { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; font-weight: 650; }
label span, .note { font-size: .875rem; font-weight: 400; }
.file-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
#resume-file { max-width: 100%; font: inherit; }
#remove-file { width: auto; padding: .35rem .6rem; font-size: .875rem; background: #eaf2db; }
#file-help { margin: .45rem 0 1rem; }
textarea {
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: .7rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  color: inherit;
  background: #fafbf7;
  resize: vertical;
  font: inherit;
}
#context { min-height: 4.5rem; }
button {
  width: 100%;
  padding: .85rem;
  border: 0;
  border-radius: .55rem;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: #22291b;
  cursor: pointer;
}
button:hover { background: #c5e47d; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 3px solid #52722e; outline-offset: 3px; }
.results h2 { margin-bottom: .45rem; }
#status { margin: 0 0 1.25rem; }
#status.error { color: #a12626; }
.empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 16rem;
  padding: 1rem;
  text-align: center;
  border-radius: .65rem;
  border: 1px dashed var(--border);
  background: #fafbf7;
}
.empty > span { margin-bottom: .85rem; }
.empty p { margin: .35rem 0 0; }
.level + .level { margin-top: 1.6rem; }
h3 { font-size: 1rem; padding: .55rem .7rem; border-radius: .45rem; background: #eaf2db; }
details { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; padding: .75rem .35rem; font-weight: 600; line-height: 1.5; }
summary::marker { color: #52722e; }
details p { margin: 0; padding: .25rem .45rem .85rem 1.5rem; white-space: pre-wrap; }
@media (max-width: 760px) { .workspace { grid-template-columns: 1fr; } }
