@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/DMSans-400.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/DMSans-500.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/DMSans-600.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/DMSans-700.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 800;
  src: url("fonts/DMSans-800.ttf") format("truetype");
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/BebasNeue-400.ttf") format("truetype");
}

:root {
  color-scheme: light;
  font-family: "DM Sans", Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #151515;
  background: transparent;
  --accent: #fc4c02;
  --ink: #151515;
  --muted: #777777;
  --line: #e8e8e8;
  --soft: #f7f7f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --scrollbar: rgba(21, 21, 21, 0.24);
  --green: #2e8b57;
  --popup-width: 420px;
  --popup-radius: 24px;
  --brand-radius: 12px;
  --button-radius: var(--brand-radius);
  --button-radius-sm: 8px;
  --button-font-size: 14px;
  --button-font-weight: 700;
  --button-transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
  --button-primary-bg: var(--accent);
  --button-primary-fg: #ffffff;
  --button-primary-hover-bg: color-mix(in srgb, var(--accent) 88%, #000000 12%);
  --button-secondary-bg: var(--soft);
  --button-secondary-fg: var(--ink);
  --button-secondary-hover-bg: color-mix(in srgb, var(--soft) 82%, var(--accent) 18%);
  --button-ghost-fg: var(--muted);
  --button-ghost-hover-bg: color-mix(in srgb, var(--accent) 10%, transparent);
  --button-ghost-hover-fg: var(--accent);
  --button-danger-bg: #d83b2d;
  --button-danger-hover-bg: color-mix(in srgb, #d83b2d 88%, #000000 12%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f1ed;
  --muted: #aaa39c;
  --line: #34302d;
  --soft: #24211f;
  --surface: #151515;
  --surface-raised: #1d1b19;
  --scrollbar: rgba(255, 255, 255, 0.28);
  --green: #3aa96b;
}

html[data-theme="light"],
html[data-theme="system"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --ink: #f4f1ed;
    --muted: #aaa39c;
    --line: #34302d;
    --soft: #24211f;
    --surface: #151515;
    --surface-raised: #1d1b19;
    --scrollbar: rgba(255, 255, 255, 0.28);
    --green: #3aa96b;
  }
}

* {
  box-sizing: border-box;
}

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

.header-pill,
.range-button,
.settings-action-button,
.danger-action,
.secondary-action,
.show-all-button,
.share-format-button,
.data-format-button,
.journey-day-button,
.journey-share-button,
.country-recommendation,
.country-recommendation-action,
.auth-password-toggle,
.text-button,
.distance-value {
  transition: var(--button-transition);
}

button:active:not(:disabled),
.distance-value:active {
  transform: translateY(1px);
}

html {
  width: var(--popup-width);
  min-width: var(--popup-width);
  margin: 0;
  overflow: hidden;
  background: transparent;
}

body {
  width: var(--popup-width);
  min-width: var(--popup-width);
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.activity-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: var(--popup-width);
  min-width: var(--popup-width);
  padding: 24px;
  border: 0;
  border-radius: var(--popup-radius);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
  clip-path: inset(0 round var(--popup-radius));
  isolation: isolate;
}

html[data-surface="panel"] {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

html[data-surface="panel"] body {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

html[data-surface="panel"] .activity-card {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  overscroll-behavior: contain;
}

html[data-surface="panel"] .app-header {
  flex: 0 0 auto;
}

html[data-surface="panel"] .view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
  margin-right: -12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}

html[data-surface="panel"] .view[hidden] {
  display: none;
}

html[data-surface="panel"] .view::-webkit-scrollbar {
  width: 8px;
}

html[data-surface="panel"] .view::-webkit-scrollbar-track {
  background: transparent;
}

html[data-surface="panel"] .view::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--scrollbar);
  background-clip: padding-box;
}

.range-menu {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: 0 0 auto;
  width: 100%;
  margin: -1px 0 0;
  padding: 1px 0 12px;
  background: var(--surface);
}

.range-menu-track {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: calc(var(--brand-radius) + 4px);
  background: var(--soft);
}

