/* Aurora theme — isolated override layer. Remove this stylesheet link to restore the previous design. */
:root {
  --page: #070b14;
  --ink: #f5f7ff;
  --text-muted: #8f9bb4;
  --text-secondary: #c2cbe0;
  --surface: rgba(14, 22, 39, 0.88);
  --sidebar: #080d18;
  --input: rgba(8, 15, 29, 0.9);
  --border: rgba(111, 142, 190, 0.2);
  --border-strong: rgba(130, 159, 207, 0.38);
  --button: rgba(24, 35, 57, 0.92);
  --button-hover: rgba(38, 53, 82, 0.96);
  --purple: #8465ff;
  --purple-hover: #9b82ff;
  --purple-soft: #b8a9ff;
  --cyan: #3bd9e7;
  --on-accent: #fff;
  --selected: rgba(121, 82, 255, 0.17);
  --selected-border: rgba(145, 114, 255, 0.56);
  --selected-ink: #d9d0ff;
  --focus-wash: rgba(126, 91, 255, 0.2);
  --panel: rgba(14, 23, 40, 0.82);
  --empty-a: rgba(39, 27, 78, 0.72);
  --empty-b: rgba(12, 22, 39, 0.88);
  --info-bg: rgba(18, 38, 61, 0.9);
  --info-ink: #c8e4ff;
  --info-border: #457aa1;
  --success-bg: rgba(18, 59, 51, 0.78);
  --success-ink: #72e6b3;
  --success-border: #2e8d70;
  --aurora-shadow: 0 20px 48px rgba(0, 5, 18, 0.28);
  --aurora-card-shadow: 0 12px 32px rgba(0, 5, 18, 0.18);
}

:root[data-theme="light"] {
  --page: #f2f5fc;
  --ink: #182033;
  --text-muted: #69758d;
  --text-secondary: #44516a;
  --surface: rgba(255, 255, 255, 0.88);
  --sidebar: #f8faff;
  --input: rgba(255, 255, 255, 0.94);
  --border: rgba(70, 91, 128, 0.16);
  --border-strong: rgba(80, 101, 140, 0.3);
  --button: rgba(231, 236, 248, 0.9);
  --button-hover: #dde5f5;
  --purple: #6946dd;
  --purple-hover: #7b57e9;
  --purple-soft: #6946dd;
  --cyan: #078a99;
  --selected: rgba(105, 70, 221, 0.11);
  --selected-border: rgba(105, 70, 221, 0.38);
  --selected-ink: #5937bc;
  --focus-wash: rgba(105, 70, 221, 0.13);
  --panel: rgba(255, 255, 255, 0.82);
  --empty-a: rgba(235, 229, 255, 0.92);
  --empty-b: rgba(255, 255, 255, 0.92);
  --aurora-shadow: 0 20px 50px rgba(54, 67, 104, 0.1);
  --aurora-card-shadow: 0 10px 28px rgba(54, 67, 104, 0.08);
}

html {
  min-width: 320px;
  background: var(--page);
  scrollbar-color: rgba(116, 137, 174, 0.42) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(116, 137, 174, 0.42);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(132, 101, 255, 0.6); }

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 580px at 78% -8%, rgba(61, 99, 197, 0.2), transparent 68%),
    radial-gradient(720px 520px at 32% 104%, rgba(93, 49, 185, 0.14), transparent 72%),
    var(--page);
  background-attachment: fixed;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(900px 580px at 78% -8%, rgba(97, 125, 211, 0.14), transparent 68%),
    radial-gradient(720px 520px at 32% 104%, rgba(125, 91, 213, 0.1), transparent 72%),
    var(--page);
}

::selection {
  color: #fff;
  background: rgba(126, 91, 255, 0.72);
}

