@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #162f29;
  --forest: #153e32;
  --lime: #bef185;
  --muted: #627069;
  --line: #dbe2da;
  --page: #f5f7f2;
  --panel: #fff;
  --sidebar: 240px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
a {
  color: #265d45;
  text-underline-offset: 0.23em;
  font-weight: 600;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  opacity: 0.62;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #589455;
  outline-offset: 3px;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.043em;
  line-height: 1.13;
}
h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 650;
}
h2 {
  font-size: 1.35rem;
  font-weight: 680;
}
h3 {
  font-size: 1.08rem;
}
.muted,
.helptext {
  color: var(--muted);
}
.muted,
small {
  line-height: 1.5;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-180%);
  background: white;
  padding: 9px;
  z-index: 40;
}
.skip-link:focus {
  transform: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.067em;
  font-size: 1.55rem;
  font-weight: 760;
  white-space: nowrap;
}
.brand img {
  flex: none;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  color: var(--ink);
}
button:hover,
.button:hover,
.icon-button:hover {
  filter: brightness(0.96);
}
a:hover {
  text-decoration-thickness: 2px;
}
.button,
button[type="submit"]:not(.icon-button):not([class]),
.primary-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  padding: 10px 17px;
  background: var(--forest);
  border: 1px solid var(--forest);
  color: white;
  font-weight: 650;
  font-size: 0.94rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  border-color: #ccd6cc;
  background: white;
  color: var(--ink);
}
.button.danger {
  background: #843c36;
  border-color: #843c36;
  color: white;
}
.button[aria-busy="true"],
button[aria-busy="true"] {
  opacity: 0.65;
  cursor: wait;
}
label,
.field label {
  display: block;
  font-weight: 650;
  font-size: 0.91rem;
  margin: 0 0 7px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd7ce;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 8px;
  line-height: 1.35;
}
input::placeholder,
textarea::placeholder {
  color: #758279;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #82a681;
  outline-offset: 1px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--forest);
  height: 17px;
  width: 17px;
  vertical-align: middle;
}
textarea {
  min-height: 75px;
  resize: vertical;
}
.field {
  min-width: 0;
}
.field small,
.helptext {
  display: block;
  font-size: 0.82rem;
  margin-top: 4px;
}
.stack,
.messages {
  display: grid;
  gap: 17px;
}
.messages {
  margin-bottom: 16px;
}
.errorlist {
  padding: 0;
  list-style: none;
  margin: 4px 0;
  color: #a32e26;
  font-size: 0.86rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notice {
  border: 1px solid #cfddbe;
  background: #eff7e6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  line-height: 1.5;
  border-radius: 9px;
  color: #395436;
  font-size: 0.93rem;
}
.notice .icon {
  margin-top: 1px;
}
.identity-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 20px;
  background: #fbf4e5;
  border-color: #e6d5b3;
  color: #664a22;
}
.identity-notice a {
  color: inherit;
}
.validation-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
}
.validation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px clamp(16px, 5vw, 74px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.validation-main {
  align-self: center;
  width: min(100%, 670px);
  margin-inline: auto;
  padding: clamp(22px, 4vw, 50px) 16px;
}
.panel.validation-card {
  max-width: 630px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 42px);
}
.validation-heading {
  text-align: center;
}
.validation-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #edf5e7;
  color: var(--forest);
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}
.validation-heading h1 {
  font-size: clamp(1.85rem, 4.1vw, 2.55rem);
  text-wrap: balance;
}
.validation-heading p,
.validation-body p {
  color: var(--muted);
  line-height: 1.5;
}
.validation-heading p {
  margin-top: 10px;
  text-wrap: pretty;
}
.validation-body {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.validation-body strong,
.validation-status h2 {
  color: var(--ink);
}
.validation-pix h2,
.validation-status h2 {
  font-size: 1.1rem;
}
.validation-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: 10px;
}
.validation-status p {
  margin-top: 5px;
}
.validation-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
@media (max-width: 560px) {
  .validation-actions {
    display: grid;
  }
  .validation-actions .button {
    width: 100%;
  }
  .identity-notice {
    grid-template-columns: auto 1fr;
    row-gap: 2px;
  }
  .identity-notice a {
    grid-column: 2;
  }
}
.notice.error,
.notice.danger {
  background: #fff0ed;
  border-color: #efccc6;
  color: #833c32;
}
.mode {
  color: #536851;
  background: #edf3e5;
  border: 1px solid #d8e3ce;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  font-size: 0.74rem;
  letter-spacing: 0.006em;
  font-weight: 620;
  padding: 5px 10px;
  white-space: nowrap;
}
.mode .icon {
  width: 13px;
  height: 13px;
}
.guest {
  background: #fbfcf8;
}
.guest-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 16px;
  max-width: 2000px;
  margin: auto;
}
.guest-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 2.3vw, 42px) clamp(20px, 3.2vw, 60px)
    clamp(9px, 1.5vw, 28px);
}
.guest-top {
  display: flex;
  align-items: center;
}
.guest-form {
  margin: auto;
  width: 100%;
  max-width: 402px;
  padding: 55px 0;
}
.guest-form h1 {
  font-size: clamp(2.3rem, 3.4vw, 3.25rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.058em;
}
.guest-form p {
  line-height: 1.55;
}
.guest-form input {
  min-height: 47px;
}
.guest-form .button:not(.secondary) {
  width: 100%;
  min-height: 47px;
}
.guest-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}
.guest-foot > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.guest-foot .icon {
  height: 14px;
  width: 14px;
}
.guest-cover {
  border-radius: 20px;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: #173d32;
  color: white;
  isolation: isolate;
}
.cover-art {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.guest-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 35, 26, 0.22),
    transparent 22%,
    transparent 60%,
    rgba(4, 27, 21, 0.8)
  );
  z-index: -1;
}
.cover-top {
  position: absolute;
  top: clamp(22px, 3.3vw, 50px);
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cover-top span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  font-size: 0.8rem;
  background: #102d2280;
  color: #eff7e8;
  border: 1px solid #d0e7d641;
  border-radius: 25px;
  padding: 7px 13px;
}
.cover-top i {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
}
.cover-top > .icon {
  width: 27px;
  height: 27px;
  color: #d3ecc8;
}
.cover-copy {
  position: absolute;
  bottom: 6.5%;
  left: 8%;
  right: 6%;
}
.cover-copy h2 {
  font-size: clamp(3rem, 5.5vw, 6.4rem);
  font-weight: 590;
  letter-spacing: -0.072em;
}
.cover-copy h2 span {
  color: var(--lime);
}
.cover-copy p {
  color: #dfebdd;
  font-size: clamp(0.94rem, 1.25vw, 1.28rem);
  margin-top: 10px;
}
.sidebar {
  position: fixed;
  z-index: 12;
  top: 0;
  bottom: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: #fbfcf9;
  border-right: 1px solid var(--line);
}
.sidebar-brand {
  padding: 26px 24px 35px;
}
.sidebar nav {
  padding: 0 14px;
  overflow: auto;
}
.nav-caption {
  font-weight: 750;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67756a;
  margin: 0 13px 10px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  color: #54635b;
  min-height: 44px;
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  padding: 9px 13px;
  margin: 3px 0;
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}
.nav-link.active {
  background: #e4f1d9;
  color: #234831;
  font-weight: 690;
}
.nav-link:hover {
  background: #edf3e8;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 12px;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 17px 16px;
  gap: 10px;
}
.sidebar-foot .icon-button {
  border: 0;
  background: transparent;
  width: 32px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.identity > div {
  min-width: 0;
}
.identity strong,
.identity small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity strong {
  font-size: 0.88rem;
}
.identity small {
  font-size: 0.75rem;
  color: var(--muted);
}
.avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e3ecd8;
  color: #325037;
  font-weight: 700;
  font-size: 0.88rem;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  text-decoration: none;
}
.mini-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}
.work-area {
  margin-left: var(--sidebar);
  min-width: 0;
}
.workspace-top {
  background: #fcfdfb;
  border-bottom: 1px solid var(--line);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.3vw, 60px);
}
.workspace-meta,
.crumb {
  display: flex;
  align-items: center;
  gap: 16px;
}
.crumb {
  font-size: 0.84rem;
  gap: 13px;
  font-weight: 570;
}
.crumb .icon {
  width: 16px;
  height: 16px;
  color: #65776a;
}
.crumb-sep {
  color: #adb8ac;
}
.page-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(25px, 3vw, 48px) clamp(20px, 3.3vw, 60px) 58px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 26px;
  flex-wrap: wrap;
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 8px;
}
.eyebrow {
  font-size: 0.69rem;
  font-weight: 730;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #55745b;
  margin: 0 0 10px;
}
.panel,
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(19px, 2vw, 30px);
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stats-grid,
.two-column {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
}
.stat > strong {
  font-size: 1.8rem;
  letter-spacing: -0.045em;
}
.badge,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  background: #eef2ec;
  color: #435b49;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 620;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.91rem;
}
th {
  background: #f5f7f2;
  color: #667067;
  font-size: 0.78rem;
  font-weight: 620;
}
td,
th {
  padding: 12px 14px;
  border-bottom: 1px solid #e5eae2;
  text-align: left;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.empty-state {
  text-align: center;
  padding: 34px 16px;
}
.empty-state p {
  color: var(--muted);
  margin-top: 8px;
}
.pagination {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 20px;
}
.audit-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.audit-details {
  margin: 14px 0;
}
.audit-details div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.audit-details dt {
  color: var(--muted);
}
.audit-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.audit-details pre {
  white-space: pre-wrap;
}
.mobile-top,
.mobile-mode {
  display: none;
}
@media (max-width: 980px) and (min-width: 761px) {
  :root {
    --sidebar: 205px;
  }
  .sidebar-brand {
    padding: 24px 16px 30px;
  }
  .brand {
    font-size: 1.36rem;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
}
@media (max-width: 760px) {
  .guest-shell {
    display: flex;
    min-height: 100svh;
    padding: 0;
  }
  .guest-side {
    flex: 1;
    padding: 24px max(22px, 5vw) 18px;
  }
  .guest-cover {
    display: none;
  }
  .guest-form {
    padding: 40px 0;
  }
  .guest-foot,
  .guest-top {
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
  }
  .guest-form h1 {
    font-size: 2.55rem;
  }
  .mobile-top {
    height: 60px;
    background: #fbfcf9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px;
    position: sticky;
    top: 0;
    z-index: 15;
  }
  .mobile-top .brand {
    font-size: 1.34rem;
  }
  .mobile-top .brand img {
    height: 32px;
    width: 32px;
  }
  .sidebar {
    display: none;
    top: 60px;
    box-shadow: 12px 18px 35px #10291924;
    max-height: calc(100dvh - 60px);
    width: min(295px, 85vw);
  }
  .menu-open .sidebar {
    display: flex;
  }
  .sidebar-brand,
  .workspace-top {
    display: none;
  }
  .sidebar nav {
    padding-top: 22px;
  }
  .work-area {
    margin: 0;
  }
  .page-content {
    padding: 19px 17px 38px;
  }
  .mobile-mode {
    display: block;
    margin-bottom: 14px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .audit-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .brand {
    letter-spacing: -0.065em;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .nav-link {
    transition:
      background 0.15s,
      filter 0.15s;
  }
}
.guest-heading {
  margin-bottom: 28px;
}
.guest-heading h1 + p {
  margin: 12px 0 0;
  max-width: 36ch;
}
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.label-row a {
  font-size: 0.82rem;
}
.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.auth-switch a {
  color: var(--forest);
}
.panel.form-panel {
  max-width: 690px;
}
.panel.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.filters .field {
  flex: 1 1 150px;
}
.two-column {
  align-items: start;
}
.panel > h2 + .stack,
.panel > p + .stack,
.panel > form + form,
.panel > p + .button {
  margin-top: 16px;
}
.panel > h2 + p {
  margin-top: 10px;
}
.panel > dl:not([class]) dt {
  font-size: 0.82rem;
  color: var(--muted);
}
.panel > dl:not([class]) dd {
  margin: 4px 0 15px;
  overflow-wrap: anywhere;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 18px;
  font-size: 0.87rem;
}
.back-link .icon {
  width: 15px;
  height: 15px;
}
.audit-search {
  margin-bottom: 20px;
}
.audit-search h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
