:root {
  --ink: #172033;
  --muted: #697386;
  --line: #e7e9f2;
  --surface: #ffffff;
  --canvas: #f5f6fb;
  --purple-900: #321580;
  --purple-700: #512bd4;
  --purple-500: #7455e8;
  --purple-100: #eeeafd;
  --green: #138a61;
  --green-soft: #e8f8f1;
  --amber: #ad6a00;
  --amber-soft: #fff6de;
  --danger: #b42318;
  --danger-soft: #fff0ef;
  --shadow-sm: 0 8px 22px rgba(34, 27, 66, 0.07);
  --shadow-lg: 0 24px 70px rgba(45, 28, 93, 0.16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 90% -10%, rgba(116, 85, 232, 0.13), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(81, 43, 212, 0.28);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(227, 225, 238, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--purple-500), var(--purple-900));
  box-shadow: 0 8px 18px rgba(81, 43, 212, 0.25);
  color: white;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 750;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: #4b5263;
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  fill: currentColor;
}

main {
  width: 100%;
  flex: 1;
}

.auth-gate {
  display: grid;
  min-height: calc(100dvh - 126px);
  padding: 30px 18px 48px;
  place-items: center;
}

.auth-card {
  position: relative;
  width: min(100%, 480px);
  overflow: hidden;
  padding: 38px 24px 28px;
  border: 1px solid rgba(226, 222, 240, 0.92);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0, rgba(116, 85, 232, 0.12), transparent 17rem),
    var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.security-orbit {
  display: grid;
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid rgba(81, 43, 212, 0.15);
  border-radius: 50%;
  background: rgba(238, 234, 253, 0.48);
  box-shadow: 0 0 0 11px rgba(238, 234, 253, 0.32);
}

.security-core {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 23px;
  background: linear-gradient(145deg, var(--purple-500), var(--purple-900));
  box-shadow: 0 15px 34px rgba(81, 43, 212, 0.27);
}

.security-core svg {
  width: 33px;
  fill: white;
}

.auth-view {
  animation: reveal 260ms ease-out;
}

.eyebrow {
  display: inline-block;
  color: var(--purple-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.warning {
  color: var(--amber);
}

.auth-view h1 {
  margin: 10px 0 10px;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.auth-view > p {
  max-width: 390px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.loading-line {
  width: min(100%, 260px);
  height: 5px;
  margin: 28px auto 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--purple-100);
}

.loading-line span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-700));
  animation: loading-sweep 1.1s ease-in-out infinite;
}

.activation-form {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  text-align: left;
}

.activation-form label {
  color: #41495b;
  font-size: 12px;
  font-weight: 750;
}