.range-button {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 8px 4px;
  border: 0;
  border-radius: var(--button-radius);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.range-label {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-surface="panel"] .range-menu {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: 0 0 auto;
  margin: -1px 0 0;
  padding: 1px 0 12px;
  background: var(--surface);
}

.app-header,
.brand,
.distance-value,
.website-row,
.achievement-row,
.metric-row,
.field,
.toggle {
  display: flex;
  align-items: center;
}

.app-header {
  position: relative;
  z-index: 30;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

.header-menu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.field-nationality-group {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.field-nationality-group .field-nationality {
  border-bottom: 0;
  min-height: 48px;
}

.field-nationality-group .settings-country-recommendation {
  width: 100%;
}

.field-nationality {
  align-items: center;
}

.field-nationality > span:first-child {
  flex: 1 1 auto;
  padding-top: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.country-recommendation {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px;
  border: 0;
  border-radius: var(--button-radius);
  color: var(--ink);
  background: var(--soft);
  cursor: pointer;
  text-align: left;
}

.country-recommendation:hover,
.country-recommendation:focus-visible {
  outline: 0;
  background: var(--button-secondary-hover-bg);
}

.country-recommendation.is-selected {
  cursor: default;
}

.country-recommendation-flag {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}

.country-recommendation-flag .fi {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.country-recommendation-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.country-recommendation-copy strong,
.country-recommendation-copy small {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.country-recommendation-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.country-recommendation-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.country-recommendation-action {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--button-radius-sm);
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
  font-size: 11px;
  font-weight: var(--button-font-weight);
}

.country-recommendation.is-selected .country-recommendation-action {
  color: var(--muted);
  background: var(--surface);
}

.country-recommendation-action:hover,
.country-recommendation-action:focus-visible {
  background: var(--button-primary-hover-bg);
  outline: 0;
}

.header-pill {
  display: inline-flex;
  height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--button-radius);
  color: var(--ink);
  background: var(--soft);
  cursor: pointer;
  font: inherit;
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
}

.header-pill:hover,
.header-pill:focus-visible {
  outline: 0;
  background: var(--button-secondary-hover-bg);
}

.header-pill-accent {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 0 6px;
  color: #ffffff;
  background: var(--accent);
  font: 400 22px/1 "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: visible;
}

.header-pill.menu-button {
  width: 40px;
  padding: 0;
}

.header-pill-accent .profile-button-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  align-self: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.header-pill-accent.profile-button:not(.is-signed-in) {
  color: var(--ink);
  background: var(--soft);
  font: 400 22px/1 "Bebas Neue", "Arial Narrow", Arial, sans-serif;
}

.header-pill-accent.profile-button.is-signed-in:hover,
.header-pill-accent.profile-button.is-signed-in:focus-visible {
  background: var(--button-primary-hover-bg);
  outline: 0;
}

.header-pill-accent .profile-button-avatar.profile-button-avatar--icon {
  background: color-mix(in srgb, var(--muted) 16%, var(--surface));
  color: var(--muted);
}

.header-pill-accent .profile-button-avatar.profile-button-avatar--icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-pill-accent .profile-button.is-signed-in .profile-button-avatar {
  background: rgba(21, 21, 21, 0.38);
  color: #ffffff;
}

.header-level-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: auto;
  cursor: default;
  outline: 0;
  line-height: 1;
}

.header-level-text::before,
.header-level-text::after {
  position: absolute;
  right: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.header-level-text::before {
  content: "";
  top: calc(100% + 3px);
  width: 10px;
  height: 10px;
  margin-right: 15px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
  transform: translateY(-2px) rotate(45deg);
}

.header-level-text::after {
  content: attr(data-xp-tooltip);
  top: calc(100% + 8px);
  width: 188px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  font: 700 12px/1.45 "DM Sans", Inter, Arial, system-ui, sans-serif;
  text-align: left;
  white-space: pre-line;
  transform: translateY(-2px);
}

.header-level-text:hover::before,
.header-level-text:hover::after,
.header-level-text:focus-visible::before,
.header-level-text:focus-visible::after {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
}

.header-level-text:hover::after,
.header-level-text:focus-visible::after {
  transform: translateY(0);
}

html[data-theme="dark"] .header-pill-accent.profile-button.is-signed-in {
  color: #ffffff;
  background: var(--accent);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .header-pill-accent.profile-button.is-signed-in {
    color: #ffffff;
    background: var(--accent);
  }
}

.brand {
  min-width: 0;
  flex: 1 1 auto;
  gap: 10px;
}

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: var(--brand-radius);
}

.brand-mark {
  display: none;
}

.brand-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-button {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.menu-button.active {
  color: #ffffff;
  background: var(--accent);
}

.menu-button.active:hover,
.menu-button.active:focus-visible {
  background: var(--button-primary-hover-bg);
  outline: 0;
}

.menu-icon,
.menu-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.menu-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.menu-icon .menu-icon-home,
.menu-button.active .menu-icon-gear {
  display: none;
}

.menu-button.active .menu-icon-home {
  display: block;
}

.share-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.share-sheet[hidden] {
  display: none;
}

.share-sheet strong,
.share-sheet span {
  display: block;
}

.share-sheet strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.share-sheet span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.share-options {
  display: flex;
  gap: 6px;
}

.share-format-button {
  min-width: 48px;
  min-height: 32px;
  border: 0;
  border-radius: var(--button-radius-sm);
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: var(--button-font-weight);
  line-height: 1;
}

.share-format-button:hover,
.share-format-button:focus-visible {
  background: var(--button-primary-hover-bg);
  outline: 0;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.view[hidden] {
  display: none;
}

.app-footer {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 10px 0 2px;
  color: var(--muted);
  text-align: center;
}

.app-footer strong::after {
  content: "·";
  margin-left: 6px;
  color: var(--muted);
  font-weight: 600;
}

.app-footer strong,
.app-footer span {
  display: block;
}

.app-footer strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.app-footer span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.range-button:hover,
.range-button:focus-visible {
  background: color-mix(in srgb, var(--surface) 72%, var(--soft) 28%);
  outline: 0;
}

.range-button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 10%, transparent);
}

.range-button.active:hover,
.range-button.active:focus-visible {
  background: var(--surface);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 14%, transparent);
}

html[data-theme="dark"] .range-button.active {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.range-button.active .range-icon {
  color: var(--accent);
}

.range-icon {
  display: grid;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: transparent;
}

.range-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.distance-summary[hidden],
.chart-wrap[hidden] {
  display: none !important;
}

.distance-summary {
  display: grid;
  gap: 4px;
}

.distance-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.distance-summary-row .distance-value {
  flex: 1 1 auto;
  min-width: 0;
}

.nationality-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-top: 6px;
}

.nationality-badge-flag {
  display: grid;
  width: 26px;
  height: 26px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nationality-badge-flag .fi {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-size: cover;
}

.summary-label,
.info-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.summary-label {
  font-size: 14px;
}

.distance-value {
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  width: fit-content;
  margin: -6px 0 -8px;
  padding: 6px 12px 8px;
  border-radius: var(--button-radius);
  cursor: pointer;
  outline: none;
  overflow: visible;
}

.distance-value:hover,
.distance-value:focus-visible {
  background: var(--button-secondary-hover-bg);
  outline: 0;
}

.distance-value:active {
  opacity: 0.92;
}

#distanceNumber {
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 88px;
  font-weight: 400;
  line-height: 0.86;
}

.distance-unit {
  padding-bottom: 9px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

html[data-theme="dark"] #distanceNumber,
html[data-theme="dark"] .distance-unit {
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] #distanceNumber,
  html[data-theme="system"] .distance-unit {
    color: var(--ink);
  }
}

.personal-best {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  color: #3c3c3c;
  font-size: 17px;
  font-weight: 500;
}

.personal-best-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
}

.personal-best-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-wrap {
  position: relative;
  width: calc(100% + 48px);
  min-width: 0;
  margin-inline: -24px;
  overflow: visible;
}

.activity-chart {
  display: block;
  width: 100%;
  height: 132px;
  overflow: visible;
}

.chart-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.chart-area {
  fill: url("#chartFill");
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 430;
  animation: draw-chart 900ms ease-out both;
}

.chart-point {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
}

.chart-hover-line {
  stroke: rgba(21, 21, 21, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.chart-hover-point {
  fill: var(--accent);
  stroke: #ffffff;
  stroke-width: 3;
  pointer-events: none;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 92px;
  max-width: 150px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #ffffff;
  background: #151515;
  font: 700 11px/1.15 "DM Sans", Inter, Arial, system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.chart-tooltip strong {
  display: block;
  color: var(--accent);
  font: 400 18px/1 "Bebas Neue", "Arial Narrow", Arial, sans-serif;
}

.chart-tooltip span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
}

.chart-tooltip .chart-site {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-axis {
  fill: var(--muted);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-anchor: middle;
}

.chart-axis text:first-child {
  text-anchor: start;
}

.chart-axis text:last-child {
  text-anchor: end;
}

.metrics-card {
  gap: 0;
  transition: background-color 160ms ease;
}

.metrics-section {
  gap: 0;
}

.metrics-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.metrics-toggle-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.metrics-toggle .info-label {
  pointer-events: none;
}

.metrics-collapsed-hint {
  display: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.metrics-card.is-collapsed .metrics-collapsed-hint {
  display: block;
}

.metrics-toggle-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transition: transform 180ms ease, color 140ms ease, background-color 140ms ease;
}

.metrics-toggle:hover .metrics-toggle-icon,
.metrics-toggle:focus-visible .metrics-toggle-icon {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.metrics-toggle-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.metrics-card.is-collapsed .metrics-toggle-icon svg {
  transform: rotate(-90deg);
}

.metrics-collapsed-preview {
  display: none;
  gap: 10px;
  margin-top: 14px;
}

.metrics-card.is-collapsed .metrics-collapsed-preview {
  display: grid;
}

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

.metrics-preview-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface);
}

.metrics-preview-chip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent);
  stroke-width: 1.9;
}

.metrics-preview-chip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.metrics-preview-chip-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-preview-chip-value {
  overflow: hidden;
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-panel {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.metrics-card.is-collapsed .metrics-panel {
  display: none;
}

.metrics-card .metric-row:first-child {
  margin-top: 0;
}

.metric-row {
  min-height: 50px;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row:hover {
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--accent) 18%);
}

.info-card:hover,
.metrics-card:hover {
  background: color-mix(in srgb, var(--soft) 90%, var(--accent) 10%);
}

.metric-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.metric-label svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent);
  stroke-width: 1.9;
}

