:root {
  color-scheme: light;
  --navy: #0b1f4d;
  --blue: #1a6bff;
  --ink: #263857;
  --muted: #5e6e85;
  --line: #dce4ef;
  --paper: #fafbfd;
  --wash: #eef3fa;
  --green: #246849;
  --amber: #805b17;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
}
button {
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--blue);
  color: white;
  padding: 11px 17px;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
  transition: background 0.15s;
}
button:hover {
  background: #1157d8;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  color: var(--navy);
  background: transparent;
  border-color: #aebcd0;
}
.quiet {
  background: transparent;
  color: var(--blue);
  padding: 8px 0;
}
.secondary:hover,
.quiet:hover {
  background: var(--wash);
  color: var(--navy);
}
[hidden] {
  display: none !important;
}
.top {
  height: 84px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  background: #fff;
}
.wordmark {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 2.1px;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 650;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
#identity {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 12px;
}
.navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.navigation button {
  background: none;
  color: var(--muted);
  border: 0;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 19px 0 16px;
}
.navigation button[aria-current] {
  color: var(--navy);
  border-color: var(--blue);
}
.navigation span {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
#content {
  max-width: 1560px;
  margin: auto;
  padding: 38px clamp(20px, 4vw, 64px) 80px;
  min-height: 70vh;
}
h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 650;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 12px;
  line-height: 1.15;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 28px 0 14px;
}
h3 {
  font-size: 15px;
  margin: 18px 0 10px;
}
p {
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 18px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--blue);
  margin: 0 0 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-heading p:last-child {
  margin-bottom: 0;
}
.count {
  font-size: 12px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.toolbar label {
  flex: 1;
  min-width: 110px;
}
.toolbar .search {
  flex: 2;
  min-width: 230px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
}
input,
select {
  border: 1px solid #c5d1e1;
  border-radius: 4px;
  padding: 11px 12px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  min-width: 0;
  min-height: 42px;
}
input::placeholder {
  color: #8390a3;
  font-weight: 400;
}
.table-wrap {
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 24px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 13px 15px;
  background: var(--wash);
  font-weight: 700;
}
td {
  padding: 16px 15px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}
tbody tr:hover {
  background: #f3f7fd;
}
td:first-child,
th:first-child {
  padding-left: 14px;
}
.table-link {
  font-weight: 650;
  min-height: 0;
  text-align: left;
  padding: 0;
  color: var(--navy);
  background: none;
}
.table-link:hover {
  color: var(--blue);
  background: none;
}
.secondary-text {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  background: var(--wash);
  color: var(--navy);
}
.badge.good {
  background: #eaf8ef;
  color: var(--green);
  border-color: #c5dfd0;
}
.badge.attention {
  background: #fff6e4;
  color: var(--amber);
  border-color: #eddbb6;
}
.empty {
  padding: 60px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.empty h2 {
  margin-top: 0;
}
.empty p {
  max-width: 480px;
  margin: 12px auto;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 24px;
  border-block: 1px solid var(--line);
  padding: 24px 0;
  margin: 24px 0;
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.warning {
  background: #fff7e8;
  border: 1px solid #ecddbd;
  padding: 15px 18px;
  color: #6d511e;
  line-height: 1.6;
  margin: 20px 0;
}
.note {
  color: var(--muted);
  font-size: 12px;
}
.fulfillment-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  border-top: 1px solid var(--line);
}
.inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
}
.inline-form input {
  width: 120px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-grid button {
  justify-self: start;
}
.import-section,
.export-section {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 12px;
}
.format {
  font-size: 12px;
  color: var(--navy);
  word-break: break-word;
}
.file-label {
  display: inline-flex;
  max-width: 340px;
  margin: 8px 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}
.code-label {
  padding: 18px 24px;
  border: 1px dashed #a9b9ce;
  font-weight: 750;
  letter-spacing: 3px;
  color: var(--navy);
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 650;
  line-height: 1.6;
}
.record-body {
  padding: 10px 0 0 20px;
}
.record-body dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  font-size: 12px;
  gap: 8px;
}
.record-body dt {
  color: var(--muted);
}
.record-body dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.login {
  max-width: 1080px;
  margin: 80px auto 120px;
  padding: 0 40px;
  min-height: 50vh;
}
.login h1 {
  font-size: 48px;
  letter-spacing: -1.6px;
  line-height: 1.1;
}
.login p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.6;
  margin: 24px 0 34px;
}
.login small {
  display: block;
  color: var(--muted);
  max-width: 430px;
  line-height: 1.6;
  margin-top: 18px;
}
#login-status {
  font-size: 13px !important;
}
footer {
  padding: 25px clamp(20px, 4vw, 64px);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer span {
  float: right;
}
#notice {
  padding: 14px clamp(20px, 4vw, 64px);
  background: #eef3fa;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
#notice.error {
  background: #fff1ed;
  color: #883d2a;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--navy);
  color: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
@media (max-width: 850px) {
  .navigation span {
    display: none;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .fulfillment-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .top {
    height: 70px;
  }
  .wordmark span {
    display: none;
  }
  #identity {
    gap: 12px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .navigation {
    gap: 24px;
  }
  .section-heading {
    align-items: start;
    gap: 16px;
  }
  .login {
    margin-top: 50px;
  }
  .login h1 {
    font-size: 38px;
  }
}
@media (max-width: 480px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
  #staff-email {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .record-body {
    padding-left: 0;
  }
  .record-body dl {
    grid-template-columns: 1fr;
  }
  .wordmark {
    font-size: 18px;
  }
  .login {
    padding: 0 24px;
  }
  .toolbar label {
    min-width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  #workspace,
  #content,
  #fulfillment,
  .fulfillment-layout,
  .fulfillment-layout > section:first-child,
  #generated,
  #generated .codes {
    display: block !important;
  }
  #content {
    padding: 0;
  }
  #fulfillment > *:not(.fulfillment-layout),
  .fulfillment-layout > section:nth-child(2),
  .fulfillment-layout > section:first-child > *:not(#generated),
  #generated > *:not(.codes) {
    display: none !important;
  }
  .codes {
    display: flex !important;
  }
  .code-label {
    display: inline-block;
    margin: 8px;
    break-inside: avoid;
  }
  .code-label:after {
    content: 'Setup code · inside the box';
    display: block;
    font-size: 9px;
    letter-spacing: 0;
    font-weight: 400;
    margin-top: 12px;
  }
}
