:root {
  --page-background: #f3f2f0;
  --sidebar-background: #f7f6f4;
  --surface: #ffffff;
  --surface-soft: #faf9f7;
  --text-primary: #141414;
  --text-secondary: #68635d;
  --text-soft: #8b857e;
  --border-subtle: rgba(20, 20, 20, 0.09);
  --border-strong: rgba(20, 20, 20, 0.18);
  --reward-background: #141414;
  --reward-text: #ffffff;
  --reward-muted: rgba(255, 255, 255, 0.72);
  --success: #1f7a46;
  --success-soft: #e9f5ed;
  --activity-primary: #2f9e5f;
  --activity-secondary: #6fcf97;
  --activity-muted: #e7e4df;
  --brand-accent: #5656cf;
  --sidebar-width: 268px;
  --card-radius: 18px;
  --focus-ring: #4d62bb;
  --shadow-card: 0 2px 10px rgba(20, 20, 20, 0.035);
  --shadow-modal: 0 24px 70px rgba(20, 20, 20, 0.25);
  --transition-fast: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-background);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.overlay-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  font-weight: 600;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none;
}

:focus-visible {
  outline: 3px solid rgba(77, 98, 187, 0.66);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-modal);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--transition-fast);
}

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

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.mobile-topbar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  padding: 20px 14px 14px;
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  background: var(--sidebar-background);
}

.sidebar-top {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin: 0 6px 18px;
}

.sidebar-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: 150px;
  object-fit: contain;
  flex: 0 0 auto;
}

.sidebar-close,
.menu-button,
.dialog-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.sidebar-close:hover,
.menu-button:hover,
.dialog-close:hover {
  border-color: var(--border-strong);
  background: #f1efec;
}

.sidebar-close {
  display: none;
}

.sidebar-nav {
  display: grid;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #514d48;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-link:hover {
  background: rgba(20, 20, 20, 0.045);
  color: var(--text-primary);
}

.nav-link.is-active {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.055);
  color: var(--text-primary);
}

.nav-link.is-active::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: var(--text-primary);
  content: "";
}

.reward-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto 2px 10px;
  padding: 15px 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: var(--reward-background);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.1);
  color: var(--reward-text);
}

.reward-badge {
  display: inline-flex;
  align-self: flex-start;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
}

.reward-card h2 {
  max-width: 205px;
  color: #ffffff;
  font-size: 1.06rem;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.reward-card > p:not(.reward-note) {
  color: var(--reward-muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.reward-card-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  color: #141414;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.reward-card-button:hover {
  background: #f1efec;
  transform: translateY(-1px);
}

.reward-note {
  color: #c7c2bb;
  font-size: 0.65rem;
  line-height: 1.4;
}

.account-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 11px;
}

.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #ece9e5;
  color: #4f4b47;
  font-size: 0.68rem;
  font-weight: 650;
}

.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 0.75rem;
}

.account-copy small {
  margin-top: 1px;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.account-dot {
  width: 9px;
  height: 9px;
  border: 2px solid #aaa49d;
  border-radius: 50%;
}

.sidebar-scrim {
  display: none;
}

.main-content {
  width: 100%;
  min-width: 0;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 48px) 48px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  scroll-margin-top: 20px;
}

.page-header h1 {
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-header > div:first-child p {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.reward-header-button,
.new-credential-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--reward-background);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.reward-header-button {
  box-shadow: 0 5px 14px rgba(20, 20, 20, 0.13);
}

.reward-header-button:hover,
.new-credential-button:hover {
  background: #2a2927;
  transform: translateY(-1px);
}

.status-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface);
  color: #504b46;
  font-size: 0.78rem;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(31, 122, 70, 0.14);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}

.card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 20px;
}

.credentials-card {
  grid-column: 1 / -1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-header h2 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-label,
.agent-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f0eeeb;
  color: #625d57;
  font-size: 0.64rem;
  font-weight: 600;
}

.demo-label {
  min-height: 22px;
  padding: 3px 8px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  white-space: nowrap;
}

.card-meta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
}

.card-meta a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.activity-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.activity-summary strong {
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.activity-summary span {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.activity-chart {
  margin-bottom: 10px;
}

.chart-bars {
  display: grid;
  height: 106px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 0 2px;
  border-bottom: 1px solid #eeece8;
}

.chart-bar {
  height: max(5px, var(--bar-height));
  border-radius: 5px 5px 2px 2px;
  background: var(--activity-muted);
}

.chart-bar--primary {
  background: var(--activity-primary);
}

.chart-bar--secondary {
  background: var(--activity-secondary);
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 0.66rem;
  text-align: center;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 10px 0 14px;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

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

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

.legend-primary {
  background: var(--activity-primary);
}

.legend-secondary {
  background: var(--activity-secondary);
}

.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 8px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.7rem;
  scroll-margin-top: 20px;
}

.activity-feed {
  display: grid;
}

.activity-feed li {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 20px;
}

.activity-feed li:last-child {
  border-bottom: 0;
}

.feed-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--success);
}

.feed-dot--muted {
  background: #bcb6af;
}

.activity-feed strong,
.activity-feed small {
  display: block;
  overflow-wrap: anywhere;
}

.activity-feed strong {
  font-size: 0.76rem;
  font-weight: 550;
}

.activity-feed small {
  margin-top: 1px;
  color: var(--text-secondary);
  font-size: 0.67rem;
}

