:root {
  color-scheme: dark;
  --bg: #03101b;
  --bg-raised: #071a2a;
  --panel: rgba(7, 28, 45, 0.92);
  --panel-soft: rgba(9, 35, 55, 0.78);
  --line: rgba(44, 197, 255, 0.21);
  --line-strong: rgba(27, 211, 255, 0.55);
  --text: #f4fbff;
  --muted: #82a4b8;
  --cyan: #27d9f3;
  --blue: #4b91ff;
  --green: #43e0b1;
  --gold: #ffc24f;
  --red: #ff7381;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 0%, rgba(29, 114, 174, 0.14), transparent 34%),
    linear-gradient(180deg, #020b13 0%, #041522 48%, #03101b 100%);
  overflow-x: hidden;
}

button,
select,
input {
  font: inherit;
}

button,
select {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: 12%;
  right: -110px;
  background: var(--cyan);
}

.ambient-two {
  bottom: 14%;
  left: -130px;
  background: var(--blue);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
}

.auth-card {
  width: min(100%, 420px);
  padding: 26px 22px 22px;
  border: 1px solid rgba(39, 217, 243, 0.27);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(8, 31, 49, 0.98), rgba(3, 17, 29, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.auth-brand,
.topbar-actions,
.enrollment-actions {
  display: flex;
  align-items: center;
}

.auth-brand {
  gap: 11px;
}

.auth-lock {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 32px auto 22px;
  place-items: center;
  border: 1px solid rgba(39, 217, 243, 0.32);
  border-radius: 24px;
  background: radial-gradient(circle, rgba(39, 217, 243, 0.14), rgba(10, 45, 69, 0.22));
  box-shadow: 0 0 34px rgba(39, 217, 243, 0.1);
}

.auth-lock span {
  position: relative;
  width: 27px;
  height: 23px;
  border: 2px solid var(--cyan);
  border-radius: 7px;
}

.auth-lock span::before {
  position: absolute;
  bottom: 17px;
  left: 5px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--cyan);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  content: "";
}

.auth-card > h2,
.auth-description,
.owner-hint {
  text-align: center;
}

.pwa-install-guide {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 9px 11px 11px;
  border: 1px solid rgba(39, 217, 243, 0.24);
  border-radius: 12px;
  background: rgba(12, 58, 81, 0.35);
}

.pwa-install-guide[hidden] {
  display: none;
}

.pwa-install-guide-wide {
  margin: 0 0 12px;
}

.pwa-install-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(39, 217, 243, 0.32);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(39, 217, 243, 0.08);
  font-size: 18px;
  font-weight: 800;
}

.pwa-install-guide strong {
  color: #ddfaff;
  font-size: 11px;
}

.pwa-install-guide p {
  margin-top: 3px;
  color: #7fa6ba;
  font-size: 9px;
  line-height: 1.5;
}

.pwa-dismiss-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #6e94a8;
  background: rgba(4, 22, 35, 0.48);
  font-size: 18px;
}

.auth-card > h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.auth-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-panel {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.auth-field {
  display: grid;
  gap: 9px;
}

.auth-field-hint {
  margin: -2px 0 4px;
  color: #66889a;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.auth-panel label {
  margin-top: 3px;
  color: #9cbbc9;
  font-size: 11px;
  font-weight: 650;
}

.pin-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(72, 154, 192, 0.34);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #061927;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 10px;
  text-align: center;
}

.pin-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(39, 217, 243, 0.09);
}

.pairing-input {
  letter-spacing: 0.18em;
}

.auth-primary,
.face-id-button {
  min-height: 50px;
  margin-top: 5px;
  border-radius: 13px;
  color: #effdff;
  font-weight: 800;
}

.auth-primary {
  border: 1px solid rgba(39, 217, 243, 0.66);
  background: linear-gradient(180deg, rgba(13, 133, 169, 0.86), rgba(7, 88, 119, 0.9));
}

