@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color: #1c281f;
  background: #f8f8f4;
  font:
    15px/1.5 "DM Sans",
    system-ui,
    sans-serif;
  --ink: #1c281f;
  --muted: #607067;
  --green: #205541;
  --line: #dce1d8;
  --paper: #fff;
  --soft: #e5eddc;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button,
.button {
  line-height: 1.35;
}
:where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select, textarea) {
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-weight: 450;
  line-height: 1.4;
  color: var(--ink);
  background: white;
  border: 1px solid #b8c5bb;
  border-radius: 7px;
}
:where(input, select, textarea):not(:disabled, [readonly]):hover {
  border-color: #83988a;
}
:where(input, select, textarea):focus-visible {
  border-color: var(--green);
}
:where(input, select, textarea):disabled {
  cursor: not-allowed;
  color: #647168;
  background: #f0f3ed;
}
:where(input, textarea)[readonly] {
  background: #f3f5ef;
  color: #56665c;
}
input::placeholder,
textarea::placeholder {
  color: #68766d;
  opacity: 1;
}
textarea {
  resize: vertical;
}
label {
  font-weight: 550;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #82ad72;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 650;
  margin-bottom: 0.6em;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
small {
  font-size: 0.84rem;
}
svg[aria-hidden="true"] > use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow,
.nav-group > p {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.muted {
  color: var(--muted);
}
.capital {
  text-transform: capitalize;
}
.error,
.success {
  padding: 0.75rem 1rem;
  border-radius: 7px;
}
.error {
  background: #fbe9e4;
  color: #8f2f25;
}
.success {
  background: #e5f1df;
  color: #25523c;
}
.button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.67rem 1rem;
  font-weight: 650;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #163f30;
}
.secondary {
  background: white;
  border-color: #cdd5cb;
  color: var(--ink);
}
.secondary:hover {
  background: #f3f5ef;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1;
}
.wordmark img {
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.boot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  min-height: 100dvh;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-art {
  background: #20211d;
  color: #f6f5eb;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 4.7vw, 5rem);
}
.login-art .wordmark {
  align-self: flex-start;
}
.login-heading {
  margin-top: clamp(2rem, 6vh, 5rem);
  z-index: 1;
}
.login-heading .eyebrow {
  color: #c4c6b7;
}
.login-heading h1 {
  font-size: clamp(2.7rem, 5vw, 5.25rem);
  max-width: 12ch;
  line-height: 0.98;
  margin: 0.3em 0 0;
}
.login-art .hero-figure {
  position: relative;
  height: 48vh;
  margin: 0;
}
.login-art-footer {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #d5d4c7;
}
.sign-in {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(2rem, 5vw, 6rem);
}
.sign-in form {
  width: min(100%, 380px);
}
.sign-in h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  margin-bottom: 0.6rem;
}
.sign-in .muted {
  margin: 0 0 2.15rem;
}
.sign-in .ui-field {
  margin-bottom: 1.2rem;
}
.sign-in input {
  width: 100%;
  min-height: 46px;
}
.login-submit {
  width: 100%;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 0.4rem;
}
.login-mobile {
  display: none;
}
.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar {
  background: #173c30;
  color: #d9e8dd;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem 1rem;
}
.side-logo {
  padding: 0 0.7rem 1.65rem;
  display: flex;
  border-bottom: 1px solid #375548;
}
.side-logo .wordmark {
  color: #fff;
}
.sidebar nav,
.mobile-drawer nav {
  flex: 1;
  overflow-y: auto;
}
.nav-group {
  margin: 1.5rem 0;
}
.nav-group > p {
  margin: 0 0.75rem 0.4rem;
  color: #aac0af;
  font-size: 0.64rem;
}
.nav-group a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.54rem 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  font-size: 0.94rem;
}
.nav-group a:hover {
  background: #244a3c;
}
.nav-group a[aria-current="page"] {
  background: #e1ebd6;
  color: #153a2b;
  font-weight: 650;
}
.account-block {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem 0.25rem 0.25rem;
  border-top: 1px solid #375548;
}
.avatar {
  background: #355d4c;
  border: 1px solid #577662;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}
.account-block > div {
  flex: 1;
  min-width: 0;
}
.account-block b,
.account-block small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-block b {
  font-size: 0.88rem;
  color: #fff;
}
.account-block small {
  text-transform: capitalize;
  font-size: 0.75rem;
  color: #bdcec1;
}
.account-block button,
.mobile-bar button {
  color: inherit;
  background: transparent;
  border: 1px solid #547060;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}
.account-block button {
  font-size: 1.2rem;
}
.main-content {
  margin: 0 auto;
  width: 100%;
  max-width: 1440px;
  padding: clamp(25px, 3vw, 48px);
  min-width: 0;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.page-intro h1 {
  margin: 0;
}
.mobile-bar,
.mobile-drawer:not([open]) {
  display: none;
}
.skip {
  position: fixed;
  left: -100vw;
  top: 0.5rem;
  z-index: 9;
}
.skip:focus {
  left: 1rem;
  background: white;
  padding: 0.5rem 1rem;
}
.metric-grid,
.collection-grid,
.form-grid {
  display: grid;
  gap: 1rem;
}
.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}
.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  display: grid;
  gap: 0.6rem;
}
.metric-label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: #4f6252;
  font-weight: 570;
}
.metric-card strong {
  font-size: 2.55rem;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.section-title h2,
.collection h3 {
  margin: 0;
}
.section-title a {
  font-size: 0.84rem;
  color: var(--green);
  font-weight: 650;
}
.queue-empty {
  text-align: center;
  padding: 2.15rem 1rem;
  color: #526357;
}
.queue-empty h3 {
  color: var(--ink);
  margin: 0.65rem 0 0.2rem;
}
.queue-empty p {
  margin: 0;
  font-size: 0.88rem;
}
.queue-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.queue-row:last-child {
  border: 0;
}
.queue-row small,
.workspace-view td small {
  display: block;
  color: var(--muted);
}
.queue-row small {
  text-transform: capitalize;
}
.queue-icon {
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 7px;
  width: 36px;
  height: 36px;
}
.status-tag {
  font-size: 0.75rem;
  background: #f4ead1;
  color: #6b5426;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  margin-left: auto;
}
.library-heading {
  margin: 2rem 0 0.85rem;
}
.collection-grid,
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.collection {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.collection img {
  width: 75px;
  height: 66px;
  object-fit: cover;
  border-radius: 5px;
}
.collection span {
  color: var(--muted);
  font-size: 0.82rem;
}
.collection > svg {
  margin-left: auto;
  color: var(--green);
  padding-right: 0.4rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.actions {
  align-items: center;
}
.primary,
.secondary,
.button {
  min-height: 42px;
}
button svg,
a svg {
  flex: 0 0 auto;
}
#main:focus {
  outline: none;
}
.metric-card:hover,
.collection:hover {
  border-color: #a7bba9;
  background: #fdfefa;
}
.queue-row:hover {
  background: #f5f8f2;
}
.queue-row > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.queue-icon,
.status-tag {
  flex: 0 0 auto;
}
.queue :last-child {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.nav-brand {
  position: relative;
}
.account-block button,
.mobile-bar button,
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  min-width: 38px;
  font-size: 0.9rem;
}
.account-block button:hover,
.mobile-bar button:hover,
.drawer-close:hover {
  background: #305746;
}
.side-logo {
  text-decoration: none;
}
.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  padding: 1.25rem 1rem 1rem;
  width: min(320px, 85vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  border: 0;
  background: #173c30;
  color: #d9e8dd;
}
.mobile-drawer[open] {
  display: flex;
  flex-direction: column;
}
.mobile-drawer::backdrop {
  background: #10251c70;
}
.drawer-close {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 7px;
  border: 1px solid #547060;
  background: transparent;
  color: #eef5ee;
}
.staff-fields {
  padding: 1.35rem;
  display: grid;
  gap: 1.05rem;
}
.staff-fields .error {
  margin: 0;
}
.staff-access {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 1rem;
}
.staff-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding: 1rem 1.35rem;
}
.staff-list {
  overflow: clip;
}
.staff-list table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.staff-list th,
.audit-labels {
  font-size: 0.77rem;
  font-weight: 650;
  color: #536157;
  background: #f2f4ee;
}
.staff-list th,
.staff-list td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.staff-list td {
  font-size: 0.94rem;
}
.staff-list tr:last-child td {
  border-bottom: 0;
}
.staff-person small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.staff-edit {
  text-align: right;
}
.staff-edit .edit-button {
  padding: 0.4rem 0.7rem;
  min-height: 34px;
  font-size: 0.84rem;
}
.account-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4a5b4f;
}
.account-status::before {
  content: "";
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #8b948e;
}
.account-status.active::before {
  background: #3e7753;
}
.table-message {
  margin: 0;
  padding: 1.2rem;
  color: var(--muted);
}
.audit-list {
  overflow: clip;
}
.audit-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
}
.audit-search > .ui-search {
  flex: 1;
  max-width: 28rem;
}
.audit-labels,
.audit-event summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(8rem, 0.55fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--line);
}
.audit-labels > :first-child {
  padding-left: 1.65rem;
}
.audit-event summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.audit-event summary::-webkit-details-marker {
  display: none;
}
.audit-event summary:hover,
.audit-event[open] summary {
  background: #f7f9f4;
}
.audit-event summary:focus-visible {
  outline-offset: -3px;
}
.audit-record {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.audit-record > svg {
  color: #637569;
}
.audit-event[open] .audit-record > svg {
  transform: rotate(90deg);
}
.audit-event small {
  display: block;
  font-size: 0.81rem;
  color: var(--muted);
}
.audit-actor {
  overflow-wrap: anywhere;
}
.audit-detail {
  padding: 0.85rem 1.2rem 1.1rem 2.85rem;
  overflow-wrap: anywhere;
}
.audit-detail dl {
  margin: 0;
  font-size: 0.87rem;
}
.audit-detail dl > div {
  display: grid;
  grid-template-columns: minmax(6em, 9.5em) minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.25rem 0;
}
.audit-detail dl dl > div {
  display: block;
  padding: 0.15rem 0;
}
.audit-detail dl dl dt,
.audit-detail dl dl dd {
  display: inline;
}
.audit-detail dl dl dt {
  margin-right: 0.4em;
}
.audit-detail dt {
  font-weight: 600;
  color: #566459;
}
.audit-detail dd,
.audit-detail ul {
  margin: 0;
}
.audit-detail ul {
  padding-left: 1.1rem;
}
.audit-footer {
  border-top: 1px solid var(--line);
  padding: 0.8rem 1.2rem;
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 1.5rem 0.65rem 0.7rem;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    padding: 1rem;
  }
  .login-layout {
    grid-template-columns: 0.85fr 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #173c30;
    color: white;
    padding: 0.65rem 1rem;
  }
  .mobile-bar .wordmark {
    font-size: 1.65rem;
  }
  .mobile-bar img {
    width: 27px;
    height: 27px;
  }
  .sidebar {
    display: none;
  }
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 3;
  }
  #main {
    scroll-margin-top: 64px;
  }
  [id] {
    scroll-margin-top: 64px;
  }
  .nav-group {
    margin: 0.8rem 0;
  }
  .page-intro {
    flex-wrap: wrap;
  }
  .main-content {
    padding: 1.35rem 1rem;
  }
  .metric-grid {
    gap: 0.45rem;
  }
  .metric-card {
    padding: 0.8rem 0.55rem;
  }
  .metric-label {
    font-size: 0.8rem;
    gap: 0.25rem;
  }
  .metric-label svg {
    width: 14px;
  }
  .metric-card strong {
    font-size: 1.8rem;
  }

  .login-layout {
    display: block;
  }
  .login-art {
    display: none;
  }
  .sign-in {
    min-height: 100dvh;
    padding: 1.75rem;
  }
  .login-mobile {
    display: block;
    margin-bottom: 3.5rem;
  }
  .sign-in h2 {
    font-size: 2.55rem;
  }
}

