/* Starlake Thành viên: form hồ sơ, trang hồ sơ công khai, danh bạ.
   Dùng biến màu/font của theme starlake (main.css), có giá trị dự phòng. Mobile-first. */

:root {
  --stv-ink: var(--ink, #0b0e11);
  --stv-paper: var(--paper, #f2f1ed);
  --stv-accent: var(--accent, #ff4d12);
  --stv-accent-ink: var(--accent-ink, #c2410c);
  --stv-lake: var(--lake, #0e6e73);
  --stv-muted: var(--muted, #6b5e51);
  --stv-line: rgba(11, 14, 17, 0.16);
  --stv-danger: #b42318;
  --stv-radius: var(--radius, 14px);
  --stv-display: var(--font-display, 'Anton', 'Arial Narrow', sans-serif);
  --stv-hh: var(--header-h, 64px);
}

.stv-page [hidden] { display: none !important; }
.stv-page img { max-width: 100%; }
.stv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ====== Khung chung ====== */
.stv-wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 96px; }
.stv-wrap--narrow { max-width: 560px; padding-top: calc(var(--stv-hh) + 32px); }
.stv-page--form .stv-wrap--narrow:first-child { padding-top: calc(var(--stv-hh) + 32px); }
.stv-head { margin-bottom: 18px; }
.stv-title {
  font-family: var(--stv-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 3rem); line-height: 1.3; margin: 0.1em 0 0.3em;
}
.stv-lead { margin: 0 0 8px; font-size: 1rem; line-height: 1.65; }
.stv-req { color: var(--stv-accent-ink); font-weight: 800; }
.stv-guide { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.6; }
.stv-guide a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.stv-guide--dir { margin: 12px 0 0; }
.stv-thanks .stv-guide { margin: 16px 0 14px; }

/* Thanh trên cùng của form */
.stv-secure {
  margin-top: var(--stv-hh);
  background: var(--stv-ink); color: var(--stv-paper);
  text-align: center; font-size: 0.85rem; font-weight: 600; line-height: 1.4;
  padding: 10px 16px;
}
.admin-bar .stv-secure { margin-top: calc(var(--stv-hh) + 32px); }
@media screen and (max-width: 782px) { .admin-bar .stv-secure { margin-top: calc(var(--stv-hh) + 46px); } }
.stv-secure + .stv-wrap { padding-top: 24px; }

/* ====== Thông báo ====== */
.stv-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 0.95rem; line-height: 1.55; }
.stv-alert--ok { background: rgba(14, 110, 115, 0.12); color: #0b4f53; }
.stv-alert--warn { background: #fff1d6; color: #7a4a00; }
.stv-alert--err { background: #fde8e6; color: #8a1c13; }
.stv-errlist { margin: 6px 0 0; padding-left: 20px; }
.stv-errlist a { color: inherit; }

.stv-statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.stv-statusbar__txt { font-size: 0.92rem; color: var(--stv-muted); }
.stv-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; }
.stv-pill--ok { background: rgba(14, 110, 115, 0.14); color: #0b4f53; }
.stv-pill--wait { background: #ffe6d6; color: #9a3412; }

/* ====== Nút ====== */
.stv-btn, .stv-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--stv-ink); background: transparent; color: var(--stv-ink);
}
.stv-btn:hover { background: var(--stv-ink); color: var(--stv-paper); }
.stv-btn--danger { background: var(--stv-danger); border-color: var(--stv-danger); color: #fff; }
.stv-btn--danger:hover { background: #8e1c12; border-color: #8e1c12; color: #fff; }
.stv-submit { width: 100%; min-height: 54px; border: 0; background: var(--stv-accent); color: var(--stv-ink); font-size: 1.05rem; }
.stv-submit:hover { box-shadow: 0 10px 24px rgba(255, 77, 18, 0.35); }
.stv-submit[disabled] { opacity: 0.6; cursor: progress; }
.stv-copy { border: 0; cursor: pointer; font: inherit; font-weight: 800; min-height: 48px; }

/* ====== Thẻ nhóm ====== */
.stv-card {
  background: #fff; border-radius: var(--stv-radius); padding: 20px 16px 8px; margin: 0 0 18px;
  box-shadow: 0 1px 4px rgba(11, 14, 17, 0.08);
}
.stv-card__title { font-family: var(--stv-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; line-height: 1.3; margin: 0 0 4px; }
.stv-card__desc { margin: 0 0 8px; color: var(--stv-muted); font-size: 0.92rem; line-height: 1.5; }

/* ====== Dòng trường ====== */
.stv-row { padding: 14px 0; min-width: 0; }
.stv-row + .stv-row { border-top: 1px solid var(--stv-line); }
.stv-row__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 44px; margin-bottom: 4px; }
.stv-label { font-weight: 700; font-size: 0.97rem; line-height: 1.4; }
.stv-sublabel { display: block; font-weight: 600; font-size: 0.85rem; color: var(--stv-muted); margin-bottom: 4px; }
.stv-hint { margin: 6px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--stv-muted); }
.stv-err { margin: 6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--stv-danger); }
.stv-row.has-error input:not([type='checkbox']), .stv-row.has-error select, .stv-row.has-error textarea { border-color: var(--stv-danger); }

.stv-form input[type='text'], .stv-form input[type='tel'], .stv-form input[type='email'], .stv-form input[type='date'],
.stv-form input[type='month'], .stv-form input[type='search'], .stv-form select, .stv-form textarea,
.stv-danger input[type='text'], .stv-linkbox, .stv-search input {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--stv-ink);
  padding: 10px 12px; background: #fff;
  border: 1.5px solid rgba(11, 14, 17, 0.28); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.stv-form select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b0e11' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.stv-form textarea { min-height: 104px; resize: vertical; }
.stv-form input:focus, .stv-form select:focus, .stv-form textarea:focus, .stv-danger input:focus, .stv-search input:focus, .stv-linkbox:focus {
  outline: 3px solid rgba(255, 77, 18, 0.35); outline-offset: 0; border-color: var(--stv-accent);
}
.stv-hms-xem { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--stv-muted); }
.stv-hms-xem.is-bad { color: #c0392b; font-weight: 600; }
.stv-count { display: block; text-align: right; font-size: 0.8rem; color: var(--stv-muted); margin-top: 2px; }
.stv-inputwrap { display: flex; align-items: center; gap: 10px; }
.stv-inputwrap input { flex: 1 1 auto; }
.stv-unit { flex: none; font-weight: 700; color: var(--stv-muted); }

/* Trường ghép: lưới ô nhỏ, không bao giờ tràn ngang ở 360px */
.stv-parts { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.stv-part { min-width: 0; }
@media (min-width: 520px) {
  .stv-parts--2, .stv-parts--3, .stv-parts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stv-parts--3 .stv-part:last-child { grid-column: 1 / -1; }
}

/* Công tắc Công khai (chạy bằng CSS thuần, không cần JS) */
.stv-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 0.88rem; font-weight: 800; user-select: none; -webkit-tap-highlight-color: transparent; }
.stv-switch__input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 52px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.stv-switch__track { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: #c4bfb2; transition: background 0.2s ease; }
.stv-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.stv-switch__input:checked ~ .stv-switch__track { background: var(--stv-lake); }
.stv-switch__input:checked ~ .stv-switch__track::after { transform: translateX(20px); }
.stv-switch__input:focus-visible ~ .stv-switch__track { outline: 3px solid rgba(255, 77, 18, 0.55); outline-offset: 2px; }
.stv-switch__input:checked ~ .stv-switch__off { display: none; }
.stv-switch__input:not(:checked) ~ .stv-switch__on { display: none; }
.stv-switch__on { color: #0b4f53; }
.stv-switch__off { color: var(--stv-muted); }

/* Công tắc cài đặt (ẩn tên thật / ẩn ảnh) + dòng nhắc mạng xã hội */
.stv-card { scroll-margin-top: calc(var(--stv-hh) + 12px); }
.stv-row--switch .stv-switch__on { color: var(--stv-accent-ink); }
.stv-annote { display: none; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 77, 18, 0.1); border: 1.5px solid rgba(255, 77, 18, 0.35); }
.stv-row--switch.is-on .stv-annote { display: block; }
.stv-annote p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.5; font-weight: 600; color: var(--stv-ink); }

.stv-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; background: rgba(14, 110, 115, 0.12); color: #0b4f53; }
.stv-badge--lock { background: rgba(11, 14, 17, 0.08); color: var(--stv-ink); }

/* Chip chọn nhiều */
.stv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stv-chip { position: relative; display: inline-block; }
.stv-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.stv-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0 18px; border: 1.5px solid rgba(11, 14, 17, 0.28); border-radius: 999px; font-weight: 800; background: #fff; }
.stv-chip input:checked + span { background: var(--stv-ink); border-color: var(--stv-ink); color: var(--stv-paper); }
.stv-chip input:focus-visible + span { outline: 3px solid rgba(255, 77, 18, 0.55); outline-offset: 2px; }

/* Ảnh đại diện */
.stv-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.stv-photo__preview { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #ddd6c8; display: flex; align-items: center; justify-content: center; }
.stv-photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.stv-photo__ph { font-size: 2.2rem; color: var(--stv-muted); line-height: 1; }
.stv-photo__ctl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; flex: 1 1 180px; }
.stv-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.stv-file:focus-visible + .stv-btn { outline: 3px solid rgba(255, 77, 18, 0.55); outline-offset: 2px; }
.stv-file-name { font-size: 0.85rem; color: var(--stv-muted); overflow-wrap: anywhere; }
.stv-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.92rem; }
.stv-check input { width: 22px; height: 22px; }

/* Đồng ý */
.stv-consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 0.95rem; line-height: 1.6; cursor: pointer; }
.stv-consent input { flex: none; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--stv-accent); }
.stv-row--consent { padding-top: 6px; }

.stv-actions { margin: 6px 0 24px; }
.stv-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Xoá hồ sơ */
.stv-danger { margin-top: 28px; border: 1.5px solid rgba(180, 35, 24, 0.4); border-radius: var(--stv-radius); padding: 0 16px; background: #fff; }
.stv-danger summary { cursor: pointer; font-weight: 800; color: var(--stv-danger); min-height: 52px; display: flex; align-items: center; }
.stv-danger__form { padding: 0 0 18px; display: grid; gap: 10px; }
.stv-danger__form p { margin: 0; font-size: 0.92rem; line-height: 1.55; }

/* Trang cảm ơn / lỗi */
.stv-thanks { text-align: center; padding-bottom: 24px; }
.stv-thanks__icon { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; background: var(--stv-lake); color: #fff; font-size: 2.2rem; line-height: 72px; font-weight: 800; }
.stv-linkcard { background: #fff; border-radius: var(--stv-radius); padding: 18px 16px; margin: 20px 0 14px; text-align: left; box-shadow: 0 1px 4px rgba(11, 14, 17, 0.08); }
.stv-linkbox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; line-height: 1.5; word-break: break-all; margin: 8px 0 12px; resize: none; }
.stv-linkcard__row { display: flex; flex-wrap: wrap; gap: 10px; }
.stv-copy-msg { margin: 8px 0 0; min-height: 1.4em; font-weight: 700; color: #0b4f53; }
.stv-warn { text-align: left; background: #fff1d6; color: #7a4a00; border-radius: 12px; padding: 12px 16px; line-height: 1.6; }

/* ====== Trang hồ sơ công khai ======
   Nhận diện: ink #0b0e11, paper #f2f1ed, cam #ff4d12, hồ #0e6e73. Bo góc: thẻ 14px, nút và chip dạng viên. */
.stv-ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.stv-profile { --stv-tab: 68px; overflow-x: clip; }

/* Hero */
.stv-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--stv-paper);
  background: var(--stv-ink);
  padding: calc(var(--stv-hh) + 28px) 0 84px;
}
.stv-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.stv-hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 6% 4%, rgba(14, 110, 115, 0.62), transparent 70%),
    radial-gradient(52% 50% at 100% 100%, rgba(255, 77, 18, 0.36), transparent 72%),
    radial-gradient(40% 40% at 78% 8%, rgba(14, 110, 115, 0.28), transparent 70%);
}
.stv-hero__inner { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.stv-hero__inner > .stv-alert { margin-bottom: 18px; }
.stv-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.stv-hero__text { min-width: 0; }

.stv-ring {
  width: 152px; height: 152px; padding: 5px; border-radius: 50%;
  background: conic-gradient(from 210deg, #ff4d12, #ff9a62 28%, #c2410c 55%, #ff4d12 80%, #ff7a3d);
  box-shadow: 0 0 0 6px rgba(255, 77, 18, 0.14), 0 22px 44px -14px rgba(0, 0, 0, 0.7);
}
.stv-avatar {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--stv-ink); background: var(--stv-lake);
  display: flex; align-items: center; justify-content: center;
}
.stv-avatar__img { width: 100%; height: 100%; object-fit: cover; }
.stv-avatar__ph { font-family: var(--stv-display); font-size: 3rem; color: var(--stv-paper); letter-spacing: 0.04em; }

.stv-name {
  font-family: var(--stv-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.5rem, 12vw, 4.8rem); line-height: 1.2; margin: 0; color: var(--stv-paper);
  overflow-wrap: anywhere; text-wrap: balance;
}
.stv-nick { margin: 4px 0 0; font-weight: 800; color: #ff8a57; font-size: 1.15rem; }
.stv-chipbar { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.stv-hchip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 11px;
  border-radius: 999px; font-size: 0.88rem; font-weight: 600; line-height: 1.2;
  background: rgba(242, 241, 237, 0.09); border: 1px solid rgba(242, 241, 237, 0.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stv-hchip .stv-ico { width: 17px; height: 17px; opacity: 0.9; }
.stv-hchip--role { background: var(--stv-accent); border-color: var(--stv-accent); color: var(--stv-ink); font-weight: 800; }
.stv-hchip--role .stv-ico { opacity: 1; }

.stv-motto { position: relative; margin: 20px 0 0; padding: 2px 0 2px 46px; max-width: 52ch; }
.stv-motto__q { position: absolute; left: 0; top: -2px; width: 34px; height: 34px; color: var(--stv-accent); }
.stv-motto p { margin: 0; font-size: 1.12rem; font-style: italic; line-height: 1.6; color: rgba(242, 241, 237, 0.94); }

.stv-share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 22px; padding: 0 22px 0 18px;
  border-radius: 999px; font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer;
  color: var(--stv-paper); background: rgba(242, 241, 237, 0.08); border: 1.5px solid rgba(242, 241, 237, 0.55);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.stv-share:hover { background: var(--stv-paper); color: var(--stv-ink); }
.stv-share:active { transform: scale(0.97); }
.stv-share:focus-visible, .stv-strava-btn:focus-visible, .stv-social a:focus-visible, .stv-gcard__link:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 3px; }
.stv-share[hidden] { display: none; }

@media (min-width: 720px) {
  .stv-hero { padding-bottom: 96px; }
  .stv-hero__grid { grid-template-columns: 216px minmax(0, 1fr); gap: 40px; }
  .stv-ring { width: 208px; height: 208px; padding: 6px; }
  .stv-avatar__ph { font-size: 4.4rem; }
}

.stv-profile__inner { max-width: 880px; margin: 0 auto; padding: 0 16px calc(var(--stv-tab) + 48px); }

/* Dải chỉ số */
.stv-stats {
  display: grid; margin-top: -48px; position: relative; z-index: 1;
  background: #fff; border-radius: var(--stv-radius); overflow: hidden;
  box-shadow: 0 24px 48px -22px rgba(11, 14, 17, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.stv-stats--1 { grid-template-columns: minmax(0, 1fr); }
.stv-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stv-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stv-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stv-stat { padding: 18px 4px 16px; text-align: center; min-width: 0; position: relative; }
.stv-stat + .stv-stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--stv-line); }
.stv-stat__num {
  display: block; font-family: var(--stv-display); line-height: 1.15; color: var(--stv-ink);
  font-size: clamp(1.7rem, 7.4vw, 2.9rem); font-variant-numeric: tabular-nums;
}
.stv-stat__label { display: block; margin-top: 3px; padding: 0 2px; font-size: 0.72rem; font-weight: 700; line-height: 1.3; color: var(--stv-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stv-stat__label small { font-size: inherit; color: var(--stv-accent-ink); text-transform: none; letter-spacing: 0; }
@media (min-width: 640px) { .stv-stat { padding: 24px 8px 22px; } .stv-stat__label { font-size: 0.8rem; } }

/* Tiêu đề mục */
.stv-sec { margin-top: 44px; }
.stv-sec-title { font-family: var(--stv-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1.3; margin: 0 0 16px; }
.stv-sec-title::after { content: '.'; color: var(--stv-accent); }

/* Số áo đua (PB) */
.stv-pbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stv-bib {
  --bib: var(--stv-lake);
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: #fff; border-radius: 10px; padding: 30px 14px 16px;
  box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 14px 26px -16px rgba(11, 14, 17, 0.4);
}
.stv-bib--pb_5k { --bib: #5fb7bb; }
.stv-bib--pb_10k { --bib: var(--stv-lake); }
.stv-bib--pb_21k { --bib: var(--stv-accent); }
.stv-bib--pb_42k { --bib: var(--stv-accent-ink); }
.stv-bib--pb_ultra { --bib: var(--stv-ink); }
.stv-bib__bar { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--bib); }
.stv-bib__hole {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--stv-paper); box-shadow: inset 0 1px 2px rgba(11, 14, 17, 0.45), 0 0 0 2px rgba(11, 14, 17, 0.05);
}
.stv-bib__hole--tl { left: 9px; top: 20px; } .stv-bib__hole--tr { right: 9px; top: 20px; }
.stv-bib__hole--bl { left: 9px; bottom: 9px; } .stv-bib__hole--br { right: 9px; bottom: 9px; }
.stv-bib__bar::after { content: ''; position: absolute; left: 24px; right: 24px; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 12px); opacity: 0.55; }
.stv-bib__dist { font-family: var(--stv-display); font-size: 1.7rem; line-height: 1.25; text-transform: uppercase; color: var(--stv-ink); padding: 0 6px; overflow-wrap: anywhere; }
.stv-bib__time { font-family: var(--stv-display); font-size: 2.7rem; line-height: 1.15; color: var(--stv-ink); padding: 2px 6px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stv-bib__time.is-long { font-size: 2.3rem; }
.stv-bib__time.is-xl { font-size: 2rem; }
.stv-bib__pace { align-self: flex-start; margin: 8px 6px 0; padding: 3px 11px; border-radius: 999px; font-weight: 800; font-size: 0.82rem; background: color-mix(in srgb, var(--bib) 14%, #fff); color: var(--stv-ink); border: 1px solid color-mix(in srgb, var(--bib) 55%, #fff); }
.stv-bib__where { margin: 8px 6px 0; font-size: 0.8rem; line-height: 1.4; color: var(--stv-muted); overflow-wrap: anywhere; }
.stv-bib--wide { grid-column: 1 / -1; padding-inline: 20px; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: 14px; align-content: center; }
.stv-bib--wide .stv-bib__dist, .stv-bib--wide .stv-bib__time { grid-column: 1; }
.stv-bib--wide .stv-bib__pace { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; margin: 0 6px 0 0; }
.stv-bib--wide .stv-bib__where { grid-column: 2; grid-row: 2; align-self: end; text-align: right; margin: 0 6px 8px 0; }
.stv-bib--wide .stv-bib__time, .stv-bib--wide .stv-bib__time.is-long, .stv-bib--wide .stv-bib__time.is-xl { font-size: 3.4rem; }
.stv-bib--wide .stv-bib__hole--tl, .stv-bib--wide .stv-bib__hole--bl { left: 12px; } .stv-bib--wide .stv-bib__hole--tr, .stv-bib--wide .stv-bib__hole--br { right: 12px; }
@media (min-width: 720px) {
  .stv-pbs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .stv-bib, .stv-bib--wide { grid-column: span 2; padding: 32px 16px 18px; }
  .stv-pbs--r2 .stv-bib:nth-last-child(-n+2) { grid-column: span 3; }
  .stv-pbs--r1 .stv-bib:last-child { grid-column: 1 / -1; }
  .stv-bib__time { font-size: 3rem; } .stv-bib__time.is-long { font-size: 2.6rem; } .stv-bib__time.is-xl { font-size: 2.3rem; }
  .stv-bib--wide .stv-bib__time, .stv-bib--wide .stv-bib__time.is-long, .stv-bib--wide .stv-bib__time.is-xl { font-size: 3.6rem; }
  .stv-bib__dist { font-size: 1.9rem; }
}

/* Mục tiêu */
.stv-goal {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  color: #fff; border-radius: var(--stv-radius); padding: 22px 20px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%), linear-gradient(135deg, #ff4d12 0%, #c2410c 100%);
  box-shadow: 0 24px 40px -22px rgba(194, 65, 12, 0.7);
}
.stv-goal::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.05), 0 0 0 58px rgba(255, 255, 255, 0.04); pointer-events: none; }
.stv-goal__body { position: relative; z-index: 1; min-width: 0; flex: 1 1 190px; }
.stv-goal__tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px 0 9px; border-radius: 999px; background: rgba(11, 14, 17, 0.28); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.stv-goal__tag .stv-ico { width: 16px; height: 16px; }
.stv-goal__name { margin: 12px 0 0; font-weight: 800; font-size: 1.3rem; line-height: 1.35; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(11, 14, 17, 0.25); }
.stv-goal__meta { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; font-weight: 700; font-size: 0.95rem; }
.stv-goal__meta li { display: flex; align-items: center; gap: 9px; }
.stv-goal__meta .stv-ico { width: 20px; height: 20px; opacity: 0.95; }
.stv-goal__count { position: relative; z-index: 1; width: 128px; height: 128px; flex: none; margin-inline: auto; }
.stv-goal__count--done { display: flex; align-items: center; justify-content: center; width: auto; height: auto; }
.stv-goal__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.stv-goal__track { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 8; }
.stv-goal__bar { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.stv-goal__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stv-goal__num { font-family: var(--stv-display); font-size: 3rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stv-goal__lab { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Giải nổi bật */
.stv-races { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stv-races li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--stv-radius); box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 22px -16px rgba(11, 14, 17, 0.35); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.stv-races .stv-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--stv-accent-ink); }
@media (min-width: 720px) { .stv-races { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Giới thiệu */
.stv-about { position: relative; background: #fff; border-radius: var(--stv-radius); padding: 20px 20px 20px 24px; box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 22px -16px rgba(11, 14, 17, 0.35); }
.stv-about::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--stv-accent); }
.stv-about p { margin: 0; max-width: 65ch; line-height: 1.75; overflow-wrap: anywhere; }

/* Dòng thông tin có icon (Thông tin, Thiết bị, Liên hệ) */
.stv-rows { list-style: none; margin: 0; padding: 6px 16px; display: grid; background: #fff; border-radius: var(--stv-radius); box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 22px -16px rgba(11, 14, 17, 0.35); }
.stv-rows li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; min-width: 0; }
.stv-rows li + li { border-top: 1px solid var(--stv-line); }
.stv-rows__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(14, 110, 115, 0.1); color: var(--stv-lake); }
.stv-rows__ico .stv-ico { width: 22px; height: 22px; }
.stv-rows__txt { display: flex; flex-direction: column; min-width: 0; }
.stv-rows__k { font-size: 0.78rem; font-weight: 700; color: var(--stv-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stv-rows__v { font-weight: 700; font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
.stv-rows a { color: var(--stv-accent-ink); text-decoration: none; }
.stv-rows a:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .stv-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .stv-rows li:nth-child(2) { border-top: 0; }
}

/* Strava */
.stv-strava { background: #fff; border: 1px solid rgba(11, 14, 17, 0.1); border-radius: var(--stv-radius); padding: 14px; box-shadow: 0 18px 34px -22px rgba(11, 14, 17, 0.45); }
.stv-strava__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 12px; }
.stv-strava__brand { display: inline-flex; align-items: center; gap: 8px; color: #fc4c02; }
.stv-strava__mark { width: 26px; height: 26px; }
.stv-strava-logo { font-weight: 900; font-size: 1.45rem; letter-spacing: 0.04em; font-style: italic; line-height: 1; }
.stv-strava-btn { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #fc4c02; color: var(--stv-ink); text-decoration: none; font-weight: 800; font-size: 0.97rem; transition: background 0.2s ease, transform 0.15s ease; white-space: nowrap; }
.stv-strava-btn:hover { background: #ff6a2b; color: var(--stv-ink); }
.stv-strava-btn:active { transform: scale(0.97); }
.stv-strava-embed { max-width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(11, 14, 17, 0.12); background: #fff; box-shadow: 0 8px 20px -14px rgba(11, 14, 17, 0.4); }
.stv-strava-frame { display: block; width: 100%; max-width: 100%; border: 0; }
.stv-strava__club { margin: 12px 0 0; font-size: 0.86rem; text-align: center; }
.stv-strava__club a { display: inline-flex; align-items: center; min-height: 44px; color: var(--stv-muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.stv-strava__club a:hover { color: #c43c00; }

/* Kết nối */
.stv-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.stv-social a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; min-width: 48px; padding: 0 20px 0 16px; background: #fff; color: var(--stv-ink); border: 1.5px solid rgba(11, 14, 17, 0.85); border-radius: 999px; font-weight: 800; text-decoration: none; transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.stv-social a:hover { background: var(--stv-ink); color: var(--stv-paper); }
.stv-social a:active { transform: scale(0.97); }
.stv-ico--brand { width: 22px; height: 22px; }
.stv-ico--wide { width: 62px; height: 24px; }

.stv-back { margin: 52px 0 0; }
.stv-back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; color: var(--stv-accent-ink); text-decoration: none; }
.stv-back a:hover { text-decoration: underline; }

.stv-toast { position: fixed; left: 50%; bottom: calc(var(--stv-tab) + 20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); z-index: 60; padding: 12px 22px; border-radius: 999px; background: var(--stv-ink); color: var(--stv-paper); font-weight: 800; font-size: 0.95rem; box-shadow: 0 12px 30px rgba(11, 14, 17, 0.4); opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.stv-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.stv-toast[hidden] { display: none; }
@media (min-width: 900px) { .stv-profile { --stv-tab: 0px; } }
@media (min-width: 520px) { .stv-strava-btn { flex: 0 0 auto; } }

/* Hiệu ứng vào trang theo khối (chỉ khi JS chạy) */
.stv-js .stv-rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.stv-js .stv-rv.is-in { opacity: 1; transform: none; }
.stv-js .stv-pbs .stv-bib { opacity: 0; transform: translateY(16px) rotate(-1deg); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.stv-js .stv-rv.is-in .stv-bib { opacity: 1; transform: none; }

/* ====== Danh bạ ====== */
.stv-count-line { margin: 8px 0 0; color: var(--stv-muted); font-weight: 600; }
.stv-search { position: relative; margin-top: 18px; max-width: 460px; }
.stv-search__ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--stv-muted); pointer-events: none; }
.stv-search input[type='search'] {
  display: block; width: 100%; min-height: 54px; padding: 0 20px 0 52px; font: inherit; font-size: 16px; color: var(--stv-ink);
  background: #fff; border: 1.5px solid rgba(11, 14, 17, 0.14); border-radius: 999px;
  box-shadow: 0 14px 28px -18px rgba(11, 14, 17, 0.5); -webkit-appearance: none; appearance: none;
}
.stv-search input[type='search']::placeholder { color: #6b6257; opacity: 1; }
.stv-search input[type='search']:focus { outline: 3px solid rgba(255, 77, 18, 0.35); border-color: var(--stv-accent); }
.stv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .stv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .stv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.stv-gcard[hidden] { display: none; }
.stv-gcard__link {
  position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; overflow: hidden; text-align: center;
  background: #fff; border-radius: var(--stv-radius); text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 14px 26px -18px rgba(11, 14, 17, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.stv-gcard__link::before {
  content: ''; align-self: stretch; height: 70px; background:
    radial-gradient(80% 140% at 0% 0%, rgba(14, 110, 115, 0.9), transparent 70%),
    radial-gradient(70% 120% at 100% 100%, rgba(255, 77, 18, 0.45), transparent 70%), var(--stv-ink);
}
.stv-gcard__link:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 14, 17, 0.06), 0 24px 36px -18px rgba(11, 14, 17, 0.5); }
.stv-gcard__link:active { transform: translateY(-1px) scale(0.985); }
.stv-gcard__photo { display: block; margin-top: -46px; position: relative; }
.stv-gcard__ring { display: block; width: 92px; height: 92px; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #ff4d12, #ff9a62 30%, #c2410c 58%, #ff4d12); box-shadow: 0 8px 16px -8px rgba(11, 14, 17, 0.6); }
.stv-gcard__ring img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; background: var(--stv-lake); }
.stv-gcard__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--stv-lake); font-family: var(--stv-display); font-size: 2rem; color: var(--stv-paper); }
.stv-gcard__body { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 12px 16px; min-width: 0; width: 100%; }
.stv-gcard__name { font-family: var(--stv-display); font-size: 1.3rem; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.stv-gcard__nick { color: var(--stv-accent-ink); font-weight: 700; font-size: 0.88rem; overflow-wrap: anywhere; }
.stv-gcard__role { margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--stv-ink); color: var(--stv-paper); font-size: 0.76rem; font-weight: 800; overflow-wrap: anywhere; }
.stv-gcard__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.stv-pbchip { background: rgba(255, 77, 18, 0.12); color: #9a3412; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.stv-pbchip b { font-weight: 900; }
.stv-empty { text-align: center; color: var(--stv-muted); padding: 32px 0; }
.stv-js .stv-gcard.stv-rv { transition-delay: calc(min(var(--i, 0), 8) * 40ms); }

@media (prefers-reduced-motion: reduce) {
  .stv-switch__track, .stv-switch__track::after, .stv-gcard__link, .stv-share, .stv-social a, .stv-strava-btn, .stv-toast, .stv-goal__bar { transition: none; }
  .stv-js .stv-rv, .stv-js .stv-pbs .stv-bib { opacity: 1; transform: none; transition: none; }
}

.stv-congiap{margin:.5rem 0 0;font-weight:600;color:var(--stv-accent,#e8541e);font-size:1rem}
.stv-congiap:empty{display:none}

/* ====== Bảng xếp hạng /bang-xep-hang/ ====== */
.stv-bxh .archive-page__head { padding-bottom: 20px; }
.stv-bxh .stv-count-line { font-size: 0.95rem; line-height: 1.5; }
.stv-bxh .stv-count-line strong { color: var(--stv-ink); }
.stv-bxh .section__inner { padding-bottom: calc(68px + 28px); }
@media (min-width: 768px) { .stv-bxh .section__inner { padding-bottom: 32px; } }

/* Thanh tab viên thuốc */
.stv-seg { display: flex; gap: 2px; margin-top: 18px; padding: 4px; border-radius: 999px; background: rgba(11, 14, 17, 0.07); max-width: 520px; }
.stv-seg__a {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 0 6px; border-radius: 999px; text-decoration: none; color: var(--stv-ink);
  font-weight: 800; font-size: 0.92rem; line-height: 1.15; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease;
}
.stv-seg__a:hover { background: rgba(11, 14, 17, 0.08); color: var(--stv-ink); }
.stv-seg__a.is-on, .stv-seg__a.is-on:hover { background: var(--stv-ink); color: var(--stv-paper); }
.stv-seg__a:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }
.stv-seg--sm { margin-top: 12px; background: transparent; padding: 0; gap: 8px; }
.stv-seg--sm .stv-seg__a { min-height: 40px; font-size: 0.85rem; background: rgba(11, 14, 17, 0.07); }
.stv-seg--sm .stv-seg__a.is-on { background: var(--stv-accent); color: var(--stv-ink); }

/* Chuyển kỳ */
.stv-period { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; max-width: 520px; }
.stv-period__lbl { flex: 1 1 auto; text-align: center; font-weight: 800; font-size: 1.02rem; }
.stv-period__btn {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid var(--stv-ink); color: var(--stv-ink); text-decoration: none; font-size: 1.5rem; line-height: 1; font-weight: 800;
}
a.stv-period__btn:hover { background: var(--stv-ink); color: var(--stv-paper); }
a.stv-period__btn:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }
.stv-period__btn.is-off { opacity: 0.25; }

/* Khoảng ngày tuỳ chọn */
.stv-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; max-width: 520px; align-items: end; }
.stv-range__f { display: block; min-width: 0; }
.stv-range__f span { display: block; font-weight: 700; font-size: 0.82rem; color: var(--stv-muted); margin-bottom: 4px; }
.stv-range__f input {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 8px 10px; font: inherit; font-size: 16px; color: var(--stv-ink);
  background: #fff; border: 1.5px solid rgba(11, 14, 17, 0.28); border-radius: 10px; -webkit-appearance: none; appearance: none;
}
.stv-range__go {
  grid-column: 1 / -1; min-height: 48px; border: 0; border-radius: 999px; background: var(--stv-accent); color: var(--stv-ink);
  font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
}
.stv-range__go:hover { box-shadow: 0 10px 24px rgba(255, 77, 18, 0.35); }
.stv-range__note { margin: 6px 0 0; }

/* Bục vinh quang */
.stv-podium { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; gap: 8px; align-items: end; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stv-podium--1 { grid-template-columns: minmax(0, 1fr); max-width: 220px; margin-inline: auto; }
.stv-podium--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; margin-inline: auto; }
.stv-podium__i--1 { order: 2; }
.stv-podium__i--2 { order: 1; }
.stv-podium__i--3 { order: 3; }
.stv-podium--2 .stv-podium__i--1 { order: 1; }
.stv-podium--2 .stv-podium__i--2 { order: 2; }
.stv-podium__a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0;
  padding: 26px 6px 14px; background: #fff; color: inherit; text-decoration: none; border-radius: var(--stv-radius);
  box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 14px 26px -18px rgba(11, 14, 17, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.stv-podium__a:hover { transform: translateY(-3px); }
.stv-podium__a:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 3px; }
.stv-podium__i--1 .stv-podium__a { padding-top: 34px; padding-bottom: 20px; background: var(--stv-ink); color: var(--stv-paper); }
.stv-podium__i--1 .stv-podium__a::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255, 77, 18, 0.55), transparent 70%);
}
.stv-podium__medal {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--stv-display); font-size: 1.15rem; line-height: 1; color: var(--stv-ink);
  background: #c9ced3; border: 3px solid var(--stv-paper); box-shadow: 0 4px 10px -4px rgba(11, 14, 17, 0.6);
}
.stv-podium__i--1 .stv-podium__medal { background: #ffc233; width: 38px; height: 38px; top: -18px; font-size: 1.3rem; }
.stv-podium__i--3 .stv-podium__medal { background: #d9915a; }
.stv-podium__photo { position: relative; z-index: 1; display: block; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: var(--stv-lake); box-shadow: 0 8px 16px -10px rgba(11, 14, 17, 0.6); }
.stv-podium__i--1 .stv-podium__photo { width: 76px; height: 76px; border-color: var(--stv-accent); }
.stv-podium__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stv-bxh-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--stv-lake); color: var(--stv-paper); font-family: var(--stv-display); font-size: 1.3rem; line-height: 1; }
.stv-podium__i--1 .stv-bxh-ph { font-size: 1.8rem; }
.stv-podium__name {
  position: relative; z-index: 1; width: 100%; margin-top: 4px; font-family: var(--stv-display); font-size: 0.98rem; line-height: 1.3; text-transform: uppercase;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stv-podium__main { position: relative; z-index: 1; font-size: 0.82rem; font-weight: 700; color: var(--stv-muted); }
.stv-podium__main b { font-family: var(--stv-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--stv-accent-ink); }
.stv-podium__i--1 .stv-podium__main { color: #cfc9bd; }
.stv-podium__i--1 .stv-podium__main b { color: var(--stv-accent); font-size: 1.9rem; }
.stv-podium__sub { position: relative; z-index: 1; font-size: 0.74rem; font-weight: 700; color: var(--stv-muted); line-height: 1.35; }
.stv-podium__i--1 .stv-podium__sub { color: #cfc9bd; }
@media (min-width: 560px) {
  .stv-podium { gap: 16px; max-width: 640px; margin-inline: auto; }
  .stv-podium__photo { width: 72px; height: 72px; }
  .stv-podium__i--1 .stv-podium__photo { width: 96px; height: 96px; }
  .stv-podium__name { font-size: 1.15rem; }
}
@media (min-width: 560px) {
  .stv-podium--1 { max-width: 240px; }
  .stv-podium--2 { max-width: 460px; }
}

/* Danh sách từ hạng 4: thẻ gọn trên mobile, bảng trên desktop */
.stv-lb { display: grid; gap: 10px; }
.stv-lb__head { display: none; }
.stv-lb__row {
  display: grid; grid-template-columns: 34px repeat(4, minmax(0, 1fr)); gap: 4px 8px; align-items: center;
  padding: 12px 12px 10px; background: #fff; color: inherit; text-decoration: none; border-radius: var(--stv-radius);
  box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 20px -16px rgba(11, 14, 17, 0.45);
}
.stv-lb__row:hover { box-shadow: 0 2px 4px rgba(11, 14, 17, 0.08), 0 16px 26px -16px rgba(11, 14, 17, 0.5); }
.stv-lb__row:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }
.stv-lb__row .c-rank { grid-column: 1; grid-row: 1; font-family: var(--stv-display); font-size: 1.35rem; line-height: 1; color: var(--stv-muted); text-align: center; }
.stv-lb__row .c-who { grid-column: 2 / 5; grid-row: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.stv-lb__row .c-km { grid-column: 5; grid-row: 1; text-align: right; }
.stv-lb__row .c-km b { font-family: var(--stv-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.stv-lb__row .c-km i { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--stv-muted); }
.stv-lb__row .c-n, .stv-lb__row .c-d, .stv-lb__row .c-pace, .stv-lb__row .c-max { grid-row: 2; align-self: start; min-width: 0; display: flex; flex-direction: column; padding-top: 6px; border-top: 1px solid var(--stv-line); }
.stv-lb__row .c-n { grid-column: 2; }
.stv-lb__row .c-d { grid-column: 3; }
.stv-lb__row .c-pace { grid-column: 4; }
.stv-lb__row .c-max { grid-column: 5; text-align: right; align-items: flex-end; }
.stv-lb__row .c-n b, .stv-lb__row .c-d b, .stv-lb__row .c-pace b, .stv-lb__row .c-max b { font-size: 0.98rem; font-weight: 800; line-height: 1.25; }
.stv-lb__row .c-n i, .stv-lb__row .c-d i, .stv-lb__row .c-pace i, .stv-lb__row .c-max i { font-style: normal; font-size: 0.7rem; font-weight: 700; color: var(--stv-muted); line-height: 1.25; }
.stv-lb__row .is-main b { color: var(--stv-accent-ink); }
.stv-lb__photo { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--stv-lake); }
.stv-lb__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stv-lb__photo .stv-bxh-ph { font-size: 1rem; }
.stv-lb__name { min-width: 0; font-weight: 800; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .stv-lb { gap: 0; background: #fff; border-radius: var(--stv-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 14px 26px -18px rgba(11, 14, 17, 0.45); }
  .stv-lb__head, .stv-lb__row {
    grid-template-columns: 64px minmax(0, 1fr) 110px 90px 110px 110px 120px; gap: 0 12px; align-items: center; border-radius: 0; box-shadow: none; padding: 10px 18px;
  }
  .stv-lb__head { display: grid; background: var(--stv-ink); color: var(--stv-paper); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; padding-block: 12px; }
  .stv-lb__head .c-km, .stv-lb__head .c-n, .stv-lb__head .c-d, .stv-lb__head .c-pace, .stv-lb__head .c-max { text-align: right; }
  .stv-lb__row + .stv-lb__row { border-top: 1px solid var(--stv-line); }
  .stv-lb__row:hover { background: rgba(14, 110, 115, 0.06); box-shadow: none; }
  .stv-lb__row .c-rank, .stv-lb__head .c-rank { grid-column: 1; grid-row: auto; }
  .stv-lb__row .c-who, .stv-lb__head .c-who { grid-column: 2; grid-row: auto; }
  .stv-lb__row .c-km, .stv-lb__head .c-km { grid-column: 3; grid-row: auto; }
  .stv-lb__row .c-n, .stv-lb__head .c-n { grid-column: 4; grid-row: auto; }
  .stv-lb__row .c-d, .stv-lb__head .c-d { grid-column: 5; grid-row: auto; }
  .stv-lb__row .c-pace, .stv-lb__head .c-pace { grid-column: 6; grid-row: auto; }
  .stv-lb__row .c-max, .stv-lb__head .c-max { grid-column: 7; grid-row: auto; }
  .stv-lb__row .c-n, .stv-lb__row .c-d, .stv-lb__row .c-pace, .stv-lb__row .c-max { padding-top: 0; border-top: 0; text-align: right; align-items: flex-end; }
  .stv-lb__row .c-n i, .stv-lb__row .c-d i, .stv-lb__row .c-pace i, .stv-lb__row .c-max i, .stv-lb__row .c-km i { display: none; }
  .stv-lb__row .c-km b { font-size: 1.35rem; }
  .stv-lb__row .c-km { text-align: right; }
}

/* Hoạt động mới nhất */
.stv-bxh .stv-sec-title { font-family: var(--stv-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1.3; margin: 34px 0 14px; }
.stv-recent__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .stv-recent__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.stv-recent__i { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; background: #fff; border-radius: var(--stv-radius); box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 20px -16px rgba(11, 14, 17, 0.45); }
.stv-recent__photo { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--stv-lake); }
.stv-recent__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stv-recent__photo .stv-bxh-ph { font-size: 1.05rem; }
.stv-recent__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stv-recent__who a { color: var(--stv-ink); font-weight: 800; text-decoration: none; font-size: 0.95rem; }
.stv-recent__who a:hover { text-decoration: underline; }
.stv-recent__act { display: inline-flex; align-items: center; min-height: 28px; color: var(--stv-accent-ink); font-weight: 700; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.stv-recent__act:hover { color: #9a3412; }
.stv-recent__meta { font-size: 0.82rem; font-weight: 600; color: var(--stv-muted); }

/* Trống */
.stv-bxh-empty { text-align: center; max-width: 480px; margin: 12px auto 0; padding: 36px 20px; background: #fff; border-radius: var(--stv-radius); box-shadow: 0 1px 4px rgba(11, 14, 17, 0.08); }
.stv-bxh-empty__ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 77, 18, 0.12); color: var(--stv-accent-ink); }
.stv-bxh-empty__ico .stv-ico { width: 38px; height: 38px; }
.stv-bxh-empty h2 { font-family: var(--stv-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; line-height: 1.3; margin: 14px 0 6px; }
.stv-bxh-empty p { margin: 0 0 12px; color: var(--stv-muted); line-height: 1.6; }

/* Chú thích */
.stv-bxh-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--stv-line); font-size: 0.86rem; line-height: 1.6; color: var(--stv-muted); }
.stv-bxh-note p { margin: 0 0 8px; }
.stv-bxh-note__up { font-weight: 800; color: var(--stv-ink); }
.stv-bxh-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--stv-lake); font-weight: 800; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .stv-podium__a, .stv-seg__a { transition: none; } }

/* Nút "Bảng xếp hạng" ở danh bạ */
.stv-lbtn-wrap { margin: 14px 0 0; }
.stv-lbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--stv-ink); color: var(--stv-paper); font-weight: 800; font-size: 0.95rem; text-decoration: none; }
.stv-lbtn:hover { background: var(--stv-accent); color: var(--stv-ink); }
.stv-lbtn:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 3px; }
.stv-lbtn .stv-ico { width: 20px; height: 20px; }

/* ====== Challenge /challenge/ ====== */
.stv-pill--off { background: #e6e6e6; color: #444; }
.stv-lbtn-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.stv-lbtn--alt { background: transparent; color: var(--stv-ink); box-shadow: inset 0 0 0 2px var(--stv-ink); }
.stv-lbtn--alt:hover { background: var(--stv-accent); color: var(--stv-ink); box-shadow: inset 0 0 0 2px var(--stv-accent); }

/* Nhãn trạng thái */
.stc-badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.2;
  background: #e6e6e6; color: #333;
}
.stc-badge--dang { background: var(--stv-accent); color: var(--stv-ink); }
.stc-badge--sap { background: var(--stv-lake); color: #fff; }
.stc-badge--xong, .stc-badge--chua_cau_hinh { background: #d4d2cc; color: #333; }
.stc-badge--chot { background: var(--stv-ink); color: #ffc233; box-shadow: inset 0 0 0 1.5px #ffc233; }
.stc-badge--official { background: #ffc233; color: var(--stv-ink); text-transform: none; letter-spacing: 0; font-size: 0.82rem; }

/* Danh sách thẻ challenge */
.stc-group + .stc-group { margin-top: 12px; }
.stc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .stc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .stc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stc-card__a {
  display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden;
  background: #fff; color: inherit; text-decoration: none; border-radius: var(--stv-radius);
  box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 14px 26px -18px rgba(11, 14, 17, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.stc-card__a:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 14, 17, 0.06), 0 24px 36px -18px rgba(11, 14, 17, 0.5); }
.stc-card__a:active { transform: translateY(-1px) scale(0.985); }
.stc-card__a:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 3px; }
.stc-card__banner {
  position: relative; display: block; height: 128px; flex: none; overflow: hidden;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(14, 110, 115, 0.9), transparent 70%),
    radial-gradient(70% 120% at 100% 100%, rgba(255, 77, 18, 0.5), transparent 70%), var(--stv-ink);
}
.stc-card__banner::before {
  content: ''; position: absolute; right: -40px; top: -50px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 14px, rgba(242, 241, 237, 0.1) 14px 15px);
}
.stc-card__banner.has-img { background-size: cover; background-position: center; background-color: var(--stv-ink); }
.stc-card__banner.has-img::before { display: none; }
.stc-card__banner.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 14, 17, 0.1), rgba(11, 14, 17, 0.55)); }
.stc-card__banner .stc-badge { position: absolute; left: 14px; top: 14px; z-index: 2; }
.stc-card__body { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 18px; min-width: 0; }
.stc-card__name { font-family: var(--stv-display); font-size: 1.55rem; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.stc-card__when, .stc-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.9rem; font-weight: 600; color: var(--stv-muted); }
.stc-card__when { gap: 7px; }
.stc-card__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.stc-card .stv-ico { width: 18px; height: 18px; color: var(--stv-lake); }
.stc-card__cd { font-weight: 800; font-size: 0.88rem; color: var(--stv-accent-ink); }

/* Thanh tiến độ (thời gian, đội, người) */
.stc-bar, .stc-prog { display: block; height: 8px; border-radius: 999px; background: rgba(11, 14, 17, 0.1); overflow: hidden; }
.stc-bar i, .stc-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--stv-accent), #ff9a62); }
.stc-prog i { background: linear-gradient(90deg, var(--stv-lake), #4fb6bb); }

/* Hero challenge */
.stc-hero__bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; opacity: 0.5; }
.stc-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 14, 17, 0.45), rgba(11, 14, 17, 0.85)); }
.stc-crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 4px; color: rgba(242, 241, 237, 0.85); font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.stc-crumb:hover { color: var(--stv-paper); text-decoration: underline; }
.stc-crumb .stv-ico { width: 18px; height: 18px; }
.stc-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.stc-name { font-size: clamp(2.2rem, 9.5vw, 4.2rem); }
.stc-hero .stv-chipbar { margin-top: 18px; }
.stv-hchip--ch { padding: 0; }
.stv-hchip--ch a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 11px; color: inherit; text-decoration: none; border-radius: 999px; }
.stv-hchip--ch a:hover { text-decoration: underline; }
.stv-hchip--ch a:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }

/* Luật */
.stc-rules { list-style: none; margin: 0; padding: 6px 16px; background: #fff; border-radius: var(--stv-radius); box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 22px -16px rgba(11, 14, 17, 0.35); }
.stc-rules li { position: relative; padding: 13px 0 13px 24px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.stc-rules li + li { border-top: 1px solid var(--stv-line); }
.stc-rules li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--stv-accent); }
.stc-editor { margin-top: 14px; }
.stc-editor p { margin: 0 0 0.9em; }
.stc-editor p:last-child { margin-bottom: 0; }
.stc-editor img { max-width: 100%; height: auto; border-radius: 10px; }
.stc-editor a { color: var(--stv-accent-ink); }

/* Xếp hạng đội */
.stc-teams { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stc-team { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; background: #fff; border-radius: var(--stv-radius); box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 22px -16px rgba(11, 14, 17, 0.35); }
.stc-team__rank { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--stv-display); font-size: 1.4rem; line-height: 1; background: #c9ced3; color: var(--stv-ink); }
.stc-team--1 { background: var(--stv-ink); color: var(--stv-paper); }
.stc-team--1 .stc-team__rank { background: #ffc233; }
.stc-team--1 .stc-team__meta { color: #cfc9bd; }
.stc-team--1 .stc-bar { background: rgba(242, 241, 237, 0.18); }
.stc-team--3 .stc-team__rank { background: #d9915a; }
.stc-team__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stc-team__name { font-family: var(--stv-display); font-size: 1.3rem; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.stc-team__meta { font-size: 0.82rem; font-weight: 700; color: var(--stv-muted); }
.stc-team__val { text-align: right; white-space: nowrap; }
.stc-team__val b { font-family: var(--stv-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; color: var(--stv-accent-ink); }
.stc-team--1 .stc-team__val b { color: var(--stv-accent); }
.stc-team__val i { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--stv-muted); }
.stc-team--1 .stc-team__val i { color: #cfc9bd; }

/* Bảng xếp hạng cá nhân (từ hạng 4) */
.stc-list { display: grid; gap: 10px; margin-top: 4px; }
.stc-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: 'rank who main' '. info info' '. prog prog';
  gap: 6px 10px; align-items: center; min-height: 56px; padding: 12px; background: #fff; color: inherit; text-decoration: none; border-radius: var(--stv-radius);
  box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 20px -16px rgba(11, 14, 17, 0.45);
}
.stc-row:hover { box-shadow: 0 2px 4px rgba(11, 14, 17, 0.08), 0 16px 26px -16px rgba(11, 14, 17, 0.5); }
.stc-row:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }
.stc-row .c-rank { grid-area: rank; font-family: var(--stv-display); font-size: 1.35rem; line-height: 1; color: var(--stv-muted); text-align: center; }
.stc-row .c-who { grid-area: who; display: flex; align-items: center; gap: 10px; min-width: 0; }
.stc-row .c-main { grid-area: main; text-align: right; white-space: nowrap; }
.stc-row .c-main b { font-family: var(--stv-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--stv-accent-ink); }
.stc-row .c-main i { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--stv-muted); }
.stc-row .c-info { grid-area: info; font-size: 0.82rem; font-weight: 600; color: var(--stv-muted); overflow-wrap: anywhere; }
.stc-row .c-prog { grid-area: prog; }
.stc-who { display: flex; flex-direction: column; min-width: 0; }
.stc-who__sub { font-size: 0.78rem; font-weight: 700; color: var(--stv-lake); overflow-wrap: anywhere; }

.stc-done { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: #ffc233; color: var(--stv-ink); font-weight: 800; font-size: 0.74rem; line-height: 1.2; }
.stc-done--sm { margin-left: 4px; }
.stv-podium__a .stc-done { position: relative; z-index: 1; margin: 4px 0 0; }
.stc-official { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #fff3d1; color: #6b4300; font-weight: 800; line-height: 1.4; }
.stc-official .stv-ico { width: 22px; height: 22px; flex: none; }

/* Tham gia thế nào */
.stc-how { background: #fff; border-radius: var(--stv-radius); padding: 14px 18px 6px; box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 10px 22px -16px rgba(11, 14, 17, 0.35); }
.stc-how__closed { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #fff1d6; color: #7a4a00; font-weight: 800; }
.stc-how ol { list-style: none; counter-reset: stc; margin: 0 0 6px; padding: 0; }
.stc-how li { counter-increment: stc; position: relative; padding: 10px 0 10px 40px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.stc-how li::before { content: counter(stc); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--stv-ink); color: var(--stv-paper); font-family: var(--stv-display); font-size: 0.95rem; line-height: 1; }

/* Khối Challenge trên trang sửa hồ sơ */
.stc-mem { padding-bottom: 16px; scroll-margin-top: calc(var(--stv-hh) + 12px); }
.stc-mem__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.stc-mem__i { padding: 14px; border: 1.5px solid var(--stv-line); border-radius: 12px; min-width: 0; }
.stc-mem__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.stc-mem__name { font-family: var(--stv-display); font-size: 1.35rem; line-height: 1.3; text-transform: uppercase; color: var(--stv-ink); text-decoration: none; overflow-wrap: anywhere; }
.stc-mem__name:hover { text-decoration: underline; }
.stc-mem__when { margin: 6px 0 0; font-weight: 700; font-size: 0.9rem; color: var(--stv-lake); }
.stc-mem__rule { margin: 4px 0 8px; font-size: 0.92rem; line-height: 1.5; color: var(--stv-muted); }
.stc-mem__form { margin: 8px 0 0; }
.stc-mem__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
.stc-mem__btn--go { border: 0; background: var(--stv-accent); color: var(--stv-ink); }
.stc-mem__btn--go:hover { box-shadow: 0 10px 24px rgba(255, 77, 18, 0.35); }
.stc-mem__btn--off { margin-top: 8px; border: 2px dashed rgba(11, 14, 17, 0.25); color: rgba(11, 14, 17, 0.45); cursor: not-allowed; }
.stc-mem__empty { margin: 4px 0 8px; color: var(--stv-muted); line-height: 1.6; }
.stc-mem__empty a { color: var(--stv-lake); font-weight: 800; }

@media (prefers-reduced-motion: reduce) { .stc-card__a { transition: none; } }
@media (min-width: 720px) {
  .stc-team { padding: 16px 20px; }
  .stc-team__body .stc-bar { max-width: 560px; height: 10px; }
  .stc-card__banner { height: 148px; }
}

/* ====== Sở trường, cự ly dài nhất, mã thành viên (v1.3) ====== */
.stv-hchip--road { background: rgba(14, 110, 115, 0.5); border-color: rgba(95, 183, 187, 0.65); font-weight: 700; }
.stv-hchip--trail { background: rgba(255, 77, 18, 0.2); border-color: rgba(255, 138, 87, 0.7); font-weight: 700; }
.stv-idtag {
  display: inline-block; margin: 0 0 12px; padding: 3px 11px; border-radius: 999px;
  font: 700 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em;
  color: rgba(242, 241, 237, 0.9); background: rgba(242, 241, 237, 0.07); border: 1px solid rgba(242, 241, 237, 0.28);
}

/* Thẻ cự ly dài nhất */
.stv-longest {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  padding: 20px 22px; border-radius: var(--stv-radius); color: var(--stv-paper);
  background: radial-gradient(70% 140% at 0% 0%, rgba(14, 110, 115, 0.6), transparent 70%), radial-gradient(60% 120% at 100% 100%, rgba(255, 77, 18, 0.28), transparent 70%), var(--stv-ink);
  box-shadow: 0 24px 40px -22px rgba(11, 14, 17, 0.65);
}
.stv-longest--after { margin-top: 14px; }
.stv-longest__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stv-longest__num { display: flex; align-items: baseline; gap: 8px; flex: none; font-family: var(--stv-display); }
.stv-longest__num b { font-weight: 400; font-size: clamp(3.6rem, 18vw, 5rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stv-longest__num small { font-size: 1.4rem; text-transform: uppercase; color: var(--stv-accent); }
.stv-longest__txt { display: flex; flex-direction: column; gap: 6px; flex: 1 1 150px; min-width: 0; }
.stv-longest__k { display: block; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.45; color: #ff8a57; }
.stv-longest__k .stv-ico { width: 17px; height: 17px; margin: -3px 7px 0 0; }
.stv-longest__where { font-size: 1.02rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }

/* Danh bạ: viên thuốc lọc + chip trên thẻ */
.stv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stv-fpill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid rgba(11, 14, 17, 0.28); background: #fff; color: var(--stv-ink); font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer;
}
.stv-fpill .stv-ico { width: 18px; height: 18px; }
.stv-fpill.is-on { background: var(--stv-ink); border-color: var(--stv-ink); color: var(--stv-paper); }
.stv-fpill:focus-visible { outline: 3px solid rgba(255, 77, 18, 0.55); outline-offset: 2px; }
.stv-gcard__id { margin-top: 4px; font: 700 0.74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; color: var(--stv-muted); }
.stv-gcard__chips--st { margin-top: 6px; gap: 5px; }
.stv-stchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; background: rgba(14, 110, 115, 0.12); color: #0b4f53; }
.stv-stchip--trail { background: rgba(194, 65, 12, 0.12); color: #9a3412; }
.stv-stchip .stv-ico { width: 14px; height: 14px; }
.stv-pbchip--long { background: rgba(11, 14, 17, 0.07); color: var(--stv-ink); }

/* Trang sửa hồ sơ: khối mã thành viên */
.stv-idcard { background: #fff; border-radius: var(--stv-radius); border-left: 5px solid var(--stv-accent); padding: 16px 16px 14px; margin: 0 0 18px; box-shadow: 0 1px 4px rgba(11, 14, 17, 0.08); }
.stv-idcard--wait { border-left-color: var(--stv-lake); }
.stv-idcard__t { margin: 0 0 6px; font: inherit; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stv-muted); }
.stv-idcard__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 6px; }
.stv-idcard__code { font-family: var(--stv-display); font-weight: 400; font-size: 2.5rem; line-height: 1.2; letter-spacing: 0.04em; }
.stv-idcard__lab { margin: 10px 0 6px; font-size: 0.92rem; line-height: 1.5; }
.stv-idcard__ck { font: 700 1.05rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--stv-paper); padding: 7px 11px; border-radius: 8px; overflow-wrap: anywhere; }
.stv-idcard__note, .stv-idcard__wait { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--stv-muted); }
.stv-idcard__wait { font-size: 1rem; color: var(--stv-ink); font-weight: 600; }
.stv-btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }

/* ====== Lọc sinh nhật / con giáp (hồ sơ -> danh bạ) ====== */
.stv-rows li.stv-rows__li--lnk { padding: 0; }
.stv-rows .stv-rows__lnk { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; min-height: 64px; padding: 10px 0; color: inherit; text-decoration: none; border-radius: 12px; }
.stv-rows__lnk .stv-rows__v { color: var(--stv-accent-ink); text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.stv-rows__lnk:hover .stv-rows__v { text-decoration-style: solid; }
.stv-rows__go { flex: none; margin-left: auto; width: 20px; height: 20px; color: var(--stv-accent-ink); }
.stv-rows .stv-rows__lnk:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }
.stv-hchip--lnk { padding: 0; }
.stv-hchip--lnk a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px 0 11px; color: inherit; text-decoration: none; border-radius: 999px; }
.stv-hchip--lnk .stv-hchip__t { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.stv-hchip--lnk a:hover .stv-hchip__t { text-decoration-style: solid; }
.stv-hchip__go { width: 15px; height: 15px; opacity: 0.8; }
.stv-hchip--lnk a:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }

.stv-dir-h1 { font-size: clamp(1.9rem, 6.2vw, 3.6rem); overflow-wrap: anywhere; }
.stv-dirclear { margin: 12px 0 0; }
.stv-dirf { margin-top: 14px; max-width: 560px; background: #fff; border: 1.5px solid rgba(11, 14, 17, 0.14); border-radius: var(--stv-radius); box-shadow: 0 14px 28px -20px rgba(11, 14, 17, 0.45); }
.stv-dirf__sum { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; font-weight: 800; cursor: pointer; list-style: none; border-radius: var(--stv-radius); }
.stv-dirf__sum::-webkit-details-marker { display: none; }
.stv-dirf__sum .stv-ico { width: 22px; height: 22px; flex: none; color: var(--stv-accent-ink); }
.stv-dirf__sum span { flex: 1 1 auto; min-width: 0; }
.stv-dirf__sum .stv-dirf__go { width: 18px; height: 18px; color: var(--stv-muted); transition: transform 0.2s ease; }
.stv-dirf[open] .stv-dirf__go { transform: rotate(90deg); }
.stv-dirf__sum:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }
.stv-dirf__body { padding: 2px 16px 16px; }
.stv-dirf__h { margin: 12px 0 8px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stv-muted); }
.stv-dirgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stv-dirgrid + .stv-dirf__h { margin-top: 18px; }
.stv-dirgrid:last-child { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stv-dchip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 6px 4px; border-radius: 14px;
  border: 1.5px solid rgba(11, 14, 17, 0.2); background: #fff; color: var(--stv-ink); text-decoration: none; text-align: center; line-height: 1.2;
}
.stv-dchip b { font-weight: 800; font-size: 0.92rem; }
.stv-dchip small { font-size: 0.68rem; font-weight: 800; color: var(--stv-accent-ink); white-space: nowrap; }
.stv-dchip__em { font-size: 1.3rem; line-height: 1.1; }
.stv-dchip.is-now { border-color: var(--stv-accent); background: rgba(255, 77, 18, 0.07); }
.stv-dchip:hover { border-color: var(--stv-ink); }
.stv-dchip.is-on { background: var(--stv-ink); border-color: var(--stv-ink); color: var(--stv-paper); }
.stv-dchip.is-on small { color: #ff8a57; }
.stv-dchip:focus-visible { outline: 3px solid var(--stv-accent); outline-offset: 2px; }
@media (min-width: 520px) { .stv-dirgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stv-dirgrid:last-child { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stv-gcard__chips--sn { margin-top: 6px; gap: 5px; }
.stv-snchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; background: rgba(255, 77, 18, 0.12); color: #9a3412; }
.stv-snchip--con { background: rgba(14, 110, 115, 0.12); color: #0b4f53; padding-left: 9px; }
.stv-snchip .stv-ico { width: 14px; height: 14px; }
.stv-dirempty { text-align: center; max-width: 420px; margin: 8px auto 0; padding: 32px 20px; background: #fff; border-radius: var(--stv-radius); box-shadow: 0 1px 2px rgba(11, 14, 17, 0.06), 0 14px 26px -18px rgba(11, 14, 17, 0.45); }
.stv-dirempty__ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 77, 18, 0.12); color: var(--stv-accent-ink); }
.stv-dirempty__ico .stv-ico { width: 32px; height: 32px; }
.stv-dirempty__t { margin: 14px 0 0; font-weight: 800; font-size: 1.1rem; line-height: 1.4; overflow-wrap: anywhere; }
.stv-dirempty__s { margin: 6px 0 18px; color: var(--stv-muted); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .stv-dirf__sum .stv-dirf__go { transition: none; } }

/* Ẩn ảnh hồ sơ: vòng tròn chữ cái đầu (Anton) nền theo bảng màu theme, giữ vòng viền cam như ảnh thật (viền do khung ngoài đảm nhiệm) */
.stv-avc--0 { background: var(--stv-lake); color: var(--stv-paper); }
.stv-avc--1 { background: var(--stv-ink); color: var(--stv-accent); }
.stv-avc--2 { background: var(--stv-accent-ink); color: var(--stv-paper); }
.stv-avc--3 { background: #0b4f53; color: var(--stv-paper); }
.stv-avc--4 { background: var(--stv-muted); color: var(--stv-paper); }
.stv-avatar__ph.is-an { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--stv-display); font-size: 3.4rem; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; }
.stv-gcard__ph.is-an, .stv-bxh-ph.is-an { text-transform: uppercase; letter-spacing: 0.03em; }

/* ====== Ô chọn số thành viên (5 chữ số) ====== */
.stv-card--so { border-left: 5px solid var(--stv-accent); }
.stv-so__wrap { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.stv-so__pre { flex: none; font-family: var(--stv-display); font-size: 2rem; line-height: 1.2; letter-spacing: 0.04em; color: var(--stv-muted); }
.stv-form input.stv-so__in[type='text'] {
  max-width: 280px; min-height: 64px; padding: 8px 14px; text-align: center;
  font-family: var(--stv-display); font-weight: 400; font-size: 2.4rem; line-height: 1.3; letter-spacing: 0.3em; text-indent: 0.3em;
  font-variant-numeric: tabular-nums;
}
.stv-so__st { min-height: 1.6em; margin: 6px 0 0; font-size: 1.02rem; font-weight: 700; line-height: 1.5; color: var(--stv-muted); }
.stv-so__st.is-ok { color: #0b4f53; }
.stv-so__st.is-bad { color: var(--stv-danger); }
.stv-so__act { margin: 10px 0 0; }
.stv-so__lab { margin: 14px 0 8px; font-size: 0.92rem; font-weight: 700; line-height: 1.5; }
.stv-so__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stv-sochip {
  min-height: 48px; min-width: 88px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(11, 14, 17, 0.28); background: #fff; color: var(--stv-ink);
  font: 800 1.1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em;
}
.stv-sochip:hover { border-color: var(--stv-ink); }
.stv-sochip:focus-visible { outline: 3px solid rgba(255, 77, 18, 0.55); outline-offset: 2px; }
.stv-thanks__so { margin: 8px 0 14px; font-size: 1.05rem; line-height: 1.6; }
.stv-thanks__so strong { font-family: var(--stv-display); font-weight: 400; font-size: 1.8rem; letter-spacing: 0.08em; }
.stv-thanks__so span { display: block; font-size: 0.9rem; color: var(--stv-muted); }
@media (max-width: 380px) { .stv-form input.stv-so__in[type='text'] { font-size: 2rem; letter-spacing: 0.22em; } }

/* Trang duyệt thành viên (BQT) */
.stv-duyet { padding: 18px 0; border-top: 1px solid var(--stv-line, #e5e1d8); }
.stv-duyet:first-of-type { border-top: 0; }
.stv-duyet__top { display: flex; gap: 14px; align-items: center; }
.stv-duyet__anh { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.stv-duyet__anh--trong { display: grid; place-items: center; background: #dcd6ca; color: #4a4339; font-weight: 700; font-size: 1.4rem; }
.stv-duyet__ten { margin: 0; font-weight: 700; font-size: 1.1rem; }
.stv-duyet__nick { font-weight: 400; color: var(--stv-muted); }
.stv-duyet__meta { margin: 2px 0 0; color: var(--stv-muted); font-size: 0.92rem; }
.stv-duyet__info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 0.95rem; }
.stv-duyet__info dt { color: var(--stv-muted); }
.stv-duyet__info dd { margin: 0; overflow-wrap: anywhere; }
.stv-duyet__nut { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stv-duyet__nut form { margin: 0; }
.stv-duyet__xong { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.stv-duyet__link { width: 100%; font-family: ui-monospace, monospace; font-size: 0.85rem; padding: 10px; border: 1px solid var(--stv-line); border-radius: 10px; background: #fff; }
.stv-duyet__tim { width: 100%; min-height: 48px; padding: 0 14px; margin: 12px 0 4px; border: 1px solid var(--stv-line); border-radius: 12px; font-size: 1rem; }
.stv-duyet__ds { list-style: none; margin: 0; padding: 0; }
.stv-duyet__ds li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--stv-line); }
.stv-duyet__ds li[hidden] { display: none; }
.stv-duyet__ds form { margin: 0; flex: none; }
.stv-duyet__ds li > span { flex: 1; min-width: 0; }
.stv-duyet__xoa { background: none; border: 0; padding: 8px 4px; color: var(--stv-danger); font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }

/* Nộp quỹ */
.stv-quy__t { margin: 10px 0 8px; font-weight: 700; }
.stv-quy__chon { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.stv-quy__o { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid #d9d5cc; border-radius: 999px; background: #fff; cursor: pointer; font-size: 0.95rem; }
.stv-quy__o:has(input:checked) { border-color: var(--stv-accent); background: #fff4ee; }
.stv-quy__tien { margin: 0 0 8px; font-size: 1.05rem; }
.stv-quy__tien strong { font-size: 1.3rem; }
.stv-quy__qr { margin: 12px 0; }
.stv-quy__qr img { display: block; width: 240px; max-width: 100%; height: auto; image-rendering: pixelated; border: 1px solid #e3dfd6; border-radius: 12px; background: #fff; }
.stv-quy__qrtip { margin: 8px 0; font-size: 0.9rem; color: var(--stv-muted); }
.stv-quy__tk { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.7; }
/* Đổi số thành viên (hồ sơ đã duyệt): thu gọn, bấm mới mở ô chọn số */
.stv-sodoi { margin: 0 0 18px; }
.stv-sodoi__sum { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(11, 14, 17, 0.08); list-style: none; }
.stv-sodoi__sum::-webkit-details-marker { display: none; }
.stv-sodoi__sum::after { content: '▾'; font-size: 0.8em; color: var(--stv-muted); }
.stv-sodoi[open] > .stv-sodoi__sum { margin-bottom: 12px; }
.stv-sodoi[open] > .stv-sodoi__sum::after { content: '▴'; }
.stv-sodoi__note { margin: -6px 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--stv-muted); }
