
/* Canonical left rail — measured from the approved FreeLLM boards (1448-1491 × 1055-1086).
   Loads last on the board pages (home / models / skills) and overrides every per-page rail hack. */

/* Icon artwork (alpha masks; color comes from background-color). */
:root {
  --rail-i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 10.9 12 4.4l7.8 6.5'/%3E%3Cpath d='M6.1 9.4v9.2a1.9 1.9 0 0 0 1.9 1.9h8a1.9 1.9 0 0 0 1.9-1.9V9.4'/%3E%3Cpath d='M9.9 20.4v-3.9a2.1 2.1 0 0 1 4.2 0v3.9'/%3E%3C/svg%3E");
  --rail-i-models: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E");
  --rail-i-skills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='M3.3 7 12 12l8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
  --rail-i-tools: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7.6' width='16' height='12.8' rx='2.7'/%3E%3Cpath d='M9.5 7.6V6.3a2.5 2.5 0 0 1 5 0v1.3'/%3E%3Cpath d='M4.7 13.3c2.2 1.9 12.4 1.9 14.6 0'/%3E%3C/svg%3E");
  --rail-i-workflow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.2 12A3.4 3.4 0 0 1 17.8 17.8 3.4 3.4 0 0 1 12 20.2 3.4 3.4 0 0 1 6.2 17.8 3.4 3.4 0 0 1 3.8 12 3.4 3.4 0 0 1 6.2 6.2 3.4 3.4 0 0 1 12 3.8 3.4 3.4 0 0 1 17.8 6.2 3.4 3.4 0 0 1 20.2 12Z'/%3E%3Cpath d='M9.7 14.3 14.3 9.7M14.3 9.7h-3M14.3 9.7v3'/%3E%3C/svg%3E");
  --rail-i-logs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11.4' cy='9.2' r='3.5'/%3E%3Cpath d='M5.2 20.3a6.5 6.5 0 0 1 12.5 0'/%3E%3Cpath d='M18.7 3.1l.8 1.9 1.9.8-1.9.8-.8 1.9-.8-1.9-1.9-.8 1.9-.8z' fill='black' stroke='none'/%3E%3C/svg%3E");
  --rail-i-about: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 11.3v4.9'/%3E%3Cpath d='M12 7.7h.01' stroke-width='2.5'/%3E%3C/svg%3E");
  --rail-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 5.5 16 12l-6.5 6.5'/%3E%3C/svg%3E");
  --rail-i-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.1' fill='black' stroke='none'/%3E%3Cpath d='M12 2.2v2.3M12 19.5v2.3M2.2 12h2.3M19.5 12h2.3M4.9 4.9l1.6 1.6M17.5 17.5l1.6 1.6M19.1 4.9l-1.6 1.6M6.5 17.5l-1.6 1.6'/%3E%3C/svg%3E");
  --rail-i-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.4 13.2A8.4 8.4 0 1 1 10.8 3.6a6.9 6.9 0 0 0 9.6 9.6z'/%3E%3C/svg%3E");
}

