* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    15px/1.5 Inter,
    system-ui,
    sans-serif;
  color: #182d27;
  background: #f4f6f0;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.7em;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}
h2 {
  letter-spacing: -0.035em;
}
small {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: #537569;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  background: #205845;
  border: 1px solid transparent;
  color: white;
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.quiet,
nav button {
  background: transparent;
  color: inherit;
  border-color: #c4d2c9;
}
input,
select,
textarea {
  border: 1px solid #c4d2c9;
  border-radius: 7px;
  padding: 8px;
  background: white;
  color: inherit;
  max-width: 100%;
}
label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #456357;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d99536;
}
#login {
  max-width: 920px;
  margin: 12vh auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #d1dcd3;
}
.intro,
aside {
  background: #112e27;
  color: #f1faea;
}
.intro,
#auth {
  padding: clamp(25px, 5vw, 64px);
}
.intro h1 {
  margin-top: 55px;
}
.brand {
  font-size: 20px;
  letter-spacing: -0.035em;
}
#auth {
  display: grid;
  gap: 15px;
}
#authError,
.error {
  color: #983a2e;
}
#shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  padding: 28px 16px;
}
aside .brand {
  display: block;
  margin: 0 8px 35px;
}
nav {
  display: grid;
  gap: 5px;
  margin-bottom: 25px;
}
nav button {
  text-align: left;
  border: 0;
  font-weight: 500;
}
nav button.active {
  background: #cff5aa;
  color: #163a29;
}
main {
  padding: clamp(16px, 3vw, 48px);
  min-width: 0;
}
header,
.row,
.tools,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
header {
  margin-bottom: 22px;
}
header h1 {
  margin: 4px 0;
}
#today,
.muted {
  color: #63766d;
  font-size: 13px;
}
.box,
details,
dialog {
  background: white;
  border: 1px solid #d7e0d7;
  border-radius: 13px;
  padding: 18px;
  margin-bottom: 14px;
}
.tools {
  justify-content: flex-start;
}
.filters,
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.filters {
  margin: 12px 0;
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 11px 9px;
  border-bottom: 1px solid #e5ebe4;
}
th {
  color: #537064;
  font-size: 12px;
}
td:first-child {
  width: 32px;
}
.link {
  padding: 0;
  background: none;
  color: #166248;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}
a {
  color: #176149;
  overflow-wrap: anywhere;
}
.pill {
  background: #e5f2e2;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pager {
  margin-top: 14px;
}
.board {
  display: flex;
  overflow-x: auto;
  align-items: flex-start;
  gap: 12px;
}
.lane {
  background: #e6ede5;
  border-radius: 12px;
  padding: 12px;
  min-width: 230px;
  width: 230px;
}
.tile {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
}
.lane.over {
  outline: 2px solid #367b51;
}
dialog {
  position: fixed;
  inset: 0;
  width: min(760px, 96vw);
  max-height: 90vh;
  margin: auto;
  color: inherit;
}
dialog::backdrop {
  background: #10271fb0;
}
#close {
  float: right;
}
#detail {
  overflow-wrap: anywhere;
}
#detail h2 {
  padding-right: 6em;
}
#detail section {
  border-top: 1px solid #dae3da;
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
dt {
  color: #547263;
  font-size: 13px;
  margin-top: 8px;
}
dd {
  margin: 2px 0;
  white-space: pre-wrap;
}
.metric {
  font-size: 30px;
  display: block;
}
progress {
  width: 100%;
  accent-color: #327454;
}
.bar {
  background: #d3e8cd;
  border-radius: 4px;
  height: 7px;
  margin: 3px 0 12px;
}
#message {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 90vw;
  z-index: 10;
  background: #173a2d;
  color: white;
  border-radius: 9px;
  padding: 12px 18px;
}
.bulk {
  margin: 12px 0;
}
.stack {
  display: grid;
  gap: 10px;
}
.stack textarea {
  width: 100%;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  #shell,
  #login {
    display: block;
  }
  #login {
    margin: 16px;
  }
  .intro h1 {
    margin-top: 18px;
  }
  .intro h1 br {
    display: none;
  }
  aside {
    padding: 12px;
  }
  aside .brand {
    margin: 0 0 8px;
  }
  nav {
    display: flex;
    overflow: auto;
    margin: 0 0 8px;
  }
  nav button {
    white-space: nowrap;
  }
  aside #logout {
    padding: 3px 9px;
    font-size: 12px;
  }
  .box,
  details {
    padding: 12px;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  header {
    align-items: end;
  }
  .board {
    scroll-snap-type: x proximity;
  }
  .lane {
    scroll-snap-align: start;
  }
  #detail h2 {
    font-size: 20px;
  }
}
