@font-face {
  font-family: Manrope;
  src: url("/manrope.ttf");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #202a26;
  background: #fff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #1b7158;
}
button {
  cursor: pointer;
  border: 1px solid #ced6d1;
  background: white;
  color: #203d32;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 4px;
  font-weight: 650;
}
button:hover {
  background: #edf3ef;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #174e40;
  color: white;
  border-color: #174e40;
}
.primary:hover {
  background: #246650;
}
a {
  color: #174e40;
  text-underline-offset: 4px;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 19px;
  margin: 32px 0 12px;
}
p {
  max-width: 72ch;
}
.muted,
small {
  color: #5d6b63;
}
.shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
}
aside {
  background: #f5f7f5;
  border-right: 1px solid #dce3dd;
  padding: 30px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  padding: 0 12px 22px;
}
.brand span {
  font-weight: 500;
  font-size: 12px;
  display: block;
  color: #657169;
}
nav {
  display: grid;
  gap: 3px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #47584f;
  min-height: 44px;
}
nav a.active {
  background: #e0eae3;
  color: #174e40;
  font-weight: 750;
}
nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
aside footer {
  margin-top: auto;
  padding: 24px 12px 0;
}
.workspace {
  min-width: 0;
}
header {
  height: 76px;
  padding: 0 40px;
  border-bottom: 1px solid #e1e6e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header small {
  font-size: 12px;
}
main {
  padding: 36px 40px 80px;
  max-width: 1440px;
}
.titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.titlebar p {
  margin: 0;
}
.beta {
  background: #fff4da;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 28px;
  display: inline-block;
}
.queues {
  border-top: 1px solid #d9e1dc;
}
.queue {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #d9e1dc;
  text-decoration: none;
  color: inherit;
}
.queue strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.queue p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #68766d;
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.statline {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e1e6e2;
}
.statline strong {
  font-variant-numeric: tabular-nums;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 400px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff;
  color: #202a26;
  border: 1px solid #c7d1ca;
  border-radius: 4px;
  caret-color: #174e40;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #66736b;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 14px;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 6px;
  font-weight: 450;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.wide {
  grid-column: 1/-1;
}
.editor {
  max-width: 760px;
  border-top: 1px solid #d8e0d9;
  padding-top: 24px;
  margin-bottom: 32px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 12px;
  color: #627067;
  font-weight: 600;
  background: #f5f7f5;
}
td,
th {
  padding: 14px 12px;
  border-bottom: 1px solid #e0e6e1;
}
td button {
  font-weight: 600;
  text-align: left;
}
.tag {
  font-size: 12px;
  background: #eaf0eb;
  padding: 3px 7px;
  white-space: nowrap;
}
.empty {
  padding: 46px 0;
  max-width: 540px;
}
.empty h2 {
  margin-top: 0;
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 30px;
}
.login h1 {
  margin: 35px 0 16px;
}
.login button {
  width: 100%;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: #203e31;
  color: white;
  padding: 16px 22px;
  z-index: 10;
}
.messages {
  max-width: 850px;
}
.message {
  padding: 20px 0;
  border-bottom: 1px solid #dfe5df;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message strong {
  font-size: 12px;
  color: #5a6d61;
}
.message p {
  margin: 8px 0;
}
.compose {
  margin-top: 24px;
  max-width: 850px;
}
.compose input[type="file"] {
  margin: 12px 0;
}
.hint {
  font-size: 12px;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
code {
  overflow-wrap: anywhere;
}
.loading {
  padding: 40px;
}
::selection {
  background: #d9e9dc;
}
button:active {
  transform: translateY(1px);
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  main {
    padding: 28px 24px;
  }
  header {
    padding: 0 24px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    height: auto;
    position: relative;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #dce3dd;
  }
  .brand {
    font-size: 20px;
    padding: 0 8px 12px;
  }
  .brand span {
    display: inline;
    margin-left: 12px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  nav a {
    flex-shrink: 0;
    padding: 9px 12px;
  }
  nav svg {
    display: none;
  }
  aside footer {
    display: none;
  }
  header {
    height: 60px;
    padding: 0 20px;
  }
  header small {
    max-width: 190px;
  }
  main {
    padding: 24px 20px 60px;
  }
  h1 {
    font-size: 24px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .titlebar {
    gap: 12px;
  }
  .titlebar button {
    white-space: nowrap;
  }
  .beta {
    margin-bottom: 22px;
  }
  .queue {
    padding: 17px 0;
  }
  .login {
    margin: 5vh auto;
  }
  #notice:not(:empty) {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .split {
    gap: 0;
  }
}
/* Operational views: one dataset, several representations. */
.viewbar,
.view-switch,
.calendar-toolbar,
.section-heading,
.record-heading,
.tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.viewbar {
  margin: 20px 0;
}
.view-switch {
  gap: 0;
  flex-wrap: wrap;
}
.view-switch button {
  border-radius: 0;
}
.view-switch button[aria-pressed="true"] {
  background: #174e40;
  color: #fff;
}
.toolbar select {
  width: auto;
  max-width: 230px;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.record-tile {
  border: 1px solid #dce3dd;
  padding: 20px;
  background: white;
}
.record-tile h3 {
  margin: 12px 0;
  font-size: 16px;
}
.record-tile h3 a {
  color: #202a26;
}
.record-tile p {
  font-size: 13px;
  color: #5d6b63;
  overflow-wrap: anywhere;
}
.tile-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tile-foot {
  border-top: 1px solid #e1e6e2;
  padding-top: 12px;
  font-size: 12px;
}
.board {
  display: flex;
  overflow: auto;
  gap: 20px;
  padding: 0 0 20px;
}
.board-column {
  flex: 0 0 280px;
  background: #f5f7f5;
  padding: 14px;
}
.board-column h2 {
  margin: 0 0 20px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}
.board-column .record-tile {
  margin-bottom: 12px;
}
.record-rows article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 150px auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e1e6e2;
}
.record-rows h3 {
  margin: 0;
  font-size: 15px;
}
.record-rows p {
  margin: 4px 0;
  color: #5d6b63;
  font-size: 13px;
}
.backlink {
  display: inline-block;
  margin-bottom: 20px;
}
.record-heading {
  border-bottom: 1px solid #e1e6e2;
  padding-bottom: 24px;
}
.record-heading h2 {
  margin: 0 0 10px;
  font-size: 25px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
}
.record-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.record-facts dt {
  font-size: 12px;
  color: #5d6b63;
}
.record-facts dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.related-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e1e6e2;
}
.related-row > a {
  flex: 1;
}
.related-row small,
.related-row > span {
  font-size: 12px;
  color: #5d6b63;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note-entry {
  padding: 16px 0;
  border-bottom: 1px solid #e1e6e2;
  margin-bottom: 16px;
}
.note-entry p {
  font-size: 14px;
}
.section-heading h2 {
  margin: 24px 0;
}
.calendar-toolbar {
  margin: 20px 0;
  flex-wrap: wrap;
}
.calendar-toolbar h2 {
  margin: 0;
  text-transform: capitalize;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #dce3dd;
  border-left: 1px solid #dce3dd;
}
.weekday {
  text-align: center;
  padding: 12px;
  background: #f5f7f5;
}
.day {
  min-height: 110px;
  border: 0;
  border-right: 1px solid #dce3dd;
  border-bottom: 1px solid #dce3dd;
  border-radius: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px;
  overflow: hidden;
}
.day.selected {
  background: #e0eae3;
}
.day.today strong {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.day.blank {
  background: #f5f7f5;
}
.day-count {
  font-size: 11px;
  color: #5d6b63;
}
.day-events {
  max-width: 100%;
  font-size: 11px;
  display: grid;
  gap: 4px;
  font-weight: 400;
}
.day-events span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.draft-strip {
  padding: 12px;
  background: #fff4da;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.assistant-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 13px 22px;
}
.assistant-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: white;
  border-left: 1px solid #c7d1ca;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e1e6e2;
}
.assistant-context {
  padding: 14px 20px;
  background: #f5f7f5;
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.assistant-context strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.assistant-history {
  flex: 1;
  min-height: 90px;
  overflow: auto;
  padding: 0 20px;
}
.assistant-history .message {
  font-size: 13px;
}
.assistant-history dd {
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.assistant-history details {
  white-space: normal;
  margin: 12px 0;
}
.message-context {
  display: block;
  font-size: 11px;
}
.assistant-panel form {
  padding: 16px 20px;
  border-top: 1px solid #e1e6e2;
  max-height: 45vh;
  overflow: auto;
}
.assistant-panel textarea {
  min-height: 76px;
  max-height: 150px;
}
.assistant-panel input[type="file"] {
  font-size: 12px;
  padding: 6px;
  min-height: 36px;
}
.assistant-panel label {
  margin-bottom: 8px;
}
.assistant-panel form > small {
  display: block;
  margin-top: 8px;
}
#notice:not(:empty) {
  z-index: 50;
}
.assistant-panel summary {
  cursor: pointer;
  min-height: 44px;
}
.record-tile a:focus-visible,
.related-row a:focus-visible {
  outline: 2px solid #1b7158;
}
.record-heading h2 {
  overflow-wrap: anywhere;
}
.board-column .record-tile {
  border-color: #dce3dd;
}
@media (min-width: 1250px) {
  body:has(.assistant-panel) .shell {
    margin-right: 420px;
  }
  body:has(.assistant-panel) .detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .record-rows article {
    grid-template-columns: 1fr auto;
  }
  .record-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .day {
    min-height: 80px;
    padding: 8px;
  }
  .day-events {
    display: none;
  }
}
@media (max-width: 700px) {
  .viewbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar select {
    max-width: none;
    flex: 1;
    min-width: 140px;
  }
  .view-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .view-switch button {
    padding: 8px;
    font-size: 12px;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  .record-facts {
    gap: 16px;
  }
  .record-rows article {
    gap: 10px;
  }
  .related-row {
    flex-wrap: wrap;
  }
  .calendar-toolbar .hint {
    width: 100%;
  }
  .day {
    min-height: 64px;
    padding: 6px;
  }
  .day-count {
    font-size: 9px;
  }
  .assistant-panel {
    width: 100%;
    height: 100dvh;
  }
  .assistant-launch {
    bottom: 16px;
    right: 16px;
  }
  .record-heading h2 {
    font-size: 22px;
  }
  .draft-strip {
    flex-wrap: wrap;
  }
  main {
    padding-bottom: 100px;
  }
}
.assistant-start {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #dce3dd;
}
.assistant-start h2 {
  margin: 0 0 8px;
}
.assistant-start p {
  color: #5d6b63;
  margin: 0 0 18px;
}
.assistant-panel #voice-input {
  font-size: 12px;
}
.assistant-panel .actions {
  gap: 8px;
}
.assistant-panel .actions button {
  flex: 1;
  white-space: nowrap;
}
@media (min-width: 701px) {
  aside nav {
    min-height: 0;
    overflow-y: auto;
    flex: 1;
  }
  aside footer {
    flex-shrink: 0;
  }
  aside .brand {
    flex-shrink: 0;
  }
}