button,
input,
select,
textarea,
.panel,
.profile-card,
.account-bar,
.addon,
.metric {
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button {
  border-color: var(--border);
  border-radius: 9px;
}

button:hover:not(:disabled) {
  border-color: var(--border-strong);
}

button.primary {
  background: linear-gradient(115deg, #835cff, #6840e8 72%, #5f37d7);
  border-color: rgba(177, 156, 255, 0.72);
  box-shadow: 0 9px 24px rgba(94, 56, 218, 0.25), inset 0 1px rgba(255, 255, 255, 0.16);
}

button.primary:hover:not(:disabled) {
  background: linear-gradient(115deg, #9475ff, #7650ef 72%, #6940df);
  box-shadow: 0 12px 30px rgba(94, 56, 218, 0.34), inset 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

input,
textarea,
select,
.stats-profile-menu summary {
  border-color: var(--border-strong);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--cyan) 72%, transparent);
  outline-offset: 2px;
}

.shell {
  grid-template-columns: 272px minmax(0, 1fr);
}

aside {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 100vh;
  overflow: hidden auto;
  padding: 30px 18px 24px;
  border-right-color: rgba(99, 130, 179, 0.24);
  background:
    radial-gradient(440px 260px at 28% 88%, rgba(42, 172, 213, 0.16), transparent 58%),
    radial-gradient(390px 300px at 72% 100%, rgba(107, 61, 224, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(8, 14, 27, 0.98), rgba(8, 15, 29, 0.96));
  box-shadow: 16px 0 50px rgba(0, 4, 14, 0.14);
  scrollbar-width: none;
}

aside::-webkit-scrollbar { display: none; }

aside::after {
  position: absolute;
  z-index: -1;
  right: -25%;
  bottom: -10px;
  left: -25%;
  height: 190px;
  content: "";
  opacity: 0.76;
  background:
    linear-gradient(151deg, transparent 34%, rgba(34, 52, 86, 0.92) 35% 43%, transparent 44%),
    linear-gradient(29deg, transparent 43%, rgba(23, 38, 67, 0.96) 44% 55%, transparent 56%);
  clip-path: polygon(0 74%, 16% 48%, 29% 67%, 43% 28%, 55% 58%, 70% 38%, 100% 70%, 100% 100%, 0 100%);
}

:root[data-theme="light"] aside {
  background:
    radial-gradient(440px 260px at 28% 88%, rgba(68, 190, 212, 0.12), transparent 58%),
    radial-gradient(390px 300px at 72% 100%, rgba(122, 86, 218, 0.13), transparent 62%),
    rgba(249, 251, 255, 0.94);
  box-shadow: 14px 0 40px rgba(70, 85, 122, 0.08);
}

:root[data-theme="light"] aside::after {
  opacity: 0.2;
}

.brand {
  position: relative;
  margin-bottom: 24px;
  padding: 0 10px;
  letter-spacing: 1px;
  font-size: 1.72rem;
}

.brand-logo {
  filter: drop-shadow(0 8px 18px rgba(107, 69, 236, 0.34));
}

nav {
  position: relative;
  z-index: 1;
  gap: 7px;
}

nav button {
  position: relative;
  min-height: 52px;
  padding: 14px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
}

nav button::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -1px;
  width: 2px;
  border-radius: 4px;
  content: "";
  background: transparent;
}

nav button:hover {
  color: var(--ink);
  background: rgba(111, 139, 189, 0.08);
}

nav button.active {
  color: var(--selected-ink);
  border-color: rgba(132, 101, 255, 0.18);
  background: linear-gradient(90deg, rgba(119, 82, 234, 0.2), rgba(74, 64, 132, 0.12));
  box-shadow: none;
}

nav button.active::before {
  background: linear-gradient(180deg, var(--purple), var(--cyan));
  box-shadow: 0 0 14px rgba(132, 101, 255, 0.6);
}

main {
  position: relative;
}

header {
  position: sticky;
  z-index: 25;
  top: 0;
  min-height: 76px;
  padding: 15px 34px;
  border-bottom-color: var(--border);
  background: linear-gradient(90deg, rgba(8, 14, 27, 0.76), rgba(12, 23, 44, 0.66));
  box-shadow: 0 8px 30px rgba(0, 5, 18, 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
}

:root[data-theme="light"] header {
  background: rgba(248, 250, 255, 0.76);
}

.breadcrumb {
  color: var(--text-muted);
}

.breadcrumb span:last-child {
  color: var(--ink);
  font-weight: 650;
}

#theme-toggle {
  border-color: var(--border);
  background: rgba(13, 22, 39, 0.68);
}

:root[data-theme="light"] #theme-toggle {
  background: rgba(255, 255, 255, 0.72);
}

#content {
  max-width: 1680px;
  padding: 34px 34px 64px;
}

.title-row {
  margin-bottom: 24px;
}

