:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #14271f;
  background: #f6f8f5;
  --green: #176342;
  --line: #d7e1d9;
  --muted: #4f6559;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button, a, input, select, textarea { outline-offset: 3px; }
a { color: var(--green); }
button, .primary {
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: white;
  color: inherit;
  padding: .57rem .85rem;
}
.primary {
  display: inline-block;
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 650;
  text-decoration: none;
}
.primary:hover { background: #104e33; }
.quiet { background: transparent; }
.top, .headline, .toolbar, .editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top { background: #123426; color: white; padding: .85rem clamp(1rem, 4vw, 3rem); }
.top .quiet { border-color: #8ca497; }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 750; }
.brand small { color: #c8e6d3; font-size: .8rem; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; background: #d7f594; color: #163b2a; border-radius: .5rem; }
#account { font-size: .875rem; }
main { padding: clamp(1rem, 4vw, 3rem); }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.1; letter-spacing: -.04em; margin: .3rem 0 1.15rem; }
.eyebrow { margin: 0; font-size: .8rem; letter-spacing: .12em; font-weight: 700; color: var(--green); }
.toolbar { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
nav, .filters, .links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
nav button[aria-pressed="true"] { background: #dceee1; color: #104e33; border-color: #8aad96; font-weight: 700; }
input:not([type=checkbox]), select, textarea {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #aabbb0;
  border-radius: .5rem;
  background: white;
  color: inherit;
  padding: .55rem .65rem;
}
select {
  appearance: none;
  padding-right: 2rem;
  background: linear-gradient(45deg, transparent 50%, #36594a 50%) right 13px center / 6px 6px no-repeat,
    linear-gradient(135deg, #36594a 50%, transparent 50%) right 7px center / 6px 6px no-repeat white;
}
#status, #editor-status { color: #7a392a; }
#status:empty { margin: .75rem 0; }
#board { display: flex; overflow-x: auto; align-items: stretch; gap: .85rem; padding-bottom: .75rem; }
.column { flex: 1 0 14rem; min-height: min(27rem, 62vh); background: #eaf0eb; border: 1px solid var(--line); border-radius: .75rem; padding: .65rem; }
.column h2 { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; font-size: .95rem; min-height: 2.8rem; margin: .15rem .15rem .4rem; }
.count { background: #d4e5d8; border-radius: .45rem; padding: .12rem .4rem; font-size: .8rem; }
.card { text-align: left; display: grid; gap: .35rem; width: 100%; margin: .55rem 0; padding: .8rem; box-shadow: 0 2px 3px #1739280c; overflow-wrap: anywhere; }
.card:hover { border-color: #65947b; }
.secondary, .empty { color: var(--muted); font-size: .875rem; }
.empty { padding: .8rem; border: 1px dashed #adbdaf; border-radius: .55rem; text-align: center; }
.next { color: var(--green); font-size: .875rem; }
dialog { width: min(42rem, calc(100% - 1.5rem)); max-height: 90vh; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; color: inherit; }
dialog::backdrop { background: #0a241bb0; }
.editor-head { margin-bottom: 1rem; }
.editor-head h2 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.form-grid label, #file-picker { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.wide { grid-column: 1 / -1; }
fieldset, #attachments { margin: 1rem 0; border: 1px solid var(--line); border-radius: .55rem; padding: .7rem; }
fieldset label { display: block; margin: .4rem 0; }
#attachments h3 { margin: 0; }
#file-list { overflow-wrap: anywhere; }
.links { margin-top: 1rem; }
.signin { min-height: 100vh; display: grid; place-items: center; }
.signin main { border: 1px solid var(--line); border-radius: 1rem; background: white; }
.signin h1 { margin-top: 1.1rem; }
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .column { flex-basis: 80vw; }
}
