:root {
  --ink: #193a3c;
  --teal: #143c40;
  --deep: #103135;
  --paper: #f7f5ef;
  --white: #fffefa;
  --muted: #566866;
  --line: #dcded4;
  --copper: #945e43;
  --clay: #efe1d6;
  --green: #e3ece4;
  --alert: #8c4334;
  --radius: 12px;
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
a {
  text-underline-offset: 3px;
}
a:hover {
  color: #794b33;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.58;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b27845;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.1;
}
h2 {
  font-size: 1.65rem;
  line-height: 1.2;
}
h3 {
  font-size: 1rem;
}
label {
  font-weight: 650;
  display: grid;
  gap: 0.5rem;
}
button,
.button {
  line-height: 1.3;
}
.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
}
.rail {
  position: sticky;
  top: 0;
  height: 100svh;
  background: var(--teal);
  color: #fcf8ec;
  padding: 35px 16px 20px;
  display: flex;
  flex-direction: column;
}
.brandlink {
  color: #fcf8ec;
  display: block;
  padding: 0 15px;
}
.brandlink:hover {
  color: #fff;
}
.brand {
  width: 115px;
  height: 44px;
  display: block;
}
.rail-divider {
  margin: 30px 10px 20px;
  border-top: 1px solid #547072;
}
nav {
  display: grid;
  gap: 4px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #d9e4de;
  padding: 13px 14px;
  line-height: 1.25;
  border-radius: 6px;
}
.navlink:hover,
.navlink[aria-current="page"] {
  color: #fff9ee;
  background: #315356;
}
.navlink[aria-current="page"] {
  box-shadow: inset 3px 0 #daae86;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: inherit;
}
.rail-foot {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: auto 12px 0;
  color: #c2d2c9;
  font-size: 0.79rem;
}
.indicator {
  width: 7px;
  height: 7px;
  background: #a1c4ac;
  border-radius: 50%;
}
main {
  min-width: 0;
  padding: 0 clamp(20px, 4vw, 72px) 60px;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  border-bottom: 1px solid var(--line);
}
#view {
  padding-top: 38px;
  min-width: 0;
}
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.action,
.button,
.secondary,
.quiet,
.square {
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
}
.action,
.button {
  background: var(--teal);
  color: #fff;
}
.action:hover,
.button:hover {
  background: #255054;
  color: #fff;
}
.secondary,
.square {
  color: var(--teal);
  border-color: #c8d0c4;
  background: var(--white);
}
.secondary:hover,
.square:hover {
  background: var(--green);
}
.quiet {
  color: var(--teal);
  background: transparent;
  text-decoration: underline;
}
.toolbar,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.toolbar {
  margin-bottom: 16px;
  justify-content: space-between;
}
.find {
  max-width: 330px;
  min-width: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.metric {
  text-align: left;
  padding: 20px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}
.metric:hover {
  border-color: #9fafa3;
}
.metric:first-child {
  background: #e6eee8;
  border-color: #cbd9ce;
}
.metric .big {
  font:
    500 2.55rem/1 Fraunces,
    Georgia,
    serif;
}
.metric-top {
  font-weight: 600;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.cardhead {
  padding: 20px 21px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cardhead h2 {
  font-size: 1.5rem;
}
.row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  text-align: left;
  min-height: 65px;
  padding: 13px 20px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 450;
}
.row:first-child {
  border-top: 0;
}
.row:hover {
  background: #f3f4ed;
}
.avatar {
  height: 35px;
  width: 35px;
  flex: none;
  background: var(--green);
  color: #345c51;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.row-info {
  flex: 1;
  min-width: 0;
}
.row strong,
.row small {
  display: block;
  overflow-wrap: anywhere;
}
.row small,
.muted,
.small {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}
.row strong {
  font-size: 0.95rem;
  line-height: 1.4;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  background: #ebeee6;
  color: #41564a;
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}
.badge.warm {
  background: var(--clay);
  color: #754e37;
}
.badge.late {
  background: #f3ddd3;
  color: var(--alert);
}
.empty {
  padding: 24px 21px;
  color: var(--muted);
  line-height: 1.5;
}
.message {
  color: var(--alert);
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.message:empty {
  display: none;
}
.fieldset,
form {
  display: grid;
  gap: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #b7c3b9;
  background: #fffefa;
  color: #173c3d;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 43px;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 105px;
  line-height: 1.55;
}
.details {
  padding: 20px;
}
.details > * + * {
  margin-top: 14px;
}
.reader {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: 0.95rem;
}
.back {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0 12px;
  cursor: pointer;
}
.stack {
  display: grid;
  gap: 16px;
}
.small-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.wide {
  grid-column: 1/-1;
}
.assistant {
  border-left: 3px solid #b17d5a;
  background: #f6f1e8;
  padding: 16px;
  border-radius: 6px;
}
.assistant > * + * {
  margin-top: 12px;
}
.checks {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
}
.checks label {
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
}
.checks input {
  min-height: 18px;
  width: 18px;
  height: 18px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(500px, 92vw);
  width: max-content;
  background: var(--deep);
  color: white;
  padding: 13px 19px;
  border-radius: 9px;
  box-shadow: 0 5px 22px #193a3c33;
  z-index: 8;
}
.toast[hidden] {
  display: none;
}
dialog {
  color: var(--ink);
  background: var(--white);
  width: min(650px, calc(100% - 24px));
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  max-height: 90svh;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #09292cb0;
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
#close-modal {
  border: 0;
  background: #e9ece4;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  font-size: 1.45rem;
  color: var(--teal);
}
#modal-status {
  margin-top: 12px;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
  margin: 0;
}
legend {
  font-weight: 650;
  margin-bottom: 8px;
}
.skip {
  position: fixed;
  top: -80px;
  padding: 12px;
  background: white;
  z-index: 99;
}
.skip:focus {
  top: 0;
}
.auth {
  max-width: 530px;
  padding: 32px;
}
.auth > * + * {
  margin-top: 20px;
}
#view h1 {
  overflow-wrap: anywhere;
}
.flow {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 11px;
  min-height: 38px;
  border-radius: 20px;
  font-size: 0.83rem;
}
.chip[aria-pressed="true"] {
  background: var(--green);
  border-color: #9aafa0;
}
.linked {
  display: block;
  color: var(--teal);
  font-size: 0.9rem;
}
.linked:hover {
  text-decoration-thickness: 2px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.block-title {
  margin: 18px 0 12px;
}
.doc-file {
  padding: 8px;
}
.attach {
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 9px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  main {
    padding-inline: 22px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .rail {
    position: static;
    height: auto;
    padding: 10px 12px 7px;
    gap: 7px;
  }
  .brandlink {
    padding: 0 4px;
    width: max-content;
  }
  .brand {
    width: 78px;
    height: 29px;
  }
  .rail-divider,
  .rail-foot {
    display: none;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
  }
  .navlink {
    padding: 5px 0;
    gap: 3px;
    flex-direction: column;
    font-size: 0.69rem;
    min-height: 43px;
    justify-content: center;
  }
  .navlink[aria-current="page"] {
    box-shadow: inset 0 -2px #daae86;
  }
  .navlink .icon {
    width: 18px;
    height: 18px;
  }
  main {
    padding: 0 14px 38px;
  }
  .topbar {
    height: 39px;
    font-size: 0.75rem;
  }
  #view {
    padding-top: 22px;
  }
  .head {
    margin-bottom: 17px;
    gap: 12px;
    align-items: center;
  }
  .metrics {
    gap: 6px;
    margin-bottom: 16px;
  }
  .metric {
    padding: 13px 9px;
    gap: 10px;
  }
  .metric .big {
    font-size: 2rem;
  }
  .metric-top {
    font-size: 0.75rem;
    align-items: start;
  }
  .metric-top .icon {
    display: none;
  }
  .row {
    gap: 9px;
    padding: 12px;
  }
  .cardhead,
  .details,
  .empty {
    padding: 15px;
  }
  .avatar {
    width: 29px;
    height: 29px;
    font-size: 0.7rem;
  }
  .row strong {
    font-size: 0.89rem;
  }
  .badge {
    max-width: 100px;
    font-size: 0.7rem;
  }
  .row .icon:last-child {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
  }
  .find {
    max-width: none;
  }
  .action,
  .button,
  .secondary,
  .quiet {
    min-height: 44px;
  }
  dialog {
    padding: 16px;
  }
  .cardhead h2 {
    font-size: 1.32rem;
  }
  .auth {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s ease,
      color 0.12s ease;
  }
}
