:root {
  --ink: #17221d;
  --ink-soft: #526159;
  --ink-faint: #748179;
  --paper: #ffffff;
  --canvas: #f3f5f1;
  --canvas-deep: #e9ede7;
  --line: #dfe5de;
  --line-strong: #cbd4cc;
  --green: #2c7958;
  --green-soft: #e7f3ec;
  --blue: #386a8c;
  --blue-soft: #e7f0f5;
  --amber: #ad6a18;
  --amber-soft: #fbf0dd;
  --red: #b54a42;
  --red-soft: #fae9e6;
  --purple: #705b90;
  --purple-soft: #eeeaf4;
  --shadow-sm: 0 1px 2px rgba(23, 34, 29, 0.04), 0 8px 22px rgba(23, 34, 29, 0.045);
  --shadow-lg: 0 24px 70px rgba(23, 34, 29, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-number: "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(23, 34, 29, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 100% 40px;
  font-size: 14px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(56, 106, 140, 0.26);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(203, 212, 204, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px 11px 11px 4px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #62a27f;
}

.brand__mark span {
  position: relative;
  z-index: 1;
}

.brand__copy {
  display: grid;
  line-height: 1.25;
}

.brand__copy strong {
  font-size: 15px;
  letter-spacing: 0.03em;
}

.brand__copy small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 11px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.connection-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9b2ac;
  box-shadow: 0 0 0 4px rgba(169, 178, 172, 0.16);
}

.connection-pill[data-tone="success"] {
  border-color: #cce3d5;
  background: var(--green-soft);
  color: #236447;
}

.connection-pill[data-tone="success"] .connection-pill__dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(44, 121, 88, 0.13);
}

.connection-pill[data-tone="loading"] .connection-pill__dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(173, 106, 24, 0.13);
  animation: pulse 1s ease-in-out infinite;
}

.connection-pill[data-tone="error"] {
  border-color: #efc8c3;
  background: var(--red-soft);
  color: #913c36;
}

.connection-pill[data-tone="error"] .connection-pill__dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(181, 74, 66, 0.13);
}

.button,
.icon-button,
.quick-ranges button,
.text-button,
.notice button {
  border: 0;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 650;
}

.button:active,
.icon-button:active,
.quick-ranges button:active {
  transform: translateY(1px);
}

.button--primary {
  background: #f4c95d;
  color: #2b271d;
  box-shadow: 0 7px 16px rgba(244, 201, 93, 0.15);
}

.button--primary:hover {
  background: #f8d474;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--ink);
  color: #fff;
}

.button--secondary:hover {
  background: #29362f;
}

.button--quiet {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.button--quiet:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: #f8faf7;
  color: var(--ink);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 21px;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: #f8faf7;
  color: var(--ink);
}

.icon-button.is-loading span {
  display: inline-block;
  animation: rotate 700ms linear infinite;
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 24px auto 0;
  padding-bottom: 28px;
}

.filter-band {
  min-height: 218px;
  padding: 36px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(470px, 0.8fr);
  align-items: center;
  gap: 44px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #f8fbf7;
  box-shadow: var(--shadow-sm);
}

.filter-band__intro {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #91baa3;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: #668273;
}

.filter-band h1 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.filter-band__intro > p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: #b9c6bf;
  font-size: 13px;
}

.date-filter {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
}

.date-filter__fields {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) auto minmax(128px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #c7d2cc;
  font-size: 11px;
  font-weight: 650;
}

.field input,
.select-field select,
.search-field {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.field input {
  padding: 0 11px;
}

.date-filter__arrow {
  align-self: end;
  min-height: 40px;
  display: grid;
  place-items: center;
  color: #9eada5;
  font-size: 11px;
}

.quick-ranges {
  margin-top: 12px;
  display: flex;
  gap: 7px;
}

.quick-ranges button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: transparent;
  color: #aab8b0;
  font-size: 11px;
}

.quick-ranges button:hover,
.quick-ranges button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.notice {
  margin-top: 16px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #edc8c4;
  border-radius: 12px;
  background: var(--red-soft);
  color: #8f3933;
  font-size: 13px;
}

.notice[data-tone="info"] {
  border-color: #cbdfe9;
  background: var(--blue-soft);
  color: #315f7d;
}

.notice button {
  padding: 4px 8px;
  background: transparent;
  color: currentColor;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.section-block {
  margin-top: 30px;
}

.section-heading,
.insight-card__header,
.orders-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.insight-card h2,
.orders-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.section-heading__meta {
  margin: 0 0 2px;
  color: var(--ink-faint);
  font-size: 12px;
}

.kpi-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  position: relative;
  min-height: 180px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.kpi-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--card-accent, var(--green));
}

