:root {
  --paper: oklch(98% 0.003 245);
  --surface: oklch(96% 0.003 245);
  --ink: oklch(24% 0.006 245);
  --muted: oklch(48% 0.008 245);
  --rule: oklch(87% 0.004 245);
  --hover: oklch(93% 0.005 245);
  --white: oklch(99.5% 0.001 245);
  --error: oklch(42% 0.13 26);
  font-family: Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button {
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  border-radius: 5px;
  padding: 9px 15px;
  font-weight: 500;
  min-height: 40px;
}
button:hover {
  background: var(--hover);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.primary:hover {
  background: oklch(35% 0.008 245);
}
.text-button {
  background: transparent;
  border: 0;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.boot {
  padding: 12vh 10vw;
}
.wordmark {
  font-size: 25px;
  letter-spacing: -1.2px;
  font-weight: 700;
}
.wordmark span {
  font-weight: 400;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  padding: 30px 22px 22px;
  border-right: 1px solid var(--rule);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.client {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  border-color: transparent;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav button[aria-current="page"] {
  background: var(--white);
  border-color: var(--rule);
  font-weight: 600;
}
.nav svg {
  height: 17px;
  width: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.side-bottom {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 17px;
}
.side-bottom a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}
.side-bottom p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.content {
  min-width: 0;
}
.topbar {
  height: 70px;
  padding: 0 38px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.language {
  min-height: 32px;
  padding: 4px 7px;
  font-size: 12px;
  max-width: 115px;
}
.scope-tag {
  display: flex;
  gap: 7px;
  align-items: center;
}
.scope-tag:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
main {
  padding: 35px 38px 60px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 9px;
}
h1 {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 11px;
}
h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
p {
  max-width: 70ch;
}
.intro {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
  font-size: 13px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 31px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 26px;
  padding: 18px 0;
}
.stat {
  padding: 0 22px;
  border-right: 1px solid var(--rule);
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border: 0;
}
.stat dt {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 7px;
}
.stat dd {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 19px 0;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar input {
  width: 320px;
  max-width: 100%;
}
.toolbar small {
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 4px;
  padding: 9px 11px;
  color: var(--ink);
  max-width: 100%;
  min-height: 40px;
}
input[type="file"] {
  font-size: 12px;
  padding: 8px;
}
input::placeholder {
  color: var(--muted);
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 75px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
caption {
  text-align: left;
  padding: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
tbody tr:hover {
  background: var(--surface);
}
td .sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.row-button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  min-height: 30px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}
.row-button:hover {
  background: transparent;
  text-decoration-color: var(--ink);
}
.num {
  text-align: right;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  border: 1px solid var(--rule);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  background: var(--surface);
  font-weight: 500;
}
.badge.strong {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.badge.dashed {
  border-style: dashed;
}
.table-wrap {
  overflow: auto;
}
.evidence-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 21px;
  max-width: 90ch;
}
.evidence-note b {
  font-weight: 500;
}
.empty {
  padding: 72px 25px 84px;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.empty .stamp {
  display: inline-flex;
  border: 1px solid var(--rule);
  width: 49px;
  height: 56px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 5px;
  margin-bottom: 23px;
  color: var(--muted);
}
.empty h2 {
  font-size: 22px;
  margin-bottom: 9px;
}
.empty p {
  margin: 0 auto 23px;
  color: var(--muted);
  font-size: 13px;
  max-width: 49ch;
}
.empty button {
  margin-top: 4px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 28px;
  align-items: start;
}
.detail {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
  background: var(--white);
  min-width: 0;
}
.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.detail .close {
  border: 0;
  background: transparent;
  font-size: 20px;
  min-height: 24px;
  padding: 0 3px;
  line-height: 1;
}
.detail-section {
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid var(--rule);
}
.facts {
  margin: 14px 0 0;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 9px 0;
  font-size: 12px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.form-panel {
  max-width: 760px;
  background: var(--white);
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 21px;
}
.form-note {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}
.error {
  color: var(--error);
  font-size: 12px;
  white-space: normal;
  margin-top: 12px;
}
.notice-inline {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
  border-radius: 4px;
  margin: 16px 0;
}
.history {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.history button {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  text-align: left;
}
.history small {
  color: var(--muted);
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 80px 1fr 70px;
}
.login-header {
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.login-main {
  max-width: 640px;
  width: 100%;
  padding: 12vh 40px;
  margin: 0 auto;
}
.login h1 {
  font-size: 42px;
  letter-spacing: -1.6px;
  max-width: 12ch;
  line-height: 1.13;
  margin-top: 17px;
}
.login .intro {
  max-width: 45ch;
  margin: 20px 0 29px;
}
.login .primary {
  display: inline-flex;
  gap: 40px;
  text-decoration: none;
  padding: 12px 17px;
  border-radius: 5px;
  font-weight: 500;
}
.login-foot {
  padding: 22px 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.settings {
  max-width: 760px;
}
.settings-section {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.settings-section p {
  font-size: 12px;
  color: var(--muted);
}
.skeleton {
  height: 15px;
  background: var(--hover);
  border-radius: 3px;
  margin: 22px 0;
  width: 80%;
}
.skeleton:nth-child(2) {
  width: 60%;
}
.skeleton:nth-child(3) {
  width: 90%;
}
#notice:empty {
  display: none;
}
#notice {
  position: fixed;
  bottom: 23px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 5px;
  max-width: min(420px, calc(100vw - 32px));
  font-size: 12px;
  z-index: 20;
}
.mobile-client {
  display: none;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.pagination button {
  font-size: 11px;
  min-height: 32px;
  padding: 5px 11px;
}
.raw-row {
  margin-bottom: 18px;
}
.raw-row summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 0;
}
.raw-row dl {
  border-top: 1px solid var(--rule);
  padding-top: 7px;
}
.source-type {
  font-size: 11px;
  margin-bottom: 7px;
}
.page-note {
  margin-bottom: 24px;
}
button[data-nav] {
  white-space: nowrap;
}
.table-empty {
  padding: 36px;
  text-align: center;
  color: var(--muted);
}
.review-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
@media (min-width: 1500px) {
  main {
    max-width: 1500px;
    margin: auto;
    padding-top: 45px;
  }
  .topbar {
    padding-inline: 45px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 16px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 29px 25px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .detail {
    max-width: 100%;
  }
  .heading {
    flex-wrap: wrap;
  }
  .stat {
    padding-inline: 14px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 17px 18px 0;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .brand-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .sidebar .client {
    margin: 0;
  }
  .nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    margin-top: 17px;
    padding-bottom: 9px;
  }
  .nav button {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 38px;
  }
  .nav svg {
    display: none;
  }
  .side-bottom {
    display: none;
  }
  .topbar {
    height: 52px;
    padding: 0 18px;
  }
  .top-actions {
    gap: 12px;
  }
  .topbar .scope-tag {
    display: none;
  }
  main {
    padding: 26px 18px 45px;
  }
  h1 {
    font-size: 28px;
  }
  .heading {
    gap: 18px;
    margin-bottom: 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    padding: 17px 0;
  }
  .stat:nth-child(odd) {
    padding-left: 0;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat dt {
    font-size: 10px;
  }
  .stat dd {
    font-size: 23px;
  }
  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .toolbar input {
    width: 100%;
    max-width: none;
  }
  .toolbar-group {
    width: 100%;
  }
  .toolbar-group select {
    flex: 1;
    min-width: 0;
    font-size: 11px;
  }
  .form-panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .login-header,
  .login-foot {
    padding: 20px;
  }
  .login-main {
    padding: 10vh 24px;
  }
  .login h1 {
    font-size: 37px;
  }
  .login-foot {
    font-size: 10px;
  }
  .empty {
    padding: 50px 18px;
  }
  .table-wrap {
    margin-right: -3px;
  }
  th,
  td {
    padding: 12px 10px;
  }
  .heading-actions {
    width: 100%;
  }
  .detail {
    padding: 18px;
  }
  .language {
    max-width: 100px;
  }
  .settings-section .facts > div {
    flex-wrap: wrap;
  }
  .source-type {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s ease-out,
      opacity 0.15s ease-out;
  }
}
