:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #21313b;
  background: #f4f6f8;
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #246c75;
  text-underline-offset: 3px;
}
a:hover {
  color: #154951;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #becbd1;
  border-radius: 7px;
  background: white;
  color: #21313b;
  padding: 9px 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: #eaf0f2;
  color: #172d37;
}
.primary {
  background: #236873;
  border-color: #236873;
  color: #fff;
}
.primary:hover {
  background: #164f58;
  color: #fff;
}
.secondary {
  background: #fff;
}
.muted,
small {
  color: #60717b;
}
small {
  display: block;
  font-size: 12px;
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.25px;
  margin-bottom: 16px;
}
h3 {
  font-size: 14px;
}
p {
  margin-bottom: 16px;
}
input,
select,
textarea {
  border: 1px solid #bdcbd1;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: #21313b;
  max-width: 100%;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #236873;
  flex-shrink: 0;
}
input:disabled {
  opacity: 0.55;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #cd732a;
  outline-offset: 3px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #172c38;
  color: #d4e0e6;
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.wordmark {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.7px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  color: #f1a176;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #abc1cb;
  margin: 43px 12px 15px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 7px;
  color: #d4e0e6;
  text-decoration: none;
}
.sidebar nav a span {
  opacity: 0.4;
}
.sidebar nav a:hover,
.sidebar nav a[aria-current="page"] {
  background: #2a4552;
  color: #fff;
}
.sidebar nav a[aria-current="page"] {
  box-shadow: inset 3px 0 #f1a176;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.sidebar-bottom button {
  background: transparent;
  border-color: #66808d;
  color: #fff;
  font-size: 12px;
  padding: 6px 11px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 69px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  background: #fff;
  border-bottom: 1px solid #e1e7eb;
  color: #60717b;
  font-size: 12px;
}
main#main {
  padding: 34px 36px;
  max-width: 1680px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #566c77;
  margin-bottom: 9px;
}
.page-heading > .muted {
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  padding: 4px 8px;
  background: #eaf0f3;
  color: #465f6d;
  white-space: normal;
}
.badge.green {
  background: #e4f1e9;
  color: #285e3d;
}
.badge.amber {
  background: #fff0dd;
  color: #805021;
}
.panel {
  background: #fff;
  border: 1px solid #e0e6ea;
  border-radius: 10px;
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
  box-shadow: 0 1px 2px #1a354604;
}
.panel-heading,
.toolbar,
.customer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-heading h2 {
  margin-bottom: 0;
}
.panel-heading {
  margin-bottom: 23px;
}
.toolbar {
  margin-bottom: 18px;
}
.toolbar p {
  margin: 0;
}
.panel-heading > a {
  font-size: 12px;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e0e6ea;
  padding: 17px;
  border-radius: 9px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 17px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.filters .field {
  margin: 0;
  min-width: 140px;
  flex: 1;
  max-width: 300px;
}
.filters button {
  height: 41px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}
.source-note {
  background: #edf2f4;
  border-left: 3px solid #85a5b2;
  border-radius: 4px;
  padding: 13px 16px;
  font-size: 12px;
  color: #455f6d;
  margin-bottom: 22px;
}
.source-note strong {
  color: #294954;
}
.source-note p:last-child {
  margin: 9px 0 0;
}
.warning {
  color: #8b4718;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 17px;
  margin-bottom: 22px;
}
.metric {
  background: #fff;
  border: 1px solid #e0e6ea;
  border-radius: 10px;
  padding: 21px 22px;
}
.metric > span {
  display: block;
  color: #566e7b;
  font-size: 12px;
}
.metric > strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  margin: 7px 0;
  color: #244c59;
}
.metric small {
  font-size: 11px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
}
.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.action-list li {
  border-bottom: 1px solid #e8edf0;
}
.action-list li:last-child {
  border: 0;
}
.action-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  text-decoration: none;
  color: #324f5d;
  font-size: 13px;
}
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bar-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.bar-track {
  height: 13px;
  border-radius: 4px;
  background: #eef3f5;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #467e8b;
  border-radius: 4px;
}
.bar-row strong {
  text-align: right;
  font-weight: 600;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  padding: 12px 14px;
  background: #f6f8f9;
  color: #526a77;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #dfe6ea;
  white-space: nowrap;
}
td {
  padding: 15px 14px;
  border-bottom: 1px solid #e8edf0;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td a {
  font-weight: 550;
}
td small {
  margin-top: 3px;
}
td .badge {
  margin: 2px 3px 2px 0;
}
.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row-actions a {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.empty {
  text-align: center;
  padding: 30px 10px;
  margin: 0;
  color: #60717b;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 20px;
}
.customer-heading {
  margin-bottom: 20px;
}
.customer-heading h2 {
  font-size: 24px;
  margin-bottom: 5px;
}
.customer-heading p {
  margin: 0;
}
.notice {
  padding: 14px 17px;
  border-radius: 7px;
}
.success {
  color: #245c35;
  background: #e6f3e9;
}
.error {
  color: #8d3328;
  background: #ffebe7;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 10px 0;
}
.membership-list {
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
fieldset {
  border: 1px solid #d5dfe4;
  border-radius: 7px;
  margin: 18px 0;
  padding: 15px;
}
legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 5px;
}
summary {
  cursor: pointer;
  color: #316575;
  overflow-wrap: anywhere;
}
.owner-editor {
  font-size: 11px;
  margin-top: 7px;
}
.owner-editor form {
  min-width: 210px;
  margin-top: 12px;
}
.submitted-fields {
  margin: 0;
}
.submitted-fields dt {
  font-size: 12px;
  color: #60717b;
  margin-top: 18px;
}
.submitted-fields dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.preserve-text {
  white-space: pre-wrap;
}
.submission-image {
  max-width: 100%;
  max-height: 320px;
}
.archive-message {
  padding: 16px 0;
  border-bottom: 1px solid #e5ebee;
}
.archive-message:last-child {
  border: 0;
}
.archive-message summary {
  font-weight: 600;
}
.archive-message .prose {
  margin-top: 18px;
}
.prose {
  overflow-wrap: anywhere;
}
.prose img {
  max-width: 100%;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
}
.audit-diff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
  min-width: 350px;
}
pre {
  max-width: 100%;
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f5f7f8;
  padding: 12px;
  border-radius: 5px;
}
.pagination {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}
footer {
  padding: 10px 36px 25px;
  color: #60717b;
  font-size: 11px;
}
.login {
  min-height: 100vh;
  background: #172c38;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 28px;
}
.login > .wordmark {
  color: #fff;
  font-size: 25px;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
}
.login-card h1 {
  font-size: 28px;
  margin: 20px 0 10px;
}
.login-card .primary {
  width: 100%;
  margin-top: 6px;
}
.login-card > .muted {
  font-size: 12px;
  margin: 20px 0 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  background: #fff;
  padding: 10px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
@media (min-width: 1600px) {
  main#main {
    padding: 42px 50px;
  }
}
@media (max-width: 1000px) {
  .admin-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 14px;
  }
  .wordmark {
    font-size: 17px;
  }
  main#main {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .admin-layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 17px 18px;
  }
  .sidebar-label {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 15px;
    gap: 5px;
  }
  .sidebar nav a {
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 12px;
  }
  .sidebar nav a span {
    display: none;
  }
  .sidebar nav a[aria-current="page"] {
    box-shadow: inset 0 -2px #f1a176;
  }
  .sidebar-bottom {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 0;
    margin: 0;
  }
  .sidebar-bottom > span {
    display: none;
  }
  .topbar {
    height: 52px;
    padding: 0 18px;
    font-size: 10px;
  }
  .topbar .badge {
    font-size: 10px;
  }
  main#main {
    padding: 24px 16px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading > .muted {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  .panel {
    padding: 18px 14px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric > strong {
    font-size: 28px;
  }
  .field-grid,
  .membership-list {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 13px;
    gap: 10px;
  }
  .filters .field {
    min-width: 125px;
    max-width: none;
  }
  .filters button {
    width: 100%;
  }
  .dashboard-grid {
    gap: 0;
  }
  .login {
    padding: 18px;
  }
  .login-card {
    padding: 28px 24px;
  }
  .customer-heading .button {
    width: 100%;
  }
  footer {
    padding: 10px 18px 25px;
  }
  .audit-diff {
    grid-template-columns: 1fr;
    min-width: 220px;
  }
  td,
  th {
    padding: 12px 10px;
  }
  .bar-row {
    grid-template-columns: 60px minmax(0, 1fr) 43px;
    gap: 8px;
  }
}