@media (max-width: 600px) {
  .staff-list table,
  .staff-list tbody {
    display: block;
  }
  .staff-list thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .staff-list tbody tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.35rem 0.7rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .staff-list tbody tr:last-child {
    border: 0;
  }
  .staff-list td {
    border: 0;
    padding: 0;
  }
  .staff-person {
    grid-column: 1 / 3;
  }
  .staff-edit {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .staff-role,
  .staff-status {
    grid-row: 2;
    font-size: 0.84rem !important;
    color: var(--muted);
  }
  .staff-access {
    gap: 0.65rem;
  }
  .staff-fields {
    padding: 1rem;
  }
  .staff-footer {
    padding: 0.85rem 1rem;
  }
  .audit-labels {
    display: none;
  }
  .audit-event summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.24rem 0.75rem;
    align-items: start;
    padding: 0.8rem 1rem;
  }
  .audit-actor {
    grid-column: 1;
    grid-row: 2;
    padding-left: 1.65rem;
    font-size: 0.8rem;
    color: var(--muted);
  }
  .audit-event time {
    grid-column: 2;
    grid-row: 1 / 3;
    text-align: right;
    font-size: 0.78rem;
  }
  .audit-detail {
    padding: 0.7rem 1rem;
  }
  .audit-detail dl > div {
    grid-template-columns: minmax(4.5rem, 30%) minmax(0, 1fr);
  }
  .audit-search {
    padding: 0.8rem 1rem;
  }
  .page-intro > .actions {
    width: 100%;
  }
  .page-intro > .actions .button {
    flex: 1;
    padding-inline: 0.5rem;
  }
}
