:root {
  --bg: #f2f2f7;
  --bg-2: #ebeef5;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --card: #ffffff;
  --primary: #007aff;
  --separator: rgba(60, 60, 67, 0.18);
  --border: #e5e7ee;
  --text: #0b0b0f;
  --text-muted: #6b7280;
  --text-soft: #9aa3af;
  --accent: #007aff;
  --accent-strong: #0a68ff;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --success: #34c759;
  --warn: #ff9f0a;
  --danger: #ff3b30;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-lg: 18px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --progress-bg: #f4f6fb;
  --progress-card: #ffffff;
  --progress-border: #e6eaf2;
  --progress-chip: #eef2f7;
  --progress-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  --ios-card-bg: #f7f8fc;
  --ios-card-inner: #ffffff;
  --ios-divider: #e5e5ea;
  --ios-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  --tabbar-height: 72px;
  --header-height: 56px;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0f172a;
    --bg-2: #111827;
    --surface: #111c2f;
    --surface-2: #0f1a2b;
    --card: #111c2f;
    --primary: #60a5fa;
    --separator: rgba(148, 163, 184, 0.2);
    --border: rgba(148, 163, 184, 0.2);
    --text: #f8fafc;
    --text-muted: rgba(226, 232, 240, 0.68);
    --text-soft: rgba(148, 163, 184, 0.6);
    --accent-soft: rgba(96, 165, 250, 0.18);
    --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
    --ios-card-bg: #111c2f;
    --ios-card-inner: #0f172a;
    --ios-divider: rgba(148, 163, 184, 0.2);
    --ios-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --bg-2: #151922;
  --surface: #171c27;
  --surface-2: #111722;
  --card: #171c27;
  --primary: #60a5fa;
  --separator: rgba(148, 163, 184, 0.2);
  --border: rgba(148, 163, 184, 0.2);
  --text: #f5f7fb;
  --text-muted: rgba(226, 232, 240, 0.68);
  --text-soft: rgba(148, 163, 184, 0.6);
  --accent-soft: rgba(96, 165, 250, 0.18);
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  --progress-bg: #0f1a2b;
  --progress-card: #111c2f;
  --progress-border: rgba(148, 163, 184, 0.2);
  --progress-chip: rgba(148, 163, 184, 0.16);
  --progress-shadow: 0 18px 40px rgba(2, 6, 23, 0.4);
  --ios-card-bg: #111c2f;
  --ios-card-inner: #0f172a;
  --ios-divider: rgba(148, 163, 184, 0.2);
  --ios-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  background: var(--bg);
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100dvh;
  overflow: hidden;
  min-width: 0;
}

.sidebar,
.rail,
.mobile-brand {
  display: none;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-display);
}

.brand-text {
  display: none;
}

.brand-mark {
  width: 220px;
  max-width: 100%;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 0;
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-logo.dark-logo {
  display: none;
}

:root[data-theme="dark"] .brand-logo.dark-logo {
  display: block;
}

:root[data-theme="dark"] .brand-logo.light-logo {
  display: none;
}

:root[data-theme="light"] .brand-logo.dark-logo {
  display: none;
}

:root[data-theme="light"] .brand-logo.light-logo {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .brand-logo.dark-logo {
    display: block;
  }

  :root[data-theme="auto"] .brand-logo.light-logo {
    display: none;
  }
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
}

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

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.2);
}

.nav-label {
  font-weight: 600;
}

.sidebar-actions {
  display: grid;
  gap: 12px;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.rail {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 24px;
  height: fit-content;
  padding: 20px;
}

.rail-card {
  display: grid;
  gap: 12px;
}

.rail-stat {
  font-size: 22px;
  font-weight: 700;
}

.rail-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.rail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.rail-grid {
  display: grid;
  gap: 12px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-body {
  display: grid;
  gap: 12px;
}

.tab-panel {
  display: none;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  gap: 16px;
}

.tab-panel.active {
  display: flex;
  animation: fadeUp 0.3s ease both;
}

.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.screen-top {
  flex: 0 0 auto;
  padding: 8px 16px 0;
}

.progress-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.screen-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 16px calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px) + 12px);
  -webkit-overflow-scrolling: touch;
}

