:root {
  --ink: #171513;
  --muted: #6f665d;
  --paper: #fff9ef;
  --line: rgba(23, 21, 19, 0.16);
  --accent: #b83d2f;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.ops-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 28px;
  color: #fffdf7;
  background: #171513;
}

.ops-brand,
.ops-topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ops-brand span {
  display: grid;
  width: 42px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 850;
}

.ops-topbar nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.ops-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 52px 28px 80px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.ops-hero h1,
.section-head h2 {
  margin: 0;
  line-height: 1.08;
}

.ops-hero h1 {
  font-size: 48px;
}

.ops-hero h1 span,
.section-head h2 span {
  display: block;
}

.ops-hero p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.metric-grid article,
.ops-section,
.message-item,
.order-item {
  border-top: 1px solid var(--line);
}

.metric-grid article {
  padding-top: 18px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 13px;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.ops-section {
  margin-top: 58px;
  padding-top: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

button,
.actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 15px;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.source-table {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.source-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) repeat(5, minmax(70px, 0.7fr));
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.source-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.message-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.message-item,
.order-item {
  padding-top: 20px;
}

.message-item h3,
.message-item p,
.order-item h3,
.order-item p {
  margin: 0;
}

.message-item p,
.order-item p {
  margin-top: 10px;
  line-height: 1.75;
}

.order-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.order-item code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: #fffdf7;
  color: #2d2925;
  font-size: 13px;
}

.delivery-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 850;
}

.empty-note {
  margin: 24px 0 0;
  color: var(--muted);
}

.trigger {
  color: #0f766e;
  font-weight: 760;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .ops-topbar {
    padding: 12px 18px;
  }

  .ops-topbar nav {
    display: none;
  }

  .ops-shell {
    padding: 40px 18px 64px;
  }

  .ops-hero h1 {
    font-size: 32px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    flex-direction: column;
  }

  .source-table {
    display: block;
    overflow-x: auto;
  }

  .source-row {
    min-width: 720px;
  }
}