.metric-value {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.info-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
  transition: background 160ms ease;
}

.info-card[hidden] {
  display: none;
}

.info-section {
  display: grid;
  gap: 12px;
}

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

.info-section-header .info-label {
  margin: 0;
}

.website-row,
.achievement-row {
  gap: 13px;
}

.website-row {
  justify-content: space-between;
}

.website-row > div,
.achievement-row > div {
  min-width: 0;
}

.website-copy {
  flex: 1 1 auto;
}

.website-icon,
.webpage-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-raised);
}

.journey-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
}

.journey-card[hidden] {
  display: none;
}

.journey-toolbar {
  display: grid;
  gap: 12px;
}

.journey-day-nav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-raised);
}

.journey-day-label {
  display: grid;
  min-width: 0;
  place-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.journey-day-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.journey-day-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.journey-day-button:hover,
.journey-day-button:focus-visible {
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
  outline: 0;
}

.journey-day-button:disabled {
  color: var(--muted);
  background: var(--surface);
  cursor: default;
  opacity: 0.55;
}

.journey-day-panel {
  display: grid;
  gap: 10px;
}

.journey-day-hero {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(252, 76, 2, 0.14), transparent 58%),
    var(--surface-raised);
}

.journey-day-hero-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.journey-day-hero-value {
  color: var(--ink);
  font: 400 48px/0.95 "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  word-break: break-word;
}

