* {
  box-sizing: border-box;
}
:root {
  --ink: #17232b;
  --muted: #505e66;
  --line: #cbd2d6;
  --layer: #f3f5f6;
  --focus: #005fcc;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --gutter: clamp(var(--space-4), 4vw, var(--space-6));
  --card-padding: clamp(var(--space-4), 4vw, var(--space-5));
  --stack-gap: var(--space-5);
}
body {
  margin: 0;
  color: var(--ink);
  background: white;
  font:
    16px/1.5 system-ui,
    -apple-system,
    sans-serif;
}
header {
  background: #192a34;
  color: white;
}
.customer header {
  background: white;
  color: var(--ink);
  border-top: 4px solid var(--brand);
  border-bottom: 1px solid var(--line);
}
.bar,
main,
footer {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.bar,
.identity,
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.bar {
  min-height: 56px;
}
.identity {
  justify-content: start;
  font-size: 1.05rem;
}
.identity img,
.mark {
  width: 34px;
  height: 34px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--action);
  color: white;
  font-weight: 700;
}
.platform .mark {
  background: white;
  color: #192a34;
}
.product,
small,
.reference {
  color: var(--muted);
  font-size: 0.875rem;
}
main {
  padding-block: clamp(var(--space-5), 5vw, var(--space-7));
  min-height: 75vh;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-5);
  color: var(--muted);
  font-size: 0.8rem;
}
h1,
h2,
legend,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 480;
  letter-spacing: -0.045em;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