.title-row h1 {
  margin-bottom: 7px;
  font-size: clamp(1.85rem, 2.2vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.title-row p {
  color: var(--text-secondary);
}

.panel,
.account-bar,
.profile-card,
.addon,
.metric,
.setting-group,
.history-tabs,
.connection-card {
  border-color: var(--border);
  background: var(--panel);
  box-shadow: var(--aurora-card-shadow), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px) saturate(1.08);
}

:root[data-theme="light"] .panel,
:root[data-theme="light"] .account-bar,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .addon,
:root[data-theme="light"] .metric,
:root[data-theme="light"] .setting-group,
:root[data-theme="light"] .history-tabs,
:root[data-theme="light"] .connection-card {
  box-shadow: var(--aurora-card-shadow), inset 0 1px #fff;
}

.account-bar {
  padding: 18px 20px;
  border-radius: 13px;
}

.account-bar label {
  position: relative;
  min-width: min(100%, 350px);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.account-bar select {
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: normal;
}

.profile-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  min-width: 0;
  min-height: 108px;
  padding: 16px;
  column-gap: 13px;
  border-radius: 14px;
}

.profile-card:hover {
  border-color: rgba(88, 205, 224, 0.45);
  background: rgba(18, 30, 51, 0.9);
  box-shadow: 0 18px 42px rgba(0, 5, 18, 0.26), 0 0 0 1px rgba(59, 217, 231, 0.08);
  transform: translateY(-2px);
}

:root[data-theme="light"] .profile-card:hover {
  background: rgba(255, 255, 255, 0.96);
}

.profile-card.selected {
  border-color: rgba(132, 101, 255, 0.66);
  background:
    radial-gradient(420px 130px at 0% 0%, rgba(132, 101, 255, 0.13), transparent 68%),
    var(--panel);
  box-shadow: 0 18px 42px rgba(0, 5, 18, 0.22), 0 0 0 1px rgba(132, 101, 255, 0.15);
}

.profile-card.selected::after {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--selected-border);
  border-radius: 50%;
  background: var(--selected);
}

.avatar {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(187, 210, 245, 0.55);
  box-shadow: 0 10px 24px rgba(0, 5, 18, 0.34), 0 0 0 5px rgba(132, 101, 255, 0.06);
}

.profile-card.selected .avatar {
  border-color: var(--purple);
}