.journey-day-hero-caption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

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

.journey-day-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-raised);
}

.journey-day-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.journey-day-metric strong {
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  word-break: break-word;
}

.journey-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.journey-stops-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.journey-route-track {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-raised);
}

.journey-route-track-inner {
  position: relative;
  min-width: 0;
}

.journey-route-line {
  position: absolute;
  top: 38px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
}

.journey-route-stops {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}

.journey-route-stops::-webkit-scrollbar {
  height: 6px;
}

.journey-route-stops::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--scrollbar);
}

.journey-route-stop {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  justify-items: center;
  width: 84px;
  min-width: 84px;
}

.journey-route-hour {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.journey-route-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--surface-raised);
  border-radius: 999px;
  background: var(--soft);
}

.journey-route-favicon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-route-marker span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.journey-route-name {
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-route-connector {
  flex: 0 0 28px;
  width: 28px;
  height: 2px;
  margin-top: 38px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.45;
}

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

.journey-stop-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-raised);
}

.journey-stop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journey-stop-time {
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.journey-stop-distance {
  color: var(--accent);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.journey-stop-body {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.journey-stop-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.journey-stop-favicon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-stop-icon span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #777777;
}

.journey-stop-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.journey-stop-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.journey-stop-place {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-stop-detail {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.journey-empty-state {
  margin: 0;
  padding: 18px 12px;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  font-size: 13px;
  font-weight: 600;
}

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

.journey-share-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--button-radius);
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
  cursor: pointer;
  font: var(--button-font-weight) var(--button-font-size)/1 "DM Sans", Inter, Arial, system-ui, sans-serif;
}

.journey-share-button:hover,
.journey-share-button:focus-visible,
.journey-share-button.active {
  background: var(--button-primary-hover-bg);
  outline: 0;
}

.journey-share-icon,
.journey-share-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.journey-share-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.website-favicon,
.webpage-favicon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.website-favicon[hidden],
.webpage-favicon[hidden] {
  display: none;
}

.website-fallback,
.webpage-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #777777;
  background: #f0f0f0;
}

.website-fallback svg,
.webpage-fallback svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.website-fallback[hidden],
.webpage-fallback[hidden] {
  display: none;
}

.website-row strong,
.achievement-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-row strong {
  font-size: 20px;
  line-height: 1.1;
}

.website-row span,
.achievement-row span {
  display: block;
  color: var(--muted);
}

.website-row span {
  margin-top: 3px;
  font-size: 16px;
}

.website-row .website-distance {
  font-family: "DM Sans", Inter, Arial, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.website-stats {
  flex: 0 0 auto;
  text-align: right;
}

.website-stats strong {
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.website-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.show-all-button {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 0 10px;
  border: 0;
  border-radius: var(--button-radius-sm);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font: var(--button-font-weight) 12px/1 "DM Sans", Inter, Arial, system-ui, sans-serif;
  letter-spacing: 0;
}

.show-all-button:hover,
.show-all-button:focus-visible {
  color: var(--button-primary-hover-bg);
  background: var(--button-ghost-hover-bg);
  outline: 0;
}

.show-all-button:active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.show-all-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.show-all-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-divider {
  height: 1px;
  background: var(--line);
}

.webpages-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
  overflow: hidden;
}

.webpages-card[hidden] {
  display: none;
}

.webpages-summary {
  display: inline-grid;
  min-width: 22px;
  min-height: 20px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-family: "DM Sans", Inter, Arial, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.places-header {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.places-heading {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.places-sort-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.places-sort-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.places-sort {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
      no-repeat right 12px center / 16px 16px,
    var(--surface-raised);
  padding: 0 36px 0 12px;
  font: 700 13px/1.2 "DM Sans", Arial, system-ui, sans-serif;
  appearance: none;
  cursor: pointer;
}

html[data-theme="dark"] .places-sort {
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa39c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
      no-repeat right 12px center / 16px 16px,
    var(--surface-raised);
}

.places-sort:focus-visible {
  outline: 2px solid rgba(252, 76, 2, 0.24);
  outline-offset: 1px;
}

.patch-card .webpages-summary {
  display: inline;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}

.webpages-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.webpage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 0;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.webpage-row:last-child {
  border-bottom: 0;
}

.webpage-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
  min-width: 0;
  max-width: none;
}

.webpage-text {
  min-width: 0;
  overflow: hidden;
}

.webpage-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webpage-domain {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webpage-stats {
  justify-self: end;
  min-width: 0;
  max-width: 124px;
  overflow: hidden;
  text-align: right;
}

.webpage-distance {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .webpage-name,
html[data-theme="dark"] .webpage-distance {
  color: var(--ink);
}

.webpage-time {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
}

.global-card[hidden] {
  display: none;
}

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

.global-standing {
  display: grid;
  gap: 10px;
}

.global-standing-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-raised);
}

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

.global-standing-rank {
  min-width: 58px;
  color: var(--ink);
  font: 400 38px/0.95 "Bebas Neue", "Arial Narrow", Arial, sans-serif;
}

.global-standing-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: #ffffff;
  background: var(--accent);
}

.global-standing-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.global-standing-flag {
  border-radius: 999px;
}

.global-standing-flag .fi {
  width: 100%;
  height: 100%;
  background-size: cover;
}

.global-standing-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.global-standing-copy span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.global-standing-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.global-standing-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.global-standing-bar::before {
  content: "";
  display: block;
  width: var(--rank-progress, 12%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

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

.global-standing-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-raised);
}

.global-standing-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.global-standing-stat strong {
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  word-break: break-word;
}

.global-leaderboard-shell {
  display: grid;
  gap: 12px;
}

.global-leaderboard-label {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

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

.global-empty-state {
  margin: 0;
  padding: 18px 12px;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 600;
}

.global-country-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-raised);
}

.global-country-card.is-current {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised));
}

