:root {
  color-scheme: dark;
  --bg: #070d12;
  --bg-raised: #0b1218;
  --surface: #101922;
  --surface-soft: #0d151c;
  --surface-strong: #15212b;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #f5f8fb;
  --muted: #a8b4c0;
  --faint: #6f7f8d;
  --green: #67f26d;
  --green-strong: #1ed760;
  --cyan: #39e9f2;
  --red: #ff626d;
  --amber: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% -14%, rgba(103, 242, 109, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 4%, rgba(57, 233, 242, 0.11), transparent 28rem),
    linear-gradient(180deg, #081018 0%, #070d12 46%, #05090d 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 62%);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

svg {
  display: block;
}

.app-shell {
  position: relative;
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 0 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 20%, rgba(103, 242, 109, 0.2), transparent 54%),
    rgba(8, 15, 21, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-soft);
}

.brand-mark span {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(103, 242, 109, 0.38);
}

.brand-mark span:nth-child(1) {
  height: 18px;
}

.brand-mark span:nth-child(2) {
  height: 28px;
}

.brand-mark span:nth-child(3) {
  height: 22px;
}

.brand h1,
.section-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: clamp(1.85rem, 2.2vw, 2.45rem);
  line-height: 1;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  white-space: nowrap;
}

.api-label {
  color: var(--muted);
}

.api-label strong {
  color: #d4dbe3;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.12);
}

.connection-pill[data-status="online"] .status-dot,
.connection-card[data-status="online"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(103, 242, 109, 0.13);
}

.connection-pill[data-status="offline"] .status-dot,
.connection-card[data-status="offline"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 98, 109, 0.14);
}

.button,
.text-button {
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(103, 242, 109, 0.45);
  background: linear-gradient(180deg, #66f26c, #27cb5b);
  box-shadow: 0 14px 26px rgba(39, 203, 91, 0.14);
  color: #06120b;
  font-size: 0.94rem;
  font-weight: 850;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(39, 203, 91, 0.18);
}

.button.ghost {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #0b1218;
  box-shadow: none;
  color: var(--text);
}

.button.ghost:hover {
  border-color: rgba(103, 242, 109, 0.36);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.button.accent {
  border-color: rgba(57, 233, 242, 0.62);
  background: rgba(57, 233, 242, 0.05);
  box-shadow: inset 0 0 0 1px rgba(57, 233, 242, 0.1);
  color: #79f5ff;
}

.button.accent:hover {
  background: rgba(57, 233, 242, 0.1);
  box-shadow: 0 16px 30px rgba(57, 233, 242, 0.11);
}

.button.danger {
  border-color: rgba(255, 98, 109, 0.66);
  background: rgba(255, 98, 109, 0.06);
  box-shadow: none;
  color: #ff828b;
}

.button.danger:hover {
  background: rgba(255, 98, 109, 0.1);
  box-shadow: 0 16px 30px rgba(255, 98, 109, 0.08);
}

.button.full-width {
  width: 100%;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.metric-panel,
.tracks-panel,
.control-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(145deg, rgba(21, 33, 43, 0.94), rgba(11, 18, 24, 0.94));
  box-shadow: var(--shadow);
}

.metric-panel {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 136px;
  padding: 22px;
}

.metric-panel-primary {
  border-color: rgba(103, 242, 109, 0.24);
  background:
    radial-gradient(circle at 18% 38%, rgba(103, 242, 109, 0.16), transparent 9rem),
    linear-gradient(145deg, rgba(21, 33, 43, 0.96), rgba(11, 18, 24, 0.94));
}

.metric-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(103, 242, 109, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 10%, rgba(103, 242, 109, 0.24), transparent 68%),
    rgba(103, 242, 109, 0.08);
  color: var(--green);
}

.metric-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

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

.metric-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(2.15rem, 3.5vw, 3.2rem);
  font-weight: 850;
  line-height: 0.98;
  font-variant-numeric: tabular-nums;
}

.metric-title {
  display: -webkit-box;
  min-height: 1.2em;
  overflow: hidden;
  font-size: clamp(1.28rem, 1.8vw, 1.68rem);
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.metric-note {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.91rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 20px;
  align-items: start;
}

.tracks-panel,
.control-panel {
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 22px 18px;
}

.section-head.compact {
  padding-bottom: 18px;
}

.section-head h2 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-box {
  width: min(300px, 32vw);
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #0b1218;
  color: var(--text);
  outline: none;
  padding: 0 12px;
  font-size: 0.92rem;
}

select {
  min-width: 142px;
  padding-right: 34px;
}

input::placeholder {
  color: #778693;
}

input:focus,
select:focus {
  border-color: rgba(57, 233, 242, 0.74);
  box-shadow: 0 0 0 3px rgba(57, 233, 242, 0.1);
}

.chart-wrap {
  margin: 0 22px 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 11, 16, 0.44);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bars {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(90px, 1fr) 46px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #88fb7b);
  box-shadow: 0 0 18px rgba(103, 242, 109, 0.32);
}

.tracks-table-head,
.track-row {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1.5fr) minmax(130px, 0.62fr) 68px minmax(110px, 190px);
  align-items: center;
  column-gap: 20px;
}