.ios-screen .screen-scroll {
  padding: 12px 16px calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px) + 12px);
  background: var(--bg);
}

.panel {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  opacity: 1;
  transform: none;
}

.panel:active {
  filter: brightness(0.98);
}

body.loaded .panel {
  animation: fadeUp 0.45s ease both;
  animation-delay: var(--delay, 0s);
}

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

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

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

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.ios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.14), rgba(0, 122, 255, 0.02));
  border-bottom: 1px solid var(--separator);
  position: relative;
  z-index: 10;
}

.ios-header-left,
.ios-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 40px;
  height: var(--header-height);
}

.ios-header-right {
  justify-content: flex-end;
}

.ios-header-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}

.ios-header-center-logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + (var(--header-height) / 2));
  transform: translate(-50%, -50%);
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 0;
}

.profile-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.ios-title {
  display: none;
}

.ios-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--ios-divider);
  background: var(--ios-card-inner);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.ios-icon-btn svg {
  width: 20px;
  height: 20px;
}

.ios-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 14px;
  background: #e9ecf2;
  border: 1px solid var(--ios-divider);
  overflow: hidden;
}

.ios-seg button {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-display);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ios-seg button.active {
  background: var(--ios-card-inner);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.segment-panel {
  display: none;
  gap: 12px;
  animation: segmentFade 0.25s ease both;
}

.segment-panel.active {
  display: grid;
}

.ios-screen {
  background: var(--bg);
  --surface: var(--ios-card-inner);
  --surface-2: #f4f5fa;
  --border: var(--ios-divider);
}

.ios-card {
  border: 1px solid var(--ios-divider);
  background: var(--ios-card-bg);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--ios-shadow);
  display: grid;
  gap: 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row-separator {
  height: 1px;
  background: var(--separator);
  margin: 10px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--separator);
  background: var(--surface-2);
}

.stat-tile {
  border: 1px solid var(--separator);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.badge-success,
.badge-warn,
.badge-danger {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}

.badge-success {
  background: rgba(52, 199, 89, 0.16);
  color: var(--success);
}

.badge-warn {
  background: rgba(255, 159, 10, 0.16);
  color: var(--warn);
}

.badge-danger {
  background: rgba(255, 59, 48, 0.16);
  color: var(--danger);
}

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

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.card-header.warn h3 {
  color: var(--danger);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 59, 48, 0.12);
  color: var(--danger);
}

.summary-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.summary-tile {
  border: 1px solid var(--ios-divider);
  background: var(--ios-card-inner);
  border-radius: 16px;
  padding: 16px 14px;
  display: grid;
  gap: 6px;
  min-height: 108px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.summary-tile .tile-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.summary-tile .tile-label {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-tile .tile-meta {
  font-size: 12px;
  font-weight: 600;
}

.summary-tile.good .tile-meta {
  color: var(--success);
}

.summary-tile.warn .tile-meta {
  color: var(--warn);
}

.summary-tile.bad .tile-meta {
  color: var(--danger);
}

.ios-list {
  display: grid;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ios-divider);
  background: var(--ios-card-inner);
}

.ios-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ios-divider);
  background: transparent;
  font-size: 14px;
}

.ios-list-row:last-child {
  border-bottom: none;
}


.ios-list-row .row-title {
  font-weight: 600;
}

.ios-list-row .row-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.ios-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.16);
  color: var(--success);
}

.ios-tag.warn {
  background: rgba(255, 149, 0, 0.12);
  color: var(--warn);
}

.balance-list {
  display: grid;
  gap: 10px;
}

.balance-row {
  display: grid;
  gap: 6px;
}