.global-country-head {
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.global-country-rank {
  min-width: 34px;
  color: var(--muted);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.global-country-rank.is-top {
  color: var(--accent);
}

.global-country-flag {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.global-country-flag .fi {
  width: 100%;
  height: 100%;
  background-size: cover;
}

.global-country-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.global-country-heading strong {
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.global-country-you {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.global-country-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.global-country-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.global-country-metric strong {
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
  word-break: break-word;
}

.global-country-bar {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.global-country-bar::before {
  content: "";
  display: block;
  width: var(--country-share, 8%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.webpage-domain.country-meta-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.patch-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
}

.patch-card[hidden] {
  display: none;
}

.career-level {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.career-level-badge {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.career-level-text {
  min-width: 0;
}

.career-level-text strong,
.patch-collection-text strong,
.patch-cardlet strong {
  display: block;
  color: var(--ink);
}

.career-level-text span,
.patch-collection-text span,
.patch-cardlet-text span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.career-level-progress {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.career-level-progress::before,
.patch-progress::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.patch-collections {
  display: grid;
  gap: 8px;
}

.patch-collections:empty {
  display: none;
}

.patch-collection-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 58px auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
}

.patch-icon,
.patch-cardlet-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
}

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

.patch-progress {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.patch-count {
  color: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.featured-patches {
  display: grid;
  gap: 10px;
}

.patch-grid-title {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.patch-cardlet {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 66px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-raised);
  --patch-color: var(--accent);
}

.patch-cardlet[data-rarity="common"] {
  --patch-color: #64748b;
}

.patch-cardlet[data-rarity="uncommon"] {
  --patch-color: #2e8b57;
}

.patch-cardlet[data-rarity="rare"] {
  --patch-color: #2d6cdf;
}

.patch-cardlet[data-rarity="epic"] {
  --patch-color: #8b45c7;
}

.patch-cardlet[data-rarity="legendary"] {
  --patch-color: #d97706;
}

.patch-cardlet[data-rarity="mythic"] {
  --patch-color: #eab308;
}

.patch-cardlet.locked {
  opacity: 0.62;
}

.patch-cardlet-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-top: 0;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: var(--green);
  font-size: 0;
  line-height: 1;
}

.patch-cardlet-icon svg {
  display: block;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patch-cardlet.locked .patch-cardlet-icon {
  color: var(--muted);
  background: var(--soft);
}

.patch-cardlet.secret .patch-cardlet-icon {
  color: var(--muted);
  background: var(--soft);
}

.patch-cardlet-text {
  min-width: 0;
}

.patch-cardlet strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.15;
}

.patch-cardlet-text span {
  line-height: 1.25;
}

.patch-cardlet-requirement {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.patch-cardlet.locked .patch-cardlet-requirement {
  color: var(--text);
}

.achievement-row span + span,
.achievement-row #achievementDescription {
  display: block;
  margin-top: 4px;
}

.patch-cardlet .patch-state {
  width: fit-content;
  margin-top: 0;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--patch-color);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.patch-cardlet.locked .patch-state {
  color: var(--muted);
  background: var(--soft);
}

.patch-empty-state {
  min-height: 48px;
  padding: 14px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 700;
}

.achievement-row .achievement-badge {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--green);
}

.achievement-row .achievement-badge svg {
  display: block;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.achievement-row strong {
  font-size: 17px;
  line-height: 1.15;
}

.achievement-row span {
  margin-top: 4px;
  font-size: 14px;
}

.settings {
  gap: 16px;
  max-height: none;
  overflow-y: auto;
  padding-right: 12px;
  margin-right: -12px;
  scrollbar-gutter: stable;
}

.settings h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.settings-group {
  display: grid;
  gap: 0;
  --settings-control-width: 210px;
}

#accountSection.settings-group {
  gap: 8px;
}

.settings-group-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.settings-subgroup {
  display: grid;
  gap: 0;
  padding: 6px 0 4px;
  border-bottom: 1px solid var(--line);
}

.settings-subgroup:last-child {
  border-bottom: 0;
}

.settings-subtitle {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.settings-subtitle-spaced {
  margin-top: 10px;
}

.settings-caption {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.settings-subgroup .field,
.settings-subgroup .toggle {
  min-height: 42px;
}

.settings-subgroup .field:last-child,
.settings-subgroup .toggle:last-child {
  border-bottom: 0;
}

.field,
.toggle {
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.settings-group .field:last-child,
.settings-group .toggle:last-child,
.settings-group .settings-link:last-child {
  border-bottom: 0;
}

.field span,
.toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select,
.settings-input {
  box-sizing: border-box;
  width: var(--settings-control-width, 210px);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius-sm);
  color: var(--ink);
  background: var(--surface-raised);
  font: inherit;
}

.settings-group select,
.settings-group .settings-input,
.settings-group .nationality-control {
  width: var(--settings-control-width);
  flex: 0 0 var(--settings-control-width);
}

.nationality-control {
  position: relative;
  display: block;
  width: var(--settings-control-width, 210px);
}

.field .nationality-control {
  overflow: visible;
}

.field-profile-name {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: auto;
  padding: 12px 0;
}

.field-profile-name-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.field-info-button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: help;
  padding: 0;
  flex: 0 0 auto;
}

.field-info-button:hover,
.field-info-button:focus-visible {
  color: var(--accent);
  background: var(--button-ghost-hover-bg);
  outline: 0;
}

.field-info-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-input--locked {
  opacity: 0.72;
  cursor: not-allowed;
  background: var(--soft);
}

.field-hint {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.nationality-flag {
  position: absolute;
  left: 8px;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
  pointer-events: none;
  transform: translateY(-50%);
}

.nationality-flag .fi {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nationality-control select {
  width: 100%;
  padding-left: 38px;
}

.settings-input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-input:focus,
select:focus {
  border-color: var(--accent);
  outline: 0;
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.toggle {
  justify-content: flex-start;
}

.theme-options {
  display: grid;
  gap: 0;
}

.theme-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.theme-option:last-child {
  border-bottom: 0;
}

.theme-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-link {
  display: grid;
  min-height: 48px;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.settings-link:hover,
.settings-link:focus-visible {
  color: var(--accent);
  outline: 0;
}

.settings-link:hover .settings-link-icon,
.settings-link:focus-visible .settings-link-icon {
  color: #ffffff;
  background: var(--accent);
}

.settings-link > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-link-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--accent);
  background: var(--soft);
}

.settings-link-icon svg,
.settings-link-arrow svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.settings-link-icon svg {
  width: 16px;
  height: 16px;
}

.settings-link-arrow {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #b8b8b8;
}

.settings-link:hover .settings-link-arrow,
.settings-link:focus-visible .settings-link-arrow {
  color: currentColor;
}

.settings-link-arrow svg {
  width: 16px;
  height: 16px;
}

.settings-danger-zone {
  gap: 10px;
  padding-top: 2px;
}

.data-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.data-panel-header {
  display: grid;
  align-items: center;
}

.data-panel-header div > strong,
.data-panel-header div > span {
  display: block;
}

.data-panel-header div > strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.data-panel-header div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

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

.data-format-button {
  min-height: 36px;
  border: 0;
  border-radius: var(--button-radius-sm);
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: var(--button-font-weight);
  line-height: 1;
}

.data-format-button:hover,
.data-format-button:focus-visible {
  background: var(--button-primary-hover-bg);
  outline: 0;
}

.data-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.data-row strong {
  display: inline-grid;
  min-width: 58px;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  color: var(--surface);
  background: var(--ink);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.settings-action-button,
.danger {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--button-radius);
  cursor: pointer;
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: 1.2;
}

.data-row + .settings-action-button {
  margin-top: 6px;
}

.settings-action-button {
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
}

.settings-action-button:hover,
.settings-action-button:focus-visible {
  color: var(--button-primary-fg);
  background: var(--button-primary-hover-bg);
  outline: 0;
}

.danger,
.danger-action {
  color: var(--button-primary-fg);
  background: var(--button-danger-bg);
}

.danger-action {
  margin-top: 8px;
}

.danger-action:hover,
.danger-action:focus-visible,
.danger:hover,
.danger:focus-visible {
  background: var(--button-danger-hover-bg);
  outline: 0;
}

.settings-action-button:disabled,
.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.settings-action-button:disabled:hover,
.danger-action:disabled:hover {
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
}

.account-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--soft);
}

.account-card {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: var(--soft);
}

.account-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-card-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.account-card-avatar svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.account-card--guest .account-card-avatar {
  color: var(--muted);
  background: var(--surface);
}

.account-card--signed-in .account-card-avatar {
  color: #ffffff;
  background: var(--accent);
}

.account-card--disabled .account-card-avatar {
  color: var(--muted);
  background: var(--surface);
}

.account-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-card-copy strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.account-card-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.account-card-button {
  width: 100%;
}

.account-card--guest .account-card-button {
  color: var(--button-secondary-fg);
  background: var(--surface);
}

.account-card--guest .account-card-button:hover,
.account-card--guest .account-card-button:focus-visible {
  color: var(--button-secondary-fg);
  background: var(--button-secondary-hover-bg);
  outline: 0;
}

.account-status {
  display: grid;
  gap: 4px;
}

.account-status strong,
.account-user strong,
.account-card-copy strong {
  font-size: 15px;
}

.account-status span,
.account-user span,
.account-card-copy span,
.account-error {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-form,
.account-signed-in,
.account-actions {
  display: grid;
  gap: 10px;
}

.account-actions {
  grid-template-columns: 1fr 1fr;
}

.account-error {
  color: #d83b2d;
}

.secondary-action {
  color: var(--button-secondary-fg);
  background: var(--button-secondary-bg);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  color: var(--button-secondary-fg);
  background: var(--button-secondary-hover-bg);
  outline: 0;
}

.profile-button {
  margin-right: 0;
}

.profile-button-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #151515;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-button.is-signed-in .profile-button-avatar {
  background: var(--accent);
}

.auth-view,
.profile-view {
  display: grid;
  gap: 0;
  padding-bottom: 18px;
}

.auth-shell {
  display: grid;
  gap: 16px;
  padding: 8px 16px 0;
}

.auth-hero {
  display: grid;
  gap: 10px;
  padding: 10px 8px 0;
  text-align: center;
}

.auth-brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: calc(var(--brand-radius) + 2px);
}

.auth-brand-mark {
  margin: 0 auto;
  width: 54px;
  height: 54px;
  font-size: 28px;
}

.auth-hero h2,
.profile-header-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.auth-hero p {
  margin: 0 auto;
  max-width: 32ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-form,
.feedback-form,
.profile-actions {
  display: grid;
  gap: 14px;
  padding: 0 0 16px;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--soft);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

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

.auth-field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.auth-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.auth-input:focus {
  border-color: var(--accent);
  outline: 0;
}

.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-input-password {
  padding-right: 46px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  grid-template: 1fr / 1fr;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: var(--button-radius-sm);
  color: var(--button-ghost-fg);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--ink);
  background: var(--button-secondary-hover-bg);
  outline: 0;
}

.auth-password-icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-password-icon[hidden] {
  display: none !important;
}

.auth-password-quality {
  display: grid;
  gap: 8px;
  padding: 2px 2px 0;
}

.auth-password-meter {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, var(--line) 35%);
}

.auth-password-meter-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d83b2d;
  transition: width 160ms ease, background-color 160ms ease;
}

.auth-password-meter-bar.is-fair {
  background: #d97706;
}

.auth-password-meter-bar.is-good {
  background: #ca8a04;
}

.auth-password-meter-bar.is-strong {
  background: #16a34a;
}

.auth-password-strength-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-password-rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-password-rules li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-password-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 35%, var(--line) 65%);
}

.auth-password-rules li.is-met {
  color: var(--ink);
}

.auth-password-rules li.is-met::before {
  background: #16a34a;
}

.auth-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.auth-message--error {
  color: #d83b2d;
}

.auth-message--success {
  color: #15803d;
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-step[hidden] {
  display: none;
}

.auth-verify-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.auth-verify-email {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.auth-otp-input {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.auth-resend-row {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-top: 4px;
}

.auth-resend-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-resend-countdown {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-footer {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--button-ghost-fg);
  font-size: 13px;
  font-weight: var(--button-font-weight);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--button-radius-sm);
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--button-ghost-hover-fg);
  background: var(--button-ghost-hover-bg);
  outline: 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 0;
}

.profile-header-copy {
  display: grid;
  gap: 4px;
}

.profile-header-copy span,
.profile-meta {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-meta {
  margin: 0;
}

.profile-name-status {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.profile-name-status.is-available {
  color: var(--green);
}

.profile-name-status.is-taken,
.profile-name-status.is-invalid {
  color: #d83b2d;
}

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

.compact-account-panel {
  gap: 12px;
}

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

.profile-submission-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-muted);
}

.profile-submission-row strong {
  font-size: 14px;
}

.profile-submission-row span {
  color: var(--text-muted);
  font-size: 12px;
}

.feedback-overlay[hidden] {
  display: none !important;
}

.feedback-overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  padding: 16px;
  background: rgba(17, 17, 17, 0.42);
}

.feedback-sheet {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.feedback-sheet-header,
.feedback-sheet-header > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.feedback-sheet-header > div {
  flex-direction: column;
}

.feedback-sheet-header strong {
  font-size: 18px;
}

.feedback-sheet-header span {
  color: var(--text-muted);
  font-size: 13px;
}

.feedback-success {
  margin: 0;
  color: #1f8b4c;
  font-size: 13px;
}

@keyframes draw-chart {
  from {
    stroke-dashoffset: 430;
  }

  to {
    stroke-dashoffset: 0;
  }
}

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