/* ============================================================================
   Popup "Hướng dẫn chọn size" cho trang landing tự chứa
   (vd: /giay-chan-bet-xixa-y1207) — nơi KHÔNG nạp /css/styles.css.

   Mọi quy tắc .size-guide-*, .sg-*, .xsf-* dưới đây được rút thẳng từ
   styles.css để popup ở landing giống hệt popup ở trang chi tiết sản phẩm.
   Kèm theo font, biến màu và reset — nhưng đóng khung trong .size-guide-drawer
   / .size-guide-overlay để không đụng tới giao diện landing.

   Tệp này SINH RA TỰ ĐỘNG: sửa popup ở styles.css rồi chạy lại
   scripts/gen-size-guide-css.py, đừng sửa tay ở đây.
   ========================================================================== */

@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/google_sans_flex/googlesansflex-variablefont_grad,rond,opsz,slnt,wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* Biến màu của styles.css, giới hạn trong phạm vi popup */
.size-guide-overlay,
.size-guide-drawer {
  --green: #2f7d32;
  --green-deep: #006600;
  --green-dark: #245d27;
  --green-lime: #53a100;
  --green-lime2: #8fd14f;
  --green-light: #cfecac;
  --green-soft: #e6f4d2;
  --blue: #5bb4e5;
  --pink: #f17075;
  --orange: #f3a420;
  --yellow: #a1ca3a;
  --gray: #606161;
  --ink: #1f2421;
  --muted: #6b7280;
  --line: #e7ebe4;
  --bg-soft: #f6f8f4;
  --radius: 18px;
  --shadow: none;
  --shadow-lg: none;
  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Reset của styles.css, cũng chỉ áp trong popup */
.size-guide-drawer {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.size-guide-drawer * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.size-guide-drawer button,
.size-guide-drawer input,
.size-guide-drawer select,
.size-guide-drawer textarea { font-family: inherit; font-size: 100%; }
.size-guide-drawer button { cursor: pointer; border: none; background: none; color: inherit; }
.size-guide-drawer a { color: inherit; text-decoration: none; }
.size-guide-drawer img { display: block; max-width: 100%; }
.size-guide-drawer ul { list-style: none; }
.size-guide-drawer ol { list-style: decimal; }
.size-guide-drawer table { border-collapse: collapse; width: 100%; }

@media (min-width: 1081px) {
.size-guide-btn { font-size: 15px; }
}
.size-guide-btn {
  background: transparent;
  border: none;
  color: var(--green);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
  font-family: inherit;
}
.size-guide-btn:hover {
  color: var(--green-deep);
}
.size-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 12, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* Phải cao hơn .sticky-product-bar và .sticky-product-botbar (z-index 1005),
     nếu không thanh sản phẩm dính trên/dưới sẽ đè lên popup hướng dẫn size. */
  z-index: 1010;
}
.size-guide-overlay.open {
  opacity: 1;
  visibility: visible;
}
.size-guide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 480px;
  background: #fff;
  z-index: 1011;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s;
  display: flex;
  flex-direction: column;
  visibility: hidden; /* ẩn khi đóng để bóng không hắt vào mép màn hình */
}
.size-guide-drawer.open {
  transform: translateX(0);
  visibility: visible;
}
@media (min-width: 1081px) {
.size-guide-drawer { max-width: clamp(420px, 42vw, 620px); }
}
.sg-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.sg-drawer-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sg-drawer-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--gray);
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.sg-drawer-close:hover {
  color: var(--ink);
}
.sg-drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: #fdfdfd;
}
.sg-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 15px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.sg-tab-btn:hover {
  color: var(--green);
}
.sg-tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: #fff;
}
.sg-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.sg-tab-content {
  display: none;
  animation: sg-fade-in 0.25s ease forwards;
}
.sg-tab-content.active {
  display: block;
}
.sg-alert-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff3f3;
  border: 1px dashed #ffa39e;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.sg-alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.sg-alert-box p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #f5222d;
  line-height: 1.45;
}
.sg-table-container {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.sg-table {
  width: 100%;
  border-collapse: collapse;
}
.sg-table th {
  background: #f3f4f6;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 14px;
  text-align: center;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #e5e7eb;
}
.sg-table td {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid #edf0f5;
}
.sg-table tr:last-child td {
  border-bottom: none;
}
.sg-table tr:nth-child(even) td {
  background: #fafafa;
}
.sg-table td strong {
  font-weight: 700;
  color: var(--ink);
}
.sg-measure-instructions {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.sg-measure-instructions h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.sg-measure-instructions h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 16px;
}
.sg-measure-instructions ol {
  padding-left: 20px;
  margin: 0 0 24px;
}
.sg-measure-instructions li {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}
.sg-download-btn {
  display: block;
  width: 100%;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.sg-download-btn:hover {
  background: #333;
}
.sg-measure-illustration {
  border-top: 1px dashed var(--line);
  padding-top: 24px;
  text-align: center;
}
.sg-measure-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.sg-full-guide-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.sg-video-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.sg-guide-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 176px);
  max-height: calc(100dvh - 176px);
  aspect-ratio: 576 / 1024;
  border-radius: 12px;
  background: #000;
}
@media (max-height: 720px) {
.sg-guide-video { max-height: calc(100dvh - 150px); }
}
.sg-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 4px 0 18px;
  padding: 12px 16px;
  border: 1.5px dashed #b9dfa4;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4fbee 0%, #eaf6df 100%);
  color: var(--green);
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.sg-jump:hover { border-color: var(--green-lime); background: #eaf6df; transform: translateY(-1px); }
.sg-jump svg { width: 16px; height: 16px; animation: xsf-bob 1.6s ease-in-out infinite; }
.sg-guide-dl {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sg-guide-dl:hover {
  border-color: var(--green-lime);
  transform: translateY(-2px);
}
.sg-guide-dl-thumb {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.sg-guide-dl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sg-guide-dl-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-guide-dl-tx b { font-size: 14px; font-weight: 800; color: var(--ink); }
.sg-guide-dl-tx span { font-size: 12px; color: var(--muted); }
.sg-guide-dl-ic {
  margin-left: auto;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}
.sg-guide-dl-ic svg { width: 18px; height: 18px; }
.sg-guide-dl:hover .sg-guide-dl-ic svg { animation: xsf-dl 0.6s ease; }
.xsf {
  margin-top: 24px;
  padding: 20px 18px 18px;
  border: 1px solid #dcebd1;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, #eef8e4 0%, rgba(238, 248, 228, 0) 62%),
    linear-gradient(180deg, #fbfdf8 0%, #ffffff 55%);
}
.xsf.is-empty .xsf-modes,
.xsf.is-empty .xsf-pane,
.xsf.is-empty .xsf-run { opacity: .5; pointer-events: none; }
.xsf-head { margin-bottom: 16px; }
.xsf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.xsf-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-lime2);
  box-shadow: 0 0 0 0 rgba(143, 209, 79, .8);
  animation: xsf-pulse 1.9s ease-out infinite;
}
.xsf-title {
  margin: 10px 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.xsf-sub { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.xsf-sub b { color: var(--green); font-weight: 700; }
.xsf-modes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 14px;
  background: #edf3e7;
}
.xsf-mode-ink {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 11px;
  background: #fff;
  transition: transform .28s cubic-bezier(.25, 1, .5, 1);
  pointer-events: none;
}
.xsf-mode {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 8px;
  border: 0;
  border-radius: 11px;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}
.xsf-mode.is-on { color: var(--green); }
.xsf-mode-t { font-size: 13.5px; font-weight: 800; }
.xsf-mode-d { font-size: 11px; font-weight: 600; opacity: .75; }
.xsf-pane { display: none; }
.xsf-pane.is-on { display: block; animation: xsf-rise .28s ease both; }
.xsf-lb {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray);
}
.xsf-lb b { color: var(--pink); }
.xsf-stepper { display: flex; align-items: center; gap: 10px; }
.xsf-step {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.xsf-step:hover { background: var(--green-soft); border-color: var(--green-lime); }
.xsf-step:active { transform: scale(.92); }
.xsf-num, .xsf-inp {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.xsf-num:focus-within, .xsf-inp:focus-within {
  border-color: var(--green-lime);
  box-shadow: 0 0 0 3px rgba(143, 209, 79, .18);
}
.xsf-num input {
  width: 100%;
  padding: 11px 42px 11px 16px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  outline: none;
}
.xsf-inp input, .xsf-inp select {
  width: 100%;
  padding: 11px 40px 11px 13px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}
.xsf-inp-sel select { padding-right: 30px; appearance: none; cursor: pointer; }
.xsf-inp-sel::after {
  content: '';
  position: absolute;
  right: 14px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
.xsf-unit {
  position: absolute;
  right: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.xsf-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.xsf-quick-lb { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.xsf-quick-b {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: all .15s ease;
}
.xsf-quick-b:hover { border-color: var(--green-lime); color: var(--green); }
.xsf-quick-b.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.xsf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xsf-fld { min-width: 0; }
.xsf-gt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xsf-gt-b {
  padding: 11px 6px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: all .16s ease;
}
.xsf-gt-b:hover { border-color: var(--green-lime); }
.xsf-gt-b.is-on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}
.xsf-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.xsf-run {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-lime) 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.xsf-run svg { width: 18px; height: 18px; }
.xsf-run:hover { transform: translateY(-2px); filter: saturate(1.08); }
.xsf-run:active { transform: translateY(0) scale(.985); }
.xsf-err {
  margin: 12px 0 0;
  padding: 11px 14px;
  border: 1px dashed #ffa39e;
  border-radius: 12px;
  background: #fff4f3;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #d4380d;
  animation: xsf-rise .22s ease both;
}
.xsf-scan[hidden], .xsf-out[hidden], .xsf-err[hidden] { display: none !important; }
.xsf-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 0 18px;
  animation: xsf-rise .22s ease both;
}
.xsf-scan-box {
  position: relative;
  width: 62px;
  height: 100px;
  overflow: hidden;
}
.xsf-foot { width: 100%; height: 100%; display: block; animation: xsf-foot-beat 1.4s ease-in-out infinite; }
.xsf-foot-sole { fill: #dcebd1; }
.xsf-toe { fill: #c3e0ac; }
.xsf-scan-line {
  position: absolute;
  left: -6%;
  width: 112%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(83,161,0,0) 0%, var(--green-lime) 45%, var(--green-lime2) 55%, rgba(83,161,0,0) 100%);
  animation: xsf-scan 1.1s cubic-bezier(.55,0,.45,1) infinite;
}
.xsf-scan-tx { font-size: 12.5px; font-weight: 700; color: var(--green); }
.xsf-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe6bd;
  border-radius: 18px;
  background: #fff;
  animation: xsf-rise .34s cubic-bezier(.25, 1, .5, 1) both;
}
.xsf-hero { display: flex; align-items: center; gap: 15px; }
.xsf-ring {
  position: relative;
  flex: 0 0 92px;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: radial-gradient(circle at 32% 26%, #63b93a 0%, var(--green) 62%, var(--green-dark) 100%);
  color: #fff;
  animation: xsf-pop .45s cubic-bezier(.2, 1.5, .5, 1) both;
}
.xsf-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(143, 209, 79, .55);
  animation: xsf-halo 2.4s ease-out infinite;
}
.xsf-ring-lb { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; opacity: .82; }
.xsf-ring-sz { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.xsf-ring-us { font-size: 10px; font-weight: 700; opacity: .82; }
.xsf-hero-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xsf-hero-k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.xsf-tag-ref {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff4e3;
  color: #b26a00;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}
.xsf-hero-v { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.xsf-hero-d { font-size: 12.5px; color: var(--gray); }
.xsf-stock {
  align-self: flex-start;
  margin-top: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.xsf-stock.is-ok      { background: var(--green-soft); color: var(--green); }
.xsf-stock.is-low     { background: #fff3e0; color: #c25a00; }
.xsf-stock.is-out     { background: #ffece9; color: #d4380d; }
.xsf-stock.is-unknown { background: #f1f3f0; color: var(--muted); }
.xsf-warn, .xsf-alt {
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  animation: xsf-rise .3s ease both;
}
.xsf-warn { background: #fff8ec; border: 1px dashed #f0c078; color: #8a5a00; }
.xsf-alt  { background: #f4f8ff; border: 1px dashed #a9c8f5; color: #17457f; }
.xsf-alt b { font-weight: 800; }
.xsf-alt-b {
  display: inline-block;
  margin-top: 7px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: #17457f;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.xsf-alt-b:hover { filter: brightness(1.15); transform: translateY(-1px); }
.xsf-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
}
.xsf-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--bg-soft);
  text-align: center;
  animation: xsf-rise .3s ease both;
}
.xsf-fact:nth-child(2) { animation-delay: .05s; }
.xsf-fact:nth-child(3) { animation-delay: .1s; }
.xsf-fact-k { font-size: 10.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.xsf-fact-v { font-size: 17px; font-weight: 800; color: var(--ink); }
.xsf-fact-v i { font-size: 11px; font-style: normal; font-weight: 700; color: var(--muted); }
.xsf-fact-v.is-warn { color: #c25a00; }
.xsf-bmi-chuan { color: var(--green); }
.xsf-bmi-thua  { color: #c25a00; }
.xsf-bmi-beo   { color: #d4380d; }
.xsf-strip { margin-top: 16px; }
.xsf-strip-lb {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.xsf-strip-lb i { font-style: normal; font-weight: 600; opacity: .8; }
.xsf-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.xsf-chips::-webkit-scrollbar { height: 4px; }
.xsf-chips::-webkit-scrollbar-thumb { background: #d8e2d1; border-radius: 4px; }
.xsf-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 50px;
  padding: 8px 9px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--gray);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
  animation: xsf-chip-in .32s cubic-bezier(.25, 1, .5, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.xsf-chip:hover { border-color: var(--green-lime); transform: translateY(-2px); }
.xsf-chip-sz { font-size: 15px; font-weight: 800; color: var(--ink); }
.xsf-chip-cm { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.xsf-chip.is-pick {
  border-color: var(--green);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
}
.xsf-chip.is-pick .xsf-chip-sz, .xsf-chip.is-pick .xsf-chip-cm { color: #fff; }
.xsf-chip.is-pick .xsf-chip-cm { opacity: .85; }
.xsf-chip.is-alt { border-color: #17457f; border-style: dashed; }
.xsf-chip.is-out {
  opacity: .42;
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg, #f6f6f6 0 5px, #eee 5px 10px);
}
.xsf-chip.is-out:hover { transform: none; border-color: var(--line); }
.xsf-chip.is-out .xsf-chip-sz { text-decoration: line-through; }
.xsf-notes {
  margin: 15px 0 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.xsf-notes li {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.xsf-notes li::marker { color: var(--green-lime); }
.xsf-cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.xsf-cta:hover { background: #000; transform: translateY(-1px); }
.xsf-note-ref {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px dashed #f0c078;
  border-radius: 13px;
  background: #fffaf1;
}
.xsf-note-ref svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: #d08700; }
.xsf-note-ref p { margin: 0; font-size: 11.8px; line-height: 1.6; color: #7a5410; }
.xsf-note-ref b { font-weight: 800; color: #613f00; }
.xsf-note-ref a { color: var(--green); font-weight: 800; text-decoration: underline; }
@media (max-width: 430px) {
.xsf { padding: 18px 14px 16px; }
.xsf-grid { grid-template-columns: 1fr; }
.xsf-hero { gap: 12px; }
.xsf-ring { flex-basis: 80px; width: 80px; height: 80px; }
.xsf-ring-sz { font-size: 29px; }
.xsf-facts { grid-template-columns: 1fr 1fr; }
.xsf-facts .xsf-fact:nth-child(3) { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
.xsf-dot, .xsf-foot, .xsf-scan-line, .xsf-ring, .xsf-ring::after,
  .xsf-chip, .xsf-card, .xsf-pane.is-on, .xsf-fact, .sg-jump svg { animation: none !important; }
}
@keyframes sg-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes xsf-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@keyframes xsf-dl {
  0% { transform: translateY(-6px); opacity: .4; }
  60% { transform: translateY(3px); opacity: 1; }
  100% { transform: translateY(0); }
}
@keyframes xsf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143, 209, 79, .75); }
  70%  { box-shadow: 0 0 0 7px rgba(143, 209, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 209, 79, 0); }
}
@keyframes xsf-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes xsf-foot-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes xsf-scan {
  0%   { top: -4%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes xsf-pop { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes xsf-halo {
  0%   { transform: scale(.92); opacity: .9; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes xsf-chip-in { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