.face-id-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(67, 224, 177, 0.52);
  background: linear-gradient(180deg, rgba(24, 127, 102, 0.62), rgba(12, 78, 67, 0.68));
}

.face-id-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #66889a;
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: rgba(76, 132, 159, 0.2);
  content: "";
}

.auth-message {
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 115, 129, 0.28);
  border-radius: 10px;
  color: #ffb6bd;
  background: rgba(91, 25, 35, 0.25);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.auth-message.success {
  border-color: rgba(67, 224, 177, 0.26);
  color: #9cf0d7;
  background: rgba(18, 91, 72, 0.2);
}

.owner-hint {
  margin-top: 17px;
  color: #55798d;
  font-size: 9px;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(32px + env(safe-area-inset-bottom));
}

.topbar,
.brand-lockup,
.hero-heading,
.section-heading,
.legend,
.ranking-main,
.order-top,
.order-profit-row,
.freshness-grid,
.phase-card {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.topbar-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.logout-button {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(93, 141, 164, 0.24);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(7, 31, 48, 0.55);
  font-size: 11px;
  font-weight: 700;
}

.brand-lockup {
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(39, 217, 243, 0.65);
  border-radius: 13px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(39, 217, 243, 0.14), rgba(29, 80, 129, 0.08));
  box-shadow: inset 0 0 22px rgba(39, 217, 243, 0.07), 0 0 22px rgba(39, 217, 243, 0.08);
  font-weight: 900;
  letter-spacing: -1px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

h2 {
  font-size: 16px;
  line-height: 1.35;
}

.eyebrow,
.section-kicker {
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 42px;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(16, 76, 108, 0.28);
  font-weight: 700;
}

.refresh-button:active {
  transform: translateY(1px);
}

.refresh-button:disabled {
  opacity: 0.64;
}

.refresh-dot,
.readonly-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(67, 224, 177, 0.85);
}

.refresh-button.is-loading .refresh-dot {
  background: var(--cyan);
  animation: pulse 1s ease-in-out infinite;
}

.connection-banner {
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 194, 79, 0.35);
  border-radius: 12px;
  color: #ffe2a4;
  background: rgba(84, 54, 8, 0.44);
  font-size: 12px;
  line-height: 1.55;
}

.face-id-enrollment {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(67, 224, 177, 0.3);
  border-radius: 14px;
  background: rgba(19, 91, 73, 0.23);
}

.face-id-enrollment strong {
  color: #b5f7e3;
  font-size: 12px;
}

.face-id-enrollment p {
  margin-top: 4px;
  color: #83aa9e;
  font-size: 10px;
  line-height: 1.5;
}

.enrollment-actions {
  gap: 7px;
}

.enrollment-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(67, 224, 177, 0.42);
  border-radius: 9px;
  color: #dffff5;
  background: rgba(20, 111, 88, 0.54);
  font-size: 10px;
  font-weight: 750;
}

.enrollment-actions button.secondary {
  border-color: rgba(95, 142, 163, 0.24);
  color: var(--muted);
  background: rgba(8, 35, 51, 0.58);
}

.control-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 21, 34, 0.78);
  box-shadow: var(--shadow);
}

.select-label,
.custom-period label {
  color: var(--muted);
  font-size: 11px;
}

.store-select,
.custom-period input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(72, 154, 192, 0.3);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: #071d2d;
}

.store-select:focus,
.custom-period input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(39, 217, 243, 0.09);
}

.period-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.period-tab {
  min-height: 38px;
  border: 1px solid rgba(72, 154, 192, 0.25);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(7, 31, 48, 0.65);
  font-size: 12px;
  font-weight: 700;
}

.period-tab.is-active {
  border-color: var(--line-strong);
  color: #e9fcff;
  background: linear-gradient(180deg, rgba(18, 126, 167, 0.48), rgba(7, 61, 88, 0.5));
  box-shadow: inset 0 0 16px rgba(39, 217, 243, 0.06);
}

