:root {
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei',
    Arial, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-size: 16px;
  line-height: 1.5;
  --muted: #65656c;
  --line: #e4e4e8;
  --blue: #0066cc;
  --shell: 1160px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  background: #fff;
  padding: 0.6rem;
  left: 1rem;
  top: -6rem;
  z-index: 5;
}
.skip:focus {
  top: 0.4rem;
}
.shell {
  max-width: var(--shell);
  margin: auto;
  padding: 0 40px;
}
.mast {
  background: white;
}
.mast-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d1d1f;
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -1.15px;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 23px;
  height: 23px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  transform: rotate(-7deg);
}
.brand-mark i {
  background: #242426;
  border-radius: 3px;
}
.brand-mark i:nth-child(2) {
  border-radius: 3px 7px 3px 3px;
  background: #747479;
}
.user-menu {
  position: relative;
}
.user-menu summary {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  color: #48484b;
  font-size: 13px;
}
.user-menu summary::-webkit-details-marker,
details.field-panel summary::-webkit-details-marker {
  display: none;
}
.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 12px;
  border-radius: 50%;
  background: #e9e9ed;
  color: #333;
  font-weight: 650;
}
.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px #0001;
  min-width: 168px;
  border-radius: 16px;
  padding: 7px;
}
.user-pop > * {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
}
.nav {
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #d8d8dc;
  backdrop-filter: saturate(160%) blur(14px);
}
.nav-inner {
  display: flex;
  gap: 32px;
  overflow: auto;
  scrollbar-width: none;
}
.nav a {
  padding: 12px 1px 13px;
  color: #5a5a5e;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover {
  text-decoration: none;
  color: #000;
}
.nav a[aria-current] {
  color: #141415;
  border-color: #141415;
  font-weight: 650;
}
main.shell {
  padding-top: 46px;
  padding-bottom: 80px;
  min-height: 65vh;
}
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 25px;
}
.heading h1,
.modal-head h2,
.login h1 {
  margin: 0;
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.heading h1 {
  font-size: clamp(36px, 4vw, 52px);
}
.eyebrow {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.025em;
  color: var(--muted);
  margin: 0 0 8px;
}
.sub,
.help,
.muted,
small,
time {
  color: var(--muted);
}
.sub {
  margin: 0.55rem 0 0;
  font-size: 15px;
}
.eyebrow time {
  color: inherit;
}
.btn,
.text-btn,
.link-btn,
.icon-btn {
  border: 0;
  background: none;
}
.btn {
  background: #0071e3;
  color: #fff;
  border-radius: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover {
  background: #0066cf;
  text-decoration: none;
}
.btn.secondary {
  color: #29292c;
  background: #eeeef0;
}
.btn.secondary:hover {
  background: #e2e2e5;
}
.text-btn,
.link-btn {
  color: var(--blue);
  padding: 0;
  font-weight: 500;
}
.link-btn {
  text-align: left;
  color: #1d1d1f;
}
.link-btn:hover,
.text-btn:hover {
  text-decoration: underline;
}
.chev {
  font-size: 1.35em;
  vertical-align: -0.04em;
  line-height: 1;
  padding-left: 2px;
}
.card,
.panel {
  background: #fff;
  border-radius: 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.metric {
  position: relative;
  padding: 21px 23px;
  color: inherit;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: start;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.metric:hover,
.store-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px #0000000b;
  text-decoration: none;
}
.metric-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric-value {
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.055em;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  margin-top: 13px;
}
.metric small {
  margin-top: 4px;
  font-size: 12px;
}
.metric-icon,
.section-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -0.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metric:first-child {
  background: #1d1d1f;
  color: #fff;
}
.metric:first-child small {
  color: #c6c6ca;
}
.metric:nth-child(3) .metric-icon {
  color: #136f58;
}
.metric:nth-child(4) .metric-icon {
  color: #8d5922;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 13px;
}
.section-head h2,
.panel h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-head > a {
  font-size: 14px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.store-tile {
  padding: 24px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.store-tile h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 12px 0 2px;
  overflow-wrap: anywhere;
}
.store-tile small,
.mono {
  overflow-wrap: anywhere;
}
.store-foot {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.5rem 1.2rem;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.store-foot b {
  color: #1d1d1f;
}
.store-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 15px;
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 8px;
  border-radius: 999px;
  color: #55555a;
  background: #f1f1f4;
  white-space: nowrap;
}
.pill.live {
  background: #eaf4ef;
  color: #246541;
}
.pill.pending {
  background: #fbf0db;
  color: #7b5218;
}
.panel {
  padding: 22px 24px;
}
.panel.flush {
  padding: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.toolbar input,
.toolbar select,
.field input,
.field textarea,
.field select {
  background: #fff;
  border: 1px solid #aaaab1;
  border-radius: 11px;
  padding: 10px 12px;
  color: inherit;
  max-width: 100%;
  min-width: 0;
}
.toolbar input {
  flex: 1;
  min-width: 12rem;
}
.toolbar select {
  max-width: 100%;
}
.table-frame {
  overflow-x: auto;
}
.table-frame table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.table-frame th {
  font-weight: 550;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.table-frame th,
.table-frame td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table-frame tr > :first-child {
  padding-left: 23px;
}
.table-frame tr > :last-child {
  padding-right: 23px;
}
.table-frame tbody tr:last-child td {
  border: 0;
}
.table-frame td.num,
.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}
.item .link-btn {
  font-weight: 600;
}
.item small,
.cell-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.thumb {
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 9px;
  background: #f3f3f5;
}
.placeholder {
  display: grid;
  place-items: center;
  color: #777;
}
.filters,
.pager,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pager {
  padding: 12px 23px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.pager div {
  display: flex;
  gap: 15px;
}
.empty {
  text-align: center;
  padding: 35px 20px;
}
.empty b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.empty p,
.loading {
  color: var(--muted);
  font-size: 14px;
  margin: 5px 0;
}
.empty .btn {
  margin-top: 14px;
}
.help {
  font-size: 13px;
  margin: 0.25rem 0 0.45rem;
}
.login {
  max-width: 420px;
  margin: 8vh auto;
  background: white;
  border-radius: 22px;
  padding: 34px;
}
.login h1 {
  font-size: 32px;
  margin-bottom: 24px;
}
.login .btn {
  width: 100%;
  margin-top: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 15px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-weight: 400;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  margin: 9px 0 16px;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: #0071e3;
}
.field-panel {
  border-top: 1px solid var(--line);
  padding: 13px 0 0;
  margin: 12px 0 6px;
}
.field-panel strong,
.field-panel summary {
  font-size: 16px;
  font-weight: 650;
}
.field-panel summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.field-panel:not([open]) summary {
  margin-bottom: 0;
}
.field-panel .table-frame td,
.field-panel .table-frame th {
  padding: 6px;
  font-size: 13px;
}
.variant-input {
  width: 84px;
  font: inherit;
  border: 1px solid #aaaab1;
  border-radius: 6px;
  padding: 5px;
}
.feedback {
  font-size: 14px;
  color: #a52b24;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.feedback:not(:empty) {
  margin: 12px 0;
}
.toast:not(:empty) {
  position: fixed;
  z-index: 20;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 10px 19px;
  border-radius: 22px;
  background: #252527;
  color: white;
  box-shadow: 0 3px 12px #0002;
  font-size: 14px;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 22px;
  width: min(570px, calc(100vw - 26px));
  max-height: 86dvh;
  color: #1d1d1f;
  box-shadow: 0 25px 90px #0003;
}
dialog::backdrop {
  background: #11131a66;
  backdrop-filter: blur(3px);
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
.modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 25px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 24px;
}
.icon-btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  background: #eeeef0;
  line-height: 1;
}
.modal-content {
  overflow: auto;
  padding: 20px 25px 24px;
  min-height: 0;
}
.actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 16px;
}
.address {
  font-style: normal;
  white-space: pre-line;
  line-height: 1.6;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.group {
  margin-bottom: 22px;
}
.group h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.order-facts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.warning {
  padding: 10px 13px;
  border-radius: 10px;
  background: #faf2e5;
  color: #684c23;
  font-size: 13px;
}
.standalone {
  margin-top: 20px;
}
.photo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.photo-row .field {
  flex: 1;
}
.photo-row .thumb {
  width: 62px;
  height: 62px;
}
.tiny {
  font-size: 12px;
}
.full-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.field code {
  font-size: 12px;
}
@media (max-width: 780px) {
  .shell {
    padding-right: 24px;
    padding-left: 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    min-height: 120px;
    padding: 16px 18px;
  }
  .metric-value {
    font-size: 36px;
    margin-top: 8px;
  }
  .store-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
  main.shell {
    padding-top: 32px;
  }
  .nav-inner {
    gap: 24px;
  }
  .viewport-prune {
    display: none;
  }
  .section-head h2 {
    font-size: 21px;
  }
}
@media (max-width: 525px) {
  .shell {
    padding-right: 16px;
    padding-left: 16px;
  }
  .mast-inner {
    height: 52px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    width: 20px;
    height: 20px;
  }
  .nav a {
    font-size: 13px;
  }
  .nav-inner {
    justify-content: space-between;
    gap: 10px;
  }
  .account-email {
    display: none;
  }
  .heading {
    align-items: center;
    gap: 8px;
  }
  .heading h1 {
    font-size: 34px;
  }
  .heading .sub {
    font-size: 13px;
  }
  .panel,
  .store-tile {
    border-radius: 16px;
  }
  .store-tile {
    padding: 18px;
  }
  .metrics {
    margin-bottom: 23px;
  }
  .metric {
    border-radius: 15px;
  }
  .metric-name {
    font-size: 14px;
  }
  .toolbar input {
    min-width: 100%;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
  }
  .stack table,
  .stack tbody,
  .stack tr,
  .stack td {
    display: block;
  }
  .stack thead {
    display: none;
  }
  .stack tbody tr {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 10px;
    border-bottom: 1px solid var(--line);
  }
  .stack tbody tr:last-child {
    border: 0;
  }
  .stack td,
  .stack tr > :first-child,
  .stack tr > :last-child {
    padding: 0;
    border: none;
  }
  .stack td:first-child {
    grid-column: 1/-1;
    margin-bottom: 2px;
  }
  .stack td.viewport-prune {
    display: none;
  }
  .stack td[data-label]::before {
    content: attr(data-label) ' ';
    color: var(--muted);
    font-size: 12px;
  }
  .stack .item {
    min-width: 0;
  }
  .toolbar {
    gap: 7px;
  }
  .table-frame {
    border-radius: inherit;
  }
  .login {
    margin-top: 4vh;
    padding: 25px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .modal-head {
    padding: 16px 17px 12px;
  }
  .modal-content {
    padding: 16px 17px;
  }
  .metrics .metric small {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
