@font-face {
  font-family: "DM Sans";
  src: url("/assets/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #302820;
  background: #f7f5ef;
  --ink: #302820;
  --muted: #665f57;
  --line: #dcd7cc;
  --orange: #ff812e;
  --paper: #fffefa;
  --green: #286446;
  --red: #923821;
  --r: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
header {
  background: #302820;
  color: #fff8e9;
}
.topbar,
main {
  max-width: 1344px;
  margin: auto;
  padding-inline: clamp(16px, 4vw, 62px);
}
.topbar {
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 6vw, 86px);
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 92px;
  height: auto;
}
.brand span {
  border-left: 1px solid #776e60;
  padding-left: 14px;
  font-size: 0.87rem;
  font-weight: 700;
  color: #e8dfcf;
}
nav {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 2.5vw, 36px);
}
nav a {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  color: #d8d0c4;
  font-size: 0.94rem;
  font-weight: 650;
  white-space: nowrap;
}
nav a:hover,
nav a[aria-current] {
  color: white;
}
nav a[aria-current]:after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--orange);
}
main {
  padding-block: clamp(28px, 4vw, 56px) 60px;
  outline: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 720;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.04rem;
  line-height: 1.4;
}
.head,
.sectionhead,
.line,
.cardtitle,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.head {
  align-items: flex-end;
  margin-bottom: 30px;
}
.head p,
.sectionhead p,
.muted,
small {
  color: var(--muted);
}
.head p {
  margin-top: 9px;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
.btn,
input,
select,
textarea {
  font: inherit;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 680;
  font-size: 0.93rem;
  text-decoration: none;
  border: 1px solid #bcb4a8;
  border-radius: 30px;
  padding: 9px 17px;
  background: var(--paper);
  color: var(--ink);
  min-height: 42px;
}
button:hover,
.btn:hover {
  background: #f4f0e6;
}
.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #291d12;
}
.primary:hover {
  background: #ff984f;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2e6eaf;
  outline-offset: 3px;
}
.plus {
  font-size: 1.25rem;
  line-height: 0.8;
}
.stats {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 26px;
  overflow: hidden;
}
.stat {
  padding: 19px clamp(16px, 2.2vw, 32px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
}
.stat:last-child {
  border: 0;
}
.stat:hover {
  background: #f7f3ea;
}
.stat b {
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 635;
  letter-spacing: -0.06em;
  line-height: 1.14;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 0.91rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(16px, 2vw, 28px);
  min-width: 0;
}
.panel + .panel,
.stack > * + * {
  margin-top: 22px;
}
.sectionhead,
.cardtitle {
  margin-bottom: 18px;
}
.label,
.chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 660;
  line-height: 1.5;
  border-radius: 20px;
  padding: 3px 10px;
  background: #ebe8e0;
  color: #50493f;
  white-space: nowrap;
}
.good {
  background: #e0efe4;
  color: #245b3c;
}
.warn {
  background: #ffeadb;
  color: #934015;
}
.bad {
  background: #f7e1dd;
  color: #893726;
}
.blue {
  background: #e3edf3;
  color: #375d73;
}
.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.row strong,
.table a {
  font-weight: 720;
}
.row:hover strong,
.table a:hover {
  text-decoration: underline;
}
.row div,
.table td {
  overflow-wrap: anywhere;
}
.row small,
.table small {
  display: block;
  font-size: 0.89rem;
  line-height: 1.45;
  margin-top: 2px;
}
.due {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
  text-align: right;
}
.due.late {
  color: var(--red);
}
.pipeline {
  display: grid;
  gap: 14px;
}
.pipe {
  color: inherit;
  text-decoration: none;
}
.pipe div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 0.92rem;
}
meter {
  display: block;
  width: 100%;
  height: 9px;
  background: #ede9df;
  border: 0;
  border-radius: 9px;
}
meter::-webkit-meter-bar {
  background: #ede9df;
  border: 0;
  height: 8px;
  border-radius: 9px;
}
meter::-webkit-meter-optimum-value {
  background: #e27c36;
  border-radius: 9px;
}
meter::-moz-meter-bar {
  background: #e27c36;
  border-radius: 9px;
}
.pipe:hover div {
  text-decoration: underline;
}
.hint,
.empty {
  color: var(--muted);
  font-size: 0.96rem;
}
.empty {
  padding: 17px 0;
}
.back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.93rem;
}
.tools {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tools .search {
  flex: 1;
  min-width: 190px;
}
.tools label {
  min-width: 155px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.89rem;
  font-weight: 660;
}
input,
select,
textarea {
  border: 1px solid #bdb7aa;
  border-radius: 7px;
  background: #fffefa;
  padding: 9px 11px;
  min-height: 42px;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  font-size: 1rem;
  font-weight: 450;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235a554c' stroke-width='1.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: #aa4d11;
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 620;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 10px;
  border-bottom: 1px solid #e6e1d7;
  font-size: 0.96rem;
}
.table th:first-child,
.table td:first-child {
  padding-left: 0;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table a {
  text-decoration: none;
}
.panel a.text,
.text {
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gridform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.full {
  grid-column: 1/-1;
}
.form-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.form-section:first-child {
  border: 0;
  margin: 0;
  padding: 0;
}
.form-section h2 {
  margin-bottom: 14px;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 19px;
}
.formpage {
  max-width: 850px;
}
.facts {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) 1.5fr;
  gap: 9px 16px;
  font-size: 0.96rem;
  margin: 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 19px 21px;
  border-left: 1px solid #d4cbbd;
  margin-left: 4px;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  background: #a58c70;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.timeline small {
  font-size: 0.82rem;
}
.formsingle {
  display: grid;
  gap: 12px;
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92vw;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 3;
  box-shadow: 0 5px 20px #30282026;
}
#notice:empty {
  display: none;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 5px;
  background: white;
  color: var(--ink);
  padding: 8px;
  z-index: 4;
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.notice {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-left: 4px solid #c5762d;
  background: #fff0de;
}
@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .topbar {
    gap: 20px;
    min-height: 64px;
  }
  .brand img {
    width: 76px;
  }
  .brand span {
    display: none;
  }
  nav {
    gap: 17px;
  }
}
@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 12px;
  }
  .brand img {
    width: 71px;
  }
  .brand span {
    display: block;
    padding-left: 10px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  nav a {
    font-size: 0.85rem;
    padding-block: 9px;
  }
  .head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 13px 16px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .gridform {
    grid-template-columns: 1fr;
  }
  .tools label {
    min-width: 0;
    flex: 1;
  }
  .tools .search {
    flex-basis: 100%;
  }
  .table,
  .table tbody {
    display: block;
  }
  .table thead {
    display: none;
  }
  .table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    gap: 7px 12px;
  }
  .table td {
    padding: 0;
    border: 0;
  }
  .table td:first-child {
    grid-column: 1/-1;
  }
  .table td[data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
  }
  .table tr:last-child {
    border: 0;
  }
  .due {
    white-space: normal;
  }
  .head .primary {
    min-height: 38px;
  }
}
main.login {
  max-width: 520px;
  padding-top: clamp(56px, 12vh, 140px);
}
