:root {
  --ink: #29252b;
  --muted: #77717a;
  --paper: #f8f6f2;
  --line: #e5e0e0;
  --plum: #592e43;
  --plum-light: #f1e8ed;
  --green: #34745c;
  --red: #a53e48;
  --amber: #93672d;
  --radius: 14px;
  font-family: Arial, Helvetica, 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 {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
}
button:hover {
  border-color: var(--plum);
  background: var(--plum-light);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--plum);
  border-color: var(--plum);
  color: white;
}
.primary:hover {
  background: #713c57;
  color: white;
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
a {
  color: var(--plum);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
h3 {
  font-size: 15px;
}
p {
  color: var(--muted);
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 700;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 29px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand {
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: -1.3px;
  line-height: 1.1;
  color: var(--plum);
}
.brand span {
  font-size: 29px;
  font-style: italic;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 36px;
}
.nav-group {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #9b939c;
  margin: 18px 12px 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #6d6570;
  padding: 10px 12px;
  border-radius: 7px;
  margin: 2px 0;
  font-size: 12px;
}
.nav-link.active {
  background: var(--plum-light);
  color: var(--plum);
  font-weight: 700;
}
.nav-link:hover {
  background: #f7f3f5;
}
.nav-icon {
  width: 20px;
  font-size: 17px;
  line-height: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 12px 5px;
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  background: var(--plum-light);
  color: var(--plum);
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
}
.account small {
  font-size: 10px;
  display: block;
}
.content {
  padding: 34px 38px 50px;
  max-width: 1650px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  font-size: 12px;
  margin: 0;
}
.head-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.banner {
  border: 1px solid #e5d5bb;
  background: #fcf5e9;
  border-radius: 10px;
  padding: 13px 18px;
  color: #795c38;
  font-size: 12px;
  margin-bottom: 24px;
}
.banner strong {
  display: block;
  color: #62451f;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 129px;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.metric-value {
  font-size: 34px;
  margin: 8px 0 1px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.metric small {
  font-size: 10px;
}
.metric.alert {
  background: #fcf2f3;
  border-color: #eddcde;
}
.metric.alert .metric-value {
  color: var(--red);
}
.grid-two {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.grid-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.card-head h2 {
  margin: 0;
}
.card p {
  font-size: 12px;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 8px;
}
.table-wrap {
  overflow-x: auto;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  background: #faf9f7;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  padding: 16px 18px;
  white-space: nowrap;
}
td {
  padding: 17px 18px;
  border-top: 1px solid #f0eced;
  max-width: 420px;
  overflow-wrap: anywhere;
}
tr:hover td {
  background: #fdfbfc;
}
.cell-title {
  font-weight: 600;
  color: var(--ink);
  max-width: 290px;
}
.collection-diagnostic {
  min-width: 260px;
  max-width: 420px;
}
.cell-sub {
  font-size: 10px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1px;
  background: #f0eef0;
  color: #6f6470;
  white-space: normal;
}
.badge.green {
  background: #eaf4ee;
  color: var(--green);
}
.badge.red {
  background: #fae9ec;
  color: var(--red);
}
.badge.amber {
  background: #fbf0de;
  color: var(--amber);
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  max-width: 380px;
  flex: 1;
  min-width: 180px;
}
.count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  border-left: 2px solid var(--line);
  padding: 0 0 23px 18px;
  position: relative;
  font-size: 12px;
}
.timeline li:before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--plum);
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  left: -5px;
  top: 3px;
}
.timeline small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.platform-row {
  margin: 18px 0;
}
.platform-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.bar {
  height: 6px;
  background: #f0e9ed;
  border-radius: 9px;
  margin-top: 9px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--plum);
  border-radius: 9px;
}
.detail-list {
  display: grid;
  gap: 15px;
}
.run-progress .detail-list {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.audit-jobs table {
  min-width: 1100px;
}
.audit-jobs td {
  vertical-align: top;
}
.audit-jobs td:first-child {
  min-width: 140px;
}
.audit-jobs td:nth-child(4),
.audit-jobs td:nth-child(6) {
  min-width: 175px;
}
.detail-field dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.detail-field dd {
  margin: 5px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f9f7f7;
}
.gallery figcaption {
  padding: 9px;
  font-size: 10px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.diff-add {
  color: var(--green);
  background: #eef7f0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diff-remove {
  color: var(--red);
  background: #faecee;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid[hidden],
.form-grid [hidden] {
  display: none;
}
.source-summary {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.source-facts .detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b616c;
  margin-bottom: 5px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dcd6dd;
  background: white;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 12px;
}
textarea {
  min-height: 94px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--plum);
  margin-right: 8px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.error {
  color: var(--red);
  background: #fceff0;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  margin: 14px 0;
}
.success {
  color: var(--green);
  padding: 12px;
  background: #edf7ef;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  padding: 70px 12%;
  background: var(--plum);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story .brand {
  color: #fff;
}
.login-story h1 {
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: -2px;
  max-width: 480px;
}
.login-story p {
  color: #d2bec9;
  max-width: 330px;
  line-height: 1.8;
}
.login-story .eyebrow {
  color: #c5a9b9;
  margin-bottom: 25px;
}
.login-line {
  width: 50px;
  height: 2px;
  background: #b690a4;
  margin: 28px 0;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  width: 100%;
  max-width: 360px;
}
.login-box h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}
.login-box form > div {
  margin-bottom: 18px;
}
.login-box button.primary {
  width: 100%;
}
.login-note {
  font-size: 10px;
  margin-top: 35px;
  color: var(--muted);
}
.loading {
  padding: 70px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(760px, calc(100vw - 30px));
  padding: 30px;
  max-height: 90vh;
  box-shadow: 0 30px 100px #29172544;
}
dialog::backdrop {
  background: #24162355;
  backdrop-filter: blur(3px);
}
#toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: 400px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 9px;
  z-index: 100;
  display: none;
  font-size: 12px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 10px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.mobile-menu {
  display: none;
}
.technical {
  font-family: monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 450px;
  overflow: auto;
}
.subsection {
  margin-top: 28px;
}
.link-button {
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: var(--plum);
  font-weight: 600;
}
.settings-status {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  gap: 20px;
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.occurrence-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.occurrence-metrics .metric {
  padding: 16px;
  min-height: 108px;
  text-align: left;
}
.occurrence-metrics .metric-value { display: block; }
.occurrence-search { display: grid; grid-template-columns: minmax(200px, 1fr) 230px auto; align-items: end; gap: 14px; margin-bottom: 16px; }
.occurrence-filter summary { cursor: pointer; font-weight: 600; }
.occurrence-filter details[open] > summary { margin-bottom: 20px; }
.occurrence-filter fieldset { border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.occurrence-filter legend { font-size: 12px; font-weight: 600; }
.occurrence-filter fieldset .checkbox { display: inline-flex; margin-right: 12px; }
.occurrence-filter [hidden], .occurrence-bulk[hidden] { display: none; }
.occurrence-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-bottom: 14px; border: 1px solid var(--plum); border-radius: 10px; background: var(--plum-light); }
.occurrence-table table { min-width: 1450px; }
.occurrence-table td { vertical-align: top; padding: 16px 12px; }
.occurrence-table th { padding: 14px 12px; }
.occurrence-table td:nth-child(2) { min-width: 210px; max-width: 280px; }
.occurrence-table td:nth-child(3), .occurrence-table td:nth-child(4) { min-width: 145px; max-width: 210px; }
.occurrence-table td:last-child { min-width: 165px; }
.occurrence-table small, .occurrence-product, .occurrence-deadline small { display: block; margin: 5px 0; }
.occurrence-product { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }
.occurrence-product:hover { text-decoration: underline; color: var(--plum); }
.occurrence-actions { margin-top: 9px; }
.occurrence-actions summary { cursor: pointer; font-size: 11px; }
.occurrence-actions button { display: block; margin-top: 6px; }
.occurrence-overview .detail-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 761px) {
  .occurrence-table td:last-child, .occurrence-table th:last-child { position: sticky; right: 0; background: white; box-shadow: -3px 0 5px #29252b0a; }
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
@media (max-width: 1100px) {
  .occurrence-search { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr); }
  .occurrence-search > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .occurrence-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .occurrence-search { grid-template-columns: minmax(0, 1fr); }
  .occurrence-bulk button { width: 100%; }
}
@media (min-width: 1450px) {
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .content {
    padding-top: 40px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 12px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-two,
  .grid-even {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 50px 10%;
  }
  .login-story h1 {
    font-size: 44px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 20;
    width: 245px;
    box-shadow: 15px 0 70px #0003;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .breadcrumb {
    display: none;
  }
  .content {
    padding: 24px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  h1 {
    font-size: 29px;
  }
  .head-actions {
    width: 100%;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
    min-height: 122px;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric-label {
    font-size: 10px;
  }
  .card {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    display: block;
  }
  .login-story {
    min-height: 0;
    padding: 28px;
  }
  .login-story h1,
  .login-story .story-copy,
  .login-story footer {
    display: none;
  }
  .login-main {
    padding: 40px 25px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .account .quiet {
    font-size: 11px;
  }
  dialog {
    padding: 22px;
  }
  th,
  td {
    padding: 13px 12px;
  }
}
