:root {
  --ink:#1e3440;
  --muted:#60727d;
  --teal:#146c68;
  --teal-dark:#0e504d;
  --line:#e0e7e9;
  --canvas:#f4f7f8;
  --sidebar:244px;
  --radius:14px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font:14px/1.65 "Segoe UI",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased
}
a {
  color:var(--teal);
  text-underline-offset:3px
}
a:hover {
  color:var(--teal-dark)
}
button,input,select,textarea {
  font:inherit
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:9px 17px;
  border:1px solid transparent;
  border-radius:9px;
  background:var(--teal);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s,box-shadow .15s
}
button:hover,.button:hover {
  background:var(--teal-dark);
  color:white;
  box-shadow:0 3px 10px #146c6819
}
button:disabled {
  opacity:.45;
  cursor:not-allowed
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #3c9793;
  outline-offset:3px
}
.button-secondary {
  background:white;
  color:var(--ink);
  border-color:var(--line)
}
.button-secondary:hover {
  background:#edf5f4;
  color:var(--teal)
}
.button-quiet {
  background:transparent;
  color:var(--muted);
  min-height:32px;
  padding:5px 10px;
  font-weight:500
}
.button-quiet:hover {
  background:#eef3f4;
  color:var(--ink);
  box-shadow:none
}
.skip-link {
  position:fixed;
  left:260px;
  top:-60px;
  z-index:100;
  background:white;
  padding:12px;
  border-radius:8px
}
.skip-link:focus {
  top:8px
}
.app-sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  background:#fff;
  border-right:1px solid var(--line);
  padding:29px 18px 20px;
  display:flex;
  flex-direction:column;
  z-index:30;
  overflow:auto
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:var(--ink);
  padding:0 8px 22px
}
.brand:hover {
  color:var(--ink)
}
.brand-mark {
  width:40px;
  height:40px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--teal);
  color:white
}
.brand-mark svg {
  width:27px;
  height:27px
}
.brand strong {
  display:block;
  font-size:17px;
  letter-spacing:-.4px;
  line-height:1.3
}
.brand small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px;
  letter-spacing:.35px
}
.app-navigation {
  display:flex;
  flex-direction:column;
  gap:4px
}
.nav-label {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:#7c8c95;
  font-weight:700;
  margin:18px 14px 6px
}
.app-navigation a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 13px;
  color:#526773;
  text-decoration:none;
  font-weight:500;
  border-radius:9px;
  line-height:1.45
}
.app-navigation a:hover {
  background:#f4f8f8;
  color:var(--teal)
}
.app-navigation a[aria-current=page] {
  background:#e8f4f1;
  color:var(--teal-dark);
  font-weight:650;
  border-left:3px solid #3d9181;
  padding-left:10px
}
.sidebar-footer {
  margin-top:auto;
  padding:24px 13px 0;
  color:var(--muted);
  font-size:11px;
  display:flex;
  align-items:center;
  gap:8px
}
.environment-dot {
  width:6px;
  height:6px;
  background:#2b8c76;
  border-radius:50%
}
.app-topbar {
  height:76px;
  margin-left:var(--sidebar);
  padding:0 38px;
  border-bottom:1px solid var(--line);
  background:#ffffffd9;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.topbar-label {
  font-size:12px;
  color:var(--muted)
}
.account-menu {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:12px
}
.account-menu form {
  margin:0
}
.account-menu a {
  color:var(--muted);
  text-decoration:none
}
.user-avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e8f0f2;
  color:#305764;
  font-weight:700
}
.account-name {
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.sandbox-banner {
  margin-left:var(--sidebar);
  display:flex;
  gap:16px;
  align-items:center;
  padding:12px 38px;
  background:#fff5d9;
  color:#705311;
  border-bottom:1px solid #efdfb1;
  font-size:12px
}
.sandbox-banner strong {
  font-size:10px;
  letter-spacing:1px;
  border:1px solid #d6bd7e;
  border-radius:5px;
  padding:3px 7px
}
main {
  margin:0 0 0 var(--sidebar);
  padding:36px 38px 90px;
  min-width:0;
  max-width:none!important;
  min-height:calc(100vh - 76px)
}
main>* {
  max-width:1440px
}
h1 {
  font-size:30px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:-1px;
  margin:0 0 24px
}
h2 {
  font-size:19px;
  line-height:1.4;
  letter-spacing:-.3px;
  font-weight:650;
  margin:0 0 14px
}
h3 {
  font-size:16px;
  font-weight:650
}
p {
  margin:0 0 16px
}
strong {
  font-weight:650
}
.eyebrow {
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  margin-bottom:8px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:27px
}
.page-heading h1 {
  margin-bottom:8px
}
.page-heading p {
  color:var(--muted);
  margin:0
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding-top:24px;
  margin-top:38px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:#819099
}
.summary,.panel {
  background:white;
  border:1px solid var(--line);
  padding:25px;
  border-radius:var(--radius);
  box-shadow:0 3px 14px #203a4803
}
.summary+.summary {
  margin-top:20px
}
.panel-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:23px
}
.panel-heading h2 {
  margin-bottom:4px
}
.panel-heading p {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.badge {
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  border-radius:20px;
  padding:4px 11px;
  font-size:11px;
  font-weight:650;
  color:var(--teal-dark);
  background:#e7f4ef
}
.badge-neutral {
  color:#61727e;
  background:#f0f3f5
}
.dashboard-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.metrics-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:26px
}
.metric {
  padding:22px 24px;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.metric-label {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:9px
}
.metric-value {
  display:block;
  font-size:29px;
  font-weight:650;
  line-height:1.2;
  letter-spacing:-.8px;
  font-variant-numeric:tabular-nums
}
.metric-note {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:9px
}
.metric-accent {
  border-top:3px solid #318b7d;
  padding-top:20px
}
.stat-list {
  margin:0 0 24px
}
.stat-list div {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:12px 0;
  border-bottom:1px solid #edf1f2
}
.stat-list dt {
  color:var(--muted);
  font-size:13px
}
.stat-list dd {
  margin:0;
  font-weight:650;
  font-variant-numeric:tabular-nums
}
.panel-note {
  font-size:12px;
  color:var(--muted);
  padding:16px 0 0;
  margin:18px 0 0;
  border-top:1px solid var(--line)
}
.quick-links {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px
}
.quick-links>a:not(.button) {
  font-size:12px
}
.muted {
  color:var(--muted)
}
input,select,textarea {
  padding:10px 12px;
  border:1px solid #cbd7dc;
  border-radius:8px;
  max-width:100%;
  background:#fff;
  color:var(--ink);
  min-height:41px
}
input:hover,select:hover,textarea:hover {
  border-color:#9bb4bc
}
input[type=checkbox],input[type=radio] {
  min-height:auto;
  width:16px;
  height:16px;
  accent-color:var(--teal);
  vertical-align:middle
}
input[type=file] {
  font-size:13px;
  background:#f8fafb
}
input[type=file]::file-selector-button {
  background:#e9f1f2;
  border:0;
  border-radius:5px;
  padding:5px 10px;
  margin-right:10px;
  color:var(--ink)
}
textarea {
  resize:vertical
}
label {
  font-weight:600
}
main>form:not(.entry) {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 20px;
  margin-bottom:22px
}
main>form:has(p) {
  display:block;
  max-width:760px
}
main>form:has(p)>label {
  display:block;
  margin:12px 0
}
form.entry {
  max-width:780px;
  padding:26px 30px;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 4px 18px #203a4804
}
form.entry p {
  margin-bottom:20px
}
form.entry label,main>form:has(p) p>label {
  display:block;
  font-weight:600;
  margin:0 0 8px;
  font-size:13px
}
form.entry input:not([type=checkbox]):not([type=radio]),form.entry select,form.entry textarea {
  width:100%
}
.helptext {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:6px
}
.errorlist {
  color:#ab3636;
  background:#fff3f2;
  padding:10px 14px 10px 28px;
  border-radius:7px;
  font-size:13px
}
.actions {
  display:flex;
  gap:10px;
  margin-top:24px;
  flex-wrap:wrap
}
.actions button+button {
  background:#eaf3f1;
  color:var(--teal-dark)
}
.messages {
  padding:14px 18px;
  background:#e9f5ef;
  border:1px solid #cce5d7;
  border-radius:10px;
  color:#226248
}
.messages.error {
  background:#fff1ee;
  color:#a34035;
  border-color:#efd1cb
}
table {
  border-collapse:separate;
  border-spacing:0;
  width:100%;
  background:white;
  font-size:13px;
  margin:24px 0;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden
}
th,td {
  text-align:left;
  padding:14px 17px;
  border-bottom:1px solid #e9eff1;
  vertical-align:top
}
th {
  background:#f6f9fa;
  font-size:11px;
  font-weight:650;
  letter-spacing:.3px;
  color:#637781;
  white-space:nowrap
}
tbody tr:last-child td {
  border-bottom:0
}
tbody tr:hover td {
  background:#f8fbfb
}
td a {
  font-weight:500
}
td {
  font-variant-numeric:tabular-nums
}
td details summary {
  cursor:pointer;
  color:var(--teal)
}
.table-scroll {
  overflow-x:auto;
  width:100%;
  margin:24px 0;
  border-radius:12px;
  box-shadow:0 3px 14px #203a4803
}
.table-scroll table {
  margin:0;
  min-width:640px
}
.client-table-scroll {
  border:1px solid var(--line);
  border-radius:12px!important;
  margin-top:20px
}
.client-table-scroll table {
  border:0
}
.client-table th:first-child {
  background:#f6f9fa!important
}
details {
  margin-bottom:12px
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:#edf2f4;
  padding:16px;
  border-radius:9px;
  font-size:12px
}
dl {
  overflow-wrap:anywhere
}
.auth-page .app-sidebar {
  position:static;
  width:auto;
  height:auto;
  border:0;
  background:transparent;
  padding:36px 0 0;
  align-items:center
}
.auth-page .brand {
  padding:0
}
.auth-page main {
  margin:0 auto;
  max-width:500px!important;
  min-height:0;
  padding:42px 24px
}
.auth-page h1 {
  font-size:27px
}
.auth-page .page-footer {
  font-size:10px
}
.auth-intro {
  color:var(--muted);
  margin-top:-12px;
  margin-bottom:25px
}
.auth-page form.entry {
  padding:27px
}
.auth-page form.entry button {
  width:100%
}
@media(min-width:1200px) {
  body.guide-open main {
    margin-right:390px!important;
    padding-left:28px;
    padding-right:28px
  }
  .guide-open .dashboard-grid {
    grid-template-columns:1fr
  }
  .guide-open .metrics-grid {
    grid-template-columns:1fr 1fr
  }
  .guide-open .metric-value {
    font-size:25px
  }
}
@media(max-width:1199px) and (min-width:851px) {
  body.guide-open main {
    margin-right:0!important
  }
  .month-guide {
    box-shadow:-10px 0 50px #153e4a33
  }
}
@media(max-width:1000px) {
  :root {
    --sidebar:215px
  }
  .app-sidebar {
    padding-left:12px;
    padding-right:12px
  }
  main {
    padding:28px 24px 90px
  }
  .app-topbar {
    padding:0 24px
  }
  .dashboard-grid {
    grid-template-columns:1fr
  }
  .metrics-grid {
    gap:12px
  }
  .metric {
    padding:18px
  }
  .metric-value {
    font-size:24px
  }
  .topbar-label {
    display:none
  }
}
@media(max-width:700px) {
  :root {
    --sidebar:0px
  }
  .app-sidebar {
    position:static;
    width:auto;
    padding:18px 16px 12px;
    border-right:0;
    border-bottom:1px solid var(--line);
    overflow:visible
  }
  .brand {
    padding:0 0 15px
  }
  .app-navigation {
    display:flex;
    flex-direction:row;
    overflow-x:auto;
    gap:6px;
    padding-bottom:5px
  }
  .app-navigation a {
    flex-shrink:0;
    padding:8px 11px;
    font-size:12px;
    border:1px solid #e9eeef
  }
  .nav-label,.sidebar-footer {
    display:none
  }
  .app-topbar {
    height:56px;
    padding:0 18px;
    justify-content:flex-end
  }
  .account-menu {
    gap:10px
  }
  .sandbox-banner {
    padding:10px 18px;
    align-items:flex-start;
    gap:10px
  }
  main {
    padding:26px 18px 85px
  }
  .page-heading {
    flex-direction:column;
    gap:16px
  }
  h1 {
    font-size:27px
  }
  .metrics-grid {
    grid-template-columns:1fr 1fr;
    gap:10px
  }
  .metric {
    padding:17px 15px
  }
  .metric-value {
    font-size:25px
  }
  .metric:last-child {
    grid-column:1 / -1
  }
  .dashboard-grid {
    gap:16px
  }
  .summary,.panel {
    padding:20px
  }
  .panel-heading {
    gap:10px
  }
  .panel-heading h2 {
    font-size:17px
  }
  form.entry {
    padding:22px 20px
  }
  .page-footer span {
    display:none
  }
  .skip-link {
    left:12px
  }
  .auth-page .app-sidebar {
    padding-top:32px
  }
  .auth-page main {
    padding-top:32px
  }
  body.guide-open main {
    margin-right:0!important
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
form.entry textarea {
  height:120px;
  min-height:100px
}
main > form[data-bulk-review] { display:block; max-width:none; padding:0; background:transparent; border:0; box-shadow:none; }
.matching-toolbar { position:sticky; top:12px; z-index:3; display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px; margin:18px 0; border:1px solid #dce3eb; border-radius:14px; background:#fff; box-shadow:0 6px 20px #192e4610; }
.matching-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.matching-toolbar small { flex-basis:100%; color:#526176; }
.table-scroll .matching-table { min-width:700px; width:100%; table-layout:fixed; }
.matching-table th:first-child { width:14%; }
.matching-table th:nth-child(2) { width:24%; }
.matching-table th:nth-child(3) { width:29%; }
.matching-table th:nth-child(4) { width:33%; }
.matching-table td, .matching-table th { padding:12px 10px; }
.matching-table td { vertical-align:top; }
.matching-table .reference-cell { overflow-wrap:anywhere; }
.matching-table label { display:block; font-size:12px; margin:6px 0; }
.matching-table select, .matching-table input[type=search], .matching-table input[type=text], .matching-table textarea { width:100%; max-width:100%; }
.matching-table textarea { min-height:62px; height:62px; }
.matching-table small { display:block; margin-top:8px; }
.matching-table details { margin-top:12px; }
.matching-table summary { cursor:pointer; font-size:13px; }
.matching-table .receipt-state { margin:10px 0; font-size:12px; color:#526176; }
.matching-table .selected-credit td { background:#eef8f5; }
.matching-table .errorlist { padding-left:16px; font-size:12px; color:#a52a39; }
@media(max-width:1000px) {
  .app-topbar {
    justify-content:flex-end
  }
}
@media(max-width:700px) {
  .account-name {
    min-width:0;
    max-width:100px
  }
}
