@charset "UTF-8";
:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #1c3040;
  background: #f4f6f8;
  font-size: 14px;
  line-height: 1.55;
  --ink: #122c40;
  --muted: #74818c;
  --line: #e5eaee;
  --orange: #ef7545;
  --green: #19826a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 15px;
  white-space: nowrap;
  font-weight: 600;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input,
select {
  background: #fff;
  border: 1px solid #d7dfe5;
  border-radius: 7px;
  padding: 9px 11px;
  color: inherit;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  margin: 24px 0 12px;
}
a {
  color: #126d70;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6d8a94;
  margin-bottom: 8px;
}
.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 4px #c8602520;
}
.primary:hover {
  background: #dc683b;
}
.secondary {
  background: #fff;
  border-color: #d7dfe5;
  color: #294756;
}
.secondary:hover,
.quick:hover {
  background: #edf3f5;
}
.text-button {
  background: transparent;
  color: #4d6a7a;
  padding: 5px 8px;
}
.quick {
  background: #f3f6f8;
  color: #5c6f7b;
  padding: 8px 10px;
}
.compact {
  padding: 5px 10px;
  font-size: 12px;
}
.wide {
  width: 100%;
  margin-top: 20px;
}
.button-link {
  display: inline-block;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 7px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 16px;
  font-weight: 650;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #9eafb9;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 35px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 23px;
  font-weight: 700;
}
.dark {
  color: var(--ink);
}
.sidebar {
  position: fixed;
  width: 214px;
  inset: 0 auto 0 0;
  background: var(--ink);
  padding: 28px 18px;
  color: #c2d0d8;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin-bottom: 48px;
}
.sidebar-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7f98a8;
  margin: 0 12px 14px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  text-align: left;
  background: transparent;
  color: #aabfcb;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
}
.nav-item span {
  display: inline-block;
  width: 24px;
  font-size: 18px;
}
.nav-item.active {
  color: white;
  background: #254458;
}
.nav-item.active:after {
  content: "";
  float: right;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ed9767;
  margin-top: 9px;
}
.nav-item b {
  background: #31566a;
  border-radius: 8px;
  padding: 0 5px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  padding: 12px;
  color: #99afb8;
}
.sidebar-bottom p {
  font-size: 10px;
  margin: 7px 0 0 13px;
  letter-spacing: 1px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58b69e;
  margin-right: 7px;
}
.workspace {
  margin-left: 214px;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9ba6ae;
}
.tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #fff0df;
  color: #9c5b25;
}
.tag.sandbox {
  background: #e9f2ff;
  color: #315c93;
}
.tag.live {
  background: #e6f5ef;
  color: #187153;
}
.account {
  font-size: 12px;
  color: #73828d;
}
main#main {
  padding: 30px 32px 50px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}