.balance-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.balance-row-title {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-row-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.balance-bar {
  width: 100%;
  height: 8px;
  background: #e9ecf2;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.balance-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--success);
}

.balance-bar span.good {
  background: var(--success);
}

.balance-bar span.warn {
  background: var(--warn);
}

.balance-bar span.bad {
  background: var(--danger);
}

.balance-bar span.high {
  background: #8b5cf6;
}

.balance-target {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
}

.balance-ratios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ios-divider);
  margin-bottom: 8px;
}

.balance-ratio {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.balance-ratio strong {
  font-size: 14px;
  color: var(--text);
}

.balance-status {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
}

.balance-status.good {
  background: rgba(52, 199, 89, 0.16);
  border-color: rgba(52, 199, 89, 0.3);
  color: var(--success);
}

.balance-status.warn {
  background: rgba(255, 159, 10, 0.18);
  border-color: rgba(255, 159, 10, 0.3);
  color: var(--warn);
}

.balance-status.bad {
  background: rgba(255, 59, 48, 0.16);
  border-color: rgba(255, 59, 48, 0.3);
  color: var(--danger);
}
.progress-panel {
  background: var(--progress-bg);
  border: 1px solid var(--progress-border);
  border-radius: 24px;
  box-shadow: var(--progress-shadow);
  padding: 18px;
  font-family: var(--font-display);
}

.progress-panel .panel-header h2,
.progress-panel .panel-header h3 {
  font-size: 19px;
  font-weight: 700;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.home-landing,
.home-profile {
  display: grid;
  gap: 16px;
}

.landing-hero {
  display: grid;
  gap: 12px;
  align-items: start;
}

.landing-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 6px 0 8px;
}

.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.landing-preview {
  width: fit-content;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.landing-features .ios-list-row {
  align-items: flex-start;
}

.landing-features .row-title {
  font-size: 14px;
}

.landing-steps {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.landing-trust-line {
  margin-top: 8px;
}

.landing-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.landing-card-header {
  font-weight: 600;
  font-size: 14px;
}

.landing-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.landing-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.landing-tile h3 {
  margin-bottom: 6px;
}

.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.activity-title {
  font-weight: 600;
}

.activity-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.activity-metric {
  font-size: 12px;
  color: var(--text-soft);
}

.hero-left {
  display: grid;
  gap: 6px;
}

.hero-right {
  display: grid;
  gap: 12px;
  align-content: start;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-soft);
}

h1 {
  margin: 0;
  font-size: 28px;
}

.subtle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

#accountStatus {
  font-size: 12px;
  color: var(--text-muted);
}

.note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-note {
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
}

.streak-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.focus-text {
  font-size: 14px;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.stat-title {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.group-list,
.feed-list,
.leaderboard {
  display: grid;
  gap: 12px;
}

.group-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 12px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s ease;
}

.group-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.3);
}

.group-card.active {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.group-title {
  font-weight: 600;
}

.group-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.btn {
  border: 1px solid var(--separator);
  background: var(--surface-2);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.2s ease, background 0.2s ease;
  font-family: var(--font-display);
}

.btn:disabled,
.inputText:disabled,
.textarea:disabled,
select.inputText:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn:active {
  transform: scale(0.98);
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover {
  filter: brightness(0.98);
}

.icon-btn:active {
  transform: scale(0.96);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.seg {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: var(--surface-2);
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-display);
}

.seg button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ios-card .seg {
  background: #e9ecf2;
  border: 1px solid var(--ios-divider);
}

.ios-card .seg button {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
}

.ios-card .seg button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.member-role {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.log-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.log-panel {
  display: grid;
  gap: 12px;
}

.log-panel[hidden] {
  display: none;
}

.library {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.progress-summary .note {
  grid-column: 1 / -1;
}

.progress-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.coach-report {
  display: grid;
  gap: 16px;
  margin-top: 6px;
  padding-right: 2px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

#coachReportContent {
  display: grid;
  gap: 14px;
}

.coach-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 6px 2px 12px;
  margin: 0 0 6px;
  overflow-x: auto;
  background: linear-gradient(180deg, var(--progress-bg) 70%, transparent);
}

.coach-nav::-webkit-scrollbar {
  height: 0;
}

.coach-tab {
  border: 1px solid var(--progress-border);
  background: var(--progress-chip);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-display);
}

.coach-tab:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
}

.coach-tab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
}

