:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #dce3ee;
  background: #0d1017;
  font-synthesis: none;
  color-scheme: dark;
  --muted: #818b9e;
  --border: #272e3c;
  --accent: #a8efcc;
  --surface: #151a24;
}
.view-switch {
  display: flex;
  gap: 4px;
}
.view-switch button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.cover-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #22242d;
  aspect-ratio: 1.2;
}
.cover-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}
.product-info {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.product-info .product-title {
  text-align: left;
  overflow-wrap: anywhere;
  min-height: 2.7em;
}
.product-info small {
  color: var(--muted);
  font-size: 11px;
}
.product-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 24px;
}
.product-tags .badge {
  font-size: 10px;
  padding: 4px 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.description {
  margin: 20px 0;
}
.description summary {
  cursor: pointer;
  color: var(--accent);
}
.description pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 13px;
  max-height: 50vh;
  overflow: auto;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 500px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-info {
    padding: 10px;
  }
  .product-stats {
    flex-direction: column;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #1d2432;
  color: #dce3ee;
  padding: 9px 15px;
  font-size: 13px;
  transition: background 0.15s;
}
button:hover {
  background: #2b3445;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #153326;
  font-weight: 650;
}
.primary:hover {
  background: #c1f8dc;
}
.quiet {
  background: transparent;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--accent);
}
input,
select {
  background: #10151f;
  border: 1px solid #323c4f;
  border-radius: 7px;
  padding: 10px 12px;
  color: inherit;
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
.rail {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  background: #11151e;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #f3f7fc;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 15px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2.2px;
  color: var(--muted);
}
.brand-mark {
  font-size: 30px;
  letter-spacing: -5px;
  display: flex;
  width: 42px;
  height: 46px;
  align-items: center;
}
.brand-mark span {
  color: var(--accent);
}
.rail-section {
  font-size: 10px;
  color: #667184;
  letter-spacing: 1.8px;
  margin: 52px 12px 14px;
}
nav {
  display: grid;
  gap: 6px;
}
.nav {
  background: transparent;
  border: 0;
  color: #9ca7ba;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.nav.active {
  background: #23372f;
  color: var(--accent);
}
.nav span {
  font-size: 11px;
}
.rail-bottom {
  margin-top: auto;
  font-size: 11px;
  line-height: 2.2;
  color: #b2bbca;
}
.rail-bottom small {
  font-size: 10px;
  color: #68758c;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
}
main {
  margin-left: 228px;
  min-height: 100vh;
  padding: 0 40px;
}
header {
  height: 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.breadcrumb {
  color: #77849b;
}
.breadcrumb span {
  margin: 0 14px;
  color: #434f65;
}
.breadcrumb strong {
  color: #bfc9d9;
  font-weight: 500;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}
.page-heading {
  margin: 39px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8290a6;
  font-weight: 650;
}
h1 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 9px 0 8px;
}
h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.2px;
  margin: 8px 0;
}
p {
  font-size: 13px;
  line-height: 1.7;
  color: #95a0b4;
  margin: 8px 0 20px;
}
.page-heading p {
  margin: 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  font-size: 10px;
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  background: #252d3d;
  color: #abb7c9;
  white-space: nowrap;
}
.badge.good {
  background: #203a2f;
  color: var(--accent);
}
.badge.warn {
  background: #3c3021;
  color: #e7bb77;
}
.badge.error {
  background: #3c222b;
  color: #ff9caa;
}
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  padding: 21px;
}
.metric > span {
  display: block;
  font-size: 11px;
  color: #9da9bd;
}
.metric strong {
  display: block;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 18px 0 10px;
}
.metric small {
  font-size: 10px;
  color: #6e7e96;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.overview-grid .card {
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.card-heading h2 {
  margin-bottom: 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.progress-track {
  height: 5px;
  background: #293141;
  border-radius: 8px;
  margin: 28px 0 14px;
  overflow: hidden;
}
.progress-track div {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 8px;
}
.split-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.split-text strong {
  font-weight: 500;
  color: #bcc8db;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0 0;
}
.detail-grid dt {
  font-size: 10px;
  color: #7f8ba1;
  margin-bottom: 7px;
}
.detail-grid dd {
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}
.route {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.route:last-child {
  border: 0;
}
.route strong {
  font-size: 13px;
  font-weight: 550;
}
.route p {
  font-size: 11px;
  margin: 7px 0 0;
}
.notice {
  padding: 13px 17px;
  border: 1px solid #3c5c4d;
  background: #192e24;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 20px;
  color: #b9e4cd;
}
.notice.error {
  background: #351f28;
  border-color: #6c3447;
  color: #f5afc1;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.toolbar input {
  width: 340px;
}
.toolbar .muted {
  margin-left: auto;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 500;
  color: #7988a0;
  padding: 12px 12px 14px;
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
td small {
  display: block;
  color: #7e8ca5;
  font-size: 10px;
  margin-top: 7px;
  line-height: 1.5;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
}
.preview {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #242e40;
  flex-shrink: 0;
}
.product-title {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d1daea;
  font-size: 12px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.product-title:hover {
  color: var(--accent);
  background: none;
}
.positive {
  color: var(--accent);
}
.negative {
  color: #f29ba9;
}
.empty {
  padding: 44px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 12px;
  color: var(--muted);
  margin: 25px 0;
}
.change-row {
  padding: 17px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: center;
}
.change-row > div {
  flex: 1;
  min-width: 0;
}
.change-row strong {
  font-size: 12px;
  font-weight: 500;
}
.change-row p {
  font-size: 11px;
  margin: 6px 0 0;
}
.event {
  display: grid;
  grid-template-columns: 145px 55px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.6;
}
.event time {
  color: #7b8ba5;
}
.event .error {
  color: #f3a1ae;
}
.event .warn {
  color: #e8bb7c;
}
.login {
  max-width: 640px;
  margin: 90px auto 140px;
  padding: 44px;
}
.login h1 {
  font-size: 36px;
  margin: 18px 0;
}
.login label {
  display: block;
  font-size: 11px;
  margin: 24px 0 8px;
}
.input-group {
  display: flex;
  gap: 10px;
}
.input-group input {
  flex: 1;
  min-width: 0;
}
.login .muted {
  font-size: 11px;
  margin-top: 20px;
}
footer {
  padding: 25px 0 30px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #58657b;
}
dialog {
  background: #151a24;
  color: #dce3ee;
  border: 1px solid #35415a;
  border-radius: 12px;
  width: min(1100px, 94vw);
  max-height: 88vh;
  padding: 28px;
}
dialog::backdrop {
  background: #05080dcc;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diff pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.75 ui-monospace,
    monospace;
  max-height: 55vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 15px;
  background: #10151d;
}
.diff .before {
  border-top: 2px solid #d88999;
}
.diff .after {
  border-top: 2px solid #8ccfac;
}
.diff-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.gallery img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #0d1017;
  border-radius: 6px;
}
.sparkline {
  width: 100%;
  height: 150px;
  margin: 20px 0;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}
.history-table {
  max-height: 220px;
  overflow: auto;
}
.job-actions {
  display: flex;
  gap: 6px;
}
.job-actions button {
  padding: 5px 9px;
  font-size: 10px;
}
[hidden] {
  display: none !important;
}
* {
  scrollbar-color: #3a4960 #10151e;
  scrollbar-width: thin;
}
@media (min-width: 1600px) {
  main {
    padding: 0 65px;
  }
  .rail {
    width: 244px;
  }
  main {
    margin-left: 244px;
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 185px;
    padding: 25px 12px;
  }
  main {
    margin-left: 185px;
    padding: 0 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 14px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  footer span {
    display: none;
  }
}
@media (max-width: 700px) {
  .rail {
    position: static;
    width: auto;
    padding: 15px;
  }
  .brand {
    display: none;
  }
  .rail-section,
  .rail-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  .nav {
    white-space: nowrap;
  }
  .nav span {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 16px;
  }
  header {
    height: 60px;
  }
  .page-heading {
    display: block;
    margin-top: 28px;
  }
  .heading-actions {
    justify-content: flex-start;
    margin-top: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .card {
    padding: 18px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    width: 100%;
  }
  .diff {
    grid-template-columns: 1fr;
  }
  .event {
    grid-template-columns: 110px 40px 1fr;
  }
  .login {
    margin: 40px auto;
    padding: 25px;
  }
}
.route {
  align-items: flex-start;
}
.unified-diff {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.8 ui-monospace,
    monospace;
  background: #10151d;
  padding: 16px;
  border: 1px solid #35415a;
  border-radius: 8px;
  max-height: 65vh;
  overflow: auto;
}
.unified-diff span {
  display: block;
  min-height: 1.8em;
  white-space: pre-wrap;
}
.unified-diff .added {
  background: #203c2f;
  color: #b8ebce;
}
.unified-diff .removed {
  background: #432730;
  color: #f5bac5;
}