.kpi-card[data-accent="income"] {
  --card-accent: var(--green);
  --card-soft: var(--green-soft);
}

.kpi-card[data-accent="purchase"] {
  --card-accent: var(--blue);
  --card-soft: var(--blue-soft);
}

.kpi-card[data-accent="logistics"] {
  --card-accent: var(--amber);
  --card-soft: var(--amber-soft);
}

.kpi-card[data-accent="profit"] {
  --card-accent: var(--purple);
  --card-soft: var(--purple-soft);
}

.kpi-card[data-accent="loss"] {
  --card-accent: var(--red);
  --card-soft: var(--red-soft);
}

.kpi-card__topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.kpi-card__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--card-soft);
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 800;
}

.kpi-card__value {
  margin-top: 22px;
  display: block;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: clamp(25px, 2.15vw, 34px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-card > p {
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.currency-breakdown {
  margin-top: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #ead6a7;
  border-radius: 12px;
  background: var(--amber-soft);
  color: #72541d;
  font-size: 12px;
}

.currency-breakdown[hidden] {
  display: none;
}

.currency-breakdown strong {
  white-space: nowrap;
}

.currency-breakdown div {
  display: grid;
  gap: 5px;
}

.kpi-grid[aria-busy="true"] .kpi-card__value,
.kpi-grid[aria-busy="true"] .kpi-card > p {
  color: transparent;
  border-radius: 7px;
  background: #edf0ec;
  animation: shimmer 1.25s ease-in-out infinite alternate;
}

.kpi-grid[aria-busy="true"] .kpi-card__value {
  width: 72%;
  min-height: 32px;
}

.kpi-grid[aria-busy="true"] .kpi-card > p {
  width: 84%;
  min-height: 15px;
}

.insight-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 14px;
}

.insight-card,
.orders-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.insight-card {
  min-height: 286px;
  padding: 24px;
}

.count-badge {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1ed;
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.weight-display {
  margin-top: 25px;
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.weight-display span {
  display: block;
  color: var(--ink-faint);
  font-size: 11px;
}

.weight-display strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-number);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.weight-display__primary {
  padding: 16px 18px;
  border-radius: 13px;
  background: var(--green-soft);
}

.weight-display__primary strong {
  color: #276c4e;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.1;
}

.weight-display__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.weight-display__secondary > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.card-footnote {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #edf0ec;
  color: var(--ink-faint);
  font-size: 11px;
}

.completeness-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.progress-ring {
  width: 132px;
  height: 132px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7ece7;
  box-shadow: inset 0 0 0 1px #dfe6df;
}

.progress-ring > div {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
}

.progress-ring strong {
  font-family: var(--font-number);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.progress-ring span {
  color: var(--ink-faint);
  font-size: 10px;
}

.progress-ring progress {
  width: 72px;
  height: 5px;
  margin-top: 9px;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e4e9e4;
  appearance: none;
}

.progress-ring progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e4e9e4;
}

.progress-ring progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--green);
}

.progress-ring progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--green);
}

.anomaly-list {
  display: grid;
  gap: 3px;
}

.anomaly-list > div {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #edf0ec;
  color: var(--ink-soft);
  font-size: 11px;
}

.anomaly-list > div:last-child {
  border-bottom: 0;
}

.anomaly-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.anomaly-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.anomaly-list i[data-tone="purchase"] {
  background: var(--blue);
}

.anomaly-list i[data-tone="logistics"] {
  background: var(--amber);
}

.anomaly-list i[data-tone="weight"] {
  background: var(--purple);
}