.coach-section {
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  scroll-margin-top: 56px;
}

.coach-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coach-section-title {
  font-size: 15px;
  font-weight: 700;
}

.coach-section-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.coach-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.coach-card {
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.coach-kpi-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.coach-kpi-value {
  font-size: 18px;
  font-weight: 700;
}

.coach-kpi-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.coach-list {
  display: grid;
  gap: 8px;
}

.coach-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
  border-radius: 18px;
  padding: 12px 14px;
}

.coach-row-title {
  font-weight: 600;
  font-size: 13px;
}

.coach-row-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.coach-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.coach-score.good {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.coach-score.warn {
  color: var(--warn);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.coach-score.bad {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.coach-reco {
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--progress-card);
  border: 1px solid var(--progress-border);
  display: grid;
  gap: 6px;
}

.coach-reco-title {
  font-weight: 700;
  font-size: 13px;
}

.coach-reco-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.coach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coach-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--progress-border);
  background: var(--progress-chip);
  color: var(--text);
}

.summary-card {
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.summary-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value {
  font-size: 20px;
  font-weight: 700;
}

.summary-value span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.progress-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
}

.progress-body-list {
  display: grid;
  gap: 10px;
}

.body-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.body-stat-title {
  font-weight: 600;
  font-size: 13px;
}

.body-stat-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--progress-chip);
  border: 1px solid var(--progress-border);
  color: var(--text);
}