.tracks-table-head {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracks-list {
  display: grid;
}

.track-row {
  min-height: 64px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
  background: rgba(13, 21, 28, 0.32);
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.track-row:hover {
  background: rgba(21, 33, 43, 0.72);
}

.track-row:first-child {
  background:
    linear-gradient(90deg, rgba(103, 242, 109, 0.08), transparent 52%),
    rgba(13, 21, 28, 0.44);
}

.rank {
  color: #d7dee7;
  font-size: 0.95rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.track-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.cover {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.3), transparent 2.8rem),
    linear-gradient(135deg, #182f22, #126d72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.cover img,
.cover-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover img {
  z-index: 1;
  display: block;
  object-fit: cover;
}

.cover img[src=""] {
  display: none;
}

.cover-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 900;
}

.track-copy,
.artist-name {
  min-width: 0;
}

.track-copy strong,
.track-copy span,
.artist-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy strong {
  color: #f3f7fb;
  font-size: 0.98rem;
  font-weight: 760;
}

.track-copy span,
.artist-name {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.89rem;
}

.artist-name {
  margin-top: 0;
}

.play-count {
  color: var(--text);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.play-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.play-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #8df779);
  box-shadow: 0 0 18px rgba(103, 242, 109, 0.34);
}

.control-panel {
  align-self: start;
}

.api-form,
.connection-card,
.action-stack,
.log-panel {
  margin-right: 24px;
  margin-left: 24px;
}

.api-form {
  display: grid;
  gap: 9px;
}

.api-form label {
  color: #dce4ec;
  font-size: 0.92rem;
  font-weight: 760;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.connection-card {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 20, 0.36);
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 0.93rem;
}

.connection-card[data-status="offline"] .connection-state {
  color: var(--red);
}

.connection-card[data-status="checking"] .connection-state {
  color: var(--amber);
}

.connection-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-stack {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.log-panel {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 20, 0.4);
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#activityLog {
  display: grid;
  max-height: 220px;
  margin: 0;
  padding: 12px 14px 14px;
  gap: 10px;
  overflow: auto;
  list-style: none;
}

#activityLog li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

#activityLog li[data-tone="error"] {
  color: #ffadb3;
}

#activityLog strong {
  color: var(--text);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a,
.legal-toc a {
  color: #79f5ff;
  font-weight: 760;
  text-decoration: none;
}

.site-footer a:hover,
.legal-toc a:hover {
  color: var(--green);
}

.legal-shell {
  max-width: 1180px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.legal-hero,
.legal-section,
.legal-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(145deg, rgba(21, 33, 43, 0.94), rgba(11, 18, 24, 0.94));
  box-shadow: var(--shadow);
}

.legal-hero {
  padding: clamp(28px, 5vw, 54px);
  margin-bottom: 20px;
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-hero h2,
.legal-section h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.legal-hero h2 {
  max-width: 820px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.legal-hero > p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.legal-meta div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 20, 0.36);
}

.legal-meta dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 760;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.legal-toc strong {
  margin-bottom: 4px;
  color: var(--text);
}

.legal-doc {
  display: grid;
  gap: 20px;
}

.legal-section {
  padding: clamp(22px, 4vw, 38px);
  scroll-margin-top: 24px;
}

.legal-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.legal-section article {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-section h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.14rem;
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.68;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
  margin: 0 0 14px;
}

.legal-section li::marker {
  color: var(--green);
}

.empty-state,
.error-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  margin: 0;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 0, rgba(103, 242, 109, 0.1), transparent 18rem),
    rgba(7, 13, 18, 0.34);
  text-align: center;
}

.empty-state h3,
.error-state h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.empty-state p,
.error-state p {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.5;
}

.loader {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border: 3px solid rgba(103, 242, 109, 0.13);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

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

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

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .control-panel .section-head,
  .log-panel {
    grid-column: 1 / -1;
  }

  .connection-card {
    margin-top: 0;
  }

  .action-stack {
    margin-top: 0;
    border-top: 0;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 28px, 680px);
    padding-top: 14px;
  }

  .topbar,
  .topbar-actions,
  .section-head,
  .table-tools,
  .legal-nav,
  .footer-links,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .connection-pill,
  .topbar-actions,
  .search-box,
  .range-select {
    width: 100%;
  }

  .connection-pill {
    justify-content: flex-start;
  }

  .hero-grid,
  .control-panel {
    grid-template-columns: 1fr;
  }

  .metric-panel {
    min-height: 124px;
  }

  .api-form,
  .connection-card,
  .action-stack,
  .log-panel {
    margin-right: 18px;
    margin-left: 18px;
  }

  .section-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .chart-wrap {
    margin-right: 18px;
    margin-left: 18px;
  }

  .tracks-table-head {
    display: none;
  }

  .track-row {
    grid-template-columns: 34px minmax(0, 1fr) 56px;
    min-height: 66px;
    padding: 11px 18px;
    column-gap: 12px;
  }

  .artist-name,
  .play-meter {
    display: none;
  }

  .cover {
    width: 44px;
    height: 44px;
  }

  .bar-row {
    grid-template-columns: 92px minmax(70px, 1fr) 38px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .legal-meta,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand h1 {
    font-size: 1.72rem;
  }

  .brand p,
  .api-label {
    display: none;
  }

  .metric-panel {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
  }

  .metric-icon {
    width: 56px;
    height: 56px;
  }

  .metric-icon svg {
    width: 27px;
    height: 27px;
  }

  .metric-value {
    font-size: 2rem;
  }

  .metric-title {
    font-size: 1.18rem;
  }

  .chart-wrap {
    display: none;
  }
}

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