:root { --season-line: color-mix(in srgb, var(--season-accent) 45%, var(--card-border)); }
:root, html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0b10; --fg: #e8e8ef; --muted: #8b8b9e; --sub: #b9b9c9;
    --date: #d5d5e2; --foot: #55556a;
    --card-bg: #121218; --card-border: #23232c;
    --bar-bg: #1c1c24;
    --flip-bg: #15151d; --flip-border: #26262f; --flip-flap: #1b1b26;
    --noise: #a898f0;
    --season-accent: #C2662A;
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
      color-scheme: light;
      --bg: #f6f6f9; --fg: #191922; --muted: #7a7a8c; --sub: #55556a;
      --date: #33333f; --foot: #a0a0b2;
      --card-bg: #ffffff; --card-border: #e7e7ef;
      --bar-bg: #e9e9f1;
      --flip-bg: #ffffff; --flip-border: #e3e3ec; --flip-flap: #f1f1f7;
      --noise: #5d487d;
      --season-accent: #C2662A;
    }
  }
  html[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f6f9; --fg: #191922; --muted: #7a7a8c; --sub: #55556a;
    --date: #33333f; --foot: #a0a0b2;
    --card-bg: #ffffff; --card-border: #e7e7ef;
    --bar-bg: #e9e9f1;
    --flip-bg: #ffffff; --flip-border: #e3e3ec; --flip-flap: #f1f1f7;
    --noise: #5d487d;
    --season-accent: #C2662A;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: var(--bg); color: var(--fg);
    font-family: 'Nunito', 'Noto Sans SC', ui-sans-serif, system-ui, -apple-system, sans-serif;
    min-height: 100vh;
  }
  .wrap { max-width: calc(1240px + 2*clamp(20px,4.4vw,48px)); margin: 0 auto; padding: 32px clamp(20px,4.4vw,48px) 32px; }

  header { text-align: center; margin-bottom: 56px; }
  .kicker { color: var(--muted); font-size: 13px; letter-spacing: .25em; margin-bottom: 14px; }
  h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 800; letter-spacing: .04em; margin-bottom: 10px; }
  .now-season { display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--sub); margin-bottom: 30px; }
  .now-season b { color: var(--fg); }
  .now-controls { display: inline-flex; align-items: center; }
  #year-select, #tz-select {
    margin-left: 10px; background: var(--card-bg); color: var(--fg);
    border: 1px solid var(--card-border); border-radius: 8px;
    padding: 3px 6px; font-size: 14px; font-family: inherit; cursor: pointer;
  }
  #year-select:disabled { opacity: .55; cursor: wait; }
  .year-err { margin-left: 10px; font-size: 13px; color: #e5484d; }

  .big-count { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
  .unit { display: flex; flex-direction: column; align-items: center; }
  .unit .lbl { margin-top: 8px; font-size: 12px; color: var(--muted); }

  /* 翻页时钟 */
  .flip { position: relative; height: 68px; perspective: 400px; }
  .flip.days { width: 74px; transition: width .3s ease; }
  .flip.days.wide { width: 118px; }
  .flip.two { width: 74px; }
  .flip .half {
    position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden;
    background: var(--flip-bg); border: 1px solid var(--flip-border);
  }
  .flip .upper { top: 0; border-radius: 10px 10px 0 0; border-bottom: none; }
  .flip .lower { bottom: 0; border-radius: 0 0 10px 10px; }
  .flip .half span, .flip .flap span {
    display: block; width: 100%; height: 68px; line-height: 68px;
    text-align: center; font-size: 40px; font-weight: 800;
    font-variant-numeric: tabular-nums; color: var(--fg);
  }
  .flip .lower span, .flip .flap.lower span { margin-top: -34px; }
  #flip-d .half span, #flip-d .flap span { color: var(--season-accent); }
  .flip .flap {
    position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden;
    background: var(--flip-flap); border: 1px solid var(--flip-border); z-index: 2;
    backface-visibility: hidden;
  }
  .flip .flap.upper { top: 0; border-radius: 10px 10px 0 0; border-bottom: none; transform-origin: 50% 100%; }
  .flip .flap.lower { bottom: 0; border-radius: 0 0 10px 10px; transform-origin: 50% 0%; }
  @keyframes flipDown { to { transform: rotateX(-90deg); } }
  @keyframes flipUp { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }
  @media (prefers-reduced-motion: reduce) {
    .flip .flap { display: none; }
  }

  .bar { height: 10px; background: var(--bar-bg); border-radius: 999px; overflow: hidden; }
  .bar.big { max-width: 560px; margin: 0 auto; height: 12px; }
  .fill {
    height: 100%; width: 0%; border-radius: 999px;
    background: linear-gradient(90deg, var(--c, #7ec8ff), var(--c2, #7ec8ff));
    transition: width .8s ease;
  }
  .pct { margin-top: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .year-row { margin-top: 18px; }
  /* 年进度条：轨道本身是四季渐变（1月1日→12月31日，按节气位置排布，从冬季色开始）；
     右侧遮罩盖住未走完的部分，left 即进度 */
  .year-bar { position: relative; background: var(--year-gradient, var(--bar-bg)); }
  .year-remain {
    position: absolute; top: 0; bottom: 0; right: 0; left: 0;
    background: var(--bar-bg); border-radius: 0 999px 999px 0;
    transition: left .8s ease;
  }
  /* 节气时间线：与年进度条等长；横线在图标下方穿过 */
  .year-track { position: relative; max-width: 560px; margin: 0 auto; }
  .terms-line { position: relative; height: 30px; margin-top: 12px; }
  .terms-rule {
    position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
    background: var(--year-gradient, var(--card-border)); border-radius: 2px; z-index: 1;
  }
  .term-mark {
    position: absolute; top: 50%; width: 22px; height: 22px;
    transform: translate(-50%, -50%); z-index: 2;
  }
  .now-dot {
    position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%;
    background: #e5484d; transform: translate(-50%, -50%); z-index: 6;
    box-shadow: 0 0 0 3px color-mix(in srgb, #e5484d 22%, transparent);
  }
  .aph-dot {
    position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%;
    background: #eab308; transform: translate(-50%, -50%); z-index: 3;
  }
  /* 竖指示线：横跨年进度条 + 节气时间线 */
  .progress-cursor {
    position: absolute; top: -12px; bottom: 0; width: 2px; margin-left: -1px;
    background: #e5484d; opacity: .75; z-index: 5; pointer-events: none;
  }

  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card {
    --c: #7ec8ff;
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px;
    padding: 22px 20px; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--c) 55%, var(--card-border));
    box-shadow: 0 14px 30px -12px rgba(0,0,0,.45), 0 0 22px -6px var(--c);
  }
  @media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
    .card:hover { transform: none; }
  }
  .card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--c); opacity: .9;
  }
  .card.next { border-color: var(--c); box-shadow: 0 0 24px -8px var(--c); }
  .card.done { opacity: .55; }
  .sname { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
  .syr { font-size: 14px; color: #999; font-weight: 600; vertical-align: middle; }
  .date { font-size: 15px; color: var(--date); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
  .card .bar { margin-bottom: 10px; }
  .sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 20px; }
  .sub.hot { color: var(--c); font-weight: 600; }
  .tag {
    position: absolute; top: 14px; right: 14px; font-size: 11px;
    padding: 3px 10px; border-radius: 999px; border: 1px solid var(--c); color: var(--c);
  }
  footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
    text-align: right; margin-top: 32px; color: var(--foot); font-size: 12px;
    border-top: 1px solid var(--season-line); padding-top: 8px; }
  footer .tz { margin-bottom: 6px; font-size: 10px; opacity: .75; }
  .ft-links { display: flex; gap: 10px; align-items: baseline; font-size: 12px; }
  .ft-links a { color: var(--muted); text-decoration: none; }
  .ft-links a:hover { color: var(--fg); text-decoration: underline; }
  .ft-links i { color: var(--season-line); font-style: normal; }
  .ft-left { display: flex; flex-direction: column; gap: 4px; }
  .ft-copy { white-space: nowrap; }
  body > footer { max-width: calc(1240px + 2*clamp(20px,4.4vw,48px)); margin-left: auto; margin-right: auto;
    padding-left: clamp(20px,4.4vw,48px); padding-right: clamp(20px,4.4vw,48px); padding-bottom: 32px; } /* 子页 footer 在 body 下：宽度与 .page-main 对齐，横线匹配页面 */

  /* ---- 返回顶部（全站；滚动一定距离后自动出现） ---- */
  #to-top {
    position: fixed; right: 22px; bottom: 26px; z-index: 60;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--card-bg); border: 1px solid var(--card-border); color: var(--fg);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, border-color .2s ease, color .2s ease;
  }
  #to-top.show { opacity: 1; transform: none; pointer-events: auto; }
  #to-top:hover { border-color: var(--season-accent); color: var(--season-accent); }

  /* 主题切换器：圆形调色板按钮 + 弹出菜单（同 msime.app，语言项已去掉） */
  .theme-switcher { position: relative; }
  /* 顶部栏：同 msime.app，左 logo + 标题，右切换按钮；背景跟随季节主题色 */
  .site-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--season-accent) 26%, var(--card-bg));
    border-bottom: 1px solid var(--season-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .header-inner {
    max-width: calc(1240px + 2*clamp(16px,3.6vw,40px)); margin: 0 auto; padding: 10px clamp(16px,3.6vw,40px);
    display: flex; align-items: center; gap: 12px;
  }
  .site-nav {
    flex: 1; display: flex; justify-content: center; gap: 4px; min-width: 0;
  }
  .nav-link {
    padding: 8px 14px; border-radius: 999px; white-space: nowrap;
    color: var(--fg); opacity: .68; text-decoration: none; font-size: 15px; font-weight: 500;
    transition: color .15s ease, background .15s ease, opacity .15s ease;
  }
  .nav-link:hover { opacity: 1; background: color-mix(in srgb, var(--fg) 7%, transparent); }
  .nav-link.active {
    opacity: 1; color: var(--fg); font-weight: 700;
    background: color-mix(in srgb, var(--season-accent) 16%, transparent);
  }
  .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .menu-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    background: transparent; color: var(--fg);
    border: 1px solid var(--season-line); cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }
  .menu-btn:hover, .menu-btn[aria-expanded="true"] {
    background: color-mix(in srgb, var(--fg) 8%, transparent);
  }
  .menu-btn svg { width: 18px; height: 18px; display: block; }
  .menu-backdrop { position: fixed; inset: 0; z-index: 55; /* 顶栏 z-index 60，backdrop 在其下，只模糊页面内容 */ background: rgba(0,0,0,.35);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
  .menu-backdrop.open { opacity: 1; visibility: visible; }
  .menu-backdrop[hidden] { display: none; }
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
    background: var(--card-bg);
    border-bottom: 1px solid var(--season-line); box-shadow: 0 12px 32px rgba(0,0,0,.25);
    padding: 12px 24px 18px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px;
    opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top center;
    visibility: hidden; transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.25,1.15), visibility .28s; }
  .mobile-menu.open { opacity: 1; transform: none; visibility: visible; }
  .mobile-menu[hidden] { display: none; }
  .m-link {
    display: flex; align-items: center; min-height: 46px; padding: 0 16px;
    border-radius: 12px; color: var(--fg); text-decoration: none;
    font-size: 15px; font-weight: 500;
  }
  .m-link:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
  .m-link.active {
    color: var(--fg); font-weight: 700;
    background: color-mix(in srgb, var(--season-accent) 16%, transparent);
  }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; } /* <a> 链接：去掉下划线 */
  .brand-logo { width: 28px; height: 28px; border-radius: 8px; display: block; }
  .brand-name { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--fg); }
  /* 标题右侧的日月球体（30px，同 logo 尺寸，点击进 /now） */
  .nav-orb { display: inline-flex; align-items: center; margin-left: 2px; }
  .nav-orb canvas { width: 30px; height: 30px; display: block; border-radius: 50%; }
  .theme-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--fg);
    border: 1px solid var(--season-line); cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }
  .theme-btn:hover, .theme-btn[aria-expanded="true"] {
    background: color-mix(in srgb, var(--fg) 8%, transparent);
    border-color: color-mix(in srgb, var(--fg) 35%, var(--card-border));
  }
  .theme-btn svg { width: 18px; height: 18px; display: block; }
  .theme-popover {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 216px; background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 14px; padding: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
  }
  .theme-popover[hidden] { display: none; }
  .theme-group-label { font-size: 12px; color: var(--muted); margin: 2px 4px 8px; }
  .theme-group-label:not(:first-child) { margin-top: 12px; }
  .theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .theme-options.season-options { grid-template-columns: repeat(5, 1fr); }
  .theme-options button {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 4px; border-radius: 10px; border: 1px solid transparent;
    background: transparent; color: var(--fg); font-size: 12px; font-family: inherit;
    cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .theme-options button svg { width: 18px; height: 18px; }
  .theme-options button:hover { background: var(--bar-bg); }
  .theme-options button:focus-visible { outline: 2px solid var(--season-accent, #83BA50); outline-offset: 1px; }
  .theme-options button[aria-checked="true"] {
    color: var(--season-accent, #83BA50);
    border-color: color-mix(in srgb, var(--season-accent, #83BA50) 40%, transparent);
    background: color-mix(in srgb, var(--season-accent, #83BA50) 12%, transparent);
  }

  /* 主题圆形擦除：新主题从点击的图标中心展开（同 msime.app） */
  @keyframes themeReveal {
    from { clip-path: circle(0 at var(--theme-origin-x, 50%) var(--theme-origin-y, 0)); }
    to { clip-path: circle(var(--theme-radius, 150vmax) at var(--theme-origin-x, 50%) var(--theme-origin-y, 0)); }
  }
  html.theme-transition::view-transition-old(root) { animation: none; z-index: 0; }
  html.theme-transition::view-transition-new(root) {
    z-index: 1;
    animation: themeReveal .52s cubic-bezier(.3,.7,.3,1) both;
  }

  /* 季节背景：三团缓慢漂移的色块，颜色跟随当前季节主题色（同 msime.app 的 SeasonBackdrop） */
  .season-backdrop {
    position: fixed; inset: 0; z-index: -1;
    overflow: hidden; pointer-events: none;
  }
  .season-blob { position: absolute; border-radius: 50%; filter: blur(60px); }
  .blob-a {
    width: 56vw; height: 56vw; left: -14vw; top: -20vw;
    background: var(--bd-accent, #83BA50); opacity: .28;
    animation: driftA 16s ease-in-out infinite;
  }
  .blob-b {
    width: 46vw; height: 46vw; right: -12vw; top: 26vh;
    background: var(--bd-sky, #b9d8a8); opacity: .26;
    animation: driftB 20s ease-in-out infinite;
  }
  .blob-c {
    width: 42vw; height: 42vw; left: 28vw; bottom: -18vw;
    background: var(--bd-glow, #cfe6c2); opacity: .3;
    animation: driftA 24s ease-in-out -8s infinite;
  }
  @keyframes driftA {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18vw, 14vh) scale(1.3); }
    100% { transform: translate(0, 0) scale(1); }
  }
  @keyframes driftB {
    0% { transform: translate(0, 0) scale(1.15); }
    50% { transform: translate(-20vw, -10vh) scale(.9); }
    100% { transform: translate(0, 0) scale(1.15); }
  }
  @media (prefers-reduced-motion: reduce) {
    .season-blob { animation: none; }
  }

  /* 解码文字动效（同 railway free-vm） */
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .decode { position: relative; }
  .decode-layer { white-space: pre-wrap; }
  .decode-layer .ch { position: relative; display: inline-block; }
  .decode-layer .real { transition: opacity 60ms linear; }
  .decode-layer .noise {
    position: absolute; inset: 0; color: var(--noise);
  }
  @media (max-width: 900px) {
    .site-nav { display: none; } /* 窄屏：导航收进右上汉堡菜单（同 msime.app） */
    .menu-btn { display: inline-flex; }
  }
  @media (max-width: 640px) {
    footer { flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
    .ft-links { flex-wrap: wrap; row-gap: 4px; }
    .wrap { padding-top: 7px; } /* 手机：标题整体上移 25px */
    .header-inner { padding: 8px clamp(16px,3.6vw,40px); }
    .brand-name { font-size: 15px; } /* 手机：标题保持一行不换行 */
    h1.title { white-space: nowrap; font-size: 24px; }
    h1.title .decode { display: inline; }
    h1.title .t-sep { display: inline; }
    /* 手机：年份/时区另起一行，放在当前季节下面 */
    .now-season { flex-wrap: wrap; row-gap: 10px; }
    .now-season .now-controls { flex-basis: 100%; justify-content: center; flex-wrap: wrap; row-gap: 8px; column-gap: 10px; }
    .now-season .now-controls #year-select, .now-season .now-controls #tz-select, .now-season .now-controls .year-err { margin-left: 0; }
    /* 手机：地点栏分两行（城市一行，经纬度+应用一行），不溢出 */
    .loc-bar { gap: 8px; }
    .loc-bar .loc-group { flex: 1 1 100%; }
    /* 手机：页面标题缩小，避免中英双语标题超长溢出 */
    .page-title { font-size: 22px; }
    .loc-bar .loc-group .loc-select { flex: 0 1 auto; min-width: 0; max-width: 150px; }
    .loc-input { width: 72px; }
    /* 卡片日期强制单行：字号随屏宽缩放，保证不换行不溢出（卡片 2 列，内宽 ≈ (100vw-146px)/2） */
    .date { white-space: nowrap; font-size: min(14px, calc((100vw - 150px) / 18)); }
  }

  /* ---- 太阳方位 / 月球方位 / 关于页面 ---- */
  .page-main { max-width: calc(1240px + 2*clamp(20px,4.4vw,48px)); margin: 0 auto; padding: 32px clamp(20px,4.4vw,48px) 8px; }
  .page-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: .02em; }
  .page-sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
  .dial-wrap { display: flex; justify-content: center; margin: 4px 0 24px; }
  .dial-wrap svg { width: min(92vw, 500px); height: auto; display: block; }
  .dial-ring { stroke: var(--muted); stroke-width: 1; opacity: .5; }
  .dial-horizon { opacity: .9; stroke-width: 1.5; }
  .dial-label { fill: var(--muted); font-size: 13px; opacity: .85; }
  .dial-tick { stroke: var(--muted); stroke-width: 1.5; opacity: .6; }
  .dial-path { stroke-width: 2; opacity: .9; }
  .dial-path-below { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .45; }
  .dial-hand { stroke: var(--muted); stroke-width: 1; opacity: .4; }
  .dial-ray { stroke-width: 1.6; stroke-linecap: round; }
  /* 地平视角 3D 斜视图 */
  .dial-wrap[hidden] { display: none; }
  .view-switch { display: flex; gap: 8px; justify-content: flex-start; margin: 2px 0 12px; }
  /* 日月页：视图按钮与定位栏下拉菜单左边缘对齐（跳过图钉） */
  .page-main > .view-switch { margin-left: 28px; }
  #horizon { position: relative; }
  .horizon-ref-ui { position: absolute; left: 10px; bottom: 10px; z-index: 5; }
  .view-btn { font: inherit; font-size: 13px; padding: 6px 16px; border-radius: 999px;
    border: 1.5px solid var(--muted); background: transparent; color: var(--muted); cursor: pointer; opacity: .75; }
  .view-btn.active { border-color: var(--season-accent); color: var(--season-accent); opacity: 1; font-weight: 700; }
  .horizon-ground { fill: var(--muted); opacity: .07; }
  .horizon-ring { stroke: var(--fg); stroke-width: 1.5; opacity: .55; fill: none; }
  .horizon-dashed { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 5; opacity: .45; fill: none; }
  .horizon-tick { stroke: #e5484d; stroke-width: 1.5; opacity: .8; }
  .horizon-label { fill: var(--fg); font-size: 12px; opacity: .85; }
  .horizon-label-sm { fill: var(--fg); font-size: 10px; opacity: .8; }
  .horizon-hint { text-align: center; color: var(--muted); font-size: 12px; margin: -8px 0 16px; }
  .horizon-sublabel { fill: var(--muted); font-size: 9px; opacity: .8; }
  .horizon-track { stroke-width: 2.5; opacity: .95; }
  .horizon-track-under { fill: none; stroke: #fff; stroke-width: 2; opacity: .9; }
  .horizon-track-under-hide { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .55; }
  .horizon-ref-under-hide { fill: none; stroke: #fff; stroke-width: 1.25; stroke-dasharray: 4 4; opacity: .4; }
  .horizon-ref-under { fill: none; stroke: #fff; stroke-width: 1.25; opacity: .5; }
.horizon-ref { stroke-width: 1.5; opacity: .5; }
  .horizon-ref-label { font-size: 9px; opacity: .9; }
  .mp-lit { fill: #ece7d9; }
  .data-panel {
    background: transparent; border: 1px solid var(--card-border);
    border-radius: 16px; padding: 6px 20px; margin-bottom: 20px;
  }
  .data-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--card-border); font-size: 15px;
  }
  .data-row:last-child { border-bottom: none; }
  .data-row span { color: var(--muted); flex: none; }
  .data-row b { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
  .page-note { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 8px; }
  /* 更新日志：无序号列表 */
  .page-main ul { color: var(--fg); font-size: 14px; line-height: 1.9; margin: 0 0 8px; padding-left: 22px; }
  .page-main ul li { margin-bottom: 4px; }
  .page-main ul li::marker { color: var(--season-accent); }
  /* 更新日志：查看更多按钮居中 */
  .cl-toggle-wrap { text-align: center; margin: 20px 0 8px; }
  /* 天象预测页 */
  .eclipse-list { display: grid; gap: 10px; margin: 0 0 30px; }
  .eclipse-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 13px 16px; }
  .eclipse-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .eclipse-date { font-weight: 800; font-size: 16px; }
  .eclipse-type { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; color: #fff; white-space: nowrap; }
  .eclipse-type.total { background: #b3541e; }
  .eclipse-type.annular { background: #c9a227; }
  .eclipse-type.partial { background: #6b7c93; }
  .eclipse-type.penumbral { background: #9a9ab0; }
  .eclipse-meta { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.9; }
  .eclipse-meta b { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }

  /* ---- 月球页：月相图 + 数据 ---- */
  .moon-data { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
  .moon-data .data-panel { flex: 1; margin-bottom: 0; min-width: 0; }
  .moon-phase-fig { flex: none; }
  .moon-phase-fig canvas { width: 160px; height: 160px; display: block; border-radius: 50%; }
  /* 太阳页：左侧球体 + 右侧数据（同月球布局，不可点开） */
  .sun-data { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
  .sun-data .data-panel { flex: 1; margin-bottom: 0; min-width: 0; }
  .sun-phase-fig { flex: none; }
  .sun-phase-fig canvas { width: 160px; height: 160px; display: block; border-radius: 50%; }
  /* 月相 viewbox：悬浮卡片（深空背景），带打开/关闭过渡 */
  .moon-vb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(3, 3, 12, 0.68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .moon-vb.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
  .moon-vb-panel { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px;
    width: min(94vw, 720px); background: #020207; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    transform: translateY(14px) scale(0.97); opacity: 0;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.28s ease;
    max-height: calc(100vh - 32px); overflow: auto; }
  .moon-vb.open .moon-vb-panel { transform: none; opacity: 1; }
  .moon-vb-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
  .moon-vb-select { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--fg);
    border-radius: 8px; padding: 6px 8px; font-size: 13px; font-family: inherit; cursor: pointer; max-width: 200px; }
  .moon-vb-toolbar .view-btn { border-color: #3a3f4d; }
  /* 导出下拉菜单 */
  .moon-vb-export-wrap { position: relative; }
  .moon-vb-export-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px;
    padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 150px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35); }
  .moon-vb-export-menu button { background: none; border: none; color: var(--fg);
    font: inherit; font-size: 13px; text-align: left; padding: 8px 12px; border-radius: 6px;
    cursor: pointer; white-space: nowrap; }
  .moon-vb-export-menu button:hover { background: var(--season-accent); }
  .moon-vb-export-menu[hidden] { display: none; }
  #moonVbCanvas { width: 100%; height: auto; display: block; border-radius: 12px; }
  .moon-vb-canvas-wrap { position: relative; width: 100%; }
  .moon-vb-fsbtn { position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: none; border: none; color: #fff; padding: 0; opacity: .85; }
  .moon-vb-fsbtn:hover { opacity: 1; }
  .moon-vb-panel.fs #moonVbClose { display: none; }
  .moon-vb-panel.fs #moonVbExitFs { display: inline-block !important; }
  .moon-vb-panel.fs .fs-expand { display: none; }
  .moon-vb-panel.fs .fs-compress { display: block !important; }
  .moon-vb-marks-ui { position: absolute; left: 10px; bottom: 10px; z-index: 5; }
  /* 深空背景上胶囊开关文字提亮 */
  .moon-vb-marks-ui .mark-toggle { color: rgba(255, 255, 255, 0.6); }
  .moon-vb-marks-ui .mark-toggle[aria-pressed="true"] { color: #fff; }
  /* viewbox 全屏：填满视口，canvas 保持 3:2 不压扁 */
  .moon-vb-panel.fs { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; border: none; padding: 10px; }
  .moon-vb-panel.fs #moonVbCanvas { width: auto; height: auto; max-width: calc(100vw - 20px); max-height: calc(100dvh - 90px); border-radius: 8px; }
  .moon-vb-panel.fs .moon-vb-canvas-wrap { display: flex; justify-content: center; }
  /* 手机：工具栏保持一行不换行 */
  @media (max-width: 640px) {
    .moon-vb-toolbar { flex-wrap: nowrap; gap: 5px; }
    .moon-vb-toolbar .view-btn { padding: 3px 6px; font-size: 11px; white-space: nowrap; }
    .moon-vb-select { font-size: 11px; max-width: 110px; }
  }
  /* 亮色主题下：viewbox 工具栏 70% 透明（深色不动） */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .moon-vb-toolbar .view-btn,
    :root:not([data-theme]) .moon-vb-select { opacity: .7; }
    :root:not([data-theme]) .moon-vb-toolbar .view-btn:hover,
    :root:not([data-theme]) .moon-vb-select:hover,
    :root:not([data-theme]) .moon-vb-select:focus { opacity: 1; }
  }
  html[data-theme="light"] .moon-vb-toolbar .view-btn,
  html[data-theme="light"] .moon-vb-select { opacity: .7; }
  html[data-theme="light"] .moon-vb-toolbar .view-btn:hover,
  html[data-theme="light"] .moon-vb-select:hover,
  html[data-theme="light"] .moon-vb-select:focus { opacity: 1; }
  .mp-dark { fill: #23262e; }
  .mp-ring { fill: none; stroke: #8a8f9c; stroke-width: 1.5; opacity: .55; }
  @media (max-width: 560px) {
    .moon-data { flex-direction: column; gap: 14px; }
    .moon-data .data-panel { width: 100%; }
    .sun-data { flex-direction: column; gap: 14px; }
    .sun-data .data-panel { width: 100%; }
  }
  .about section { margin-bottom: 26px; }
  .about h2 { font-size: 18px; margin: 0 0 8px; }
  .about p { line-height: 1.9; margin: 0; text-indent: 2em; }

  /* ---- 观测地点 ---- */
  .loc-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start; margin: 0 0 8px; }
  .loc-group { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
  .loc-group.loc-coords { flex-wrap: wrap; row-gap: 8px; }
  .loc-pin { display: inline-flex; color: #000; }
  .loc-pin svg { display: block; }
  html[data-theme="dark"] .loc-pin { color: #fff; }
  .loc-select, .loc-input { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--fg); border-radius: 8px; padding: 4px 8px; font-size: 13px; font-family: inherit; }
  .loc-select { max-width: 190px; }
  .loc-input { width: 86px; }
  .loc-field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
  .loc-apply { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--fg); border-radius: 8px; padding: 4px 14px; font-size: 13px; font-family: inherit; cursor: pointer; }
  .loc-apply:hover { border-color: var(--season-accent); }
  /* 亮色主题下：定位栏部件 70% 透明，悬停/聚焦恢复（深色不动） */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .loc-bar .loc-select,
    :root:not([data-theme]) .loc-bar .loc-input,
    :root:not([data-theme]) .loc-bar .loc-apply { opacity: .7; }
    :root:not([data-theme]) .loc-bar .loc-select:hover,
    :root:not([data-theme]) .loc-bar .loc-input:hover,
    :root:not([data-theme]) .loc-bar .loc-apply:hover,
    :root:not([data-theme]) .loc-bar .loc-select:focus,
    :root:not([data-theme]) .loc-bar .loc-input:focus { opacity: 1; }
  }
  html[data-theme="light"] .loc-bar .loc-select,
  html[data-theme="light"] .loc-bar .loc-input,
  html[data-theme="light"] .loc-bar .loc-apply { opacity: .7; }
  html[data-theme="light"] .loc-bar .loc-select:hover,
  html[data-theme="light"] .loc-bar .loc-input:hover,
  html[data-theme="light"] .loc-bar .loc-apply:hover,
  html[data-theme="light"] .loc-bar .loc-select:focus,
  html[data-theme="light"] .loc-bar .loc-input:focus { opacity: 1; }
  .loc-hint { text-align: left; font-size: 12.5px; color: var(--muted); min-height: 19px; margin: 2px 0 8px; }
  .loc-hint.err { color: #e5484d; }
  /* 为空时不占高度，避免把行距撑大 */
  .loc-hint:empty { display: none; }

  /* ---- 太阳系页面 ---- */
  .solar-wrap { display: flex; justify-content: center; margin: 4px 0 20px; position: relative; }
  .solar-wrap svg { width: min(94vw, 560px); height: auto; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
  .solar-tools { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
  .view-btn {
    background: var(--card-bg); color: var(--fg);
    border: 1px solid var(--card-border); border-radius: 8px;
    padding: 4px 14px; font-size: 13px; font-family: inherit; cursor: pointer;
  }
  .view-btn:hover { border-color: var(--season-accent); color: var(--season-accent); }
  .view-btn:disabled { opacity: .45; cursor: default; }
  .solar-hint { font-size: 12px; color: var(--muted); }

  /* ---- 地球状态页面 ---- */
  .earth-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 2px 0 10px; }
  .earth-tools-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  /* 第二行按钮与第一行下拉菜单左边缘对齐（跳过 18px 图钉 + 10px 间距） */
  .earth-tools-btns { margin-left: 28px; }
  .earth-city-sel, .earth-preset-sel, .earth-month-sel { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--fg);
    border-radius: 8px; padding: 4px 8px; font-size: 13px; font-family: inherit; cursor: pointer; max-width: 150px; }
  .earth-preset-sel { max-width: 200px; }
  .earth-view-switch { margin: 0; }
  .earth-wrap {
    position: relative;
    margin: 4px 0 20px; border-radius: 18px; overflow: hidden;
    background: radial-gradient(1200px 520px at 34% 54%, #0c2140 0%, #071022 58%, #04070f 100%);
    border: 1px solid rgba(140, 175, 230, 0.14);
  }
  .earth-wrap .solar-hint {
    position: absolute; top: 10px; right: 12px; z-index: 5;
    font-size: 12px; color: var(--muted);
    background: rgba(4, 7, 15, 0.55); padding: 3px 10px; border-radius: 999px;
    pointer-events: none;
  }
  .earth-wrap.flat-open .solar-hint { display: none; }
  .earth-wrap canvas { display: block; width: 100%; height: auto; }
  .flat-toggle {
    position: absolute; left: 12px; bottom: 12px; z-index: 5;
    background: var(--card-bg); color: var(--fg);
    border: 1px solid var(--card-border); border-radius: 999px;
    padding: 4px 14px; font-size: 13px; font-family: inherit; cursor: pointer;
  }
  .flat-toggle:hover { border-color: var(--season-accent); color: var(--season-accent); }
  .fs-toggle {
    position: absolute; right: 12px; bottom: 12px; z-index: 5;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 6px; cursor: pointer;
    color: var(--fg); opacity: 0.85;
  }
  .fs-toggle svg { display: block; width: 20px; height: 20px; }
  .fs-toggle:hover { color: var(--season-accent); opacity: 1; }
  /* 全屏 stage 右下角的退出 SVG（与进入按钮同位置） */
  .fs-exit-svg { position: absolute; right: 12px; bottom: 12px; z-index: 5; }
  /* 亮色主题下：全屏图标在深色太空背景上，用白色才看得见 */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .fs-toggle { color: #fff; }
    :root:not([data-theme]) .fs-toggle:hover { color: var(--season-accent); }
  }
  html[data-theme="light"] .fs-toggle { color: #fff; }
  html[data-theme="light"] .fs-toggle:hover { color: var(--season-accent); }
  /* 亮色下展开按钮用黑色字 */
  html[data-theme="light"] .earth-wrap .flat-toggle { color: #000; border-color: rgba(0,0,0,.25); }
  html[data-theme="light"] .earth-wrap .flat-toggle:hover { color: var(--season-accent); border-color: var(--season-accent); }
  html[data-theme="light"] .earth-fs-tools .flat-toggle { color: var(--fg); border-color: var(--card-border); }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .earth-wrap .flat-toggle { color: #000; border-color: rgba(0,0,0,.25); }
    :root:not([data-theme]) .earth-fs-tools .flat-toggle { color: var(--fg); border-color: var(--card-border); }
  }
  /* 全屏工具栏里：展开按钮取消绝对定位，跟其他按钮一样排 */
  .earth-fs-tools .flat-toggle { position: static; border-radius: 8px; }
  /* 亮色主题下：切换按钮 70% 透明，悬停恢复不透明（深色主题不动） */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .earth-tools .view-btn,
    :root:not([data-theme]) .earth-fs-tools .view-btn { opacity: .7; }
    :root:not([data-theme]) .earth-tools .view-btn:hover,
    :root:not([data-theme]) .earth-fs-tools .view-btn:hover { opacity: 1; }
  }
  html[data-theme="light"] .earth-tools .view-btn,
  html[data-theme="light"] .earth-fs-tools .view-btn { opacity: .7; }
  html[data-theme="light"] .earth-tools .view-btn:hover,
  html[data-theme="light"] .earth-fs-tools .view-btn:hover { opacity: 1; }
  /* 激活态始终不透明（特异性高于上面的 .7 规则） */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .earth-tools .view-btn.active,
    :root:not([data-theme]) .earth-fs-tools .view-btn.active { opacity: 1; }
  }
  html[data-theme="light"] .earth-tools .view-btn.active,
  html[data-theme="light"] .earth-fs-tools .view-btn.active { opacity: 1; }
  /* 亮色主题下：日月页视图按钮 70% 透明，激活/悬停恢复（深色不动） */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .view-switch .view-btn { opacity: .7; }
    :root:not([data-theme]) .view-switch .view-btn.active,
    :root:not([data-theme]) .view-switch .view-btn:hover { opacity: 1; }
  }
  html[data-theme="light"] .view-switch .view-btn { opacity: .7; }
  html[data-theme="light"] .view-switch .view-btn.active,
  html[data-theme="light"] .view-switch .view-btn:hover { opacity: 1; }
  /* 亮色主题下：viewbox 里的展开按钮也 70% 透明，悬停恢复（深色不动） */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .earth-wrap .flat-toggle { opacity: .7; }
    :root:not([data-theme]) .earth-wrap .flat-toggle:hover { opacity: 1; }
  }
  html[data-theme="light"] .earth-wrap .flat-toggle { opacity: .7; }
  html[data-theme="light"] .earth-wrap .flat-toggle:hover { opacity: 1; }
  /* 亮色主题下：地球第一行下拉 + 全屏里的展开按钮，70% 透明 */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .earth-tools .earth-city-sel,
    :root:not([data-theme]) .earth-tools .earth-preset-sel,
    :root:not([data-theme]) .earth-tools .earth-month-sel,
    :root:not([data-theme]) .earth-fs-tools .flat-toggle { opacity: .7; }
    :root:not([data-theme]) .earth-tools .earth-city-sel:hover,
    :root:not([data-theme]) .earth-tools .earth-preset-sel:hover,
    :root:not([data-theme]) .earth-tools .earth-month-sel:hover,
    :root:not([data-theme]) .earth-tools .earth-city-sel:focus,
    :root:not([data-theme]) .earth-tools .earth-preset-sel:focus,
    :root:not([data-theme]) .earth-tools .earth-month-sel:focus,
    :root:not([data-theme]) .earth-fs-tools .flat-toggle:hover { opacity: 1; }
  }
  html[data-theme="light"] .earth-tools .earth-city-sel,
  html[data-theme="light"] .earth-tools .earth-preset-sel,
  html[data-theme="light"] .earth-tools .earth-month-sel,
  html[data-theme="light"] .earth-fs-tools .flat-toggle { opacity: .7; }
  html[data-theme="light"] .earth-tools .earth-city-sel:hover,
  html[data-theme="light"] .earth-tools .earth-preset-sel:hover,
  html[data-theme="light"] .earth-tools .earth-month-sel:hover,
  html[data-theme="light"] .earth-tools .earth-city-sel:focus,
  html[data-theme="light"] .earth-tools .earth-preset-sel:focus,
  html[data-theme="light"] .earth-tools .earth-month-sel:focus,
  html[data-theme="light"] .earth-fs-tools .flat-toggle:hover { opacity: 1; }
  @media (max-width: 640px) {
    .fs-toggle { padding: 4px; }
    .fs-toggle svg { width: 16px; height: 16px; }
    .flat-toggle { padding: 2px 10px; font-size: 12px; }
    .earth-wrap .solar-hint { font-size: 10px; padding: 2px 8px; top: 8px; right: 8px; }
    /* 手机：地球第一行纵向堆叠，三个下拉左边缘对齐（跳过图钉 28px） */
    .earth-tools-row { flex-direction: column; align-items: flex-start; }
    .earth-tools-row .earth-preset-sel,
    .earth-tools-row .earth-month-sel { margin-left: 28px; }
  }
  /* 全屏覆盖层 */
  .earth-fs {
    position: fixed; inset: 0; z-index: 100;
    display: flex; flex-direction: column;
    background: radial-gradient(1200px 700px at 50% 45%, #0c2140 0%, #071022 58%, #04070f 100%);
  }
  .earth-fs[hidden] { display: none; }
  .earth-fs-top {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; flex-wrap: wrap; padding: 14px 16px 6px;
  }
  .earth-fs-tools {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap;
  }
  .earth-fs-tools .earth-view-switch { margin: 0; }
  /* 展开按钮移入全屏顶部时取消绝对定位，用普通圆角矩形 */
  .earth-fs-tools .flat-toggle { position: static; border-radius: 8px; }
  .earth-fs-stage {
    flex: 1; min-height: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 6px 12px 12px;
  }
  .earth-fs-stage canvas { display: block; }
  .solar-orbit { fill: none; stroke: var(--muted); stroke-width: 1; opacity: .4; }
  .solar-moon-orbit { fill: none; stroke: var(--muted); stroke-width: .75; opacity: .3; }
  .sun-halo { transform-box: fill-box; transform-origin: center; animation: sunPulse 5.5s ease-in-out infinite; }
  .sun-halo.h2 { animation-duration: 8s; animation-delay: -2.6s; }
  @keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50% { transform: scale(1.12); opacity: .9; }
  }
  @media (prefers-reduced-motion: reduce) {
    .sun-halo { animation: none; }
  }
  .solar-ring { fill: none; stroke: #cbb98a; stroke-width: 2; opacity: .85; }
  .solar-planet { cursor: pointer; }
  .solar-planet:hover .solar-dot { filter: brightness(1.25); }
  .solar-label { fill: var(--muted); font-size: 9px; }
  .solar-mark-label { font-size: 6.5px; }
  /* 地月视图：分至点 / 近远日点胶囊开关（边框跟主题色） */
  .solar-stage { position: relative; display: inline-block; }
  .solar-marks-ui { position: absolute; left: 10px; bottom: 10px; z-index: 5;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .mark-toggle { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); }
  .mark-toggle[aria-pressed="true"] { color: var(--fg); }
  .mark-capsule { box-sizing: border-box; width: 34px; height: 18px; flex: none; position: relative;
    border: 1.5px solid var(--season-accent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--card-bg) 55%, transparent);
    transition: background .2s ease; }
  .mark-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--muted); transition: left .18s ease, background .2s ease; }
  .mark-toggle[aria-pressed="true"] .mark-capsule { background: color-mix(in srgb, var(--season-accent) 16%, transparent); }
  .mark-toggle[aria-pressed="true"] .mark-knob { left: 17px; background: var(--season-accent); }
  .mark-label { white-space: nowrap; }
  @media (max-width: 640px) {
    .solar-marks-ui { gap: 8px; }
    .mark-toggle { font-size: 12px; gap: 6px; }
    .mark-capsule { width: 30px; height: 16px; }
    .mark-knob { width: 10px; height: 10px; }
    .mark-toggle[aria-pressed="true"] .mark-knob { left: 15px; }
  }
  .solar-moon-label { font-size: 8px; opacity: .8; }
  .solar-selected { fill: none; stroke: var(--season-accent); stroke-width: 1.5; }
  .solar-planet, .solar-orbit, .solar-moon-orbit, .solar-moon, .solar-moon-label { transition: opacity .45s ease; }