.progress-insights {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

#coach-insights {
  scroll-margin-top: 56px;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight-card {
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.insight-card.warn {
  border-color: rgba(239, 68, 68, 0.2);
  background: var(--progress-card);
}

.insight-card.nudge {
  border-color: rgba(245, 158, 11, 0.2);
  background: var(--progress-card);
}

.insight-card.success {
  border-color: rgba(34, 197, 94, 0.2);
  background: var(--progress-card);
}

.insight-card.info {
  border-color: rgba(59, 130, 246, 0.2);
  background: var(--progress-card);
}

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

.insight-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.insight-title {
  font-weight: 600;
  font-size: 13px;
}

.insight-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.insight-body {
  font-size: 13px;
}

.insight-action {
  font-size: 12px;
  color: var(--text-muted);
}

.live-setup {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.live-setup .seg {
  width: 100%;
  justify-content: flex-start;
}

.live-block {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-group {
  display: grid;
  gap: 10px;
}

.history-group-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.history-group-list {
  display: grid;
  gap: 10px;
}

.history-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
}

.history-item summary {
  list-style: none;
  cursor: pointer;
  display: block;
  gap: 12px;
}

.history-item summary::-webkit-details-marker {
  display: none;
}

.history-toggle {
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
}

.history-toggle-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}

.history-toggle-summary::-webkit-details-marker {
  display: none;
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.history-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.history-title {
  font-weight: 600;
  font-size: 14px;
}

.history-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.history-body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.history-ex {
  display: grid;
  gap: 4px;
}

.history-ex-title {
  font-weight: 600;
  font-size: 13px;
}

.history-ex-sets {
  font-size: 12px;
  color: var(--text-muted);
}

.history-ex-metrics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.body-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.body-chip-row.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.chip-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-btn.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.exercise-picker {
  width: 100%;
}

.library-list {
  display: grid;
  gap: 8px;
}

.member-suggestions {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.member-suggestions:empty {
  display: none;
}

.library-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.library-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.save-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.library-title {
  font-weight: 600;
  font-size: 13px;
}

.library-tags,
.exercise-tags {
  font-size: 11px;
  color: var(--text-muted);
}

.exercise-tags {
  margin-top: -4px;
}

.exercise-list {
  display: grid;
  gap: 12px;
}

.exercise-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.9));
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.exercise-body {
  display: grid;
  gap: 8px;
}

.exercise-card.collapsed .exercise-body {
  display: none;
}

.exercise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exercise-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.exercise-toggle {
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.exercise-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.set-list {
  display: grid;
  gap: 8px;
}

.set-row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.set-row.slide-in {
  animation: slideIn 0.3s ease both;
}

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

.set-label {
  font-size: 12px;
  color: var(--text-soft);
}

.inputText,
.textarea,
select.inputText {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--separator);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
}

.progress-panel .inputText,
.progress-panel .textarea,
.progress-panel select.inputText {
  border-radius: 16px;
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
  font-size: 13px;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.inputText:focus,
.textarea:focus,
select.inputText:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
}

.add-exercise {
  margin-top: 12px;
}

.inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sticky-bar {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.unit-label {
  font-size: 13px;
  color: var(--text-soft);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.check-row.compact {
  font-size: 12px;
  gap: 6px;
}

.chart-card {
  border-radius: 20px;
  border: 1px solid var(--progress-border);
  background: var(--progress-card);
  padding: 12px;
}

.ios-screen .chart-card {
  border-radius: 16px;
  border: 1px solid var(--ios-divider);
  background: var(--ios-card-inner);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.chart-card--interactive {
  position: relative;
  overflow: hidden;
}

.chart-tooltip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(6px);
  transform: translate3d(0, 0, 0);
  white-space: nowrap;
  z-index: 2;
}

.chart-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

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

.insight {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text);
}

.detail {
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-muted);
}

.ios-screen .detail {
  border-radius: 16px;
  border: 1px solid var(--ios-divider);
  background: var(--ios-card-inner);
}

.progress-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.seg.range button {
  padding: 5px 10px;
  font-size: 11px;
}

.progress-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.leaderboard-row.me {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.leaderboard-name {
  font-weight: 600;
}

.leaderboard-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.feed-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.feed-title {
  font-weight: 600;
}

.feed-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.feed-actions {
  display: flex;
  gap: 8px;
}

.feed-comments {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  justify-content: space-around;
  align-items: center;
  min-height: var(--tabbar-height);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid var(--separator);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
}

.bottom-nav .nav-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  white-space: nowrap;
  color: var(--text-muted);
  border: none;
  background: transparent;
}

.bottom-nav .nav-item.active {
  color: var(--primary);
  background: transparent;
  border-color: transparent;
}

.bottom-nav .nav-item:hover {
  background: transparent;
}

.bottom-nav .tab-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.bottom-nav .tab-icon svg {
  width: 22px;
  height: 22px;
}

:root[data-theme="dark"] .bottom-nav {
  background: rgba(17, 24, 39, 0.85);
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000;
}

.modal {
  width: min(540px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.sheet-backdrop {
  align-items: flex-end;
  padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
}

.modal.sheet {
  width: min(720px, 100%);
  border-radius: 24px 24px 0 0;
  margin: 0 auto;
  max-height: 85vh;
}

.sheet-grip {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  margin: 0 auto 6px;
}

.detail-card {
  border-radius: 16px;
  border: 1px solid var(--ios-divider);
  background: var(--ios-card-inner);
  padding: 14px;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form label {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.exercise-help-modal {
  width: min(720px, 100%);
}

.help-content {
  display: grid;
  gap: 12px;
}

.help-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.help-images {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.help-images img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.help-source {
  font-size: 12px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.option-grid {
  display: grid;
  gap: 8px;
}

.option-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.option-btn.selected {
  border-color: rgba(37, 99, 235, 0.5);
  background: var(--accent-soft);
}

.toast {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 1200px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .progress-panel {
    height: auto;
    overflow: visible;
  }

  .coach-report {
    height: auto;
    max-height: none;
  }

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

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .panel {
    padding: 14px;
  }

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

  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .profile-logo {
    height: 24px;
  }
}