p {
  margin-block: 12px;
}
.form-sheet,
.document-sheet,
.login {
  margin: auto;
  width: min(100%, 690px);
}
.document-sheet {
  width: min(100%, 940px);
}
.progress {
  font-weight: 620;
  color: var(--action);
  margin: 0;
}
.progress span {
  padding: 0 3px;
}
.hint {
  color: var(--muted);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  border-top: 1px solid var(--line);
  width: 100%;
  padding: var(--space-4) 0 var(--space-3);
  font-size: 1.1rem;
  font-weight: 650;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
}
.wide {
  grid-column: 1/-1;
}
label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
}
input,
select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--layer);
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #79858c;
  border-radius: 0;
  margin-top: var(--space-1);
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  vertical-align: middle;
  margin: 0 8px 0 0;
  accent-color: var(--action);
}
.check {
  margin: 8px 0;
}
a {
  color: var(--action);
  text-underline-offset: 3px;
}
button,
.btn {
  display: inline-block;
  border: 0;
  border-radius: 0;
  background: var(--action);
  color: white;
  padding: 13px 20px;
  font: 600 0.94rem/1.4 system-ui;
  cursor: pointer;
  text-decoration: none;
}
.secondary {
  background: #e7ecee;
  color: var(--ink);
}
button:hover,
.btn:hover {
  filter: brightness(0.9);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
input[aria-invalid="true"] {
  border: 2px solid #a22027;
}
.field-error,
[role="alert"],
[role="alert"] a {
  color: #a22027;
}
.field-error {
  display: block;
  margin-top: 4px;
}
.trap {
  position: absolute;
  left: -10000px;
}
.panel,
.card {
  padding: var(--card-padding);
  background: var(--layer);
}
.card {
  max-width: 900px;
}
.card input,
.card select {
  background: white;
}
.login {
  max-width: 420px;
  margin: 0 auto;
  border-top: 3px solid var(--action);
}
.login button {
  width: 100%;
}
.eyebrow {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.actions,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.actions {
  margin-block: var(--space-4);
}
.filters {
  margin: 0;
  border-bottom: 1px solid var(--line);
  gap: 0;
}
.filters a {
  color: var(--muted);
  padding: 12px 15px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.filters a:hover {
  background: var(--layer);
}
.filters [aria-current] {
  border-color: var(--action);
  color: var(--ink);
  font-weight: 650;
}
.filters span {
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #e9edef;
  font-weight: 600;
  white-space: nowrap;
}
td:first-child,
.reference {
  font-variant-numeric: tabular-nums;
}
td a {
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 9px;
  height: 9px;
  background: #63707a;
  border-radius: 50%;
}
.SIGNED::before {
  background: #198044;
}
.PENDING::before {
  background: #a86b00;
}
.FAILED::before,
.DECLINED::before {
  background: #b52a31;
}
.empty {
  padding: var(--card-padding);
  background: var(--layer);
}
iframe {
  display: block;
  width: 100%;
  height: clamp(420px, 65vh, 850px);
  border: 1px solid var(--line);
  margin: 0;
}
@media (max-width: 680px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .product {
    font-size: 0.75rem;
  }
  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .filters a {
    white-space: nowrap;
  }
  .heading-row {
    align-items: start;
    flex-wrap: wrap;
  }
  .form-sheet button {
    width: 100%;
  }
}

.org-search {
  margin: 0 0 24px;
}
.org-search div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.org-search input {
  margin: 0;
  width: min(100%, 24rem);
  flex: 0 1 24rem;
}
.org-table th[scope="row"] {
  background: white;
  white-space: normal;
  font-weight: 550;
}

.admin-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.admin-shell > header {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-shell > header .bar {
  width: auto;
  margin-inline: var(--gutter);
}
.admin-sidebar {
  grid-row: 2 / 4;
  position: sticky;
  top: 56px;
  align-self: start;
  min-height: calc(100vh - 56px);
  background: #243640;
  color: white;
  padding-block: var(--space-5);
}
.admin-shell {
  background: linear-gradient(to right, #243640 224px, white 224px);
}
.admin-sidebar nav {
  display: block;
  margin: 0;
}
.admin-menu-group + .admin-menu-group,
.admin-sidebar > form {
  border-top: 1px solid #53656f;
  margin-top: 16px;
  padding-top: 12px;
}
.admin-sidebar a,
.admin-sidebar button,
.admin-menu-label {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.admin-sidebar a,
.admin-sidebar button {
  color: white;
  background: transparent;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover,
.admin-sidebar button:hover {
  background: #354a56;
}
.admin-sidebar a[aria-current="page"] {
  border-left-color: #8fd0ee;
  background: #354a56;
  font-weight: 650;
}
.admin-sidebar :focus-visible {
  outline: 2px solid #a8dcf4;
  outline-offset: -3px;
}
.admin-menu-label {
  margin: 0;
  color: #cbd9e0;
  font-weight: 600;
}
.admin-sidebar > form button {
  width: 100%;
  text-align: left;
}
.admin-skip:not(:focus) {
  position: absolute;
  clip-path: inset(50%);
}
.admin-page-heading {
  margin-bottom: var(--space-5);
}
.admin-page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (max-width: 780px) {
  .admin-shell {
    display: block;
    background: white;
  }
  .admin-sidebar {
    position: static;
    min-height: auto;
    padding: 8px 12px;
  }
  .admin-menu-group {
    display: flex;
    flex-wrap: wrap;
  }
  .admin-menu-label {
    width: 100%;
  }
  .admin-sidebar > form button {
    width: auto;
  }
  .admin-sidebar a,
  .admin-sidebar button,
  .admin-menu-label {
    padding: 8px 12px;
  }
}

.stack {
  display: grid;
  gap: var(--stack-gap);
}
.stack > :where(p, .actions, .eyebrow, .reference) {
  margin: 0;
}
.stack > form > button:last-child {
  justify-self: start;
}
.login,
.admin-page-heading {
  --stack-gap: var(--space-2);
}
.login form {
  --stack-gap: var(--space-4);
  margin-top: var(--space-2);
}
.demo-link {
  display: flex;
  align-items: center;
  min-height: 64px;
  font-weight: 550;
  border: 1px solid var(--line);
}
.demo-link:hover {
  background: #e9edef;
}
.demo-home > .actions {
  padding-top: var(--space-1);
}
.form-sheet,
.document-sheet {
  --stack-gap: var(--space-4);
}
.form-sheet > form {
  margin-top: var(--space-2);
  --stack-gap: var(--space-5);
}
@media (max-width: 680px) {
  .heading-row {
    row-gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .customer .product {
    display: none;
  }
}