.agents-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.agent-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-self: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #20201f;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  scroll-margin-top: 20px;
}

.agent-tag img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.agent-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: #fff;
  scroll-margin-top: 20px;
}

.agent-icon-wrap {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #1f1f1e;
}

.agent-icon-wrap img {
  width: 22px;
  height: 22px;
}

.agent-row strong,
.agent-row small {
  display: block;
  overflow-wrap: anywhere;
}

.agent-row strong {
  font-size: 0.78rem;
}

.agent-row small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.67rem;
}

.agent-state {
  min-height: 24px;
  padding: 4px 8px;
}

.balance-block {
  margin: 7px 0 17px;
}

.balance-block strong,
.balance-block span {
  display: block;
}

.balance-block strong {
  font-size: 2.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.balance-block span {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.wallets-label {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wallet-row {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  scroll-margin-top: 20px;
}

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

.eth-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eeece8;
  color: #627eea;
}

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

.wallet-copy strong,
.wallet-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.wallet-copy strong {
  font-size: 0.78rem;
}

.wallet-copy small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.fund-button {
  min-width: 66px;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.fund-button:hover {
  border-color: #858078;
  background: #f5f3f0;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
  overflow-y: auto;
  background: rgba(20, 20, 20, 0.58);
  backdrop-filter: blur(3px);
}

.dialog-backdrop[hidden] {
  display: none;
}

.reward-modal,
.credential-modal {
  position: relative;
  width: min(100%, 400px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-modal);
}

.reward-modal {
  padding: 27px 24px 20px;
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.reward-modal-kicker,
.credential-modal-kicker {
  color: var(--text-soft);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reward-gift {
  display: grid;
  margin: 8px 0 2px;
  place-items: center;
}

.reward-gift img {
  width: 112px;
  height: 112px;
}

.reward-modal h2 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.reward-modal > p:nth-of-type(2) {
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.reward-availability {
  min-height: 42px;
  margin: 14px 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.45;
}

.reward-availability.is-unavailable {
  background: #fff7e8;
  color: #765312;
}

.reward-claim-button,
.credential-modal-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 11px;
  background: var(--reward-background);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.reward-claim-button:hover,
.credential-modal-button:hover {
  background: #2a2927;
}

.dialog-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.76rem;
}

.dialog-secondary:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credential-modal {
  padding: 28px;
}

.credential-modal-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 14px;
  background: #f0eeeb;
  color: #4f4b47;
}

.credential-modal h2 {
  max-width: 310px;
  margin-top: 8px;
  padding-right: 30px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.credential-modal > p:last-of-type {
  margin: 11px 0 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: #1d1d1c;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.2);
  color: #ffffff;
  font-size: 0.76rem;
}

@media (max-width: 1120px) {
  .main-content {
    padding-inline: 26px;
  }

  .page-header {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 78px;
  }

  .app-shell {
    display: block;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(247, 246, 244, 0.96);
    backdrop-filter: blur(12px);
  }

  .mobile-brand {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .mobile-brand .brand-logo {
    width: auto;
    height: 30px;
    max-width: 150px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 10px 0 32px rgba(20, 20, 20, 0.14);
  }

  .sidebar-close {
    display: inline-grid;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 39;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(20, 20, 20, 0.42);
    cursor: pointer;
  }

  .sidebar-scrim[hidden] {
    display: none;
  }

  .nav-link,
  .reward-card-button {
    min-height: 44px;
  }

  .main-content {
    padding: 22px 16px 36px;
  }

  .page-header,
  .card,
  .feed-heading,
  .activity-feed li,
  .agent-tag,
  .agent-row,
  .wallet-row {
    scroll-margin-top: 82px;
  }

  .reward-header-button,
  .new-credential-button,
  .status-pill,
  .fund-button {
    min-height: 44px;
  }

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

  .credentials-card {
    grid-column: auto;
  }

  .no-js .mobile-topbar {
    display: none;
  }

  .no-js .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none;
  }

  .no-js .sidebar-close {
    display: none;
  }

  .no-js .reward-card {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .page-header {
    gap: 16px;
  }

  .page-header h1 {
    font-size: 1.65rem;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .reward-header-button {
    order: 1;
  }

  .new-credential-button {
    order: 2;
  }

  .status-pill {
    order: 3;
    grid-column: 1 / -1;
    justify-self: start;
  }

  .reward-header-button,
  .new-credential-button {
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .agents-header {
    grid-template-columns: auto auto;
  }

  .agents-header .agent-tag {
    justify-self: end;
  }

  .agents-header .card-meta {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .wallet-row {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .main-content {
    padding-inline: 14px;
  }

  .card {
    padding: 16px;
  }

  .reward-header-button,
  .new-credential-button {
    gap: 5px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }

  .chart-labels {
    font-size: 0.6rem;
  }

  .agent-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .agent-state {
    grid-column: 2;
    justify-self: start;
  }

  .wallet-row {
    flex-wrap: wrap;
  }

  .fund-button {
    width: 100%;
  }

  .dialog-backdrop {
    padding: 12px;
  }

  .reward-modal,
  .credential-modal {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 17px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

@media (forced-colors: active) {
  .nav-link.is-active::before,
  .status-dot,
  .account-dot,
  .feed-dot,
  .chart-legend i {
    forced-color-adjust: none;
  }
}
