:root {
  font: 16px/1.45 system-ui, sans-serif;
  color: #202b26;
  background: #f5f4ef;
  --green: #173830;
  --border: #c9cec7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: white;
  padding: calc(12px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 23px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
main { max-width: 700px; margin: auto; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
form, #workspace, details, article { display: grid; gap: 12px; }
label { display: grid; gap: 5px; }
input, button {
  font: inherit;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  padding: 8px 12px;
  min-height: 44px;
}
input { width: 100%; min-width: 0; }
button { cursor: pointer; }
header button { color: var(--green); }
button.primary, button[aria-pressed=true] { color: white; background: var(--green); border-color: var(--green); }
button:disabled { opacity: .55; cursor: default; }
.toolbar, nav { display: flex; gap: 7px; align-items: flex-start; }
.toolbar { flex-wrap: wrap; justify-content: space-between; }
#results { display: grid; gap: 8px; }
details, article {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}
summary { cursor: pointer; font-weight: 650; min-height: 24px; }
details > :not(summary) { margin-top: 9px; }
article button { justify-self: start; }
.meta, #status { color: #43564c; font-size: 14px; }
#status:not(:empty) { margin-bottom: 12px; }
:focus-visible { outline: 2px solid #2b735f; outline-offset: 2px; }