.profile-name {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card .muted {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tabs {
  gap: 2px;
  margin-top: 30px;
  padding: 0 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.tabs button {
  flex: 0 0 auto;
  padding: 15px 14px 13px;
  border-radius: 7px 7px 0 0;
}

.tabs button:hover {
  color: var(--ink);
  background: rgba(111, 139, 189, 0.07);
}

.tabs button.active {
  color: var(--purple-soft);
  border-bottom-color: var(--purple);
  background: linear-gradient(180deg, transparent, rgba(132, 101, 255, 0.1));
}

.settings-section-tabs,
.history-tabs {
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(8, 15, 29, 0.46);
}

:root[data-theme="light"] .settings-section-tabs,
:root[data-theme="light"] .history-tabs {
  background: rgba(236, 240, 249, 0.62);
}

.settings-section-tabs button,
.history-tabs button {
  border-radius: 7px;
  background: transparent;
}

.settings-section-tabs button.active,
.history-tabs button.active {
  border-color: var(--selected-border);
  background: var(--selected);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(68, 41, 151, 0.12);
}

.settings-section-heading h2,
.nuvio-history-heading h2 {
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.setting-group {
  border-radius: 12px;
  overflow: hidden;
}

.setting-group summary {
  min-height: 58px;
  padding: 18px 20px;
  background: rgba(21, 33, 55, 0.72);
}

:root[data-theme="light"] .setting-group summary {
  background: rgba(241, 244, 251, 0.76);
}

.setting-group[open] summary {
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.setting-row {
  border-bottom-color: var(--border);
}

.setting-row:hover {
  background: rgba(69, 99, 148, 0.055);
}

.segmented-control .choice-card > span {
  border-color: var(--border);
  background: rgba(23, 34, 55, 0.72);
}

:root[data-theme="light"] .segmented-control .choice-card > span {
  background: rgba(237, 241, 249, 0.76);
}

.segmented-control .choice-card input:checked + span {
  border-color: var(--selected-border);
  background: var(--selected);
}

.metric {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 14px;
  min-height: 106px;
  padding: 20px;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(220px 120px at 0 0, rgba(132, 101, 255, 0.13), transparent 72%),
    var(--panel);
}

.metric::before {
  grid-row: 1 / 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  align-self: center;
  content: "◈";
  color: var(--purple-soft);
  border: 1px solid rgba(132, 101, 255, 0.24);
  border-radius: 50%;
  background: rgba(104, 66, 220, 0.17);
  font-size: 1.4rem;
}

.metric:nth-child(1)::before { content: "◎"; }
.metric:nth-child(2)::before { content: "▷"; }
.metric:nth-child(3)::before { content: "▤"; }
.metric:nth-child(4)::before { content: "◷"; }

.metric span,
.metric strong {
  grid-column: 2;
  margin: 0;
}

.metric span {
  align-self: end;
}

.metric strong {
  align-self: start;
  font-size: clamp(1.25rem, 1.65vw, 1.65rem);
  white-space: nowrap;
}

.stats-controls {
  align-items: end;
}

.stats-controls > button {
  min-height: 40px;
  color: #fff;
  border-color: rgba(177, 156, 255, 0.68);
  background: linear-gradient(115deg, #835cff, #6840e8);
  box-shadow: 0 8px 22px rgba(94, 56, 218, 0.22);
}

.stats-section {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 14px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(18, 29, 50, 0.86), rgba(11, 20, 35, 0.86)),
    var(--panel);
}

:root[data-theme="light"] .stats-section {
  background: rgba(255, 255, 255, 0.83);
}

.stats-section .section-heading {
  align-items: center;
}

.stats-section h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.timeline-chart {
  height: 238px;
}

.timeline-axis {
  stroke: rgba(121, 149, 193, 0.2);
}

.timeline-summary > div {
  border-color: rgba(108, 139, 188, 0.18);
  background: rgba(10, 18, 33, 0.54);
}

:root[data-theme="light"] .timeline-summary > div {
  background: rgba(241, 244, 251, 0.7);
}

.stats-dashboard-grid {
  gap: 16px;
}

.stats-ranking-card {
  min-height: 224px;
  border-color: rgba(100, 136, 190, 0.3);
  border-radius: 13px;
  background: #0c1423;
  box-shadow: 0 15px 34px rgba(0, 5, 18, 0.24), inset 0 1px rgba(255, 255, 255, 0.045);
  outline: 0;
  --stats-card-accent: var(--cyan);
}

.stats-ranking-card:hover {
  border-color: rgba(59, 217, 231, 0.38);
  box-shadow: 0 18px 42px rgba(0, 5, 18, 0.3), 0 0 0 1px rgba(59, 217, 231, 0.06);
  transform: translateY(-1px);
}

.stats-card-bg {
  filter: blur(9px) saturate(1.15);
  opacity: 0.36;
}

.stats-ranking-card::after {
  background: linear-gradient(90deg, rgba(5, 10, 19, 0.94), rgba(8, 15, 28, 0.79) 56%, rgba(8, 15, 28, 0.62));
}

.stats-card-content header {
  position: relative;
  top: auto;
  min-height: 42px;
  margin-left: 140px;
  padding: 11px 12px 8px;
  border-bottom-color: rgba(160, 184, 220, 0.14);
  background: rgba(6, 12, 23, 0.18);
  box-shadow: none;
  backdrop-filter: blur(13px) saturate(1.14);
  -webkit-backdrop-filter: blur(13px) saturate(1.14);
}

:root[data-theme="light"] .stats-card-content header {
  background: rgba(248, 250, 255, 0.2);
}

.stats-card-content header h2 {
  font-size: 0.78rem;
  letter-spacing: 0.045em;
}

.stats-ranking-body {
  margin-left: 140px;
  padding: 7px 12px 9px 0;
}

.stats-lead-image {
  inset: auto;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 116px;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(174, 199, 234, 0.2);
  border-radius: 8px;
  box-shadow: 8px 0 24px rgba(0, 4, 13, 0.32);
}

/* Poster <img> keeps its natural ratio so the border hugs it exactly (only the
   radius nibbles the corners). The fallback <span> has no intrinsic size, so it
   gets the standard poster ratio. */
span.stats-lead-image {
  aspect-ratio: 2 / 3;
}

.stats-lead-image.round,
.stats-lead-image.stats-source-logo {
  left: 24px;
  width: 90px;
  height: 90px;
}

.stats-ranking-body li {
  padding: 5px 6px;
  border-bottom-color: rgba(176, 198, 229, 0.09);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
}

.stats-ranking-body li > strong,
.stats-card-content header small {
  color: var(--cyan);
}

:root[data-theme="light"] .stats-ranking-card {
  border-color: rgba(80, 101, 140, 0.22);
  background: #f8faff;
  box-shadow: 0 14px 32px rgba(54, 67, 104, 0.13);
}

:root[data-theme="light"] .stats-ranking-card::after {
  background: linear-gradient(90deg, rgba(250, 252, 255, 0.95), rgba(248, 250, 255, 0.78) 56%, rgba(248, 250, 255, 0.6));
}

.stats-recent-shelf {
  padding: 19px;
  border-color: rgba(100, 136, 190, 0.3);
  border-radius: 13px;
  box-shadow: var(--aurora-shadow);
}

.stats-recent-header {
  border-bottom-color: rgba(160, 184, 220, 0.14);
  background: rgba(6, 12, 23, 0.18);
  backdrop-filter: blur(13px) saturate(1.14);
  -webkit-backdrop-filter: blur(13px) saturate(1.14);
}

:root[data-theme="light"] .stats-recent-header {
  background: rgba(248, 250, 255, 0.2);
}

.stats-recent-overlay {
  background: linear-gradient(90deg, rgba(5, 10, 19, 0.93), rgba(8, 15, 28, 0.7) 58%, rgba(8, 15, 28, 0.55));
}

.stats-recent-poster {
  border-color: rgba(140, 169, 211, 0.26);
  border-radius: 9px;
}

.stats-recent-tile:hover .stats-recent-poster,
.stats-recent-tile:focus-visible .stats-recent-poster {
  border-color: var(--cyan);
  box-shadow: 0 14px 30px rgba(12, 143, 165, 0.24);
}

dialog {
  border-color: rgba(122, 148, 193, 0.36);
  border-radius: 18px;
  background:
    radial-gradient(420px 220px at 10% 0%, rgba(132, 101, 255, 0.13), transparent 72%),
    rgba(11, 18, 32, 0.96);
  box-shadow: 0 32px 90px rgba(0, 3, 12, 0.56), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(1.1);
}

:root[data-theme="light"] dialog {
  background:
    radial-gradient(420px 220px at 10% 0%, rgba(132, 101, 255, 0.1), transparent 72%),
    rgba(250, 252, 255, 0.97);
}

dialog::backdrop {
  background: rgba(2, 6, 15, 0.72);
  backdrop-filter: blur(8px);
}

#toast {
  border: 1px solid rgba(132, 101, 255, 0.42);
  border-radius: 11px;
  background: rgba(15, 24, 42, 0.94);
  box-shadow: 0 16px 38px rgba(0, 5, 18, 0.36);
  backdrop-filter: blur(16px);
}

.addon:hover,
.connection-card:hover,
.activity-row:hover {
  border-color: rgba(59, 217, 231, 0.32);
  box-shadow: 0 15px 34px rgba(0, 5, 18, 0.18);
}

.addon-logo,
.connection-logo,
.activity-poster {
  border-color: rgba(143, 172, 214, 0.26);
  box-shadow: 0 8px 20px rgba(0, 5, 18, 0.18);
}

.footer-note {
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 226px minmax(0, 1fr); }
  .brand { font-size: 1.48rem; }
  .brand-logo { width: 46px; height: 46px; flex-basis: 46px; }
  .brand::after { left: 69px; }
  #content { padding-inline: 25px; }
  header { padding-inline: 25px; }
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { background-attachment: scroll; }
  .shell { display: block; }
  aside {
    position: relative;
    width: 100%;
    height: auto;
    padding: 17px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  aside::after { display: none; }
  .brand { margin: 0; padding: 0; }
  .brand::after { display: none; }
  nav button { min-height: 42px; }
  header { position: relative; min-height: 68px; padding: 12px 18px; }
  #content { padding: 24px 18px 46px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 78px minmax(0, 1fr); min-height: 124px; padding: 18px; }
  .avatar { width: 78px; height: 78px; }
  .tabs { margin-top: 22px; }
  .metric { min-height: 94px; }
  .stats-controls { width: 100%; }
  .stats-profile-filter { min-width: min(100%, 260px); }
}

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