.anomaly-list strong {
  font-family: var(--font-number);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.orders-panel {
  margin-top: 14px;
  overflow: hidden;
}

.orders-panel__header {
  padding: 23px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.order-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  width: 230px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-color: var(--line);
  background: #f8faf7;
  color: var(--ink-faint);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-field:focus-within {
  border-color: #8ca79a;
  box-shadow: 0 0 0 3px rgba(44, 121, 88, 0.1);
}

.select-field select {
  width: 150px;
  padding: 0 30px 0 11px;
  border-color: var(--line);
  background-color: #f8faf7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid #edf0ec;
  text-align: left;
  vertical-align: middle;
}

th:first-child,
td:first-child {
  padding-left: 24px;
}

th:last-child,
td:last-child {
  padding-right: 24px;
}

th {
  background: #f8faf7;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
  font-size: 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcfa;
}

.number-cell {
  text-align: right;
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-id {
  display: grid;
  gap: 3px;
}

.order-id strong {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.order-id span,
.cell-stack span {
  color: var(--ink-faint);
  font-size: 10px;
}

.cell-stack {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.profit-positive {
  color: var(--green);
  font-weight: 720;
}

.profit-negative {
  color: var(--red);
  font-weight: 720;
}

.status-cell {
  min-width: 170px;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red-soft);
  color: #963e37;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.status-chip--ok {
  background: var(--green-soft);
  color: #296e50;
}

.table-state {
  min-height: 270px;
  padding: 42px 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--ink-faint);
}

.table-state__mark {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef1ed;
  color: #637168;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.table-state[data-tone="error"] .table-state__mark {
  background: var(--red-soft);
  color: var(--red);
}

.table-state[data-tone="empty"] .table-state__mark {
  background: var(--amber-soft);
  color: var(--amber);
}

.table-state strong {
  color: var(--ink);
  font-size: 14px;
}

.table-state span {
  max-width: 460px;
  margin-top: 5px;
  font-size: 11px;
}

.table-state button {
  margin-top: 14px;
}

.pagination {
  min-height: 62px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfa;
}

.pagination p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.pagination > div {
  display: flex;
  gap: 7px;
}

.pagination .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.page-footer {
  margin-top: 16px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-faint);
  font-size: 10px;
}

.page-footer p {
  margin: 0;
}

.token-dialog {
  width: min(470px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.token-dialog::backdrop {
  background: rgba(12, 20, 16, 0.68);
  backdrop-filter: blur(4px);
}

.token-dialog form {
  padding: 30px;
}

.token-dialog__mark {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.token-dialog h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.token-dialog h2 + p {
  margin: 10px 0 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

.field--token > span {
  color: var(--ink-soft);
}

.field--token input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  background: #f8faf7;
  font-family: var(--font-number);
}

.field--token input:focus {
  border-color: #80a491;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(44, 121, 88, 0.1);
}

.token-dialog__actions {
  margin-top: 17px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.field-error {
  margin: -7px 0 15px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--red-soft);
  color: #943d36;
  font-size: 11px;
}

.text-button {
  margin: 17px auto 0;
  display: block;
  background: transparent;
  color: var(--ink-faint);
  font-size: 10px;
  text-decoration: underline;
}

noscript {
  position: fixed;
  inset: auto 15px 15px;
  z-index: 100;
  padding: 14px;
  border-radius: 12px;
  background: var(--red-soft);
  color: #913c36;
  text-align: center;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { opacity: 0.45; }
}

@keyframes shimmer {
  from { opacity: 0.58; }
  to { opacity: 1; }
}

@media (max-width: 1100px) {
  .filter-band {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .date-filter {
    max-width: 700px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .topbar__inner,
  .page-shell {
    width: min(100% - 28px, 1440px);
  }

  .brand__copy small,
  .connection-pill {
    display: none;
  }

  .topbar__inner {
    min-height: 64px;
  }

  .page-shell {
    margin-top: 14px;
  }

  .filter-band {
    min-height: 0;
    padding: 26px 20px;
    border-radius: 18px;
  }

  .date-filter__fields {
    grid-template-columns: 1fr 1fr;
  }

  .date-filter__arrow {
    display: none;
  }

  .date-filter__fields .button {
    grid-column: 1 / -1;
  }

  .section-block {
    margin-top: 25px;
  }

  .section-heading,
  .orders-panel__header {
    align-items: flex-start;
  }

  .orders-panel__header {
    flex-direction: column;
  }

  .order-filters {
    width: 100%;
  }

  .search-field {
    flex: 1;
  }

  .select-field select {
    width: 142px;
  }
}

@media (max-width: 560px) {
  .topbar__actions .button--quiet {
    min-width: 40px;
    padding: 0 10px;
    font-size: 0;
  }

  .topbar__actions .button--quiet::after {
    content: "令牌";
    font-size: 11px;
  }

  .filter-band h1 {
    font-size: 29px;
  }

  .filter-band__intro > p:last-child {
    font-size: 12px;
  }

  .date-filter {
    padding: 14px;
  }

  .quick-ranges {
    justify-content: space-between;
  }

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

  .kpi-card {
    min-height: 159px;
  }

  .section-heading__meta {
    max-width: 130px;
    text-align: right;
  }

  .insight-card {
    padding: 20px;
  }

  .weight-display {
    grid-template-columns: 1fr;
  }

  .completeness-layout {
    grid-template-columns: 112px 1fr;
    gap: 17px;
  }

  .progress-ring {
    width: 108px;
    height: 108px;
    padding: 9px;
  }

  .progress-ring strong {
    font-size: 22px;
  }

  .orders-panel__header {
    padding: 20px;
  }

  .order-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    width: 100%;
    grid-column: 1 / -1;
  }

  .select-field select,
  .order-filters .button {
    width: 100%;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-footer {
    flex-direction: column;
    gap: 4px;
  }

  .token-dialog form {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
