:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #19191a;
  --text-secondary: #818c99;
  --accent: #0077ff;
  --border: #dce1e6;
  --error-bg: #fff0f0;
  --error-text: #e64646;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

:root[data-scheme="dark"] {
  --bg: #19191a;
  --surface: #232324;
  --text: #e1e3e6;
  --text-secondary: #939393;
  --accent: #71aaeb;
  --border: #363738;
  --error-bg: #3b2020;
  --error-text: #ff5c5c;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  padding: 16px 16px 32px;
}

.header {
  margin-bottom: 20px;
}

.header__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.header__subtitle {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.content {
  max-width: 480px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
}

.loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

.error {
  padding: 20px;
  border-radius: 16px;
  background: var(--error-bg);
  color: var(--error-text);
}

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

.error__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.4;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.profile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile__hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.profile__name-wrap {
  min-width: 0;
}

.profile__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.profile__id {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.info-list {
  margin: 0;
  padding: 8px 0;
}

.info-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.info-list__row:last-child {
  border-bottom: 0;
}

.info-list__label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.info-list__value {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