@media (min-width: 801px) {

body[data-reference-style="v1"][data-fl-section="home"] {
  --fl-reference-rail: clamp(116px, 13.5vw, 188px);
  --ml-rail: var(--fl-reference-rail);
}
body[data-reference-style="v1"][data-fl-section="models"] {
  --fl-reference-rail: clamp(116px, 14.2vw, 188px);
  --ml-rail: var(--fl-reference-rail);
}
body[data-reference-style="v1"][data-fl-section="skills"] {
  --fl-reference-rail: clamp(116px, 14vw, 188px);
}

  /* ---------- rail shell: prototype-scaled navy column with board artwork ---------- */
  body[data-reference-style="v1"][data-fl-section="home"] > .fl-site-rail,
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail,
  body[data-reference-style="v1"][data-fl-section="skills"] > .fl-site-rail,
  body[data-fl-section="models"][data-reference-style="v1"] > .fl-site-rail {
    width: var(--fl-reference-rail, 188px) !important;
    padding: 14px 14px 20px !important;
    background:
      radial-gradient(circle at 45% 34%, rgba(43, 128, 246, .12), transparent 34%),
      linear-gradient(180deg, #081124 0%, #081530 40%, #0a1c3d 58%, #0b2148 100%) !important;
    box-shadow: 10px 0 36px rgba(16, 50, 91, .08) !important;
  }
  body[data-fl-section="models"][data-reference-style="v1"] { --ml-rail: var(--fl-reference-rail, 188px); }

  /* bottom artwork: script note + night mountains + baked footer, one board-accurate image */
  body[data-reference-style="v1"][data-fl-section="home"] > .fl-site-rail::after,
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail::after,
  body[data-fl-section="models"][data-reference-style="v1"] > .fl-site-rail::after,
  body[data-reference-style="v1"][data-fl-section="skills"] > .fl-site-rail::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 460px !important;
    background: url("../assets/reference/rail-bottom.png") center bottom / 100% 460px no-repeat !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    z-index: 0 !important;
    pointer-events: none !important;
  }

  /* ---------- brand: sphere mark + wordmark ---------- */
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand {
    position: relative !important;
    z-index: 2 !important;
    gap: 10px !important;
    padding: 0 4px 14px !important;
    margin: 0 0 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .13) !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand-mark,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand-mark,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand-mark {
    width: 42px !important; height: 42px !important; flex: none !important;
    border: 0 !important; border-radius: 50% !important;
    background: url("../assets/reference/rail-brand.png") center / cover no-repeat !important;
    box-shadow: none !important;
    clip-path: none !important;
    font-size: 0 !important;
    color: transparent !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand-mark::before { content: none !important; }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand-copy strong,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand-copy strong,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand-copy strong {
    color: #fff !important;
    font-size: 21px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand-copy small,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand-copy small,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand-copy small {
    display: block !important;
    margin-top: 4px !important;
    color: #a8c3e7 !important;
    font-size: 10px !important;
    letter-spacing: .01em !important;
  }

  /* ---------- nav: board geometry, svg icons, gradient active pill ---------- */
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav > a,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a {
    position: relative !important;
    min-height: 42px !important;
    padding: 0 10px 0 21px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #d9e7fb !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a:hover,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav > a:hover,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a:hover {
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
    transform: none !important;
  }

  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav-icon,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav-icon,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav-icon {
    width: 20px !important;
    height: 20px !important;
    flex: none !important;
    font-size: 0 !important;
    text-align: left !important;
    color: inherit !important;
    background-color: #d3e3fa !important;
    -webkit-mask: var(--rail-icon, none) center / contain no-repeat;
    mask: var(--rail-icon, none) center / contain no-repeat;
  }
  body[data-reference-style="v1"] .fl-site-nav > a[data-site-nav="home"] { --rail-icon: var(--rail-i-home); }
  body[data-reference-style="v1"] .fl-site-nav > a[data-site-nav="models"] { --rail-icon: var(--rail-i-models); }
  body[data-reference-style="v1"] .fl-site-nav > a[data-site-nav="skills"] { --rail-icon: var(--rail-i-skills); }
  body[data-reference-style="v1"] .fl-site-nav > a[data-site-nav="tools"] { --rail-icon: var(--rail-i-tools); }
  body[data-reference-style="v1"] .fl-site-nav > a[data-site-nav="workflow"] { --rail-icon: var(--rail-i-workflow); }
  body[data-reference-style="v1"] .fl-site-nav > a[data-site-nav="logs"] { --rail-icon: var(--rail-i-logs); }
  body[data-reference-style="v1"] .fl-site-nav > a[data-site-nav="about"] { --rail-icon: var(--rail-i-about); }

  /* active item: blue gradient pill + rail-edge accent bar + chevron */
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a[aria-current="page"],
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav > a[aria-current="page"],
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a[aria-current="page"] {
    color: #fff !important;
    background: linear-gradient(90deg, #1e52b9 0%, #16347e 55%, #0d1e41 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px rgba(3, 74, 174, .28) !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a[aria-current="page"] .fl-site-nav-icon,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav > a[aria-current="page"] .fl-site-nav-icon,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a[aria-current="page"] .fl-site-nav-icon {
    background-color: #fff !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a[aria-current="page"]::before,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav > a[aria-current="page"]::before,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a[aria-current="page"]::before {
    content: "" !important;
    position: absolute !important;
    left: -14px !important; top: 1px !important; bottom: 1px !important;
    width: 4px !important;
    border-radius: 0 4px 4px 0 !important;
    background: linear-gradient(180deg, #2f80f4, #1c56c9) !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a[aria-current="page"]::after,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-nav > a[aria-current="page"]::after,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a[aria-current="page"]::after {
    content: "" !important;
    position: absolute !important;
    right: 10px !important; top: 50% !important;
    width: 8px !important; height: 13px !important;
    margin-top: -6.5px !important;
    background-color: #fff !important;
    -webkit-mask: var(--rail-i-chevron) center / contain no-repeat;
    mask: var(--rail-i-chevron) center / contain no-repeat;
  }

  /* red dot on 更新 now lives only in primary-menu.css (site-wide authority);
     a second definition here rendered a duplicate dot on v1 pages. */
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a[data-site-nav="logs"][aria-current="page"]::after {
    content: "" !important;
    position: absolute !important;
    right: 10px !important; top: 50% !important;
    width: 8px !important; height: 13px !important;
    margin-top: -6.5px !important;
    background-color: #fff !important;
    -webkit-mask: var(--rail-i-chevron) center / contain no-repeat;
    mask: var(--rail-i-chevron) center / contain no-repeat;
  }

  /* ---------- theme toggle: wide segmented pill below the nav ---------- */
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-theme-toggle,
  body[data-reference-style="v1"][data-fl-section="models"] .ml-rail-theme,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    order: 3 !important;
    flex: none !important;
    display: flex !important;
    align-items: center !important;
    width: 122px !important;
    height: 48px !important;
    margin: 52px 0 0 20px !important;
    padding: 4px !important;
    gap: 0 !important;
    border: 1px solid rgba(146, 180, 224, .16) !important;
    border-radius: 24px !important;
    background: rgba(24, 44, 78, .62) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02) !important;
    cursor: pointer;
  }
  /* knob = first (sun) side */
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-theme-toggle span,
  body[data-reference-style="v1"][data-fl-section="models"] .ml-rail-theme button,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-sun {
    position: relative !important;
    flex: 0 0 54px !important;
    height: 38px !important;
    display: block !important;
    border: 0 !important;
    border-radius: 19px !important;
    background: linear-gradient(180deg, #97abd0 0%, #5e739c 100%) !important;
    box-shadow: 0 4px 10px rgba(9, 27, 58, .45) !important;
    color: transparent !important;
    font-size: 0 !important;
    cursor: pointer;
  }
  /* moon side */
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-theme-toggle span:last-child,
  body[data-reference-style="v1"][data-fl-section="models"] .ml-rail-theme button:not(.is-active),
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-moon {
    flex: 1 1 auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  /* glyph masks */
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-theme-toggle span::after,
  body[data-reference-style="v1"][data-fl-section="models"] .ml-rail-theme button::after,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-sun::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important; top: 50% !important;
    width: 19px !important; height: 19px !important;
    margin: -9.5px 0 0 -9.5px !important;
    background-color: #fff !important;
    -webkit-mask: var(--rail-i-sun) center / contain no-repeat;
    mask: var(--rail-i-sun) center / contain no-repeat;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-theme-toggle span:last-child::after,
  body[data-reference-style="v1"][data-fl-section="models"] .ml-rail-theme button:not(.is-active)::after,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-moon::after {
    width: 18px !important; height: 18px !important;
    margin: -9px 0 0 -9px !important;
    background-color: #e8f0fc !important;
    -webkit-mask: var(--rail-i-moon) center / contain no-repeat;
    mask: var(--rail-i-moon) center / contain no-repeat;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-sun { order: -1; }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-label { display: none !important; }

  /* home keeps its static prototype toggle; hide the JS-appended pastel one */
  body[data-reference-style="v1"][data-fl-section="home"] > .fl-site-rail .fl-site-theme-toggle {
    display: none !important;
  }

  /* ---------- retire the DOM note/footer text (baked into the artwork) ---------- */
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-rail-note,
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-rail-note,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-rail-note,
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-rail-footer,
  body[data-reference-style="v1"][data-fl-section="models"] .ml-rail-footer,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-rail-footer {
    display: none !important;
  }

  /* ---------- content offsets follow the 188px rail ---------- */
  body[data-reference-style="v1"][data-fl-section="skills"] .skills-page {
    width: calc(100% - 188px) !important;
    margin: 0 0 0 188px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .ref-topbar { left: 188px !important; }
}

/* Keep the fixed rail artwork below the final navigation items on short viewports. */
@media (min-width: 801px) and (max-height: 900px) {
  body[data-reference-style="v1"][data-fl-section="home"] > .fl-site-rail::after,
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail::after,
  body[data-reference-style="v1"][data-fl-section="skills"] > .fl-site-rail::after {
    height: 220px !important;
    background-size: 100% 220px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav {
    flex: 0 0 auto !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle {
    position: relative !important;
    inset: auto !important;
    margin: 0 0 0 20px !important;
  }
}

/* Homepage board is 860px wide: keep the compact rail geometry at that scale. */
@media (min-width: 801px) and (max-width: 1100px) {
  body[data-reference-style="v1"][data-fl-section="home"] > .fl-site-rail {
    padding: 10px 11px 14px !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand {
    gap: 7px !important;
    padding: 0 2px 8px !important;
    margin: 0 0 3px !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand-mark {
    width: 29px !important;
    height: 29px !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand-copy strong { font-size: 15px !important; }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-brand-copy small { margin-top: 2px !important; font-size: 7px !important; }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav { gap: 3px !important; }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav > a {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 8px !important;
    gap: 9px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .fl-site-nav-icon {
    width: 16px !important;
    height: 16px !important;
    font-size: 0 !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-theme-toggle {
    position: absolute !important;
    top: 326px !important;
    bottom: auto !important;
    left: 20px !important;
    width: 72px !important;
    height: 25px !important;
    margin: 0 !important;
    padding: 3px !important;
    z-index: 3 !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] .prototype-theme-toggle span {
    flex: 0 0 31px !important;
    height: 19px !important;
  }
  body[data-reference-style="v1"][data-fl-section="home"] > .fl-site-rail::after {
    top: 390px !important;
    bottom: 0 !important;
    height: auto !important;
    background: url("../assets/reference/rail-bottom.png") center top / 100% 460px no-repeat !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail {
    padding: 10px 10px 14px !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand {
    gap: 7px !important;
    padding: 0 2px 8px !important;
    margin: 0 0 6px !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand-mark {
    width: 29px !important;
    height: 29px !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand-copy strong { font-size: 15px !important; }
  body[data-reference-style="v1"][data-fl-section="models"] .fl-site-brand-copy small { margin-top: 2px !important; font-size: 7px !important; }
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail .fl-site-nav { gap: 4px !important; }
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail .fl-site-nav > a {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    gap: 8px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail .fl-site-nav-icon {
    width: 16px !important;
    height: 16px !important;
    font-size: 0 !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail .ml-rail-theme {
    position: absolute !important;
    top: 382px !important;
    bottom: auto !important;
    left: 25px !important;
    width: 91px !important;
    height: 31px !important;
    margin: 0 !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail .ml-rail-theme button {
    width: 35px !important;
    height: 24px !important;
    font-size: 13px !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] > .fl-site-rail::after {
    height: 328px !important;
    background-size: 100% 328px !important;
  }
}

/* Skills rail follows the shared compact header navigation on narrow viewports. */
@media (max-width: 800px) {
  body[data-reference-style="v1"][data-fl-section="skills"] {
    --fl-reference-rail: 0px;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] > .fl-site-rail {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 10px 12px !important;
    overflow: visible !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] > .fl-site-rail::after,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-rail-note,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-rail-footer {
    display: none !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand {
    padding: 0 4px 9px !important;
    margin: 0 0 8px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand-mark {
    width: 32px !important;
    height: 32px !important;
    flex: none !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand-copy strong {
    font-size: 15px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-brand-copy small {
    font-size: 9px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a {
    min-height: 34px !important;
    height: 34px !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 6px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav > a > span:last-child {
    display: inline !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-nav-icon {
    width: auto !important;
    height: 15px !important;
    flex: none !important;
    font-size: 12px !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle {
    display: flex !important;
    position: absolute !important;
    top: 13px !important;
    right: 12px !important;
    width: 66px !important;
    min-height: 27px !important;
    height: 27px !important;
    margin: 0 !important;
    padding: 3px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #142c53 !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-label {
    display: none !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-moon,
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-sun {
    display: grid !important;
    flex: 1 1 50% !important;
    height: 19px !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }
  body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-sun {
    background: linear-gradient(180deg, #97abd0, #5e739c) !important;
  }
  html.fl-pastel-ui[data-theme="dark"] body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-sun {
    background: transparent !important;
  }
  html.fl-pastel-ui[data-theme="dark"] body[data-reference-style="v1"][data-fl-section="skills"] .fl-site-theme-toggle .fl-theme-moon {
    background: linear-gradient(180deg, #97abd0, #5e739c) !important;
  }
html.fl-pastel-ui body.fl-ui-v2[data-fl-section="skills"] .skills-page {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 14px 36px !important;
  }
}

/* Keep the persistent navigation typography identical on every v1 page. */
body.fl-ui-v2[data-reference-style="v1"][data-fl-section] > .fl-site-rail .fl-site-nav > a,
body.fl-ui-v2[data-reference-style="v1"][data-fl-section] > .fl-site-rail .fl-site-nav > a > span:last-child {
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
}