.custom-period {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 7px;
  padding-top: 2px;
}

.custom-period[hidden] {
  display: none;
}

.custom-period label {
  display: grid;
  gap: 5px;
}

.custom-period input {
  min-height: 40px;
  padding: 0 7px;
  font-size: 11px;
}

.custom-period button {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid rgba(67, 224, 177, 0.45);
  border-radius: 10px;
  color: #ddfff5;
  background: rgba(21, 111, 90, 0.48);
  font-weight: 700;
}

.panel {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(8, 31, 49, 0.96), rgba(5, 24, 39, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
}

.hero-card::after {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(39, 217, 243, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 58px rgba(39, 217, 243, 0.08);
  content: "";
  pointer-events: none;
}

.hero-heading,
.section-heading {
  justify-content: space-between;
  gap: 12px;
}

.muted,
.metric-caption,
.generated-at {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(67, 224, 177, 0.27);
  border-radius: 999px;
  color: var(--green);
  background: rgba(24, 96, 79, 0.22);
  font-size: 10px;
  font-weight: 700;
}

.status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-warning {
  border-color: rgba(255, 194, 79, 0.32);
  color: var(--gold);
  background: rgba(102, 69, 15, 0.25);
}

.status-pill.is-loading {
  color: var(--cyan);
}

.gmv-block {
  position: relative;
  z-index: 1;
  padding: 28px 0 22px;
}

.metric-label {
  color: #91b2c5;
  font-size: 11px;
  font-weight: 600;
}

.hero-value {
  margin: 5px 0 4px;
  color: var(--cyan);
  font-size: clamp(38px, 12vw, 56px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -2.2px;
  text-shadow: 0 0 24px rgba(39, 217, 243, 0.14);
}

.hero-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(53, 126, 160, 0.18);
  border-radius: 13px;
  background: rgba(38, 103, 130, 0.16);
}

.hero-secondary article {
  min-width: 0;
  padding: 12px 10px;
  background: rgba(3, 18, 30, 0.78);
}

.secondary-value {
  margin: 5px 0 3px;
  overflow: hidden;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red) !important;
}

.warning {
  color: var(--gold);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-grid .panel {
  margin-bottom: 0;
}

.metric-card {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  padding: 14px;
}

.metric-card::after {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 82px;
  height: 82px;
  border: 1px solid currentColor;
  border-radius: 22px;
  opacity: 0.08;
  transform: rotate(24deg);
  content: "";
}

.accent-cyan { color: var(--cyan); }
.accent-green { color: var(--green); }
.accent-blue { color: var(--blue); }
.accent-gold { color: var(--gold); }

.card-value {
  margin: 12px 0 6px;
  color: currentColor;
  font-size: 25px;
  font-weight: 820;
  letter-spacing: -0.8px;
}

.trend-panel,
.panel:not(.hero-card):not(.metric-card):not(.freshness-panel) {
  padding: 15px;
}

.section-heading {
  margin-bottom: 14px;
}

.legend {
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.gmv-legend { background: var(--green); }
.order-legend { background: var(--gold); }

.chart-frame {
  position: relative;
  width: 100%;
  min-height: 220px;
}

#trendCanvas {
  display: block;
  width: 100%;
  height: 220px;
}

.empty-state {
  padding: 30px 10px;
  color: #7191a5;
  font-size: 12px;
  text-align: center;
}

.chart-frame .empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.count-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(91, 155, 186, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(9, 35, 54, 0.8);
  font-size: 10px;
}

.ranking-list,
.order-list,
.notice-list {
  display: grid;
  gap: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 9px;
  border-bottom: 1px solid rgba(65, 128, 158, 0.14);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(41, 95, 121, 0.19);
  font-size: 11px;
  font-weight: 800;
}

.ranking-row:nth-child(-n+3) .rank-number {
  color: #07151f;
  background: var(--gold);
}

.ranking-main {
  min-width: 0;
  justify-content: space-between;
  gap: 10px;
}

.store-copy {
  min-width: 0;
}

.store-name,
.order-store {
  overflow: hidden;
  color: #edfaff;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name,
.ranking-stats,
.order-meta,
.order-product,
.ad-detail {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.ranking-amount {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.attribution-note {
  margin: -2px 0 12px;
  padding: 9px 10px;
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: #d3b875;
  background: rgba(89, 60, 12, 0.17);
  font-size: 10px;
  line-height: 1.55;
}

.order-card {
  padding: 13px;
  border: 1px solid rgba(72, 154, 192, 0.17);
  border-radius: 13px;
  background: rgba(3, 19, 31, 0.68);
}

.order-top {
  justify-content: space-between;
  gap: 10px;
}

.order-time {
  flex: 0 0 auto;
  color: #779aad;
  font-size: 10px;
}

.order-product {
  display: -webkit-box;
  overflow: hidden;
  color: #cfe3ed;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-profit-row {
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(72, 154, 192, 0.13);
}

.order-amount {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.profit-stack {
  text-align: right;
}

.profit-value {
  display: block;
  color: var(--green);
  font-size: 15px;
  font-weight: 820;
}

.profit-label {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.ad-badge {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 194, 79, 0.24);
  border-radius: 7px;
  color: #ffd98c;
  background: rgba(97, 65, 13, 0.2);
  font-size: 9px;
  font-weight: 700;
}

.ad-badge.is-complete {
  border-color: rgba(67, 224, 177, 0.22);
  color: #8ff1d2;
  background: rgba(26, 98, 79, 0.18);
}

.notice-card {
  padding: 11px 12px;
  border: 1px solid rgba(255, 194, 79, 0.18);
  border-radius: 11px;
  background: rgba(75, 51, 11, 0.18);
}

.notice-card.info {
  border-color: rgba(75, 145, 255, 0.18);
  background: rgba(19, 55, 99, 0.2);
}

.notice-card strong {
  display: block;
  margin-bottom: 3px;
  color: #ffe0a0;
  font-size: 11px;
}

.notice-card.info strong {
  color: #a9ccff;
}

.notice-card p {
  color: #a9bdc8;
  font-size: 10px;
  line-height: 1.5;
}

.freshness-panel {
  padding: 15px;
}

.freshness-grid {
  align-items: stretch;
  gap: 7px;
}

.freshness-grid article {
  display: grid;
  flex: 1 1 0;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(3, 18, 30, 0.62);
}

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

.freshness-grid strong {
  overflow: hidden;
  color: #d8edf6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-at {
  margin-top: 10px;
}

.phase-card {
  align-items: flex-start;
  gap: 11px;
  margin: 16px 0;
  padding: 13px;
  border: 1px dashed rgba(78, 134, 161, 0.3);
  border-radius: 14px;
  background: rgba(5, 22, 35, 0.56);
}

.phase-number {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(39, 217, 243, 0.09);
  font-size: 9px;
  font-weight: 800;
}

.phase-card h2 {
  margin-bottom: 4px;
  font-size: 12px;
}

.phase-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 4px;
  color: #66899d;
  font-size: 9px;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@media (min-width: 680px) {
  .app-shell {
    padding-inline: 20px;
  }

  .control-panel {
    grid-template-columns: minmax(200px, 1fr) 1.4fr;
    align-items: end;
  }

  .select-label {
    grid-column: 1;
  }

  .store-select {
    grid-column: 1;
  }

  .period-tabs {
    grid-column: 2;
    grid-row: 2;
  }

  .custom-period {
    grid-column: 1 / -1;
  }

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

  .metric-card {
    min-height: 135px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 10px;
  }

  .hero-secondary {
    grid-template-columns: 1fr;
  }

  .hero-secondary article + article {
    border-top: 1px solid rgba(53, 126, 160, 0.16);
  }

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

  .metric-card {
    min-height: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