.page-heading .muted {
  font-size: 12px;
  margin-top: 6px;
}
.environment-select {
  font-size: 11px;
  color: #80909a;
  min-width: 140px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 3px #17354503;
}
.toolbar {
  padding: 17px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
}
.date-fields {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.date-fields > span {
  padding-bottom: 9px;
  color: #acb5bd;
}
.date-fields label {
  font-size: 11px;
  color: #74838e;
}
.date-fields input {
  font-size: 12px;
}
.toolbar button {
  font-size: 12px;
}
.coverage-strip {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #76858f;
  padding: 15px 2px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 19px 21px;
  min-height: 132px;
}
.metric-label {
  font-size: 12px;
  color: #74848f;
  margin-bottom: 12px;
}
.metric-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  color: #17394c;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 13px;
  letter-spacing: 0;
  color: #8c9ca6;
  font-weight: 400;
  margin-left: 5px;
}
.metric-pair {
  display: flex;
  gap: 20px;
}
.metric-pair strong {
  display: block;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.metric-pair small {
  font-size: 10px;
  color: #8a99a3;
}
.metric-note {
  font-size: 10px;
  color: #96a1a9;
  margin-top: 8px;
}
.metric:first-child {
  border-top: 3px solid var(--orange);
  padding-top: 17px;
}
.section-toolbar {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.section-toolbar h2 {
  margin-bottom: 3px;
}
.count {
  background: #eff3f5;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  color: #647984;
  margin-left: 5px;
}
.table-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.table-filters input,
.table-filters select {
  font-size: 11px;
  padding: 8px 9px;
}
.table-filters input {
  width: 180px;
}
.selection-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 13px;
}
.selection-toolbar > .muted {
  margin-left: auto;
}
.inline {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th {
  background: #f8fafb;
  color: #8a98a2;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  padding: 12px 15px;
  border-block: 1px solid var(--line);
}
th small {
  font-size: 9px;
}
td {
  padding: 14px 15px;
  text-align: right;
  border-bottom: 1px solid #edf0f3;
}
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}
tbody tr:hover {
  background: #fafcfd;
}
.shop-name {
  color: #274b5d;
  background: transparent;
  text-align: left;
  padding: 0;
  font-weight: 600;
  font-size: 12px;
}
.shop-id {
  font-size: 10px;
  color: #9aa7af;
  display: block;
  margin-top: 2px;
}
.strong {
  font-weight: 650;
  color: #274253;
}
.status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  background: #e9f5f0;
  color: #2a7b61;
}
.status.failed {
  background: #fff0ed;
  color: #bd624a;
}
.status.pending {
  background: #fff5df;
  color: #9b7a30;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  color: #8a98a2;
  font-size: 11px;
}
.pagination button {
  margin-left: 8px;
}
.footnote {
  font-size: 11px;
  color: #91a0aa;
  margin: 13px 0 24px;
}
.page.card {
  padding: 24px;
}
.page.card > p {
  margin: 8px 0 20px;
}
.notice {
  padding: 12px 15px;
  border-radius: 7px;
  background: #eef5f8;
  color: #477081;
  font-size: 12px;
  margin: 15px 0;
}
.error {
  background: #fff0ec;
  color: #a64c37;
}
.form-grid {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
  padding: 18px;
  background: #f7f9fa;
  border-radius: 7px;
  margin: 18px 0;
}
.form-grid label {
  min-width: 170px;
  flex: 1;
}
.form-grid label input {
  width: 100%;
}
.entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.entry p {
  font-size: 11px;
  color: #84939c;
  margin-top: 3px;
}
.entry strong {
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 48px 15px;
  color: #8d9ca6;
  white-space: normal;
}
.empty strong {
  display: block;
  color: #586f7e;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
}
pre {
  background: #f5f7fa;
  border: 1px solid #e5eaee;
  border-radius: 7px;
  padding: 17px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: #3c596b;
}
#api-guide ul {
  line-height: 2;
}
#toast {
  position: fixed;
  top: 82px;
  right: 30px;
  z-index: 30;
  max-width: 480px;
  background: #163c4b;
  color: white;
  padding: 13px 20px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #163c4b30;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(800px, 95%);
  max-height: 85vh;
  padding: 15px;
}
dialog::backdrop {
  background: #102c4055;
}
dialog pre {
  max-height: 60vh;
  overflow: auto;
}
.message-card {
  max-width: 620px;
  margin: 12vh auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px;
}
.message-card h1 {
  margin-top: 30px;
}
.message-card p {
  margin: 20px 0;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-story {
  background: var(--ink);
  padding: 60px 10%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  min-height: 100vh;
}
.login-story h1 {
  font-size: 44px;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 15px 0 22px;
}
.login-story p {
  color: #94adb9;
  line-height: 1.9;
  font-size: 15px;
}
.login-story .eyebrow {
  font-size: 11px;
  color: #ed956b;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 35px;
  color: #b7cbd4;
  font-size: 12px;
}
.story-grid span:before {
  content: "✓";
  color: #e39d78;
  margin-right: 9px;
}
.login-story > small {
  color: #577587;
  font-size: 10px;
  letter-spacing: 2px;
}
.login-side {
  display: grid;
  place-items: center;
  background: white;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 350px;
}
.login-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.login-card form label {
  margin-top: 20px;
}
.login-card .small {
  margin-top: 13px;
  text-align: center;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  color: #9aa7af;
  margin-top: 30px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: #e9eef1;
  flex: 1;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .toolbar {
    flex-wrap: nowrap;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 184px;
    padding: 25px 12px;
  }
  .workspace {
    margin-left: 184px;
  }
  main#main {
    padding: 24px 20px;
  }
  .metric-pair {
    gap: 12px;
  }
  .metric-pair strong {
    font-size: 18px;
  }
  .metric-value {
    font-size: 25px;
  }
  .selection-toolbar > .muted {
    display: none;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 68px;
    padding: 20px 9px;
  }
  .sidebar .brand > span:last-child,
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar .brand {
    margin-bottom: 20px;
    justify-content: center;
  }
  .nav-item {
    font-size: 0;
    padding: 12px 9px;
  }
  .nav-item span {
    font-size: 21px;
    width: auto;
  }
  .nav-item.active:after {
    display: none;
  }
  .workspace {
    margin-left: 68px;
  }
  .topbar {
    padding: 0 20px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-side {
    min-height: 100vh;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .environment-select {
    min-width: 110px;
  }
}
@media (max-width: 550px) {
  main#main {
    padding: 20px 12px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading .muted {
    max-width: 200px;
  }
  .top-label {
    display: none;
  }
  .metric {
    padding: 15px;
  }
  .metric:first-child {
    padding-top: 13px;
  }
  .metric-pair {
    flex-direction: column;
    gap: 7px;
  }
  .toolbar {
    padding: 12px;
  }
  .date-fields {
    gap: 6px;
  }
  .date-fields input {
    width: 131px;
  }
  .metric-value {
    font-size: 24px;
  }
  .section-toolbar {
    padding: 15px;
  }
  .table-filters input {
    width: 100%;
  }
  .selection-toolbar {
    padding: 0 12px 10px;
  }
  .form-grid {
    padding: 12px;
  }
  .form-grid label {
    width: 100%;
  }
  .page.card {
    padding: 16px;
  }
}
