/*
 * Стандартные экраны ядра (29.09.2026): «Учётная запись», друзья, профиль
 * игрока, приглашение, «Ещё». Правила перенесены из стилей Паззии
 * (puzzia-* → std-*), цвета — через переменные оболочки ядра.
 */
:where(.std-profile-card, .std-profile-confirmation, .std-account-delete, .std-friends-account) :is(.secondary-action, .danger-action) {
  min-height: 44px;
  padding: 12px 16px;
  font-weight: 850;
  border-radius: var(--shell-control-radius, 14px);
  cursor: pointer;
}
:where(.std-profile-card, .std-profile-confirmation, .std-account-delete, .std-friends-account) .secondary-action { color: var(--shell-ink); border: 1px solid var(--shell-line); background: transparent; }
:where(.std-profile-card, .std-profile-confirmation, .std-account-delete) .danger-action { color: white; border: 1px solid var(--shell-danger, #c4453f); background: var(--shell-danger, #c4453f); }
.shell-account .std-account-logout { color: var(--shell-accent); background: transparent; box-shadow: none; }
.std-account-delete > button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; }
.std-account-delete > button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.std-more .std-more-dashboard { grid-template-columns: 1fr; }
.std-more .std-more-primary { min-height: 144px; padding: 8px 0 8px 128px; align-content: center; box-sizing: border-box; }
.std-more .std-more-mascot { left: 0; right: auto; top: 8px; bottom: 8px; width: 112px; height: calc(100% - 16px); }
.std-referral-account, .std-referral-own, .std-referral-form { display: grid; gap: 10px; }
.std-referral-load-failure, .std-friends-load-failure, .std-inline-name-editor { display: grid; gap: 10px; }
.std-inline-name-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.std-inline-name-editor .shell-join-input { width: 100%; box-sizing: border-box; }
.std-referral-values {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--shell-accent-soft);
}
.std-referral-label { color: var(--shell-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.std-referral-own .std-referral-values { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.std-referral-link { overflow: hidden; color: var(--вместе); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.std-referral-code { color: var(--shell-accent-text, var(--shell-accent)); font-size: 16px; font-weight: 900; letter-spacing: .08em; }
.std-referral-confirm { display: grid; gap: 11px; justify-items: center; padding: 14px; text-align: center; border-radius: 16px; background: var(--shell-accent-soft); }
.std-referral-avatar { display: block; width: 58px; height: 58px; padding: 7px; object-fit: contain; border-radius: 50%; color: white; background: var(--referrer-color); box-shadow: 0 7px 20px color-mix(in srgb, var(--referrer-color) 30%, transparent); }
.std-referral-confirm-actions { display: flex; gap: 8px; width: 100%; }
.std-referral-confirm-actions .shell-button { flex: 1; }
.std-friends-account { display: grid; gap: 10px; }
.std-friends-controls { display: grid; gap: 10px; }
.std-friends-summary, .std-friend-button {
  width: 100%; padding: 0; border: 0; color: inherit; text-align: left; background: transparent; cursor: pointer;
}
.std-friends-summary { color: var(--shell-accent-text, var(--shell-accent)); font-weight: 850; line-height: 1.45; }
.std-friends-rule { margin: 0; color: var(--shell-muted); font-size: 13px; line-height: 1.45; }
.std-friends-content { display: grid; gap: 10px; }
.std-friends-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.std-friends-search input {
  min-width: 0; padding: 9px 11px; border: 1px solid var(--shell-line); border-radius: 12px;
  color: var(--shell-ink); font: inherit; background: var(--shell-bg, white);
}
.std-friends-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.std-friend { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: stretch; border-radius: 14px; background: var(--shell-accent-soft); }
.std-friend-button { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px 0 0 14px; }
.std-friend-button:hover { background: color-mix(in srgb, var(--вместе) 9%, transparent); }
.std-friend-avatar,
.std-profile-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--friend-color); box-shadow: inset 0 0 0 3px color-mix(in srgb, white 68%, transparent); }
.std-friend-copy { display: grid; min-width: 0; gap: 3px; }
.std-friend-name { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-weight: 850; }
.std-friend-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--shell-muted); }
.std-friend-source-badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; color: #096254; font-size: 10px; font-weight: 900; background: #ccefe7; }
.std-friend-source-badge.is-referral { color: #714b00; background: #ffe8a3; }
.std-friend-since { font-size: 11px; }
.std-friends-more { justify-self: center; }
.std-supporter-badge,
.std-friend-badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.std-supporter-badge { color: #7d5100; background: #ffe8a3; }
.std-friend-badge { color: #096254; background: #ccefe7; }
.std-profile-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(20 30 50 / 45%); }
.std-profile-card { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(390px, 100%); max-height: calc(100dvh - max(40px, env(safe-area-inset-top) + env(safe-area-inset-bottom))); overflow: hidden; border-radius: 24px; background: var(--shell-bg, white); box-shadow: 0 24px 70px rgb(15 30 50 / 30%); }
.std-profile-avatar { display: grid; width: 72px; height: 72px; place-items: center; color: white; font-size: 28px; font-weight: 900; }
.std-profile-card h2 { margin: 0; }
.std-profile-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.std-profile-close { position: absolute; z-index: 2; top: 2px; right: 2px; display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; padding: 0; border: 3px solid transparent; border-radius: 50%; color: var(--shell-muted); font-size: 30px; line-height: 30px; background: color-mix(in srgb, var(--shell-line) 72%, transparent); background-clip: padding-box; cursor: pointer; }
.std-blocked-profile { display: grid; flex: 1; gap: 3px; min-width: 0; padding: 8px 0; color: inherit; text-align: start; border: 0; background: transparent; cursor: pointer; }
.std-blocked-profile span { color: var(--shell-muted); font-size: 12px; }
.std-profile-header { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 52px 14px 20px; border-bottom: 1px solid var(--shell-line); }
.std-profile-identity { min-width: 0; display: grid; gap: 7px; text-align: left; }
.std-profile-badges { justify-content: flex-start; }
.std-profile-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 20px 22px; }
.std-profile-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.std-profile-award { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 8px; align-items: center; min-height: 78px; padding: 10px; border: 1px solid color-mix(in srgb, var(--shell-accent) 38%, var(--shell-line)); border-radius: 14px; background: color-mix(in srgb, var(--shell-accent) 7%, var(--shell-surface)); }
.std-profile-award-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--shell-accent); border-radius: 50%; background: color-mix(in srgb, var(--shell-accent) 14%, var(--shell-surface)); font-size: 20px; }
.std-profile-award strong { min-width: min-content; overflow-wrap: break-word; line-height: 1.18; }
.std-profile-award-detail { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 6px; min-width: 0; }
.std-profile-award-tier { flex: 1 1 auto; min-width: min-content; overflow-wrap: break-word; color: var(--shell-accent); font-weight: 750; }
.std-profile-award-counter { flex: 0 0 auto; color: var(--shell-muted); font-size: 11px; white-space: nowrap; }
.std-profile-award-visual { position: relative; display: grid; grid-row: 1 / 3; place-items: center; width: 40px; }
.std-profile-award-visual .std-award-medal { position: absolute; right: -4px; bottom: -5px; width: 22px; height: 25px; }
@media (max-width: 379px) {
  .std-profile-awards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .std-profile-award { min-height: 0; }
}
.std-blocked-badge { color: var(--shell-danger, #c4453f); font-size: 12px; font-weight: 800; }
.std-profile-actions { display: grid; gap: 9px; margin-top: 16px; }
.std-profile-action { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; color: var(--вместе); border-color: color-mix(in srgb, var(--вместе) 55%, var(--shell-line)); }
.std-profile-action-icon { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; }
.std-profile-action-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.std-profile-action-error { min-height: 0; margin: 0; color: var(--shell-danger, #c4453f); font-size: 12px; text-align: center; }
.std-profile-action-error:empty { display: none; }
.std-profile-confirmation { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); overflow: auto; background: rgb(20 30 50 / 55%); }
.std-profile-confirmation-card { display: grid; gap: 12px; width: 100%; max-height: 100%; overflow: auto; padding: 18px; border-radius: 18px; background: var(--shell-surface); box-sizing: border-box; }
.std-profile-confirmation-card h3, .std-profile-confirmation-card p { margin: 0; }
.std-profile-confirmation-card p { color: var(--shell-muted); line-height: 1.4; }
.std-profile-confirmation-actions { display: grid; gap: 8px; }
.std-profile-confirmation-actions > button { width: 100%; min-height: 44px; white-space: normal; }
.std-report-overlay { padding: 0; background: transparent; }
.std-report-overlay .std-profile-confirmation-card { width: min(390px, 100%); }
@media (max-width: 480px) {
  .std-referral-values { grid-template-columns: auto minmax(0, 1fr); }
  .std-referral-code { justify-self: start; }
  .std-friends-search { grid-template-columns: 1fr; }
}
.std-version {
  display: block;
  padding: 8px 4px 2px;
  color: var(--shell-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.std-account-providers {
  display: grid;
  gap: 8px;
  margin: 2px 0;
}
.std-account-providers .shell-button { margin: 0; }
.std-account-providers .shell-join-message { margin: 2px 0 0; }
.std-account-delete {
  display: grid;
  justify-items: start;
  gap: 7px;
  max-width: 560px;
  padding-top: 12px;
  border-top: 1px solid var(--shell-line);
}
.std-account-delete-summary,
.std-account-delete-details p {
  margin: 0;
  color: var(--shell-muted);
  font-size: 11px;
  line-height: 1.45;
}
.std-account-delete-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.std-account-delete-details { color: var(--shell-muted); font-size: 11px; }
.std-account-delete-details summary { color: var(--shell-accent-text, var(--shell-accent)); font-weight: 800; cursor: pointer; }
.std-account-delete-details p { max-width: 58ch; margin-top: 7px; }
.std-account-delete .danger-action { margin: 3px 0 0; }
.std-more { gap: 12px; }
.std-more-dashboard {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(154px, auto);
  gap: 8px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--shell-line);
  border-radius: 19px;
  background: var(--shell-surface);
  box-shadow: 0 8px 24px rgb(48 40 59 / .06);
}
.std-more-primary {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 96px;
  padding-right: 48px;
}
.std-more-label {
  color: var(--shell-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.std-more-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  margin: 5px 0 9px;
  padding: 0;
  color: var(--shell-muted);
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
}
.std-more-balance strong { color: var(--shell-accent-text, var(--shell-accent)); font-size: 24px; line-height: 1; }
.std-more-balance > span { font-size: 11px; font-weight: 750; }
.std-more-rewards {
  display: grid;
  gap: 1px;
  padding: 7px 11px;
  color: var(--shell-accent-text, var(--shell-accent));
  font-size: 11px;
  font-weight: 850;
  border: 0;
  border-radius: 999px;
  background: rgb(8 127 204 / .10);
  cursor: pointer;
}
.std-more-mascot {
  position: absolute;
  right: -12px;
  bottom: -5px;
  width: 68px;
  height: 84px;
  object-fit: contain;
}
.std-more-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}
.std-more-stat {
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: 7px 4px;
  color: var(--shell-ink);
  text-align: left;
  border: 0;
  border-radius: 13px;
  background: rgb(8 127 204 / .07);
  cursor: pointer;
}
.std-more-stat strong { font-size: 20px; font-weight: 700; white-space: nowrap; }
.std-more-stat span { color: var(--shell-muted); font-size: 10px; }
.std-more-stat .std-stat-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 3px; color: var(--shell-accent); }
.std-stat-icon svg { display: block; width: 28px; height: 28px; }
.std-more-main { gap: 8px; }
.std-more-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.std-more-links .shell-row { min-width: 0; }
.std-more-links .shell-row-body {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-content: start;
  min-height: 92px;
  padding: 12px;
}
.std-more-rewards small { color: var(--shell-muted); font-size: 9px; font-weight: 700; }
.std-more-stat > span:last-child { white-space: normal; overflow-wrap: anywhere; text-align: center; }

/*
 * «Артпоинты и награды» по стандарту 29.09.2026 (эталон — Паззия): история с
 * фильтрами, итогом месяца и днями; награды семействами медалей; строка
 * рейтинга, открывающая профиль. Классы появляются только у приложений,
 * включивших `standard` в экране наград ядра.
 */
.leaderboard-row.is-clickable { cursor: pointer; }
.leaderboard-row.is-clickable:hover { box-shadow: inset 0 0 0 1px var(--shell-line, rgb(45 38 56 / 14%)); }
.leaderboard-row.is-clickable:focus-visible { outline: 3px solid color-mix(in srgb, var(--shell-accent) 45%, transparent); outline-offset: 2px; }
.leaderboard-row .shell-artpoints-amount.leaderboard-value { justify-self: end; direction: ltr; unicode-bidi: isolate; }

.std-history { display: grid; gap: 12px; min-width: 0; }
.std-history-filters { margin: 0; }
.std-history-month { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--shell-line, rgb(45 38 56 / 12%)); border-radius: 18px; background: var(--shell-surface, #fffaf5); }
.std-history-month-title { margin: 0; color: var(--shell-ink); font-size: 15px; font-weight: 850; }
.std-history-month-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.std-history-month-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.std-history-month-label { color: var(--shell-muted); font-size: 12px; font-weight: 700; }
.std-history-month-value { font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.std-history-month-cell.is-earned .std-history-month-value { color: var(--shell-accent); }
.std-history-month-cell.is-spent .std-history-month-value { color: var(--shell-ink); }
.std-history-list { margin: 0; }
.std-history-day { margin: 12px 4px 0; color: var(--shell-muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; list-style: none; }
.std-history-day:first-child { margin-top: 0; }
.std-history-row.is-event { grid-template-columns: 24px minmax(0, 1fr); }
.std-history-meta { display: block; color: var(--shell-muted); font-size: 12px; overflow-wrap: anywhere; }
.std-history-meta .points-ledger-date,
.std-history-meta .points-ledger-title { display: inline; font-size: inherit; color: inherit; }
.std-history-sep { margin: 0 .35em; }
.std-history-more { justify-self: stretch; }
.std-history-more-error { color: var(--shell-danger, #b44343); }

.std-awards { display: grid; gap: 12px; min-width: 0; }
.std-awards-summary { display: grid; gap: 9px; padding: 12px 14px; border: 1px solid var(--shell-line, rgb(45 38 56 / 12%)); border-radius: 16px; background: var(--shell-surface, #fffaf5); }
.std-awards-summary-labels,
.std-award-progress-meta { display: flex; justify-content: space-between; gap: 8px; }
.std-awards-types, .std-awards-total { margin: 0; font-size: 12px; font-weight: 850; }
.std-awards-total { color: var(--shell-muted); text-align: end; }
.std-awards-summary-track, .std-award-progress-track { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: rgb(127 129 143 / 18%); }
.std-award-progress-track { height: 6px; background: color-mix(in srgb, var(--tier) 16%, var(--shell-surface, #fff)); }
.std-awards-summary-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c77943, #efc44c 55%, #a56be2); }
.std-award-progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 72%, white), var(--tier)); }
.std-awards-nearest { display: grid; gap: 7px; min-width: 0; }
.std-awards-nearest-label { color: var(--shell-muted); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.std-awards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.std-award-family { --tier: #87909c; position: relative; min-width: 0; min-height: 108px; border: 1px solid var(--shell-line, rgb(45 38 56 / 12%)); border-radius: 16px; background: var(--shell-surface, #fffaf5); }
.std-award-family.is-level-1 { --tier: #c27647; }
.std-award-family.is-level-2 { --tier: #97a5b2; }
.std-award-family.is-level-3 { --tier: #e2ad31; }
.std-award-family.is-level-4 { --tier: #1c93a7; }
.std-award-family.is-level-5 { --tier: #7c4caf; }
.std-award-family.is-level-6 { --tier: #b8324f; }
.std-award-family.is-featured { min-height: 118px; border-color: color-mix(in srgb, var(--tier) 35%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--tier) 14%, var(--shell-surface, #fff)), var(--shell-surface, #fff)); }
.std-award-family-open { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; min-width: 0; padding: 11px; color: inherit; font: inherit; text-align: start; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.std-award-family.is-featured .std-award-family-open { padding: 15px; }
.std-award-family-open:focus-visible { outline: 3px solid color-mix(in srgb, var(--tier) 42%, transparent); outline-offset: 2px; }
.std-award-family-visual { position: relative; display: grid; flex: 0 0 47px; place-items: center; align-self: center; }
.std-award-family-level { position: absolute; inset-inline-end: -2px; bottom: 0; padding: 2px 6px; color: white; font-size: 10px; font-weight: 900; border-radius: 999px; background: var(--tier); direction: ltr; unicode-bidi: isolate; }
.std-award-family-body { display: grid; flex: 1; gap: 5px; min-width: 0; }
.std-award-family-title { margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.18; }
.std-award-family.is-featured .std-award-family-title { font-size: 16px; }
.std-award-family-current { color: var(--shell-muted); font-size: 11px; font-weight: 800; }
.std-award-progress { display: grid; gap: 4px; }
.std-award-progress-label { color: var(--shell-muted); font-size: 11px; font-weight: 800; }
.std-award-progress-meta { color: var(--shell-muted); font-size: 10px; }
.std-award-progress-meta strong { color: var(--shell-ink); direction: ltr; unicode-bidi: isolate; }
.std-award-progress-meta b { color: var(--tier); text-align: end; }
.std-award-medal { width: 44px; height: 50px; overflow: visible; filter: drop-shadow(0 5px 5px rgb(15 68 96 / 16%)); }
.std-award-family.is-featured .std-award-medal { width: 58px; height: 66px; }
.std-award-medal.is-small { width: 30px; height: 34px; }
.std-award-ribbon { fill: #61758a; }
.std-award-rim { fill: #8b9aaa; }
.std-award-face { fill: #d7dde3; }
.std-award-star { fill: #fff; opacity: .72; }
.std-award-medal.is-level-1 .std-award-ribbon { fill: #9b5d36; } .std-award-medal.is-level-1 .std-award-rim { fill: #b86c40; } .std-award-medal.is-level-1 .std-award-face { fill: #de9464; }
.std-award-medal.is-level-2 .std-award-ribbon { fill: #71808f; } .std-award-medal.is-level-2 .std-award-rim { fill: #97a5b2; } .std-award-medal.is-level-2 .std-award-face { fill: #dce3e9; }
.std-award-medal.is-level-3 .std-award-ribbon { fill: #d09820; } .std-award-medal.is-level-3 .std-award-rim { fill: #f0b62c; } .std-award-medal.is-level-3 .std-award-face { fill: #ffdc69; }
.std-award-medal.is-level-4 .std-award-ribbon { fill: #1c93a7; } .std-award-medal.is-level-4 .std-award-rim { fill: #39bfd0; } .std-award-medal.is-level-4 .std-award-face { fill: #8de5ed; }
.std-award-medal.is-level-5 .std-award-ribbon { fill: #7651ad; } .std-award-medal.is-level-5 .std-award-rim { fill: #9b6ed5; } .std-award-medal.is-level-5 .std-award-face { fill: #d3b7f3; }
.std-award-medal.is-level-6 .std-award-ribbon { fill: #8e2139; } .std-award-medal.is-level-6 .std-award-rim { fill: #b8324f; } .std-award-medal.is-level-6 .std-award-face { fill: #ec8aa0; }
.std-award-dialog { width: min(94vw, 560px); max-height: min(90dvh, 820px); padding: 0; color: var(--shell-ink); border: 0; border-radius: 24px; background: var(--shell-surface, #fff); box-shadow: 0 24px 80px rgb(15 33 45 / 35%); }
.std-award-dialog::backdrop { background: rgb(13 31 43 / 54%); }
.std-award-dialog-content { --tier: var(--shell-accent); position: relative; display: grid; gap: 14px; padding: 22px 16px; overflow: auto; max-height: min(90dvh, 820px); box-sizing: border-box; }
.std-award-dialog-close { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; padding: 0; color: var(--shell-ink); font-size: 26px; line-height: 1; border: 0; border-radius: 50%; background: rgb(15 68 96 / 8%); cursor: pointer; }
.std-award-dialog-hero { display: flex; justify-content: center; }
.std-award-dialog-hero .std-award-medal { width: 88px; height: 100px; }
.std-award-dialog-heading { display: grid; gap: 4px; text-align: center; }
.std-award-dialog-heading h2 { margin: 0; font-size: 20px; }
.std-award-dialog-kicker { color: var(--shell-accent); font-size: 12px; font-weight: 900; }
.std-award-tiers { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.std-award-tier { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; opacity: .62; border: 1px solid var(--shell-line, rgb(15 68 96 / 8%)); border-radius: 14px; }
.std-award-tier.is-unlocked { opacity: 1; }
.std-award-tier-copy { display: grid; min-width: 0; }
.std-award-tier-copy strong { font-size: 13px; }
.std-award-tier-copy small { color: var(--shell-muted); font-size: 11px; }
@media (max-width: 360px) {
  .std-awards-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Award descriptions and progress span the card; keep readable on narrow phones. */
.std-profile-award > small, .std-profile-award > progress { grid-column: 1 / -1; }
.std-profile-award > small { line-height: 1.4; }
.std-profile-award-detail { grid-column: 2; }
.std-profile-award-visual svg { width: 40px; height: 40px; }
@media (max-width: 480px) { .std-profile-awards { grid-template-columns: minmax(0,1fr); } }

.std-profile-award > strong { grid-column: 2; grid-row: 1; text-align: left; min-width: 0; }
.std-profile-award-visual { grid-column: 1; }
.std-profile-award-visual .std-award-medal { width: 22px; height: 25px; }

/* Colovia award hierarchy: prominent counts, glowing medal, full-screen detail. */
.std-awards-summary{padding:8px 0;border:0;background:transparent}
.std-awards-summary-labels{font-size:15px;font-weight:900;justify-content:space-between}
.std-awards-types,.std-awards-total{font-size:15px;font-weight:900}
.std-awards-total{color:var(--shell-accent)}
.std-awards-types,.std-awards-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;max-width:49%}
.std-awards-counter-value{font-size:22px;line-height:1.15;font-weight:900}
.std-awards-counter-label{font-size:10px;font-weight:600;color:var(--shell-muted)}
.std-awards-summary-fill{background:linear-gradient(90deg,#c77943,#c1c6cd,#efc44c,#69c5dd,#c783ec)}
.std-awards-nearest{position:relative;border:1.5px solid #aab2be;border-radius:22px;background:linear-gradient(110deg,#b1bbc21c,#e8bd2226)}
.std-awards-nearest-label{position:absolute;inset-inline-start:108px;top:18px;font-size:11px;z-index:1;pointer-events:none}
.std-awards-nearest .std-award-family{border:0;background:transparent;min-height:120px}
.std-award-family.is-featured .std-award-family-open{padding-top:38px;position:relative}
.std-award-family.is-featured .std-award-family-visual{flex-basis:72px;margin-top:-12px}
.std-award-family.is-featured .std-award-family-icon{display:none}
.std-award-family.is-featured .std-award-medal{width:68px;height:76px;filter:drop-shadow(0 0 20px #ddc991a0)}
.std-award-family.is-featured .std-award-family-level,.std-award-family.is-featured .std-award-family-current{display:none}
.std-awards-grid-label{display:flex;align-items:center;justify-content:space-between;color:var(--shell-muted);font-size:12px;text-transform:uppercase}
.std-awards-sort{font:inherit;text-transform:none;background:transparent;color:inherit;border:0;max-width:54%}
.std-awards-grid .std-award-family{border-color:color-mix(in srgb,var(--tier) 80%,transparent);min-height:142px}
.std-awards-grid .std-award-family.is-level-0{border-color:var(--shell-line)}
.std-awards-grid .std-award-family-open{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.std-awards-grid .std-award-family-visual{display:flex;justify-content:space-between;align-items:center;width:100%;height:34px}
.std-awards-grid [data-award-symbol]{width:28px!important;height:28px!important}
.std-award-family.is-featured [data-award-symbol],.std-award-dialog-hero [data-award-symbol]{display:none}
.std-award-dialog.is-level-1{--award-tier:#c77943}.std-award-dialog.is-level-2{--award-tier:#97a5b2}.std-award-dialog.is-level-3{--award-tier:#efc44c}.std-award-dialog.is-level-4{--award-tier:#69c5dd}.std-award-dialog.is-level-5{--award-tier:#c783ec}
.std-awards-grid .std-award-medal{width:24px;height:28px;margin-inline-start:auto;margin-inline-end:36px}
.std-awards-grid .std-award-family-level{background:transparent;color:var(--tier);bottom:8px;padding:0}
.std-award-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;background:var(--shell-background,var(--shell-bg,#fffaf4));overflow:auto}
.std-award-dialog-content{max-height:none;min-height:100dvh;max-width:600px;margin:auto;padding:calc(60px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom))}
.std-award-dialog-hero{padding:28px 0}
.std-award-dialog-hero>.std-award-family-icon{display:none}
.std-award-dialog-hero .std-award-medal{width:120px;height:135px;filter:drop-shadow(0 0 36px #ecc949bb)}
.std-award-dialog-heading h2{font-size:24px}
.std-award-description{text-align:center;color:var(--shell-muted);margin:0;line-height:1.45}
.std-award-stepper{display:flex;justify-content:space-between;list-style:none;padding:0;position:relative;margin:10px 0;isolation:isolate}
.std-award-stepper:before{content:'';position:absolute;top:15px;inset-inline:14px;height:3px;background:linear-gradient(90deg,#c77943,#c1c6cd,#efc44c,#69c5dd,#c783ec);z-index:-1}
.std-award-stepper li{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--shell-line,#d8d8df);border-radius:50%;background:var(--shell-surface,#fff);font-weight:900;font-size:12px}
.std-award-stepper li.is-reached{background:#c1c6cd;color:#fff}
.std-award-stepper li.is-reached.is-level-1{background:#c77943}.std-award-stepper li.is-reached.is-level-3{background:#efc44c}.std-award-stepper li.is-reached.is-level-4{background:#69c5dd}.std-award-stepper li.is-reached.is-level-5{background:#c783ec}
.std-award-stepper li.is-next{border:2px solid #efc44c;color:#efc44c}
.std-award-next{padding:14px;border-radius:18px;background:var(--shell-surface,#fff);display:grid;gap:8px}
.std-award-next-reward{display:flex;gap:4px;color:var(--shell-muted);font-size:12px}
.std-award-levels-title{margin:0;color:var(--shell-muted);font-size:12px;text-transform:uppercase}
.std-award-tier{grid-template-columns:auto minmax(0,1fr) auto auto;background:var(--shell-surface,#fff);padding:12px;opacity:.65}
.std-award-tier.is-current{opacity:1;border:1.5px solid var(--award-tier,#efc44c);background:color-mix(in srgb,var(--award-tier,#efc44c) 12%,var(--shell-surface,#fff))}
.std-award-tier-state{font-size:12px;font-weight:800}.is-current>.std-award-tier-state{background:#efc44c;color:#fff;border-radius:20px;padding:5px 8px}
.std-award-share{min-height:48px;font-weight:900}
.std-history-thumbnail{width:40px;height:40px;object-fit:cover;border-radius:9px}
.std-history-row{grid-template-columns:40px minmax(0,1fr) auto}
.std-history-row.is-event{grid-template-columns:40px minmax(0,1fr)}
.std-history-row .points-ledger-icon{flex:0 0 40px;width:40px;height:40px}
.std-history-more:disabled:before{content:'';display:inline-block;width:14px;height:14px;margin-inline-end:8px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:history-spin 1s linear infinite}
@keyframes history-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.std-history-more:disabled:before{animation:none}}