.activation-form input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9dbea;
  border-radius: 16px;
  background: #fafafe;
  color: var(--ink);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.activation-form input::placeholder {
  color: #adb1c0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-900));
  box-shadow: 0 12px 24px rgba(81, 43, 212, 0.22);
  color: white;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary-button svg,
.secondary-button svg {
  width: 20px;
  fill: currentColor;
}

.face-id-button {
  width: 100%;
  min-height: 62px;
  margin-top: 26px;
  font-size: 16px;
}

.face-id-symbol {
  display: inline-flex;
}

.face-id-symbol svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.privacy-note {
  margin-top: 18px !important;
  color: #858b9b !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.form-message {
  margin: 18px 0 0;
  padding: 11px 13px;
  border: 1px solid #f4c7c3;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

.dashboard {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 26px 16px 64px;
  animation: reveal 300ms ease-out;
}

.install-hint,
.stale-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

.install-hint {
  padding: 13px 13px 13px 16px;
  border: 1px solid #dcd5fb;
  background: #f2efff;
  color: #3f248f;
}

.install-hint div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-hint strong {
  font-size: 13px;
}

.install-hint span {
  font-size: 12px;
  line-height: 1.4;
}

.install-hint button {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #5a3ca8;
  font-size: 26px;
  cursor: pointer;
}

.stale-banner {
  justify-content: flex-start;
  padding: 12px 15px;
  border: 1px solid #f0d38c;
  background: var(--amber-soft);
  color: #7d4e00;
  font-size: 13px;
  font-weight: 680;
}

.stale-banner svg {
  width: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.welcome-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.welcome-row h1 {
  margin: 6px 0 6px;
  font-size: clamp(28px, 7.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.welcome-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.date-control {
  display: flex;
  min-width: 174px;
  flex-direction: column;
  gap: 5px;
}

.date-control label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.date-control input {
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 680;
  box-shadow: var(--shadow-sm);
}

.summary-grid {
  display: grid;
  gap: 14px;
}

.daily-total-card {
  position: relative;
  display: grid;
  min-height: 290px;
  overflow: hidden;
  padding: 22px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.3), transparent 14rem),
    linear-gradient(145deg, #7959eb, #4922bc 58%, #321580);
  box-shadow: 0 23px 50px rgba(65, 31, 167, 0.25);
  color: white;
  cursor: pointer;
}

.daily-total-card::before,
.daily-total-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.daily-total-card::before {
  width: 190px;
  height: 190px;
  right: -80px;
  top: -50px;
}

.daily-total-card::after {
  width: 130px;
  height: 130px;
  bottom: -55px;
  left: -45px;
}

.daily-ring {
  position: relative;
  z-index: 1;
  display: grid;
  width: 224px;
  height: 224px;
  padding: 10px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.08), 0 16px 38px rgba(26, 8, 83, 0.22);
}

.daily-ring-inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.daily-ring span {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.daily-ring strong {
  max-width: 190px;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.daily-ring small {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 650;
}

.period-cards {
  display: grid;
  gap: 14px;
}

.metric-card {
  position: relative;
  display: flex;
  min-height: 142px;
  overflow: hidden;
  padding: 22px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card > span:not(.metric-icon) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 5px;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.metric-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
}

.metric-icon svg {
  width: 22px;
  fill: currentColor;
}

.month-card .metric-icon {
  background: #eef8ff;
  color: #176b9e;
}

.year-card .metric-icon {
  background: var(--green-soft);
  color: var(--green);
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 26px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.connection-state {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.connection-state div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.connection-state strong {
  font-size: 13px;
}

.connection-state span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid white;
  border-radius: 50%;
  background: #9da3b2;
  box-shadow: 0 0 0 3px rgba(157, 163, 178, 0.18);
}

.status-dot.online {
  background: #1aaa72;
  box-shadow: 0 0 0 3px rgba(26, 170, 114, 0.16);
}

.status-dot.offline {
  background: #d08a1c;
  box-shadow: 0 0 0 3px rgba(208, 138, 28, 0.16);
}

.secondary-button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid #dcd7ef;
  background: #f7f5ff;
  color: var(--purple-900);
  font-size: 12px;
}

.ranking-section {
  scroll-margin-top: 96px;
  padding: 21px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 3px 18px;
}

.section-heading h2 {
  margin: 5px 0 3px;
  font-size: clamp(24px, 7vw, 34px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f9f9fc;
}

.search-box svg {
  width: 20px;
  flex: 0 0 auto;
  fill: #8a90a0;
}

.search-box input {
  width: 100%;
  height: 45px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.ranking-list {
  display: grid;
  gap: 9px;
}

.seller-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  min-height: 82px;
  align-items: center;
  padding: 13px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.seller-card:hover {
  transform: translateY(-1px);
  border-color: #cdc5ec;
  box-shadow: 0 10px 22px rgba(42, 31, 84, 0.08);
}

.rank-number {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: #f0f1f6;
  color: #535a6c;
  font-size: 14px;
  font-weight: 820;
}

.seller-card.top-1 {
  border-color: #ecd994;
  background: linear-gradient(110deg, #fffbec, #fff 62%);
}

.seller-card.top-2 {
  border-color: #d7dbe3;
  background: linear-gradient(110deg, #f5f7fa, #fff 62%);
}

.seller-card.top-3 {
  border-color: #e9c9ad;
  background: linear-gradient(110deg, #fff5eb, #fff 62%);
}

.top-1 .rank-number {
  background: linear-gradient(145deg, #f7c94a, #c9910d);
  color: white;
  box-shadow: 0 8px 18px rgba(199, 145, 13, 0.2);
}

.top-2 .rank-number {
  background: linear-gradient(145deg, #b9c0cb, #7d8797);
  color: white;
}

.top-3 .rank-number {
  background: linear-gradient(145deg, #cd8a50, #9d5a2f);
  color: white;
}

.seller-content {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.seller-main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.seller-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.seller-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-code {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.seller-amount {
  flex: 0 0 auto;
  color: #2d1a6f;
  font-size: 13px;
  font-weight: 830;
}

.progress-track {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #edeef3;
  color: var(--purple-700);
  appearance: none;
  -webkit-appearance: none;
}

.progress-track::-webkit-progress-bar {
  border-radius: inherit;
  background: #edeef3;
}

.progress-track::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-700));
}

.progress-track::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-700));
}

.top-1 .progress-track::-webkit-progress-value,
.top-1 .progress-track::-moz-progress-bar {
  background: linear-gradient(90deg, #f1bd28, #d08b00);
}

.top-2 .progress-track::-webkit-progress-value,
.top-2 .progress-track::-moz-progress-bar {
  background: linear-gradient(90deg, #9ca6b6, #6c778a);
}

.top-3 .progress-track::-webkit-progress-value,
.top-3 .progress-track::-moz-progress-bar {
  background: linear-gradient(90deg, #cf8950, #a45d31);
}

.ranking-loading {
  display: grid;
  gap: 9px;
}

.ranking-loading span {
  height: 82px;
  border-radius: 17px;
  background: linear-gradient(90deg, #f1f1f5 25%, #fafafe 50%, #f1f1f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

.empty-state {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 43px;
  margin-bottom: 13px;
  fill: #a4a8b5;
}

.empty-state strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
}

.empty-state span {
  max-width: 330px;
  font-size: 13px;
  line-height: 1.5;
}

.seller-dialog {
  width: min(calc(100% - 28px), 540px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(27, 16, 70, 0.3);
  color: var(--ink);
}

.seller-dialog::backdrop {
  background: rgba(26, 20, 48, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 22px;
  background: linear-gradient(140deg, #f2efff, #fff);
}

.dialog-rank {
  color: var(--purple-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-header h2 {
  margin: 7px 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.dialog-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-header .icon-button {
  font-size: 25px;
}

.dialog-metrics {
  display: grid;
  gap: 1px;
  padding: 12px;
  background: var(--line);
}

.dialog-metrics article {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  background: var(--surface);
}

.dialog-metrics article:first-child {
  border-radius: 14px 14px 5px 5px;
}

.dialog-metrics article:last-child {
  border-radius: 5px 5px 14px 14px;
}

.dialog-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-metrics strong {
  font-size: clamp(17px, 5vw, 22px);
  letter-spacing: -0.03em;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 16px;
  width: fit-content;
  max-width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 13px 16px;
  border-radius: 14px;
  background: #23194a;
  box-shadow: 0 15px 35px rgba(23, 15, 62, 0.27);
  color: white;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  animation: toast-in 220ms ease-out;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: #7b8190;
  font-size: 10px;
}

.app-footer span:first-child {
  color: var(--purple-700);
  font-weight: 850;
  letter-spacing: 0.12em;
}

@media (min-width: 640px) {
  .app-header {
    padding-right: 28px;
    padding-left: 28px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .auth-card {
    padding: 45px 42px 34px;
  }

  .dashboard {
    padding-right: 28px;
    padding-left: 28px;
  }

  .welcome-row {
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
  }

  .summary-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .daily-total-card {
    min-height: 330px;
  }

  .period-cards {
    grid-template-rows: 1fr 1fr;
  }

  .metric-card {
    min-height: 0;
  }

  .section-heading {
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
  }

  .search-box {
    width: 290px;
  }

  .seller-card {
    grid-template-columns: 55px minmax(0, 1fr);
    min-height: 88px;
    padding: 15px 18px;
  }

  .rank-number {
    width: 47px;
    height: 47px;
  }

  .seller-name,
  .seller-amount {
    font-size: 15px;
  }

  .dialog-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .dialog-metrics article {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-metrics article:first-child {
    border-radius: 14px 5px 5px 14px;
  }

  .dialog-metrics article:last-child {
    border-radius: 5px 14px 14px 5px;
  }
}

@media (min-width: 980px) {
  .app-header {
    padding-right: 44px;
    padding-left: 44px;
  }

  .dashboard {
    padding-top: 36px;
  }

  .summary-grid {
    grid-template-columns: 1.32fr 1fr;
  }

  .daily-ring {
    width: 245px;
    height: 245px;
  }

  .ranking-section {
    padding: 28px 24px 22px;
  }

  .ranking-list {
    gap: 11px;
  }
}

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

@keyframes reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loading-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
