  /* 里程碑的感謝橫幅（首頁，自動顯示七天） */
  .msbanner { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px 12px 16px; border-radius: 14px; background: linear-gradient(120deg, #fff4d6, #ffe9ef); border: 1px solid #f1d9a8; color: #3a2a10; }
  .msbanner p { margin: 0; flex: 1; font-weight: 700; font-size: 16px; line-height: 1.5; } .msbanner__i { font-size: 26px; flex: none; }
  .msbanner__x { flex: none; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: #7a6540; cursor: pointer; border-radius: 50%; } .msbanner__x:hover { background: rgba(0,0,0,.06); }
  /* 載入畫面裡這一頁的名稱、說明與主要頁面連結：畫面上不佔位置（報讀軟體與搜尋引擎讀得到），程式跑起來就整塊換掉 */
  .boot__seo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  /* 網站資訊頁尾（2026-10-04）：跟 /about、/terms 等頁共用 */
  .sitefoot { background: var(--surface-deep); color: var(--ink-deep-muted); font-size: 13px; line-height: 1.7; }
  .sitefoot__in { max-width: 1180px; margin: 0 auto; padding: 16px 16px 18px; box-sizing: border-box; }
  .sitefoot__brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
  .sitefoot__brand b { color: var(--ink-deep); font-family: var(--font-serif); font-size: 18px; }
  .sitefoot__links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 2px 0 8px -10px; }
  .sitefoot__links a { color: var(--ink-deep); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; }
  .sitefoot__links a:hover { text-decoration: underline; }
  .sitefoot__links a:focus-visible { outline: 2px solid var(--focus-invert, #fff); outline-offset: -2px; }
  .sitefoot__note { margin: 2px 0; }
  .sitefoot__copy { margin: 2px 0 0; color: var(--ink-deep-muted); }

  .lookroot main { padding-bottom: 40px; }
  .lookroot > .sitefoot { margin-top: 24px; padding-bottom: 72px; }
  @media (max-width: 720px) { body .lookroot main { padding-bottom: 32px; } .lookroot > .sitefoot { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); } }
  /* ── [hidden] 不可以被任何 display 蓋掉 ──────────────────
     程式裡用 `el.hidden = true` 收掉載不到的圖，而 [hidden] 靠的是
     瀏覽器內建的 display:none——**任何**選到同一個元素又寫了 display
     的規則都會贏過它，「收起來」就完全失效。
     實測踩過：`.newsitem__thumb img { display: block }` 讓封面 404
     留著破圖、太小的來源標誌照樣畫出來，一條規則三種症狀。
     用 !important 把這條釘死，比逐一去記得每個地方加 [hidden] 可靠。 */
  [hidden] { display: none !important; }
  /* 各頁的「回首頁」按鈕不顯示（2026-10-06 使用者：根本不需要；上方與底部的選單就能回去） */
  .backhome { display: none !important; }


  html, body { background: var(--surface); }
  body {
    margin: 0; color: var(--ink); font-family: var(--font-sans);
    font-size: 15px; line-height: 26px;
    -webkit-text-size-adjust: 100%;
  }
  :root { --shell: 1180px;
    /* 罕用字補字（𦁧、𥴊、䲅…）：思源字型沒有，接在最後；只有遇到這些字才下載（unicode-range），見 scripts/build_rare_font.py */
    --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, "MatsuRare", sans-serif;
    --font-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", Georgia, "MatsuRare", serif; }
  body { font-family: var(--font-sans); }
  /* 字級放大。設計系統的元件字級多半寫死 px（15px、17px…），
     所以只改 :root 的 font-size 幾乎沒有作用——這是先前「按了沒感覺」的原因。
     改用 zoom 放大整個內容，px 也會跟著變大，版面比例維持不變。 */
  :root[data-size="large"] body { zoom: 1.2; }
  @supports not (zoom: 1.2) {
    /* 舊瀏覽器退而求其次：至少把以 rem／% 計算的部分放大 */
    :root[data-size="large"] { font-size: 120%; }
    :root[data-size="large"] body { font-size: 18px; line-height: 30px; }
  }

  .shell { max-width: var(--shell); margin: 0 auto; padding-inline: 16px; }

  /* ---- 頁首 ---- */
  .masthead { background: var(--surface-deep); color: var(--ink-deep); }
  .masthead .shell { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding-block: var(--space-4); }
  .wordmark { font-family: var(--font-serif); font-size: 30px; line-height: 36px; font-weight: 700; margin: 0; letter-spacing: .02em; }
  .wordmark__a { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
  /* LOGO 是青綠底，頁首是深藍或照片：加一圈淡白邊與陰影，任何背景都分得出來 */
  .wordmark__logo { flex: none; width: 44px; height: 44px; border-radius: 11px; display: block;
                    box-shadow: 0 0 0 1.5px rgba(255,255,255,.85), 0 3px 10px rgba(0,0,0,.35); }
  .wordmark__sub { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--ink-deep-muted); margin-left: 10px; letter-spacing: 0; }
  .mast-tools { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
  /* 全站搜尋（2026-10-03） */
  /* 頁首的待審核按鈕（只有審核者看得到）：在「搜尋」左邊，琥珀色、帶數量 */
  .revbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 14px; border-radius: 999px; background: #fff3d6; color: #5a3d00; border: 1px solid #e3c88a; font-weight: 800; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
  .revbtn:hover { background: #ffe9b8; } .revbtn:focus-visible { outline: 2px solid var(--focus-invert, #fff); outline-offset: 2px; }
  .revbtn__n { min-width: 26px; height: 26px; padding: 0 7px; box-sizing: border-box; border-radius: 13px; background: #c9382f; color: #fff; font-family: var(--font-mono); font-size: 14px; line-height: 26px; text-align: center; }
  .revgrp { display: inline-flex; align-items: center; gap: 8px; } .revbtn--sum { display: none; }
  /* 手機與窄螢幕的頁首已經排滿，多兩顆按鈕會整排掉到第二行：合成一顆數字小圓（兩種加總），疊在右上角會員按鈕的角落 */
  @media (max-width: 900px) {
    .mast-tools { position: relative; }
    .revgrp { position: absolute; right: -6px; top: -12px; z-index: 2; } .revgrp .revbtn { display: none; }
    .revgrp .revbtn--sum { display: inline-flex; min-height: 0; padding: 4px; border: 0; background: none; } .revbtn--sum .revbtn__n { box-shadow: 0 0 0 2px #10303b; }
  }
  .srchbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
  .srchbtn:hover { background: rgba(255,255,255,.18); }
  @media (max-width: 560px) { .srchbtn { padding: 0; width: 44px; justify-content: center; } .srchbtn__t { display: none; } }
  .srch__scrim { position: fixed; inset: 0; z-index: 2000; background: rgba(6,18,28,.55); display: flex; justify-content: center; align-items: flex-start;
    padding: 6vh 16px 16px; overscroll-behavior: contain; }
  .srch { width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--surface, #fff); color: var(--text, #1b2a33);
    border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
  .srch__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--border, #e3e6e8); }
  .srch__bar input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; font: inherit; font-size: 17px; background: transparent; color: inherit; }
  .srch__x { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--text-muted, #5b6b75); font: inherit; cursor: pointer; }
  .srch__body { overflow-y: auto; padding: 8px 16px 16px; }
  .srch__msg, .srch__hint { padding: 12px 0; }
  .srch__sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .srch__chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border, #d8dde0); background: transparent; color: inherit; font: inherit; cursor: pointer; }
  .srch__g { margin-top: 12px; }
  .srch__gh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 13px; letter-spacing: .04em; color: var(--text-muted, #5b6b75); }
  .srch__gh .muted { font-weight: 400; font-size: 12px; }
  .srch__l { list-style: none; margin: 0; padding: 0; }
  .srch__i { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border, #eef0f1); }
  .srch__b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border: 0; background: transparent;
    color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .srch__b:hover b { text-decoration: underline; }
  .srch__img { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2, #eef2f3); }
  .srch__img--ph { display: grid; place-items: center; color: var(--text-muted, #5b6b75); font-weight: 700; }
  .srch__t { min-width: 0; display: flex; flex-direction: column; }
  .srch__t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .srch__t .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .srch__ext { color: var(--text-muted, #5b6b75); }
  .srch__tel { flex: none; }
  .srch__more { margin: 6px 0 0; min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--accent, #1f6f8b); font: inherit; cursor: pointer; }
  /* 頂部按鈕（日夜、字級、後台、會員）高度一致、扁一點（使用者要求） */
  .mast-tools > button, .mast-tools > a { height: 36px; min-height: 36px; padding-top: 0; padding-bottom: 0; box-sizing: border-box;
    display: inline-flex; align-items: center; gap: 6px; line-height: 1; border-radius: 10px; }
  .demo-chip {
    font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em;
    color: var(--surface-deep); background: var(--focus-invert);
    padding: 3px var(--space-2); border-radius: var(--radius-pill);
  }

  /* ---- 導覽 ---- */
  .viewnav { background: var(--surface-deep); border-top: 1px solid rgba(255,255,255,.08); }
  .viewnav .shell { display: flex; gap: var(--space-1); overflow-x: auto; padding-block: 0; }
  .viewtab {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    color: var(--ink-deep-muted); font-family: var(--font-sans); font-size: 15px; font-weight: 700;
    padding: var(--space-3) var(--space-4); min-height: 48px; border-bottom: 3px solid transparent; white-space: nowrap;
    display: flex; align-items: center; gap: var(--space-1);
  }
  .viewtab[aria-current="true"] { color: var(--ink-deep); border-bottom-color: var(--tide-glow); }
  .viewtab:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: -2px; }
  /* 主選單：上方只放大類，點了展開子頁面板（2026-09-28） */
  .viewnav--site .shell { overflow: visible; }
  .navgroups { position: relative; display: flex; gap: var(--space-1); width: 100%; }
  .navg-w { position: relative; display: flex; }
  .navg__caret { font-size: 11px; opacity: .7; margin-left: 2px; }
  .navg[aria-expanded="true"] { color: var(--ink-deep); }
  .navpanel { position: absolute; top: calc(100% + 4px); left: 0; z-index: calc(var(--z-sticky, 20) + 5); min-width: 300px; max-width: 420px;
              background: var(--surface-raised, #fff); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
              box-shadow: var(--shadow-lift); padding: 6px; display: flex; flex-direction: column; }
  .navpanel__i { appearance: none; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
                 display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; min-height: 48px; border-radius: var(--radius-sm); }
  .navpanel__i:hover, .navpanel__i:focus-visible { background: var(--surface-sunken); }
  .navpanel__i.is-on { background: var(--surface-sunken); }
  .navpanel__i > span { display: flex; flex-direction: column; gap: 2px; }
  .navpanel__i b { font-size: 15px; }
  .navpanel__i > span > span { font-size: 13px; color: var(--ink-muted); }
  .navpanel--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(640px, 92vw); max-width: none; gap: 0 4px; }
  .navpanel--2col .navpanel__i { min-height: 44px; padding: 8px 10px; }
  .navpanel--2col .navpanel__i > span > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
  .navpanel__i .dy-icon { margin-top: 2px; flex: none; }
  .navpanel__g { margin: 8px 12px 2px; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
  /* 子分頁：同一類的頁一排 */
  .subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
  .crumb { background: var(--surface); border-bottom: 1px solid var(--line); } .crumb .shell { display: flex; align-items: center; gap: 4px; padding-block: 4px; overflow-x: auto; white-space: nowrap; font-size: 14px; color: var(--ink-muted); }
  .crumb__b { appearance: none; border: 0; background: none; color: var(--tide, #0c7078); font: inherit; font-weight: 700; min-height: 44px; padding: 0 8px; border-radius: 8px; cursor: pointer; } .crumb__b:first-child { padding-left: 0; } .crumb__b:hover { text-decoration: underline; }
  .crumb b { font-weight: 600; color: var(--ink); padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
  .subnav .shell { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; }
  /* 電腦與平板：上方大類的下拉選單已經列出同一批頁面，這一排就不重複（2026-10-06 使用者）。手機沒有下拉選單（底部只有大類），所以手機照常顯示 */
  @media (min-width: 721px) { .subnav { display: none; } }
  .subnav__t { appearance: none; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-muted); cursor: pointer;
               font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; padding: 6px 14px; min-height: 44px; border-radius: var(--radius-pill); }
  .subnav__t[aria-current="page"] { background: var(--surface-deep); border-color: var(--surface-deep); color: var(--ink-deep); }
  /* 手機：底部固定的大類按鈕（桌面不顯示） */
  .botnav { display: none; }
  @media (max-width: 720px) {
    .viewnav--site { display: none; }
    .botnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-dialog, 500) - 1);   /* 在對話框底下 */
              background: var(--surface-deep); border-top: 1px solid rgba(255,255,255,.12); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .botnav__b { appearance: none; flex: 1; border: 0; background: none; color: var(--ink-deep-muted); cursor: pointer; font: inherit;
                 font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center;
                 gap: 2px; min-height: 56px; padding: 6px 2px; border-top: 3px solid transparent; }
    .botnav__b[aria-current="page"] { color: var(--ink-deep); border-top-color: var(--tide-glow); }
    .botnav__b:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: -2px; }
    .navpanel--up { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); max-width: none;
                    max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; }
    .navpanel--grid { padding: 8px 10px; gap: 4px; }
    .navpanel__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
    .navpanel__i--s { align-items: center; min-height: 44px; padding: 8px 10px; gap: 8px; }
    .navpanel__i--s b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* 資料狀態列疊在底部選單上面 */
    body .console { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 0; z-index: calc(var(--z-dialog, 500) - 1); }
    body main { padding-bottom: 150px; }
    .subnav .shell { padding-block: 6px; }
  }
  .viewtab .pip {
    font-family: var(--font-mono); font-size: 11px; font-weight: 600; background: var(--hold); color: #2a2010;
    border-radius: var(--radius-pill); padding: 0 6px; min-width: 18px; text-align: center;
  }

  /* ---- 島況列的島嶼選單 ----
     原生 select 在深色底上長相完全不受控（作業系統決定），
     而且選項文字會把按鈕撐得很長——「台馬航線（基隆⇄南竿⇄東引）」
     一進去按鈕就變兩倍寬。所以自己做：
     按鈕只放名稱，副標收進選單裡。 */
  .condpick { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; }
  /* ---- 單島的島況列：格子版（使用者 2026-10-05：每一項都是圖示＋數值＋程度） ----
     左邊選單與時間、右邊一排格子；手機三欄，而且不固定在頂端（十格有四列高，固定住會佔掉三分之一個畫面） */
  .dy-cond.dy-cond--tiles { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4); row-gap: 2px; align-items: center; }
  .dy-cond--tiles > .condpick { grid-column: 1; grid-row: 1; align-self: end; }
  .dy-cond--tiles > .dy-cond__time { grid-column: 1; grid-row: 2; align-self: start; margin: 0; }
  .dy-cond--tiles > .condtiles { grid-column: 2; grid-row: 1 / span 2; }
  .condtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 2px 4px; min-width: 0; }
  .ctile { appearance: none; font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: 10px;
    padding: 6px 8px; margin: 0; display: grid; gap: 2px; align-content: start; min-width: 0; min-height: 44px; }
  button.ctile { cursor: pointer; }
  button.ctile:hover { background: rgba(255,255,255,.08); }
  .ctile:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 1px; }
  .ctile__lb { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-deep-muted); white-space: nowrap; }
  .ctile__lb svg { flex: none; }
  .ctile__v { font-size: 18px; line-height: 24px; font-weight: 600; white-space: nowrap; }
  .ctile__v.is-text { font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
  .ctile__v small { font-family: var(--font-sans); font-weight: 500; margin-left: 3px; }
  /* 天氣那一格：大圖示與粗體文字並排，一起佔下面兩行的高度 */
  .ctile__wxrow { display: flex; align-items: center; gap: 4px; min-height: 42px; min-width: 0; }
  .ctile__wxrow .wxi { width: 32px; height: 32px; margin: 0 0 0 -2px; flex: none; vertical-align: 0; }
  .ctile__wxt { font-family: var(--font-sans); font-size: 15.5px; line-height: 19px; font-weight: 700; color: var(--ink-deep); white-space: nowrap; }
  .ctile__wxt.is-long { white-space: normal; text-wrap: balance; font-size: 14px; line-height: 17px; }
  /* 淺底上雲太淡，加深 */
  [data-theme="light"] .dy-cond .wxi__cloud { fill: #c5d1d9; stroke: #6d8490; }
  [data-theme="light"] .dy-cond .wxi__fog { stroke: #8a9ba5; }
  .ctile.condq--real .dy-cond__value::after { content: none; }
  .ctile .lvl { min-height: 16px; }
  .ctile .lvl { gap: 4px; }
  .ctile .lvl__bar i { height: 10px; width: 5px; }   /* 窄一點：四個字的程度（滿潮剛過、稍有寒意）才不會擠到隔壁格 */
  .ctile .lvl__w { font-size: 12.5px; line-height: 16px; text-decoration: none; white-space: nowrap; }
  .lvl--c .is-on { background: #7cc4f0; } .lvl--c .lvl__w { color: #a5d8f7; }
  .lvl--t .is-on { background: #4fd1c5; } .lvl--t .lvl__w { color: #7fe3d8; }
  .frule .lvl--c .is-on { background: #3b9bd6; } .frule .lvl--t .is-on { background: #0c9aa0; }
  /* 南竿＋北竿的表格：能見度、雲高只加小程度條，不寫字（欄位窄） */
  .dy-cond--dual .lvl__w { display: none; }
  .dy-cond--dual .dy-cond__item:has(.lvlbtn) { flex-wrap: wrap; row-gap: 0; }
  .dy-cond--dual .lvlbtn { flex-basis: 100%; margin: 1px 0 0; }
  .dy-cond--dual .lvl__bar i { width: 9px; height: 5px; border-radius: 2px; }
  @media (max-width: 720px) {
    .sticky:has(.dy-cond--tiles) { position: static; }
    .dy-cond--tiles > .condpick { align-self: center; }
    .dy-cond--tiles > .dy-cond__time { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
    /* 手機：重點四格完整、其餘小格（設計稿丙） */
    .dy-cond--tiles > .condtiles { display: none; }
    .dy-cond--tiles > .condcomp { display: grid; gap: 6px; grid-column: 1 / -1; grid-row: 2; margin-top: 6px; min-width: 0; }
    .condcomp__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
    .condcomp__rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding-top: 6px; border-top: 1px solid var(--cond-rule, rgba(255,255,255,.14)); }
    .ctile { padding: 4px; gap: 0; min-height: 0; }
    .ctile__v { font-size: 17px; line-height: 22px; }
    .ctile__v.is-text { font-size: 15.5px; }
    .ctile__wxrow { gap: 3px; min-height: 38px; } .ctile__wxrow .wxi { width: 28px; height: 28px; } .ctile__wxt { font-size: 14px; line-height: 17px; } .ctile__wxt.is-long { font-size: 13px; line-height: 16px; }
    .ctile__go { display: none; }
    .ctile .lvl { gap: 4px; } .ctile .lvl__bar i { width: 5px; } .ctile .lvl__w { font-size: 12px; }
    .cchip { appearance: none; font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: 8px; margin: 0;
      padding: 4px 5px; display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 32px; white-space: nowrap; }
    button.cchip { cursor: pointer; }
    .cchip:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 1px; }
    .cchip__ic { display: flex; color: var(--ink-deep-muted); }
    .cchip__v { font-size: 14.5px; line-height: 20px; font-weight: 600; }
    .cchip__v small { font-family: var(--font-sans); font-weight: 500; font-size: 11px; margin-left: 2px; }
    .cchip__dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; background: #94a3a8; }
    .cchip.lvl--0 .cchip__dot { background: #34d399; } .cchip.lvl--1 .cchip__dot { background: #a3e635; } .cchip.lvl--2 .cchip__dot { background: #facc15; }
    .cchip.lvl--3 .cchip__dot { background: #fb923c; } .cchip.lvl--4 .cchip__dot { background: #ef4444; } .cchip.lvl--c .cchip__dot { background: #7cc4f0; } .cchip.lvl--t .cchip__dot { background: #4fd1c5; }
  }
  .condpick__btn {
    appearance: none; display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
    color: var(--ink-deep); font-family: var(--font-sans); font-size: 15px;
    line-height: 22px; font-weight: 700; padding: 10px 12px; min-height: 44px;
    border-radius: var(--radius-md); cursor: pointer; white-space: nowrap;
  }
  .condpick__btn:hover { background: rgba(255,255,255,.18); }
  .condpick__btn:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 2px; }
  .condpick__caret {
    width: 7px; height: 7px; margin-left: 2px; opacity: .75;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .condpick__menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: var(--z-dialog);
    min-width: 200px; padding: var(--space-1); display: grid; gap: 1px;
    background: var(--surface-raised); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
  }
  .condpick__opt {
    appearance: none; background: transparent; border: 0; cursor: pointer;
    display: flex; align-items: baseline; gap: var(--space-2); width: 100%;
    padding: 8px var(--space-3); border-radius: var(--radius-sm);
    font-family: var(--font-sans); font-size: 15px; line-height: 22px;
    color: var(--ink); text-align: left; min-height: 40px;
  }
  .condpick__opt:hover { background: var(--surface-sunken); }
  .condpick__opt.is-on { background: var(--tide); color: var(--on-tide); }
  .condpick__opt:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
  .condpick__name { font-weight: 700; white-space: nowrap; }
  .condpick__sub { font-size: 12px; line-height: 18px; opacity: .75; white-space: nowrap; }

  /* ---- 南竿＋北竿：兩個機場各一列 ----
     左欄是選單與更新時間（上下疊），右欄是兩個機場。
     每個機場的內容分成「天候」與「航班」兩組，放不下時**整組**換行，
     換到下一行時對齊在第一個欄位下方，不會零散地掉一格下去。 */
  .dy-cond--dual { display: grid; grid-template-columns: auto minmax(0, 1fr);
                   grid-template-rows: auto auto; align-items: center; column-gap: var(--space-5); }
  .dy-cond--dual > .condpick { grid-column: 1; grid-row: 1; align-self: end; }
  .dy-cond--dual > .dy-cond__time { grid-column: 1; grid-row: 2; align-self: start;
                                    margin: var(--space-2) 0 0; }
  .dy-cond--dual > .condgrps { grid-column: 2; grid-row: 1 / span 2; }
  .condgrps { display: grid; row-gap: var(--space-2); min-width: 0; }
  .condgrp { display: grid; grid-template-columns: 2.5em minmax(0, 1fr);
             column-gap: var(--space-3); align-items: baseline; }
  .condgrp + .condgrp { padding-top: var(--space-2); border-top: 1px solid rgba(255,255,255,.12); }
  .condgrp__name { font-size: 14px; line-height: 22px; font-weight: 700; color: var(--ink-deep); }
  .condgrp__body { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6, 32px); }
  .condgrp__part { display: flex; flex-wrap: nowrap; align-items: baseline; gap: var(--space-4); }
  /* 「飛往台中」「從台中抵達」是重點資訊，不是單位，比單位亮一階 */
  .condverb { font-size: 13px; color: var(--ink-deep); }
  /* 「今日航班已結束」是說明，不是數值：比數值小一號、淡一階 */
  .condgrp__part .dy-cond__value:only-child { font-size: 14px; }
  /* 兩列（南竿、北竿）的同一欄要上下對齊（使用者：排版沒有對齊）：每一格都是內容撐開的寬度，
     「接近門檻」比「達標準」多一個字，後面的班機欄就錯開。每一格給固定的最小寬度 */
  .condgrp__part:first-child > :nth-child(1) { min-width: 7.2em; }   /* 能見度 */
  .condgrp__part:first-child > :nth-child(2) { min-width: 6.6em; }   /* 雲高 */
  .condgrp__part:first-child > :nth-child(3) { min-width: 6.4em; }   /* 天氣（「晴時多雲」這種要放得下） */
  .condgrp__part:first-child > :nth-child(4) { min-width: 8.4em; }   /* 起降 */
  .condgrp__part:last-child > * { min-width: 15.5em; }                /* 下一班出發、抵達 */
  /* 寬螢幕的南竿＋北竿：橫向鋪滿的表（見 condWide）。1200px 以上用它（1100 會出現橫向捲軸），中等寬度用上面的分組版 */
  .condwide { display: none; }
  @media (min-width: 1200px) {
    .dy-cond.dy-cond--dual > .condgrps { display: none; }
    .dy-cond.dy-cond--dual > .condwide { display: grid; grid-column: 2; grid-row: 1 / span 2; min-width: 0;
      grid-template-columns: 2.6em repeat(4, minmax(6.5em, 1fr)) repeat(2, minmax(14em, 1.7fr)); column-gap: var(--space-5); }
    .condwide__r { display: contents; }
    .condwide__r--h > span { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--ink-deep-muted); padding-bottom: 4px;
                             border-bottom: 1px solid rgba(255,255,255,.12); }
    .condwide__r:not(.condwide__r--h) > span { padding-top: 10px; }
    .condwide__r:not(.condwide__r--h) + .condwide__r > span { border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
    .condwide__n { font-size: 15px; line-height: 24px; font-weight: 700; color: var(--ink-deep); align-self: baseline; }
    .condwide__c { min-width: 0; align-self: baseline; }
    .condwide__c--span { grid-column: span 2; }
    .condwide .dy-cond__label { display: none; }            /* 欄名在上面寫過了 */
    .condwide .dy-cond__item { white-space: nowrap; }
  }
  /* 手機的南竿＋北竿迷你表（見 condMini） */
  .condmini { display: none; }
  @media (max-width: 720px) {
    /* 選擇器多一層 .dy-cond：後面還有一段舊的手機版規則（同樣具體度、位置在後），不加會被蓋掉 */
    .dy-cond.dy-cond--dual { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
                             row-gap: var(--space-2); padding: var(--space-3); }
    .dy-cond.dy-cond--dual > .condpick { grid-column: 1; grid-row: 1; align-self: center; }
    .dy-cond.dy-cond--dual > .dy-cond__time { grid-column: 2; grid-row: 1; justify-self: end;
                                               align-self: center; margin: 0; }
    .dy-cond.dy-cond--dual > .condgrps { display: none; }
    .dy-cond.dy-cond--dual > .condmini { display: block; grid-column: 1 / -1; grid-row: 2; }
    .condmini__r { display: grid; grid-template-columns: 2.6em repeat(4, minmax(0, 1fr));
                   column-gap: 6px; align-items: baseline; }
    .condmini__r--h { font-size: 11px; line-height: 16px; color: var(--ink-deep-muted); font-weight: 600; }
    .condmini__r:not(.condmini__r--h) { margin-top: 6px; }
    .condmini__n { font-size: 14px; line-height: 22px; font-weight: 700; color: var(--ink-deep); }
    .condmini__v { font-family: var(--font-mono); font-size: 15px; line-height: 22px; color: var(--ink-deep);
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* 狀態色要蓋過上面的白色（深色底專用的那組） */
    .condmini__v.dy-cond__value--go { color: var(--go-on-deep, var(--go)); }
    .condmini__v.dy-cond__value--hold { color: var(--hold-on-deep, var(--hold)); }
    .condmini__v.dy-cond__value--stop { color: var(--stop-on-deep, var(--stop)); }
    .condmini__f { margin: 0 0 0 calc(2.6em + 6px); font-size: 12px; line-height: 18px; color: var(--ink-deep-muted); }
    .condmini__fi + .condmini__fi::before { content: '·'; margin: 0 6px; }
    .condmini__fi b { color: var(--ink-deep); font-family: var(--font-mono); font-weight: 600; }
    .condmini .condbadge { font-size: 11px; line-height: 16px; padding: 0 5px; margin-left: 4px; }
  }
  /* 航班狀態字：深色底要用深色底專用的狀態色（見 CLAUDE.md 對比那一條） */
  .condbadge { font-size: 12px; line-height: 18px; font-weight: 700; margin-left: 4px;
               padding: 0 6px; border-radius: var(--radius-pill);
               border: 1px solid rgba(255,255,255,.25); color: var(--ink-deep); }
  .condbadge--go { color: var(--go-on-deep, var(--go)); border-color: currentColor; }
  .condbadge--hold { color: var(--hold-on-deep, var(--hold)); border-color: currentColor; }
  .condbadge--stop { color: var(--stop-on-deep, var(--stop)); border-color: currentColor; }
  @media (max-width: 720px) {
    .dy-cond--dual { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--space-3); }
    .dy-cond--dual > .condpick, .dy-cond--dual > .dy-cond__time,
    .dy-cond--dual > .condgrps { grid-column: 1; grid-row: auto; align-self: start; }
    .dy-cond--dual > .dy-cond__time { margin: 0; }
    /* 手機放不下一整組天候，組內也要能換行；機場名獨占一行 */
    .condgrp { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
    .condgrp__body { row-gap: var(--space-1); }
    .condgrp__part { flex-wrap: wrap; row-gap: var(--space-1); }
  }

  /* ---- 黏頂的島況 ---- */
  .sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-sticky); background: var(--surface); padding-block: var(--space-3); }
  .sticky-inner { display: flex; flex-direction: column; gap: var(--space-3); }
  .switchrow { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }

  /* ---- 版面 ---- */
  main { padding-bottom: 96px; }
  .block { margin-top: var(--space-7); }
  .cols { display: grid; gap: var(--space-5); }
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-32 { grid-template-columns: 3fr 2fr; }
  .stack { display: grid; gap: var(--space-4); }
  @media (max-width: 820px) { .cols-2, .cols-32 { grid-template-columns: 1fr; } }

  /* 手機：內距縮小、字級調整，把橫向空間留給內容 */
  @media (max-width: 560px) {
    .shell { padding-inline: 12px; }
    /* 任何一塊都不准把內容推出畫面——右邊被切掉的字是最難發現的錯誤 */
    body { overflow-x: hidden; }
    .plain, .dy-card { overflow-wrap: anywhere; }
    .plain { padding: var(--space-4); }
    .masthead .shell { gap: var(--space-2); padding-block: var(--space-3); }
    .wordmark { font-size: 24px; line-height: 30px; }
    .wordmark__a { gap: 10px; } .wordmark__logo { width: 40px; height: 40px; border-radius: 10px; }
    .wordmark__sub { display: block; margin-left: 0; line-height: 18px; }
    .mast-tools { gap: 6px; }
    .viewtab { padding: var(--space-2) var(--space-3); font-size: 14px; }
    .block { margin-top: var(--space-5); }
    .booklinks { gap: var(--space-2); }
    .booklink { font-size: 12px; }
    /* 訂票與候補按鈕在窄畫面要能換行，不要把標題擠成直排 */
    .dy-sec__actions, .dy-dep__head { flex-wrap: wrap; }
  }

  .plain { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-5); }
  .plain--quiet { box-shadow: none; }
  .muted { color: var(--ink-muted); font-size: 13px; line-height: 21px; }
  .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  .none { color: var(--ink-muted); font-size: 15px; padding: var(--space-4) 0; }

  /* ---- 表單 ---- */
  .field { display: grid; gap: var(--space-1); margin-bottom: var(--space-3); }
  .field label { font-size: 12px; letter-spacing: .06em; font-weight: 600; color: var(--ink-muted); }
  .field input, .field select, .field textarea {
    font-family: var(--font-sans); font-size: 15px; line-height: 24px; color: var(--ink);
    background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 9px var(--space-3); min-height: 44px; width: 100%; box-sizing: border-box;
  }
  .field textarea { min-height: 88px; resize: vertical; }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .rowfields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  @media (max-width: 560px) { .rowfields { grid-template-columns: 1fr; } }

  /* ---- 對話框 ---- */
  /* 開著任何對話框時，背景頁面不能捲（2026-09-29，使用者：開視窗時滾輪會捲到後面的頁面）；
     視窗本身捲到底也不把捲動傳給後面（overscroll-behavior） */
  html:has(.scrim, .sp__modal, .zoomer, .spot3d.is-full, .gbmapw.is-full, .tbh__stage, .srch__scrim), html:has(.scrim, .sp__modal, .zoomer, .spot3d.is-full, .gbmapw.is-full, .tbh__stage, .srch__scrim) body { overflow: hidden !important; }
  .scrim, .sp__modal, .zoomer, .sheet, .sp__face--back { overscroll-behavior: contain; }
  .scrim { position: fixed; inset: 0; background: var(--overlay); z-index: var(--z-dialog); display: flex; align-items: center; justify-content: center; padding: 16px; }
  /* 覆蓋層一定要有自己的背景。原本沒有，底下的頁面會整個透出來——
     文章頁的字疊在月曆格線上，看起來又暗又亂，以為是字的顏色太深，
     其實是根本沒有底。其他覆蓋層看起來正常只是碰巧：
     它們的第一個子元素是 .dy-card，那個有背景。 */
  .sheet {
    max-width: 460px; width: 100%; max-height: 86vh; overflow-y: auto;
    position: relative;
    background: var(--surface-raised, #fff); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift); padding: var(--space-4);
  }
  /* 文章頁要放直式海報，460px 太窄 */
  .sheet--wide { max-width: 620px; }
  .sheet__x {
    position: sticky; top: 0; float: right; z-index: 2;
    appearance: none; cursor: pointer; border: 1px solid var(--line-strong);
    background: var(--surface-raised, #fff); color: var(--ink-muted);
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    font-size: 18px; line-height: 1; margin: -4px -4px 0 var(--space-3);
  }
  .sheet__x:hover { color: var(--ink); border-color: var(--ink-muted); }

  /* ---- 原型控制台 ---- */
  .console { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-toast); background: var(--surface-deep); color: var(--ink-deep); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .console .shell { display: flex; align-items: center; gap: var(--space-3);
                    flex-wrap: wrap; padding-block: 2px; }
  /* 收合時整條只有一行。原本三個項目平鋪，手機上折成兩三行，
     吃掉畫面下緣近九十像素——而這是輔助資訊不是內容。 */
  .console-toggle {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; gap: var(--space-2);
    color: var(--ink-deep); font-family: var(--font-sans);
    font-size: 12px; line-height: 18px; font-weight: 600;
    padding: 0 var(--space-2) 0 0; min-height: 44px;   /* 觸控目標（SPEC 11） */
  }
  .console-toggle:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 2px; }
  .console-toggle .dy-icon { transition: transform 140ms ease; opacity: .75; }
  .console--open .console-toggle .dy-icon { transform: rotate(180deg); }
  @media (prefers-reduced-motion: reduce) {
    .console-toggle .dy-icon { transition: none; }
  }
  /* 一顆點就看得出「有沒有東西沒載到」，不必展開 */
  .console-dot { width: 7px; height: 7px; border-radius: 50%;
                 background: var(--go-on-deep); flex: none; }
  .console-dot--off { background: var(--stop-on-deep); }
  .console-sum { white-space: nowrap; }
  .console-lbl { font-size: 12px; letter-spacing: .06em; font-weight: 600; color: var(--ink-deep-muted); }
  .seg { display: inline-flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: var(--radius-pill); padding: 2px; }
  .seg button {
    appearance: none; border: 0; background: transparent; color: var(--ink-deep-muted); cursor: pointer;
    font-family: var(--font-sans); font-size: 13px; font-weight: 700; padding: 6px var(--space-3); min-height: 34px; border-radius: var(--radius-pill);
  }
  .seg button[aria-pressed="true"] { background: var(--tide); color: var(--on-tide); }
  .seg button:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 1px; }
  .console input[type="range"] { accent-color: var(--tide-glow); width: 132px; }
  .feedchip {
    font-family: var(--font-sans); font-size: 12px; line-height: 18px; color: var(--ink-deep-muted);
    border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-pill); padding: 3px var(--space-3);
  }
  .feedchip b { color: var(--ink-deep); font-weight: 700; margin-right: 4px; }
  .feedchip--off { border-color: var(--stop); color: var(--stop); }

  /* ---- 現場 ---- */
  .stage-note { font-size: 13px; line-height: 21px; }

  /* ---- 頁首的登入／登出 ---- */
  .authbtn {
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    font-family: var(--font-sans); font-size: 13px; font-weight: 700;
    color: var(--ink-deep); background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-md);
    padding: 11px var(--space-3); min-height: 44px; box-sizing: border-box;
  }
  .authbtn:hover { background: rgba(255,255,255,.18); }
  .authbtn:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 2px; }
  .authbtn--primary { background: var(--tide); color: var(--on-tide); border-color: transparent; }
  .authbtn--primary:hover { background: var(--tide); filter: brightness(1.08); }
  /* 淺底（快報、卡片）上的版本——頁首那組是給 surface-deep 用的 */
  .dy-banner .authbtn, .plain .authbtn {
    color: var(--tide); background: var(--surface-raised); border-color: var(--line-strong);
  }
  .dy-banner .authbtn:hover, .plain .authbtn:hover { background: var(--surface-sunken); }
  .dy-banner .authbtn:focus-visible, .plain .authbtn:focus-visible {
    outline: 2px solid var(--focus); outline-offset: 2px;
  }

  /* ---- 飛機即時位置地圖 ---- */
  .flightmap { height: 340px; margin-top: var(--space-3); border-radius: var(--radius-md);
               overflow: hidden; background: var(--surface-sunken); }
  @media (max-width: 560px) { .flightmap { height: 260px; } }
  .planeicon { display: flex; align-items: center; justify-content: center;
               color: var(--tide); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
  .planetip { font-family: var(--font-sans); font-size: 13px; line-height: 20px; }
  .planetip b { font-family: var(--font-mono); }
  .leaflet-container { font-family: var(--font-sans); background: var(--surface-sunken); }

  /* ---- 飛航中的班機 ---- */
  .plane__route { font-family: var(--font-sans); font-weight: 600; }
  .plane__ico--idle { opacity: .4; }
  /* 航空公司標誌：方形圖案，跟班號同一行 */
  .airlogo--link.airlogo { height: 18px; margin-right: 2px; vertical-align: 0; }
  .backhome { white-space: nowrap; }
  /* 垃圾車清運時間 */
  /* ─── 桶裝瓦斯（生活資訊的「瓦斯」，2026-10-10） ─── */
  .gs p { margin: 0; } .gs__alert { background: var(--hold-tint); border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.7; } .gs__alert b { color: var(--hold); margin-right: 8px; }
  .gs__intro { display: grid; gap: 6px; font-size: 15.5px; line-height: 1.8; justify-items: start; }
  .gs__price { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; align-items: center; background: var(--surface-deep); color: var(--ink-deep); border-radius: 16px; padding: 18px; }
  .gs__now { display: grid; gap: 2px; } .gs__now span { font-size: 13px; color: var(--ink-deep-muted); } .gs__now b { font-family: var(--font-serif); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; } .gs__now small { font-family: var(--font-sans); font-size: 18px; } .gs__now em { font-style: normal; font-size: 13.5px; color: var(--ink-deep-muted); } .gs__now em.is-up { color: var(--stop-on-deep); font-weight: 700; }
  .gs__cmp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; } .gs__cmp li { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 12px; display: grid; gap: 1px; } .gs__cmp b { font-size: 18px; } .gs__cmp span { font-size: 12.5px; line-height: 1.55; color: var(--ink-deep-muted); }
  .gs__chartw { display: grid; gap: 8px; min-width: 0; } .gs__charth { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; } .gs__charth .newsfilter { margin: 0; }
  .gs__chart { display: block; width: 100%; height: auto; } .gs__grid { stroke: var(--line); stroke-width: 1; } .gs__tick { font-size: 12px; fill: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .gs__band { fill: var(--tide); opacity: .12; stroke: none; } .gs__med { fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-dasharray: 5 4; } .gs__lj { fill: none; stroke: var(--stop); stroke-width: 3.5; stroke-linejoin: round; } .gs__dot { fill: var(--stop); stroke: var(--surface-raised); stroke-width: 2; }
  .gs__km { fill: none; stroke: var(--tide); stroke-width: 2; } .gs__ph { fill: none; stroke: var(--hold); stroke-width: 2; } .gs__key i.k-km { border-top: 2.5px solid var(--tide); } .gs__key i.k-ph { border-top: 2.5px solid var(--hold); }
  .gs__cpc { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; } .gs__key i.k-cpc { border-top: 2.5px dotted var(--ink); }
  .gs__gap { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; } .gs__cap { font-size: 14.5px; color: var(--ink-muted); line-height: 1.7; margin: 0; } .gs__why > table, .gs__why > p, .gs__why > ul { width: 100%; box-sizing: border-box; justify-self: stretch; min-width: 0; } .gs__cmp { table-layout: fixed; } @media (max-width: 380px) { .gs__gap:not(.gs__cmp) { font-size: 14px; } } .gs__gap:not(.gs__cmp) th, .gs__gap:not(.gs__cmp) td { white-space: nowrap; padding: 5px 4px; } .gs__cmp td:nth-child(2) { width: 62px; white-space: nowrap; }
  .gs__gap th, .gs__gap td { text-align: right; padding: 5px 6px; border-bottom: 1px solid var(--line); font-weight: 500; } .gs__gap tr > :first-child { text-align: left; } .gs__gap thead th { font-size: 13.5px; color: var(--ink-muted); }
  .gs__cmp small { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink-muted); line-height: 1.6; } .gs__cmp td:last-child { text-align: left; font-size: 13.5px; color: var(--ink-muted); width: 30%; }
  .gs__gap tr.is-me th, .gs__gap tr.is-me td { font-weight: 800; }
  .gs__hikes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .gs__rank .gs__hikes li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-items: start; font-size: 15px; line-height: 1.7; } .gs__rank .gs__hikes li b { text-align: left; } .gs__why > details { width: 100%; box-sizing: border-box; min-width: 0; }
  .gs__why { display: grid; gap: 6px; justify-items: start; background: var(--surface-sunken); border-radius: 12px; padding: 12px 14px; } .gs__why b { font-size: 15.5px; }
  .gs__key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-muted); } .gs__key span { display: inline-flex; align-items: center; gap: 6px; } .gs__key i { width: 22px; height: 0; border-top: 3.5px solid var(--stop); } .gs__key i.k-med { border-top: 2px dashed var(--ink-muted); } .gs__key i.k-band { height: 10px; border: 0; background: var(--tide); opacity: .2; }
  .gs__rank summary, .gs__more summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--tide); min-height: 44px; display: flex; align-items: center; }
  .gs__rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; } .gs__rank li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-size: 13.5px; } .gs__rank li i { height: 10px; border-radius: 5px; background: var(--line-strong); } .gs__rank li b { text-align: right; font-variant-numeric: tabular-nums; } .gs__rank li.is-me { font-weight: 700; } .gs__rank li.is-me i { background: var(--stop); }
  .gs__notes { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.75; }
  .gs__isl { display: grid; gap: 10px; border: 1px solid var(--line); border-left: 6px solid var(--go); border-radius: 14px; padding: 14px; } .gs__isl.is-old { border-left-color: var(--hold); } .gs__isl.is-none { border-left-color: var(--ink-muted); }
  .gs__known { justify-self: start; font-size: 12.5px; font-weight: 700; border-radius: 6px; padding: 2px 9px; background: var(--go-tint); color: var(--go); } .is-old > .gs__known { background: var(--hold-tint); color: var(--hold); } .is-none > .gs__known { background: var(--surface-sunken); color: var(--ink-muted); }
  .gs__isl dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; margin: 0; font-size: 15.5px; line-height: 1.65; } .gs__isl dt { color: var(--ink-muted); white-space: nowrap; } .gs__isl dd { margin: 0; } .gs__isl > p { font-size: 15px; line-height: 1.8; }
  .gs__tel { color: var(--tide); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; } .gs__act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
  .gs__rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; } .gs__rights > div { display: grid; gap: 6px; align-content: start; justify-items: start; background: var(--surface-sunken); border-radius: 12px; padding: 12px 14px; } .gs__rights b { font-size: 16px; } .gs__rights p { font-size: 14.5px; line-height: 1.75; }
  .gs__ev { list-style: none; margin: 0; padding: 0; display: grid; } .gs__ev li { display: grid; grid-template-columns: 96px 44px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; } .gs__ev time { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  /* 最上面三格（2026-10-10 使用者：上方先寫清楚運送時間、聯繫單位與電話、價格） */
  .gs__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .gs__box { display: grid; gap: 10px; align-content: start; border: 2px solid var(--line-strong); border-radius: 16px; padding: 16px; min-width: 0; } .gs__box h4 { margin: 0; font-size: 15px; letter-spacing: .08em; color: var(--ink-muted); } .gs__box > p { font-size: 17px; line-height: 1.75; }
  .gs__box .gs__sm, .gs__sm { font-size: 13.5px !important; line-height: 1.7 !important; color: var(--ink-muted); }
  .gs__call { display: grid; gap: 2px; text-decoration: none; background: var(--tide); color: var(--on-tide); border-radius: 12px; padding: 12px 14px; min-height: 64px; align-content: center; } .gs__call span { font-size: 14px; line-height: 1.4; } .gs__call b { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
  .gs__pr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; } .gs__pr b { font-family: var(--font-serif); font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; } .gs__pr span { font-size: 14px; color: var(--ink-muted); } .gs__pr + .gs__pr b { font-size: 21px; }
  .gs__rep { font: inherit; font-size: 14.5px; font-weight: 700; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--tide); background: none; color: var(--tide); cursor: pointer; justify-self: start; text-align: left; }
  p.gs__known { justify-self: start; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--go-tint); color: var(--go); } p.gs__known.is-old { background: var(--hold-tint); color: var(--hold); } p.gs__known.is-none { background: var(--surface-sunken); color: var(--ink-muted); }
  .gs__how { display: grid; gap: 8px; } .gs__how p { font-size: 15.5px; line-height: 1.8; } .gs__sum { font-size: 15.5px; line-height: 1.8; } .gs__more > div, .gs__more > ol, .gs__more > ul { padding-bottom: 10px; }
  .gs__box h4 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; } .gs__box h4 em { font-style: normal; letter-spacing: 0; font-size: 12.5px; border-radius: 6px; padding: 1px 8px; background: var(--go-tint); color: var(--go); } .gs__box h4 em.is-old { background: var(--hold-tint); color: var(--hold); } .gs__box h4 em.is-none { background: var(--surface-sunken); color: var(--ink-muted); }
  .gs__sch { display: grid; gap: 10px; } .gs__sch > div { display: grid; gap: 4px; background: var(--surface-sunken); border-radius: 10px; padding: 10px 12px; } .gs__sch b { font-size: 15px; } .gs__sch span { font-size: 13.5px; color: var(--ink-muted); }
  .gs__sch ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; } .gs__sch li { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; } .gs__sch i { font-style: normal; font-weight: 700; } .gs__sch time { font-variant-numeric: tabular-nums; }
  .gs__srcl { font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; align-items: center; }
  /* 精簡版（2026-10-10 使用者截圖：三格等高時右邊兩格大半是空的）：有時刻表的島，左邊放時間、右邊電話與價格上下疊；時刻表的兩區左右並排 */
  .gs__side { display: contents; } .gs__box { border-width: 1px; border-color: var(--line-strong); padding: 14px 16px; gap: 8px; } .gs__box > p { font-size: 16px; line-height: 1.7; } .gs__box h4 .srci { margin-left: auto; }
  .gs__top.has-sch { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } .gs__top.has-sch .gs__side { display: grid; gap: 12px; }
  .gs__sch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gs__sch > div { padding: 8px 12px; gap: 2px; } .gs__sch li { font-size: 15px; } .gs__sch ul { gap: 1px; }
  .gs__call { min-height: 56px; padding: 9px 14px; } .gs__call b { font-size: 24px; } .gs__pr b { font-size: 28px; } .gs__pr + .gs__pr b { font-size: 19px; }
  @media (max-width: 820px) { .gs__top, .gs__top.has-sch { grid-template-columns: minmax(0, 1fr); } .gs__side, .gs__top.has-sch .gs__side { display: grid; gap: 12px; } }
  @media (max-width: 460px) { .gs__sch { grid-template-columns: minmax(0, 1fr); } }

  @media (max-width: 640px) { .gs__price { grid-template-columns: minmax(0, 1fr); } .gs__now b { font-size: 48px; } .gs__ev li { grid-template-columns: 84px minmax(0, 1fr); } .gs__ev li span { grid-column: 1 / -1; } }
  /* 無障礙、各宗教兩頁的會員回報 */
  .pgr { display: grid; gap: 10px; min-width: 0; } .pgr h2 { margin: 0; font-size: 20px; } .pgr p { margin: 0; } .pgr .newsfilter { margin: 0; } .pgr .dy-chip { min-height: 44px; }
  .pgr__h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 4px !important; } .pgr__h b { font-size: 16px; } .pgr__h span { font-size: 13px; color: var(--ink-muted); }
  .pgr__in { font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; padding: 10px 12px; min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); }
  .pgr__send { font: inherit; font-size: 16px; font-weight: 700; min-height: 48px; padding: 8px 18px; border-radius: 12px; border: 0; background: var(--tide); color: var(--on-tide); cursor: pointer; } .pgr__send:disabled { background: var(--surface-sunken); color: var(--ink-muted); cursor: default; }
  .pgr__n { font-size: 12.5px !important; line-height: 1.7; color: var(--ink-muted); list-style: none; } .pgr__err, .pgr__login { font-size: 14.5px; color: var(--stop); font-weight: 700; } .pgr__login { color: var(--ink); background: var(--hold-tint); border-radius: 10px; padding: 10px 12px; } .pgr__login a, .pgr__err a { color: var(--tide); margin-left: 6px; }
  .pgr__list { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 4px; background: var(--hold-tint); border-radius: 10px; } .pgr__list.is-all { background: var(--surface-raised); border: 1px solid var(--line); padding: 12px 14px; gap: 8px; }
  .pgr__it { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; font-size: 14px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; } .pgr__it b { color: var(--hold); } .pgr__it.is-hid { opacity: .5; text-decoration: line-through; }
  .pgr__hide { font: inherit; font-size: 12.5px; flex: none; min-height: 32px; padding: 2px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
  .pgr__blk { display: grid; gap: 10px; background: var(--surface-sunken); border-radius: 16px; padding: 16px; } .pgr__blkh { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; } .pgr__blkh h2 { margin: 0; font-size: 19px; } .pgr__blkh p { margin: 2px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-muted); max-width: 34em; }
  /* ─── 無障礙資訊 /access（2026-10-10）：這一頁的按鈕一律 44px 以上、內文 16px 以上；等級除了顏色一定有符號與字 ─── */
  .ax { display: grid; gap: 20px; padding-block: 18px 34px; --ax-ok: var(--go); --ax-okb: var(--go-tint); --ax-part: var(--hold); --ax-partb: var(--hold-tint); --ax-no: var(--stop); --ax-nob: var(--stop-tint); --ax-unk: var(--ink-muted); --ax-unkb: var(--surface-sunken); }
  .ax h1, .ax h2, .ax h3, .ax p, .ax ul, .ax ol { margin: 0; } .ax ul, .ax ol { padding: 0; list-style: none; }
  .ax__hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: center; background: var(--surface-deep); color: var(--ink-deep); border-radius: 18px; padding: 22px; }
  .ax__hero h1 { font-family: var(--font-serif); font-size: 32px; line-height: 1.25; margin-bottom: 8px; } .ax__hero p { font-size: 16.5px; line-height: 1.75; color: var(--ink-deep-muted); }
  .ax__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .ax__nums li { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
  .ax__nums b { font-family: var(--font-serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; } .ax__nums span { font-size: 12.5px; color: var(--ink-deep-muted); }
  .ax__alert { background: var(--hold-tint); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; } .ax__alert > b { color: var(--hold); font-size: 15px; } .ax__alert li { font-size: 15.5px; line-height: 1.7; padding-left: 16px; position: relative; color: var(--ink); } .ax__alert li::before { content: "・"; position: absolute; left: 0; }
  .ax__now { display: grid; gap: 12px; } .ax__now h2 { font-family: var(--font-serif); font-size: 24px; }
  .ax__sits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .ax__sit { font: inherit; display: grid; gap: 10px; align-content: space-between; justify-items: start; text-align: left; min-height: 104px; padding: 14px 12px; border-radius: 18px; border: 3px solid transparent; cursor: pointer; color: #17262c; }
  .ax__sit b { font-size: 16.5px; line-height: 1.3; } .ax__sit.is-on { border-color: var(--ink); }
  .ax__sit.is-wc { background: #d6ebfb; } .ax__sit.is-loan { background: #d9f0e2; } .ax__sit.is-car { background: #fbe7b8; } .ax__sit.is-sick { background: #f9d6d1; } .ax__sit.is-port { background: #e6dcf8; } .ax__sit.is-go { background: #e3e8e6; }
  .ax__sitb { background: var(--surface-raised); border: 2px solid var(--line-strong); border-radius: 16px; padding: 16px; } .ax__sitb > div { display: grid; gap: 12px; min-width: 0; }
  .ax__tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); scrollbar-width: none; }
  .ax__tabs button { flex: none; font: inherit; font-size: 16px; font-weight: 700; min-height: 48px; padding: 8px 16px; border: 0; background: none; color: var(--ink-muted); border-bottom: 4px solid transparent; margin-bottom: -2px; cursor: pointer; }
  .ax__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tide); }
  .ax__body, .ax__body > div { display: grid; gap: 14px; min-width: 0; } .ax .newsfilter { margin-bottom: 0; } .ax .dy-chip { min-height: 44px; }
  .ax__lead { font-size: 14.5px; line-height: 1.8; color: var(--ink-muted); } .ax__none { font-size: 15.5px; color: var(--ink-muted); padding: 10px 0; } .ax__h3 { font-size: 17px; }
  .ax__btn { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--tide); background: var(--surface-raised); color: var(--tide); text-decoration: none; cursor: pointer; white-space: nowrap; }
  .ax__loc { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; color: var(--ink-muted); }
  .ax__tel { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 44px; padding: 8px 14px; border-radius: 10px; background: var(--surface-sunken); text-decoration: none; color: var(--ink); } .ax__tel span { font-size: 13.5px; color: var(--ink-muted); } .ax__tel b { font-size: 17px; color: var(--tide); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ax__tel.is-big { background: var(--tide); } .ax__tel.is-big span, .ax__tel.is-big b { color: var(--on-tide); } .ax__tels { display: flex; flex-wrap: wrap; gap: 8px; }
  .ax__lv { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; border-radius: 8px; padding: 3px 10px; white-space: nowrap; } .ax__lv i { font-style: normal; } .ax__lv.is-s { font-size: 12.5px; padding: 1px 7px; }
  .ax__lv.is-ok { background: var(--ax-okb); color: var(--ax-ok); } .ax__lv.is-part { background: var(--ax-partb); color: var(--ax-part); } .ax__lv.is-no { background: var(--ax-nob); color: var(--ax-no); } .ax__lv.is-unk { background: var(--ax-unkb); color: var(--ax-unk); }
  .ax__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
  .ax__spot, .ax__mv { display: grid; gap: 10px; align-content: start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; } .ax__spot { border-top: 6px solid var(--ax-unk); }
  .ax__spot.is-ok { border-top-color: var(--ax-ok); } .ax__spot.is-part { border-top-color: var(--ax-part); } .ax__spot.is-no { border-top-color: var(--ax-no); }
  .ax__spoth { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; } .ax__spoth h3, .ax__mv h3 { font-size: 18px; line-height: 1.4; } .ax__spoth small { font-weight: 400; font-size: 13.5px; color: var(--ink-muted); margin-left: 8px; }
  .ax__spot p, .ax__mv p, .ax__box > p { font-size: 16px; line-height: 1.75; } .ax__conf { font-size: 14px !important; color: var(--ink-muted); border-left: 4px solid var(--hold); padding-left: 10px; }
  .ax__tags { display: flex; flex-wrap: wrap; gap: 6px; } .ax__tags span { font-size: 13.5px; background: var(--surface-sunken); border-radius: 6px; padding: 2px 9px; }
  .ax__foot1 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ax__foot1 .srci { margin-left: auto; }
  .ax__prof { display: flex; align-items: flex-end; gap: 2px; padding: 6px 0 2px; } .ax__seg { position: relative; flex: 1 1 0; min-width: 0; display: grid; gap: 4px; justify-items: center; text-align: center; }
  .ax__seg svg { width: 100%; height: 30px; display: block; } .ax__seg path { fill: none; stroke: var(--ax-ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .ax__seg.is-ramp path { stroke: var(--ax-part); } .ax__seg.is-steep path { stroke: var(--ax-part); stroke-width: 6; } .ax__seg.is-stairs path { stroke: var(--ax-no); stroke-width: 4; } .ax__seg.is-unk path { stroke: var(--ax-unk); stroke-width: 3; }
  .ax__seg em { font-style: normal; font-size: 12.5px; line-height: 1.35; color: var(--ink); } .ax__seg.is-past em { color: var(--ink-muted); } .ax__seg.is-past svg { opacity: .55; }
  .ax__here { position: absolute; top: -8px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-deep); color: var(--ink-deep); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface-raised); }
  .ax__prof.is-none .ax__seg { justify-items: start; } .ax__prof.is-none em { color: var(--ink-muted); }
  .ax__key { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; vertical-align: middle; margin: 0 6px; } .ax__key .ax__seg { flex: none; display: inline-flex; align-items: center; gap: 4px; } .ax__key svg { width: 34px; height: 16px; } .ax__key em { font-size: 13px; }
  .ax__rows { display: grid; gap: 8px; } .ax__row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
  .ax__row > div:first-child { display: grid; gap: 1px; min-width: 0; } .ax__row b { font-size: 16.5px; } .ax__row em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--tide); } .ax__row span { font-size: 14px; color: var(--ink-muted); } .ax__rowa { display: flex; flex-wrap: wrap; gap: 6px; }
  .ax__box { display: grid; gap: 12px; min-width: 0; } .ax__ul { display: grid; gap: 6px; } .ax__ul li { font-size: 15.5px; line-height: 1.75; padding-left: 16px; position: relative; } .ax__ul li::before { content: "・"; position: absolute; left: 0; color: var(--ink-muted); }
  .ax__tblw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; } .ax__tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
  .ax__tbl th, .ax__tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } .ax__tbl thead th { background: var(--surface-sunken); font-size: 13.5px; } .ax__tbl tbody tr:last-child > * { border-bottom: 0; } .ax__tbl a { color: var(--tide); font-weight: 700; }
  .ax__line { position: relative; display: grid; gap: 10px; padding-left: 30px; } .ax__line::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 20px; width: 6px; border-radius: 3px; background: var(--line-strong); }
  .ax__stop { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; position: relative; } .ax__stop.is-gap { border-color: var(--ax-no); background: var(--ax-nob); }
  .ax__stop summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 12px 14px; min-height: 56px; } .ax__stop summary::-webkit-details-marker { display: none; }
  .ax__dot { position: absolute; left: -29px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 6px solid var(--ax-ok); } .ax__stop.is-call .ax__dot { border-color: var(--ax-part); } .ax__stop.is-gap .ax__dot { border-color: var(--ax-no); }
  .ax__seglb { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink-muted); } .ax__stop summary b { font-size: 17.5px; } .ax__stopt { grid-column: 1 / 3; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
  .ax__stop summary em { grid-row: 1; grid-column: 3; font-style: normal; font-size: 13px; font-weight: 700; border-radius: 7px; padding: 2px 9px; background: var(--ax-okb); color: var(--ax-ok); white-space: nowrap; } .ax__stop.is-call summary em { background: var(--ax-partb); color: var(--ax-part); } .ax__stop.is-gap summary em { background: var(--ax-no); color: #fff; }
  .ax__stopb { padding: 4px 14px 16px; display: grid; gap: 12px; min-width: 0; } .ax__stop.is-gap .ax__stopb { background: var(--surface-raised); border-radius: 0 0 13px 13px; padding-top: 14px; }
  .ax__mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px 14px; } .ax__mini li { display: flex; gap: 8px; align-items: center; font-size: 15px; min-height: 32px; }
  .ax__opts { display: grid; gap: 8px; } .ax__prog { height: 12px; border-radius: 6px; background: var(--surface-sunken); overflow: hidden; } .ax__prog i { display: block; height: 100%; background: var(--tide); border-radius: 6px; transition: width .2s; } .ax__progt { font-size: 14px; color: var(--ink-muted); }
  .ax__when { display: grid; gap: 6px; } .ax__when h3 { justify-self: start; font-size: 15px; background: var(--surface-deep); color: var(--ink-deep); border-radius: 8px; padding: 3px 12px; }
  .ax__todo { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--line); cursor: pointer; min-height: 56px; }
  .ax__todo input { width: 26px; height: 26px; margin: 0; accent-color: var(--tide); } /* 只選直接的子元素：出處圖示的彈出框也是 span，寫成 .ax__todo span 會把它的「平常不顯示」蓋掉（2026-10-10 使用者截圖：出處全部攤開） */
  .ax__todo > span:not(.srci) { display: grid; gap: 2px; } .ax__todo > span > b { font-size: 16.5px; line-height: 1.5; } .ax__todo > span > small { font-size: 14px; color: var(--ink-muted); line-height: 1.6; } .ax__todo.is-done > span > b { text-decoration: line-through; color: var(--ink-muted); }
  .ax__ask { max-width: 46em; } .ax__q { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; } .ax__q legend { font-family: var(--font-serif); font-size: 20px; padding: 0; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
  .ax__q legend i { font-style: normal; font-family: var(--font-sans); font-size: 14px; font-weight: 700; width: 28px; height: 28px; border-radius: 50%; background: var(--tide); color: var(--on-tide); display: grid; place-items: center; }
  .ax__qo { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; } .ax__qo button { font: inherit; font-size: 16.5px; font-weight: 700; min-height: 60px; padding: 8px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; } .ax__qo button[aria-pressed="true"] { border-color: var(--tide); background: var(--surface-tint); color: var(--tide); }
  .ax__ans { background: var(--surface-raised); border: 2px solid var(--tide); border-radius: 16px; padding: 16px; display: grid; gap: 12px; } .ax__ans h3 { font-size: 18px; } .ax__ans ol { display: grid; gap: 8px; counter-reset: a; }
  .ax__ans li { font-size: 16px; line-height: 1.8; padding-left: 34px; position: relative; counter-increment: a; } .ax__ans li::before { content: counter(a); position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-sunken); font-size: 13px; font-weight: 700; display: grid; place-items: center; } .ax__ans li.ax__warn { color: var(--ax-no); font-weight: 700; } .ax__ans .ax__tel { min-height: 0; padding: 2px 10px; vertical-align: middle; }
  .ax__map { height: 420px; } .ax__pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; font-style: normal; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); background: #5d6b70; box-sizing: border-box; }
  .ax__pin.is-ok { background: #0c7a4d; } .ax__pin.is-part { background: #b87400; } .ax__pin.is-no { background: #b3261e; } .ax__pin.is-unk { background: #6b777c; } .ax__pin.is-wc { background: #1f6fb5; border-radius: 8px; } .ax__pin.is-loan { background: #6a4bb0; border-radius: 8px; } .ax__pin.is-port { background: #123a4a; border-radius: 8px; }
  .ax__key2 { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-muted); } .ax__key2 span { display: inline-flex; align-items: center; gap: 6px; } .ax__key2 .ax__pin { width: 22px; height: 22px; font-size: 11px; display: inline-grid; line-height: 1; }
  .ax__listv summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--tide); min-height: 44px; display: flex; align-items: center; } .ax__listv .ax__mini li { justify-content: space-between; } .ax__listv .ax__mini span { font-size: 13px; color: var(--ink-muted); }
  .ax__lk { font: inherit; background: none; border: 0; padding: 6px 0; color: var(--tide); font-weight: 700; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
  .ax__board { background: #10212a; color: #e8f0f2; border-radius: 16px; overflow: hidden; gap: 0 !important; } .ax__bh { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; } .ax__bh b { font-size: 18px; letter-spacing: .1em; } .ax__bh span { font-size: 12.5px; color: #9fb4bb; font-variant-numeric: tabular-nums; }
  .ax__bc { padding: 6px 16px; background: #17303b; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: #9fd6cb; }
  .ax__br { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid #213640; } .ax__bi { font-size: 12.5px; font-weight: 700; color: #9fb4bb; } .ax__bn { display: grid; min-width: 0; } .ax__bn b { font-size: 15.5px; font-weight: 500; } .ax__bn small { font-size: 12.5px; color: #9fb4bb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ax__lamp { font-size: 13px; font-weight: 900; padding: 4px 9px; border-radius: 6px; white-space: nowrap; } .ax__lamp.is-ok { background: #1f8a5b; color: #fff; } .ax__lamp.is-part { background: #e0a422; color: #1c1400; } .ax__lamp.is-no { background: #d2493d; color: #fff; } .ax__lamp.is-unk { background: #3a4d56; color: #d5e0e3; }
  .ax__trip { display: grid; gap: 12px; max-width: 46em; } .ax__tripc { background: linear-gradient(160deg, #f7dfb0, #f3c98c); color: #2a2012; border-radius: 16px; padding: 18px 16px; display: grid; gap: 4px; } .ax__tripc h3 { font-family: var(--font-serif); font-size: 24px; } .ax__tripc p { font-size: 14.5px; } .ax__tripc a { color: #2a2012; font-weight: 700; }
  .ax__tl { display: grid; } .ax__tl li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); } .ax__tl time { font-weight: 900; font-size: 15px; color: var(--tide); } .ax__tl div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; } .ax__tl b { font-size: 17px; } .ax__tl p { flex-basis: 100%; font-size: 15.5px; line-height: 1.7; color: var(--ink-muted); }
  .ax__gaps { background: var(--surface-sunken); border-radius: 14px; padding: 4px 16px; } .ax__gaps summary { cursor: pointer; font-size: 15.5px; font-weight: 700; min-height: 48px; display: flex; align-items: center; } .ax__gaps ul { padding-bottom: 14px; }
  .ax__ft { display: grid; gap: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 14px; } .ax__ft a { color: var(--tide); font-weight: 700; }
  @media (max-width: 900px) { .ax__sits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 760px) {
    .ax__hero { grid-template-columns: minmax(0, 1fr); padding: 16px; } .ax__hero h1 { font-size: 27px; } .ax__sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ax__sit { min-height: 92px; }
    .ax__map { height: 340px; } .ax__sitb { padding: 12px; } .ax__stop summary em { font-size: 12px; } .ax__br { padding: 10px 12px; }
  }
  /* ─── 各宗教在馬祖 /beliefs（2026-10-10）：各宗教的顏色用 --c 帶進來；宗教色只當色條、色點與深底白字用，內文一律用主題的字色 ─── */
  /* ── 公共事務追蹤 /civic（2026-10-12）：狀態一律「符號＋字＋顏色」；清單一件兩三行，細節點開才看 ── */
  .cv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 18px 34px; --cv-done: #1f7a4d; --cv-late: #4f7a1f; --cv-partial: #9a6a00; --cv-ongoing: #1d5f8a; --cv-delayed: #b3402a; --cv-not_done: #7a1f1f; --cv-cancelled: #6b6b6b; --cv-unknown: #7d7468; }
  [data-theme="dark"] .cv { --cv-done: #6fd3a0; --cv-late: #b5d87a; --cv-partial: #f0c35a; --cv-ongoing: #7cc4f0; --cv-delayed: #ff9a80; --cv-not_done: #ff7a7a; --cv-cancelled: #b0b0b0; --cv-unknown: #c2b8a8; }
  .cv__head h1 { font-family: var(--font-serif); font-size: clamp(26px, 5vw, 38px); line-height: 1.25; margin: 0 0 6px; } .cv__head p { margin: 0; color: var(--ink-muted); max-width: 46em; }
  .cv__tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line-strong); }
  .cv__tabs button { font: inherit; font-size: 17px; font-weight: 700; min-height: 46px; padding: 8px 18px; border: 0; background: none; color: var(--ink-muted); cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -2px; }
  .cv__tabs button.is-on { color: var(--ink); border-bottom-color: var(--tide); }
  .cv__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; } .cv__lead { margin: 0; } .cv__note { margin: 0; font-size: 13.5px; color: var(--ink-muted); }
  .cv__pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: var(--radius-pill); color: var(--c); border: 1.5px solid var(--c); white-space: nowrap; background: var(--surface); }
  .cv__pill i { font-style: normal; font-weight: 900; font-size: 14px; line-height: 1; width: 1em; text-align: center; }
  .cv__pill.is-s { font-size: 12px; padding: 1px 8px 1px 4px; }
  .cv .is-done { --c: var(--cv-done); } .cv .is-late { --c: var(--cv-late); } .cv .is-partial { --c: var(--cv-partial); } .cv .is-ongoing { --c: var(--cv-ongoing); }
  .cv .is-delayed { --c: var(--cv-delayed); } .cv .is-not_done { --c: var(--cv-not_done); } .cv .is-cancelled { --c: var(--cv-cancelled); } .cv .is-unknown { --c: var(--cv-unknown); }
  .sheet .cv__d { --cv-done: #1f7a4d; --cv-late: #4f7a1f; --cv-partial: #9a6a00; --cv-ongoing: #1d5f8a; --cv-delayed: #b3402a; --cv-not_done: #7a1f1f; --cv-cancelled: #6b6b6b; --cv-unknown: #7d7468; }
  [data-theme="dark"] .sheet .cv__d { --cv-done: #6fd3a0; --cv-late: #b5d87a; --cv-partial: #f0c35a; --cv-ongoing: #7cc4f0; --cv-delayed: #ff9a80; --cv-not_done: #ff7a7a; --cv-cancelled: #b0b0b0; --cv-unknown: #c2b8a8; }
  .cv__d .is-done { --c: var(--cv-done); } .cv__d .is-late { --c: var(--cv-late); } .cv__d .is-partial { --c: var(--cv-partial); } .cv__d .is-ongoing { --c: var(--cv-ongoing); }
  .cv__d .is-delayed { --c: var(--cv-delayed); } .cv__d .is-not_done { --c: var(--cv-not_done); } .cv__d .is-cancelled { --c: var(--cv-cancelled); } .cv__d .is-unknown { --c: var(--cv-unknown); }
  .cv__bar { display: flex; gap: 3px; min-height: 52px; flex-wrap: wrap; }
  .cv__seg { flex: 1 0 64px; display: grid; align-content: center; justify-items: center; gap: 1px; padding: 6px 4px; border: 0; border-radius: 8px; background: var(--c); color: var(--surface); font: inherit; min-width: 0; }
  button.cv__seg { cursor: pointer; min-height: 52px; } .cv__seg b { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; } .cv__seg span { font-size: 12px; white-space: nowrap; }
  .cv__seg.is-on { outline: 3px solid var(--ink); outline-offset: 2px; }
  span.cv__seg { flex-basis: 22px; min-height: 26px; padding: 2px; } span.cv__seg b { font-size: 13px; }
  .cv__ctl { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cv__q, .cv__sel select { font: inherit; font-size: 16px; min-height: 46px; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
  .cv__sel { display: grid; min-width: 0; } .cv__sel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cv__list, .cv__pl, .cv__wl, .cv__tl, .cv__mt, .cv__defs { list-style: none; margin: 0; padding: 0; }
  .cv__list { display: grid; border-top: 1px solid var(--line); }
  .cv__it { border-bottom: 1px solid var(--line); }
  .cv__itb { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 12px 4px; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .cv__itb:hover { background: var(--surface-sunken); }
  .cv__itb > .cv__pill { grid-row: span 3; justify-self: start; margin-top: 2px; }
  .cv__itt { display: grid; min-width: 0; } .cv__itt b { font-size: 17px; line-height: 1.35; } .cv__itt small { color: var(--ink-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cv__itd { font-size: 14.5px; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .cv__itd em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; }
  .cv__itn { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-muted); } .cv__itn i { font-style: normal; } .cv__itn .is-go { margin-left: auto; color: var(--tide); font-weight: 700; }
  .cv__more { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 6px 16px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; justify-self: start; }
  .cv__d { display: grid; gap: 12px; color: var(--ink); } .cv__d h2 { margin: 0; font-size: 22px; font-family: var(--font-serif); } .cv__d h3 { margin: 8px 0 0; font-size: 16px; } .cv__dm { margin: 0; color: var(--ink-muted); font-size: 14px; }
  .cv__why { margin: 0; padding: 10px 12px; background: var(--surface-sunken); border-radius: 10px; font-size: 15px; line-height: 1.6; }
  .cv__kv { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 15px; } .cv__kv dt { font-weight: 700; color: var(--ink-muted); } .cv__kv dd { margin: 0; }
  .cv__pm { margin: 0; padding: 10px 14px; border-left: 4px solid var(--tide); background: var(--surface-tint, var(--surface-sunken)); border-radius: 0 10px 10px 0; } .cv__pm p { margin: 4px 0; } .cv__pm footer { font-size: 13px; color: var(--ink-muted); }
  .cv__rel > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .cv__chip { font: inherit; font-size: 14px; min-height: 40px; padding: 4px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; } .cv__chip small { color: var(--ink-muted); font-size: 12px; }
  .cv__tl { display: grid; gap: 0; border-left: 2px solid var(--line-strong); margin-left: 6px; }
  .cv__ev { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; padding: 6px 0 8px 14px; position: relative; font-size: 14.5px; }
  .cv__ev::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--k, var(--ink-muted)); }
  .cv__ev time { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-muted); } .cv__ev p { grid-column: 1 / -1; margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
  .cv__k { font-size: 12px; font-weight: 700; padding: 0 6px; border-radius: 4px; border: 1px solid var(--k, var(--line-strong)); color: var(--k, var(--ink-muted)); justify-self: start; }
  .cv__ev.is-official { --k: var(--cv-ongoing); } .cv__ev.is-audit { --k: var(--cv-delayed); } .cv__ev.is-council { --k: var(--cv-partial); } .cv__ev.is-public { --k: var(--cv-done); }
  .cv__gap { margin: 0; font-size: 14px; color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px 12px; }
  .cv__pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .cv__p { border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--surface); min-width: 0; }
  .cv__ph { display: flex; justify-content: space-between; gap: 10px; align-items: start; } .cv__ph > div:first-child { display: grid; min-width: 0; } .cv__ph b { font-size: 19px; } .cv__ph small { color: var(--ink-muted); font-size: 13px; }
  .cv__sc { display: flex; gap: 8px; align-items: center; text-align: left; flex: none; } .cv__sc > b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--font-serif); } .cv__sc span { display: grid; font-size: 13px; font-weight: 700; } .cv__sc small { font-weight: 400; font-size: 11.5px; color: var(--ink-muted); max-width: 9em; }
  .cv__sc.is-na > b { color: var(--ink-muted); }
  .cv__pn { margin: 0; font-size: 13px; color: var(--ink-muted); }
  .cv__mt { display: grid; gap: 2px; font-size: 13.5px; } .cv__mt li { display: flex; gap: 8px; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 2px 0; } .cv__mt li span { min-width: 0; } .cv__mt b { margin-left: auto; white-space: nowrap; } .cv__mt a { font-size: 12px; }
  .cv__w { border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; } .cv__w summary { font-weight: 700; cursor: pointer; min-height: 32px; } .cv__w p { margin: 8px 0; font-size: 14.5px; }
  .cv__sl { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; } .cv__sl span { display: flex; justify-content: space-between; gap: 8px; } .cv__sl input { width: 100%; }
  .cv__ck { display: flex; gap: 8px; align-items: start; min-height: 40px; font-size: 14.5px; padding: 4px 0; } .cv__ck input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
  .cv__wl { display: grid; } .cv__wl button { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); min-height: 44px; padding: 6px 2px; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; } .cv__wl small { color: var(--ink-muted); font-size: 12.5px; white-space: nowrap; }
  .cv__cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
  .cv__cm { border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-width: 0; } .cv__cm h3 { margin: 0 0 6px; font-size: 15.5px; line-height: 1.4; }
  .cv__cm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; } .cv__cm li { display: flex; gap: 8px; align-items: baseline; font-size: 14.5px; border-bottom: 1px dotted var(--line); padding: 2px 0; }
  .cv__cm time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); width: 3.2em; flex: none; } .cv__cm li b { font-variant-numeric: tabular-nums; } .cv__cm li span { color: var(--ink-muted); font-size: 13px; } .cv__cm li a { margin-left: auto; font-size: 12px; white-space: nowrap; }
  .cv__cm details { margin-top: 6px; font-size: 12.5px; color: var(--ink-muted); } .cv__cm details li { display: block; border: 0; font-size: 12.5px; }
  /* 人：一人一列（姓名與任期｜大數字｜結果長條＋三個小數字｜看明細），圖例只寫一次；縣長照任期新到舊排，不照分數排 */
  .cv__rows { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--line-strong); }
  .cv__row { display: grid; grid-template-columns: 210px 116px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .cv__rn { display: grid; gap: 1px; min-width: 0; } .cv__rn b { font-size: 21px; font-family: var(--font-serif); line-height: 1.25; } .cv__rn span { font-size: 14px; font-variant-numeric: tabular-nums; } .cv__rn small { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
  .cv__big { display: grid; justify-items: center; gap: 2px; text-align: center; } .cv__big b { font-size: 46px; line-height: 1; font-family: var(--font-serif); font-variant-numeric: tabular-nums; } .cv__big span { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
  .cv__big.is-na b { color: var(--ink-muted); font-size: 34px; } .cv__big.is-n b { font-size: 38px; }
  .cv__rb { display: grid; gap: 8px; min-width: 0; } .cv__rb .cv__bar { min-height: 30px; flex-wrap: nowrap; } .cv__rb span.cv__seg { flex-basis: 0; min-height: 30px; border-radius: 6px; min-width: 22px; } .cv__rb span.cv__seg b { font-size: 14px; }
  .cv__stats { display: flex; flex-wrap: wrap; gap: 4px 22px; } .cv__stat { display: flex; align-items: baseline; gap: 5px; font-size: 13.5px; } .cv__stat b { font-size: 17px; font-variant-numeric: tabular-nums; } .cv__stat small { color: var(--ink-muted); font-size: 12px; }
  .cv__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-muted); } .cv__legend span { display: inline-flex; align-items: center; gap: 5px; } .cv__legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
  .cv__warn { margin: 0; padding: 10px 14px; border-left: 4px solid var(--cv-partial); background: var(--surface-sunken); border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.6; }
  .cv__gh { margin: 14px 0 6px; font-size: 16px; font-family: var(--font-serif); }
  @media (max-width: 820px) {
    .cv__row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; } .cv__rb { grid-column: 1 / -1; grid-row: 2; } .cv__row > .cv__more, .cv__row > span:last-child { grid-column: 1 / -1; justify-self: stretch; }
    .cv__big b { font-size: 38px; } .cv__big { justify-items: end; text-align: right; }
  }
  /* 人的明細：任期一行一個、事項在前、可以數的紀錄收成一組一組的小格 */
  .cv__who { gap: 14px; } .cv__sec { display: grid; gap: 6px; min-width: 0; } .cv__d .cv__sec h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-bottom: 4px; border-bottom: 2px solid var(--line-strong); } .cv__sec h3 small { font-size: 12.5px; font-weight: 400; color: var(--ink-muted); }
  .cv__roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cv__roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; font-size: 14.5px; } .cv__roles span { font-variant-numeric: tabular-nums; color: var(--ink-muted); white-space: nowrap; font-size: 13.5px; } .cv__roles small { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-muted); }
  .cv__tagline { margin: 0; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; justify-self: start; }
  .cv__src { font-size: 12.5px; white-space: nowrap; }
  .cv__m1 { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; } .cv__m1 span small { display: block; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; } .cv__m1 b, .cv__chips b { font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; } .cv__m1 b i, .cv__chips b i { font-style: normal; font-size: 12px; font-weight: 400; margin-left: 2px; }
  .cv__mg { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); } .cv__mg h4 { margin: 0; font-size: 14.5px; font-weight: 400; line-height: 1.4; }
  .cv__chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; } .cv__chips li > * { display: grid; gap: 1px; min-height: 56px; align-content: center; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--ink); text-decoration: none; box-sizing: border-box; height: 100%; } .cv__chips a:hover { background: var(--surface-sunken); } .cv__chips small { font-size: 12px; color: var(--ink-muted); } .cv__chips time { font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; } @media (max-width: 560px) { .cv__chips time { display: none; } }
  .cv__chips.is-wide { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); } .cv__chips.is-wide b { font-size: 17px; white-space: normal; }
  .cv__m1.is-long { grid-template-columns: minmax(0, 1fr) auto; } .cv__m1.is-long > span { grid-column: 1 / -1; } .cv__m1.is-long b { white-space: normal; font-size: 17px; }
  .cv__ll { list-style: none; margin: 0; padding: 0; display: grid; } .cv__ll li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; } .cv__ll time { font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .cv__mt li span { flex: 1; } .cv__mt a { white-space: nowrap; flex: none; }
  /* 總覽：圖表 */
  .cv__dash { gap: 18px; }
  .cv__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } .cv__kpis > div { border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; border-top: 5px solid var(--c, var(--ink)); background: var(--surface); }
  .cv__kpis b { font-size: 38px; line-height: 1.05; font-family: var(--font-serif); font-variant-numeric: tabular-nums; } .cv__kpis span { font-size: 14px; font-weight: 700; } .cv__kpis small { font-size: 12px; color: var(--ink-muted); }
  .cv__card { border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: var(--surface); min-width: 0; } .cv__card h2 { margin: 0; font-size: 20px; font-family: var(--font-serif); line-height: 1.35; text-wrap: balance; } .cv__cs { margin: 0; font-size: 14px; color: var(--ink-muted); line-height: 1.6; } .cv__card .cv__gh { margin-top: 6px; }
  .cv__row.is-new { grid-template-columns: 210px minmax(0, 1fr) auto; } .cv__row.is-new .cv__note { margin: 0; }
  .cv__mrows, .cv__hb, .cv__rank { list-style: none; margin: 0; padding: 0; display: grid; }
  .cv__mrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); } .cv__mrow .cv__stats { grid-column: 2; }
  .cv__mname, .cv__hb button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; display: grid; min-height: 44px; align-content: center; } .cv__mname b { font-size: 19px; font-family: var(--font-serif); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; } .cv__mname span, .cv__hb button span { font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .cv__hb li { display: grid; grid-template-columns: 132px minmax(0, 1fr) 9.5em; gap: 4px 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); } .cv__hb button b { font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; } .cv__hb small { font-size: 12.5px; color: var(--ink-muted); text-align: right; font-variant-numeric: tabular-nums; }
  .cv__cols { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; padding-bottom: 2px; } .cv__col { flex: 1 0 20px; display: grid; justify-items: center; gap: 2px; min-width: 20px; } .cv__col small { font-size: 10.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; } .cv__col span { font-size: 10.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cv__colb { width: 100%; max-width: 30px; display: flex; flex-direction: column; gap: 1px; min-height: 3px; } .cv__colb i { background: var(--c); border-radius: 2px; min-height: 2px; flex-basis: 0; }
  .cv__rank li { border-top: 1px solid var(--line); } .cv__rank button { width: 100%; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 9px 0; min-height: 52px; } .cv__rank button:hover { background: var(--surface-sunken); }
  .cv__rk { font-family: var(--font-serif); font-size: 17px; color: var(--ink-muted); text-align: center; grid-row: span 2; } .cv__rt { font-size: 15.5px; font-weight: 700; line-height: 1.35; } .cv__rbar { grid-column: 2; display: flex; height: 10px; background: var(--surface-sunken); border-radius: 5px; overflow: hidden; } .cv__rbar i.is-a { background: var(--cv-delayed); } .cv__rbar i.is-b { background: var(--cv-partial); opacity: .75; } .cv__rank button > b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cv__sparks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .cv__spark { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; min-width: 0; } .cv__spark figcaption { font-size: 13.5px; font-weight: 700; line-height: 1.4; } .cv__spark svg { width: 100%; height: auto; overflow: visible; } .cv__spark small { font-size: 11.5px; color: var(--ink-muted); }
  .cv__sline { fill: none; stroke: var(--cv-ongoing); stroke-width: 2; } .cv__sdot { fill: var(--surface); stroke: var(--cv-ongoing); stroke-width: 2; } .cv__sval { font-size: 10.5px; fill: var(--ink); font-variant-numeric: tabular-nums; } .cv__syr { font-size: 10px; fill: var(--ink-muted); } .cv__sturn { stroke: var(--ink-muted); stroke-dasharray: 3 3; }
  @media (max-width: 820px) {
    .cv__kpis { grid-template-columns: 1fr 1fr; } .cv__kpis b { font-size: 30px; } .cv__card { padding: 14px 12px; border-radius: 14px; }
    .cv__mrow { grid-template-columns: minmax(0, 1fr); } .cv__mrow .cv__stats { grid-column: 1; } .cv__mname { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; }
    .cv__hb li { grid-template-columns: minmax(0, 1fr) auto; } .cv__hb li > .cv__rb { grid-column: 1 / -1; grid-row: 2; } .cv__hb button { grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; }
    .cv__row.is-new { grid-template-columns: minmax(0, 1fr) auto; } .cv__row.is-new .cv__note { grid-column: 1 / -1; grid-row: 2; }
  }
  .cv__clr { font: inherit; font-size: 14px; font-weight: 700; margin-left: 10px; min-height: 36px; padding: 2px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
  /* 馬祖缺什麼 /needs：沿用 .cv 的骨架，卡片依急迫程度左邊一條色 */
  .nd { --nd-high: var(--cv-delayed); --nd-mid: var(--cv-partial); --nd-low: var(--cv-unknown); } .sheet .nd__d { --nd-high: #b3402a; --nd-mid: #9a6a00; --nd-low: #7d7468; }
  .nd__urg { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--u); color: var(--u); white-space: nowrap; } .nd__urg i { font-style: normal; } .nd__urg.is-high, .nd__card.is-high { --u: var(--nd-high); } .nd__urg.is-mid, .nd__card.is-mid { --u: var(--nd-mid); } .nd__urg.is-low, .nd__card.is-low { --u: var(--nd-low); }
  .nd__dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .nd__dim { font: inherit; color: var(--ink); text-align: left; display: grid; gap: 1px; padding: 10px 12px; min-height: 76px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; } .nd__dim b { font-size: 16.5px; } .nd__dim span { font-size: 13px; color: var(--ink-muted); } .nd__dim small { font-size: 12.5px; font-weight: 700; color: var(--nd-high); } .nd__dim.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); } .nd__dim.is-on span, .nd__dim.is-on small { color: inherit; } .nd__dim:disabled { opacity: .4; cursor: default; }
  .nd__flt { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
  .nd__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
  .nd__card { border: 1.5px solid var(--line-strong); border-left: 6px solid var(--u); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; background: var(--surface); min-width: 0; }
  .nd__ct { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--ink-muted); }
  .nd__card h3 { margin: 0; } .nd__card h3 button { font: inherit; font-size: 18.5px; font-weight: 700; font-family: var(--font-serif); line-height: 1.4; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-wrap: balance; }
  .nd__what { margin: 0; font-size: 14.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .nd__num { display: grid; gap: 1px; padding: 8px 12px; background: var(--surface-sunken); border-radius: 10px; min-width: 0; } .nd__num small { font-size: 12.5px; color: var(--ink-muted); } .nd__num b { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .nd__num span { font-size: 12.5px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nd__wish { margin: 0; font-size: 14.5px; line-height: 1.6; } .nd__card .nd__wish { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nd__cf { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--ink-muted); } .nd__cf .is-me { color: var(--tide); font-weight: 700; } .nd__more { margin-left: auto; font: inherit; font-size: 14.5px; font-weight: 700; min-height: 44px; padding: 4px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
  .nd__nums, .nd__vs, .nd__src, .nd__cmp, .nd__sv, .nd__bars, .nd__ex { list-style: none; margin: 0; padding: 0; display: grid; }
  .nd__nums li, .nd__cmp li { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; min-width: 0; } .nd__nums small, .nd__cmp small { font-size: 12.5px; color: var(--ink-muted); } .nd__nums b, .nd__cmp b { font-size: 16.5px; overflow-wrap: anywhere; } .nd__nums span, .nd__cmp span { color: var(--ink-muted); font-size: 13.5px; } .nd__nums a, .nd__cmp a { font-size: 12.5px; overflow-wrap: anywhere; }
  .nd__cmp { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 24px; }
  .nd__vs li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; } .nd__vs time, .nd__ex time { font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; } .nd__vs a { font-size: 12.5px; white-space: nowrap; }
  .nd__src li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 13.5px; line-height: 1.5; } .nd__src em { font-style: normal; font-size: 12px; color: var(--ink-muted); } .nd__src a { overflow-wrap: anywhere; }
  .nd__bars > li { border-top: 1px solid var(--line); } .nd__bars summary { display: grid; grid-template-columns: 1.6em 11em minmax(0, 1fr) 3em 46px 4em; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; list-style: none; counter-increment: ndb; font-size: 15px; } .nd__bars { counter-reset: ndb; } .nd__bars summary::before { content: counter(ndb); color: var(--ink-muted); font-family: var(--font-serif); text-align: center; } .nd__bars summary::-webkit-details-marker { display: none; }
  .nd__bn { font-weight: 700; line-height: 1.3; } .nd__bb { height: 12px; background: var(--surface-sunken); border-radius: 6px; overflow: hidden; } .nd__bb i { display: block; height: 100%; background: var(--cv-ongoing); border-radius: 6px; } .nd__bars summary b { text-align: right; font-variant-numeric: tabular-nums; } .nd__bars summary em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--nd-high); white-space: nowrap; }
  .nd__yb { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; } .nd__yb i { width: 8px; background: var(--ink-muted); border-radius: 2px 2px 0 0; }
  .nd__ex { padding: 2px 0 10px 2.2em; gap: 4px; font-size: 14px; } .nd__ex li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 8px; }
  .nd__sv { gap: 12px; } .nd__sv > li { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; } .nd__sv small { color: var(--ink-muted); font-size: 12.5px; } .nd__sv ul { margin: 2px 0 0; padding-left: 1.2em; display: grid; gap: 2px; } .nd__sv em { font-style: normal; font-weight: 700; } .nd__sv p { margin: 0; }
  .nd__d .pgr__send { justify-self: start; }
  @media (max-width: 720px) {
    .nd__list { grid-template-columns: minmax(0, 1fr); } .nd__dims { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nd__dim { padding: 8px; min-height: 68px; } .nd__dim b { font-size: 15px; }
    .nd__bars summary { grid-template-columns: 1.4em minmax(0, 1fr) 2.6em 40px; } .nd__bb { grid-column: 2 / -1; grid-row: 2; } .nd__bars summary em { display: none; } .nd__bars summary { padding: 6px 0; row-gap: 2px; }
  }
  .cv__cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; } .cv__cl li { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 4px 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; } .cv__cl button { font: inherit; color: var(--tide); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; } @media (max-width: 720px) { .cv__cl li { grid-template-columns: minmax(0, 1fr); } }
  /* 多語：語言選單、外語版的提示列 */
  .langm { position: relative; display: inline-flex; } .langm__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; } .langm__btn:hover { background: rgba(255,255,255,.18); } .langm__btn svg { flex: none; }
  .langm__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 9.5em; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.22); display: grid; gap: 2px; }
  .langm__list a { display: block; padding: 10px 12px; min-height: 44px; box-sizing: border-box; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15.5px; } .langm__list a:hover { background: var(--surface-sunken); } .langm__list a[aria-current] { font-weight: 700; background: var(--surface-sunken); }
  .i18n-note { margin: 10px 0 0; padding: 8px 14px; border-radius: 10px; border: 1.5px dashed var(--line-strong); background: var(--surface-sunken); font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); } .i18n-note a { margin-left: 8px; font-weight: 700; } .i18n-note.is-ok { border-style: solid; border-width: 1px; background: none; font-size: 12.5px; }
  /* 語言選單打開時，頁首要疊在島況列（sticky）上面，不然選單下半被蓋住（2026-10-12 使用者截圖） */
  .masthead:has(.langm__list), .mastwrap.is-deco .masthead:has(.langm__list) { position: relative; z-index: calc(var(--z-sticky, 100) + 8); }
  @media (max-width: 560px) { .langm__t { display: none; } .langm__btn { padding: 0; width: 44px; justify-content: center; } }
  /* 橫向可捲的按鈕列不能把頁面撐寬（外語版字長時會發生）：自己限寬、在裡面捲 */
  .depseg, .mergeseg, .days3__tabs { min-width: 0; max-width: 100%; contain: inline-size; } .homemix__a, .homesea, .days3, .dy-sec { min-width: 0; max-width: 100%; }
  .homemix, .homemix__a { grid-template-columns: minmax(0, 1fr); } html:not([lang^="zh"]) .calseason__i { white-space: normal; } html:not([lang^="zh"]) .days3__tabs { overflow-x: auto; } html:not([lang^="zh"]) .days3__tab { font-size: 13px; padding-inline: 8px; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
  html:not([lang^="zh"]) .dy-sec__title { overflow-wrap: anywhere; } html:not([lang^="zh"]) .dy-sec { flex-wrap: wrap; }
  /* 外語版：字比中文長，島況格子的名稱與底部選單要縮字、不撐破格子 */
  html:not([lang^="zh"]) .ctile__n { font-size: 11px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  html:not([lang^="zh"]) .dy-pill, html:not([lang^="zh"]) [class*="dy-status"], html:not([lang^="zh"]) [class*="pill"] { white-space: nowrap; }
  html:not([lang^="zh"]) .ctile { min-width: 0; overflow: hidden; } html:not([lang^="zh"]) .ctile .dy-cond__value { font-size: 14.5px; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; } html:not([lang^="zh"]) .ctile__lb { min-width: 0; max-width: 100%; }
  html:not([lang^="zh"]) .botnav__b { font-size: 10.5px; letter-spacing: 0; } html:not([lang^="zh"]) .dy-chip { letter-spacing: 0; }
  .cv__recs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } .cv__rec .cv__mt li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; } .cv__rec .cv__mt b { white-space: normal; margin: 0; font-weight: 400; } .cv__rec .cv__mt span { font-weight: 700; } .cv__rec { border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; min-width: 0; }
  .cv__rech { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; } .cv__rech b { font-size: 17px; } .cv__rec p { margin: 0; line-height: 1.6; } .cv__rec details summary { cursor: pointer; font-size: 14px; color: var(--tide); font-weight: 700; min-height: 32px; }
  .cv__method { max-width: 46em; line-height: 1.7; } .cv__method h2 { margin: 0; font-family: var(--font-serif); } .cv__method h3 { margin: 10px 0 0; } .cv__method ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; } .cv__method p { margin: 0; }
  .cv__defs { padding-left: 0 !important; } .cv__defs li { display: block; }
  @media (max-width: 720px) {
    .cv__ctl { grid-template-columns: 1fr 1fr; } .cv__q { grid-column: 1 / -1; } .cv__ctl .cv__sel:last-child { grid-column: 1 / -1; }
    .cv__itb { grid-template-columns: minmax(0, 1fr); } .cv__itb > .cv__pill { grid-row: auto; }
    .cv__seg span { font-size: 11px; } .cv__sl { grid-template-columns: 1fr; gap: 0; } .cv__seg { flex-basis: 76px; }
    .cv__itd > span { display: grid; gap: 2px; } .cv__itd { -webkit-line-clamp: 4; } .cv__tabs { overflow-x: auto; } .cv__tabs button { padding-inline: 12px; white-space: nowrap; }
  }
  .bf { display: grid; gap: 22px; padding-block: 18px 34px; }
  .bf h1, .bf h2, .bf h3, .bf p { margin: 0; }
  .bf__hero { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
  .bf__herot { display: grid; gap: 10px; } .bf__herot h1 { font-family: var(--font-serif); font-size: 32px; line-height: 1.25; }
  .bf__herot p { font-size: 16px; line-height: 1.75; color: var(--ink); } .bf__herol { color: var(--ink-muted) !important; font-size: 14.5px !important; } .bf__herol a { color: var(--tide); font-weight: 700; }
  .bf__num { display: grid; gap: 10px; min-width: 0; }
  .bf__nums { display: flex; gap: 22px; align-items: flex-end; } .bf__nums p { display: grid; } .bf__nums b { font-family: var(--font-serif); font-size: 52px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; } .bf__nums span { font-size: 13px; color: var(--ink-muted); }
  .bf__sq { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 4px; } .bf__sq i { aspect-ratio: 1; border-radius: 3px; background: var(--line-strong); } .bf__sq i.is-c { box-shadow: 0 0 0 2px var(--surface-raised), 0 0 0 3px currentColor; }
  .bf__numn { font-size: 13px; line-height: 1.7; color: var(--ink-muted); }
  .bf__want { display: grid; gap: 12px; background: var(--surface-sunken); border-radius: 18px; padding: 18px; }
  .bf__want h2 { font-family: var(--font-serif); font-size: 22px; }
  .bf__lang { display: flex; flex-wrap: wrap; gap: 6px; } .bf__lang button { font: inherit; font-size: 14px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
  .bf__lang button[aria-pressed="true"] { background: var(--surface-deep); color: var(--ink-deep); border-color: var(--surface-deep); font-weight: 700; }
  .bf__wants { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
  .bf__w { font: inherit; text-align: left; display: grid; gap: 2px; padding: 12px 14px; min-height: 64px; border-radius: 14px; border: 2px solid transparent; background: var(--surface-raised); color: var(--ink); cursor: pointer; }
  .bf__w b { font-size: 16px; } .bf__w span { font-size: 13px; color: var(--ink-muted); line-height: 1.45; } .bf__w.is-on { border-color: var(--tide); } .bf__w.is-none { background: transparent; border: 2px dashed var(--line-strong); } .bf__w.is-none.is-on { border-style: solid; border-color: var(--tide); }
  .bf__wres { display: grid; gap: 12px; } .bf__wnote { background: var(--surface-raised); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.75; }
  .bf__call { font-size: 14px; font-weight: 700; color: var(--ink); } .bf__draft { font-size: 12.5px; color: var(--ink-muted); }
  .bf__tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; border-bottom: 2px solid var(--line); scrollbar-width: none; }
  .bf__tabs button { flex: none; font: inherit; font-size: 15.5px; font-weight: 700; min-height: 46px; padding: 8px 16px; border: 0; background: none; color: var(--ink-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; }
  .bf__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tide); }
  .bf__body { display: grid; gap: 14px; min-width: 0; } .bf__body > div { display: grid; gap: 14px; min-width: 0; }
  .bf__lead { font-size: 14px; line-height: 1.7; color: var(--ink-muted); } .bf__lead a { color: var(--tide); font-weight: 700; } .bf__none { font-size: 14px; color: var(--ink-muted); }
  .bf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
  .bf__site { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
  .bf__artw { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 15px 15px 0 0; overflow: hidden; aspect-ratio: 9 / 5; } div.bf__artw { cursor: default; }
  .bf__art { display: block; width: 100%; height: 100%; }
  .bf__noart { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; color: #fff; background: rgba(0, 0, 0, .38); border-radius: 6px; padding: 2px 7px; }
  .bf__sb { display: grid; gap: 8px; padding: 14px; align-content: start; flex: 1; }
  .bf__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); } .bf__tag i, .bf__chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; } .bf__chip { display: inline-flex; align-items: center; gap: 6px; }
  .bf__st { margin-left: auto; font-size: 12.5px; font-weight: 700; border-radius: 6px; padding: 1px 8px; } .bf__st.is-active { background: var(--go-tint); color: var(--go); } .bf__st.is-unknown { background: var(--surface-sunken); color: var(--ink-muted); }
  .bf__site h3 { font-size: 18px; line-height: 1.4; } .bf__site h3 small { font-weight: 400; font-size: 13px; color: var(--ink-muted); } .bf__en { font-size: 13.5px; color: var(--ink-muted); }
  .bf__dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 14.5px; line-height: 1.6; } .bf__dl dt { color: var(--ink-muted); white-space: nowrap; } .bf__dl dd { margin: 0; min-width: 0; } .bf__dl em { font-style: normal; color: var(--ink-muted); font-size: 12.5px; }
  .bf__tel { color: var(--tide); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 10px; white-space: nowrap; }
  .bf__sch { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; } .bf__sch li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; } .bf__sch b { font-weight: 500; } .bf__sch time { font-weight: 700; font-variant-numeric: tabular-nums; } .bf__sch small { flex-basis: 100%; font-size: 12.5px; color: var(--ink-muted); }
  .bf__year { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; } .bf__sum { font-size: 14.5px; line-height: 1.75; }
  .bf__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; }
  .bf__go, .bf__more { font: inherit; font-size: 14.5px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 10px; text-decoration: none; cursor: pointer; }
  .bf__go { background: var(--tide); color: var(--on-tide); border: 0; } .bf__more { background: none; border: 1.5px solid var(--line-strong); color: var(--ink); } .bf__act .srci { margin-left: auto; }
  .bf__site.is-big { border: 0; } .bf__ph { margin: 0; } .bf__ph img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; } .bf__ph figcaption { font-size: 12px; color: var(--ink-muted); padding: 6px 2px 0; } .bf__ph a { color: var(--tide); }
  .bf__day { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-raised); border: 1px solid var(--line); } .bf__day.is-now { border-color: var(--tide); box-shadow: inset 4px 0 0 var(--tide); }
  .bf__dayh { display: grid; gap: 2px; align-content: start; } .bf__dayh b { font-size: 17px; } .bf__dayh span { font-size: 12px; color: var(--ink-muted); } .bf__dayh em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--on-tide); background: var(--tide); border-radius: 6px; padding: 1px 7px; justify-self: start; }
  .bf__evs { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .bf__ev { font: inherit; text-align: left; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 2px 10px; padding: 8px 10px; min-height: 52px; border: 0; border-left: 5px solid var(--c); border-radius: 8px; background: var(--surface-sunken); color: var(--ink); cursor: pointer; align-items: center; }
  .bf__ev time { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; } .bf__evn { display: grid; min-width: 0; } .bf__evn b { font-size: 14.5px; } .bf__evn span { font-size: 12.5px; color: var(--ink-muted); } .bf__ev small { grid-column: 2; font-size: 12px; color: var(--ink-muted); }
  .bf__nolist { font-size: 14px; line-height: 1.9; color: var(--ink-muted); } .bf__lk { font: inherit; background: none; border: 0; padding: 0; color: var(--tide); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .bf__mapbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .bf__mapbar .newsfilter { margin: 0; } .bf .newsfilter { margin-bottom: 0; }
  .bf__shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
  .bf__bk { font: inherit; text-align: left; color: #fff; border: 0; cursor: pointer; display: grid; gap: 8px; align-content: space-between; min-height: 190px; padding: 18px 16px 16px 24px; border-radius: 6px 16px 16px 6px; box-shadow: inset 8px 0 0 rgba(0, 0, 0, .2), var(--shadow-card); }
  .bf__bk b { font-family: var(--font-serif); font-size: 26px; } .bf__bk span { font-size: 14px; line-height: 1.6; } .bf__bk em { font-style: normal; font-size: 13px; font-weight: 700; opacity: .92; } .bf__bk.is-wide { min-height: 120px; }
  .bf__book { --c: var(--tide); } .bf__back { font: inherit; font-size: 14.5px; font-weight: 700; min-height: 44px; justify-self: start; background: none; border: 0; color: var(--tide); cursor: pointer; padding: 0; }
  .bf__bkh { border-left: 8px solid var(--c); padding-left: 14px; display: grid; gap: 2px; } .bf__bkh h2 { font-family: var(--font-serif); font-size: 28px; } .bf__bkh p { color: var(--ink-muted); font-size: 15px; }
  .bf__prose { display: grid; gap: 12px; max-width: 42em; } .bf__prose p { font-size: 16.5px; line-height: 1.9; } .bf__terms { font-size: 14px !important; color: var(--ink-muted); border-top: 1px dashed var(--line-strong); padding-top: 10px; }
  .bf__ppl { display: flex; flex-wrap: wrap; gap: 8px; } .bf__ppl button, .bf__pick button { font: inherit; text-align: left; display: grid; gap: 2px; padding: 10px 14px; min-height: 56px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--c); background: var(--surface-raised); color: var(--ink); cursor: pointer; } .bf__ppl span, .bf__pick span { font-size: 13px; color: var(--ink-muted); }
  .bf__h3 { font-family: var(--font-serif); font-size: 20px; }
  .bf__tl { list-style: none; margin: 0; padding: 0; display: grid; } .bf__tl li { display: grid; grid-template-columns: 58px 16px minmax(0, 1fr); gap: 10px; padding: 9px 0; position: relative; }
  .bf__tl li > b { text-align: right; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; } .bf__tl li > i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-top: 6px; z-index: 1; box-shadow: 0 0 0 3px var(--surface); }
  .bf__tl li::before { content: ""; position: absolute; left: 74px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); } .bf__tl li:first-child::before { top: 14px; } .bf__tl li:last-child::before { bottom: calc(100% - 14px); }
  .bf__tl p { font-size: 16px; line-height: 1.55; } .bf__tl small { font-size: 12.5px; color: var(--ink-muted); }
  .bf__pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; } .bf__pick button { flex: none; max-width: 220px; } .bf__pick button[aria-pressed="true"] { background: var(--surface-sunken); border-color: var(--c); }
  .bf__story { display: grid; gap: 12px; max-width: 42em; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
  .bf__kick { font-size: 12.5px; letter-spacing: .14em; font-weight: 700; color: var(--ink-muted); border-left: 4px solid var(--c); padding-left: 8px; } .bf__story h2 { font-family: var(--font-serif); font-size: 30px; line-height: 1.3; text-wrap: balance; } .bf__who { font-size: 14px; color: var(--ink-muted); }
  .bf__story > p { font-size: 17px; line-height: 1.95; } .bf__drop::first-letter { font-family: var(--font-serif); font-size: 52px; float: left; line-height: .95; padding: 4px 8px 0 0; font-weight: 900; }
  .bf__q { font-family: var(--font-serif); font-size: 20px !important; line-height: 1.7 !important; border-left: 5px solid var(--c); padding-left: 14px; }
  .bf__foot { display: grid; gap: 8px; font-size: 13.5px; line-height: 1.8; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 14px; }
  @media (max-width: 760px) {
    .bf__hero { grid-template-columns: minmax(0, 1fr); padding: 16px; } .bf__herot h1 { font-size: 26px; } .bf__nums b { font-size: 44px; }
    .bf__day { grid-template-columns: minmax(0, 1fr); gap: 8px; } .bf__dayh { display: flex; align-items: center; gap: 8px; } .bf__story { padding: 16px; } .bf__story h2 { font-size: 25px; }
    .bf__tl li { grid-template-columns: 48px 16px minmax(0, 1fr); } .bf__tl li::before { left: 64px; } .bf__want { padding: 14px; }
  }
  /* ── 無障礙頁的外觀＝「路牌」（2026-10-10 使用者從八種風格選的第一種）：黃底黑字、藍底白字的大牌子、粗黑框。牌子的顏色固定，其餘跟著主題色 ── */
  .ax { --ax-y: #ffd200; --ax-k: #111; --ax-b: #0b4ea2; }
  .ax__hero { background: var(--ax-y); color: var(--ax-k); border: 5px solid var(--ax-k); border-radius: 16px; } .ax__hero h1 { font-family: var(--font-sans); font-weight: 900; font-size: 36px; } .ax__hero p { color: var(--ax-k); font-weight: 500; }
  .ax__nums li { background: var(--ax-k); color: #fff; border-radius: 10px; } .ax__nums span { color: #fff; } .ax__nums b { font-family: var(--font-sans); font-weight: 900; }
  .ax__alert { background: var(--ax-k); border-radius: 12px; } .ax__alert > b { color: var(--ax-y); } .ax__alert li { color: #fff; }
  .ax__now h2 { font-family: var(--font-sans); font-weight: 900; font-size: 26px; }
  .ax__sit, .ax__sit.is-wc, .ax__sit.is-loan, .ax__sit.is-car, .ax__sit.is-sick, .ax__sit.is-port, .ax__sit.is-go { background: var(--ax-b); color: #fff; border: 4px solid #fff; border-radius: 14px; box-shadow: 0 0 0 3px var(--ax-b); } .ax__sit b { font-size: 17px; font-weight: 900; }
  .ax__sit.is-on { background: var(--ax-y); color: var(--ax-k); border-color: var(--ax-k); box-shadow: 0 0 0 3px var(--ax-y); }
  .ax__sitb { border: 4px solid var(--ink); }
  .ax__tabs { border-bottom: 0; gap: 6px; padding-bottom: 2px; } .ax__tabs button { border: 3px solid var(--ink); border-radius: 10px; margin: 0; color: var(--ink); } .ax__tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .ax .dy-chip { border: 2.5px solid var(--ink); font-weight: 700; color: var(--ink); background: transparent; } .ax .dy-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
  .ax__spot, .ax__mv, .ax__ans, .ax__todo, .ax__stop { border: 4px solid var(--ink); border-radius: 16px; } .ax__spot { border-top-width: 4px; } .ax__spot.is-ok, .ax__spot.is-part { border-top-color: var(--ink); } .ax__spot.is-no, .ax__stop.is-gap { border-color: var(--ax-no); } .ax__todo { border-width: 3px; }
  .ax__lv { border-radius: 6px; color: #fff; } .ax__lv.is-ok { background: #0c7a4d; color: #fff; } .ax__lv.is-part { background: #8a5a00; color: #fff; } .ax__lv.is-no { background: #b3261e; color: #fff; } .ax__lv.is-unk { background: #4f5d63; color: #fff; }
  .ax__tags span { background: transparent; border: 2px solid var(--ink); font-weight: 700; }
  .ax__btn, .ax .pgr__send { background: var(--ax-y); color: var(--ax-k); border: 3px solid var(--ax-k); border-radius: 10px; }
  .ax__tel, .ax__tel.is-big { background: var(--ax-k); border-radius: 10px; border: 3px solid var(--ax-k); box-sizing: border-box; align-items: center; align-content: center; min-height: 52px; padding: 6px 14px; }
  .ax__tel b { line-height: 1.2; } .ax__tel span { line-height: 1.3; } .ax__tels { align-items: stretch; } .ax__tels .ax__btn { min-height: 52px; box-sizing: border-box; }   /* 2026-10-10 使用者截圖：電話鈕的字偏上、跟旁邊的按鈕不一樣高 */ .ax__tel span, .ax__tel.is-big span { color: #fff; } .ax__tel b, .ax__tel.is-big b { color: var(--ax-y); }
  .ax__row { background: var(--ax-k); color: #fff; } .ax__row span { color: #d9dee0; } .ax__row em { color: var(--ax-y); }
  .ax__line::before { background: var(--ink); } .ax__stop summary b { font-weight: 900; } .ax__stop summary em { background: #0c7a4d; color: #fff; } .ax__stop.is-call summary em { background: #8a5a00; color: #fff; } .ax__dot { border-width: 6px; }
  .ax__when h3 { background: var(--ax-k); color: var(--ax-y); } .ax__prog { border: 2px solid var(--ink); height: 16px; border-radius: 8px; } .ax__prog i { background: var(--ax-b); border-radius: 0; }
  .ax__qo button { border-width: 3px; border-color: var(--ink); } .ax__qo button[aria-pressed="true"] { background: var(--ax-y); color: var(--ax-k); border-color: var(--ax-k); } .ax__q legend { font-family: var(--font-sans); font-weight: 900; } .ax__q legend i { background: var(--ax-b); color: #fff; }
  .ax__tripc { background: var(--ax-y); border: 4px solid var(--ax-k); color: var(--ax-k); } .ax__tripc h3 { font-family: var(--font-sans); font-weight: 900; }
  .ax__gaps, .ax .pgr__blk { background: transparent; border: 3px solid var(--ink); } .ax__tbl thead th { background: var(--ax-k); color: #fff; } .ax__tblw { border: 3px solid var(--ink); }
  [data-theme="dark"] .ax__row, [data-theme="dark"] .ax__tel, [data-theme="dark"] .ax__alert, [data-theme="dark"] .ax__nums li { box-shadow: 0 0 0 2px var(--ax-y); }
  @media (max-width: 760px) { .ax__hero h1 { font-size: 31px; } .ax__nums { gap: 5px; } .ax__nums li { padding: 8px 2px; } .ax__nums span { font-size: 11px; white-space: nowrap; } }
  /* ── 各宗教頁的外觀＝「雜誌」（2026-10-10 使用者從八種風格選的第三種）：超大宋體標題、細線分欄、紅色點綴、首字放大；不用卡片 ── */
  .bf { --bf-red: #c8102e; gap: 26px; } [data-theme="dark"] .bf { --bf-red: #ff7a8a; }
  .bf__hero { background: none; border: 0; border-top: 8px solid var(--ink); border-radius: 0; padding: 14px 0 0; align-items: start; } .bf__herot h1 { font-size: 46px; font-weight: 900; line-height: 1.1; } .bf__herot p { font-family: var(--font-serif); font-size: 18px; line-height: 1.8; } .bf__herol { font-family: var(--font-sans) !important; } .bf__herol a { color: var(--bf-red); }
  .bf__num { border-top: 1px solid var(--ink); padding-top: 12px; } .bf__nums b { font-size: 66px; } .bf__sq i { border-radius: 0; } .bf__sq i.is-c { box-shadow: none; }
  .bf__want { background: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; padding: 16px 0; } .bf__want h2 { font-size: 27px; font-weight: 900; }
  .bf__lang button { border-radius: 0; border-color: var(--ink); background: none; } .bf__lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .bf__wants { gap: 0; border-top: 1px solid var(--line-strong); } .bf__w, .bf__w.is-none { background: none; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 12px 10px 12px 0; } .bf__w b { font-family: var(--font-serif); font-size: 19px; font-weight: 900; } .bf__w.is-on, .bf__w.is-none.is-on { border: 0; border-bottom: 1px solid var(--line-strong); box-shadow: inset 5px 0 0 var(--bf-red); padding-left: 14px; } .bf__w.is-none b { font-style: italic; }
  .bf__wnote { background: none; border-left: 4px solid var(--bf-red); border-radius: 0; font-family: var(--font-serif); }
  .bf__tabs { border-bottom: 1px solid var(--ink); } .bf__tabs button { letter-spacing: .08em; } .bf__tabs button[aria-selected="true"] { color: var(--bf-red); border-bottom-color: var(--bf-red); }
  .bf .dy-chip { border-radius: 0; } .bf__grid { gap: 22px; }
  .bf__day { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 12px 0; } .bf__day.is-now { box-shadow: none; border-top: 5px solid var(--bf-red); } .bf__dayh b { font-family: var(--font-serif); font-size: 28px; font-weight: 900; } .bf__dayh em { background: var(--bf-red); color: #fff; border-radius: 0; } [data-theme="dark"] .bf__dayh em { color: #1a1a1a; }
  .bf__ev { background: none; border-radius: 0; border-top: 1px solid var(--line); padding: 8px 0 8px 10px; } .bf__ev { grid-template-columns: 68px minmax(0, 1fr); } .bf__ev time { font-family: var(--font-serif); font-size: 22px; }
  .bf__site { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding-top: 12px; } .bf__artw { border-radius: 0; } .bf__sb { padding: 12px 0 0; } .bf__site h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 900; } .bf__tag { letter-spacing: .12em; font-weight: 700; } .bf__st { border-radius: 0; }
  .bf__go { background: var(--ink); color: var(--surface); border-radius: 0; } .bf__more { border-radius: 0; border-color: var(--ink); } .bf__tel { color: var(--bf-red); } .bf__ph img { border-radius: 0; } .bf__site.is-big { border-top: 0; padding-top: 0; }
  .bf__bk { border-radius: 0; box-shadow: none; padding-left: 16px; } .bf__bk b { font-size: 32px; font-weight: 900; } .bf__bkh { border-left: 0; border-top: 8px solid var(--c); padding: 10px 0 0; } .bf__bkh h2 { font-size: 42px; font-weight: 900; } .bf__prose p { font-family: var(--font-serif); font-size: 18px; line-height: 2; } .bf__prose p:first-child::first-letter { font-size: 58px; float: left; line-height: .95; padding: 4px 8px 0 0; font-weight: 900; color: var(--bf-red); } .bf__terms { font-family: var(--font-sans) !important; }
  .bf__ppl button, .bf__pick button { border-radius: 0; background: none; border: 0; border-top: 4px solid var(--c); border-bottom: 1px solid var(--line-strong); } .bf__ppl b, .bf__pick b { font-family: var(--font-serif); font-size: 18px; } .bf__pick button[aria-pressed="true"] { background: var(--surface-sunken); }
  .bf__story { background: none; border: 0; border-radius: 0; padding: 0; } .bf__story h2 { font-size: 40px; font-weight: 900; line-height: 1.2; } .bf__story > p { font-family: var(--font-serif); font-size: 18.5px; line-height: 2; } .bf__kick { border-left: 0; padding-left: 0; color: var(--bf-red); } .bf__drop::first-letter { font-size: 64px; color: var(--bf-red); } .bf__q { font-size: 24px !important; font-weight: 700; border-left-color: var(--bf-red); }
  .bf__tl li > b { font-family: var(--font-serif); font-size: 21px; } .bf__tl p { font-family: var(--font-serif); font-size: 17.5px; } .bf__h3 { font-size: 24px; font-weight: 900; border-top: 1px solid var(--ink); padding-top: 10px; }
  .bf .pgr__blk { background: none; border-top: 5px solid var(--ink); border-radius: 0; padding: 14px 0 0; } .bf .pgr__blkh h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 900; } .bf .pgr__send { background: var(--ink); color: var(--surface); border-radius: 0; } .bf .pgr__list { border-radius: 0; }
  @media (max-width: 760px) { .bf__herot h1 { font-size: 38px; } .bf__nums b { font-size: 56px; } .bf__story h2 { font-size: 30px; } .bf__bkh h2 { font-size: 34px; } }
  /* ─── 親子 /kids（2026-10-09）：積木牆。積木顏色是固定的（白字或深字都量過對比），其餘跟著主題色 ─── */
  .ime__help { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised, #fff); min-width: 0; }
  .ime__help h3 { margin: 0; font-size: 18px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; } .ime__help h3 span { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
  .ime__hd { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; } .ime__help .gb__note { margin: 0; }
  .ime__prog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); } .ime__prog i { display: block; width: 96px; height: 6px; border-radius: 3px; background: var(--line, #e3dccf); overflow: hidden; } .ime__prog i b { display: block; height: 100%; background: #a93222; }
  .ime__cats { display: flex; flex-wrap: wrap; gap: 8px; }
  @media (max-width: 560px) { .ime__cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; } .ime__cat { flex: none; } .ime__mat { font-size: 23px; } }
  .ime__cat { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong, #bdb6a8); border-radius: 22px; background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
  .ime__cat span { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; } .ime__cat.is-on { background: #a93222; border-color: #a93222; color: #fff; font-weight: 700; } .ime__cat.is-on span { color: rgba(255,255,255,.85); }
  .ime__q { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: #fbf6ee; border: 1px solid var(--line, #e3dccf); min-width: 0; }
  .ime__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .ime__pos { font-size: 13px; color: #6b6255; font-variant-numeric: tabular-nums; text-align: center; }
  .ime__step { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong, #bdb6a8); border-radius: 10px; background: #fff; color: #2b2520; font: inherit; font-size: 15px; cursor: pointer; white-space: nowrap; } .ime__step:disabled { opacity: .4; cursor: default; }
  .ime__mat { font-size: 26px; line-height: 1.5; font-family: var(--font-serif); overflow-wrap: anywhere; color: #2b2520; text-align: center; padding: 6px 0; }
  .ime__row { display: flex; gap: 8px; align-items: stretch; } .ime__row .ime__zh { flex: 1; min-width: 0; } .ime__row .gbrep__send { flex: none; min-width: 84px; } .ime__row .gbrep__send:disabled { opacity: .5; }
  .ime__q .gb__note { color: #6b6255; }
  .ime__zh, .ime__rv input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong, #bdb6a8); border-radius: 10px; background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 17px; }
  .ime__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ime__msg { font-size: 14px; color: #9a3d22; font-weight: 700; }
  .ime__staff { border-style: dashed; } .ime__rv { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .ime__rv li { display: grid; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line-strong, #bdb6a8); } .ime__rv small { color: var(--ink-muted); font-size: 13px; }
  /* 翻譯頁裡面的內容最寬 880、左右各留 16；外面的區塊照同一個寬度對齊，不然上窄下寬 */
  .ime { display: grid; gap: 14px; max-width: 880px; margin-inline: auto; } .ime__back { margin: 0 16px; font-size: 15px; } .ime__frame { display: block; width: 100%; border: 0; border-radius: 12px; background: #fbf6ee; }
  .ime > .ime__help, .ime > .gb__note { margin-inline: 16px; }
  /* 外觀＝泡泡雲（使用者 2026-10-09 從六種可愛風格裡選的）：天空底、雲朵標題、圓泡泡按鈕、圓體字（字型只在這一頁載，見 KidsView） */
  .kd { --kd-ink: #17363f; --kd-s1: #bfe6f5; --kd-s2: #eef9fd; --kd-blue: #1f7fa6; --kd-cloud: var(--surface-raised, #fff); display: grid; gap: 18px; align-content: start;
    padding: 20px 16px 22px; border-radius: 28px; background: linear-gradient(var(--kd-s1), var(--kd-s2) 420px, transparent 760px);
    font-family: "Chiron GoRound TC", "PingFang TC", "Microsoft JhengHei", var(--font-sans); }
  [data-theme="dark"] .kd { --kd-s1: #17475c; --kd-s2: #11303b; --kd-blue: #2f9cc7; } [data-theme="dark"] .kd__brick--tell { --c: #3f6f7d; }
  .kd button, .kd input, .kd textarea, .kd select { font-family: inherit; }
  .kd__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: center; }
  .kd__hero { display: grid; gap: 14px; justify-items: center; min-width: 0; color: var(--ink); }
  .kd__cloud { display: flex; gap: 12px; align-items: center; padding: 8px 30px 8px 12px; border-radius: 999px; background: var(--kd-cloud); min-width: 0; max-width: 100%;
    box-shadow: 26px -14px 0 -8px var(--kd-cloud), -16px 12px 0 -10px var(--kd-cloud), 60px 12px 0 -14px var(--kd-cloud); }
  .kd__tern { flex: none; animation: kd-bob 3.2s ease-in-out infinite; }
  @keyframes kd-bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
  .kd__title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 900; letter-spacing: .02em; }
  .kd__lead { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-muted); }
  .kd__isles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .kd__isle { appearance: none; min-height: 44px; min-width: 60px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--kd-cloud); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
  .kd__isle.is-on { background: var(--kd-blue); color: #fff; }
  .kd__today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
  .kd__today h3 { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 900; text-align: center; color: var(--ink-muted); }
  .kd__trow { display: grid; align-content: start; gap: 1px; width: 100%; min-height: 76px; padding: 10px 14px; border: 0; border-radius: 22px; background: var(--kd-cloud); color: var(--ink); font: inherit; text-align: left; box-sizing: border-box; }
  .kd__trow.is-ok .kd__tw { color: #2f6b22; } .kd__trow.is-warn .kd__tw { color: #c8452c; }
  [data-theme="dark"] .kd__trow.is-ok .kd__tw { color: #9ddc84; } [data-theme="dark"] .kd__trow.is-warn .kd__tw { color: #ff9a82; }
  .kd__trow.is-act { cursor: pointer; }
  .kd__trow.is-act .kd__tw::after { content: ' ›'; color: var(--ink-muted); }
  .kd__trow.is-act { transition: transform .12s; } .kd__trow.is-act:hover { transform: translateY(-2px); }
  .kd__tl { font-size: 13px; color: var(--ink-muted); }
  .kd__tw { font-size: 17px; font-weight: 900; min-width: 0; overflow-wrap: anywhere; }
  .kd__ts { font-size: 12.5px; color: var(--ink-muted); }
  .kd__ask { display: flex; justify-content: center; margin-top: 4px; }
  .kd__bub { font-size: 21px; font-weight: 900; }
  .kd__wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 18px 6px; align-content: start; }
  .kd__brick { --c: #17363f; --t: #fff; appearance: none; box-sizing: border-box; display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 0; border: 0;
    background: none; color: var(--ink); font: inherit; text-align: center; text-decoration: none; cursor: pointer;
    animation: kd-drop .45s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--i) * 60ms); }
  @keyframes kd-drop { from { transform: translateY(-26px); opacity: 0; } }
  .kd__brick svg { box-sizing: border-box; width: 84px; height: 84px; padding: 24px; border-radius: 50%; background: var(--c); color: var(--t); box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .11), inset 8px 8px 0 rgba(255, 255, 255, .25); transition: transform .14s; }
  .kd__brick:hover svg { transform: translateY(-4px) scale(1.04); }
  .kd__brick.is-on svg, .kd__brick:active svg { transform: scale(.94); }
  .kd__brick.is-on svg { outline: 4px solid var(--kd-blue); outline-offset: 3px; }
  .kd__bt { display: grid; min-width: 0; } .kd__bt b { font-size: 17px; font-weight: 900; line-height: 1.25; } .kd__bt small { font-size: 12.5px; color: var(--ink-muted); line-height: 1.35; }
  .kd__brick--diaper { --c: #e8674c; } .kd__brick--nursing { --c: #d9618c; }
  .kd__brick--play { --c: #f0b63f; --t: #17363f; } .kd__brick--rain { --c: #56a83a; } .kd__brick--big { --c: #3d86c0; }
  .kd__brick--care { --c: #9068c4; } .kd__brick--doctor { --c: #24a0a6; } .kd__brick--tell { --c: #17363f; }
  .kd__ans { min-width: 0; }
  .kd__ans.is-open { border-radius: 28px; background: var(--kd-s2); padding: 16px 14px 18px; scroll-margin-top: 90px; animation: kd-drop .3s ease backwards; --i: 0; }
  .kd__ansh { margin: 0 0 10px; font-size: 20px; font-weight: 900; display: flex; gap: 10px; align-items: baseline; } .kd__ansh span { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
  .kd__ansin { display: grid; gap: 12px; min-width: 0; }
  /* 點開後的卡片（圖鑑卡）與燕鷗的一句話 */
  .kd__say { display: flex; gap: 10px; align-items: flex-start; } .kd__say .kd__tern { flex: none; width: 44px; height: 37px; }
  .kd__say p { margin: 0; padding: 9px 14px; border-radius: 4px 20px 20px 20px; background: var(--kd-cloud); font-size: 16px; font-weight: 700; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
  .kd__card { box-sizing: border-box; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 12px; align-content: start; align-items: center; padding: 12px 14px; border-radius: 22px; background: var(--kd-cloud); min-width: 0; list-style: none; }
  .kd__cb { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .11), inset 5px 5px 0 rgba(255, 255, 255, .25); }
  .kd__cm { min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; } .kd__cm b { flex: 1 1 100%; font-size: 17px; font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; } .kd__cm small { font-size: 13px; color: var(--ink-muted); }
  .kd__km { font-style: normal; padding: 1px 10px; border-radius: 999px; background: #dff1f9; color: #145f7d; font-size: 12.5px; font-weight: 900; white-space: nowrap; }
  .kd__open { font-style: normal; padding: 2px 12px; border-radius: 999px; background: #d9efc9; color: #24591a; font-size: 14px; font-weight: 900; white-space: nowrap; } .kd__open.is-no { background: #ece7de; color: #5d6b6e; }
  .kd__cx { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: start; min-width: 0; }
  .kd__chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .kd__chip { padding: 2px 10px; border-radius: 999px; background: #ffe1d8; color: #17363f; font-size: 13px; font-weight: 700; }
  .kd__chip:nth-child(6n+2) { background: #fbd9e6; } .kd__chip:nth-child(6n+3) { background: #ffeab0; } .kd__chip:nth-child(6n+4) { background: #d9efc9; } .kd__chip:nth-child(6n+5) { background: #e6daf5; } .kd__chip:nth-child(6n) { background: #cfecee; }
  .kd__ctx { font-size: 13.5px; color: var(--ink-muted); overflow-wrap: anywhere; }
  .kd__warn { padding: 4px 11px; border-radius: 12px; background: #ffe1d8; color: #a8331b; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
  .kd__cf { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; } .kd__cf .kd__from { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink-muted); }
  .kd__card.is-off { background: var(--surface-sunken, #ece7de); } .kd__card.is-off .kd__cb { background: #a9b3b5 !important; color: #fff !important; }
  .kd__card--top { border: 3px solid #f0b63f; padding: 14px 16px; } .kd__card--top .kd__cm b { flex: 1 1 auto; font-size: 21px; } .kd__card--top .kd__ctx { font-size: 14.5px; }
  .kd__top { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 24px; background: #17363f; color: #fff; min-width: 0; }
  .kd__topm { display: grid; gap: 2px; min-width: 0; } .kd__topm small { font-size: 13px; color: #f0b63f; font-weight: 700; } .kd__topm b { font-size: 21px; line-height: 1.3; } .kd__topm span { font-size: 14px; opacity: .9; overflow-wrap: anywhere; }
  .kd__tel { color: var(--ink); font-size: 15px; font-weight: 700; min-height: 30px; display: inline-flex; align-items: center; }
  .kd__go { appearance: none; flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--kd-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 900; text-decoration: none; cursor: pointer; }
  .kd__go.is-big { min-height: 52px; padding: 0 22px; background: #f0b63f; color: #17363f; font-size: 17px; }
  .kd__rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .kd__row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--line-strong, #bdb6a8); min-width: 0; }
  .kd__row > div { min-width: 0; } .kd__row b { font-size: 16px; } .kd__row em { font-style: normal; font-size: 13px; color: var(--tide); margin-left: 8px; font-weight: 700; } .kd__row span { display: block; font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; }
  .kd__flag { appearance: none; flex: none; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
  .kd__flag.is-top { min-height: 36px; }
  .kd__row > div { flex: 1; }
  .kdrep__where { display: grid; gap: 8px; } .kdrep .gbrep__o { min-height: 44px; font-size: 15px; } .kdrep .gbrep__send.is-wait { background: var(--surface-sunken, #ece7de); color: var(--ink-muted); }
  .kd__row .kd__from { font-size: 12.5px; } .kd__from a { color: inherit; } .kd__sech small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
  .sheet > .gb { border: 0; padding: 0; margin: 0 32px 0 0; background: none; }
  .kd__winh { margin: 0 36px 8px 0; font-size: 20px; font-weight: 900; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; } .kd__winh span { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
  .kd__sea { list-style: none; margin: 0 0 10px; padding: 0; }
  .kd__seag { margin-top: 14px; } .kd__seag h4 { margin: 0 0 4px; padding: 5px 10px; font-size: 16px; font-weight: 900; background: var(--surface-sunken, #ece7de); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; } .kd__seag h4 span { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
  .kd__seag .kd__sea li:first-child { border-top: 0; }
  .kd__sea li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line-strong, #bdb6a8); }
  .kd__sea b { font-family: var(--font-mono, monospace); font-size: 17px; } .kd__sea span { min-width: 0; font-size: 16px; } .kd__sea small { display: block; font-size: 13px; color: var(--ink-muted); }
  .kd__sea em { font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface-sunken, #ece7de); white-space: nowrap; }
  .kd__sea .is-stop em { background: #c8452c; color: #fff; } .kd__sea .is-stop span, .kd__sea .is-stop b { text-decoration: line-through; opacity: .7; } .kd__sea .is-hold em { background: #f0b63f; color: #17363f; }
  .kd__reps { display: grid; gap: 2px; margin-top: 3px; }
  .kd__row .kd__rep, .kd__rep { display: block; font-size: 13px; color: #9a3d22; font-weight: 700; overflow-wrap: anywhere; } .kd__rep.is-have { color: #2f6b22; } .is-hid { opacity: .5; }
  .kd__rep .kd__flag { min-height: 28px; margin-left: 6px; }
  .kd__mem, .kd__sec { display: grid; gap: 6px; min-width: 0; } .kd__memh { font-size: 14px; color: var(--ink-muted); }
  .kd__sec { margin-top: 6px; gap: 10px; } .kd__sech { font-size: 18px; font-weight: 900; } .kd__secn { font-size: 14px; color: var(--ink-muted); }
  .kd__more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
  .kd__rules { margin: 0 0 8px; padding-left: 1.3em; font-size: 15px; line-height: 1.8; }
  .kd__none { margin: 0; font-size: 15px; }
  .kd__empty { display: grid; gap: 4px; padding: 14px 16px; border: 2px dashed var(--line-strong, #bdb6a8); border-radius: 16px; } .kd__empty b { font-size: 17px; } .kd__empty span { font-size: 14px; color: var(--ink-muted); }
  .kd__big { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .kd__big a { display: grid; gap: 2px; min-height: 64px; padding: 12px 14px; border-radius: 22px; background: var(--kd-s2); color: var(--ink); text-decoration: none; } .kd__big b { font-size: 17px; } .kd__big span { font-size: 13px; color: var(--ink-muted); }
  .kd__src { margin: 0; font-size: 12.5px; color: var(--ink-muted); line-height: 1.7; }
  @media (max-width: 860px) {
    .kd__head { grid-template-columns: minmax(0, 1fr); }
    .kd { padding: 16px 12px 20px; border-radius: 24px; } .kd__title { font-size: 23px; } .kd__cloud { padding-right: 22px; }
    .kd__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kd__brick svg { width: 78px; height: 78px; padding: 22px; }
    .kd__big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 620px) {
    .kd__tern { width: 60px; height: 50px; } .kd__bt b { font-size: 16px; }
    .kd__wall--nobig .kd__brick--tell { grid-column: 1 / -1; }          /* 七顆時最後一顆置中，不孤零零靠左 */
    .kd__rows, .kd__big { grid-template-columns: minmax(0, 1fr); }
    .kd__top { flex-direction: column; align-items: stretch; } .kd__go.is-big { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { .kd__tern, .kd__brick, .kd__ans.is-open { animation: none; } .kd__brick { transition: none; } }
  .gb { margin: var(--space-4) 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised, #fff); display: grid; gap: 12px; }
  .gb__h { margin: 0; font-size: 19px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; } .gb__h span { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
  .gb__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .gb__bar .newsfilter { margin: 0; }
  .gb__q { flex: 1 1 200px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong, #bdb6a8); border-radius: 999px; font: inherit; font-size: 15px; background: var(--surface, #fff); color: var(--ink); }
  .gb__routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .gbr { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .gbr.is-off { opacity: .6; } .gbr.is-now { border-color: var(--tide, #0c7078); box-shadow: inset 4px 0 0 var(--tide, #0c7078); }
  .gbr__h { appearance: none; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 12px 14px; min-height: 44px;
    display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px 12px; align-items: center; }
  .gbr__h b { font-size: 16px; } .gbr__t { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }
  .gbr__k { display: flex; gap: 5px; flex-wrap: wrap; } .gbr__c { font-size: 12.5px; color: var(--tide, #0c7078); white-space: nowrap; }
  .gbr__s { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-muted); } .gbr.is-now .gbr__s { color: var(--ink); font-weight: 700; }
  .gbk { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--ink-muted); background: var(--surface-sunken, #ece7de); text-decoration: line-through; opacity: .7; }
  .gbk.is-on { color: #fff; background: var(--c); text-decoration: none; opacity: 1; }
  .gbr__stops { list-style: none; margin: 0; padding: 4px 14px 12px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
  .gbr__stops li { display: grid; grid-template-columns: 3.4em 1fr auto; gap: 10px; align-items: baseline; padding: 5px 6px; border-radius: 8px; font-size: 14.5px; }
  .gbr__stops b { font-family: var(--font-mono); font-weight: 600; } .gbr__stops .is-past { color: var(--ink-muted); }
  .gbr__stops .is-at { background: #fff4df; color: var(--ink); } .gbr__stops em { font-style: normal; font-size: 12px; font-weight: 800; color: #8a5a00; }
  .gb__note { margin: 0; font-size: 12.5px; color: var(--ink-muted); line-height: 1.7; }
  /* 垃圾車即時位置：一句現況 → 地圖｜車輛卡片與這一趟接下來 → 收起來的說明 */
  .gb__subbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
  .gb__sub { margin: 0; font-size: 17px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 260px; } .gb__sub span { font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
  .gb__subbar .gb__q { flex: 1 1 240px; max-width: 420px; }
  /* 生活資訊的主題按鈕 */
  .lifehub__nav { display: flex; gap: 8px; margin: var(--space-4) 0 0; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; } .lifehub__nav::-webkit-scrollbar { display: none; }
  .lifehub__b { flex: none; appearance: none; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-strong, #bdb6a8); background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
  .lifehub__b.is-on { background: var(--ink, #17323a); color: var(--surface, #fff); border-color: transparent; }
  /* 公車 */
  .bus__ask { display: grid; gap: 8px 10px; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; }
  .bus__ask label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--ink-muted); } .bus__ask .gbwk__sel { width: 100%; max-width: none; flex: none; }
  .bus__loc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--ink-muted); } .bus__loc .gbme__btn { min-height: 40px; font-size: 14px; padding: 0 14px; }
  .bus__near { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .bus__nb { appearance: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #b9d3f7; background: #f2f7ff; color: #14263f; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; } .bus__nb.is-on { background: #2f6fde; border-color: #2f6fde; color: #fff; }
  /* 公車的立體地圖（借用景點地圖的元件，精簡模式） */
  .bus3d { display: grid; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; grid-template-columns: minmax(0, 1fr); } .bus3d .spot3d { height: 440px; margin-bottom: 0; }
  .gbl__side { min-width: 0; } .busl { grid-template-columns: minmax(0, 1fr); } .busd, .busd button { min-width: 0; max-width: 100%; }
  .bus3d .spot3d__mebtn { top: 12px; } .busstripw { display: grid; gap: 6px; align-content: start; min-width: 0; } .busstripw .busstrip { max-width: none; }
  @media (min-width: 900px) { .gb .gbl__top:has(.busstripw) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
  .bus3d__sw { display: inline-flex; border: 1.5px solid var(--tide, #0c7078); border-radius: 999px; overflow: hidden; margin-right: 6px; }
  .bus3d__sw button { appearance: none; border: 0; background: var(--surface, #fff); color: var(--tide, #0c7078); font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 0 16px; cursor: pointer; }
  .bus3d__sw button.is-on { background: var(--tide, #0c7078); color: #fff; }
  /* 路線條裡收起來的前段、後段：一列小按鈕 */
  .busstrip li.busstrip__gap button { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 0 0 106px; width: auto; padding: 0; background: none; font-weight: 600; font-size: 13.5px; opacity: .92; }
  .busstrip li.busstrip__gap button::before, .busstrip li.busstrip__gap button::after { content: none !important; }
  .busstrip li.busstrip__gap button:hover { opacity: 1; } .busstrip li.busstrip__gap em { font-style: normal; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
  .busstrip { list-style: none; margin: 0; padding: 12px 12px 12px 0; border-radius: 18px; background: #0c7078; color: #fff; position: relative; display: grid; gap: 0; max-width: 520px; }
  .busstrip.is-sea { background: #2a63b0; }
  /* 直線一站一段、畫在每一列自己身上（使用者 2026-10-09：原本一條從頭畫到尾，壓到「還有 N 站」那一列的字）；收起來的那一段是虛線，字排在線的右邊 */
  .busstrip li { position: relative; }
  .busstrip li:not(.busstrip__h)::before { content: ''; position: absolute; left: 86px; top: 0; bottom: 0; width: 4px; background: rgba(255,255,255,.5); }
  .busstrip li.busstrip__gap::before { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 4px, transparent 4px 9px); }
  .busstrip .busstrip__h + li:not(.busstrip__gap)::before { top: 50%; } .busstrip li:last-child:not(.busstrip__gap)::before { bottom: 50%; }
  .busstrip__h { padding: 0 0 8px 16px; font-weight: 900; font-size: 16px; display: grid; } .busstrip__h small { font-weight: 500; font-size: 12px; opacity: .85; }
  .busstrip li button { appearance: none; border: 0; background: none; color: inherit; font: inherit; width: 100%; text-align: left; cursor: pointer; min-height: 34px; padding: 3px 0; display: grid; grid-template-columns: 70px 36px minmax(0, 1fr) auto; align-items: center; position: relative; }
  .busstrip li button:disabled { cursor: default; } .busstrip li b { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; text-align: right; opacity: .9; }
  .busstrip li span { grid-column: 3; font-weight: 700; font-size: 15px; }
  .busstrip li button::before { content: ''; grid-column: 2; grid-row: 1; justify-self: center; width: 12px; height: 12px; border-radius: 50%; background: #fff; position: relative; z-index: 1; }
  .busstrip li.is-before { opacity: .5; } .busstrip li.is-on button::before { background: #d8262c; box-shadow: 0 0 0 4px #fff; } .busstrip li.is-off button::before { background: #ffd87a; box-shadow: 0 0 0 4px #fff; }
  .busstrip li.is-on span, .busstrip li.is-off span { font-size: 17px; font-weight: 900; } .busstrip em { font-style: normal; font-size: 12px; font-weight: 700; background: #fff; color: #17323a; border-radius: 999px; padding: 1px 9px; }
  .busstrip__bus { grid-column: 3 / -1; grid-row: 2; font-style: normal; font-size: 12px; display: flex; align-items: center; gap: 4px; opacity: .95; } .busstrip__bus img { width: 34px; height: 34px; margin: -8px 0; }
  .bus3d__town { display: inline-flex; gap: 6px; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--line); }
  .bus__swap { appearance: none; align-self: end; justify-self: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tide, #0c7078); background: var(--surface, #fff); color: var(--tide, #0c7078); font-size: 20px; font-weight: 700; cursor: pointer; }
  .bus__swap:disabled { opacity: .35; cursor: default; }
  .spot3d__pin.is-major i { width: 15px; height: 15px; border-width: 3.5px; } .spot3d__pin.is-major b { font-size: 13px; font-weight: 900; background: #17262b; padding: 1px 7px; }
  .bus3d__ly { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ink-muted); font-weight: 700; }
  .bus3d__rt { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); } .bus3d__rt i { width: 22px; height: 5px; border-radius: 3px; background: #e8452c; }
  .spot3d__pin.is-stop i { width: 10px; height: 10px; border: 2.5px solid #e8452c; background: #fff; } .spot3d__pin.is-stop b { font-size: 11px; font-weight: 600; padding: 0 5px; background: rgba(23,38,43,.72); }
  .spot3d__pin.is-on i, .spot3d__pin.is-off i { width: 18px; height: 18px; border-width: 3px; } .spot3d__pin.is-on b, .spot3d__pin.is-off b { font-size: 13px; background: var(--c); }
  .spot3d__pin.is-vil { pointer-events: none; } .spot3d__pin.is-vil i { opacity: 0; } .spot3d__pin.is-vil b { background: rgba(255,253,248,.9); color: #17323a; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; border: 1px solid rgba(23,50,58,.25); }
  .spot3d__pin.is-poi i { border-radius: 3px; transform: rotate(45deg); width: 11px; height: 11px; } .spot3d__pin.is-poi b { background: rgba(138,94,10,.88); font-size: 11.5px; }
  .spot3d__pin.is-car { z-index: 6; } .spot3d__pin.is-car i { opacity: 0; } .spot3d__pin.is-car img { position: absolute; left: -28px; top: -30px; width: 56px; height: 56px; max-width: none; filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
  .spot3d__pin.is-car b { margin-left: 12px; background: #fff; color: #0c5a61; border: 1.5px dashed #0c7078; font-size: 11px; } .spot3d__pin.is-car.is-dim img { opacity: 1; width: 40px; height: 40px; left: -20px; top: -25px; } .spot3d__pin.is-car.is-dim b { display: none; }
  .spot3d__pin.is-sunk img { animation: bussink 1.7s cubic-bezier(.5,0,.9,.5) forwards; } .spot3d__pin.is-sunk b { visibility: hidden; }
  @keyframes bussink { 0% { transform: none; opacity: 1; } 18% { transform: translateY(-22px) rotate(-18deg); } 100% { transform: translateY(170px) rotate(220deg) scale(.45); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .spot3d__pin.is-sunk img { animation: none; opacity: 0; } }
  .spot3d__pin.is-me i { width: 16px; height: 16px; box-shadow: 0 0 0 5px rgba(47,124,246,.3); } .spot3d__pin.is-me b { background: #2f7cf6; }
  @media (max-width: 720px) { .bus3d .spot3d { height: 360px; } }
  /* 居民補助：分類、重點與申請單位 */
  .wf__bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; } .wf__town { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-muted); } .wf__town .gbwk__sel { flex: none; width: auto; min-height: 40px; }
  .wf__grp { display: grid; gap: 8px; } .wf__grp > h5 { margin: 10px 0 0; font-size: 17px; display: flex; gap: 8px; align-items: baseline; border-left: 5px solid var(--tide, #0c7078); padding-left: 10px; } .wf__grp > h5 span { font-size: 12.5px; color: var(--ink-muted); font-weight: 500; }
  .wf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
  .wf__it { border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); padding: 12px 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
  .wf__it h6 { margin: 0; font-size: 16.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .wf__scope { font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: #fff3d6; color: #7a5200; border: 1px solid #e3c88a; }
  .wf__it dl { margin: 0; display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 5px 10px; font-size: 14px; line-height: 1.65; } .wf__it dt { color: var(--ink-muted); font-size: 12.5px; font-weight: 700; padding-top: 2px; } .wf__it dd { margin: 0; }
  .wf__amt { font-weight: 700; color: #0c5a61; } .wf__unit { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .wf__unit b { background: #e3f3f1; border-radius: 8px; padding: 1px 8px; } .wf__unit span { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
  .colstrip { border: 1px solid #e3c88a; background: #fff9ea; color: #2b2619; border-radius: 16px; padding: 12px 14px; margin-top: 16px; display: grid; gap: 10px; }
  .colstrip__h { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; } .colstrip__h b { font-size: 17px; } .colstrip__h span { font-size: 12.5px; color: #6b5a33; } .colstrip__h a { margin-left: auto; font-weight: 700; font-size: 13.5px; }
  /* 藍眼淚頁第二版：三個分頁＋今晚的結論卡 */
  /* 藍眼淚回報表單第二版：兩步、按鈕選、定位自動判斷 */
  .btq { display: grid; gap: 10px; } .btq__n { margin: 6px 0 0; font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 8px; } .btq__n i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #2ef0ff; color: #06202e; display: grid; place-items: center; font-size: 14px; }
  .btq__loc { margin: 0; font-size: 13px; color: #a9d6e6; }
  .btq__here { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; border: 1.5px solid #2ef0ff; background: #0f3a4d; border-radius: 14px; padding: 10px 12px; }
  .btq__here b { font-size: 18px; } .btq__here span { grid-column: 1; font-size: 13px; color: #a9d6e6; } .btq__here button { grid-row: 1 / span 2; grid-column: 2; }
  .btq button { appearance: none; font: inherit; cursor: pointer; }
  .btq__here button, .btq__chips button, .btq__more { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #2c5566; background: none; color: #cfeefb; font-size: 13.5px; font-weight: 700; }
  .btq__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .btq__chips small { color: #a9d6e6; }
  .btq__pick { display: grid; gap: 8px; } .btq__geo { min-height: 46px; border-radius: 12px; border: 0; background: #2f6fde; color: #fff; font-weight: 700; font-size: 15px; }
  .btq__isl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; } .btq__isl button { min-height: 44px; border-radius: 10px; border: 1.5px solid #2c5566; background: #0f3142; color: #e9fbff; font-weight: 700; font-size: 14px; } .btq__isl button.is-on { background: #2ef0ff; border-color: #2ef0ff; color: #06202e; }
  .btq__spots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .btq__spots button { min-height: 48px; border-radius: 12px; border: 1.5px solid #2c5566; background: #0f3142; color: #e9fbff; font-weight: 700; font-size: 15px; padding: 4px 8px; } .btq__spots button.is-on { border-color: #2ef0ff; box-shadow: inset 0 0 0 1.5px #2ef0ff; }
  .btq__lvs .bt__lv { min-height: 76px; display: grid; justify-items: center; align-content: center; gap: 6px; font-size: 15px; } .btq__lvs .bt__lv .btdot { width: 18px; height: 18px; }
  .btq__hint { margin: 0; font-size: 12.5px; color: #a9d6e6; } .btq__more { justify-self: start; border-style: dashed; }
  /* 首頁兩張班次卡左右對稱：上面各一條同高的列（左邊是標示、右邊是航線分頁），卡片等高 */
  .homesea { height: 100%; display: flex !important; flex-direction: column; gap: 8px; } .homesea > :last-child { flex: 1 1 auto; box-sizing: border-box; }
  .depall { font-size: 13.5px; color: var(--ink-muted); margin-bottom: var(--space-4); } .depall__h { margin: 0; font-weight: 700; } .depall summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 700; } .depall ul { margin: 4px 0 8px; padding-left: 1.2em; display: grid; gap: 4px; } .depall a { color: inherit; }
  .homesea > .depseg, .depbar { min-height: 52px; box-sizing: border-box; margin: 0; }
  .depbar { display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: var(--surface-sunken, #ece7de); font-weight: 700; font-size: 15px; color: var(--ink-muted); } .depbar.is-tmr { background: #fff3d6; color: #5a3d00; }
  .depseg__l { display: inline-flex; align-items: center; gap: 6px; } .depseg__n { font-style: normal; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #c98a12; color: #fff; font-size: 12px; font-weight: 900; line-height: 20px; text-align: center; font-family: var(--font-mono); } .depseg__n.is-stop { background: #c9382f; }
  .deptag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: #fff3d6; color: #5a3d00; border: 1px solid #e3c88a; font-size: 13.5px; font-weight: 700; white-space: nowrap; margin-right: auto; }
  .homesea .dy-dep__head { gap: 6px 10px; } .homesea .dy-dep__head .deptag { margin-right: auto; }
  .homesea .dy-dep__head .booklinks { flex: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; }
  /* 手機：第一行是標題＋「明天」標籤，訂票連結另起一行、排成一列不折行；航線分頁藏掉前面的島名，四個剛好一排，放不下就折行（不再橫向捲動被切掉） */
  @media (max-width: 820px) {
    .homesea .dy-dep__head .booklinks { flex: 1 1 100%; justify-content: flex-start; gap: 14px; font-size: 14px; } .homesea .dy-dep__head .booklinks .booklink { white-space: nowrap; }
    .depseg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 2px; overflow-x: auto; } .depseg button { min-width: 0; padding: 9px 4px; white-space: nowrap; font-size: 13.5px; } .depseg__l { gap: 4px; justify-content: center; } .depseg__here { display: none; }
  }
  .homesea .dy-dep__head { flex-wrap: wrap; row-gap: 6px; } .homesea .dy-dep__title { white-space: nowrap; flex: none; }
  .depbar.is-sp { visibility: hidden; } @media (max-width: 820px) { .depbar.is-sp { display: none; } }
  .shiplist__trip { font-size: 14px; margin: 2px 0; } .shiplist__trip b { color: var(--tide, #0c7078); font-size: 15.5px; }
  .dy-card.is-srci .dy-dep__foot { display: none; } .dy-card.is-srci .dy-dep__head { gap: 6px 10px; flex-wrap: wrap; } .dy-card.is-srci .dy-dep__head .srci { margin-left: auto; } .dy-card.is-srci .dy-dep__head .booklinks + .srci { margin-left: 0; }   /* 電腦：連結靠右、緊接在出處的左邊（兩個都自動留白的話連結會跑到中間） */
  /* 班次卡的出處（使用者 2026-10-07：點開的小視窗看不清楚；出處放到連結那一行的最右邊）。
     原本小視窗往上、往左開：按鈕在卡片左邊時整個跑出畫面，又被卡片的圓角裁掉，只剩一小角。
     改成以標題列為準、往下開、左右各留 16px，內容一定在卡片裡面。 */
  .dy-card.is-srci .dy-dep__head { position: relative; }
  .dy-card.is-srci .dy-dep__head .srci { position: static; flex: none; }
  .dy-card.is-srci .dy-dep__head .srci__pop { left: 16px; right: 16px; top: calc(100% - 4px); bottom: auto; width: auto; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
  .dy-card.is-srci .dy-dep__head .srci__pop::after { top: auto; bottom: 100%; height: 18px; }
  .dy-card.is-srci .dy-dep__head .srci__pop b { font-size: 12.5px; letter-spacing: .06em; }
  .dy-card.is-srci .dy-dep__head .srci__pop ul { list-style: none; padding-left: 0; }
  .dy-card.is-srci .dy-dep__head .srci__pop a { color: var(--tide); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
  /* 電腦：標題、三個連結、出處要排在同一行，「出處 1」的字放不下會自己掉到下一行，所以只留圖示 */
  @media (min-width: 821px) { .dy-card.is-srci .dy-dep__head .srci__b { padding: 2px 8px; } .dy-card.is-srci .dy-dep__head .srci__b span { display: none; } .dy-card.is-srci .dy-dep__head .booklinks { margin-left: auto; } .dy-card.is-srci .dy-dep__head .srci__pop { left: auto; width: min(420px, calc(100% - 32px)); box-sizing: border-box; } }
  @media (max-width: 820px) {
    /* 連結那一行留 90px 給出處：連結放不下就自己折行，出處固定在這一行最右邊 */
    .dy-card.is-srci .dy-dep__head .booklinks { flex: 1 1 calc(100% - 90px); min-width: 0; flex-wrap: wrap; gap: 4px 14px; }
    .dy-card.is-srci .dy-dep__head .booklinks + .srci { margin-left: auto; align-self: flex-start; }
  }
  .depnote { font-weight: 500 !important; line-height: 1.6; }
  .depalert { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  /* 黃框裡放兩段：看板現況＋要準備的證件，中間一條細線 */
  .depnote--box { display: grid; gap: 8px; } .depnote--box p { margin: 0; } .depnote--box p + p { padding-top: 8px; border-top: 1px solid #ecd9a8; }
  /* 左右還捲得動的按鈕列：那一邊貼一顆小箭頭（data-more 由 portal.js 的 moreMark 設） */
  /* 第二版（使用者：白色圓鈕很醜）：不要圓鈕，改成邊緣淡出＋一個細細的箭頭，顏色跟那一條的底色融在一起 */
  [data-more]::before, [data-more]::after { content: ''; position: sticky; z-index: 3; flex: none; align-self: stretch; display: none; width: 40px; min-height: 28px; pointer-events: none;
    --more-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16' fill='none' stroke='%2355636a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l6 6-6 6'/%3E%3C/svg%3E"); }
  [data-more*="r"]::after { display: inline-block; right: 0; margin-left: -40px;
    background: var(--more-arrow) no-repeat right 6px center, linear-gradient(to right, transparent, var(--more-bg, var(--surface, #f5f1ea)) 62%); }
  [data-more*="l"]::before { display: inline-block; left: 0; margin-right: -40px; transform: scaleX(-1);
    background: var(--more-arrow) no-repeat right 6px center, linear-gradient(to right, transparent, var(--more-bg, var(--surface, #f5f1ea)) 62%); }
  .mergeseg, .depseg { --more-bg: var(--surface-sunken, #ece7de); }
  .depnote b { margin-right: 8px; } .depnote a { margin-left: 8px; color: inherit; font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
  .depalert a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid #8d99a6; background: var(--surface, #fff); color: inherit; text-decoration: none; font-size: 14px; }
  .depalert b { font-size: 12.5px; padding: 1px 9px; border-radius: 999px; background: #eceff1; white-space: nowrap; } .depalert span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } .depalert em { font-style: normal; font-size: 12.5px; color: var(--tide, #0c7078); font-weight: 700; white-space: nowrap; }
  .depalert .is-stop a { border-left-color: #c9382f; background: #fdf0ee; } .depalert .is-stop b { background: #c9382f; color: #fff; } .depalert .is-go a { border-left-color: #1c7a3d; } .depalert .is-go b { background: #dff3e3; color: #1c6a34; }
  .depnote { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fff3d6; color: #5a3d00; font-weight: 700; font-size: 14px; } .homesea { min-width: 0; display: grid; gap: 8px; align-content: start; }
  .btv__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--line); margin-bottom: 14px; }
  .btv__tabs button { appearance: none; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink-muted); min-height: 48px; cursor: pointer; }
  .btv__tabs button.is-on { color: var(--tide, #0c7078); box-shadow: inset 0 -3px 0 var(--tide, #0c7078); }
  .btv__h { margin: 18px 0 8px; font-size: 18px; color: #d6f6ff; }
  .btv:not(.is-tab-tonight) > .btv__h, .btv:not(.is-tab-tonight) > .bt__zones, .btv:not(.is-tab-tonight) > .bt__map, .btv:not(.is-tab-tonight) > .bt__legend, .btv:not(.is-tab-tonight) > .bt__pick, .btv:not(.is-tab-tonight) > .bt__msg { display: none; }
  /* 這一塊是夜色底、字是淺色；裡面的白底卡片要把字色設回深色，不然淺字在白底上看不見 */
  .btv__card, .btv .dcard, .btv .dcard h3, .btv .dcard h4, .btv__card h4, .btv__lv span { color: #17262b; } .btv .dcard__sub, .btv .dcard p { color: #4d5b60; }
  .btv__tabs button { color: #9fc3d4; } .btv__tabs button.is-on { color: #5fe0ff; box-shadow: inset 0 -3px 0 #5fe0ff; } .btv__tabs { border-color: #24506f; }
  .btv .dlead { color: #d6f6ff; }
  .btf__low { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #fff3d6; color: #5a3d00; font-weight: 700; font-size: 14px; }
  /* 「為什麼」分頁：所有卡片用同一套三欄（窄一點兩欄、手機一欄），同一排等高 */
  .btv__pane .dgrid, .btv__pane .btfind { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; align-items: stretch; }
  .btv__pane .dgrid > .dcard, .btv__pane .btfind > .dcard { margin: 0; height: 100%; box-sizing: border-box; }
  @media (max-width: 1000px) { .btv__pane .dgrid, .btv__pane .btfind { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .btv__pane .dgrid, .btv__pane .btfind { grid-template-columns: minmax(0, 1fr); } }
  /* 「今晚」上半：左右兩欄等高，右邊兩張卡把高度分完 */
  .btv__top { align-items: stretch !important; } .btv__verdict { align-content: space-between; } .btv__side { grid-template-rows: auto 1fr; } .btv__side .btv__card:last-child { align-content: space-between; }
  .btv__pane { display: grid; gap: 14px; min-width: 0; }
  .btv__top { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .btv__verdict { border-radius: 18px; padding: 14px 16px; background: #dff3fb; border: 1px solid #a9dcf2; color: #0b2c3b; display: grid; gap: 8px; }
  .btv__verdict.is-go { background: #dff3e3; border-color: #a5d6b1; } .btv__verdict.is-off, .btv__verdict.is-wait { background: #ece7de; border-color: #d8d1c2; }
  .btv__when { margin: 0; font-size: 13px; font-weight: 700; opacity: .75; }
  .btv__num { display: flex; gap: 14px; align-items: center; } .btv__num > b { font-size: 56px; font-weight: 900; line-height: 1; font-family: var(--font-mono); color: #0b6d94; } .btv__verdict.is-go .btv__num > b { color: #1c6a34; }
  .btv__num span { font-size: 13.5px; line-height: 1.5; } .btv__num em { display: block; font-style: normal; font-size: 20px; font-weight: 900; }
  .btv__why { margin: 0; font-size: 13px; } .btv__why button { appearance: none; border: 0; background: none; color: #0b6d94; font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; }
  .btv__isl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; } .btv__isl div { background: rgba(255,255,255,.7); border-radius: 10px; padding: 5px 2px; } .btv__isl small { display: block; font-size: 12px; font-weight: 700; } .btv__isl b { font-family: var(--font-mono); font-size: 17px; }
  .btv__fine { margin: 0; font-size: 12px; opacity: .8; }
  .btv__side { display: grid; gap: 12px; min-width: 0; } .btv__card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); padding: 12px 14px; display: grid; gap: 8px; } .btv__card h4 { margin: 0; font-size: 16px; }
  .btv__card dl { margin: 0; display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 6px 10px; font-size: 14px; } .btv__card dt { color: var(--ink-muted); font-weight: 700; font-size: 13px; } .btv__card dd { margin: 0; }
  .btv__lv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } .btv__lv span { border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 2px; text-align: center; font-size: 12px; font-weight: 700; display: grid; justify-items: center; gap: 2px; opacity: .6; } .btv__lv span.is-on { opacity: 1; border-color: var(--tide, #0c7078); } .btv__lv b { font-family: var(--font-mono); font-size: 16px; }
  .btyear { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; text-align: center; } .btyear > div { display: grid; gap: 3px; justify-items: center; } .btyear b { font-family: var(--font-mono); font-size: 14px; }
  .btyear i { display: flex; align-items: flex-end; width: 100%; max-width: 46px; height: 110px; background: var(--surface-sunken, #ece7de); border-radius: 8px; overflow: hidden; } .btyear u { display: block; width: 100%; background: #39b6e6; border-radius: 8px 8px 0 0; }
  .btyear span { font-weight: 700; font-size: 13px; } .btyear small { font-size: 10.5px; color: var(--ink-muted); } .btyear .is-now span { background: var(--tide, #0c7078); color: #fff; border-radius: 999px; padding: 0 8px; }
  @media (max-width: 760px) { .btv__top { grid-template-columns: minmax(0, 1fr); } .btv__num > b { font-size: 46px; } .btyear small { display: none; } }
  .bus__when { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .bus__sug { border: 1px solid #e3c88a; background: #fff9ea; color: #2b2619; border-radius: 16px; padding: 12px 14px; }
  .bus__sugh { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 16px; } .bus__sugh span { font-size: 12.5px; color: #6b5a33; }
  .bus__sug ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
  .bus__sug li button { appearance: none; width: 100%; min-height: 72px; border: 1px solid #ead9ae; border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 6px 10px 6px 6px;
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 10px; align-items: center; }
  .bus__sug li img, .bus__sugph { grid-row: 1 / span 3; width: 64px; height: 60px; border-radius: 8px; object-fit: cover; } .bus__sugph { display: grid; place-items: center; background: #ead9ae; font-weight: 800; font-size: 20px; }
  .bus__sug li b { font-size: 15.5px; } .bus__sug li span { font-size: 12px; color: #6b5a33; } .bus__sug li em { font-style: normal; font-size: 12.5px; color: #0c5a61; font-weight: 700; }
  .bus__spot { display: grid; gap: 10px; } .bus__spot img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; } .bus__spot h3 { margin: 0; } .bus__spot p { margin: 0; line-height: 1.75; }
  .bus__spothow { background: #e3f3f1; border-radius: 10px; padding: 8px 12px; font-size: 14.5px; }
  .bus__hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; border: 1px solid var(--tide, #0c7078); border-radius: 16px; padding: 10px 16px 10px 8px;
    background: linear-gradient(90deg, rgba(12,112,120,.1), rgba(12,112,120,0) 70%), var(--surface, #fff); }
  .bus__hero img { width: 96px; height: 96px; object-fit: contain; } .bus__herot p { margin: 0; font-size: 14px; } .bus__herot p b { font-family: var(--font-mono); font-size: 17px; }
  .bus__hero .gbcount { font-size: 30px; } .bus__heron { font-size: 12.5px !important; color: var(--ink-muted); }
  .bus__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-muted); flex: 1 1 320px; } .bus__pick .gbwk__sel { flex: 1 1 240px; max-width: 420px; }
  .busl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .busd button { appearance: none; width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 6px 12px;
    display: flex; align-items: baseline; gap: 6px 12px; }
  .busd button > b { flex: none; font-family: var(--font-mono); font-size: 17px; white-space: nowrap; }
  .busd__to { flex: 1 1 auto; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .busd__arr { flex: none; font-family: var(--font-mono); font-size: 13.5px; color: var(--tide, #0c7078); font-weight: 700; white-space: nowrap; }
  .busd em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-sunken, #ece7de); white-space: nowrap; } .busd em.is-live { background: #17a673; color: #fff; }
  .bus__hero { cursor: pointer; } .bus__hero.is-open { box-shadow: inset 5px 0 0 var(--tide, #0c7078); }
  .busd.is-open button { border-color: var(--tide, #0c7078); box-shadow: inset 4px 0 0 var(--tide, #0c7078); } .busd.is-past { opacity: .6; } .busd.is-onway button { background: #fff8e6; color: #23302f; }
  .bus__detail { display: grid; gap: 8px; align-content: start; min-width: 0; } .busmap { height: 300px; }
  .bus__dh { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15px; } .bus__dh span { font-size: 12.5px; color: var(--ink-muted); }
  .bus__seq { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; font-size: 13.5px; }
  .bus__seq li { padding: 4px 6px; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; align-items: baseline; } .bus__seq li b { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); font-weight: 600; }
  .bus__seq li.is-dest { background: #e3f3f1; font-weight: 700; border-radius: 6px; } .busd .bus__detail { margin: 8px 0 4px; } .busd .busmap { height: 240px; }
  .bus__seq li.is-me { background: #fde1dc; color: #5a1408; font-weight: 700; border-radius: 6px; } .bus__seq li.is-before { color: var(--ink-muted); } .bus__seq em { font-style: normal; font-size: 11.5px; margin-left: 4px; color: var(--tide, #0c7078); }
  @media (min-width: 900px) { .gb .gbl__top:has(.bus__detail) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .busmap { height: 340px; flex: none !important; } }
  /* 補給船 */
  .supl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
  .sup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; border: 1px solid var(--tide, #0c7078); border-radius: 14px; padding: 12px 14px; background: var(--surface, #fff); }
  .sup.is-done { border-color: var(--line); } .sup__k { font-size: 13px; font-weight: 800; color: #fff; padding: 5px 9px; border-radius: 10px; background: #7a5a2e; white-space: nowrap; } .sup__k.is-pax { background: #2a7fb8; }
  .sup__m { display: grid; gap: 4px; min-width: 0; } .sup__m p { margin: 0; } .sup__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 16px; } .sup__t span { font-size: 12.5px; color: var(--ink-muted); }
  .sup__s { font-size: 13.5px; color: var(--ink-muted); overflow-wrap: anywhere; } .sup__s strong { color: var(--ink); font-size: 15px; }
  .supu { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface, #fff); }
  .supu__h { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14.5px; } .supu__h span { font-size: 12.5px; color: var(--ink-muted); }
  .supu__bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px; align-items: end; }
  .supu__b { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; } .supu__b i { width: 70%; border-radius: 6px 6px 0 0; background: #c9bfae; } .supu__b.is-top i { background: #7a5a2e; }
  .supu__b b { font-family: var(--font-mono); } .supu__b span { color: var(--ink-muted); }
  /* 郵局、提款機、加油站 */
  .svcl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
  .svc { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface, #fff); display: grid; gap: 4px; } .svc p { margin: 0; }
  .svc__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; } .svc__h em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; }
  .svc__h em.is-open { background: #17a673; color: #fff; } .svc__h em.is-closed { background: var(--surface-sunken, #ece7de); color: var(--ink-muted); } .svc__h em.is-fuel { background: #fdebb3; color: #5a4300; }
  .svc__r { font-size: 14.5px; font-family: var(--font-mono); } .svc__r span { display: inline-block; width: 3em; font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
  .svc__n { font-size: 13px; color: #8a5a00; line-height: 1.6; } .svc__a { font-size: 13px; color: var(--ink-muted); } .svc__a a, .atm a { color: var(--tide, #0c7078); font-weight: 700; }
  .atml { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
  .atm { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--surface, #fff); } .atm__h { margin: 0 0 4px; display: flex; align-items: baseline; gap: 8px; font-size: 15.5px; } .atm__h span { font-size: 12.5px; color: var(--ink-muted); }
  .atm ul { list-style: none; margin: 0; padding: 0; } .atm li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 14px; }
  .atm li span { grid-column: 1; font-size: 12.5px; color: var(--ink-muted); } .atm li a { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13px; }
  /* 看診時間 */
  .cln { display: grid; gap: 12px; }
  .cln__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .cln__day { appearance: none; min-height: 62px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: inherit; font: inherit; cursor: pointer; display: grid; gap: 0; justify-items: center; padding: 6px 2px; }
  .cln__day b { font-size: 13.5px; } .cln__day span { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); } .cln__day em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--tide, #0c7078); }
  .cln__day.is-off em { color: var(--ink-muted); font-weight: 500; } .cln__day.is-today { border-color: var(--tide, #0c7078); }
  .cln__day.is-on { background: var(--tide, #0c7078); color: #fff; border-color: transparent; } .cln__day.is-on span, .cln__day.is-on em { color: #fff; }
  .cln__slots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
  .cln__slot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface, #fff); }
  .cln__slot h5 { margin: 0; padding: 8px 14px; font-size: 14.5px; color: #fff; display: flex; align-items: baseline; gap: 8px; background: #d18a12; } .cln__slot--pm h5 { background: #2a7fb8; } .cln__slot--night h5 { background: #4c4a8f; }
  .cln__slot h5 span { font-size: 12px; font-weight: 500; opacity: .9; }
  .cln__docs { list-style: none; margin: 0; padding: 4px 14px 8px; } .cln__docs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; } .cln__docs li:last-child { border-bottom: 0; }
  .cln__docs b { font-size: 15.5px; } .cln__docs span { color: var(--ink-muted); } .cln__docs em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--surface-sunken, #ece7de); }
  .cln__duty { margin: 0; font-size: 14px; } .cln__duty b { margin-right: 8px; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: #f6d9d4; color: #8a1f12; }
  .cln__notes { margin: 4px 0; padding-left: 1.2em; } .cln__notes li { margin: 4px 0; overflow-wrap: anywhere; } .cln__warn { color: #a3470b; font-weight: 700; }
  .cln__addr { margin: 0; font-size: 15px; } .cln__addr a { color: var(--tide, #0c7078); font-weight: 700; }
  .cln__links { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cln__link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 8px 16px; border-radius: 14px; border: 1px solid var(--tide, #0c7078); color: var(--tide, #0c7078); font-weight: 700; font-size: 15px; text-decoration: none; background: var(--surface, #fff); }
  .cln__link:hover { background: rgba(12,112,120,.08); }
  .cln__wk th, .cln__wk td { text-align: center; } .cln__wk td { font-family: inherit; } .cln__wk td.is-open { font-weight: 700; color: var(--tide, #0c7078); } .cln__wk .is-today { background: rgba(12,112,120,.08); }
  @media (max-width: 560px) { .cln__day { min-height: 58px; } .cln__day b { font-size: 12px; } }
  /* 停水停電 */
  .outl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
  .outc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface, #fff); }
  .outc__k { align-self: start; font-size: 14px; font-weight: 800; color: #fff; padding: 6px 10px; border-radius: 10px; background: #2a7fb8; white-space: nowrap; } .outc--power .outc__k { background: #c77a0a; }
  .outc--water { border-left: 5px solid #2a7fb8; } .outc--power { border-left: 5px solid #c77a0a; }
  .outc.is-old { opacity: .78; } .outc.is-cancel .outc__when b, .outc.is-cancel .outc__when strong { text-decoration: line-through; }
  .outc__m { display: grid; gap: 5px; min-width: 0; } .outc__m p { margin: 0; }
  .outc__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 16px; } .outc__when strong { font-family: var(--font-mono); font-size: 16.5px; }
  .outc__when span { font-size: 13px; color: var(--ink-muted); } .outc__when em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fff0cf; color: #7a5200; }
  .outc__when em.is-cancel { background: #f6d9d4; color: #8a1f12; } .outc__when em.is-soft { background: var(--surface-sunken, #ece7de); color: var(--ink-muted); }
  .outc__where { display: flex; flex-wrap: wrap; gap: 5px; } .outc__v { font-size: 13px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--surface-sunken, #ece7de); }
  .outc__a { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; } .outc__s { font-size: 12px; color: var(--ink-muted); } .outc__s a { color: var(--tide, #0c7078); font-weight: 700; }
  /* 便民公告 */
  .ntcl { list-style: none; margin: 0; padding: 0; display: grid; }
  .ntc { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: start; }
  .ntc__d { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); padding-top: 2px; }
  .ntc__m { min-width: 0; display: grid; gap: 4px; } .ntc__t { font-size: 15.5px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.55; overflow-wrap: anywhere; } .ntc__t:hover { text-decoration: underline; text-underline-offset: 3px; }
  .ntc__s { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--ink-muted); }
  .ntc__c { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-sunken, #ece7de); color: var(--ink); }
  .ntc__c--traffic { background: #f6dfc4; } .ntc__c--health { background: #d9f0e6; } .ntc__c--subsidy { background: #e3e0f7; } .ntc__c--event { background: #fdebb3; } .ntc__c--jobs { background: #d8e8f7; }
  .ntc__s em { font-style: normal; font-weight: 700; color: #0c5a61; } .ntc__s em.is-soon { color: #b4480a; } .ntc__s em.is-past { color: var(--ink-muted); font-weight: 500; }
  /* 新住戶指南 */
  .ncg__sec h5 { margin: 6px 0 8px; font-size: 15px; }
  .ncg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
  .ncg__it { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface, #fff); display: grid; gap: 6px; }
  .ncg__it.is-conflict { border-color: #d9a441; } .ncg__it h6 { margin: 0; font-size: 15.5px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
  .ncg__tag { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fff0cf; color: #7a5200; white-space: nowrap; } .is-dated .ncg__tag { background: var(--surface-sunken, #ece7de); color: var(--ink-muted); }
  .ncg__it p { margin: 0; font-size: 14.5px; line-height: 1.75; overflow-wrap: anywhere; }
  .ncg__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--ink-muted); }
  .ncg__gaps { margin: 4px 0; padding-left: 1.2em; } .ncg__gaps li { margin: 3px 0; }
  .gbl { display: grid; gap: 10px; }
  /* 垃圾車的快速回報 */
  .gbrep__open { justify-self: start; appearance: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong, #bdb6a8); background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .gbrep { border: 1px solid var(--line-strong, #bdb6a8); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; background: var(--surface, #fff); }
  .gbrep__h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15.5px; } .gbrep__h span { font-size: 12.5px; color: var(--ink-muted); }
  .gbrep__opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .gbrep__o { appearance: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong, #bdb6a8); background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
  .gbrep__o.is-on { background: var(--tide, #0c7078); border-color: var(--tide, #0c7078); color: #fff; font-weight: 700; }
  .gbrep__f { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
  .gbrep__f input, .gbrep__f textarea { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong, #bdb6a8); background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; box-sizing: border-box; width: 100%; }
  .gbrep__st { margin: 0; font-size: 14px; font-weight: 700; color: #a3470b; } .gbrep__st a { color: var(--tide, #0c7078); }
  .gbrep__act { display: flex; gap: 8px; }
  .gbrep__send { appearance: none; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--tide, #0c7078); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
  .gbrep__x { appearance: none; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink-muted); font: inherit; font-size: 14px; cursor: pointer; }
  .gbwatch { margin: 8px 0; padding: 10px 12px; border: 1px dashed var(--line-strong, #bdb6a8); border-radius: 12px; } .gbwatch table { max-width: 520px; margin: 6px 0; }
  /* 鄉按鈕上的定位狀況 */
  .gbtag { margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
  .gbtag--off { background: rgba(120,120,120,.18); color: inherit; opacity: .85; } .gbtag--on { background: #17a673; color: #fff; }
  /* 住哪個村、一週怎麼收 */
  .gbwk { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
  .gbwk__bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
  .gbwk__sel { flex: 0 1 300px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong, #bdb6a8); background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 15px; }
  .gbwk__body { display: grid; gap: 10px; }
  .gbwk__t { width: 100%; border-collapse: collapse; font-size: 14.5px; } .gbwk__t caption { text-align: left; font-weight: 700; font-size: 15.5px; padding-bottom: 6px; }
  .gbwk__t th, .gbwk__t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .gbwk__t thead th { font-size: 12.5px; color: var(--ink-muted); font-weight: 700; } .gbwk__t tbody th { white-space: nowrap; font-weight: 700; width: 6.5em; }
  .gbwk__t tbody th small { margin-left: 6px; font-size: 11px; background: var(--tide, #0c7078); color: #fff; padding: 1px 6px; border-radius: 999px; }
  .gbwk__t td { font-family: var(--font-mono); } .gbwk__t td.is-none { font-family: inherit; color: var(--ink-muted); }
  .gbwk__bar .gb__q { flex: 1 1 220px; max-width: 340px; } .gbwk__sel { flex: 0 1 240px; }
  .gbwk__t caption span { margin-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
  .gbwk__t td .gbsp { display: inline-flex; align-items: center; gap: 6px; margin: 2px 8px 2px 0; padding: 2px 10px 2px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface, #fff); font-family: var(--font-mono); font-size: 14px; white-space: nowrap; }
  .gbsp i { white-space: nowrap; font-style: normal; font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #fff; }
  .gbsp--am i { background: #d18a12; } .gbsp--pm i { background: #2a7fb8; } .gbsp--ev i { background: #4c4a8f; }
  .gbwk__t tbody th button { appearance: none; border: 0; background: none; padding: 4px 0; min-height: 36px; font: inherit; font-weight: 700; color: var(--tide, #0c7078); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
  .gbwk__t tr.is-sel { box-shadow: inset 4px 0 0 var(--tide, #0c7078); } .gbwk__t tr.is-sel th button { color: var(--ink); text-decoration: none; }
  .gbday { border: 1px solid var(--tide, #0c7078); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
  .gbday__h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 16.5px; } .gbday__h span { font-size: 12.5px; color: var(--ink-muted); }
  .gbday__sec { display: grid; gap: 6px; } .gbday__sec + .gbday__sec { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
  .gbday__sec h5 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; } .gbday__sec h5 img { width: 40px; height: 40px; object-fit: contain; margin: -6px 0; }
  .gbday__sec h5 span { font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
  .gbday__g { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .gbday__g.is-live { border-color: var(--tide, #0c7078); } .gbday__g.is-done { opacity: .75; }
  .gbday__p { appearance: none; width: 100%; min-height: 46px; border: 0; background: var(--surface, #fff); color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 8px 12px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
  .gbday__p i { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; color: #fff; } .gbday__p i.gbsp--am { background: #d18a12; } .gbday__p i.gbsp--pm { background: #2a7fb8; } .gbday__p i.gbsp--ev { background: #4c4a8f; }
  .gbday__p b { font-family: var(--font-mono); font-size: 15.5px; } .gbday__p span { color: var(--ink-muted); font-size: 13px; }
  .gbday__p em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-sunken, #ece7de); }
  .gbday__g.is-live .gbday__p em { background: #0c7078; color: #fff; }
  .gbday__p u { margin-left: auto; text-decoration: none; font-size: 12.5px; font-weight: 700; color: var(--tide, #0c7078); white-space: nowrap; }
  .gbday__g ol { list-style: none; margin: 0; padding: 4px 8px 8px; border-top: 1px solid var(--line); display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
  .gbday__g li > button, .gbday__g li > div { appearance: none; width: 100%; min-height: 38px; border: 0; border-bottom: 1px dashed var(--line); background: none; color: inherit; font: inherit; text-align: left;
    display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 6px; font-size: 14.5px; box-sizing: border-box; }
  .gbday__g li > button { cursor: pointer; } .gbday__g li > button:hover { background: rgba(12,112,120,.07); } .gbday__g li b { font-family: var(--font-mono); font-size: 15px; }
  .gbday__g li small { margin-left: 8px; font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; }
  .gbday__g li em { font-style: normal; font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--ink-muted); }
  .gbday__g li.is-past { color: var(--ink-muted); } .gbday__g li.is-past b { text-decoration: line-through; }
  .gbday__g li.is-live > button, .gbday__g li.is-live > div { background: rgba(12,112,120,.1); } .gbday__g li.is-live em { color: var(--tide, #0c7078); }
  .gbwkm { display: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .gbwkm__d { appearance: none; min-height: 74px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: inherit; font: inherit; cursor: pointer; padding: 6px 0 4px; display: grid; gap: 4px; justify-items: center; align-content: start; }
  .gbwkm__d b { font-size: 15px; } .gbwkm__d em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--tide, #0c7078); min-height: 14px; } .gbwkm__d.is-off { opacity: .55; } .gbwkm__d.is-off em { color: var(--ink-muted); }
  .gbwkm__d.is-today { border-color: var(--tide, #0c7078); } .gbwkm__d.is-on { background: #e3f3f1; border-color: var(--tide, #0c7078); box-shadow: inset 0 -4px 0 var(--tide, #0c7078); }
  .gbwkm__r { display: flex; gap: 3px; } .gbwkm__r i, .gbwkm__lg i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #c9c2b4; box-sizing: border-box; }
  .gbwkm i.is-am, .gbwkm__lg i.is-am { background: #d18a12; border-color: #d18a12; } .gbwkm i.is-pm, .gbwkm__lg i.is-pm { background: #2a7fb8; border-color: #2a7fb8; } .gbwkm i.is-ev, .gbwkm__lg i.is-ev { background: #4c4a8f; border-color: #4c4a8f; }
  .gbwkm__lg { display: none; align-items: center; gap: 4px; margin: 0; font-size: 11.5px; color: var(--ink-muted); } .gbwkm__lg i { margin-left: 8px; } .gbwkm__lg i:first-child { margin-left: 0; }
  .gbwk__t tr.is-today { background: rgba(12,112,120,.08); }
  .gbwk__stops summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--tide, #0c7078); font-weight: 700; font-size: 14px; }
  .gbwk__stops ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
  .gbwk__stops li { display: grid; grid-template-columns: 3.3em minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
  .gbwk__stops b { font-family: var(--font-mono); } .gbwk__stops em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: #f4e3a3; color: #5a4300; }
  .gbwk__stops em.is-rc { background: #d9f0e6; color: #0b5c3d; }
  .gbwk__dots { grid-column: 2 / -1; display: flex; gap: 3px; } .gbwk__dots i { font-style: normal; font-size: 11px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-muted); opacity: .45; border: 1px solid var(--line); }
  .gbwk__dots i.is-on { opacity: 1; background: var(--tide, #0c7078); color: #fff; border-color: transparent; font-weight: 700; }
  @media (max-width: 560px) { .gbwk__sel { flex: 1 1 100%; } .gbwk__t th, .gbwk__t td { padding: 7px 6px; } .gbwk__t { font-size: 13.5px; } .gbwk__stops ol { grid-template-columns: 1fr; }
    /* 手機：一週總覽換成一排七顆按鈕（.gbwkm），表格不顯示 */
    .gbwk > .gbwk__body > .gbwk__t { display: none; } .gbwkm { display: grid !important; } .gbwkm__lg { display: flex !important; }
    /* 補給船：手機上「最近到過的」不用一張一張大卡 */
    .supl { gap: 0; } .sup.is-done { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 2px; background: none; } .sup.is-done .sup__t { font-size: 14.5px; } .sup.is-done .sup__s strong { font-size: 14px; }
    .bus__hero img { width: 76px; height: 76px; } .bus__hero .gbcount { font-size: 24px; }
    /* 公車的三個問題在手機上排緊一點：上車、要去哪並排，時間一行 */
    .bus__ask { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 6px 6px; } .bus__ask label:nth-of-type(3) { grid-column: 1 / -1; } .bus__swap { width: 40px; height: 40px; } .bus__ask .gbwk__sel { min-height: 42px; padding: 0 8px; font-size: 14.5px; }
    .bus__loc .gbme__btn { min-height: 38px; } }
  /* 離我最近的一趟（定位） */
  .gbme { border: 1px solid #b9d3f7; background: #f2f7ff; color: #14263f; border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
  .gbme--ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; } .gbme--ask > span { font-size: 13px; line-height: 1.6; flex: 1 1 240px; color: #3d5270; }
  .gbme__btn { appearance: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #2f6fde; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
  .gbme i { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2f7cf6; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #2f7cf6; margin-right: 4px; } .gbme__btn i { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
  .gbme__h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15.5px; } .gbme__h b { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
  .gbme__x { appearance: none; min-height: 36px; padding: 0 10px; border: 0; background: none; color: #2f6fde; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .gbme__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .gbmec { background: #fff; border: 1px solid #d5e3f8; border-radius: 12px; padding: 10px 14px 10px 8px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1px 8px; align-items: center; }
  .gbmec.is-live { border-color: #0c7078; }
  .gbmec__m { grid-row: 1 / span 4; align-self: start; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; width: 72px; min-height: 72px; display: grid; justify-items: center; font: inherit; color: #2f6fde; }
  .gbmec__m img { width: 72px; height: 62px; object-fit: contain; display: block; } .gbmec__m small { font-size: 11.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
  .gbmec__m:hover img { transform: translateY(-2px); } .gbmec > :not(.gbmec__m) { grid-column: 2; }
  .gbmec__msg { font-size: 13px; font-weight: 700; color: #0c5a61; background: #e3f3f1; border-radius: 8px; padding: 4px 8px; justify-self: start; }
  .gbpop .leaflet-popup-content { margin: 8px 12px; font-size: 13px; line-height: 1.6; } .gbpop .leaflet-popup-content-wrapper { border-radius: 10px; }
  .gbcar { cursor: pointer; } .gbcar__m { pointer-events: auto !important; }
  .gbmec__k { font-size: 13px; font-weight: 700; color: #3d5270; }
  .gbcount { font-size: 26px; line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; color: #14263f; } .gbcount small { font-size: 13px; font-weight: 700; margin-right: 6px; color: #3d5270; }
  .gbcount.is-soon, .gbcount.is-due { color: #b4480a; }
  .gbmec__w { font-size: 14.5px; } .gbmec__d { font-size: 12px; color: #5b6f8c; }
  .gbmec .gbmec__all { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 8px 6px 0; border-top: 1px dashed #c9dbf5; display: grid; gap: 2px; }
  .gbmec__all li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 4px 6px; border-radius: 8px; font-size: 14px; }
  .gbmec__all .gbmec__allh { display: block; padding: 0 6px 2px; font-size: 12.5px; font-weight: 700; color: #3d5270; }
  .gbmec__all li:not(.gbmec__allh) { display: block; padding: 0; }
  .gbmec__all li button { appearance: none; width: 100%; min-height: 36px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px;
    display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px; }
  .gbmec__all li button:hover, .gbwk__go:hover, button.gbmec__w:hover { text-decoration: underline; text-underline-offset: 3px; }
  button.gbmec__w, .gbwk__go { appearance: none; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  button.gbmec__w { font-size: 14.5px; min-height: 28px; } .gbwk__go { font-size: 14px; }
  .leaflet-tooltip.gbnext--focus { background: #fff; border-color: #e0452b; color: #5a1408; } .leaflet-tooltip.gbnext--focus::before { border-top-color: #e0452b; }
  .gbmec__all b { font-family: var(--font-mono); font-weight: 700; } .gbmec__all em { font-style: normal; font-size: 12px; color: #5b6f8c; white-space: nowrap; }
  .gbmec__all .is-next { background: #e6f0ff; font-weight: 700; } .gbmec__all .is-past { color: #8794a8; } .gbmec__all .is-past b { text-decoration: line-through; }
  .leaflet-tooltip.gbnext--me { background: #fff; border-color: #0c7078; color: #123; } .leaflet-tooltip.gbnext--me::before { border-top-color: #0c7078; }
  .gbl__h { margin: 0; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
  .gbl__h i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #a9b1b3; } .gbl__h i.is-on { background: #17a673; box-shadow: 0 0 0 4px rgba(23,166,115,.18); }
  .gbl__top { display: grid; gap: 10px; align-items: start; }
  .gbl__side { display: grid; gap: 8px; align-content: start; min-width: 0; }
  .gbl__empty { margin: 0; padding: 14px; border: 1px dashed var(--line-strong, #bdb6a8); border-radius: 12px; font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
  .gbl__top.is-nomap { grid-template-columns: 1fr; }
  .gbl__open { display: block; margin-top: 10px; appearance: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--tide, #0c7078); background: none; color: var(--tide, #0c7078); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .gbl__why { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong, #bdb6a8); } .gbl__why b { color: var(--ink); }
  .gbmapw { position: relative; min-width: 0; }
  .gbmap { height: 300px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
  .gbmap__fs { position: absolute; left: 54px; top: 10px; z-index: 500; appearance: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.18);
    background: #fff; color: #17323a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
  .gbmap__fs::before { content: ''; position: absolute; inset: -4px; }
  .gbmapw.is-full { position: fixed; inset: 0; z-index: 3000; background: var(--surface, #fff); display: flex !important; }
  .gbmapw.is-full .gbmap { flex: 1; height: 100% !important; min-height: 0; border-radius: 0; border: 0; }
  .gbmapw.is-full .gbmap__fs { left: auto; right: 12px; top: max(12px, env(safe-area-inset-top)); min-height: 44px; font-size: 15px; background: #17323a; color: #fff; }
  .gbmapw.is-full .gbmap__tg { right: 12px; top: calc(max(12px, env(safe-area-inset-top)) + 54px); }
  .busmapw { position: relative; min-width: 0; } .busmapw .busmap { width: 100%; }
  .gbcar.is-ghost .gbcar__m { opacity: 1; }
  .gbcar.is-ghost .gbcar__b { background: #fff; color: #4a565a; border: 1.5px dashed #8a959a; box-shadow: none; font-weight: 600; opacity: .9; } .gbcar.is-ghost.is-mine .gbcar__b { color: #0c5a61; border-color: #0c7078; }
  .gbmap__tg { position: absolute; right: 10px; top: 10px; z-index: 500; appearance: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.18);
    background: #fff; color: #17323a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
  .gbmap__tg[aria-pressed="true"] { background: #0c7078; color: #fff; border-color: #0c7078; }
  .gbmap__tg::before { content: ''; position: absolute; inset: -4px; }
  .gbcar { overflow: visible; }
  .gbmap { --m: 32px; }
  .gbcar__m { position: absolute; left: calc(var(--m) / -2); top: calc(var(--m) * -.56); width: var(--m); height: var(--m); max-width: none; pointer-events: none; }
  /* 車子要從地圖上跳出來（使用者 2026-10-06：顏色太融入背景；先試白色圓底，使用者說太大 → 只在車的輪廓外描一圈白邊加陰影）。停放的不褪色，靠標籤的灰色區分 */
  .gbcar__m { filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
  .gbcar__b { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: #6f7a7d; color: #fff;
    font-size: 12px; font-weight: 700; line-height: 1.4; box-shadow: 0 1px 4px rgba(0,0,0,.35); border: 2px solid #fff; }
  .gbcar.has-m .gbcar__b { top: calc(var(--m) * .36 + 5px); font-size: 11px; padding: 1px 7px; }
  .gbcar.is-live .gbcar__b { background: #0c7078; } .gbcar.is-pick .gbcar__b { outline: 3px solid #f2b21b; outline-offset: 1px; }
  .leaflet-tooltip.gbnext { background: #fff7e6; border: 1px solid #e08a00; color: #5a3a00; font-weight: 700; font-size: 12px; padding: 2px 7px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
  .leaflet-tooltip.gbnext::before { border-top-color: #e08a00; }
  .gbl__cars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .gblc { appearance: none; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); color: inherit; font: inherit; text-align: left; cursor: pointer;
    padding: 10px 14px 10px 8px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 8px; align-items: center; }
  .gblc.is-live { border-color: var(--tide, #0c7078); background: linear-gradient(90deg, rgba(12,112,120,.09), rgba(12,112,120,0) 60%), var(--surface, #fff); }
  .gblc.is-pick { outline: 3px solid #f2b21b; outline-offset: 1px; }
  .gblc__m { grid-row: 1 / span 3; width: 64px; height: 64px; object-fit: contain; } .gblc__m.is-idle { filter: saturate(.6); }
  .gblc__m--none { border-radius: 12px; background: var(--surface-sunken, #ece7de); width: 44px; height: 44px; justify-self: center; }
  .gblc__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; } .gblc__t b { font-size: 16px; }
  .gblc__s { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); } .gblc.is-live .gblc__s { color: var(--tide, #0c7078); }
  .gblc__n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; }
  .gblc__n small { font-size: 12px; font-weight: 700; color: #8a5a00; background: #fff4df; padding: 0 7px; border-radius: 999px; }
  .gblc__n strong { font-size: 17px; } .gblc__n em { font-style: normal; font-weight: 700; color: var(--tide, #0c7078); }
  .gblc__w { font-size: 14.5px; } .gblc__r { font-size: 12px; color: var(--ink-muted); }
  .gbrun { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--surface, #fff); }
  .gbrun__h { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14.5px; } .gbrun__h span { font-size: 12.5px; color: var(--ink-muted); }
  .gbrun__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 232px; overflow: auto; }
  .gbrun__l li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 0 10px; align-items: baseline; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 14.5px; } .gbrun__l li:first-child { border-top: 0; }
  .gbrun__l b { font-family: var(--font-mono); font-weight: 700; grid-row: 1 / span 2; align-self: center; font-size: 15.5px; } .gbrun__l em { font-style: normal; font-size: 12.5px; color: var(--ink-muted); }
  .gb__more { font-size: 12.5px; color: var(--ink-muted); line-height: 1.7; } .gb__more summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; color: var(--tide, #0c7078); font-weight: 700; }
  .gb__more p { margin: 4px 0; }
  /* 電腦版：地圖跟右邊那一欄等高（使用者 2026-10-06：左右不對稱） */
  @media (min-width: 900px) { .gbl__top:not(.is-nomap) { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: stretch; }
    .gbl__top:not(.is-nomap) .gbmapw { display: flex; } .gbl__top:not(.is-nomap) .gbmap { flex: 1; height: auto; min-height: 340px; }
    .gb__routes { grid-template-columns: 1fr 1fr; align-items: start; } .gbr.is-open { grid-column: 1 / -1; } }
  @media (max-width: 560px) { .gbr__h { grid-template-columns: 1fr auto; } .gbr__k { grid-column: 1 / -1; } }
  /* 大類的彩色徽章：沒選中的手機底部選單稍微淡一點，選中的那個完整顯色 */
  .navbadge { flex: none; display: block; }
  .botnav__b .navbadge { opacity: 1; }
  /* 行內排：用 inline-flex 會以圖的底邊當基線，班號比同一列其他欄高出幾個像素 */
  .depair { white-space: nowrap; }
  /* 票價：電腦在最右一欄，手機那一欄不顯示、改寫在航線下面 */
  .dy-dep__faretag { display: block; font-family: var(--font-sans); font-size: 11.5px; line-height: 15px; font-weight: 700; color: var(--ink-muted); }
  /* 全額票價與其他票種的小視窗 */
  .farecell { position: relative; display: inline-block; }
  .farecell__b { appearance: none; border: 0; background: none; padding: 4px 0 4px 6px; margin: -4px 0; font: inherit; color: inherit; cursor: pointer; text-align: right; border-radius: 8px; white-space: nowrap; }
  .farecell__b b { font-weight: 600; } .farecell__b i { display: block; font-style: normal; font-family: var(--font-sans); font-size: 11.5px; line-height: 15px; font-weight: 700; color: var(--ink-muted); }
  .farecell__more { margin-left: 4px; font-size: 11px; color: var(--tide); }
  .farecell__b:hover b, .farecell__b[aria-expanded="true"] b { color: var(--tide); text-decoration: underline dotted; text-underline-offset: 3px; }
  .farecell__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .farecell--in .farecell__b { padding: 6px 0; margin: -6px 0; text-align: left; font-size: inherit; } .farecell--in .farecell__b i { display: inline; font-size: inherit; font-weight: 400; }
  .farecell--in .farecell__more { margin-left: 8px; font-size: 12px; font-weight: 700; }
  .farepop { position: fixed; z-index: var(--z-dialog, 80); display: grid; gap: 2px; padding: 10px 12px 10px; background: var(--surface-raised, #fff); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px;
             box-shadow: var(--shadow-lift, 0 10px 28px rgba(0,0,0,.2)); font-family: var(--font-sans); font-size: 14px; line-height: 1.4; text-align: left; white-space: normal; cursor: default; }
  .farepop__h { display: flex; align-items: baseline; gap: 8px; font-weight: 800; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); } .farepop__h small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
  .farepop__r { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 32px; }
  .farepop__i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-tint, #e6f2f2); color: var(--tide); }
  .farepop__v > small { margin-top: 1px; } .farepop__r.is-sub .farepop__i { background: #f1ede5; color: var(--ink-muted); } .farepop { max-height: calc(100vh - 90px); overflow-y: auto; }
  .farepop__n { font-weight: 700; } .farepop__n small { display: block; font-weight: 400; font-size: 11.5px; line-height: 14px; color: var(--ink-muted); }
  .farepop__v { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; text-align: right; } .farepop__v small { font-family: var(--font-sans); font-weight: 400; font-size: 11.5px; color: var(--ink-muted); white-space: normal; display: block; max-width: 130px; }
  .farepop__r.is-full .farepop__v { color: var(--tide); }
  .farepop__t { display: grid; grid-template-columns: minmax(0, 1fr) 54px 54px 48px; gap: 6px; align-items: center; min-height: 34px; padding: 2px 0; border-bottom: 1px dashed var(--line); }
  .farepop__t.is-h { min-height: 0; padding: 0 0 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-muted); border-bottom: 0; } .farepop__t.is-h span + span { text-align: right; }
  .farepop__t.is-one { grid-template-columns: minmax(0, 1fr) auto; } .farepop__t .farepop__v:nth-child(2) { color: var(--tide); }
  .farepop__f { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.6; color: var(--ink-muted); } .farepop__f a { margin-left: 6px; color: var(--tide); white-space: nowrap; }
  .dy-dep__farem { display: none; } @media (max-width: 720px) { .dy-dep__farem { display: block; } }
  .farenote span { margin-left: 4px; } .farenote { margin: 8px 2px 0; font-size: 13px; line-height: 1.7; } .farenote a { margin-left: 6px; color: var(--tide); white-space: nowrap; }
  /* 灰色的狀態標籤（明天・表定、已到…）底色跟班次表的灰底列一樣，在那幾列看不出圓角框（使用者 2026-10-07）：加一圈細邊線，灰底列上改白底 */
  .dy-dep__table .dy-status--info { box-shadow: inset 0 0 0 1px var(--line-strong, #cfc8ba); }
  .dy-dep__table .dy-dep__row:nth-child(even) .dy-status--info { background: var(--surface-raised, #fff); }
  .depseg .airlogo { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; margin: 0; }
  /* 卡片標題列右邊那一組：訂票連結＋出處，永遠在同一行 */
  .dy-card.is-srci .dy-dep__head .dephead__r { display: flex; align-items: center; gap: 6px 10px; margin-left: auto; min-width: 0; }
  .dy-card.is-srci .dy-dep__head .dephead__r .booklinks { flex: 0 1 auto; margin-left: 0; min-width: 0; }
  .dy-card.is-srci .dy-dep__head .dephead__r .srci { margin-left: 0; flex: none; align-self: center; }
  @media (max-width: 820px) {
    .dy-card.is-srci .dy-dep__head .dephead__r { flex: 1 1 100%; justify-content: space-between; align-items: flex-start; }
    .dy-card.is-srci .dy-dep__head .dephead__r .booklinks { flex: 1 1 auto; flex-wrap: wrap; gap: 4px 14px; }
    .dy-card.is-srci .dy-dep__head .dephead__r .srci:only-child { margin-left: auto; }
  }
  .duopick { display: flex; gap: 10px; flex-wrap: wrap; }
  /* 航線：另一頭的地名包成有顏色的小標籤 */
  .rt { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; } .rt__ar { color: var(--ink-muted); font-weight: 500; }
  .rt__home { font-weight: 600; color: var(--ink-muted); }
  .rt__p { padding: 1px 9px; border-radius: 8px; font-weight: 800; background: #e9edf0; color: #26343b; box-shadow: inset 3px 0 0 #8d99a6; }
  .rt__p--a { background: #dfeaf8; color: #123f73; box-shadow: inset 3px 0 0 #2f6fb5; } .rt__p--b { background: #fdebc8; color: #6b3d00; box-shadow: inset 3px 0 0 #d98a1c; }
  .rt__p--c { background: #f6e0ec; color: #6d1f47; box-shadow: inset 3px 0 0 #b8457e; } .rt__p--d { background: #e3e4f7; color: #2c2f7a; box-shadow: inset 3px 0 0 #5b5fc7; }
  .rt__p--e { background: #dbf1ee; color: #0b4f49; box-shadow: inset 3px 0 0 #1a9488; } .rt__p--f { background: #e2f0dc; color: #2a5218; box-shadow: inset 3px 0 0 #5a9a3a; }
  .rt__p--g { background: #ebe3f7; color: #45247a; box-shadow: inset 3px 0 0 #7b4fc0; } .rt__p--h { background: #e6efd2; color: #3f4f12; box-shadow: inset 3px 0 0 #86a02a; }
  .rt__p--i { background: #f3e9d8; color: #5a4215; box-shadow: inset 3px 0 0 #b08a3c; } .rt__p--j { background: #fbe2dc; color: #7a2a16; box-shadow: inset 3px 0 0 #c2553a; }
  /* 班次時間前面的航空公司標誌 */
  .dy-dep__ic { display: inline-block; margin-right: 7px; vertical-align: -5px; } .dy-dep__ic .airlogo { display: block; width: 24px; height: 24px; object-fit: contain; border-radius: 6px; margin: 0; }
  .dy-dep--lead .dy-dep__row--next .dy-dep__ic { vertical-align: -3px; }
  /* 交通頁的情境橫幅：班機＝天空與雲、船班＝海面與浪；裡面是班機｜船班開關與下一班 */
  .goscene { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 16px 40px; margin: 0 0 14px; color: #fff; display: grid; gap: 10px; }
  .goscene--air { background: linear-gradient(180deg, #3f8fc9, #8cc4ea); } .goscene--sea { background: linear-gradient(180deg, #11838d, #0a5a62); }
  .goscene__sw { justify-self: start; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.28); position: relative; }
  /* 選中的白色底是一塊會滑過去的墊片，不是各顆按鈕自己的底（使用者 2026-10-09：切換時要有滑動感） */
  .goscene__sw::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 5px); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .28s cubic-bezier(.3,.9,.3,1); }
  .goscene__sw.is-b::before { transform: translateX(calc(100% + 2px)); }
  @media (prefers-reduced-motion: reduce) { .goscene__sw::before { transition: none; } }
  .goscene__sw button { appearance: none; border: 0; background: none; color: #fff; font: inherit; font-weight: 800; font-size: 16px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
                        display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
  .goscene__sw button em { font-style: normal; font-weight: 600; font-size: 13px; opacity: .85; }
  .goscene__sw button { position: relative; transition: color .2s; } .goscene__sw button.is-on { color: #10303b; }
  .goscene__sw button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .goscene__nx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 14.5px; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
  .goscene__nx b { font-family: var(--font-mono); font-size: 34px; line-height: 38px; font-weight: 700; display: inline-flex; align-items: center; }
  .goscene__ic { display: inline-flex; margin-right: 8px; padding: 3px; border-radius: 8px; background: #fff; } .goscene__ic .airlogo { display: block; width: 24px; height: 24px; object-fit: contain; margin: 0; }
  .goscene__art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; pointer-events: none; }
  .goscene--air .goscene__art path { fill: #fff; opacity: .88; } .goscene--sea .goscene__art .w1 { fill: #fff; opacity: .22; } .goscene--sea .goscene__art .w2 { fill: #fff; opacity: .34; }
  @media (max-width: 720px) { .goscene__sw { justify-self: stretch; } .goscene__sw button { padding: 0 8px; } }
  /* 子分頁列左右有留白，箭頭要貼到最邊上，不然右邊會露出一小塊後面的按鈕 */
  .subnav .shell[data-more]::after { right: -16px; } .subnav .shell[data-more]::before { left: -16px; }
  .depair .airlogo { height: 18px; width: 18px; object-fit: contain; margin: 0 6px 0 0; vertical-align: -4px; }
  .airlogo { width: auto; height: 20px; border-radius: 4px; vertical-align: -4px; margin-right: 6px; }
  .planetip__h { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
  .planetip__h img { border-radius: 4px; }
  /* 地圖圖例：線條樣本 */
  .maplegend { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); margin-top: var(--space-2);
               font-size: 12px; line-height: 18px; color: var(--ink-muted); }
  .maplegend span { display: inline-flex; align-items: center; gap: 6px; }
  .maplegend i { display: inline-block; width: 24px; flex: none; border-top: 2.5px solid var(--tide); }
  .maplegend__dash { border-top-style: dashed !important; opacity: .55; }
  /* 狀態章：白底版（島況列那組是深色底用的） */
  .plane__badge { margin-left: 8px; color: var(--ink-muted); border-color: var(--line); vertical-align: 2px; }
  .plane__badge--go { color: var(--go); border-color: currentColor; }
  .plane__badge--hold { color: var(--hold); border-color: currentColor; }
  .plane__badge--stop { color: var(--stop); border-color: currentColor; }
  .planelist { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
  .plane { display: flex; gap: var(--space-3); align-items: center; }
  .plane__ico { color: var(--tide); display: inline-flex; transform-origin: center; }
  .plane__t { font-size: 15px; line-height: 23px; font-weight: 700; font-family: var(--font-mono); }
  .plane__r { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--ink); }
  .plane__f { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

  /* ---- 每日活動 ---- */
  .daylist { display: grid; gap: 0; margin-top: var(--space-3); }
  .dayrow { display: grid; grid-template-columns: 76px 1fr; gap: var(--space-4);
            padding: var(--space-3) 0; border-top: 1px solid var(--line); align-items: start; }
  .dayrow:first-child { border-top: 0; }
  .dayrow--today { background: var(--surface-tint); border-radius: var(--radius-md);
                   padding-inline: var(--space-3); }
  .dayrow__d { font-size: 15px; font-weight: 700; color: var(--ink);
               display: flex; flex-direction: column; gap: 2px; }
  .dayrow__today { font-family: var(--font-sans); font-size: 11px; font-weight: 700;
                   letter-spacing: .06em; color: var(--tide); }
  .dayrow__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .dayrow__list li { font-size: 14px; line-height: 23px; }
  /* ---- 每日活動卡片 ----
     海報是直式的，塞進「日期一欄、內容一欄」的清單會把每列撐得很高、
     右邊整片空白，一個畫面看不到三則。卡片一排放得下三到四張。
     圖用固定比例裁切（object-fit: cover），卡片高度才會齊。 */
  .actcard { display: flex; flex-direction: column; gap: var(--space-2);
             padding: var(--space-4); cursor: pointer; text-align: left; }
  .actcard:hover { box-shadow: var(--shadow-lift); }
  .actcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .actcard__top { display: flex; align-items: center; justify-content: space-between;
                  gap: var(--space-2); }
  .actcard__d { font-size: 14px; line-height: 22px; font-weight: 700; color: var(--ink-muted); }
  .actcard__d.is-today {
    font-family: var(--font-sans); background: var(--tide); color: var(--on-tide);
    border-radius: var(--radius-pill); padding: 1px 9px; font-size: 12px;
  }
  .actcard__bare { font-size: 11px; line-height: 18px; color: var(--ink-muted); }
  .actcard__img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden;
                  background: var(--surface-sunken); }
  .actcard__img img { width: 100%; height: 100%; object-fit: cover;
                      object-position: top center; display: block; }
  /* 沒有內文也沒有圖的，不做成可點——點下去是空白頁 */
  .actcard--flat { cursor: default; }
  .actcard--flat:hover { box-shadow: none; }

  .actcard__series {
    font-size: 11px; line-height: 18px; padding: 1px 7px; border-radius: var(--radius-pill);
    background: var(--surface-sunken); color: var(--ink-muted);
  }
  /* 沒有海報的封面。不編假照片——底圖是配色，上面放真的資訊。 */
  .actcard__ph { display: flex; flex-direction: column; align-items: center;
                 justify-content: center; gap: 4px; text-align: center; padding: var(--space-3); }
  .actcard__ph--tide { background: color-mix(in srgb, var(--tide) 14%, var(--surface-sunken)); }
  .actcard__ph--go { background: color-mix(in srgb, var(--go) 14%, var(--surface-sunken)); }
  .actcard__ph--hold { background: color-mix(in srgb, var(--hold) 16%, var(--surface-sunken)); }
  .actcard__ph--stop { background: color-mix(in srgb, var(--stop) 12%, var(--surface-sunken)); }
  .actcard__ph--neutral { background: var(--surface-sunken); }
  .actcard__phd { font-size: 26px; line-height: 34px; font-weight: 600; color: var(--ink); }
  .actcard__phh { font-size: 13px; line-height: 20px; color: var(--ink-muted);
                  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
                  -webkit-box-orient: vertical; }

  /* 系列活動的各場次 */
  .actruns { margin: 0 0 var(--space-4); padding: var(--space-3);
             border: 1px solid var(--line); border-radius: var(--radius-md); }
  .actruns__t { margin: 0 0 var(--space-2); font-size: 14px; line-height: 22px; }
  .actruns__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .actruns__list li { font-size: 14px; line-height: 22px; display: flex;
                      align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
  .actruns__d { font-weight: 600; min-width: 3.4em; flex-shrink: 0; }
  /* 場次名稱全部一樣時只列日期。列十行一樣的字沒有告訴人任何事。 */
  .actruns__dates { margin: 0; font-size: 15px; line-height: 26px; color: var(--ink); }
  .actruns__note { margin: var(--space-2) 0 0; font-size: 13px; line-height: 20px;
                   color: var(--ink-muted); }

  .actcard__t { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }

  .act { padding: var(--space-2) 0; border-bottom: 1px dashed var(--line); }
  .act:last-child { border-bottom: 0; }
  .act__t { font-size: 15px; line-height: 24px; font-weight: 700; color: var(--ink); }
  .act__facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
                margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
  .act__f { display: inline-flex; align-items: center; gap: 4px; }
  .act__src { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px;
              font-size: 11px; line-height: 17px; color: var(--ink-faint); text-decoration: none; }
  .act__src:hover { color: var(--ink-muted); text-decoration: underline; }
  @media (max-width: 560px) { .dayrow { grid-template-columns: 58px 1fr; gap: var(--space-3); } }

  /* ---- 新聞縮圖 ----
     照片來自原始媒體（馬祖日報的 og:image），點擊回到原文。
     載入失敗或沒有照片時整塊不出現，版面照常——不放佔位圖。 */
  .newsitem { display: grid; grid-template-columns: 120px 1fr;
              column-gap: var(--space-4); gap: var(--space-1); align-items: start; }
  .newsitem__thumb { grid-row: 1 / span 3; display: block; border-radius: var(--radius-md);
                     overflow: hidden; background: var(--surface-sunken);
                     aspect-ratio: 4 / 3; text-decoration: none; }
  /* 只有封面圖填滿整格。**要排除 .ph__logo**——它也是這一格裡的 img，
     被這條規則套到就會被撐成 100%×100%。 */
  .newsitem__thumb img:not(.ph__logo) {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  /* 收不起來的問題由樣式表開頭那條全域保護處理。 */

  /* 沒有照片時：依類別的圖示與色調，加一層極淡的斜紋，不要是一塊死灰 */
  .newsitem__thumb--ph { display: flex; align-items: center; justify-content: center;
                         border: 1px solid var(--line); }
  .ph__in { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .ph__t { font-size: 11px; line-height: 15px; font-weight: 700; letter-spacing: .04em; }

  /* 來源標誌。取自 Google 的公開圖示服務，實測多為 128–256px，
     縮到 30px 顯示很清楚。白底墊一層是因為不少標誌本身是透明底的深色字，
     直接放在類別色塊上會看不見。 */
  .ph__logo {
    width: 30px; height: 30px; object-fit: contain;
    background: #fff; border-radius: 6px; padding: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  }
  /* 來源只有 32–48px 的（中央社就是 32px，而它佔了最多則數），
     用小一號的框，讓圖仍然大於顯示尺寸，不會被拉開變糊。 */
  .ph__logo--sm { width: 24px; height: 24px; padding: 2px; }
  /* 有標誌時就不再畫類別圖示——兩個一起太擠。
     這個 class 是**確認標誌載得到而且夠大之後才加上**的，
     所以「標誌沒出現卻把圖示藏起來」不會發生。 */
  .ph__in--logo .ph__ico { display: none; }
  /* 有標誌時標誌就是封面：白底鋪滿整格，類別名稱不再重複
     （標題下方本來就有類別標籤）。放大到整格是使用者要求的——
     縮在中間的小圖示看起來像「沒有封面」。 */
  .ph__in--logo { position: absolute; inset: 0; z-index: 1; justify-content: center;
                  background: #fff; }
  .ph__in--logo .ph__t { display: none; }
  .ph__in--logo .ph__logo {
    width: 100%; height: 100%; padding: 12%; box-sizing: border-box;
    background: transparent; border-radius: 0; box-shadow: none;
  }
  /* 太小的標誌（中央社 32px）拉到整格會糊，維持原尺寸置中 */
  .ph__in--logo .ph__logo--sm { width: 48px; height: 48px; padding: 0; }

  /* 有封面而且載得起來時，蓋住下面的類別色塊。
     封面 404 時 onError 會把 img 設成 hidden，這條就不成立，
     色塊自動露出來——不需要重新渲染。 */
  .newsitem__thumb img:not([hidden]):not(.ph__logo) ~ .ph__in { display: none; }
  .ph--tide    { background: var(--surface-tint); color: var(--tide); }
  .ph--go      { background: var(--go-tint);      color: var(--go); }
  .ph--hold    { background: var(--hold-tint);    color: var(--hold); }
  .ph--stop    { background: var(--stop-tint);    color: var(--stop); }
  .ph--neutral { background: var(--surface-sunken); color: var(--ink-muted); }
  .newsitem__thumb--ph::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 9px);
    opacity: .10; pointer-events: none;
  }
  .newsitem__thumb--ph { position: relative; }
  @media (max-width: 560px) {
    .newsitem { grid-template-columns: 84px 1fr; }
    .ph__t { display: none; }
  }

  /* ---- 天空與海（/sky）----
     把首頁島況列上那一排數字攤開，每一格都帶來源。
     取不到的那格降低對比並寫明原因——留白但不留疑問。 */
  .skygrid {
    display: grid; gap: 10px; margin: var(--space-3) 0 var(--space-5);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skycell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  @media (min-width: 720px) { .skygrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .skycell:last-child:nth-child(odd) { grid-column: auto; } }
  .skycell {
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
    padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 14px; background: var(--surface-raised);
  }
  .skycell__lb { font-size: 13px; color: var(--ink-muted); }
  .skycell__v { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: .01em; overflow-wrap: anywhere; }
  .skycell__sub { font-size: 13px; color: var(--ink); line-height: 1.4; }
  .skycell__src { margin-top: auto; padding-top: 4px; font-size: 11px; color: var(--ink-muted); line-height: 1.35; }
  .skycell--na .skycell__v { color: var(--ink-muted); font-weight: 400; }

  .tearwrap {
    display: grid; gap: var(--space-4); align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
  @media (min-width: 720px) { .tearwrap { grid-template-columns: 1fr 1fr; } }
  /* 為什麼是這個分數——沒有依據的指數等於算命 */
  .tearwhy {
    list-style: none; margin: 0; padding: var(--space-3);
    border: 1px solid var(--line); border-radius: var(--radius-m);
    background: var(--surface-raised); font-size: 14px;
  }
  .tearwhy li {
    display: flex; justify-content: space-between; gap: var(--space-3);
    padding: 5px 0; border-bottom: 1px solid var(--line);
  }
  .tearwhy li:last-child { border-bottom: 0; }
  .tearwhy__d { color: var(--ink-muted); }
  .tearwhy__d.up { color: var(--go); }
  .tearwhy__d.down { color: var(--stop); }
  .skyfoot { margin-top: var(--space-5); }

  /* ---- 新聞頁的來源篩選 ---- */
  .newsfilter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4);
                padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }

  /* ---- 佈告 ---- */
  .boardbar { display: flex; gap: var(--space-3); align-items: center;
              flex-wrap: wrap; margin-bottom: var(--space-4); }
  .boardsearch {
    flex: 1 1 200px; min-width: 0; font-family: var(--font-sans); font-size: 15px;
    line-height: 24px; color: var(--ink); background: var(--surface-raised);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 9px var(--space-3); min-height: 44px;
  }
  .boardsearch:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .bcard { display: flex; flex-direction: column; gap: var(--space-2);
           padding: var(--space-4); cursor: pointer; text-align: left; }
  .bcard:hover { box-shadow: var(--shadow-lift); }
  .bcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .bcard__img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden;
                background: var(--surface-sunken); }
  .bcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .bcard__top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
  .bcard__t { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
  .bcard__p { margin: 0; font-family: var(--font-mono); font-size: 18px; line-height: 26px;
              font-weight: 600; color: var(--tide); }
  .bcard__m { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
  /* 手機：佈告與商家改成清單列。原本是卡片裡再包一層卡片（雙層外框＋留白），
     一則約 150px。拿掉內層外框，照片縮成左邊的小方圖（同新聞列表），列與列之間細線分隔。 */
  @media (max-width: 560px) {
    .cardgrid:has(> .bcard) { gap: 0; }
    .cardgrid > .bcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
                         border: 0; border-radius: 0; box-shadow: none; background: transparent;
                         padding: 12px 0; }
    .cardgrid > .bcard + .bcard { border-top: 1px solid var(--line); }
    .cardgrid > .bcard:hover { box-shadow: none; background: var(--surface-sunken); }
    .cardgrid > .bcard--img { grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--space-3); }
    .cardgrid > .bcard--img .bcard__img { grid-column: 1; grid-row: 1 / span 4; aspect-ratio: 1;
                                          width: 72px; align-self: start; }
    .cardgrid > .bcard--img > :not(.bcard__img) { grid-column: 2; }
    .cardgrid > .bcard .bcard__t { font-size: 15px; line-height: 22px; }
    .cardgrid > .bcard .bcard__p { font-size: 15px; line-height: 22px; }
    .cardgrid > .bcard .bcard__m { font-size: 12px; line-height: 18px; }
    .cardgrid > .bcard .bcard__top .dy-tag { font-size: 11px; padding: 0 6px; line-height: 18px; }
  }
  .bsheet__imgs { display: grid; gap: var(--space-2); margin: var(--space-3) 0; }
  .bsheet__imgs img { width: 100%; border-radius: var(--radius-md); display: block; }
  .bsheet__price { margin: 0; font-family: var(--font-mono); font-size: 22px;
                   font-weight: 600; color: var(--tide); }
  .bsheet__body { margin: var(--space-3) 0; font-size: 15px; line-height: 26px;
                  white-space: pre-wrap; }
  .bsheet__facts { display: grid; gap: var(--space-2); margin: var(--space-3) 0 0; }
  .bsheet__facts > div { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-3); }
  .bsheet__facts dt { font-size: 13px; color: var(--ink-muted); margin: 0; }
  .bsheet__facts dd { font-size: 15px; margin: 0; }

  /* ---- 會員中心 ---- */
  .mylist { list-style: none; margin: var(--space-2) 0 0; padding: 0;
            display: grid; gap: var(--space-3); }
  .mylist li { border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); }
  .mylist li:last-child { border-bottom: 0; padding-bottom: 0; }

  /* ---- 生活資訊 ---- */
  .linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
  .linklist li { border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); }
  .linklist li:last-child { border-bottom: 0; padding-bottom: 0; }
  .linklist__t { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
  .linklist__a { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: 2px; }
  .linklist__a a { display: inline-flex; align-items: center; gap: 4px;
                   font-size: 14px; color: var(--tide); text-decoration: none; font-weight: 600; }
  .linklist__a a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .infolink { appearance: none; background: transparent; border: 0; padding: 0;
              font-family: var(--font-sans); font-size: 17px; line-height: 26px;
              font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
  .infolink:hover { color: var(--tide); }
  .infolink:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .infobody { font-size: 15px; line-height: 28px; white-space: pre-wrap;
              margin-top: var(--space-3); }

  /* ---- 商家 ---- */
  .psheet__cover { width: 100%; border-radius: var(--radius-md); display: block;
                   margin: var(--space-3) 0; }
  .reviews { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid;
             gap: var(--space-3); }
  .reviews li { border-top: 1px solid var(--line); padding-top: var(--space-3); }
  .reviews li:first-child { border-top: 0; padding-top: 0; }
  .reviews__r { color: var(--sand); font-size: 15px; letter-spacing: 1px; }
  .reviews__c { margin: 2px 0 0; font-size: 14px; line-height: 23px; }

  /* ---- 佈告表單 ---- */
  .bform { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
  .bform select { font-family: var(--font-sans); font-size: 15px; line-height: 24px;
                  color: var(--ink); background: var(--surface-raised);
                  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
                  padding: 9px var(--space-3); min-height: 44px; width: 100%; }
  .bform input[type="file"] { font-size: 13px; }
  .bform__imgs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
  .bform__imgs img { width: 72px; height: 72px; object-fit: cover;
                     border-radius: var(--radius-sm); }
  .bform__err { margin: var(--space-3) 0 0; color: var(--stop); font-size: 14px; }

  /* ---- 卡片格線（公告等）---- */
  .cardgrid { display: grid; gap: var(--space-3); margin-top: var(--space-3);
              grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  /* 活動卡片高度各自為政。同一排拉成一樣高的話，只有標題的卡片
     會被撐出一大片空白——旁邊那張有海報的有多高，它就有多高。 */
  .cardgrid--act { align-items: start; }

  /* ---- 行事曆 ----
     卡片高度要一致：說明文字長短差很多，不限制就會一張矮一張高。
     格線用 grid-auto-rows:1fr 讓同列等高，說明再夾成兩行，
     整體就不會像原本那樣一張卡佔掉半個螢幕。 */
  /* 班次表的手機版：三欄兩行（時間｜航線｜狀態，第二行小字是班號與備註）。
     設計系統的手機版把時間、班號、航線在左欄疊成三行，一班約 95px，
     交通頁 45 班要捲五個畫面以上。改成約 56px。只覆寫版面，不動設計系統。 */
  @media (max-width: 720px) {
    /* box-sizing：設計系統給了 width:100% 又加左右內距，沒有 border-box，每一列比外框寬 32px，
       右邊被卡片的 overflow:hidden 切掉——狀態標籤（準時、延誤）正好在那一段，一直只露出一小段圓弧 */
    .dy-dep__table tr.dy-dep__row { grid-template-columns: auto minmax(0, 1fr) auto;
                                    column-gap: var(--space-3); align-items: center;
                                    padding: 8px var(--space-4); box-sizing: border-box; }
    /* 狀態欄原本只分到 22px，「● 準時」被擠成兩行 */
    .dy-dep__table tr.dy-dep__row td:nth-child(4) .dy-pill,
    .dy-dep__table tr.dy-dep__row td:nth-child(4) > * { white-space: nowrap; }
    .dy-dep__table tr.dy-dep__row td:nth-child(1) { grid-column: 1; grid-row: 1; }
    .dy-dep__table tr.dy-dep__row td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 11px; line-height: 15px; }
    .dy-dep__table tr.dy-dep__row td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
    /* 設計系統給每格 overflow-wrap:anywhere + min-width:0，狀態欄會被算成極窄；照標籤實際寬度 */
    .dy-dep__table tr.dy-dep__row td:nth-child(4) { grid-column: 3; grid-row: 1 / span 2;
                                                    min-width: max-content; overflow-wrap: normal; }
    .dy-dep__time { font-size: 17px; line-height: 22px; }
    .dy-dep__code { font-size: 11px; line-height: 15px; }
    .dy-dep__route { font-size: 15px; line-height: 21px; }
    .dy-dep__note { font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  }

  /* 現場頁的篩選：手機改成一行三個下拉選單 */
  .camfilter--sel { display: none; }
  .camsel { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .camsel__lb { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--ink-muted); }
  .camsel__s { font: inherit; font-size: 15px; min-height: 44px; padding: 0 28px 0 10px; width: 100%;
               border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink);
               background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
               appearance: none; -webkit-appearance: none; }
  .camsel__s:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  @media (max-width: 560px) {
    .camfilter--chips { display: none; }
    .camfilter--sel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
  }


  /* ─── 馬祖人物 /people ─── 卡牌、時間長卷、島嶼地圖、故事頁。
     類別色只當點綴（卡牌頂邊、故事頁標籤），不拿來傳達資訊——類別名稱一律寫出來。 */
  .pcard, .pstory, .ptl__b { --pc: var(--tide); }
  .pcard--politics, .pstory--politics { --pc: #3b5b92; }
  .pcard--public, .pstory--public { --pc: #4a6f8a; }
  .pcard--military, .pstory--military, .pstory--none { --pc: #5d6b4a; }
  .pcard--business, .pstory--business, .pcard--fishing, .pstory--fishing { --pc: #9a6a2a; }
  .pcard--education, .pstory--education, .pcard--scholar, .pstory--scholar { --pc: #2f7a6d; }
  .pcard--medical, .pstory--medical, .pcard--charity, .pstory--charity { --pc: #a0443c; }
  .pcard--religion, .pstory--religion { --pc: #8a4f7d; }
  .pcard--literature, .pstory--literature, .pcard--arts, .pstory--arts,
  .pcard--music, .pstory--music { --pc: #7a4fa0; }
  .pcard--sports, .pstory--sports { --pc: #2d7f3f; }
  .ptools { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: var(--space-4); }
  .ptools .newsfilter { margin-bottom: var(--space-3); }
  /* ---- 外觀（後台「外觀」開關，2026-09-28）----
     五大類的代表色：a/b 色帶漸層、c 代表色（文字與線，淺底上對比 ≥ 4.5）、m 圖案 */
  .lookroot { --grp-a: var(--surface-tint); --grp-b: var(--surface-tint); --grp-c: var(--tide); --grp-m: #0c707833; }
  .lookroot[data-grp="go"]      { --grp-a: #dcedf4; --grp-b: #c3e2ee; --grp-c: #175a7a; --grp-m: #1f6f9540; }
  .lookroot[data-grp="explore"] { --grp-a: #f5e8dd; --grp-b: #ecd4c2; --grp-c: #93452a; --grp-m: #9a4a2c38; }
  .lookroot[data-grp="life"]    { --grp-a: #e7f0e2; --grp-b: #d3e5cb; --grp-c: #3b6636; --grp-m: #3f6b3a38; }
  .lookroot[data-grp="kids"]    { --grp-a: #f9e8ee; --grp-b: #f2d3de; --grp-c: #9a3558; --grp-m: #9a355830; }
  .lookroot[data-grp="read"]    { --grp-a: #f1eee8; --grp-b: #e6e1d8; --grp-c: #2f3a3d; --grp-m: #2d343630; }
  .lookroot[data-grp="culture"]    { --grp-a: #f4ebe6; --grp-b: #ead9d0; --grp-c: #8a3324; --grp-m: #8a332430; }
  .lookroot[data-grp="walk"]       { --grp-a: #f1ece2; --grp-b: #e4dac6; --grp-c: #6b4a2b; --grp-m: #6b4a2b30; }
  [data-theme="dark"] .lookroot { --grp-a: #10272a; --grp-b: #0d2124; --grp-c: #7fe0d2; --grp-m: #4fdccb30; }
  [data-theme="dark"] .lookroot[data-grp="go"]      { --grp-a: #0f2533; --grp-b: #0b1d29; --grp-c: #8fcdea; --grp-m: #6fb7da38; }
  [data-theme="dark"] .lookroot[data-grp="explore"] { --grp-a: #2a1a14; --grp-b: #22150f; --grp-c: #f0a88a; --grp-m: #e0886038; }
  [data-theme="dark"] .lookroot[data-grp="life"]    { --grp-a: #16241a; --grp-b: #111d14; --grp-c: #a6d49b; --grp-m: #8cc27f33; }
  [data-theme="dark"] .lookroot[data-grp="kids"]    { --grp-a: #2a161d; --grp-b: #211117; --grp-c: #f4b3c6; --grp-m: #f4b3c62b; }
  [data-theme="dark"] .lookroot[data-grp="read"]    { --grp-a: #1a1d1f; --grp-b: #141719; --grp-c: #d8dcdc; --grp-m: #c8cfd02b; }
  [data-theme="dark"] .lookroot[data-grp="culture"]    { --grp-a: #1f1715; --grp-b: #181210; --grp-c: #f0b8a8; --grp-m: #f0b8a82b; }
  [data-theme="dark"] .lookroot[data-grp="walk"]       { --grp-a: #1c1813; --grp-b: #15120e; --grp-c: #e6c99a; --grp-m: #e6c99a2b; }
  /* 深藍頁首的設計（外觀「頁首設計」）：底色維持深藍，右上角一道大類顏色的光暈＋淡淡的線條圖案；
     選中的分頁底線換成大類的亮色。兩種主題都是深色底，所以只有一組 */
  .lookroot { --grp-glow: rgba(23, 201, 183, .22); --grp-hl: var(--tide-glow); }
  .lookroot[data-grp="go"]      { --grp-glow: rgba(64, 160, 230, .30); --grp-hl: #6fc3ea; }
  .lookroot[data-grp="explore"] { --grp-glow: rgba(222, 128, 84, .26); --grp-hl: #f0a88a; }
  .lookroot[data-grp="life"]    { --grp-glow: rgba(126, 196, 110, .24); --grp-hl: #a6d49b; }
  .lookroot[data-grp="kids"]    { --grp-glow: rgba(240, 138, 168, .26); --grp-hl: #f4b3c6; }
  .lookroot[data-grp="read"]    { --grp-glow: rgba(200, 208, 210, .16); --grp-hl: #d8dcdc; }
  .lookroot[data-grp="culture"]    { --grp-glow: rgba(214, 96, 70, .2); --grp-hl: #f0b8a8; }
  .lookroot[data-grp="walk"]       { --grp-glow: rgba(200, 160, 100, .22); --grp-hl: #e6c99a; }
  .mastwrap { position: relative; }
  /* Leaflet 地圖的圖層 z-index 400 起跳，會蓋過主選單的面板（使用者 2026-09-28：下拉選單被切到）：把它關在自己的堆疊範圍裡 */
  .leaflet-container { z-index: 0; isolation: isolate; }
  /* 不能 overflow: hidden：主選單展開的子頁面板在頁首外面，會被一起裁掉（2026-09-28 使用者回報：選單無法點選）。
     圖案本身是有尺寸的 svg，不會超出 */
  .mastwrap.is-deco { background:
      radial-gradient(90% 160% at 92% -10%, var(--grp-glow) 0%, transparent 60%),
      linear-gradient(180deg, var(--surface-deep), color-mix(in srgb, var(--surface-deep) 86%, #000)); transition: background .6s ease; }
  .mastwrap.is-deco .masthead, .mastwrap.is-deco .viewnav { background: transparent; position: relative; z-index: 1; }
  /* 面板要疊在島況列（sticky，z 100）上面：主選單這一層要比它高 */
  .mastwrap.is-deco .viewnav { z-index: calc(var(--z-sticky, 100) + 5); }
  .mastwrap__m { position: absolute; right: 0; top: 0; height: 100%; width: min(58%, 680px); color: rgba(232, 241, 240, .10); pointer-events: none;
                 -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
  .look-bands .viewtab[aria-current="true"] { border-bottom-color: var(--grp-hl); }
  .mast-sky { align-self: center; font-size: 12px; font-weight: 700; color: var(--ink-deep); padding: 2px 10px; border-radius: var(--radius-pill);
              border: 1px solid rgba(232, 241, 240, .45); background: rgba(255, 255, 255, .08); }
  /* ── 頁首樣式（後台「外觀」：photo／tint／lines／plain）── */
  /* 線條：比第二版明顯（圖案 10% → 22%、光暈加倍） */
  .mastwrap.hs-lines .mastwrap__m { color: rgba(232, 241, 240, .22); }
  .mastwrap.hs-lines { background:
      radial-gradient(90% 180% at 92% -10%, color-mix(in srgb, var(--grp-hl) 42%, transparent) 0%, transparent 62%),
      linear-gradient(180deg, var(--surface-deep), color-mix(in srgb, var(--surface-deep) 86%, #000)); }
  /* 各類不同深色：整塊換成那一類的深色 */
  .lookroot { --hdr-tint-a: #0f2e36; --hdr-tint-b: #0b2229; }
  .lookroot[data-grp="go"]      { --hdr-tint-a: #0b3552; --hdr-tint-b: #08243a; }
  .lookroot[data-grp="explore"] { --hdr-tint-a: #43291c; --hdr-tint-b: #2c1a11; }
  .lookroot[data-grp="life"]    { --hdr-tint-a: #163d2a; --hdr-tint-b: #0e2a1c; }
  .lookroot[data-grp="kids"]    { --hdr-tint-a: #4a2333; --hdr-tint-b: #2d1520; }
  .lookroot[data-grp="read"]    { --hdr-tint-a: #262e32; --hdr-tint-b: #181d20; }
  .lookroot[data-grp="culture"]    { --hdr-tint-a: #3a211c; --hdr-tint-b: #211311; }
  .lookroot[data-grp="walk"]       { --hdr-tint-a: #33281c; --hdr-tint-b: #1d1710; }
  .mastwrap.hs-tint { background: radial-gradient(90% 180% at 92% -10%, color-mix(in srgb, var(--grp-hl) 30%, transparent) 0%, transparent 62%),
      linear-gradient(180deg, var(--hdr-tint-a), var(--hdr-tint-b)); }
  .mastwrap.hs-tint .mastwrap__m { color: rgba(255, 255, 255, .16); }
  /* 照片：右側照片，左邊漸層回深藍（網站名稱、選單清楚），底部選單那一條再壓暗一點 */
  .mastwrap.hs-photo { background: var(--surface-deep); }
  .mastwrap__ph { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0; pointer-events: none;
                  background: var(--hdr-img) center 45% / cover no-repeat;
                  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 25%, #000 55%);
                          mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 25%, #000 55%); }
  /* 照片上蓋一層：底部選單那一條壓暗、整體稍暗，文字與按鈕照樣清楚；天氣時換成霧或夜色 */
  .mastwrap__ph::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, color-mix(in srgb, var(--surface-deep) 72%, transparent) 0 48px, transparent 48px),
                color-mix(in srgb, var(--surface-deep) 22%, transparent); }
  .mastwrap[data-sky="night"] .mastwrap__ph::after { background: rgba(6, 20, 38, .72); }
  .mastwrap[data-sky="fog"] .mastwrap__ph::after { background: repeating-linear-gradient(180deg, rgba(220,230,234,.12) 0 12px, transparent 12px 26px), rgba(64, 80, 88, .68); }
  .mastwrap.hs-photo .masthead, .mastwrap.hs-photo .viewnav { position: relative; z-index: 1; }
  .mastwrap.hs-photo .viewnav { z-index: calc(var(--z-sticky, 100) + 5); }
  .mastwrap__moon { z-index: 1; }
  @media (max-width: 720px) {
    .mastwrap__ph { width: 100%; background-image: var(--hdr-img-sm);
      -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0, #000 70%); }
    .mastwrap__ph::after { background: color-mix(in srgb, var(--surface-deep) 45%, transparent); }
  }
  /* 右上角的按鈕壓在照片上：加半透明深色底，照片再亮也看得清楚 */
  .mastwrap.hs-photo .mast-tools .dy-btn, .mastwrap.hs-photo .mast-tools .authbtn:not(.authbtn--primary),
  .mastwrap.has-sky .mast-tools .dy-btn { background-color: rgba(10, 34, 41, .66); }
  .mastwrap__cr { position: absolute; right: 16px; bottom: 3px; z-index: 2; font-size: 10px; line-height: 14px; color: rgba(255,255,255,.72);
                  text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
  .mastwrap__cr:hover { text-decoration: underline; }
  @media (max-width: 720px) { .mastwrap__cr { font-size: 9px; right: 8px; } .mastwrap__moon { display: none; } }
  /* 天氣疊在任何樣式上面（純深藍也看得到） */
  .mastwrap.has-sky[data-sky="fog"] { background:
      repeating-linear-gradient(180deg, rgba(220, 230, 234, .10) 0 12px, transparent 12px 26px),
      linear-gradient(180deg, rgba(90, 108, 116, .72), rgba(60, 76, 84, .80)),
      #2c3d44; }
  .mastwrap.has-sky[data-sky="night"] { background:
      radial-gradient(1.5px 1.5px at 62% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 71% 58%, #dfe9ff 99%, transparent),
      radial-gradient(1.5px 1.5px at 80% 34%, #fff 99%, transparent), radial-gradient(1px 1px at 88% 70%, #cfe0ff 99%, transparent),
      radial-gradient(1px 1px at 55% 64%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 94% 18%, #fff 99%, transparent),
      radial-gradient(1px 1px at 46% 30%, #dfe9ff 99%, transparent), radial-gradient(1px 1px at 76% 12%, #fff 99%, transparent),
      linear-gradient(180deg, rgba(6, 20, 38, .86), rgba(11, 33, 57, .9)),
      #061426; }
  .mastwrap.has-sky .masthead, .mastwrap.has-sky .viewnav { background: transparent; position: relative; z-index: 1; }
  .mastwrap.has-sky .viewnav { z-index: calc(var(--z-sticky, 100) + 5); }
  /* 月亮放在標誌與右邊按鈕之間：原本用 right: 34%，登入後右邊按鈕變寬（站長的名字），月亮就壓在「搜尋」上（使用者 2026-10-05） */
  .mastwrap__moon { position: absolute; left: 46%; top: 16px; width: 26px; height: 26px; border-radius: 50%; box-shadow: -7px 4px 0 0 #f4e7b8; z-index: 0; pointer-events: none; }
  @media (prefers-reduced-motion: reduce) { .mastwrap.is-deco { transition: none; } }
  @media (max-width: 720px) { .mastwrap__m { width: 75%; } .mast-sky { order: 3; } }
  /* 段落標題的線換成代表色 */
  .look-bands main .dy-sec__rule { background: var(--grp-c); height: 2px; opacity: .55; }
  /* 長頁面分段換底：同一頁的段落白底與淺底交替（背景延伸到兩側，但不產生橫向捲軸） */
  .look-alt main .shell > section.block:nth-of-type(even) {
    background: var(--surface-sunken); box-shadow: 0 0 0 100vmax var(--surface-sunken); clip-path: inset(-20px -100vmax);
    padding-block: 4px; }

  /* 人物的藝名／別名 */
  .pstory__photox { display: block; margin-top: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--stop); color: var(--stop);
                    background: none; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .pcard__aka { font-size: .72em; font-weight: 600; color: var(--ink-muted); margin-left: 2px; }
  .pstory__aka { margin: 2px 0 6px; font-size: 15px; } .pstory__aka b { font-weight: 800; }
  .pstory__akaev { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
  /* 馬祖數據 /data（2026-09-28） */
  .dlead { max-width: 70ch; color: var(--ink-muted); margin: 0 0 12px; }
  .dnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
  .dnav button { font: inherit; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px; border: 1px solid var(--line-strong);
                 border-radius: var(--radius-pill); background: none; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
  .dnav button:hover { background: var(--surface-sunken); }
  .dnav button[aria-selected="true"] { background: var(--surface-deep); color: var(--ink-deep); border-color: var(--surface-deep); }
  .dnav button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  button.dkpi { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
  button.dkpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
  button.dkpi:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .dkpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
  .dkpi { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 2px; }
  .dkpi__l { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
  .dkpi__v { margin: 0; font-family: var(--font-mono); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
  .dkpi__v span { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
  .dkpi__p { margin: 0; font-size: 12px; color: var(--ink-muted); }
  .dkpi__d { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
  .dkpi__d span { font-weight: 400; }
  .dkpi__d.is-up { color: var(--go); } .dkpi__d.is-down { color: var(--stop); }
  .dkpi__s { width: 100%; height: 24px; color: var(--tide); margin-top: 4px; }
  @media (max-width: 560px) {
    .dkpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .dkpi { padding: 10px 10px 6px; } .dkpi__v { font-size: 21px; } .dkpi__l { font-size: 12px; }
    .dkpi__d span { display: block; font-size: 11.5px; }
  }
  .dfail { font-size: 13px; color: var(--hold); margin: 10px 0 0; }
  .dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
  .dcard { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px 10px; min-width: 0; }
  .dcard h3 { margin: 0; font-size: 17px; }
  .dcard__sub { margin: 2px 0 8px; font-size: 13px; color: var(--ink-muted); }
  .dsrc { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-muted); }
  .dsrc a { color: inherit; }
  .dnote { margin: 8px 0 0; font-size: 13px; color: var(--ink-2, var(--ink)); }
  .sc__read { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 13px; min-height: 22px; }
  .sc__p { color: var(--ink-muted); }
  .sc__v b { font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
  .sc__v i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
  .sc__svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
  .sc-grid { stroke: var(--line); stroke-width: 1; }
  .sc-yt, .sc-xt { font-size: 11px; fill: var(--ink-muted); font-family: var(--font-mono); }
  .sc-hv { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 3; }
  .sc__range { display: flex; gap: 6px; margin-top: 4px; }
  .sc__range button { font: inherit; font-size: 12.5px; min-height: 32px; padding: 2px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
                      background: none; color: var(--ink); cursor: pointer; }
  .sc__range button[aria-pressed="true"] { background: var(--surface-deep); color: var(--ink-deep); border-color: var(--surface-deep); }
  .dtable { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; font-size: 14px; }
  .dtable th, .dtable td { text-align: right; padding: 5px 6px; border-bottom: 1px solid var(--line); }
  .dtable th:first-child, .dtable td:first-child { text-align: left; }
  .dtable th { font-size: 12px; color: var(--ink-muted); font-weight: 700; }
  .dtable .is-total td { font-weight: 700; }
  .dtable .is-minus { color: var(--stop); } .dtable .is-plus { color: var(--go); }
  .dbars { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .dbars li { display: grid; grid-template-columns: 5.5em 1fr 3em; gap: 8px; align-items: center; font-size: 13.5px; }
  .dbars i { display: block; height: 12px; border-radius: 3px; background: var(--tide); min-width: 2px; }
  .dbars b { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
  .dvill { margin-top: 10px; font-size: 13px; } .dvill summary { cursor: pointer; min-height: 32px; font-weight: 700; }
  .dcmp { margin-top: 6px; }
  .dcmp__t { margin: 12px 0 2px; font-size: 14px; }
  .dcmp__head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 4px 0 0; font-size: 14px; }
  .dcmp__head b { font-family: var(--font-mono); font-size: 18px; font-variant-numeric: tabular-nums; }
  .dcmp__rank { padding: 1px 10px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--tide); font-weight: 700; }
  .dcmp__rank b { color: inherit; }
  .dcmp__rank { display: inline-flex; align-items: center; gap: 4px; }
  .medal { flex: none; vertical-align: middle; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
  .dcmp__r .medal { display: block; margin-left: auto; }
  .dcmp__sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted); }
  .dcmp__all { margin-top: 6px; } .dcmp__all summary { cursor: pointer; min-height: 32px; font-size: 13px; font-weight: 700; color: var(--tide); }
  .dcmp__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .dcmp__list li { display: grid; grid-template-columns: 2em 4.5em 1fr 4.5em; gap: 6px; align-items: center; font-size: 13px; padding: 1px 4px; border-radius: 4px; }
  .dcmp__list li.is-me { background: var(--surface-tint); font-weight: 800; }
  .dcmp__list i { display: block; height: 10px; border-radius: 3px; background: var(--line-strong); min-width: 2px; }
  .dcmp__list li.is-me i { background: var(--tide); }
  .dcmp__list b { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
  .dcmp__r { color: var(--ink-muted); text-align: right; font-family: var(--font-mono); }
  /* 馬祖歷史 /history */
  .his__bar { position: sticky; top: 0; z-index: 6; margin: 12px 0 0; padding: 10px 14px 12px; border-radius: var(--radius-md); background: var(--surface-raised, #fff);
              box-shadow: 0 4px 14px rgba(0,0,0,.12); }
  .his__now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 30px; }
  .his__now b { font-size: 20px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  .his__era { padding: 1px 10px; border-radius: var(--radius-pill); color: #fff; font-size: 12px; font-weight: 800; }
  .his__t { font-size: 14px; font-weight: 700; color: var(--ink-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 200px; }
  .his__range { width: 100%; margin: 8px 0 4px; accent-color: var(--tide); height: 28px; cursor: grab; }
  .his__segs { display: flex; gap: 2px; height: 22px; }
  .his__seg { flex-basis: 0; min-width: 6px; border: 0; border-radius: 3px; padding: 0 4px; color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; overflow: hidden; opacity: .55; }
  .his__seg span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .his__seg.is-on { opacity: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
  .his__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 13px; }
  .his__count { margin-left: auto; color: var(--ink-muted); }
  .his__chip { padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
  .his__chip.is-on { background: var(--tide); border-color: var(--tide); color: var(--on-tide, #fff); }
  .his__list { position: relative; margin: 14px 0 0; padding-left: 22px; border-left: 3px solid var(--line); }
  .his__erahead { margin: 22px 0 10px -22px; padding: 4px 0 4px 16px; border-left: 6px solid; }
  .his__games { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .his__game { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; background: var(--c); color: #fff; text-decoration: none; min-height: 52px; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); }
  .his__game img { width: 64px; height: 42px; object-fit: cover; border-radius: 9px; }
  .his__game span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 800; font-size: 15px; }
  .his__game small { font-size: 11.5px; font-weight: 700; opacity: .85; }
  .his__game:hover { filter: brightness(1.08); }
  .his__erahead h3 { margin: 0; font-size: 20px; } .his__erahead p { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); max-width: 760px; }
  .his__ev { position: relative; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised, #fff); max-width: 820px; scroll-margin-top: 150px; }
  .his__ev::before { content: ""; position: absolute; left: -30px; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface, #fff); }
  .his__ev.is-key { border-color: var(--c); } .his__ev.is-key::before { width: 15px; height: 15px; left: -32px; }
  .his__ev.is-cur { box-shadow: 0 0 0 2px var(--c); }
  .his__y { margin: 0; font-size: 13px; font-weight: 800; color: var(--c); } .his__y span { color: var(--ink-muted); font-weight: 600; }
  .his__cert { margin-left: 6px; padding: 0 6px; border: 1px dashed var(--ink-muted); border-radius: 4px; font-size: 11px; }
  .his__ev h4 { margin: 2px 0 4px; font-size: 16px; }
  .his__txt { margin: 0; font-size: 14.5px; line-height: 1.75; }
  .his__ppl { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
  .his__src { margin: 6px 0 0; font-size: 12px; color: var(--ink-muted); } .his__src a { color: var(--ink-muted); }
  .his__h { margin: 0 0 10px; font-size: 18px; }
  .his__people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
  .his__person { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised, #fff); }
  .his__pn { margin: 0; } .his__pn span { font-size: 12.5px; color: var(--ink-muted); }
  .his__role { margin: 2px 0 4px; font-size: 13px; color: var(--tide); font-weight: 700; }
  .his__person .his__chip { margin-top: 6px; }
  @media (max-width: 600px) { .his__bar { margin-left: -4px; margin-right: -4px; } .his__seg span { display: none; } .his__list { padding-left: 16px; } .his__ev::before { left: -24px; } .his__ev.is-key::before { left: -26px; } .his__erahead { margin-left: -16px; } }
  /* 訂船票（示範版）/boat：一列查詢條件、班次併組排時間、寬螢幕右側固定摘要 */
  .bbpage .block { margin-top: 14px; padding-top: 14px; padding-bottom: 14px; }
  .bb__cta { position: sticky; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; align-items: center; gap: 10px; margin: 12px 0 0;
             padding: 8px 8px 8px 14px; border-radius: var(--radius-md); background: var(--surface-deep); color: var(--ink-deep); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
  .bb__cta p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.35; }
  .bb__cta a { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-md); background: var(--tide); color: var(--on-tide, #fff); font-weight: 800; text-decoration: none; font-size: 14px; }
  @media (max-width: 720px) { .bb__cta { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); } }
  @media (min-width: 1000px) { .bb__cta { display: none; } }
  .bb__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .bb__title h2 { margin: 0; font-size: 24px; }
  .bb__title p { flex: 1 1 320px; margin: 0; font-size: 13.5px; color: var(--ink-muted); }
  .bb__demo { padding: 2px 10px; border-radius: var(--radius-pill); background: #f2c14e; color: #3a2a00; font-size: 12px; font-weight: 800; }
  .bb__pick { margin: 0 0 16px; }
  .bb__legs { padding-top: 4px; }
  .bb__seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-tint); }
  .bb__seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
  .bb__seg button.is-on { background: var(--tide); color: var(--on-tide, #fff); }
  .bb__f { display: flex; flex-direction: column; gap: 3px; flex: 1 1 130px; min-width: 0; }
  .bb__f span { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
  .bb__f select, .bb__f input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
                                background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; }
  .bb__swap { flex: none; width: 40px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-raised, #fff); color: var(--tide); font-size: 18px; font-weight: 800; cursor: pointer; }
  .bb__swap:disabled { opacity: .35; cursor: not-allowed; }
  .bb__warn { margin: 10px 0 0; padding: 6px 12px; border-radius: var(--radius-md); background: var(--surface-tint); font-size: 13.5px; }
  /* 一定要 minmax(0, 1fr)：不寫的話這一欄會被裡面最寬的一列（日期列、港口列）撐開，手機上整頁比螢幕寬一倍
     （使用者 2026-10-05 回報：海圖、羅盤都被切掉右半邊） */
  .bb__grid { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
  .bb__main, .bb__pick, .bb__side { min-width: 0; }
  .bb__legs { display: grid; gap: 14px 28px; }
  @media (min-width: 900px) { .bb__legs.is-round { grid-template-columns: 1fr 1fr; } }
  .bb__leg h3 { margin: 0 0 6px; font-size: 16px; } .bb__leg h3 span { font-weight: 500; color: var(--ink-muted); font-size: 14px; }
  .bb__grp + .bb__grp { margin-top: 10px; }
  .bb__meta { margin: 0; font-size: 13px; color: var(--ink-muted); } .bb__meta b { color: var(--ink); margin-right: 6px; }
  .bb__note { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted); }
  .bb__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 6px; }
  .bb__time { min-height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised, #fff); color: var(--ink);
              font-family: var(--font-mono); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
  .bb__time.is-on { background: var(--tide); border-color: var(--tide); color: var(--on-tide, #fff); }
  .bb__time.is-gone { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
  .bb__none { margin: 0; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); font-size: 13.5px; }
  .bb__small { margin: 12px 0 0; font-size: 12px; color: var(--ink-muted); }
  .bb__side h3 { margin: 0 0 6px; font-size: 16px; }
  .bb__sum { margin: 0; display: grid; gap: 2px; font-size: 14px; }
  .bb__sum div { display: grid; grid-template-columns: 3em 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
  .bb__sum dt { color: var(--ink-muted); } .bb__sum dd { margin: 0; font-weight: 700; }
  .bb__open { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin-top: 12px; border-radius: var(--radius-md);
              background: var(--tide); color: var(--on-tide, #fff); font-size: 16px; font-weight: 800; text-decoration: none; }
  .bb__next { margin-top: 10px; font-size: 13px; } .bb__next summary { cursor: pointer; min-height: 32px; font-weight: 700; color: var(--tide); }
  .bb__next ol { margin: 4px 0; padding-left: 20px; line-height: 1.65; } .bb__next p { margin: 4px 0 0; color: var(--ink-muted); }
  .bb__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .bb__links a { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 700; background: var(--surface-raised, #fff); }
  @media (min-width: 1000px) {
    .bb__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 0 28px; align-items: start; }
    .bb__side { position: sticky; top: 12px; margin-top: 14px; padding: 16px 18px !important; background: var(--surface-raised, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-card); }
  }
  @media (max-width: 600px) {
    .bb__seg { grid-column: 1 / -1; justify-self: start; }
    .bb__dfull { grid-column: 1 / -1; } .bb__dl { grid-column: 1 / 2; } .bb__dr { grid-column: 2 / 4; }
    .bb__times { grid-template-columns: repeat(4, 1fr); }
  }
  .dins { border-left: 4px solid var(--tide); }
  .btm { margin-bottom: 14px; } .btm .dgrid { margin-top: 14px; }
  .btm__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 10px 0 6px; font-size: 14px; font-weight: 700; }
  .btm__ctl select { min-height: 38px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised, #fff); color: var(--ink); font: inherit; }
  .btm__moon { display: inline-flex; align-items: center; gap: 8px; } .btm__moon input { width: 160px; accent-color: var(--tide); } .btm__moon span { min-width: 3em; font-family: var(--font-mono); }
  .btm__tip { margin: 0 0 6px; padding: 6px 10px; border-radius: var(--radius-md); background: var(--surface-tint); font-size: 13.5px; }
  .fognow { border-left: 4px solid #6c8f3a; } .fognow.is-warn { border-left-color: #d9822b; } .fognow.is-bad { border-left-color: #b84a4a; }
  .fognow__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px 20px; margin-top: 6px; }
  .fognow__it { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--surface-tint); font-size: 14px; }
  .fognow__it.is-bad { background: rgba(184,74,74,.12); } .fognow__it small { color: var(--ink-muted); font-size: 12px; }
  .fogtabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
  .fogbt__plot { position: relative; height: 140px; margin-top: 8px; border-bottom: 1px solid var(--line-strong); }
  .fogbt__col { position: absolute; top: 0; bottom: 0; }
  .fogbt__bar { position: absolute; left: 15%; right: 15%; bottom: 0; background: rgba(90,110,140,.55); border-radius: 2px 2px 0 0; }
  .fogbt__dot { position: absolute; left: 50%; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: #0f6e78; }
  .fogbt__dot.is-bad { background: #b84a4a; width: 9px; height: 9px; margin: -4px 0 0 -4px; }
  .fogbt__thr { position: absolute; left: 0; right: 0; border-top: 1px dashed #b84a4a; }
  .fogbt__ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); font-family: var(--font-mono); }
  .shipmap { height: 360px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; isolation: isolate; }
  @media (max-width: 600px) { .shipmap { height: 300px; } }
  /* 班機與船班：電腦上一左一右，地圖同高、上緣對齊（使用者 2026-09-29） */
  @media (min-width: 1100px) {
    .livepair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; margin-bottom: var(--space-4); }
    .livepair__c { display: flex; flex-direction: column; }
    .livepair__c > .plain { flex: 1; margin-bottom: 0 !important; }
    .livepair .flightmap, .livepair .shipmap { height: 420px; margin-top: var(--space-3); box-sizing: border-box; }
    .livepair .shiplist { grid-template-columns: 1fr; }
  }
  .livepair__c { min-width: 0; }
  /* 航海圖風格的地圖：圖磚換色、米色紙感的標籤、羅盤 */
  .navchart { background: #dcecf2 !important; } .navchart .leaflet-tile-pane { filter: url(#navchart-f); }
  .navchart .isllabel { color: #4a3f25; font-family: var(--font-serif); font-size: 13.5px; text-shadow: 0 0 3px #fbf6e6, 0 0 3px #fbf6e6, 0 0 3px #fbf6e6; }
  .navchart .leaflet-control-attribution { background: rgba(255,252,240,.8); color: #5c5033; }
  .navrose { pointer-events: none; margin: 0 0 6px 6px !important; opacity: .92; }
  @media (max-width: 560px) { .navrose svg { width: 50px; height: 56px; } }
  .isllabel { font-size: 13px; font-weight: 800; color: #3d4a52; text-align: center; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; pointer-events: none; }
  .ship3d, .plane3d { display: block; pointer-events: auto; }
  /* 清單每一列左邊的模型圖（船或飛機） */
  .livemodel { flex: none; width: 56px; height: 56px; margin: -8px 2px -8px -6px; object-fit: contain; }
  .livemodel.is-idle { filter: saturate(.5); opacity: .8; }
  .planelist .plane.is-link { cursor: pointer; border-radius: 10px; }
  .planelist .plane.is-link:hover, .planelist .plane.is-on { background: var(--surface-sunken, #ece7de); }
  .leaflet-marker-icon.is-flash img { animation: shipflash 1.4s ease-out 2; }
  .ship3d.is-idle { filter: saturate(.55) brightness(1.03); }
  .shipmk { background: none; border: 0; }
  .shipico { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
  .shipdot { width: 10px; height: 10px; margin: 6px; border-radius: 50%; background: #7d8a8f; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
  .shiptip { font-size: 11.5px; font-weight: 700; padding: 1px 6px; } .shiptip.is-moving { color: #0f6e78; }
  .shiplist { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px 18px; font-size: 14px; }
  .shiplist li { display: flex; gap: 8px; align-items: flex-start; }
  .shiplist__ico { flex: none; display: inline-flex; margin-top: 2px; } .shiplist__route { font-size: 12.5px; color: var(--tide); }
  .faith__lead p { font-size: 16px; line-height: 1.8; max-width: 820px; margin: 0; }
  .faith__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
  .faith__stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised, #fff); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
  .faith__stat b { font-size: 26px; font-family: var(--font-mono); color: var(--tide); } .faith__stat span { font-size: 13px; color: var(--ink-muted); }
  .faith__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
  .faith__card { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised, #fff); }
  .faith__card h3 { margin: 0 0 6px; font-size: 16px; } .faith__card p { margin: 4px 0; font-size: 14.5px; line-height: 1.75; }
  .faith__aka { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
  .faith__role { color: var(--tide); font-weight: 700; font-size: 13.5px !important; }
  .faith__meta { font-size: 13px !important; color: var(--ink-muted); margin: 4px 0; }
  .faith__filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
  .faith__search { display: flex; gap: 8px; align-items: center; flex: 1 1 260px; }
  .faith__search input { flex: 1; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-raised, #fff); color: var(--ink); font: inherit; }
  .faithmap { height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; isolation: isolate; }
  @media (max-width: 600px) { .faithmap { height: 300px; } }
  .faith__list { display: flex; flex-direction: column; gap: 8px; }
  .faith__temple { border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius-md); background: var(--surface-raised, #fff); scroll-margin-top: 90px; }
  .faith__th { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; padding: 10px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .faith__th b { font-size: 16px; }
  .faith__isl { padding: 0 8px; border-radius: var(--radius-pill); background: var(--c); color: #fff; font-size: 12px; font-weight: 800; }
  .faith__badge { padding: 0 8px; border: 1px solid #b0651f; border-radius: var(--radius-pill); color: #b0651f; font-size: 12px; font-weight: 800; }
  .faith__tb { padding: 0 14px 12px; } .faith__tb p { margin: 4px 0; font-size: 14.5px; line-height: 1.75; }
  .faith__ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 6px 0 10px; }
  .faith__ph.is-one { grid-template-columns: 1fr; }
  @media (max-width: 600px) { .faith__ph { grid-template-columns: repeat(2, minmax(0, 1fr)); } .faith__ph.is-one { grid-template-columns: 1fr; } .faith__ph figcaption small { display: none; } .faith__ph figcaption small:first-of-type { display: block; } }
  .faith__ph figure { margin: 0; min-width: 0; }
  .faith__ph button { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; }
  .faith__ph.is-one button { aspect-ratio: 16 / 9; }
  .faith__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
  .faith__ph button:hover img { transform: scale(1.03); }
  .faith__ph figcaption { display: flex; flex-direction: column; gap: 1px; padding-top: 4px; font-size: 13px; line-height: 1.45; }
  .faith__ph figcaption small { font-size: 11.5px; color: var(--ink-muted); overflow-wrap: anywhere; } .faith__ph figcaption small a { color: inherit; }
  .faith__card .faith__ph { margin: 8px 0; }
  .faith__lead.has-ph { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  @media (max-width: 800px) { .faith__lead.has-ph { grid-template-columns: 1fr; } }
  .faith__th { display: grid !important; grid-template-columns: 88px minmax(0, 1fr); gap: 12px !important; align-items: center; }
  .faith__tthumb { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; display: block; }
  .faith__tthumb.is-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, transparent) 0 8px, color-mix(in srgb, var(--c) 16%, transparent) 8px 16px);
    color: color-mix(in srgb, var(--c) 55%, transparent); font-family: var(--font-serif, serif); font-size: 26px; font-weight: 800; }
  .faith__tt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .faith__tl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .faith__tm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 !important; }
  .faith__pc { font-size: 12px; color: var(--ink-muted); }
  @media (max-width: 600px) { .faith__th { grid-template-columns: 72px minmax(0, 1fr); } .faith__tthumb { width: 72px; height: 54px; } }
  .faith__card { display: flex; flex-direction: column; }
  /* 摘要卡片（2026-09-29，使用者：內容太長，卡片先簡單陳述，點開再看完整資訊；出處縮成圖示） */
  .faith__card .faith__cover { border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0; }
  .cc__t { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
  .cc__t:hover { color: var(--tide); text-decoration: underline; text-underline-offset: 3px; }
  .cc__lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cc__sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 !important; }
  .cc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
  .cc__more { appearance: none; border: 0; background: none; padding: 6px 0; min-height: 36px; font: inherit; font-weight: 800; color: var(--tide); cursor: pointer; }
  .srci { position: relative; display: inline-flex; }
  /* 放在區塊標題右邊的出處圖示：小視窗往下開（上面是頁面別的東西，往上會被蓋住） */
  .srcdown:not(.srcdown--up) .srci__pop { top: calc(100% + 6px); bottom: auto; } .srcdown:not(.srcdown--up) .srci__pop::after { top: auto; bottom: 100%; }
  .srcdown--up .srci__pop { left: 0; right: auto; }
  .livehead { position: relative; } .livehead__src { position: absolute; right: 0; top: 0; z-index: 5; background: var(--surface-raised, #fff); padding-left: 8px; border-radius: 999px; } .livehead .dy-sec__title, .livehead h2, .livehead h3 { padding-right: 96px; }
  .livefoot { margin-top: 10px; } .livefoot::after { content: ''; display: block; clear: both; }
  .livefoot > .srcdown { float: left; margin-right: 10px; }
  .livehow { font-size: 13.5px; color: var(--ink); }
  .livehow summary { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--ink-muted); cursor: pointer; list-style: none; }
  .livehow summary::-webkit-details-marker { display: none; } .livehow[open] summary { color: var(--tide); border-color: var(--tide); }
  .livehow ul { clear: both; list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 8px; border-radius: 12px; background: var(--surface-sunken, #f1ede5); position: relative; top: 8px; margin-bottom: 8px; }
  .livehow li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; line-height: 1.5; }
  .livehow__k { font-style: normal; justify-self: center; font-size: 12px; font-weight: 700; color: var(--tide); white-space: nowrap; }
  .livehow__k--dot { width: 34px; height: 10px; background: radial-gradient(circle at 5px 5px, #0c7078 4.5px, transparent 5px), radial-gradient(circle at 17px 5px, rgba(12,112,120,.55) 4.5px, transparent 5px), radial-gradient(circle at 29px 5px, rgba(12,112,120,.25) 4.5px, transparent 5px); }
  .livehow__k--dash { width: 36px; height: 0; border-top: 3px dashed #0c7078; }
  .srci__b { appearance: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 9px; border: 1px solid var(--line-strong);
             border-radius: 999px; background: none; color: var(--ink-muted); font: inherit; font-size: 12px; cursor: pointer; }
  .srci__b:hover, .srci.is-open .srci__b { color: var(--tide); border-color: var(--tide); }
  .srci__pop { display: none; position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 60; width: min(320px, 80vw); padding: 10px 12px;
               background: var(--surface-raised, #fff); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lift); font-size: 13px; line-height: 1.55; }
  .srci__pop::after { content: ''; position: absolute; right: 0; left: 0; top: 100%; height: 8px; }      /* 滑鼠從按鈕移到框的途中不會斷掉 */
  .srci:hover .srci__pop, .srci:focus-within .srci__pop, .srci.is-open .srci__pop { display: block; }
  .srci__pop b { display: block; margin-bottom: 4px; color: var(--ink-muted); font-size: 12px; }
  .srci__pop ul { margin: 0; padding-left: 18px; } .srci__pop li { margin: 2px 0; overflow-wrap: anywhere; }
  .ccd__src .srci__pop, .his__ev .srci__pop, .faith__lead .srci__pop, .faith__tb .srci__pop { left: 0; right: auto; }
  .ccd__t { margin: 10px 0 4px; font-size: 21px; }
  .ccd__p { font-size: 15.5px; line-height: 1.85; margin: 6px 0; }
  .ccd__src { margin-top: 12px; }
  .cul__full { margin-top: 8px; }
  .faith__cover { position: relative; margin: -12px -16px 12px; aspect-ratio: 16 / 10; background: var(--line); flex: none; overflow: hidden; min-height: 0; }
  .faith__cover button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
  .faith__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .faith__cover figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 18px 12px 7px;
    background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 12.5px; line-height: 1.35; pointer-events: none; }
  .faith__cover figcaption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
  .faith__cover figcaption small { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .faith__cover figcaption a { color: inherit; pointer-events: auto; }
  .faith__n { position: absolute; top: 8px; right: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; }
  .faith__cover.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 12px, color-mix(in srgb, var(--ink) 8%, transparent) 12px 24px); color: var(--ink-muted); }
  .faith__glyph { font-family: var(--font-serif, serif); font-size: 46px; font-weight: 800; line-height: 1; }
  .faith__cover.is-empty small { font-size: 12px; }
  /* 文化（2026-09-29） */
  .cul__en { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); letter-spacing: .02em; }
  .cul__tile { text-align: left; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; }
  .cul__tile:hover h3 { color: var(--tide); }
  @media (min-width: 900px) { .cul__grid.cul__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .cul__tile .faith__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cul__aspects { margin-top: 4px; }
  .cul__def { margin: 14px 0 4px; font-size: 15px; color: var(--ink-muted); }
  .cul__def b { color: var(--tide); }
  .cul__intro { font-size: 16px; line-height: 1.8; max-width: 860px; margin: 6px 0 12px; }
  .cul__secs { margin-top: 10px; }
  .cul__h { margin: 0 0 4px; font-size: 19px; }
  .cul__lead { margin: 0 0 12px; color: var(--ink-muted); font-size: 14.5px; }
  .cul__links { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 !important; }
  .cul__facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 6px 0; font-size: 13.5px; }
  .cul__facts div { display: contents; } .cul__facts dt { color: var(--ink-muted); font-weight: 700; } .cul__facts dd { margin: 0; }
  .cul__more { margin: 6px 0; border-top: 1px dashed var(--line); padding-top: 6px; }
  .cul__more summary { cursor: pointer; font-weight: 700; color: var(--tide); min-height: 32px; display: flex; align-items: center; }
  .cul__tablewrap { overflow-x: auto; margin: 6px 0; }
  .cul__table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
  .cul__table caption { text-align: left; font-weight: 700; padding: 4px 0; }
  .cul__table th, .cul__table td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
  .cul__table thead th { background: var(--surface-sunken, #f3f1ec); white-space: nowrap; }
  .cul__recipe h4, .cul__lyrics h4 { margin: 6px 0; font-size: 15px; }
  .cul__recipe ul, .cul__recipe ol { margin: 4px 0 8px; padding-left: 22px; font-size: 14px; line-height: 1.7; }
  .cul__muted { color: var(--ink-muted); font-size: 12.5px; font-weight: 500; }
  .cul__lygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; font-size: 14.5px; line-height: 1.6; }
  .cul__lygrid.is-one { grid-template-columns: 1fr; }
  .cul__lygrid b { font-size: 12px; color: var(--ink-muted); }
  .cul__ly { font-weight: 700; } .cul__gl { color: var(--ink-muted); }
  .cul__audio figure { margin: 6px 0; } .cul__audio audio { width: 100%; } .cul__audio figcaption { font-size: 12px; color: var(--ink-muted); }
  /* 生物誌 */
  .sp__groups { margin-top: 8px; }
  .sp__tools { flex-wrap: wrap; margin-top: 8px; }
  .sp__flt { display: flex; flex-wrap: wrap; gap: 6px; }
  .his__chip.is-on { background: var(--tide); color: #fff; border-color: var(--tide); }
  .sp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  @media (max-width: 480px) { .sp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .sp__card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius-md);
              background: var(--surface-raised, #fff); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
  .sp__card:hover { border-color: var(--tide); }
  .sp__card img, .sp__card .sp__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 6px; }
  .sp__ph { display: grid !important; place-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 10px, color-mix(in srgb, var(--ink) 8%, transparent) 10px 20px);
            color: var(--ink-muted); font-family: var(--font-serif, serif); font-size: 34px; font-weight: 800; }
  .sp__far { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; }
  .sp__zh { padding: 0 10px; font-weight: 800; font-size: 15px; }
  .sp__sci { padding: 0 10px; font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sp__bs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; }
  .sp__b { padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink-muted); }
  .sp__b--prot { border-color: #b84a4a; color: #b84a4a; } .sp__b--end { border-color: #0f6e78; color: #0f6e78; }
  .sp__st { padding: 0 10px; font-size: 12px; color: var(--ink-muted); }
  .sp__modal { touch-action: none; position: fixed; inset: 0; z-index: 3000; background: rgba(10,20,25,.55); display: grid; place-items: center; padding: 16px; }
  .sp__sheet { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface-raised, #fff); border-radius: 14px; padding: 0 18px 16px; }
  .sp__big { width: calc(100% + 36px); margin: 0 -18px 6px; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
  .sp__x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; cursor: pointer; }
  .sp__credit { font-size: 12px; color: var(--ink-muted); margin: 0 0 6px; }
  /* ── 生物誌卡牌（2026-09-29）：N 白框、R 銀框＋淡光、SR 金框＋金色星屑閃卡、UR 彩虹閃卡。傾斜與光點位置由 JS 寫進 --rx --ry --mx --my ── */
  .sp__hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 8px; }
  @media (max-width: 700px) { .sp__hero { grid-template-columns: 1fr; } .sp__daily { width: 200px; margin: 0 auto; } }
  .sp__dl { margin: 0 0 6px; font-weight: 800; color: var(--tide); letter-spacing: .1em; }
  .sp__collect { display: grid; gap: 4px; margin: 10px 0; max-width: 520px; }
  .sp__bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; } .sp__bar i { display: block; height: 100%; background: linear-gradient(90deg, #0f6e78, #d8a23a); }
  .sp__collect small { color: var(--ink-muted); }
  .sp__rk { display: flex; flex-wrap: wrap; gap: 6px; }
  .sp__rkb { appearance: none; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-size: 13px; padding: 5px 12px; min-height: 36px; cursor: pointer; }
  .sp__rkb b { font-family: var(--font-mono); }
  .sp__rkb--SR b { color: #a4741d; } .sp__rkb--R b { color: #6f7b88; } .sp__rkb--UR b { background: linear-gradient(90deg, #e2583e, #d9a300, #2aa36b, #2b7de0, #9b4fd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
  /* 選中要一眼看得出來（使用者 2026-09-30：只有綠框不明顯）：整顆填滿、白字、打勾 */
  .sp__rkb.is-on { background: var(--tide); border-color: var(--tide); color: #fff; box-shadow: 0 2px 8px rgba(12,112,120,.35); }
  .sp__rkb.is-on b { color: #fff !important; background: none !important; -webkit-text-fill-color: #fff; }
  .sp__rkb.is-on::before { content: '✓ '; font-weight: 900; }
  .sp__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px 14px; }
  @media (max-width: 480px) { .sp__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } }
  .sp__cardbtn { appearance: none; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; perspective: 900px; }
  .spc, .spc * { box-sizing: border-box; }
  .spc { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --hyp: 0; position: relative; aspect-ratio: 63 / 88; border-radius: 4.5% / 3.2%; padding: 4.2%;
         container-type: inline-size; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
         background: linear-gradient(145deg, #eeeae0, #cfc8b8); box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 10px 22px -12px rgba(0,0,0,.35); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .spc.is-tilt { transition: transform .06s linear; box-shadow: 0 6px 16px rgba(0,0,0,.25), 0 22px 40px -16px rgba(0,0,0,.45); }
  .spc--big { touch-action: none; cursor: grab; }
  .spc--big.is-drag { cursor: grabbing; transition: transform .03s linear; transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1.04); }
  .sp__flip { perspective: 900px; }
  .spc--R { background: linear-gradient(135deg, #f3f5f7 0%, #9aa6b2 28%, #eef1f4 50%, #86919d 72%, #f1f3f6 100%); }
  .spc--SR { background: linear-gradient(135deg, #fff2b8 0%, #c79a3a 25%, #fff6cf 48%, #a8761e 70%, #f7df8a 100%); }
  .spc--UR { background: conic-gradient(from 210deg at 50% 50%, #ff8a7a, #ffd36b, #b9f27a, #6fe3ff, #8aa3ff, #e08aff, #ff8a7a); }
  .spc__in { position: relative; height: 100%; display: flex; flex-direction: column; gap: 2cqw; border-radius: 3.4% / 2.4%; padding: 4cqw; overflow: hidden; line-height: 1.3;
             background: linear-gradient(180deg, #fbf8f1, #efe8d8); color: #2a2622; }
  .spc--R .spc__in { background: linear-gradient(180deg, #f9fbfc, #e4e9ee); }
  .spc--SR .spc__in { background: linear-gradient(180deg, #fffaf0, #f3e3bf); }
  .spc--UR .spc__in { background: linear-gradient(180deg, #fdfbff, #ece6f7); }
  .spc__top { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
  .spc__name { font-weight: 900; font-size: 9.5cqw; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .spc__glyph { flex: none; display: flex; align-items: center; justify-content: center; width: 11cqw; height: 11cqw; border-radius: 50%; background: #2a2622; color: #fff;
                 font-size: 6cqw; font-weight: 900; line-height: 1; padding: 0; text-align: center; box-shadow: inset 0 0 0 .5cqw rgba(255,255,255,.25); }
  .spc--SR .spc__glyph { background: linear-gradient(135deg, #b8862b, #7a5410); } .spc--UR .spc__glyph { background: linear-gradient(135deg, #e2583e, #9b4fd6); }
  .spc__stars { display: flex; justify-content: flex-end; gap: .6cqw; margin-top: -1cqw; color: #d9a300; font-size: 6.2cqw; line-height: 1; text-shadow: 0 1px 0 #7a5410; }
  .spc--N .spc__stars { color: #9a8f7a; text-shadow: none; } .spc--R .spc__stars { color: #8c99a6; text-shadow: 0 1px 0 #fff; }
  .spc__art { position: relative; flex: none; aspect-ratio: 10 / 7; border: .8cqw solid #fff; border-radius: 1.2cqw; overflow: hidden; background: #cfd6d0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.25); }
  .spc--SR .spc__art { border-color: #e9c96c; } .spc--UR .spc__art { border-color: #fff; box-shadow: 0 0 0 .6cqw rgba(155,79,214,.35); }
  .spc__art img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
  .spc__ph { display: grid; place-items: center; height: 100%; font-size: 20cqw; font-weight: 900; color: rgba(0,0,0,.25); }
  .spc__far { position: absolute; left: 2cqw; bottom: 2cqw; padding: .4cqw 2.4cqw; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 4.6cqw; }
  .spc__type { font-size: 5.2cqw; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .spc__type i { font-weight: 500; margin-left: 1cqw; color: #6b645a; }
  .spc__box { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1cqw; border: .5cqw solid rgba(0,0,0,.12); border-radius: 1.4cqw; padding: 2.4cqw 3cqw;
               background: rgba(255,255,255,.6); font-size: 5cqw; line-height: 1.4; overflow: hidden; }
  .spc__where { display: flex; gap: 1.6cqw; align-items: center; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .spc__where span { flex: none; padding: .2cqw 1.8cqw; border-radius: 1cqw; background: #2a2622; color: #fff; font-size: 4.2cqw; font-weight: 800; }
  .spc--SR .spc__where span { background: #a4741d; } .spc--UR .spc__where span { background: #7b4fc0; } .spc--R .spc__where span { background: #6f7b88; }
  .spc__box p { margin: 0; } .spc__flav { color: #5a5248; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .spc__foot { display: flex; align-items: center; gap: 1.6cqw; font-size: 4.4cqw; line-height: 1; min-height: 8cqw; }
  .spc__grade { display: inline-flex; align-items: center; height: 7.4cqw; padding: 0 2.4cqw; border-radius: 99px; font-weight: 800; border: .4cqw solid currentColor; white-space: nowrap; background: rgba(255,255,255,.7); }
  .spc__grade--confirmed { color: #0f6e78; } .spc__grade--verified { color: #3b6fc8; } .spc__grade--few { color: #9a7b3a; }
  .spc__prot { color: #b84a4a; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .spc__rk { margin-left: auto; font-family: var(--font-mono); font-weight: 900; font-size: 6.4cqw; letter-spacing: .02em; }
  .spc--UR .spc__rk { background: linear-gradient(90deg, #e2583e, #d9a300, #2aa36b, #2b7de0, #9b4fd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .spc--SR .spc__rk { color: #a4741d; }
  .spc__seen { position: absolute; top: -2%; right: -2%; z-index: 3; width: 13cqw; height: 13cqw; display: grid; place-items: center; border-radius: 50%; background: #0f6e78; color: #fff; font-weight: 900; font-size: 7cqw; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
  .spc__holo, .spc__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
  .spc__box, .spc__type, .spc__foot, .spc__top { position: relative; z-index: 3; }
  .spc__glare { background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.35) 0%, rgba(255,255,255,.06) 28%, transparent 55%); mix-blend-mode: overlay; opacity: 0; transition: opacity .3s; }
  .spc.is-tilt .spc__glare { opacity: 1; }
  .spc__holo { opacity: 0; transition: opacity .3s; }
  /* R：一道銀色光帶隨角度掃過 */
  .spc--R .spc__holo { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.7) 46%, rgba(210,225,240,.55) 50%, transparent 64%);
                       background-size: 260% 260%; background-position: var(--mx) var(--my); mix-blend-mode: soft-light; }
  .spc--R.is-tilt .spc__holo { opacity: 1; }
  /* SR：金色星屑＋斜向金光 */
  .spc--SR .spc__holo { background:
      radial-gradient(circle at 20% 30%, rgba(255,247,200,.9) 0 .7%, transparent 1.4%), radial-gradient(circle at 70% 18%, rgba(255,247,200,.9) 0 .6%, transparent 1.2%),
      radial-gradient(circle at 82% 64%, rgba(255,247,200,.9) 0 .8%, transparent 1.5%), radial-gradient(circle at 34% 78%, rgba(255,247,200,.9) 0 .6%, transparent 1.2%),
      radial-gradient(circle at 55% 48%, rgba(255,247,200,.8) 0 .5%, transparent 1.1%),
      repeating-linear-gradient(115deg, rgba(255,215,120,0) 0%, rgba(255,215,120,.55) 6%, rgba(255,250,220,.75) 9%, rgba(255,200,90,0) 15%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 300% 300%;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, var(--mx) var(--my); mix-blend-mode: soft-light; }
  .spc--SR .spc__holo { opacity: .3; -webkit-mask: linear-gradient(#000, #000) exclude, linear-gradient(#000 0 0) 50% 32% / 86% 44% no-repeat; mask: linear-gradient(#000, #000) exclude, linear-gradient(#000 0 0) 50% 32% / 86% 44% no-repeat; }
  .spc--SR.is-tilt .spc__holo { opacity: .45; }
  /* UR：彩虹全像，靜止時也慢慢流動 */
  .spc--UR .spc__holo { background:
      repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px),
      repeating-linear-gradient(110deg, #ff7773 0%, #ffed5f 7%, #a8ff5f 14%, #83fff7 21%, #7894ff 28%, #d875ff 35%, #ff7773 42%),
      radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.6), transparent 50%);
    background-size: 100% 100%, 400% 400%, 100% 100%; background-position: 0 0, var(--mx) var(--my), 0 0; mix-blend-mode: soft-light; opacity: .35;
    -webkit-mask: linear-gradient(#000, #000) exclude, linear-gradient(#000 0 0) 50% 32% / 86% 44% no-repeat; mask: linear-gradient(#000, #000) exclude, linear-gradient(#000 0 0) 50% 32% / 86% 44% no-repeat; }
  .spc--UR.is-tilt .spc__holo { opacity: .4; }
  /* 照片上另外一層很淡的彩虹（不蓋掉照片的顏色） */
  .spc--UR .spc__art::after, .spc--SR .spc__art::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.55) 45%, rgba(190,160,255,.35) 52%, transparent 70%); background-size: 250% 250%; background-position: var(--mx) var(--my); mix-blend-mode: soft-light; }
  .spc.is-tilt .spc__art::after { opacity: 1; }
  @keyframes spholo { 0% { background-position: 0 0, 0% 30%, 0 0; } 50% { background-position: 0 0, 100% 70%, 0 0; } 100% { background-position: 0 0, 0% 30%, 0 0; } }
  @media (prefers-reduced-motion: reduce) { .spc--UR .spc__holo { animation: none !important; } .spc { transition: none; } }
  /* ── 保育等級的閃卡差異（2026-09-30 第二版，使用者：一、二級效果看得眼花、拖動卡頓）──
     全部改成靜態：不再旋轉、流動、呼吸、閃爍；差別靠框的材質與星光多寡，傾斜時光澤才會動 */
  .spc__spark { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s; }
  .spc__ribbon { position: absolute; top: 2cqw; right: -1cqw; padding: .6cqw 3cqw; border-radius: 1cqw 0 0 1cqw; font-size: 4.4cqw; font-weight: 900; color: #5a2d00;
                 background: linear-gradient(90deg, #fff1b0, #f5c542, #fff6cf); box-shadow: 0 1px 3px rgba(0,0,0,.35); letter-spacing: .08em; }
  /* SR 二級：金框＋照片細金箔紋 */
  .spc--SR.spc--p2 { background: linear-gradient(135deg, #fff6cf 0%, #d4a53c 20%, #fff9e3 40%, #b88420 60%, #ffe9a0 80%, #c2922b 100%); }
  .spc--SR.spc--p2 .spc__art::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .15;
    background: repeating-linear-gradient(45deg, rgba(255,230,150,.9) 0 1px, transparent 1px 5px); mix-blend-mode: soft-light; }
  /* UR 三級：細斜紋星屑，只在傾斜時出現 */
  .spc--UR.spc--p3 .spc__spark { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(255,255,255,.5) 3px 4px, transparent 4px 9px); mix-blend-mode: overlay;
    -webkit-mask: linear-gradient(#000, #000) exclude, linear-gradient(#000 0 0) 50% 32% / 86% 44% no-repeat; mask: linear-gradient(#000, #000) exclude, linear-gradient(#000 0 0) 50% 32% / 86% 44% no-repeat; }
  .spc--UR.spc--p3.is-tilt .spc__spark { opacity: .8; }
  /* UR 二級：彩虹框（靜止）＋四顆小星＋名字彩虹漸層 */
  .spc--UR.spc--p2 { background: linear-gradient(120deg, #ff8a7a, #ffd36b, #b9f27a, #6fe3ff, #8aa3ff, #e08aff); }
  .spc--UR.spc--p2 .spc__spark { opacity: .35; background:
      radial-gradient(circle at 10% 16%, #fff 0 .6cqw, transparent 1.2cqw), radial-gradient(circle at 90% 12%, #fff 0 .5cqw, transparent 1cqw),
      radial-gradient(circle at 86% 74%, #fff 0 .6cqw, transparent 1.2cqw), radial-gradient(circle at 14% 86%, #fff 0 .5cqw, transparent 1cqw); }
  .spc--UR.spc--p2 .spc__name, .spc--UR.spc--p1 .spc__name { background: linear-gradient(90deg, #d2432b, #c99400, #1f9a60, #2466c8, #8a3fc7);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  /* UR 一級：金色與彩虹雙層框（靜止）、金色名字、一級保育緞帶、柔和外光、星光稍多 */
  .spc--UR.spc--p1 { background: conic-gradient(from 200deg, #fff3b0, #ffb86b, #ff7aa8, #b98bff, #6fd3ff, #8cf5b0, #fff3b0);
    box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 0 14px rgba(255,200,100,.45); }
  .spc--UR.spc--p1 .spc__in { background: linear-gradient(180deg, #fffdf4, #f6ecd2); box-shadow: inset 0 0 0 .8cqw rgba(232,177,0,.5); }
  .spc--UR.spc--p1 .spc__art { border-color: #f5d06a; box-shadow: 0 0 0 .6cqw rgba(245,197,66,.45); }
  .spc--UR.spc--p1 .spc__name { background-image: linear-gradient(90deg, #a86a00, #d9a300, #b8860b); }
  .spc--UR.spc--p1 .spc__stars { color: #d9a300; text-shadow: 0 1px 0 #7a5410; }
  .spc--UR.spc--p1 .spc__glyph { background: linear-gradient(135deg, #e8b100, #b8860b); }
  .spc--UR.spc--p1 .spc__spark { opacity: .4; background:
      radial-gradient(circle at 8% 10%, #fff 0 .7cqw, transparent 1.4cqw), radial-gradient(circle at 92% 8%, #fff 0 .6cqw, transparent 1.2cqw),
      radial-gradient(circle at 88% 78%, #fff 0 .7cqw, transparent 1.4cqw), radial-gradient(circle at 10% 88%, #fff 0 .6cqw, transparent 1.2cqw),
      radial-gradient(circle at 50% 97%, #fff9d0 0 .5cqw, transparent 1cqw), radial-gradient(circle at 97% 50%, #fff 0 .5cqw, transparent 1cqw); }
  /* 拖動時關掉耗效能的混色層，拖起來才順 */
  .spc.is-drag .spc__spark, .spc.is-drag .spc__art::before { display: none; }
  .sp__cardbtn:focus-visible .spc { outline: 3px solid var(--tide); outline-offset: 3px; }
  /* 回到鐵板（遊戲頁與遊戲本體 .tbg，2026-10-01） */
  .tbh__hero { display: grid; gap: 12px; }
  /* 遊戲頁封面（2026-10-03 使用者：每個遊戲頁面也要有封面圖；圖同走進歷史卡片） */
  /* 2026-10-08 使用者：封面太高（電腦上一張就佔滿畫面）；改成橫幅又把圖切得不好看（燈塔沒了底座、船沒了船身）。
     這幾張圖本來就畫滿整個畫面，怎麼裁都會少東西 → 不裁：電腦上封面放左邊、介紹與進入遊戲放右邊，手機整張疊在上面 */
  .tbh__cover { display: block; width: 100%; height: auto; aspect-ratio: 720 / 468; object-fit: cover; border-radius: 18px; margin: 4px 0 18px;
    box-shadow: 0 14px 30px -18px rgba(0,0,0,.55); background: #1d2f4a; }
  @media (min-width: 900px) {
    .tbh:has(> .tbh__cover:not([hidden])) { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 32px; align-items: start; }
    .tbh:has(> .tbh__cover:not([hidden])) > * { grid-column: 1 / -1; }
    .tbh:has(> .tbh__cover:not([hidden])) > .tbh__cover { grid-column: 1; grid-row: 2 / span 2; margin: 4px 0 0; }
    .tbh:has(> .tbh__cover:not([hidden])) > .tbh__his { grid-column: 2; grid-row: 2; margin: 4px 0 10px; justify-self: start; }
    .tbh:has(> .tbh__cover:not([hidden])) > .tbh__hero { grid-column: 2; grid-row: 3; }
    .tbh:has(> .tbh__cover:not([hidden])) > .cul__intro { grid-column: 2; grid-row: 3; margin-top: 0; }   /* 服裝那一頁：介紹直接放在右邊，下面整排是挑服裝 */
    .tbh:has(> .cul__intro) > .tbh__cover { margin-bottom: 22px; }
  }
  @media (max-width: 720px) { .tbh__cover { border-radius: 14px; margin-bottom: 14px; } }
  /* 上線排程（2026-10-04） */
  .lnch { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.5; vertical-align: 2px; white-space: nowrap; }
  .lnch--soon { background: #f2c14e; color: #4a3500; } .lnch--new { background: #d9573f; color: #fff; } .lnch--hid { background: #5d6c70; color: #fff; }
  .lnch--big { font-size: 14px; padding: 4px 14px; margin: 0 0 8px; }
  .lnch-teaser { text-align: center; padding: 40px 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .lnch-teaser h2 { font-family: var(--font-serif); font-size: clamp(26px, 6vw, 36px); margin: 0; }
  .lnch-teaser__d { color: var(--ink-muted); max-width: 32em; } .lnch-teaser__n { max-width: 32em; font-weight: 700; } .lnch-teaser__at { font-size: 18px; font-weight: 800; color: var(--tide, #0c6e77); }
  .lnch-staff { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff4d6; color: #5a4200; font-size: 14px; border: 1px dashed #c9a35a; }
  .lnch-staff a { margin-left: 8px; font-weight: 800; }
  .viewas { position: fixed; z-index: 3000; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px;
    padding: 4px 4px 4px 14px; border-radius: 999px; background: rgba(18,49,58,.94); color: #fff; font-size: 13px; line-height: 1.3; box-shadow: 0 8px 20px rgba(0,0,0,.3);
    max-width: calc(100% - 24px); white-space: nowrap; box-sizing: border-box; }
  .viewas.is-public { background: rgba(155,52,36,.95); }
  .viewas__t { flex: none; }
  .viewas button { flex: none; border: 0; border-radius: 999px; background: #f2c14e; color: #3a2a00; font: inherit; font-weight: 800; min-height: 36px; padding: 0 14px; cursor: pointer; white-space: nowrap; }
  .viewas__s { display: none; }
  @media (max-width: 720px) {
    /* 手機：縮成右下角一顆小膠囊，靠右不擋中間的內容 */
    .viewas { left: auto; right: 12px; transform: none; bottom: calc(126px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; gap: 6px; padding-left: 10px; }
    .viewas__l { display: none; } .viewas__s { display: inline; }
    .viewas button { min-height: 32px; padding: 0 10px; }
  }
  @media (min-width: 721px) { .viewas { bottom: 70px; } }
  .tbh__his { display: inline-block; margin: -8px 0 14px; font-size: 14px; font-weight: 700; color: var(--tide, #0c6e77); }
  .tbh__go { min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px; background: linear-gradient(90deg, #7a2e1f, #a3452c); color: #fff3e0; font: 900 20px var(--font-serif); cursor: pointer; box-shadow: 0 6px 18px -6px rgba(122,46,31,.6); }
  .tbh__note { font-size: 13px; color: var(--ink-muted); }
  .tbh__stage, .tbh__stage.tbg { position: fixed; inset: 0; z-index: 5000; background: #0e1a20; }
  .tbg { position: relative; overflow: hidden; color: #fff; font-family: var(--font-sans); touch-action: none; user-select: none; -webkit-user-select: none; }
  .tbg__gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; filter: sepia(.18) saturate(.92) contrast(1.02); }
  .tbg.is-shake .tbg__gl { animation: tbshake .3s; } @keyframes tbshake { 25% { transform: translate(6px,-4px); } 50% { transform: translate(-5px,3px); } 75% { transform: translate(3px,5px); } }
  .tbg__loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; background: #0e1a20; } .tbg__loading b { font: 900 30px var(--font-serif); }
  .tbg__ui { position: absolute; inset: 0; pointer-events: none; }
  .tbg__ui > * { pointer-events: auto; }
  .tbg__top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(10px, env(safe-area-inset-top)) 10px 0; pointer-events: none; }
  .tbg__top > * { pointer-events: auto; }
  .tbg__clock { background: rgba(20,24,20,.62); border-radius: 12px; padding: 6px 10px; display: grid; } .tbg__clock b { font-size: 16px; } .tbg__clock span { font-size: 12px; color: #cfe; }
  .tbg__btns { display: flex; background: rgba(20,24,20,.66); border-radius: 14px; padding: 3px; gap: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
  .tbg__btns button { width: 50px; height: 48px; border: 0; border-radius: 11px; background: transparent; color: #fff; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
  .tbg__btns button i { font-style: normal; font-size: 18px; line-height: 1; }
  .tbg__btns button span { font: 600 10.5px var(--font-sans); letter-spacing: .02em; opacity: .9; white-space: nowrap; }
  .tbg__btns button:hover, .tbg__btns button:focus-visible { background: rgba(255,255,255,.14); }
  .tbg__btns button.is-on { background: #ffd36b; color: #3b2a1a; }
  .tbg__btns .tbg__exit { margin-left: 4px; position: relative; } .tbg__btns .tbg__exit::before { content: ''; position: absolute; left: -4px; top: 10px; bottom: 10px; width: 1px; background: rgba(255,255,255,.25); }
  .tbg__clock { min-height: 54px; box-sizing: border-box; align-content: center; }
  @media (max-width: 420px) { .tbg__btns button { width: 44px; } .tbg__btns button span { font-size: 9.5px; } .tbg__clock { padding: 6px 8px; } .tbg__clock b { font-size: 15px; } .tbg__clock span { font-size: 11px; } .tbg__top { gap: 6px; } }
  .tbg__goal { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 64px); left: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); background: rgba(60,40,20,.78); border-radius: 10px; padding: 6px 12px; font-size: 14px; display: none; pointer-events: none; }
  .tbg__goal.is-on { display: block; } .tbg__goal b { color: #ffd36b; }
  .tbg__labels { position: absolute; inset: 0; pointer-events: none; }
  .tbg__lb { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,.5); pointer-events: none; }
  .tbg__lb--place { background: rgba(122,46,31,.8); font-family: var(--font-serif); font-size: 13px; } .tbg__lb i { font-style: normal; margin-right: 3px; }
  /* 九點以後（回到鐵板的夜晚模式） */
  .tbg__alarm.is-cine b, .tbg__alarm.is-cine span { opacity: 0; }
  .tbg__ask { position: absolute; inset: 0; z-index: 32; display: none; align-items: flex-end; justify-content: center; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); background: rgba(5,8,14,.35); }
  .tbg__ask.is-on { display: flex; }
  .tbg__askbox { box-sizing: border-box; width: min(460px, 100%); background: #f4e9cf; color: #3b2a1a; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
  .tbg__askbox b { color: #7a2e1f; } .tbg__askbox p { margin: 0; font-size: 16px; }
  .tbg__askopts { display: flex; gap: 8px; flex-wrap: wrap; }
  .tbg__askopts button { flex: 1; min-width: 90px; border: 0; border-radius: 999px; padding: 12px; font-weight: 800; font-size: 16px; background: #3b2a1a; color: #f4e9cf; cursor: pointer; }
  .tbg__flash { position: absolute; right: 14px; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 6; border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 800; background: rgba(20,24,30,.78); color: #ffe9b0; cursor: pointer; }
  .tbg__flash.is-far { background: #b3271f; color: #fff; }
  .tbg__meter { position: absolute; left: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 4px); transform: translateY(54px); z-index: 5; display: none; }
  .tbg__meter { display: flex; align-items: center; gap: 6px; position: absolute; right: 14px; left: auto; top: auto; transform: none; bottom: calc(160px + env(safe-area-inset-bottom)); color: #ffe9b0; font-size: 12px; font-weight: 700; }
  .tbg__meter i { width: 90px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.5); overflow: hidden; } .tbg__meter b { display: block; height: 100%; width: 0; }
  .tbg__srcl { margin: 0; padding-left: 1.2em; text-align: left; font-size: 13px; }
  /* 穿上阿嬤那個年代（/costume） */
  .cos { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
  .cos__load { padding: 40px; text-align: center; color: var(--muted, #667); }
  .cos__pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .cos__th { flex: 0 0 auto; width: 78px; scroll-snap-align: start; border: 2px solid transparent; border-radius: 10px; background: var(--surface-raised, #fff); padding: 3px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: inherit; }
  .cos__th img { width: 100%; aspect-ratio: 208 / 304; object-fit: cover; border-radius: 7px; }
  .cos__th.is-on { border-color: #9a2b1f; }
  .cos__main { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
  @media (max-width: 720px) { .cos__main { grid-template-columns: minmax(0, 1fr); } }
  .cos__stage img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  .cos__side { display: flex; flex-direction: column; gap: 10px; }
  .cos__side h3 { margin: 0; font-family: var(--font-serif); font-size: 24px; }
  .cos__side p { margin: 0; line-height: 1.75; }
  .cos__who { color: #9a2b1f; font-weight: 700; }
  .cos__src, .cos__note, .cos__tip { font-size: 12.5px; opacity: .8; }
  .cos__up { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-raised, #fff); border: 1px solid rgba(0,0,0,.08); }
  .cos__quota b { font-size: 18px; color: #9a2b1f; }
  .cos__ck { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
  .cos__ck input { margin-top: 4px; }
  .cos__file { display: block; }
  .cos__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .cos__file span { display: block; text-align: center; padding: 13px; border-radius: 999px; background: #9a2b1f; color: #fff; font-weight: 800; cursor: pointer; }
  .cos__file input:focus-visible + span { outline: 3px solid #e2a54a; }
  .cos__msg { min-height: 1.4em; font-weight: 700; color: #9a2b1f; }
  .cos__styles, .cos__acts { display: flex; gap: 8px; flex-wrap: wrap; }
  .cos__styles button, .cos__acts button { border: 1px solid #9a2b1f; background: transparent; color: #9a2b1f; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
  .cos__styles button.is-on, .cos__dl { background: #9a2b1f !important; color: #fff !important; }
  .tbg__lb--mem { background: rgba(40,70,110,.82); font-family: var(--font-serif); font-size: 13px; }
  .tbg__lb--bump { background: #fffaf0; color: #7a2e1f; font-size: 14px; border: 2px solid #7a2e1f; border-radius: 12px; animation: tbgBump .3s ease-out; }
  .tbg__lb--stern { background: #3b4a2f; color: #fff; border-color: #1f2a18; font-size: 15px; }
  @keyframes tbgBump { 0% { scale: .4 } 70% { scale: 1.15 } 100% { scale: 1 } }
  .tbg__map { position: absolute; inset: 0; z-index: 30; display: none; background: rgba(20,16,12,.55); padding: 14px; }
  .tbg__map.is-on { display: flex; align-items: center; justify-content: center; }
  .tbg__mapin { width: min(980px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; background: #f3ead6; border: 3px solid #3b2a1a; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); overflow: hidden; }
  .tbg__maphd { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 2px solid #3b2a1a; color: #3b2a1a; font-family: var(--font-serif); flex-wrap: wrap; }
  .tbg__maphd b { font-size: 18px; }
  .tbg__maplg { font-size: 12px; flex: 1; font-family: var(--font-sans); } .tbg__maplg i { font-style: normal; margin-left: 4px; }
  .tbg__maplg .d-me { color: #d0342c; } .tbg__maplg .d-npc { color: #2f5d8a; } .tbg__maplg .d-shop { color: #8a5a3a; } .tbg__maplg .d-in { color: #d9a441; } .tbg__maplg .d-tg { color: #e0a800; }
  .tbg__mapx { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: #3b2a1a; color: #fff; font-size: 18px; cursor: pointer; }
  .tbg__mapin canvas { flex: 1; width: 100%; min-height: 0; display: block; cursor: grab; }
  .tbg__mapin { position: relative; }
  .tbg__mapzm { position: absolute; right: 12px; bottom: 44px; display: flex; flex-direction: column; gap: 6px; }
  @media (max-width: 600px) { .tbg__mapzm { bottom: 96px; } .tbg__map { padding: 8px; } }
  .tbg__mapzm button { width: 44px; height: 44px; border: 2px solid #3b2a1a; border-radius: 8px; background: #f3ead6; color: #3b2a1a; font-size: 20px; font-weight: 700; cursor: pointer; }
  .tbg__mapft { margin: 0; padding: 6px 12px; font-size: 12px; color: #5a4a3a; border-top: 1px solid #c9b48a; }
  .tbg__lb--obj { background: rgba(60,45,30,.72); font-size: 11px; font-weight: 600; }
  /* 回到鐵板・主線：章節標題、黑幕字卡、擲筊、結局 */
  .tbg__chap { position: absolute; left: 0; right: 0; top: 34%; z-index: 22; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; opacity: 0; color: #fff8e6; text-shadow: 0 2px 10px rgba(0,0,0,.75); }
  .tbg__chap b { font-family: var(--font-serif); font-weight: 900; font-size: clamp(26px, 7vw, 40px); letter-spacing: .12em; padding: 10px 26px; background: linear-gradient(90deg, transparent, rgba(40,22,10,.72) 18%, rgba(40,22,10,.72) 82%, transparent); }
  .tbg__chap span { font-family: var(--font-serif); font-size: 16px; opacity: .92; }
  .tbg__chap.is-on { animation: tbgChap 3.8s ease forwards; }
  @keyframes tbgChap { 0% { opacity: 0; transform: translateY(10px); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
  .tbg__curtain { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: #0c0a08; color: #f3e6c8; opacity: 0; pointer-events: none; transition: opacity .6s; }
  .tbg__curtain.is-on { opacity: 1; pointer-events: auto; }
  .tbg__curtain p { margin: 0; max-width: 520px; font-family: var(--font-serif); font-size: clamp(18px, 4.6vw, 24px); line-height: 1.7; text-align: center; animation: tbgCard 2.9s ease forwards; }
  @keyframes tbgCard { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
  /* 海上的利利（2026-10-02）：字卡可以自己翻頁、過場字幕、1939 的抉擇、結尾的「後人怎麼看他」 */
  .tbg__curtain.is-lili { align-content: center; gap: 14px; }
  .tbg__curtain.is-lili p { animation: tbgCardIn .7s ease forwards; }
  @keyframes tbgCardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .tbg__csrc { max-width: 520px; font-size: 12px; color: #c9b896; text-align: center; } .tbg__csrc a { color: #f0d9a0; }
  .tbg__cnext { justify-self: center; min-height: 44px; padding: 0 20px; border: 1px solid #c9b896; border-radius: 999px; background: transparent; color: #f3e6c8; font: 600 14px var(--font-sans); cursor: pointer; }
  .tbg__cap { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 24; width: min(640px, calc(100% - 32px)); box-sizing: border-box; padding: 12px 18px; border-radius: 10px; background: rgba(16,12,8,.72); color: #fff6e0; text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s; }
  .tbg__cap.is-on { opacity: 1; pointer-events: auto; }
  .tbg__cap p { margin: 0; font-family: var(--font-serif); font-size: clamp(16px, 4.2vw, 20px); line-height: 1.6; }
  .tbg__cap small { display: block; margin-top: 4px; font-size: 11px; color: #d8c9a6; } .tbg__cap a { color: #f0d9a0; }
  .tbg__decide { position: absolute; inset: 0; z-index: 42; display: none; place-items: center; padding: 16px; background: rgba(12,10,8,.7); }
  .tbg__decide.is-on { display: grid; }
  .tbg__dbox { box-sizing: border-box; width: min(480px, 100%); max-height: 100%; overflow: auto; background: #f4e9cf; color: #3b2a1a; border: 3px double #6b4a2b; border-radius: 12px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
  .tbg__dbox b { font-family: var(--font-serif); font-size: 20px; } .tbg__dbox p { margin: 0; line-height: 1.7; } .tbg__dbox small { font-size: 12px; color: #6b5a44; } .tbg__dbox a { color: #7a2e1f; }
  .tbg__dbtns { display: flex; gap: 10px; flex-wrap: wrap; } .tbg__dbtns--col { flex-direction: column; }
  .tbg__dbtns button { min-height: 44px; flex: 1; padding: 0 16px; border: 2px solid #6b4a2b; border-radius: 10px; background: #fffaf0; color: #3b2a1a; font: 700 15px var(--font-sans); cursor: pointer; }
  .tbg__dbtns button.is-main { background: #7a2e1f; border-color: #7a2e1f; color: #fff; }
  .tbg__dbtns button:disabled { opacity: .45; cursor: not-allowed; }
  .tbg__views { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: left; }
  .tbg__view { border-top: 3px solid #3b2a1a; padding-top: 6px; display: grid; gap: 2px; } .tbg__view b { font-family: var(--font-serif); font-size: 19px; } .tbg__view span { font-size: 13px; } .tbg__view small { font-size: 11px; color: #6b5a44; }
  .tbg__endbox h3 { margin: 6px 0 0; font-family: var(--font-serif); font-size: 17px; text-align: left; }
  .tbg__facts { margin: 0; padding-left: 1.2em; text-align: left; display: grid; gap: 6px; font-size: 14px; } .tbg__facts small { display: block; font-size: 11px; color: #6b5a44; }
  .tbg__endbox a { color: #7a2e1f; }
  .tbg__jiao { position: absolute; inset: 0; z-index: 30; display: none; place-items: center; background: rgba(20,12,6,.6); padding: 16px; }
  .tbg__jiao.is-on { display: grid; }
  .tbg__jbox { box-sizing: border-box; max-width: 100%; width: min(340px, 88vw); background: #f4e9cf; color: #3b2a1a; border: 3px double #7a2e1f; border-radius: 12px; padding: 18px 16px 14px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
  .tbg__jbox > b { font-family: var(--font-serif); font-size: 22px; letter-spacing: .1em; color: #7a2e1f; }
  .tbg__jq { margin: 0; font-family: var(--font-serif); font-size: 15px; }
  .tbg__jbs { display: flex; justify-content: center; gap: 22px; height: 76px; align-items: center; }
  .tbg__jb { width: 62px; height: 30px; border-radius: 60px 60px 8px 8px / 44px 44px 8px 8px; background: linear-gradient(#b98a52, #8d6236); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 3px 6px rgba(0,0,0,.25); transition: transform .3s; }
  .tbg__jb + .tbg__jb { transform: scaleX(-1); }
  .tbg__jb.is-flat { border-radius: 8px; height: 22px; background: linear-gradient(#e6cf9e, #cdae76); box-shadow: inset 0 0 0 2px #a8865a, 0 3px 6px rgba(0,0,0,.2); }
  .tbg__jb.is-round { background: linear-gradient(#a5763f, #6e4a26); }
  .tbg__jb.is-fly { animation: tbgFly .9s ease-in-out; }
  @keyframes tbgFly { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-60px) rotate(400deg); } 100% { transform: translateY(0) rotate(720deg); } }
  .tbg__jr { margin: 0; min-height: 22px; font-weight: 800; }
  .tbg__jcount { display: flex; justify-content: center; gap: 8px; }
  .tbg__jcount i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 900; border: 2px dashed #b9a07a; color: #b9a07a; }
  .tbg__jcount i.is-on { border: 2px solid #b3271f; background: #b3271f; color: #fff; }
  .tbg__jgo { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 900; font-size: 17px; background: #b3271f; color: #fff; cursor: pointer; }
  .tbg__jgo:disabled { opacity: .5; }
  .tbg__jbox small { font-size: 11px; opacity: .7; }
  .tbg__end { position: absolute; inset: 0; z-index: 45; display: none; place-items: center; padding: 16px; background: rgba(12,10,8,.82); overflow: auto; }
  .tbg__end.is-on { display: grid; }
  .tbg__endbox { box-sizing: border-box; max-width: 100%; width: min(520px, 92vw); max-height: 100%; overflow: auto; background: #f4e9cf; color: #3b2a1a; border: 3px double #6b4a2b; border-radius: 12px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
  .tbg__endbox h2 { margin: 0; font-family: var(--font-serif); font-size: 30px; letter-spacing: .14em; color: #7a2e1f; }
  .tbg__endbox p { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 1.7; }
  .tbg__endst { list-style: none; margin: 4px 0; padding: 0; display: flex; justify-content: center; gap: 14px; font-size: 13px; }
  .tbg__endst b { font-size: 18px; color: #7a2e1f; }
  .tbg__endcta { display: block; padding: 12px; border-radius: 10px; background: #7a2e1f; color: #fff8e6; font-weight: 800; text-decoration: none; }
  .tbg__endbtns { display: flex; gap: 8px; justify-content: center; }
  .tbg__endbtns button { border: 1px solid #6b4a2b; background: transparent; color: #3b2a1a; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
  .tbg__ptabs { flex-wrap: wrap; } .tbg__ptabs button { min-width: 3.6em; }
  .tbg__chnow { margin: 0 0 8px; font-family: var(--font-serif); font-weight: 900; color: #7a2e1f; }
  .tbg__stick { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); touch-action: none; }
  .tbg__stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: rgba(255,255,255,.55); }
  @media (hover: hover) and (pointer: fine) { .tbg__stick { opacity: .5; } }
  .tbg__act { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(34px, env(safe-area-inset-bottom)); min-height: 60px; padding: 0 20px; border: 0; border-radius: 30px; background: #ffd36b; color: #3b2a1a; font: 900 17px var(--font-sans); display: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; }
  .tbg__act.is-on { display: block; }
  /* 互動按鈕浮在人物頭上（2026-10-01） */
  .tbg__act { left: 0; top: 0; right: auto; bottom: auto; min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 20px; white-space: nowrap; animation: tbgBob 1.4s ease-in-out infinite; }
  @keyframes tbgBob { 50% { margin-top: -5px; } }
  .tbg__home { position: absolute; left: 50%; top: 62%; white-space: nowrap; transform: translate(-50%, -50%); z-index: 8; display: none; flex-direction: column; align-items: center; gap: 6px; border: 0; border-radius: 16px; padding: 14px 20px; background: rgba(150,30,20,.92); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
  .tbg__home b { background: #fff; color: #9a2b1f; border-radius: 999px; padding: 8px 18px; font-size: 16px; }
  .tbg__home.is-on { display: flex; }
  .tbg__toast { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.7); padding: 8px 16px; border-radius: 12px; font-weight: 700; opacity: 0; transition: opacity .3s; pointer-events: none; }
  .tbg__toast.is-on { opacity: 1; }
  .tbg__dlg { position: absolute; left: 50%; bottom: max(170px, calc(env(safe-area-inset-bottom) + 160px)); transform: translateX(-50%); width: min(620px, calc(100% - 24px)); background: rgba(244,233,207,.97); color: #3b2a1a; border-radius: 14px; padding: 14px 16px 22px; box-shadow: 0 8px 30px rgba(0,0,0,.4); display: none; cursor: pointer; }
  .tbg__dlg.is-on { display: block; } .tbg__dlg b { font-family: var(--font-serif); color: #7a2e1f; } .tbg__dlg p { margin: 6px 0; font-size: 16px; line-height: 1.7; }
  .tbg__dlg small { display: block; font-size: 12px; color: #6b5a46; } .tbg__dlg a { color: #1d6f7a; } .tbg__next { position: absolute; right: 14px; bottom: 6px; animation: tbblink 1s infinite; } @keyframes tbblink { 50% { opacity: .2; } }
  .tbg__panel { position: absolute; inset: max(10px, env(safe-area-inset-top)) 10px 10px; max-width: 720px; margin: 0 auto; background: rgba(244,233,207,.98); color: #3b2a1a; border-radius: 14px; display: none; flex-direction: column; overflow: hidden; }
  .tbg__panel.is-on { display: flex; }
  .tbg__ptabs { display: flex; gap: 4px; padding: 8px; background: #3b2a1a; } .tbg__ptabs button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: #f4e9cf; font: 700 14px var(--font-sans); cursor: pointer; } .tbg__ptabs button.is-on { background: #f4e9cf; color: #3b2a1a; } .tbg__ptabs .tbg__pclose { flex: none; width: 44px; }
  .tbg__pbody { overflow: auto; padding: 12px 14px; } .tbg__pbody a { color: #1d6f7a; }
  .tbg__qrow { padding: 8px 0; border-bottom: 1px dashed #b89a6a; } .tbg__qrow p { margin: 4px 0; line-height: 1.7; } .tbg__qrow small { font-size: 12px; } .tbg__qrow.is-done b { color: #2e7d4f; } .tbg__dim { color: #8a7a62; }
  .tbg__igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .tbg__icard { background: #fffaf0; border: 1px solid #d6c29a; border-radius: 8px; padding: 6px; font-size: 12px; } .tbg__icard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; filter: sepia(.4); } .tbg__icard b { display: block; font-size: 14px; } .tbg__icard p { margin: 4px 0; }
  /* 等退潮：任務要最低潮時出現，按了快轉到最低潮 */
  .tbg__waitbtn { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 100px); left: 10px; display: none; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 14px; background: #2f7d93; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); cursor: pointer; z-index: 6; }
  .tbg__waitbtn.is-on { display: block; animation: tbgPulse 1.6s ease-in-out infinite; }
  .tbg__skip { top: auto; left: auto; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 120px); background: #8a5a2b; z-index: 9; }
  @keyframes tbgPulse { 50% { box-shadow: 0 0 0 6px rgba(47,125,147,.35), 0 3px 10px rgba(0,0,0,.3); } }
  .tbg__wait { position: absolute; inset: 0; z-index: 25; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(10,25,35,.45); color: #fff; pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
  .tbg__wait.is-on { display: flex; } .tbg__wait b { font-size: 22px; } .tbg__wait span { font-size: 14px; opacity: .9; }
  /* 撿到老物件時的卡片（跟老物件頁同一張 .otc 卡），翻面出現 */
  .tbg__ocard { position: absolute; inset: 0; z-index: 30; display: none; place-items: center; background: rgba(20,14,8,.62); backdrop-filter: blur(2px); padding: 16px; }
  .tbg__ocard.is-on { display: grid; }
  .tbg__ocbox { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(300px, 78vw); }
  .tbg__occap { margin: 0; color: #ffe9a8; font-weight: 800; font-size: 17px; letter-spacing: .06em; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
  .tbg__ocw { width: 100%; perspective: 900px; max-height: calc(100vh - 200px); aspect-ratio: 63 / 88; }
  .tbg__ocw .otc { width: 100%; height: 100%; animation: tbgFlip .7s cubic-bezier(.2,.8,.25,1); }
  @keyframes tbgFlip { 0% { transform: rotateY(180deg) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotateY(0) scale(1); } }
  .tbg__ocbtns { display: flex; gap: 10px; align-items: center; }
  .tbg__ocbtns a { color: #f3e2b8; font-size: 13px; }
  .tbg__ocbtns button { border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 15px; background: #f3e2b8; color: #3b2a1a; cursor: pointer; }
  .tbg__icb { all: unset; cursor: pointer; display: block; } .tbg__icb .otc { width: 100%; }
  .tbg__icard.is-no { display: grid; place-items: center; min-height: 120px; font-size: 30px; color: #c9b48c; }
  .tbg__rhythm { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); width: min(620px, calc(100% - 20px)); background: rgba(20,14,10,.85); border-radius: 14px; padding: 12px; display: none; text-align: center; }
  .tbg__rhythm.is-on { display: block; } .tbg__rhythm p { margin: 0 0 8px; font-weight: 700; }
  .tbg__lane { position: relative; height: 54px; background: rgba(255,255,255,.08); border-radius: 27px; overflow: hidden; }
  .tbg__hitz { position: absolute; left: 32px; top: 5px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #ffd36b; }
  .tbg__beat { position: absolute; left: 0; top: 7px; width: 40px; height: 40px; border-radius: 50%; background: #c8241c; display: grid; place-items: center; font: 900 18px var(--font-serif); }
  .tbg__beat.is-ok { background: #2e9d5b; } .tbg__beat.is-bad { background: #555; }
  .tbg__keys { display: flex; gap: 10px; justify-content: center; margin-top: 10px; } .tbg__keys button { min-width: 110px; min-height: 60px; border: 0; border-radius: 14px; background: #ffd36b; color: #3b2a1a; font: 900 24px var(--font-serif); cursor: pointer; } .tbg__keys small { display: block; font: 700 11px var(--font-sans); }
  /* 節奏遊戲回饋：況＝紅圓（大鑼）、嗆＝藍菱形（大鈸）、抬＝黃圓；良／可／不可、連打 */
  .tbg__beat.tbg__b0 { background: #c8241c; color: #fff; border-radius: 50%; }
  .tbg__beat.tbg__b1 { background: #2b6cc4; color: #fff; border-radius: 8px; transform-origin: center; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
  .tbg__beat.is-ok { background: #2e9d5b !important; animation: tbgBeatOk .35s ease-out forwards; }
  .tbg__beat.is-bad { background: #555 !important; opacity: .45 !important; }
  @keyframes tbgBeatOk { to { filter: brightness(1.8); scale: 1.6; opacity: 0; } }
  .tbg__keys .tbg__k0 { background: #c8241c; color: #fff; border-radius: 50%; min-width: 96px; min-height: 96px; box-shadow: 0 6px 0 #7a140f; }
  .tbg__keys .tbg__k1 { background: #2b6cc4; color: #fff; border-radius: 14px; min-width: 110px; min-height: 96px; box-shadow: 0 6px 0 #173f78; }
  .tbg__keys .tbg__k0 small, .tbg__keys .tbg__k1 small { color: rgba(255,255,255,.85); }
  .tbg__keys button.is-hit { animation: tbgPress .18s ease-out; }
  @keyframes tbgPress { 50% { transform: translateY(5px) scale(.94); box-shadow: 0 1px 0 rgba(0,0,0,.4); } }
  .tbg__score { height: 34px; display: flex; justify-content: center; align-items: center; gap: 12px; }
  .tbg__judge { font: 900 26px var(--font-serif); letter-spacing: .1em; }
  .tbg__judge.is-great { color: #ffcf3a; text-shadow: 0 0 10px rgba(255,190,40,.8); } .tbg__judge.is-good { color: #fff; } .tbg__judge.is-miss { color: #8aa0b8; }
  .tbg__judge.is-pop { animation: tbgPop .3s ease-out; }
  @keyframes tbgPop { 0% { transform: scale(1.7); } 100% { transform: scale(1); } }
  .tbg__combo { color: #ffcf3a; font: 900 18px var(--font-sans); }
  .tbg__rhythm.is-great { animation: tbgGlow .25s ease-out; } .tbg__rhythm.is-miss { animation: tbgShake .25s; }
  @keyframes tbgGlow { 0% { box-shadow: 0 0 0 4px rgba(255,200,60,.9); } 100% { box-shadow: 0 0 0 0 rgba(255,200,60,0); } }
  @keyframes tbgShake { 25% { margin-left: -6px; } 75% { margin-left: 6px; } }
  .tbg__rnote { display: block; margin-top: 8px; font-size: 11px; color: #cbb; }
  .tbg__alarm { position: absolute; inset: 0; pointer-events: none !important; display: none; box-shadow: inset 0 0 120px rgba(200,20,10,.7); text-align: center; padding-top: 30%; }
  .tbg__alarm.is-on { display: block; animation: tbblink 1.2s infinite; } .tbg__alarm b { display: block; font-size: 22px; text-shadow: 0 2px 6px #000; } .tbg__alarm span { text-shadow: 0 2px 6px #000; }
  .tbg__intro { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14,26,32,.72); padding: 16px; overflow: auto; }
  .tbg__card { max-width: 560px; background: #f4e9cf; color: #3b2a1a; border-radius: 10px; padding: 20px 22px; border: 3px double #6b4a2b; }
  .tbg__card h2 { margin: 0; font: 900 34px var(--font-serif); color: #7a2e1f; } .tbg__era { margin: 2px 0 10px; font-weight: 700; } .tbg__card p { line-height: 1.75; }
  .tbg__honest { font-size: 13px; color: #6b5a46; border-top: 1px dashed #b89a6a; padding-top: 8px; } .tbg__help { font-size: 13px; }
  .tbg__go button { min-height: 52px; padding: 0 26px; border: 0; border-radius: 10px; background: #3b2a1a; color: #f4e9cf; font: 900 18px var(--font-serif); cursor: pointer; }
  /* 那時與現在（2026-10-01） */
  .tn { margin: 18px 0 26px; } .tn__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .tn__head h3 { margin: 0; font-family: var(--font-serif); font-size: 22px; }
  .tn__mode { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; } .tn__mode button { border: 0; background: none; padding: 0 14px; min-height: 40px; font: 700 14px var(--font-sans); cursor: pointer; color: var(--ink); } .tn__mode button.is-on { background: #3b2a1a; color: #f4e9cf; }
  .tn__side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .tn__side figure { margin: 0; } .tn__side img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
  .tn__side figcaption { font-size: 13px; margin-top: 4px; }
  .tn__slide { position: relative; margin-top: 10px; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; touch-action: pan-y; cursor: ew-resize; user-select: none; }
  .tn__slide > img, .tn__clip img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .tn__clip { position: absolute; inset: 0 auto 0 0; overflow: hidden; } .tn__clip img { height: 100%; max-width: none; }
  .tn__bar { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 6px rgba(0,0,0,.4); }
  .tn__bar span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 900; }
  .tn__tag { position: absolute; top: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; } .tn__tag--l { left: 8px; } .tn__tag--r { right: 8px; }
  .tn__note { margin: 8px 0 4px; line-height: 1.7; }
  @media (max-width: 560px) { .tn__side { grid-template-columns: 1fr; } }
  /* 集章冊（2026-10-01） */
  .stb { background: linear-gradient(180deg, #efe3c6, #e6d3aa); border-radius: 14px; padding: 16px; color: #3b2a1a; }
  .stb__isles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .stb__isle { min-height: 52px; border-radius: 8px; border: 1.5px solid #b89a6a; background: #f6ecd4; color: #3b2a1a; font: inherit; cursor: pointer; display: grid; place-content: center; }
  .stb__isle b { font-family: var(--font-serif); font-size: 16px; } .stb__isle small { font-family: "Courier New", monospace; font-size: 12px; }
  .stb__isle.is-on { background: #3b2a1a; color: #f4e9cf; border-color: #3b2a1a; } .stb__isle.is-done { box-shadow: inset 0 0 0 2px #a31f14; }
  .stb__titles { margin: 10px 0 0; font: 900 16px var(--font-serif); color: #a31f14; }
  .stb__bar { height: 6px; background: rgba(59,42,26,.15); border-radius: 3px; margin: 10px 0 6px; overflow: hidden; } .stb__bar i { display: block; height: 100%; background: #a31f14; }
  .stb__hint { margin: 0 0 10px; font-size: 14px; }
  .stb__locate { width: 100%; min-height: 50px; border-radius: 10px; border: 0; background: #3b2a1a; color: #f4e9cf; font: 800 16px var(--font-sans); cursor: pointer; }
  .stb__msg { margin: 8px 0 0; font-weight: 700; color: #7a2e1f; }
  .stb__near { display: grid; gap: 6px; margin-top: 10px; }
  .stb__nrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f6ecd4; border: 1px solid #d6c29a; }
  .stb__nrow.is-can { border: 2px solid #a31f14; background: #fff6e8; } .stb__nrow b { display: block; } .stb__nrow small { color: #6b5a46; }
  .stb__go { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: #a31f14; color: #fff; font: 900 16px var(--font-serif); cursor: pointer; } .stb__go:disabled { background: #c9b48c; cursor: default; font-size: 13px; }
  .stb__book { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; padding: 12px; border-radius: 10px; background: #f4e9cf; box-shadow: inset 0 0 20px rgba(120,80,30,.25); }
  .stb__slot { aspect-ratio: 1; min-width: 0; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
  .stb__empty, .stb__stamp { box-sizing: border-box; overflow: hidden; overflow-wrap: anywhere; }
  .stb__empty { width: 92%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed #b89a6a; display: grid; place-content: center; text-align: center; color: #9a8159; padding: 6px; }
  .stb__empty b { font: 700 12px/1.3 var(--font-serif); } .stb__empty small { font: 11px "Courier New", monospace; }
  .stb__stamp { width: 92%; aspect-ratio: 1; border-radius: 50%; border: 3px double rgba(163,31,20,.85); color: rgba(163,31,20,.9); display: grid; place-content: center; text-align: center; padding: 6px; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%); mix-blend-mode: multiply; animation: stIn .35s ease-out; }
  .stb__stamp b { font: 900 13px/1.25 var(--font-serif); } .stb__stamp small { font: 700 10px "Courier New", monospace; }
  @keyframes stIn { from { transform: scale(1.6); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .stb__stamp { animation: none; } }
  .stb__sel { margin-top: 12px; background: #fffaf0; border-radius: 10px; padding: 10px 12px; border: 1px dashed #b89a6a; }
  @media (max-width: 480px) { .stb__book { grid-template-columns: repeat(3, 1fr); } }
  /* 每週馬祖小測驗（2026-10-01） */
  .today__c--quiz { display: block; text-decoration: none; color: inherit; background: linear-gradient(120deg, #eef0ff, #fff); }
  .qz__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; } .qz__prog { margin-left: auto; color: var(--ink-muted); font-weight: 700; }
  .qz__title { background: #fff1c9; color: #8a5a00; }
  .qz__card { background: var(--surface-raised, #fff); border-radius: 18px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.08); max-width: 560px; }
  .qz__kind { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #1d6f7a; }
  .qz__img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 10px; }
  .qz__q { margin: 0 0 12px; font-size: 19px; font-weight: 800; line-height: 1.5; }
  .qz__opts { display: grid; gap: 8px; }
  .qz__opt { min-height: 52px; text-align: left; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface, #fff); font: 700 16px var(--font-sans); color: var(--ink); cursor: pointer; }
  .qz__opt:hover { border-color: #1d6f7a; } .qz__opt.is-on { background: #1d6f7a; color: #fff; border-color: #1d6f7a; }
  .qz__back { margin-top: 10px; border: 0; background: none; color: var(--ink-muted); font: inherit; cursor: pointer; min-height: 40px; }
  .qz__score { font-size: 20px; font-weight: 800; margin: 4px 0 8px; } .qz__score b { font-size: 56px; color: #1d6f7a; } .qz__score span { margin-left: 12px; font-size: 18px; }
  .qz__acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
  .qz__line, .qz__copy { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; font: 800 15px var(--font-sans); text-decoration: none; cursor: pointer; border: 0; }
  .qz__line { background: #06c755; color: #fff; } .qz__copy { background: var(--surface-sunken); color: var(--ink); }
  .qz__rev { border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: var(--surface-raised, #fff); border-left: 5px solid #d9534f; }
  .qz__rev.is-ok { border-left-color: #2e9d5b; } .qz__rev .qz__q { font-size: 16px; margin-bottom: 4px; }
  .qz__revrow { display: flex; gap: 12px; align-items: flex-start; } .qz__revrow img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; flex: none; }
  /* 藍眼淚到場回報（2026-10-01） */
  .bt { background: linear-gradient(180deg, #071a26, #0b2536); color: #d6f6ff; border-radius: 18px; padding: 16px; }
  .bt .dy-section-head, .bt h2, .bt .dy-head__title { color: #e9fbff; } .bt .dy-section-head__meta { color: #9cc7d4; }
  .bt__probs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
  .bt__prob { background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 10px; display: grid; }
  .bt__prob small { color: #9cc7d4; } .bt__prob b { font-size: 26px; color: #5ff2ff; text-shadow: 0 0 10px rgba(95,242,255,.5); } .bt__prob b.is-off { color: #7a8a94; text-shadow: none; font-size: 20px; }
  .bt__prob span { font-size: 11px; color: #9cc7d4; }
  .bt__note { font-size: 12px; color: #9cc7d4; margin: 4px 0 10px; }
  .bt__zones { display: flex; gap: 6px; margin-bottom: 8px; } .bt__zones button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid #2c5566; background: #0f3142; color: #cfefff; font: 700 14px var(--font-sans); cursor: pointer; }
  .bt__zones button.is-on { background: #2ef0ff; color: #04212b; border-color: #2ef0ff; }
  .bt__map { height: 380px; border-radius: 14px; overflow: hidden; background: #0d1a22; }
  .btpin i { position: absolute; inset: 4px; border-radius: 50%; background: #4b5d68; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
  .btpin b { position: absolute; left: 16px; top: -8px; font: 700 11px var(--font-sans); color: #fff; background: rgba(0,0,0,.6); border-radius: 8px; padding: 0 5px; }
  .btpin--0 i { background: #7a8a94; } .btpin--1 i { background: #5fd7e6; box-shadow: 0 0 8px 2px rgba(95,215,230,.6); }
  .btpin--2 i { background: #2ef0ff; box-shadow: 0 0 14px 5px rgba(46,240,255,.7); animation: btglow 2.4s ease-in-out infinite; }
  .btpin--3 i { background: #c8ffff; box-shadow: 0 0 20px 8px rgba(120,250,255,.85); animation: btglow 1.8s ease-in-out infinite; }
  @keyframes btglow { 50% { box-shadow: 0 0 6px 2px rgba(46,240,255,.4); } }
  @media (prefers-reduced-motion: reduce) { .btpin i { animation: none !important; } }
  .bt__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #9cc7d4; margin: 8px 0; }
  .btdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #4b5d68; margin-right: 4px; vertical-align: -1px; }
  .btdot--0 { background: #7a8a94; } .btdot--1 { background: #5fd7e6; } .btdot--2 { background: #2ef0ff; box-shadow: 0 0 6px #2ef0ff; } .btdot--3 { background: #c8ffff; box-shadow: 0 0 8px #8ff; }
  .bt__pick { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
  .bt__pick .today__m { color: #b9dbe5; } .bt__pick a { color: #7ff3ff; }
  .bt__go, .bt__big { border: 0; border-radius: 14px; font: 800 16px var(--font-sans); cursor: pointer; min-height: 48px; }
  .bt__go { background: #2ef0ff; color: #04212b; padding: 0 16px; }
  .bt__big { display: block; width: 100%; margin-top: 10px; background: linear-gradient(90deg, #2ef0ff, #8af7ff); color: #04212b; box-shadow: 0 0 18px rgba(46,240,255,.45); }
  .bt__big:disabled { opacity: .5; cursor: default; }
  .bt__msg { margin: 8px 0 0; color: #ffe08a; font-weight: 700; }
  .bt__list { list-style: none; margin: 0; padding: 0; } .bt__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .bt__list em { font-style: normal; font-weight: 700; } .bt__list time { margin-left: auto; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .bt__list small { background: #e6f0f1; color: #1d6f7a; border-radius: 8px; padding: 0 6px; } .bt__list p { width: 100%; margin: 0; font-size: 13px; color: var(--ink-muted); }
  .bt__form, .bt__form * { box-sizing: border-box; }
  .bt__form { position: relative; width: min(440px, 94vw); max-height: 92dvh; overflow: auto; background: #0b2536; color: #e9fbff; border-radius: 18px; padding: 20px; }
  .bt__form .sp__x { position: absolute; right: 10px; top: 10px; } .bt__form h3 { margin: 0 0 8px; }
  .bt__form select, .bt__form input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid #2c5566; background: #0f3142; color: #fff; padding: 0 10px; font: inherit; }
  .bt__lb { display: block; margin: 12px 0 6px; font-size: 13px; color: #9cc7d4; }
  .bt__lvs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .bt__lv { min-height: 48px; border-radius: 12px; border: 1.5px solid #2c5566; background: #0f3142; color: #e9fbff; font: 700 14px var(--font-sans); cursor: pointer; }
  .bt__lv.is-on { border-color: #2ef0ff; background: #12465a; box-shadow: 0 0 10px rgba(46,240,255,.4); }
  .bt__form .today__m { color: #b9dbe5; }
  @media (max-width: 560px) { .bt__probs { grid-template-columns: repeat(2, 1fr); } .bt__map { height: 320px; } }
  /* 今天的馬祖（首頁）、潮間帶小幫手、馬祖一年（2026-10-01） */
  .today__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .today__c { background: var(--surface-raised, #fff); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .today__c--tide { background: linear-gradient(120deg, #fff4d6, #fff); } .today__c--tear { background: linear-gradient(120deg, #e3f6ff, #fff); }
  .today__c--season { background: linear-gradient(120deg, #fde8ec, #fff); }
  .today__h { margin: 0 0 4px; font-weight: 800; font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .today__m { margin: 0 0 4px; font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
  .today__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
  .today__thumbs a { display: grid; gap: 2px; width: 66px; text-decoration: none; color: var(--ink); font-size: 12px; text-align: center; }
  .today__thumbs img { width: 66px; height: 66px; object-fit: cover; border-radius: 10px; }
  .today__thumbs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .today__more { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 700; }
  .today__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
  .chipish { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #e6f0f1; color: #1d6f7a; text-decoration: none; }
  .it__isles { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
  .tidechart { width: 100%; max-width: 640px; height: auto; display: block; background: #fbfbf7; border-radius: 12px; }
  .it__legend { font-size: 12px; color: var(--ink-muted); margin: 6px 0 10px; } .it__sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 3px; }
  .it__sw--day { background: #fff7dc; border: 1px solid #eadfb8; } .it__sw--go { background: rgba(245,197,66,.55); }
  .it__week { display: grid; gap: 6px; }
  .it__day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-sunken); min-height: 44px; }
  .it__day.is-good { background: #fff4d6; } .it__day b { width: 46px; }
  .it__rng { font-size: 12px; color: var(--ink-muted); width: 36px; }
  .it__win { font-weight: 800; font-variant-numeric: tabular-nums; } .it__win small { font-weight: 400; color: var(--ink-muted); margin-left: 6px; font-size: 12px; }
  .it__none { color: var(--ink-muted); font-size: 13px; }
  .it__spot { padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .it__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .it__sp { display: grid; gap: 3px; text-decoration: none; color: var(--ink); } .it__sp img, .it__ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
  .it__ph { display: grid; place-items: center; background: var(--surface-sunken); font: 900 28px var(--font-serif); color: var(--ink-muted); }
  .it__sp b { font-size: 13px; line-height: 1.3; } .it__sp small { font-size: 11px; color: var(--ink-muted); }
  .it__safe ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.8; }
  .yr { overflow-x: clip; }       /* 十二欄是等分的，不會超出；原本的 auto 會多出一條用不到的拖移條 */
  .yr__grid { display: grid; grid-template-columns: 112px repeat(12, minmax(0, 1fr)); gap: 0 2px; align-items: center; position: relative; }
  @media (max-width: 560px) { .yr__grid { grid-template-columns: 62px repeat(12, minmax(0, 1fr)); gap: 0 1px; } .yr__head span { font-size: 10px; } .yr__bar { font-size: 10px; padding: 0 3px; } .yr__name { font-size: 11px; line-height: 13px; white-space: normal; overflow: visible; padding-right: 2px; } }
  .yr__head span { text-align: center; font-size: 12px; color: var(--ink-muted); padding: 4px 0; } .yr__head span.is-now { color: #d9534f; font-weight: 800; }
  .yr__lb { margin: 12px 0 4px; font-weight: 800; }
  .yr__sec--fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
  .yr__sec--fold > summary::-webkit-details-marker { display: none; }
  .yr__sec--fold > summary::after { content: '›'; margin-left: auto; font-size: 20px; color: var(--ink-muted); transform: rotate(90deg); transition: transform .2s; }
  .yr__sec--fold[open] > summary::after { transform: rotate(-90deg); }
  .yr__cnt { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
  .yr__row { min-height: 30px; } .yr__name { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
  .yr__bar { grid-row: 1; height: 24px; border-radius: 7px; border: 0; color: #fff; font: 700 11px var(--font-sans); text-align: left; padding: 0 6px; white-space: nowrap; overflow: hidden; cursor: pointer; position: relative; z-index: 1; }
  .yr__name { grid-row: 1; grid-column: 1; }
  /* 手機左欄只有 62 像素：名稱折成兩行，不截斷（要放在上面那條通用規則之後才蓋得過） */
  @media (max-width: 560px) { .yr__name { font-size: 11px; line-height: 13px; white-space: normal; overflow: visible; text-overflow: clip; padding-right: 3px; word-break: break-all; } }
  .yr__bar--fest { background: #c94a3a; } .yr__bar--nature { background: #d36a8c; } .yr__bar--tear { background: #1fa8c0; } .yr__bar--fog { background: #8c96a0; } .yr__bar--sea { background: #2d7fb8; }
  .yr__bar.is-approx { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 4px, transparent 4px 8px); outline: 1.5px dashed rgba(0,0,0,.25); outline-offset: -2px; }
  .yr__bar.is-on { box-shadow: 0 0 0 3px #f5c542; }
  .yr__now { grid-row: 1; align-self: stretch; background: rgba(217,83,79,.10); border-left: 2px solid rgba(217,83,79,.6); pointer-events: none; }
  .yr__pick { position: sticky; bottom: 70px; margin-top: 12px; background: var(--surface-raised, #fff); border-radius: 14px; padding: 12px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.18); z-index: 5; }
  /* 馬祖老物件：復古卡（使用者 2026-10-01：要復古風格、有別於生物誌的閃卡）。泛黃紙、雙線框、褐色老照片、活字編號、紅印章 */
  .otc { --ink: #3b2a1a; --paper: #efe3c6; --edge: #6b4a2b; box-sizing: border-box; position: relative; aspect-ratio: 63 / 88; border-radius: 6px; padding: 4.5%;
    container-type: inline-size; color: var(--ink); text-align: left; overflow: hidden;
    background:
      radial-gradient(circle at 18% 12%, rgba(255,255,255,.35), transparent 40%),
      radial-gradient(circle at 85% 92%, rgba(120,80,30,.22), transparent 45%),
      repeating-linear-gradient(0deg, rgba(90,60,20,.035) 0 1px, transparent 1px 3px),
      linear-gradient(160deg, #f4e9cf, #e6d3aa 70%, #d9c190);
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 5px rgba(60,40,15,.25), 0 10px 20px -12px rgba(60,40,15,.5); transition: transform .25s, box-shadow .25s; }
  .otc__in { box-sizing: border-box; height: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2.2cqw; padding: 3.2cqw; border: 1.2cqw double var(--edge); border-radius: 3px; }
  .otc__top { display: flex; align-items: center; gap: 2cqw; font-family: "Courier New", ui-monospace, monospace; font-size: 5.6cqw; }
  .otc__no { font-weight: 700; letter-spacing: .06em; }
  .otc__cat { flex: 1; min-width: 0; font-family: var(--font-serif); font-size: 5cqw; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .otc__glyph { flex: none; width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 900; font-size: 6cqw;
    color: #f4e9cf; background: #7a2e1f; box-shadow: 0 0 0 .6cqw #f4e9cf, 0 0 0 1cqw #7a2e1f; }
  .otc__photo { position: relative; flex: 0 1 auto; min-height: 24cqw; aspect-ratio: 4 / 3; background: #d6c29a; padding: 2cqw; box-shadow: inset 0 0 0 .4cqw rgba(80,50,20,.35); }
  .otc__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.55) saturate(.8) contrast(1.05) brightness(.97); }
  .otc__corner { position: absolute; width: 7cqw; height: 7cqw; background: #4a3220; }
  .otc__corner--tl { left: 0; top: 0; clip-path: polygon(0 0, 100% 0, 0 100%); } .otc__corner--tr { right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
  .otc__corner--bl { left: 0; bottom: 0; clip-path: polygon(0 0, 0 100%, 100% 100%); } .otc__corner--br { right: 0; bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
  .otc__name { flex: none; margin: 0; font-family: var(--font-serif); font-weight: 900; font-size: 8.2cqw; line-height: 1.25; letter-spacing: .04em; border-bottom: .5cqw solid rgba(80,50,20,.45); padding-bottom: 1.4cqw;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .otc__name--l { font-size: 6.8cqw; letter-spacing: .02em; } .otc__name--xl { font-size: 5.9cqw; letter-spacing: 0; }   /* 名稱長就縮字，最多兩行（2026-10-03 使用者：有些字看不到） */
  .otc__meta { flex: none; margin: 0; font-family: "Courier New", ui-monospace, monospace; font-size: 4.8cqw; opacity: .85; }
  .otc__sum { margin: 0; flex: none; font-family: var(--font-serif); font-size: 4.7cqw; line-height: 1.5; max-height: 4.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }   /* 固定三行完整顯示，空間不夠時讓照片變矮，不切半行字 */
  .otc__foot { flex: none; margin-top: auto; display: flex; justify-content: space-between; font-size: 3.8cqw; letter-spacing: .05em; opacity: .7; border-top: .4cqw dashed rgba(80,50,20,.5); padding-top: 1.2cqw; }
  .otc__rare { position: absolute; right: 7%; top: 38%; transform: rotate(-14deg); font-family: var(--font-serif); font-weight: 900; font-size: 6.4cqw; color: rgba(170,30,20,.82);
    border: .9cqw solid rgba(170,30,20,.75); border-radius: 2cqw; padding: .6cqw 2.4cqw; letter-spacing: .1em; mix-blend-mode: multiply; }
  .otc__seen { position: absolute; left: 6%; top: 36%; width: 20cqw; height: 20cqw; border-radius: 50%; display: grid; place-items: center; transform: rotate(12deg);
    font-family: var(--font-serif); font-weight: 900; font-size: 6.2cqw; color: rgba(30,90,120,.85); border: .9cqw double rgba(30,90,120,.8); mix-blend-mode: multiply; }
  .otc--big { width: 100%; }
  .culth { display: grid; gap: 12px; margin-top: 18px; }
  .culth__h { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 50%), var(--c); }
  .culth__h b { font-family: var(--font-serif); font-size: 20px; font-weight: 900; } .culth__h span { font-size: 13px; opacity: .9; }
  .mergebar { padding-top: 14px; }
  .mergeseg { display: flex; gap: 4px; background: var(--surface-sunken, #ece7de); padding: 4px; border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
  .mergeseg button { flex: 1 0 auto; border: 0; background: none; border-radius: 10px; padding: 9px 14px; min-height: 40px; font: inherit; font-size: 14px; color: var(--ink-muted, #5a6a6d); cursor: pointer; white-space: nowrap; }
  .mergeseg button.is-on { background: var(--surface-raised, #fff); color: var(--ink, #1b2426); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .mergeseg button:focus-visible { outline: 2px solid var(--focus, #0b5fd0); }
  .depseg { margin: 0 0 -4px; }
  /* 首頁改版（2026-10-03）：島況詳情（原本的天空與海）收在可展開的區塊；佈告欄只留最新一則 */
  .homego { display: flex; justify-content: center; margin: var(--space-4) 0 var(--space-6); }
  .homesky { margin: 0 0 var(--space-4, 16px); border: 1px solid var(--line, #dcd6cb); border-radius: 14px; background: var(--surface-raised, #fff); }
  .homesky > summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
  .homesky > summary::-webkit-details-marker { display: none; }
  .homesky > summary::after { content: "展開 ▾"; font-weight: 500; font-size: 13px; color: var(--tide, #0c7078); }
  .homesky[open] > summary::after { content: "收起 ▴"; }
  .homesky__in { padding: 0 14px 14px; display: grid; gap: 12px; }
  .homeboard { all: unset; box-sizing: border-box; cursor: pointer; margin-top: 12px; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; background: var(--surface-raised, #fff); box-shadow: 0 1px 2px rgba(27,36,38,.06), 0 6px 16px rgba(27,36,38,.06); }
  .homeboard:focus-visible { outline: 2px solid var(--focus, #0b5fd0); }
  .homeboard__k { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--surface-sunken, #ece7de); color: var(--ink-muted, #5a6a6d); }
  .homeboard__t { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-muted, #5a6a6d); }
  .homeboard__t b { color: var(--ink, #1b2426); }
  .homeboard__go { flex: none; font-size: 13px; color: var(--tide, #0c7078); font-weight: 700; }
  /* 走進歷史、我的馬祖（2026-10-03 改版） */
  .hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  /* 遊戲卡：左邊文字、右邊封面圖往左淡進底色（2026-10-03 使用者） */
  .hubgame { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 180px;
    border-radius: 18px; color: #fff; background: var(--c); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); transition: transform .2s; isolation: isolate; }
  .hubgame:hover, .hubgame:focus-visible { transform: translateY(-3px); } .hubgame:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
  .hubgame__img { position: absolute; top: 0; right: 0; width: 66%; height: 100%; object-fit: cover; z-index: -1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 28%, #000 60%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 28%, #000 60%);
    transition: transform .5s; }
  .hubgame:hover .hubgame__img { transform: scale(1.04); }
  .hubgame__txt { display: grid; gap: 6px; max-width: 58%; padding: 18px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .hubgame b { font-family: var(--font-serif); font-size: 22px; font-weight: 900; }
  .hubgame__era { font-size: 12px; letter-spacing: .08em; opacity: .9; } .hubgame__d { font-size: 14px; line-height: 1.55; opacity: .95; } .hubgame__go { font-size: 13px; font-weight: 700; margin-top: 4px; }
  @media (max-width: 560px) { .hubgame { min-height: 168px; } .hubgame__img { width: 70%; } .hubgame__txt { max-width: 64%; padding: 16px; } .hubgame b { font-size: 21px; } .hubgame__d { font-size: 13px; } }
  .mine { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: linear-gradient(140deg, #23464f, #0f2e36); color: #e8f1f0; }
  /* 五張卡平分整排（原本靠左排、右邊三分之一是空的）；每張上面是剪紙插畫、下面是數字與說明 */
  .mine__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .mine__t { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.08); min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
  .mine__t:hover, .mine__t:focus-visible { background: rgba(255,255,255,.14); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.28); } .mine__t:focus-visible { outline: 2px solid #ffd166; outline-offset: 2px; }
  .mine__art { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #2c4f58; }
  .mine__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transition: transform .5s ease; }
  .mine__t:hover .mine__art img { transform: scale(1.06); }
  .mine__tx { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
  .mine__tx b { font-family: var(--font-mono, monospace); font-size: 26px; line-height: 32px; font-weight: 600; } .mine__tx > span { font-weight: 700; font-size: 15px; }
  .mine__tx small { font-size: 12px; color: #9fb6b8; } .mine__tx em { font-style: normal; font-size: 11px; color: #9fb6b8; opacity: .8; }
  .mine__go { font-style: normal; font-size: 12px; font-weight: 700; color: #ffd166; margin-top: auto; padding-top: 8px; }      /* 五張卡的「打開」對齊在同一條線上 */
  @media (prefers-reduced-motion: reduce) { .mine__t, .mine__art img { transition: none; } .mine__t:hover { transform: none; } .mine__t:hover .mine__art img { transform: none; } }
  @media (max-width: 1000px) { .mine__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  /* 手機：一張一列，左邊字、右邊圖 */
  @media (max-width: 620px) {
    .mine__grid { grid-template-columns: 1fr; gap: 10px; }
    .mine__t { flex-direction: row-reverse; min-height: 104px; }
    .mine__art { aspect-ratio: auto; width: 44%; flex: none; } .mine__art img { object-position: 78% 50%; }
    .mine__tx { padding: 12px 14px; justify-content: center; } .mine__go { margin-top: 0; } .mine__tx b { font-size: 22px; line-height: 28px; }
  }
  .mine__login { margin: 0; font-size: 13px; color: #cfe0e2; } .mine__login a { color: #ffd166; }
  /* 稀有度（2026-10-03）：N 素面泛黃紙／R 銀框銀角＋銀光／SR 燙金框金角＋金粉／UR 朱漆金框＋流動虹彩膜＋「傳說」印 */
  .otc__rk { position: absolute; z-index: 2; left: 3cqw; top: 3cqw; display: inline-flex; align-items: baseline; gap: 1.2cqw; padding: .6cqw 2.2cqw; border-radius: 1.4cqw; background: rgba(40,28,14,.82); color: #f4e9cf; font-family: "Courier New", ui-monospace, monospace; }
  .otc__rk b { font-size: 5.6cqw; font-weight: 900; letter-spacing: .04em; } .otc__rk i { font-style: normal; font-size: 3.8cqw; letter-spacing: -.05em; color: #e9c46a; }
  .otc__foil { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background-size: 260% 100%; animation: otcSheen 6s ease-in-out infinite; mix-blend-mode: soft-light; }
  @keyframes otcSheen { 0%, 100% { background-position: 110% 0; } 50% { background-position: -10% 0; } }
  .otc--rk-R, .otc--rk-SR, .otc--rk-UR { }
  .otc--rk-R::after, .otc--rk-SR::after, .otc--rk-UR::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; }   /* 框畫在卡片裡面：卡片自己的 cqw 會參照外層，框會變巨大 */
  .otc--rk-R { --edge: #7d848a; }
  .otc--rk-R::after { box-shadow: inset 0 0 0 1.4cqw #b9bec3, inset 0 0 0 1.8cqw #eef1f3; }
  .otc--rk-R .otc__corner { background: linear-gradient(135deg, #e4e7ea, #8a9096); }
  .otc--rk-R .otc__rk { background: linear-gradient(135deg, #5d646a, #9aa1a7); }
  .otc--rk-R .otc__foil { background-image: linear-gradient(115deg, transparent 35%, rgba(235,240,245,.75) 48%, rgba(190,200,210,.5) 52%, transparent 65%); }
  .otc--rk-SR { --edge: #9a7424; box-shadow: 0 2px 5px rgba(60,40,15,.3), 0 10px 22px -10px rgba(120,80,10,.6); }
  .otc--rk-SR::after { box-shadow: inset 0 0 0 1.6cqw #c9a03e, inset 0 0 0 2.3cqw #f3d98a; }
  .otc--rk-SR::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(#d9ad3c 1px, transparent 1.4px) 0 0 / 9px 11px, radial-gradient(#f5dc8f 1px, transparent 1.4px) 4px 6px / 13px 9px; opacity: .45; }
  .otc--rk-SR .otc__corner { background: linear-gradient(135deg, #fbe7a1, #b8862b 60%, #f3d07a); }
  .otc--rk-SR .otc__rk { background: linear-gradient(135deg, #8a6418, #d9ad3c); color: #2b1d05; } .otc--rk-SR .otc__rk i { color: #fff3c4; }
  .otc--rk-SR .otc__name { background: linear-gradient(180deg, #8a6418, #3b2a1a 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .otc--rk-SR .otc__foil { background-image: linear-gradient(115deg, transparent 32%, rgba(255,226,140,.85) 46%, rgba(255,250,220,.7) 50%, transparent 64%); }
  .otc--rk-UR { --edge: #c9a03e; padding: 6.2%; background:
      radial-gradient(circle at 18% 12%, rgba(255,255,255,.35), transparent 40%),
      repeating-linear-gradient(0deg, rgba(90,60,20,.035) 0 1px, transparent 1px 3px),
      linear-gradient(160deg, #f6ead0, #e8d3a4 70%, #dcbf86);
    box-shadow: 0 0 26px rgba(201,160,62,.5), 0 12px 26px -10px rgba(90,20,10,.6); }
  .otc--rk-UR::after { box-shadow: inset 0 0 0 3cqw #7a1f17, inset 0 0 0 3.7cqw #e2b851; }
  .otc--rk-UR .otc__in { border-color: #c9a03e; }
  .otc--rk-UR .otc__corner { background: linear-gradient(135deg, #fbe7a1, #7a1f17 70%); }
  .otc--rk-UR .otc__rk { background: linear-gradient(135deg, #7a1f17, #b8352a); color: #fbe7a1; }
  .otc--rk-UR .otc__foil { mix-blend-mode: overlay; opacity: .55; background-image: linear-gradient(115deg, rgba(255,120,120,.0) 20%, rgba(255,170,120,.55) 32%, rgba(255,240,140,.55) 40%, rgba(140,255,200,.5) 48%, rgba(120,190,255,.55) 56%, rgba(200,140,255,.5) 64%, rgba(255,120,120,0) 76%); animation-duration: 4.5s; }
  .otc__rare--in { top: auto; right: 2.4cqw; bottom: 2.4cqw; z-index: 2; font-size: 5.6cqw; transform: rotate(-12deg); }
  .otc__rare--SR { color: rgba(140,95,15,.9); border-color: rgba(160,110,20,.85); }
  .otc__rare--UR { color: #fff3c4; background: rgba(150,30,20,.88); border-color: #e2b851; mix-blend-mode: normal; }
  @media (prefers-reduced-motion: reduce) { .otc__foil { animation: none; } }
  .ot__rks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .ot__rkb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d8c8a4; background: #fbf5e6; color: #3b2a1a; border-radius: 999px; padding: 5px 12px; min-height: 36px; cursor: pointer; font: inherit; font-size: 13px; }
  .ot__rkb b { font-family: "Courier New", ui-monospace, monospace; font-weight: 900; }
  .ot__rkb small { opacity: .65; font-variant-numeric: tabular-nums; }
  .ot__rkb.is-on { background: #3b2a1a; color: #f4e9cf; border-color: #3b2a1a; }
  .ot__rkb--UR b { color: #b8352a; } .ot__rkb--SR b { color: #9a7424; } .ot__rkb--R b { color: #6d747a; }
  .ot__rkb.is-on b { color: inherit; }
  .ot__rkwhy { display: grid; gap: 4px; border-left: 4px solid #c9b48a; background: #fbf5e6; border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 6px 0 10px; }
  .ot__rkwhy b { font-family: "Courier New", ui-monospace, monospace; } .ot__rkwhy span { font-size: 14px; line-height: 1.6; } .ot__rkwhy small { font-size: 12px; color: #7a6a52; line-height: 1.5; }
  .ot__rkwhy--UR { border-color: #b8352a; } .ot__rkwhy--SR { border-color: #c9a03e; } .ot__rkwhy--R { border-color: #9aa1a7; }
  .ot__cardbtn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
  .ot__cardbtn:hover .otc { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 2px 5px rgba(60,40,15,.25), 0 16px 26px -12px rgba(60,40,15,.55); }
  .ot__cardbtn:focus-visible .otc { outline: 3px solid #7a2e1f; outline-offset: 3px; }
  .ot__cards, .ot__album { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 14px; }
  .ot__album { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px 10px; padding: 16px; border-radius: 10px;
    background: repeating-linear-gradient(90deg, rgba(60,35,15,.05) 0 2px, transparent 2px 14px), linear-gradient(#5b3b22, #4a2f1b); box-shadow: inset 0 3px 12px rgba(0,0,0,.35); }
  @media (max-width: 480px) { .ot__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } .ot__album { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; } }
  .ot__slot { aspect-ratio: 63 / 88; border: 2px dashed rgba(240,220,180,.35); border-radius: 6px; background: rgba(255,240,210,.06); color: rgba(240,220,180,.55); display: grid; place-content: center; gap: 6px; cursor: pointer; font: inherit; }
  .ot__slot:hover { background: rgba(255,240,210,.12); color: rgba(240,220,180,.85); }
  .ot__slotg { font-family: var(--font-serif); font-size: 26px; font-weight: 900; } .ot__slotn { font-family: "Courier New", ui-monospace, monospace; font-weight: 700; font-size: 14px; }
  .ot__stat { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-family: var(--font-serif); } .ot__stat b { font-size: 22px; color: #7a2e1f; }
  .ot__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .ot__tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 4px; border: 1.5px solid #b89a6a; background: #f6ecd4; color: #3b2a1a; font: inherit; cursor: pointer; }
  .ot__tab b { font-family: var(--font-serif); } .ot__tab small { font-family: "Courier New", ui-monospace, monospace; opacity: .75; }
  .ot__tg { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #7a2e1f; color: #f4e9cf; font-family: var(--font-serif); font-weight: 900; font-size: 14px; }
  .ot__tab.is-on { background: #3b2a1a; color: #f4e9cf; border-color: #3b2a1a; } .ot__tab.is-on .ot__tg { background: #f4e9cf; color: #7a2e1f; }
  .ot__desc { margin: 4px 0 10px; color: var(--ink-muted); font-family: var(--font-serif); }
  .ot__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 16px; }
  .ot__mode { display: inline-flex; border: 1.5px solid #b89a6a; border-radius: 4px; overflow: hidden; }
  .ot__mode button { border: 0; background: #f6ecd4; padding: 8px 16px; min-height: 40px; font: inherit; font-family: var(--font-serif); cursor: pointer; color: #3b2a1a; }
  .ot__mode button.is-on { background: #3b2a1a; color: #f4e9cf; }
  .ot__q { flex: 1; min-width: 180px; min-height: 42px; padding: 0 12px; border: 1.5px solid #b89a6a; border-radius: 4px; background: #fffaf0; font: inherit; }
  .ot__guest { margin: 0 0 10px; color: var(--ink-muted); } .ot__guest a { margin: 0 4px; font-weight: 700; }
  .ot__sheet { box-sizing: border-box; position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 22px; width: min(900px, 94vw); max-height: 92vh; max-height: 92dvh; overflow: auto;
    overscroll-behavior: contain; padding: 22px; border-radius: 8px; background: linear-gradient(160deg, #f7eed8, #eadcb9); color: #3b2a1a; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  .ot__sheet .sp__x { position: absolute; right: 10px; top: 10px; background: rgba(59,42,26,.12); color: #3b2a1a; }
  .ot__big { min-width: 0; } .ot__big .otc { width: 100%; }
  .ot__back { min-width: 0; padding-right: 30px; }
  .ot__sheet .sp__act { background: #3b2a1a; color: #f4e9cf; border: 0; } .ot__sheet .sp__act.is-on { background: #7a2e1f; }
  @media (max-width: 700px) { .ot__sheet { grid-template-columns: 1fr; padding: 16px; } .ot__big { width: min(280px, 78vw); margin: 0 auto; } }
  .ot__bk { margin: 0; font-family: "Courier New", ui-monospace, monospace; opacity: .75; }
  .ot__back h3 { font-family: var(--font-serif); font-size: 26px; margin: 4px 0 6px; }
  .ot__orig, .ot__bm { margin: 0 0 6px; font-size: 14px; opacity: .8; }
  .ot__txt { font-family: var(--font-serif); line-height: 1.85; margin: 0 0 10px; }
  .ot__src { font-size: 13px; opacity: .85; border-top: 1px dashed rgba(80,50,20,.5); padding-top: 8px; }
  .ot__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
  .otg { max-width: 520px; margin: 0 auto; }
  .otg__photo { background: #d6c29a; padding: 10px; border: 2px solid #6b4a2b; box-shadow: 0 4px 14px rgba(60,40,15,.3); }
  .otg__photo img { width: 100%; max-height: 340px; object-fit: contain; display: block; background: #2a1d10; filter: sepia(.5); }
  .otg__q { font: 900 22px var(--font-serif); margin: 14px 0 10px; color: #3b2a1a; }
  .otg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .otg__opt { min-height: 54px; border-radius: 6px; border: 1.5px solid #b89a6a; background: #f6ecd4; font: 700 16px var(--font-serif); color: #3b2a1a; cursor: pointer; }
  .otg__opt:disabled { cursor: default; } .otg__opt.is-right { background: #dfeccf; border-color: #4a7a2a; } .otg__opt.is-wrong { background: #f6d9d4; border-color: #a31f14; }
  .otg__reveal { margin-top: 12px; padding: 12px 14px; background: #f6ecd4; border: 1px dashed #b89a6a; border-radius: 6px; font-family: var(--font-serif); line-height: 1.8; }
  .otg__acts { display: flex; flex-wrap: wrap; gap: 8px; }
  .otg__btn { min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1.5px solid #b89a6a; background: #fffaf0; color: #3b2a1a; font: 700 14px var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
  .otg__btn--main { background: #3b2a1a; color: #f4e9cf; border-color: #3b2a1a; } .otg__btn--line { background: #06c755; color: #fff; border-color: #06c755; }
  .ot__submit { margin-top: 12px; min-height: 48px; padding: 0 18px; border-radius: 6px; border: 2px dashed #a31f14; background: #fff8ec; color: #7a2e1f; font: 900 16px var(--font-serif); cursor: pointer; }
  .ot__mysubs { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }
  .ots { grid-template-columns: 1fr !important; width: min(560px, 94vw) !important; }
  .ots__body h3 { font-family: var(--font-serif); margin: 0 0 6px; }
  .ots__drop { display: grid; place-items: center; min-height: 130px; border: 2px dashed #b89a6a; border-radius: 8px; background: #fbf7ee; cursor: pointer; text-align: center; padding: 10px; margin: 10px 0; }
  .ots__drop input { display: none; } .ots__drop b { display: block; font-size: 17px; } .ots__drop small { color: #6b5a46; }
  .ots__thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .ots__thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
  .ots__lb { display: grid; gap: 4px; margin: 8px 0; font-size: 13px; font-weight: 700; color: #5b4630; }
  .ots__lb input, .ots__lb textarea, .ots__lb select { width: 100%; box-sizing: border-box; min-height: 44px; border: 1.5px solid #b89a6a; border-radius: 6px; background: #fffaf0; padding: 8px 10px; font: 400 15px var(--font-sans); color: #3b2a1a; }
  .ots__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ots__ck { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 10px 0; line-height: 1.6; } .ots__ck input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
  .ots__send { width: 100%; justify-content: center; min-height: 50px; font-size: 16px; }
  .otv { margin-top: 14px; padding: 12px; border: 1px dashed #b89a6a; border-radius: 6px; background: #fbf4e2; }
  .otv__h { margin: 0 0 6px; font: 900 16px var(--font-serif); }
  .otv__clip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; } .otv__clip audio { height: 36px; max-width: 100%; } .otv__clip small { color: #6b5a46; }
  .ot__promo { background: linear-gradient(120deg, #f4e9cf, #e6d3aa) !important; color: #3b2a1a !important; border-color: #b89a6a !important; }
  /* 收集冊（SpAlbum，使用者 2026-10-01：像寶可夢卡牌的收集頁，每類一頁） */
  .spmode { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 0; border-radius: 999px; background: var(--surface-sunken); }
  .spmode__b { border: 0; background: none; padding: 8px 18px; min-height: 40px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
  .spmode__b.is-on { background: var(--surface, #fff); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
  .spa__tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
  .spa__tab { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
    padding: 8px 14px 8px 8px; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface, #fff); font: inherit; cursor: pointer; color: var(--ink); }
  .spa__tab .spa__tglyph { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); font-weight: 800; font-size: 15px; }
  .spa__tab b { font-size: 14px; line-height: 1.2; } .spa__tab small { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .spa__tab.is-on { border-color: #1d6f7a; background: #1d6f7a; color: #fff; box-shadow: 0 4px 12px -4px rgba(29,111,122,.6); }
  .spa__tab.is-on small { color: rgba(255,255,255,.85); } .spa__tab.is-on .spa__tglyph { background: rgba(255,255,255,.22); }
  .spa__tab.is-done .spa__tglyph { background: linear-gradient(135deg, #f3d36b, #c99a1c); color: #fff; }
  .spa__band { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin-top: 4px; padding: 18px 18px 18px 16px; border-radius: 18px 18px 0 0;
    background: linear-gradient(115deg, #e6f28a 0%, #d8e88a 30%, #edf3f6 30.2%, #f5f8fa 100%); color: #10323a; }
  .spa__band--bird { background: linear-gradient(115deg, #9fd8f0 0 32%, #eef6fa 32.2%); }
  .spa__band--plant { background: linear-gradient(115deg, #b8e39a 0 32%, #f1f7ec 32.2%); }
  .spa__band--butterfly { background: linear-gradient(115deg, #f6c7e0 0 32%, #fbf1f6 32.2%); }
  .spa__band--fish { background: linear-gradient(115deg, #8fc4f5 0 32%, #eef4fb 32.2%); }
  .spa__band--crab { background: linear-gradient(115deg, #f7b7a0 0 32%, #fbf0ec 32.2%); }
  .spa__band--shell { background: linear-gradient(115deg, #f3dcae 0 32%, #fbf6ec 32.2%); }
  .spa__band--mammal { background: linear-gradient(115deg, #d8c3a5 0 32%, #f7f2ea 32.2%); }
  .spa__band--reptile, .spa__band--amphibian { background: linear-gradient(115deg, #c2dc9b 0 32%, #f3f7ec 32.2%); }
  .spa__band--seaweed { background: linear-gradient(115deg, #9fd3b4 0 32%, #eef7f1 32.2%); }
  .spa__band--marine { background: linear-gradient(115deg, #8fb8e8 0 32%, #eef3fb 32.2%); }
  .spa__band--glow { background: linear-gradient(115deg, #0e3a52 0 32%, #10273a 32.2%); color: #d8fbff; }
  .spa__emblem { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: #fff;
    background: linear-gradient(145deg, #2a8f9c, #145863); box-shadow: 0 4px 0 #0d3f47, 0 8px 18px -6px rgba(0,0,0,.4); transform: rotate(-6deg); }
  .spa__band--glow .spa__emblem { background: linear-gradient(145deg, #25c9d6, #0b6a86); box-shadow: 0 0 18px rgba(80,240,255,.6), 0 4px 0 #063c4d; }
  .spa__title { display: grid; min-width: 0; } .spa__title small { font-size: 12px; letter-spacing: .08em; opacity: .75; }
  .spa__title b { font-family: var(--font-serif); font-size: 26px; line-height: 1.15; }
  .spa__stats { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .spa__stat { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.85); color: #10323a;
    font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); white-space: nowrap; }
  .spa__stat i { font-style: normal; color: #1d6f7a; } .spa__stat b { font-size: 20px; }
  .spa__prog { height: 5px; background: rgba(0,0,0,.06); border-radius: 0 0 4px 4px; overflow: hidden; margin-bottom: 14px; }
  .spa__prog i { display: block; height: 100%; background: linear-gradient(90deg, #f5c542, #ea6fa6, #7d6cf0, #3fb8d8); transition: width .5s; }
  .spa__guest { margin: 0 0 12px; font-size: 14px; color: var(--ink-muted); } .spa__guest a { margin: 0 4px; font-weight: 700; }
  .spa__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px 10px; padding: 14px; border-radius: 16px;
    background: linear-gradient(180deg, #e8eef3, #dfe7ee); box-shadow: inset 0 2px 8px rgba(0,0,0,.06); }
  @media (max-width: 560px) { .spa__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; padding: 8px; } }
  .spa__slot { position: relative; aspect-ratio: 63 / 88; padding: 0; border: 0; border-radius: 8px; cursor: pointer; font: inherit; background: none; }
  .spa__slot:not(.is-got) { background: linear-gradient(160deg, #eef2f6, #e1e8ef); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), inset 0 2px 6px rgba(80,100,120,.12); }
  .spa__no { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: clamp(15px, 4.4vw, 26px); color: #aab8c6; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
  .spa__slot:not(.is-got):hover .spa__no { color: #7f93a6; }
  .spa__slot.is-got .spc { width: 100%; height: 100%; padding: 4%; }
  .spa__slot.is-got { animation: spaIn .35s ease-out; }
  @keyframes spaIn { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
  .spa__slot:focus-visible { outline: 3px solid var(--tide); outline-offset: 2px; }
  .spa__pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0; font-weight: 700; }
  .spa__pager span { display: grid; text-align: center; } .spa__pager small { font-weight: 500; color: var(--ink-muted); font-size: 12px; }
  .spa__turn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface, #fff); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
  .spa__turn:disabled { opacity: .35; cursor: default; }
  @media (max-width: 560px) { .spa__band { padding: 14px 12px; gap: 10px; flex-wrap: wrap; } .spa__emblem { width: 46px; height: 46px; font-size: 22px; } .spa__title b { font-size: 22px; }
    .spa__stats { width: 100%; justify-content: flex-start; } }
  @media (prefers-reduced-motion: reduce) { .spa__slot.is-got { animation: none; } }
  /* 放大、翻面 */
  .sp__modal { position: fixed; inset: 0; z-index: 3000; background: radial-gradient(circle at 50% 40%, rgba(40,55,70,.72), rgba(8,12,16,.92)); display: grid; place-items: center; padding: 12px; }
  .sp__stage { position: relative; width: min(340px, 84vw, calc((100vh - 190px) * 63 / 88)); width: min(340px, 84vw, calc((100dvh - 190px) * 63 / 88)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .sp__x { position: fixed; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer; }
  .sp__flip { position: relative; width: 100%; aspect-ratio: 63 / 88; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); perspective: 1200px; }
  .sp__flip.is-back { transform: rotateY(180deg); }
  .sp__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .sp__face--back { touch-action: pan-y; transform: rotateY(180deg); border-radius: 4.5% / 3.2%; background: var(--surface-raised, #fff); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
  .sp__face .spc { width: 100%; height: 100%; }
  .sp__acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .sp__act { appearance: none; min-height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
  .sp__act.is-on { background: #0f6e78; border-color: #0f6e78; }
  .sp__hint { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
  /* 卡背（第二版） */
  .spb { padding: 0 0 16px; font-size: 14px; line-height: 1.7; }
  .spb__head { display: flex; gap: 12px; align-items: center; padding: 16px 16px 12px; background: linear-gradient(180deg, #f6f2e8, transparent); border-bottom: 1px solid var(--line); }
  .spb--SR .spb__head { background: linear-gradient(180deg, #f7e7bd, transparent); } .spb--R .spb__head { background: linear-gradient(180deg, #e7ecf1, transparent); }
  .spb--UR .spb__head { background: linear-gradient(120deg, #ffe1dc, #fff3c9, #dcf7e6, #dbe9ff, #f0defc); }
  .spb__thumb { flex: none; width: 76px; height: 76px; border-radius: 12px; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.25); border: 2px solid #fff; }
  .spb__thumb--ph { display: grid; place-items: center; background: var(--line); font-size: 30px; font-weight: 900; color: var(--ink-muted); }
  .spb__id { min-width: 0; } .spb__id h3 { margin: 0; font-size: 20px; line-height: 1.25; }
  .spb__sci { margin: 1px 0 4px; font-size: 13px; color: var(--ink-muted); }
  .spb__badges { display: flex; align-items: center; gap: 6px; margin: 0; }
  .spb__rk { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: #7d776c; }
  .spb__rk--R { background: #7f8b98; } .spb__rk--SR { background: linear-gradient(90deg, #b8862b, #d9a300); } .spb__rk--UR { background: linear-gradient(90deg, #e2583e, #d9a300, #2aa36b, #2b7de0, #9b4fd6); }
  .spb__stars { color: #d9a300; letter-spacing: 1px; font-size: 14px; }
  .spb__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 16px 4px; }
  .spb__tags span { padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--ink-muted); }
  .spb__tags .is-red { color: #b84a4a; border-color: #b84a4a; font-weight: 700; } .spb__tags .is-teal { color: #0f6e78; border-color: #0f6e78; font-weight: 700; }
  .spb__sec { margin: 10px 16px 0; } .spb__sec h4, .spb__why h4, .spb__chart h4 { margin: 0 0 2px; font-size: 13px; color: var(--tide); letter-spacing: .04em; }
  .spb__sec p { margin: 0; }
  .spb__book { padding: 8px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, #3f8a4b 35%, transparent); background: color-mix(in srgb, #3f8a4b 6%, transparent); }
  .spb__book h4 { color: #2f6b3a !important; }
  .spb__sec.is-local { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--tide) 8%, transparent); }
  .spb > .cul__muted { margin: 10px 16px 0; }
  .spb__why { margin: 14px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken, #f3f1ec); }
  .spb__why h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .spb__grade { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid currentColor; background: var(--surface-raised, #fff); }
  .spb__grade--confirmed { color: #0f6e78; } .spb__grade--verified { color: #3b6fc8; } .spb__grade--few { color: #9a7b3a; }
  .spb__whyt { margin: 2px 0 6px; font-size: 13px; color: var(--ink-muted); }
  .spb__lit { margin: 0 0 6px; padding-left: 18px; font-size: 13px; } .spb__lit li span { display: block; color: var(--ink-muted); font-size: 12.5px; }
  .spb__dl { display: grid; grid-template-columns: 5.5em 1fr; gap: 2px 8px; margin: 0; font-size: 13px; }
  .spb__dl dt { color: var(--ink-muted); } .spb__dl dd { margin: 0; }
  .spb__samples { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-muted); }
  .spb__charts { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 14px 16px 0; }
  .spb__row { display: grid; grid-template-columns: 3em 1fr 2.8em; align-items: center; gap: 6px; font-size: 12.5px; margin: 2px 0; }
  .spb__row i { display: block; height: 8px; border-radius: 4px; background: var(--line); } .spb__row i b { display: block; height: 100%; border-radius: 4px; background: #0f6e78; }
  .spb__row em { font-style: normal; color: var(--ink-muted); text-align: right; }
  .spb__months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; height: 64px; align-items: end; }
  .spb__months span { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
  .spb__months i { display: block; background: #d8a23a; border-radius: 3px 3px 0 0; } .spb__months em { font-style: normal; font-size: 10.5px; text-align: center; color: var(--ink-muted); }
  .spb__foot { margin: 14px 16px 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-muted); }
  .spb__foot p { margin: 0 0 6px; } .spb__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .spb__src { margin: 0 0 8px; } .spb__src summary { cursor: pointer; font-weight: 800; color: var(--tide); min-height: 32px; display: flex; align-items: center; }
  .spb__src ol { margin: 4px 0 0; padding-left: 20px; } .spb__src li { margin: 3px 0; overflow-wrap: anywhere; line-height: 1.5; }
  .linkgrp { margin-bottom: 14px; } .linkgrp__h { margin: 10px 0 6px; font-size: 15px; color: var(--tide); }
  /* LINE 名單：三張精選大卡＋依用途收合的分組（LineBoard） */
  .lnb { display: grid; gap: 10px; }
  .lnb__legend { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-muted); }
  .lnb__legend span { display: inline-flex; align-items: center; gap: 6px; }
  .lndot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
  .lndot--oa { background: #1c9a55; } .lndot--grp { background: #d98a1c; }
  .lnb__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
  .lnhero { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #1d2a30;
            background: linear-gradient(120deg, #fdf0d6, #fff8ea); border: 1px solid #f0dcae; }
  .lnhero--oa { background: linear-gradient(120deg, #e3f5ea, #f3fbf6); border-color: #cfe9da; }
  .lnhero:hover { box-shadow: var(--shadow-lift, 0 6px 18px rgba(0,0,0,.1)); } .lnhero:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .lnhero__t { flex: 1; min-width: 0; display: grid; gap: 1px; }
  .lnhero__t em { font-style: normal; font-size: 12px; font-weight: 700; color: #6b3d00; } .lnhero--oa .lnhero__t em { color: #0b5a31; }
  .lnhero__t b { font-size: 16.5px; line-height: 1.35; } .lnhero__t small { font-size: 13px; line-height: 1.45; color: #55636a; }
  .lnhero__b { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #06a84a; color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; }
  .lnacc { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised, #fff); overflow: hidden; }
  .lnacc__h { appearance: none; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
  .lnacc__h:hover { background: var(--surface-sunken, #f4f0e8); } .lnacc__h:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
  .lnacc__i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--surface-tint, #e6f2f2); flex: none; }
  .lnacc__h b { font-size: 15.5px; } .lnacc__h em { font-style: normal; font-size: 13px; color: var(--ink-muted); margin-right: auto; }
  .lnacc__c { font-size: 13px; font-weight: 700; color: var(--tide); white-space: nowrap; }
  .lnacc__in { padding: 2px 14px 14px; display: grid; gap: 8px; }
  .lnacc__d, .lnacc__s { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); } .lnacc__s a { color: var(--tide); }
  /* 電腦上分組排兩到三欄（只有一兩筆的組不必各佔一整列），各自依內容高度 */
  .lnb__accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; align-items: start; }
  .lnchips { display: flex; flex-wrap: wrap; gap: 8px; }
  .lnb a.lnchip { display: inline-flex; box-sizing: border-box; height: auto; align-items: center; gap: 7px; min-height: 44px; padding: 6px 14px 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong, #cfc8ba);
            background: var(--surface, #fff); color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
  .lnb a.lnchip:hover { border-color: var(--tide); color: var(--tide); } .lnchip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  /* LINE 分頁：官方帳號（一對一）與社群（多人聊天室）用顏色分開 */
  .linkgrp__d { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
  .linkgrp--oa .linkgrp__h { color: #0b6b3a; } .linkgrp--grp .linkgrp__h { color: #8a4b00; }
  .linkgrp--oa .linklist > li { border-left: 4px solid #1c9a55; padding-left: 12px; } .linkgrp--grp .linklist > li { border-left: 4px solid #d98a1c; padding-left: 12px; }
  .linklist > li.linkli--oa { border-left: 4px solid #1c9a55; padding-left: 12px; } .linklist > li.linkli--grp { border-left: 4px solid #d98a1c; padding-left: 12px; }
  .linkkind { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; line-height: 20px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
  .linkkind--oa { background: #dff3e6; color: #0b5a31; } .linkkind--grp { background: #fdebc8; color: #6b3d00; }
  .linklist--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 18px; }
  .sp__collect--guest { padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; }
  .sp__authbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
  .sp__authb { appearance: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
               background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
  .sp__authb.is-main { background: var(--tide); border-color: var(--tide); color: #fff; }
  .sp__ask { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--surface-raised, #fff); color: var(--ink); font-size: 14px; }
  .sp__ask p { margin: 0 0 6px; }
  /* 會員專欄、個人空間、文章（2026-09-30） */
  .ma__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
  .ma__card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-md);
              background: var(--surface-raised, #fff); color: var(--ink); text-decoration: none; }
  .ma__card { position: relative; } .ma__card:hover .ma__cardt { color: var(--tide); }
  .ma__cardt { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
  .ma__cardt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
  .ma__by { position: relative; z-index: 1; align-self: flex-start; text-decoration: none; } .ma__by:hover { color: var(--tide); text-decoration: underline; }
  .ma__cov { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
  .ma__cov--ph { display: grid; place-items: center; background: var(--line); font-size: 26px; font-weight: 800; color: var(--ink-muted); }
  .ma__cb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ma__cb b { font-size: 16px; } .ma__meta, .ma__by { font-size: 12.5px; color: var(--ink-muted); }
  .ma__sum { font-size: 13.5px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ma__authors { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .ma__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tide); color: #fff; font-size: 28px; font-weight: 800; }
  .ma__bio { margin: 6px 0 0; white-space: pre-wrap; max-width: 640px; }
  .ma__bioed { width: min(560px, 100%); padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
  .ma__art { max-width: 760px; } .ma__title { font-size: 28px; line-height: 1.3; margin: 6px 0 14px; }
  .ma__p { font-size: 16.5px; line-height: 1.9; white-space: pre-wrap; margin: 0 0 14px; }
  .ma__fig { margin: 14px 0; } .ma__fig img { max-width: 100%; border-radius: 10px; display: block; } .ma__fig figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
  .ma__draft { padding: 6px 10px; border-radius: 8px; background: #fff1e6; color: #8a3b12; }
  .ma__ed { max-width: 820px; } .ma__lab { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-weight: 700; }
  .ma__lab input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-weight: 400; background: var(--surface-raised, #fff); color: var(--ink); }
  .ma__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
  .ma__ta { width: 100%; min-height: 360px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; line-height: 1.8; background: var(--surface-raised, #fff); color: var(--ink); box-sizing: border-box; }
  .ma__pv { padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; }
  .sheet .authbtn:not(.authbtn--primary), .ma__head .authbtn:not(.authbtn--primary), .ma__ed .authbtn:not(.authbtn--primary), .ma__art .authbtn:not(.authbtn--primary), .fbk .authbtn:not(.authbtn--primary),
  .block .authbtn:not(.authbtn--primary):not(.mast-tools *) { background: var(--surface-raised, #fff); color: var(--ink); border: 1px solid var(--line-strong); }
  /* 會員頭像 */
  .ma__av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-sunken); }
  .ma__av--txt { display: inline-grid; place-items: center; background: var(--tide); color: #fff; font-weight: 900; }
  .ma__av--xs { width: 22px; height: 22px; font-size: 12px; } .ma__av--sm { width: 30px; height: 30px; font-size: 14px; }
  .ma__av--lg { width: 96px; height: 96px; font-size: 40px; box-shadow: 0 0 0 3px var(--surface-raised, #fff), 0 0 0 4px var(--line-strong); }
  .ma__avdel { appearance: none; border: 0; background: none; color: var(--ink-muted); text-decoration: underline; padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
  .ma__avmsg { margin: 4px 0 0; font-size: 13px; color: #8a3b12; }
  .ma__achip { display: inline-flex; align-items: center; gap: 6px; } .ma__by { display: inline-flex; align-items: center; gap: 6px; }
  .ma__byline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ma__who { display: inline-flex; align-items: center; gap: 8px; }
  /* 文章格式（編輯區與閱讀頁共用） */
  .ma__rich { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
  .ma__rich p { margin: 0 0 .9em; } .ma__rich h2 { font-size: 1.5em; margin: 1.1em 0 .5em; } .ma__rich h3 { font-size: 1.22em; margin: 1em 0 .4em; }
  .ma__rich blockquote { margin: 1em 0; padding: .4em 1em; border-left: 4px solid var(--tide); background: var(--surface-sunken); color: var(--ink); }
  .ma__rich img { display: block; max-width: 100%; height: auto; margin: .6em auto; border-radius: 8px; }
  .ma__rich figure { margin: 1em 0; } .ma__rich figcaption { text-align: center; font-size: 14px; color: var(--ink-muted); }
  .ma__rich ul, .ma__rich ol { padding-left: 1.6em; margin: 0 0 .9em; } .ma__rich a { color: var(--tide); text-decoration: underline; }
  .ma__rich table { border-collapse: collapse; margin: 1em 0; max-width: 100%; display: block; overflow-x: auto; } .ma__rich td, .ma__rich th { border: 1px solid var(--line-strong); padding: 4px 8px; }
  /* 編輯器 */
  .ma__edbox { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised, #fff); margin: 10px 0; }
  .ma__tools { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface-sunken); border-radius: 12px 12px 0 0; }
  .ma__tb { appearance: none; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .ma__tb:hover { background: var(--surface-raised, #fff); border-color: var(--line-strong); }
  .ma__sel { height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-size: 14px; padding: 0 6px; }
  .ma__sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 4px; }
  .ma__A { font-weight: 900; border-bottom: 3px solid #b42318; line-height: 1.1; } .ma__hl { background: #fff3a3; color: #1f2328; padding: 0 4px; border-radius: 3px; font-size: 13px; }
  .ma__wrap { position: relative; display: inline-flex; }
  .ma__pop { position: absolute; top: 40px; left: 0; z-index: 20; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised, #fff); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
  .ma__sw { display: grid; grid-template-columns: repeat(6, 28px); gap: 6px; } .ma__swc { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; }
  .ma__swc--none { background: #fff; color: #667; font-size: 12px; }
  .ma__lk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: min(400px, calc(100vw - 48px)); }
  .ma__lk input { flex: 1 1 200px; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
  .ma__lk .authbtn { white-space: nowrap; min-height: 40px; padding: 0 14px; }
  .ma__pop { max-width: calc(100vw - 24px); }
  .ma__tbimg { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
  .ma__miss { display: inline-block; margin: 4px 0; padding: 4px 10px; border: 1px dashed #b42318; border-radius: 8px; color: #b42318; background: #fdecea; font-size: 14px; }
  .ma__why { margin: 6px 0 0; padding-left: 1.3em; } .ma__why li { margin: 3px 0; }
  .imgdlg { position: relative; width: min(620px, 100%); max-height: 92vh; overflow: auto; background: var(--surface-raised, #fff); color: var(--ink); border-radius: 16px; padding: 20px; }
  .imgdlg h3 { margin: 0 0 12px; font-size: 19px; }
  .imgdlg__drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line-strong); border-radius: 14px; text-align: center; cursor: pointer; color: var(--ink-muted); }
  .imgdlg__drop svg { width: 36px; height: 36px; color: var(--tide); } .imgdlg__drop b { color: var(--ink); font-size: 16px; }
  .imgdlg__drop.is-over, .imgdlg__drop:hover { border-color: var(--tide); background: color-mix(in srgb, var(--tide) 7%, transparent); }
  .imgdlg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 14px 0 4px; }
  .imgdlg__grid figure { position: relative; margin: 0; } .imgdlg__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
  .imgdlg__grid figcaption { font-size: 12px; color: var(--ink-muted); text-align: center; }
  .imgdlg__rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
  .imgdlg__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
  .ma__icons { width: min(360px, 86vw); max-height: 320px; overflow: auto; } .ma__icons p { margin: 6px 0 4px; font-size: 12.5px; color: var(--ink-muted); font-weight: 700; }
  .ma__igrid { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 2px; }
  .ma__ic { appearance: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font-size: 22px; cursor: pointer; } .ma__ic:hover { background: var(--surface-sunken); }
  .ma__tbimg { cursor: pointer; font-size: 14px; }
  .ma__area { min-height: 360px; padding: 14px 16px; outline: none; color: var(--ink); }
  .ma__area:empty::before { content: attr(data-ph); color: var(--ink-muted); }
  .ma__area img[data-up] { opacity: .8; }
  @media (max-width: 600px) { .ma__tools { top: 0; } .ma__tb { min-width: 34px; height: 34px; } .ma__area { min-height: 280px; padding: 12px; } }
  /* 我的空間：頭像｜名字與介紹｜動作 */
  .ma__head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised, #fff); }
  .ma__head h2 { margin: 4px 0 2px; font-size: 26px; line-height: 1.25; }
  .ma__who2 { min-width: 0; } .ma__who2 .faith__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
  .ma__bio--empty { color: var(--ink-muted); }
  .ma__mine { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .ma__avbox { position: relative; }
  .ma__avpick { cursor: pointer; display: block; border-radius: 50%; }
  .ma__avhint { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 700;
                opacity: 0; transition: opacity .15s; pointer-events: none; }
  .ma__avpick:hover .ma__avhint, .ma__avpick:focus-within .ma__avhint { opacity: 1; }
  @media (hover: none) { .ma__avhint { opacity: 1; inset: auto 0 0 0; height: 28%; border-radius: 0 0 999px 999px; font-size: 11px; background: rgba(0,0,0,.45); } }
  @media (max-width: 700px) {
    .ma__head { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; }
    .ma__mine { grid-column: 1 / -1; justify-content: flex-start; }
    .ma__av--lg { width: 76px; height: 76px; font-size: 32px; }
  }
  /* 會員視窗（精簡版） */
  .ma__av--md { width: 48px; height: 48px; font-size: 20px; }
  .mys__head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
  .mys__who b { display: block; font-size: 19px; line-height: 1.3; } .mys__who span { font-size: 13px; color: var(--ink-muted); }
  .mys__act { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
  .mys__btn { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
              color: var(--ink); background: var(--surface-raised, #fff); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .mys__btn:hover { border-color: var(--tide); color: var(--tide); }
  button.mys__btn { font-family: inherit; cursor: pointer; }
  .mys__btn.is-main { background: var(--tide); border-color: var(--tide); color: var(--on-tide, #fff); }
  .mys__btn.is-quiet { border-color: transparent; color: var(--ink-muted); margin-left: auto; }
  .mys__priv { margin: -4px 0 10px; font-size: 12px; color: var(--ink-muted); } .mys__priv a { color: var(--tide); }
  .mys__stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .mys__stat { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; background: var(--surface-sunken); }
  .mys__stat b { font-size: 18px; line-height: 1.2; } .mys__stat span { font-size: 12px; color: var(--ink-muted); }
  .mys__stat.is-zero b { color: var(--ink-muted); font-weight: 500; }
  .mys__sec { margin-top: 16px; }
  .mys__sec h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 15px; }
  .mys__sec h4 small { font-weight: 400; color: var(--ink-muted); font-size: 12.5px; } .mys__sec h4 a { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--tide); }
  .mys__list { margin: 0; padding: 0; list-style: none; }
  .mys__list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
  .mys__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; text-decoration: none; }
  .mys__t:hover { color: var(--tide); text-decoration: underline; }
  .mys__m { flex: none; font-size: 12.5px; color: var(--ink-muted); } .mys__edit { flex: none; font-size: 13px; color: var(--tide); }
  .mys__none { margin: 0; color: var(--ink-muted); font-size: 14px; }
  @media (max-width: 480px) { .mys__m { display: none; } .mys__btn.is-quiet { margin-left: 0; } }
  .authbtn__av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
  /* 頭像裁切 */
  .avc { width: min(580px, 100%); max-height: 94vh; overflow: auto; background: var(--surface-raised, #fff); color: var(--ink); border-radius: 16px; padding: 18px; }
  .avc h3 { margin: 0 0 4px; font-size: 19px; }
  .avc__stage { position: relative; margin: 12px auto; overflow: hidden; touch-action: none; user-select: none; border-radius: 8px; }
  .avc__stage img { display: block; width: 100%; height: 100%; pointer-events: none; }
  .avc__box { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline: 2px solid #fff; cursor: move; touch-action: none; }
  .avc__circle { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.9); pointer-events: none; }
  .avc__h { position: absolute; width: 22px; height: 22px; background: #fff; border: 2px solid var(--tide); border-radius: 4px; touch-action: none; }
  .avc__h--nw { left: -11px; top: -11px; cursor: nwse-resize; } .avc__h--ne { right: -11px; top: -11px; cursor: nesw-resize; }
  .avc__h--sw { left: -11px; bottom: -11px; cursor: nesw-resize; } .avc__h--se { right: -11px; bottom: -11px; cursor: nwse-resize; }
  /* 編輯器：圖片點選框、拖移落點、固定儲存列 */
  .ma__edbox { position: relative; }
  .ma__area img { cursor: pointer; }
  .ma__pick { position: absolute; z-index: 6; outline: 2px solid var(--tide); cursor: move; touch-action: none; }
  .ma__ph { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--tide); border-radius: 3px; touch-action: none; }
  .ma__ph--nw { left: -9px; top: -9px; cursor: nwse-resize; } .ma__ph--ne { right: -9px; top: -9px; cursor: nesw-resize; }
  .ma__ph--sw { left: -9px; bottom: -9px; cursor: nesw-resize; } .ma__ph--se { right: -9px; bottom: -9px; cursor: nwse-resize; }
  .ma__pbar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; padding: 4px 6px; border-radius: 999px;
              background: rgba(20,24,28,.85); color: #fff; font-size: 12.5px; white-space: nowrap; cursor: default; }
  .ma__pbar span { padding: 0 6px; } .ma__pbar button { appearance: none; border: 0; border-radius: 999px; padding: 3px 10px; background: rgba(255,255,255,.16); color: #fff; font: inherit; cursor: pointer; }
  .ma__pbar button:hover { background: rgba(255,255,255,.3); } .ma__pbar .is-del { background: #b42318; }
  .ma__drop { position: absolute; z-index: 7; width: 3px; background: var(--tide); border-radius: 2px; pointer-events: none; box-shadow: 0 0 0 2px rgba(12,112,120,.25); }
  .ma__savebar { position: sticky; bottom: 0; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
                 margin: 12px -8px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface, #f6f3ee); border-top: 1px solid var(--line-strong);
                 box-shadow: 0 -6px 16px rgba(0,0,0,.06); }
  .ma__sbtn { display: flex; gap: 8px; flex-wrap: wrap; }
  .ma__state { font-size: 13.5px; color: var(--ink-muted); }
  .ma__savebar .ma__chk { margin: 0; }
  /* 文章頁上方固定列：作者、日期、編輯／回我的空間 */
  .ma__artbar { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 -8px; padding: 10px 8px;
                background: var(--surface, #f6f3ee); border-bottom: 1px solid var(--line); }
  .ma__byline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
  .ma__byline:hover span { color: var(--tide); text-decoration: underline; }
  .ma__artmeta { font-size: 13px; color: var(--ink-muted); }
  .ma__artact { margin-left: auto; display: flex; gap: 6px; }
  /* 帳號設定視窗 */
  .acc { position: relative; width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--surface-raised, #fff); color: var(--ink); border-radius: 16px; padding: 20px; }
  .acc h3 { margin: 0 0 4px; font-size: 19px; } .acc__id { margin: 0 0 14px; font-size: 13px; color: var(--ink-muted); }
  .acc__grid { display: grid; gap: 12px; } .acc__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .acc__vbt { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
  .acc__f select { height: 42px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface-raised, #fff); color: var(--ink); }
  .acc__f { display: grid; gap: 4px; } .acc__f span { font-size: 13px; font-weight: 700; } .acc__f small { font-size: 12px; color: var(--ink-muted); }
  .acc__f input { height: 42px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface-raised, #fff); color: var(--ink); }
  .acc__f.is-bad input { border-color: #b42318; box-shadow: 0 0 0 2px rgba(180,35,24,.15); }
  .acc__pw { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
  .acc__pwt { appearance: none; border: 0; background: none; padding: 4px 0 10px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  .acc__msg { margin: 12px 0 0; color: #b42318; font-size: 14px; } .acc__msg.is-ok { color: #15803d; }
  button.mys__btn { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  /* 審核台：改放行事曆 */
  .rvcal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
  .rvcal__hint { font-size: 13px; color: #8a5a12; background: #fff4df; border-radius: 999px; padding: 2px 10px; }
  .rvcal__btn { appearance: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .rvcal__btn:hover { border-color: var(--tide); color: var(--tide); }
  .rvcal__undo { appearance: none; border: 0; background: none; color: var(--tide); text-decoration: underline; font: inherit; font-size: 13px; margin-left: 8px; cursor: pointer; }
  .rvpanel__date { height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
  /* 船位：停著的船在哪裡、點船名在地圖上找 */
  .shiplist li.is-link { cursor: pointer; border-radius: 10px; }
  .shiplist__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
  .shiplist li.is-link:hover, .shiplist li.is-on { background: color-mix(in srgb, var(--tide) 7%, transparent); }
  .shiplist__where { font-size: 13px; color: var(--ink); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .shiplist__go { color: var(--tide); font-weight: 700; font-size: 12.5px; }
  .shipmap .leaflet-tooltip.shiptip.is-idle { display: none; }
  .shipmap.shipmap--near .leaflet-tooltip.shiptip.is-idle { display: block; opacity: .9; }
  .shipmk.is-flash img, .shipmk.is-flash .shipdot { animation: shipflash 1.4s ease-out 2; }
  @keyframes shipflash { 0% { filter: drop-shadow(0 0 0 rgba(255,170,0,0)); transform: scale(1); } 40% { filter: drop-shadow(0 0 10px rgba(255,170,0,1)); transform: scale(1.35); } 100% { filter: none; transform: scale(1); } }
  .sp__regions { align-items: center; margin-top: 8px; } .sp__reglb { font-size: 13px; font-weight: 700; color: var(--ink-muted); margin-right: 2px; }
  /* 生物誌的篩選按鈕縮小（使用者 2026-09-30：類別按鈕太多，希望都看得到） */
  .sp__groups, .sp__regions { gap: 6px; margin-bottom: 10px; }
  .sp__groups .dy-chip, .sp__regions .dy-chip { min-height: 30px; height: 30px; padding: 0 10px; font-size: 13px; gap: 4px; }
  .sp__groups .dy-chip .dy-chip__count, .sp__regions .dy-chip .dy-chip__count { font-size: 11.5px; }
  .sp__reglb { font-size: 12.5px; }
  .sp__flt .his__chip.is-on::before { content: '✓ '; font-weight: 900; }
  .sp__none { padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; color: var(--ink-muted); }
  .sp__none p { margin: 0 0 8px; }
  .sp__flt { gap: 5px; } .sp__flt .his__chip { min-height: 30px; padding: 0 10px; font-size: 13px; }
  .sp__rk { gap: 5px; } .sp__rkb { min-height: 30px; padding: 2px 10px; font-size: 12.5px; }
  .sp__tools input[type="search"] { min-height: 38px; font-size: 14px; }
  @media (max-width: 600px) {
    .sp__groups .dy-chip, .sp__regions .dy-chip, .sp__flt .his__chip, .sp__rkb { min-height: 28px; height: 28px; padding: 0 8px; font-size: 12.5px; }
    .sp__groups, .sp__regions, .sp__rk, .sp__flt { gap: 4px; }
  }
  /* 發光生物卡：夜空深藍底、藍綠色螢光外框，外光慢慢呼吸（拖曳時停，不干擾操作） */
  .spc--glow { background: linear-gradient(145deg, #1de9d0, #0a7fb8 45%, #28f0c8 70%, #0b5e8a) !important;
               box-shadow: 0 0 0 1px rgba(120,255,235,.9), 0 0 14px rgba(40,240,210,.65), 0 0 34px rgba(30,150,255,.35), 0 10px 22px -12px rgba(0,0,0,.5); animation: spglow 3.6s ease-in-out infinite; }
  @keyframes spglow { 0%, 100% { box-shadow: 0 0 0 1px rgba(120,255,235,.9), 0 0 12px rgba(40,240,210,.55), 0 0 28px rgba(30,150,255,.28), 0 10px 22px -12px rgba(0,0,0,.5); }
                      50% { box-shadow: 0 0 0 1px rgba(160,255,240,1), 0 0 22px rgba(40,240,210,.85), 0 0 50px rgba(30,150,255,.45), 0 10px 22px -12px rgba(0,0,0,.5); } }
  .spc--glow.is-drag, .spc--glow.is-tilt { animation: none; }
  .spc--glow .spc__in { background: radial-gradient(120% 80% at 50% 0%, #0d3b52 0%, #06202f 55%, #041621 100%) !important; color: #d8fbf5; }
  .spc--glow .spc__name { color: #8ff9ea; text-shadow: 0 0 6px rgba(80,255,230,.8), 0 0 16px rgba(40,200,255,.5); background: none !important; -webkit-text-fill-color: #8ff9ea; }
  .spc--glow .spc__glyph { background: #0b3b4a; color: #8ff9ea; box-shadow: 0 0 8px rgba(80,255,230,.8); }
  .spc--glow .spc__stars { color: #6ff5e3 !important; text-shadow: 0 0 6px rgba(80,255,230,.9) !important; }
  .spc--glow .spc__art { border-color: #7ff5e4; box-shadow: 0 0 10px rgba(80,255,230,.6); background: #041a26; }
  .spc--glow .spc__type, .spc--glow .spc__type i { color: #9ee9e0; }
  .spc--glow .spc__box { background: rgba(10,50,66,.7); border-color: rgba(120,255,235,.35); color: #d8fbf5; }
  .spc--glow .spc__where span { background: #13c5b0 !important; color: #032029; }
  .spc--glow .spc__flav { color: #b9ece6; }
  .spc--glow .spc__grade { color: #8ff9ea; border-color: #8ff9ea; background: transparent; }
  .spc--glow .spc__prot { color: #ffe27a; }
  .spc--glow .spc__rk { color: #8ff9ea; text-shadow: 0 0 6px rgba(80,255,230,.9); background: none; -webkit-text-fill-color: #8ff9ea; }
  .spc--glow .spc__holo { background: radial-gradient(circle at var(--mx) var(--my), rgba(120,255,235,.25), transparent 45%) !important; mix-blend-mode: screen; opacity: .8; }
  .spc--glow .spc__spark { display: none; }
  /* 沒照片的發光生物：夜裡地面上幾點會呼吸的綠光 */
  .spc__ph--glow { position: relative; background: radial-gradient(90% 70% at 50% 100%, #0f3a2e, #041a26 70%); color: transparent; }
  .spc__ph--glow i { position: absolute; width: 5cqw; height: 5cqw; border-radius: 50%; background: #b8ffe9; box-shadow: 0 0 3cqw 1.5cqw rgba(90,255,200,.85), 0 0 8cqw 3cqw rgba(40,220,180,.35); animation: spfly 2.8s ease-in-out infinite; }
  .spc__ph--glow i:nth-child(1) { left: 22%; top: 62%; } .spc__ph--glow i:nth-child(2) { left: 48%; top: 72%; animation-delay: .7s; }
  .spc__ph--glow i:nth-child(3) { left: 70%; top: 58%; animation-delay: 1.4s; } .spc__ph--glow i:nth-child(4) { left: 35%; top: 40%; animation-delay: 2.1s; width: 3cqw; height: 3cqw; }
  .spc__ph--glow i:nth-child(5) { left: 80%; top: 30%; animation-delay: 1s; width: 3cqw; height: 3cqw; }
  .spc__ph--glow small { position: absolute; left: 0; right: 0; bottom: 3cqw; text-align: center; font-size: 3.4cqw; font-weight: 700; color: rgba(190,255,240,.75); }
  @keyframes spfly { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) { .spc--glow, .spc__ph--glow i { animation: none; } }
  /* 天氣動態圖示 */
  .wxi { flex: none; vertical-align: -5px; margin-right: 5px; overflow: visible; }
  .wxi__sun circle { fill: #ffcc33; } .wxi__sun line { stroke: #ffcc33; stroke-width: 1.8; stroke-linecap: round; }
  .wxi__sun { transform-origin: 12px 12px; animation: wxspin 14s linear infinite; }
  .wxi__moon { fill: #ffe9a8; animation: wxglow 3.5s ease-in-out infinite; }
  .wxi__cloud { fill: #dfe7ec; stroke: #9fb1bc; stroke-width: .8; }
  .wxi__drift { animation: wxdrift 4s ease-in-out infinite; }
  .wxi__drop { stroke: #6cc3ff; stroke-width: 1.6; stroke-linecap: round; animation: wxdrop 1s linear infinite; }
  .wxi__bolt { fill: #ffd23f; animation: wxflash 2.4s steps(1) infinite; }
  .wxi__fog { stroke: #c9d4da; stroke-width: 2; stroke-linecap: round; animation: wxfog 3s ease-in-out infinite; }
  @keyframes wxspin { to { transform: rotate(360deg); } }
  @keyframes wxglow { 0%, 100% { opacity: .85; } 50% { opacity: 1; filter: drop-shadow(0 0 2px #ffe9a8); } }
  @keyframes wxdrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.5px); } }
  @keyframes wxdrop { 0% { transform: translateY(-2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(3px); opacity: 0; } }
  @keyframes wxflash { 0%, 70%, 100% { opacity: 0; } 72%, 80% { opacity: 1; } }
  @keyframes wxfog { 0%, 100% { transform: translateX(-1.5px); opacity: .6; } 50% { transform: translateX(1.5px); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .wxi * { animation: none !important; } }
  .condmini__v .wxi { width: 18px; height: 18px; margin-right: 3px; vertical-align: -4px; }
  /* 起降：可以點的格子 */
  .condtap { appearance: none; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 4px; }
  .srcmini { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
    color: var(--ink-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
  .srcmini:hover { background: var(--surface-sunken, #ece7de); }
  .dy-cond__time { white-space: nowrap; } .dy-cond__time .srcmini__dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
  .srcmini__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--go, #2b8a3e); } .srcmini__dot.is-stale { background: var(--hold, #9a6700); }
  .srcmini__open { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .srcmini__x { border: 0; background: none; color: var(--tide, #0c6e77); font: inherit; font-size: 12.5px; cursor: pointer; min-height: 32px; }
  .subnav__demo { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #f2c14e; color: #4a3500; font-size: 11px; font-weight: 800; vertical-align: 2px; }
  .condmini__v.condtap { overflow: visible; text-overflow: clip; white-space: nowrap; text-align: left; }
  /* 起降判斷做成有顏色的膠囊（2026-10-03 使用者：「達標準」不要白字，要明顯） */
  .condtap.dy-cond__value--go, .condtap.dy-cond__value--hold, .condtap.dy-cond__value--stop {
    justify-self: start; padding: 3px 10px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1.5px solid currentColor; }
  .condtap.dy-cond__value--go { color: var(--go-on-deep, #5fd3a0) !important; background: rgba(95,211,160,.16); }
  .condtap.dy-cond__value--hold { color: var(--hold-on-deep, #f2c94c) !important; background: rgba(242,201,76,.16); }
  .condtap.dy-cond__value--stop { color: var(--stop-on-deep, #ff8a7a) !important; background: rgba(255,138,122,.18); }
  .condtap__i { font-size: .62em; margin-left: 3px; vertical-align: super; opacity: .85; text-decoration: none; display: inline-block; }
  /* 起降的標籤上下兩列要一樣寬、字置中（使用者 2026-10-05：字數不同時字的位置沒有對齊；後來中間那級定名「過門檻」，三級裡仍有四個字的「低於標準」）。
     標籤裡不再放 ⓘ 與來源小點——字數不同時它們會把字推到不同位置，而且整格本來就能點 */
  .dy-cond--dual .condtap.dy-cond__value--go, .dy-cond--dual .condtap.dy-cond__value--hold, .dy-cond--dual .condtap.dy-cond__value--stop {
    min-width: 5.4em; text-align: center; box-sizing: border-box; }
  .dy-cond--dual .condtap .condtap__i { display: none; }
  .dy-cond--dual .condq--real .condtap.dy-cond__value::after { content: none; }
  /* 起降門檻說明 */
  .frule { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--surface-raised, #fff); color: var(--ink); border-radius: 16px; padding: 20px; }
  .frule h3 { margin: 0 0 6px; font-size: 19px; } .frule__std { margin: 0 0 10px; color: var(--ink-muted); font-size: 14px; }
  .frule__t { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 10px; }
  .frule__t th, .frule__t td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: left; }
  .frule__t thead th { font-size: 12.5px; color: var(--ink-muted); font-weight: 700; }
  .frule__stop { color: #b42318; font-weight: 800; } .frule__hold { color: #b26a00; font-weight: 800; } .frule__go { color: #15803d; font-weight: 800; }
  .frule__how { margin: 0 0 10px; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }
  .frule__note { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); line-height: 1.7; }
  .spc__pend { font-weight: 700; color: #ffe27a; } .spc__tag--pend { background: #8a6d12; }
  .sp__seanote a { color: #1d6f7a !important; } .sp__seanote b, .sp__seanote .sp__glowsrc { color: #10323a !important; text-shadow: none !important; }
  .sp__seanote { box-shadow: 0 0 0 1px rgba(29,111,122,.25) !important; background: linear-gradient(135deg, #e7f3f7, #d7ebf1) !important; color: #10323a !important; }
  .sp__glownote { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #06202f, #0d3b52); color: #d8fbf5; box-shadow: 0 0 0 1px rgba(120,255,235,.5), 0 0 14px rgba(40,240,210,.25); }
  .sp__glownote b { color: #8ff9ea; } .sp__glownote p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; }
  .sp__glownote .sp__glowsrc { font-size: 12.5px; color: #9ee9e0; } .sp__glownote a { color: #8ff9ea; }
  .ma__import { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
  .ma__impbtn { appearance: none; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tide); background: var(--surface-raised, #fff); color: var(--tide); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
  .ma__impbtn:hover { background: color-mix(in srgb, var(--tide) 8%, transparent); } .ma__impbtn.is-busy { opacity: .6; cursor: progress; }
  .bi__list { margin: 12px 0; padding-left: 1.4em; font-size: 14px; } .bi__list li { margin: 4px 0; } .bi__list small { color: var(--ink-muted); margin-left: 4px; }
  .bi__rm { appearance: none; border: 0; background: none; color: #b42318; cursor: pointer; margin-left: 6px; }
  .bi__res { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; } .bi__res li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
  .bi__res .is-ok { color: #15803d; } .bi__res .is-bad { color: #b42318; } .bi__res a { color: var(--tide); } .bi__res small { color: var(--ink-muted); }
  /* 停車小幫手 */
  .pk__live { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .pk__right { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .pk__right .pk__mapwrap { flex: 1; min-height: 240px; } .pk__right .pk__fee-box { margin-top: 0; }
  .pk__lots { display: grid; gap: 10px; }
  .pk__sum { margin: 0; font-size: 15px; } .pk__sum b { font-size: 22px; color: var(--tide); margin: 0 2px; } .pk__sum small { color: var(--ink-muted); margin-left: 6px; }
  .pk__lot { background: var(--surface-raised, #fff); border: 1px solid var(--line); border-left: 6px solid #15803d; border-radius: 14px; padding: 12px 16px; }
  .pk__lot--low { border-left-color: #d97706; } .pk__lot--full { border-left-color: #b42318; } .pk__lot--unk { border-left-color: var(--line-strong); }
  .pk__lothead { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .pk__lothead h3 em { margin-left: 10px; font-style: normal; font-size: 13px; font-weight: 800; color: #15803d; white-space: nowrap; } .pk__lot--low .pk__lothead h3 em { color: #d97706; } .pk__lot--full .pk__lothead h3 em { color: #b42318; }
  .pk__brief { align-self: center; font-size: 13px; color: var(--ink-muted); }
  .pk__more1 { margin-top: 6px; font-size: 13px; color: var(--ink-muted); } .pk__more1 summary { display: inline-block; cursor: pointer; color: var(--tide); font-weight: 700; padding: 4px 0; } .pk__more1 p { margin: 2px 0 0; }
  .pk__lothead h3 { margin: 0; font-size: 18px; } .pk__addr { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); }
  .pk__free { text-align: right; flex: none; } .pk__free b { font-size: 34px; line-height: 1; color: #15803d; font-family: var(--font-mono); }
  .pk__lot--low .pk__free b { color: #d97706; } .pk__lot--full .pk__free b { color: #b42318; }
  .pk__free span { color: var(--ink-muted); font-size: 14px; } .pk__free em { display: block; font-style: normal; font-weight: 800; font-size: 13px; color: #15803d; }
  .pk__lot--low .pk__free em { color: #d97706; } .pk__lot--full .pk__free em { color: #b42318; }
  .pk__bar { height: 8px; border-radius: 4px; background: #e3f4e6; overflow: hidden; margin: 10px 0 8px; } .pk__bar i { display: block; height: 100%; background: linear-gradient(90deg, #15803d, #d97706 75%, #b42318); }
  .pk__tags { display: flex; flex-wrap: wrap; gap: 6px; } .pk__tags span { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--surface-sunken); }
  .pk__fee { margin: 8px 0 0; font-size: 13.5px; }
  .pk__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .pk__mapwrap { position: relative; } .pk__map { height: 100%; min-height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); z-index: 0; isolation: isolate; }
  .pk__mapph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-muted); font-size: 14px; border-radius: 14px; background: var(--surface-sunken); z-index: 1; }
  .pk__warn { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fff4df; color: #8a5a12; font-size: 14px; }
  .pkmk { background: none; border: 0; }
  .pkmk__b { position: relative; display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 10px; border-radius: 12px; background: #15803d; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); white-space: nowrap; }
  .pkmk__b::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; }
  .pkmk__b b { font-size: 18px; } .pkmk__b span { font-size: 11px; }
  .pkmk__b--low { background: #d97706; } .pkmk__b--full { background: #b42318; } .pkmk__b--unk { background: #6b7280; }
  .pkmk__b--ok::after { border-top-color: #15803d; } .pkmk__b--low::after { border-top-color: #d97706; } .pkmk__b--full::after { border-top-color: #b42318; } .pkmk__b--unk::after { border-top-color: #6b7280; }
  .pk__fee-box { margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--surface-raised, #fff); border: 1px solid var(--line); }
  .pk__fee-box h3, .pk__card h3 { margin: 0 0 10px; font-size: 18px; }
  .pk__tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-sunken); gap: 2px; margin-bottom: 10px; }
  .pk__tabs button { appearance: none; border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
  .pk__tabs button.is-on { background: var(--tide); color: #fff; }
  .pk__form { display: flex; gap: 8px; } .pk__form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 20px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-raised, #fff); color: var(--ink); }
  .pk__form input:focus { border-color: var(--tide); outline: none; } .pk__form .authbtn { min-height: 48px; padding: 0 22px; font-size: 16px; }
  .pk__recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }
  .pk__recent .his__chip { font-family: var(--font-mono); } .pk__clr { appearance: none; border: 0; background: none; color: var(--ink-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12.5px; }
  .pk__toast { margin: 10px 0 0; color: #8a3b12; font-weight: 600; }
  .pk__none { margin-top: 12px; padding: 14px; border-radius: 12px; background: #e3f4e6; color: #14532d; } .pk__none p { margin: 6px 0 0; font-size: 14px; }
  .pk__res { margin-top: 12px; } .pk__hint { margin: 0 0 8px; color: var(--ink-muted); }
  .pk__cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
  .pk__car { border: 1px solid var(--line); border-radius: 12px; padding: 10px; } .pk__car img, .pk__noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #111; display: grid; place-items: center; color: #aaa; }
  .pk__car p { margin: 8px 0; font-size: 14px; } .pk__car b { font-family: var(--font-mono); }
  .pk__calc { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .pk__calc > div { background: var(--surface-sunken); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
  .pk__calc span { font-size: 12px; color: var(--ink-muted); } .pk__calc b { font-size: 15px; } .pk__due b { color: #b42318; font-size: 20px; }
  .pk__calc .pk__pay, .pk__calc .pk__freeok { grid-column: 1 / -1; }
  .pk__zerobox { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
  .pk__zero { grid-column: 1 / -1; margin: 4px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff4df; color: #8a5a12; font-weight: 700; font-size: 14px; }
  .pk__freeok { margin: 4px 0 0; color: #15803d; font-weight: 800; }
  .pk__bill { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .pk__bill div { display: flex; flex-direction: column; } .pk__bill span { font-size: 13px; color: var(--ink-muted); } .pk__bill strong { font-size: 18px; }
  .pk__total { text-align: right; margin: 8px 0; } .pk__total strong { font-size: 24px; color: #b42318; }
  .pk__pay { width: 100%; justify-content: center; min-height: 46px; }
  .pk__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
  .pk__card { padding: 16px; border-radius: 16px; background: var(--surface-raised, #fff); border: 1px solid var(--line); }
  .pk__card > p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; }
  .pk__news { list-style: none; margin: 0; padding: 0; } .pk__news li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
  .pk__news span { flex: none; color: var(--ink-muted); font-family: var(--font-mono); font-size: 12.5px; padding-top: 2px; } .pk__news a { color: var(--ink); } .pk__news a:hover { color: var(--tide); }
  .pk__more { display: inline-block; margin-top: 8px; color: var(--tide); font-weight: 700; font-size: 14px; }
  .pk .authbtn:not(.authbtn--primary) { background: var(--surface-raised, #fff); color: var(--ink); border: 1px solid var(--line-strong); }
  @media (min-width: 861px) { .pk__right .pk__map { position: absolute; inset: 0; height: auto; min-height: 0; } }      /* 電腦：地圖填滿右欄剩下的高度 */
  @media (max-width: 860px) { .pk__live { grid-template-columns: 1fr; } .pk__right { display: contents; } .pk__mapwrap { position: relative; top: 0; order: -1; } .pk__map { min-height: 300px; } .pk__right .pk__fee-box { order: 2; } .pk__grid2 { grid-template-columns: 1fr; } }
  @media (max-width: 520px) { .pk__calc { grid-template-columns: 1fr 1fr; } .pk__due { grid-column: 1 / -1; } .pk__free b { font-size: 28px; } }
  /* 班機：依班表推算的半透明＋虛框，地面的小一點 */
  .plane3d.is-est { opacity: .55; filter: grayscale(.4); outline: 2px dashed rgba(12,112,120,.7); outline-offset: -4px; border-radius: 50%; }
  .plane3d.is-ground { transform: scale(.8); }
  .plane-est { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: #0c7078; background: rgba(255,255,255,.9); border-radius: 999px; padding: 0 6px; white-space: nowrap; }
  .plane-est--g { color: #555; }
  .ma__cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
  .ma__cat { appearance: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
  .ma__cat.is-on { background: var(--tide); border-color: var(--tide); color: #fff; font-weight: 700; } .ma__cat.is-on::before { content: '✓ '; }
  .ma__catsel { width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface-raised, #fff); color: var(--ink); margin: 4px 0 10px; }
  .ma__restore { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; background: #fff4df; border: 1px solid #e9c98f; }
  .ma__restore span { flex: 1 1 240px; }
  .ma__auto { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); }
  .ma__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
  .ma__sharelb { font-weight: 700; margin-right: 4px; }
  .ma__sb { appearance: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
  .ma__sb--main { background: var(--tide); border-color: var(--tide); color: #fff; }
  .ma__sb--line { background: #06c755; border-color: #06c755; color: #fff; } .ma__sb--fb { background: #1877f2; border-color: #1877f2; color: #fff; }
  /* 一起錄馬祖話 */
  .vc__promo { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #0c7078, #0e5f78); color: #fff; text-decoration: none; }
  .vc__promo--exam { background: linear-gradient(135deg, #46178f, #7a3ed6); color: #fff; border-color: transparent; margin-bottom: 10px; } .vc__promo--exam b, .vc__promo--exam span { color: #fff; }
  .vc__promo b { font-size: 17px; } .vc__promo span { font-size: 14px; opacity: .9; }
  .vc__intro { margin: 0 0 12px; line-height: 1.8; }
  .vc__stats { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-muted); } .vc__stats b { color: var(--tide); font-size: 15px; }
  .vc__intro summary { cursor: pointer; line-height: 1.7; } .vc__intro p { margin: 6px 0 0; line-height: 1.8; font-size: 14px; }
  .vc__cats.vc__cats--row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .vc__cats--row::-webkit-scrollbar { display: none; } .vc__cats--row .ma__cat { flex: none; }
  .vc__tabs { margin-bottom: 14px; }
  .vc__cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
  .vc__mine { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 10px; } .vc__edit { appearance: none; border: 0; background: none; color: var(--tide); text-decoration: underline; cursor: pointer; font: inherit; margin-left: 8px; }
  .vc__card { background: var(--surface-raised, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
  .vw { text-align: center; margin-bottom: 14px; }
  .vw__zh { font-size: 44px; font-weight: 900; line-height: 1.2; } .vw__zh--s { font-size: 28px; }
  .vw__md { display: flex; justify-content: center; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; } .vw__md b { font-size: 22px; color: var(--tide); } .vw__md span { font-size: 18px; color: var(--ink-muted); font-style: italic; }
  .vw__en { margin-top: 4px; color: var(--ink-muted); font-size: 14px; }
  .vw__note { margin: 8px auto 0; max-width: 520px; font-size: 13px; color: #8a5a12; background: #fff4df; border-radius: 10px; padding: 6px 10px; }
  .vr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .vr__btn { appearance: none; border: 0; width: min(320px, 100%); height: 84px; border-radius: 42px; background: var(--tide); color: #fff; font: inherit; font-size: 20px; font-weight: 900; cursor: pointer;
             user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; box-shadow: 0 6px 16px rgba(12,112,120,.35); }
  .vr__btn.is-rec { background: #b42318; transform: scale(1.04); box-shadow: 0 0 0 8px rgba(180,35,24,.2), 0 6px 16px rgba(180,35,24,.4); }
  .vr--s .vr__btn { height: 52px; width: min(260px, 100%); font-size: 16px; }
  .vr__bar { position: relative; width: min(320px, 100%); height: 18px; border-radius: 9px; background: var(--surface-sunken); overflow: hidden; }
  .vr__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #0c7078, #d97706); } .vr__bar span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 18px; font-weight: 700; }
  .vr__done { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; } .vr__done audio { width: min(360px, 100%); }
  .vr__act { display: flex; gap: 8px; } .vr__ok { margin: 0; color: #15803d; font-weight: 800; } .vr__err { margin: 0; color: #b42318; font-size: 14px; text-align: center; }
  .vc__exs { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); } .vc__exs h4 { margin: 0 0 8px; }
  .vc__ex { padding: 10px 0; border-bottom: 1px dashed var(--line); } .vc__ex p { margin: 0 0 8px; text-align: center; } .vc__ex b { font-size: 20px; display: block; }
  .vc__ex span { display: block; color: var(--ink-muted); font-size: 13.5px; } .vc__ex small { display: block; color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
  .vc__nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
  .vc__hint { text-align: center; margin: 0 0 10px; } .vc__audio { display: block; margin: 8px auto; width: min(420px, 100%); } .vc__meta { text-align: center; font-size: 13px; color: var(--ink-muted); margin: 0; }
  .vc__vote { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
  .vc__yes, .vc__no { appearance: none; border: 0; height: 52px; padding: 0 22px; border-radius: 26px; font: inherit; font-size: 17px; font-weight: 800; color: #fff; cursor: pointer; }
  .vc__yes { background: #15803d; } .vc__no { background: #b42318; }
  .vc__consent { background: var(--surface-raised, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; } .vc__consent h3 { margin: 0 0 8px; } .vc__consent li { margin: 4px 0; line-height: 1.7; }
  .vc__login { padding: 16px; border-radius: 14px; background: var(--surface-raised, #fff); border: 1px solid var(--line); }
  .vc__top { margin-top: 18px; } .vc__top ol { margin: 0; padding-left: 1.4em; } .vc__top li { padding: 3px 0; } .vc__top span { color: var(--ink-muted); margin-left: 8px; font-size: 13px; }
  .vd__list { list-style: none; margin: 0; padding: 0; } .vd__list li button { appearance: none; width: 100%; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink); cursor: pointer; }
  .vd__list b { font-size: 18px; } .vd__md { color: var(--tide); font-weight: 700; } .vd__rom { color: var(--ink-muted); font-style: italic; } .vd__en { color: var(--ink-muted); font-size: 13px; flex: 1 1 200px; }
  .vd__n { font-size: 12.5px; color: var(--ink-muted); } .vd__n.is-ok { color: #15803d; font-weight: 700; }
  .vd__clips { list-style: none; margin: 0; padding: 0; } .vd__clips li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; } .vd__clips audio { height: 36px; max-width: 100%; }
  @media (max-width: 520px) { .vw__zh { font-size: 36px; } .acc__grid--3 { grid-template-columns: 1fr; } }
  /* 風浪程度條：五格綠→紅，右邊一個字 */
  .lvlbtn { appearance: none; border: 0; background: none; padding: 0; margin-left: 6px; cursor: pointer; display: inline-flex; vertical-align: middle; }
  .lvl { display: inline-flex; align-items: center; gap: 5px; } .lvl__bar { display: inline-flex; gap: 2px; }
  .lvl__bar i { width: 6px; height: 12px; border-radius: 2px; background: rgba(255,255,255,.18); }
  .lvl--0 .is-on { background: #34d399; } .lvl--1 .is-on { background: #a3e635; } .lvl--2 .is-on { background: #facc15; } .lvl--3 .is-on { background: #fb923c; } .lvl--4 .is-on { background: #ef4444; }
  .lvl__w { font-size: 13px; font-weight: 800; text-decoration: underline dotted; text-underline-offset: 3px; }
  .lvl--0 .lvl__w { color: #6ee7b7; } .lvl--1 .lvl__w { color: #bef264; } .lvl--2 .lvl__w { color: #fde047; } .lvl--3 .lvl__w { color: #fdba74; } .lvl--4 .lvl__w { color: #fca5a5; }
  .frule .lvl__bar i { background: #e5e7eb; width: 22px; height: 14px; }
  .frule .lvl--0 .is-on { background: #34d399; } .frule .lvl--1 .is-on { background: #a3e635; } .frule .lvl--2 .is-on { background: #facc15; } .frule .lvl--3 .is-on { background: #fb923c; } .frule .lvl--4 .is-on { background: #ef4444; }
  .frule__t td:last-child { white-space: nowrap; } .frule .lvl__w { color: var(--ink); font-size: 16px; text-decoration: none; }
  .lvlbig { margin: 4px 0 12px; } .frule__t tr.is-on td { background: #fff4df; font-weight: 800; }
  .ma__chk { display: block; margin: 10px 0; } .ma__msg { color: #8a3b12; }
  .fbk__b { appearance: none; margin-top: 8px; padding: 4px 12px; min-height: 34px; border: 1px dashed var(--line-strong); border-radius: 999px; background: none; color: var(--ink-muted); font: inherit; font-size: 13px; cursor: pointer; }
  .fbk__b:hover { color: var(--tide); border-color: var(--tide); }
  .fbk { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken, #f3f1ec); }
  .fbk__h { margin: 0 0 6px; font-size: 13.5px; } .fbk textarea { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
  .fbk__st { font-size: 13px; color: #8a3b12; margin: 6px 0 0; }
  .spc__sub { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin-top: -1cqw; min-height: 6.2cqw; }
  .spc__sub .spc__stars { margin-top: 0; flex: none; }
  .spc__local { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 4.6cqw; line-height: 1.2; color: #7a4a12; }
  .spc__local small { margin-right: 1.4cqw; padding: .1cqw 1.4cqw; border-radius: 1cqw; background: #7a4a12; color: #fff; font-size: 3.6cqw; font-weight: 800; vertical-align: .3cqw; }
  .spc__tag { padding: 0 1.8cqw; border-radius: 99px; font-weight: 900; line-height: 1.6; color: #fff; white-space: nowrap; }
  .spc__tag--play { background: #3b7fc4; } .spc__tag--eat { background: #3f8a4b; } .spc__tag--toxic { background: #c0392b; }
  .spb__cul { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #d9a300 9%, transparent); }
  .spb__cul--play { background: color-mix(in srgb, #3b7fc4 9%, transparent); } .spb__cul--eat { background: color-mix(in srgb, #3f8a4b 10%, transparent); }
  .spb__cul--toxic { background: color-mix(in srgb, #c0392b 10%, transparent); } .spb__cul--toxic h4 { color: #b0301f !important; }
  .spb__cul p { margin: 3px 0; } .spb__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; } .spb__where { white-space: nowrap; padding: 0 8px; border-radius: 99px; background: var(--surface-raised, #fff); font-size: 11.5px; color: var(--ink-muted); border: 1px solid var(--line); }
  .spb__cite { font-size: 12px; }
  .sp__sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; margin: 10px 0; }
  .sp__set { appearance: none; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised, #fff);
             color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .sp__set b { font-size: 13.5px; } .sp__set span { font-size: 12px; color: var(--ink-muted); }
  .sp__set i { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .sp__set em { display: block; height: 100%; background: #d9a300; }
  .sp__set.is-on { background: var(--tide); border-color: var(--tide); color: #fff; box-shadow: 0 3px 10px rgba(12,112,120,.35); }
  .sp__set.is-on b::before { content: '✓ '; } .sp__set.is-on span { color: rgba(255,255,255,.85); } .sp__set.is-on i { background: rgba(255,255,255,.3); } .sp__set.is-on em { background: #ffd35a; } .sp__set.is-done { background: #fff8e1; border-color: #d9a300; }
  .sp__quizb { appearance: none; padding: 8px 16px; min-height: 42px; border-radius: 999px; border: 0; background: var(--tide); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
  .spq { position: relative; width: min(460px, 100%); max-height: 90vh; overflow: auto; background: var(--surface-raised, #fff); color: var(--ink); border-radius: 16px; padding: 18px; }
  .spq h3 { margin: 8px 0 10px; font-size: 19px; } .spq__n { margin: 0; color: var(--ink-muted); font-size: 13px; }
  .spq__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-top: 8px; }
  .spq__opts { display: grid; gap: 8px; } .spq__o { appearance: none; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised, #fff); color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
  .spq__o.is-ok { background: #e3f4e6; border-color: #3f8a4b; } .spq__o.is-no { background: #fbe4e1; border-color: #c0392b; }
  .spq__after { margin-top: 10px; } .spq__end h3 { font-size: 24px; }
  .cul__gaps { margin: 6px 0 0; padding-left: 20px; color: var(--ink-muted); font-size: 14px; line-height: 1.8; }
  .skyisles { margin: 4px 0 14px; }
  .skylinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 18px 0 8px; }
  .skylink { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
             background: var(--surface-raised, #fff); color: var(--ink); font: inherit; cursor: pointer; }
  .skylink b { color: var(--tide); font-size: 15px; } .skylink span { font-size: 13px; color: var(--ink-muted); }
  .btf { overflow-x: auto; margin: 8px -4px 0; padding: 0 4px 6px; }
  .btf__grid { display: grid; gap: 3px; min-width: 700px; font-size: 12px; }
  .btf__rh { display: flex; align-items: center; font-weight: 700; color: var(--ink-muted); position: sticky; left: 0; background: var(--surface-raised, #fff); z-index: 1; }
  .btf__rh.is-isl { color: var(--ink); font-size: 13px; }
  .btf__ch { text-align: center; font-weight: 800; font-family: var(--font-mono); line-height: 1.2; } .btf__ch small { display: block; font-weight: 600; color: var(--ink-muted); font-family: inherit; }
  .btf__ch.is-we { color: var(--tide); }
  .btf__meta { text-align: center; color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.25; white-space: pre-line; }
  .btf__moon { display: block; width: 14px; height: 14px; margin: 0 auto 1px; border-radius: 50%; border: 1px solid var(--line-strong); }
  .btf__cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; line-height: 1.15; }
  .btf__cell b { font-size: 14px; font-family: var(--font-mono); } .btf__cell small { font-size: 10px; opacity: .85; font-family: var(--font-mono); }
  .btf__cell.is-sparse { opacity: .6; outline: 1px dashed var(--line-strong); outline-offset: -2px; }
  .btf__cell.is-off { background: var(--surface-tint); color: var(--ink-muted); font-size: 11px; }
  /* 2026-10-05 排版：列名與數值垂直置中對齊、當晚條件分段＋斑馬紋、推薦的晚上 */
  .btf__rh--m, .btf__meta { min-height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .btf__rh--m { align-items: flex-start; }
  .btf__rh.is-odd, .btf__meta.is-odd { background: var(--surface-tint); }
  .btf__rh.is-odd { background: var(--surface-tint); }
  .btf__meta.is-odd { border-radius: 0; }
  .btf__sec { margin-top: 10px; padding: 4px 0 2px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--ink-muted); letter-spacing: .1em; }
  .btf__ch em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: #b07400; min-height: 14px; font-family: var(--font-sans); }
  .btf__ch.is-best { background: #fff3cf; border-radius: 8px 8px 0 0; }
  .btfac li.is-left .btfac__bar { background: var(--surface-tint); border-radius: 4px; }
  .btfac li.is-left .btfac__bar i { border-radius: 4px; }
  .btfac, .btpath { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
  .btfac li, .btpath li { display: grid; grid-template-columns: 5.5em 1fr 3em; gap: 8px; align-items: center; }
  .btfac b, .btpath b { font-family: var(--font-mono); text-align: right; }
  .btfac__bar { position: relative; height: 14px; } .btfac__bar u { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-muted); }
  .btfac__bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--tide); } .btfac li.is-down i { background: #b84a4a; opacity: .6; }
  .btpath__bar { height: 14px; background: var(--surface-tint); border-radius: 3px; } .btpath__bar i { display: block; height: 100%; border-radius: 3px; background: var(--tide); }
  .bthot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px 24px; } .bthot h4 { margin: 4px 0; }
  .forest { font-size: 13px; }
  .forest__row { display: grid; grid-template-columns: minmax(6.5em, 9.5em) 1fr 3.2em; gap: 8px; align-items: center; min-height: 24px; }
  .forest__head { min-height: 18px; margin-bottom: 2px; }
  .forest__track { position: relative; height: 20px; }
  .forest__head .forest__track i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--ink-muted); font-family: var(--font-mono); white-space: nowrap; }
  .forest__track u { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); text-decoration: none; } .forest__track u.is-zero { background: var(--ink-muted); }
  .forest__track em { position: absolute; top: 7px; height: 6px; border-radius: 3px; background: var(--tide); opacity: .3; }
  .forest__track b { position: absolute; top: 4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--tide); }
  .forest__lab { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .forest__val { font-family: var(--font-mono); font-weight: 800; }
  .btfind { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-bottom: 14px; }
  .btfind .dcard { margin: 0; }
  .btbars li { grid-template-columns: minmax(6em, 9em) 1fr 3em 6.5em; }
  .btbars em { font-style: normal; font-size: 12px; color: var(--ink-muted); text-align: right; }
  .btlist { list-style: none; margin: 0; padding: 0; columns: 2; font-size: 13.5px; line-height: 1.8; } .btlist b { color: var(--tide); }
  .dins__tag { margin: 0 0 2px; font-size: 12px; font-weight: 800; color: var(--tide); letter-spacing: .05em; }
  .dins__lead { margin: 4px 0 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
  .dins__r { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }
  .dins__r b { font-family: var(--font-mono); color: var(--ink); font-size: 15px; }
  .dins__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px 28px; align-items: start; margin-top: 8px; }
  .dins__grid > :only-child { max-width: 640px; }
  .dins .dtable th, .dins .dtable td { white-space: nowrap; }
  @media (max-width: 600px) { .dins .dtable { font-size: 12.5px; } .dins .dtable th, .dins .dtable td { padding-left: 4px; padding-right: 4px; } }
  .dins__p { margin: 6px 0; font-size: 14px; line-height: 1.75; }
  .dins__bars li { grid-template-columns: 4.5em 1fr 6.5em; }
  .dins__bb { display: flex; flex-direction: column; gap: 2px; } .dins__bb i { display: block; height: 8px; border-radius: 3px; background: var(--tide); min-width: 2px; }
  .dins__bb i.is-2 { background: #d9822b; }
  .dins__v2 { display: flex; flex-direction: column; line-height: 1.25; } .dins__v2 span + span { color: #b0651f; }
  .dins__legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; font-size: 12px; color: var(--ink-muted); }
  .dins__legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: var(--tide); } .dins__legend i.k2 { background: #d9822b; margin-left: 8px; }
  .dins__how { margin-top: 8px; font-size: 13px; } .dins__how summary { cursor: pointer; min-height: 32px; color: var(--tide); font-weight: 700; }
  .heat { font-size: 11px; }
  .heat__row { display: grid; grid-template-columns: 2.6em repeat(12, 1fr); gap: 2px; margin-bottom: 2px; }
  .heat__head span { text-align: center; color: var(--ink-muted); font-family: var(--font-mono); }
  .heat__y { color: var(--ink-muted); font-family: var(--font-mono); text-align: right; padding-right: 4px; line-height: 14px; }
  .heat__c { height: 14px; border-radius: 2px; } .heat__c.is-pk { outline: 2px solid #d9822b; outline-offset: -1px; }
  .heat__row.is-covid { opacity: .4; }
  .heat__note { margin: 6px 0 0; font-size: 12px; color: var(--ink-muted); }
  .scat { margin: 0; } .scat__svg { width: 100%; height: auto; display: block; }
  .scat__grid { stroke: var(--line); stroke-width: 1; } .scat__ax { font-size: 11px; fill: var(--ink-muted); font-family: var(--font-mono); }
  .scat__lab { font-size: 12px; fill: var(--ink-muted); } .scat__pt { fill: var(--tide); fill-opacity: .55; stroke: var(--tide); }
  .scat__fit { stroke: #d9822b; stroke-width: 2; stroke-dasharray: 5 4; }
  .dcard--cmp { grid-column: 1 / -1; }
  .dcmp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px 24px; align-items: start; }
  .dcmp__blk { padding-top: 8px; border-top: 1px dashed var(--line); }
  .dcmp__hist { margin: 4px 0 0; font-size: 12px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 2px 10px; }
  .dcmp__hist b { color: var(--ink); font-family: var(--font-mono); }
  .dbest__h { margin: 18px 0 8px; font-size: 16px; }
  .dbest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
  .dbest__i { box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md, 12px); background: var(--surface-raised, #fff); }
  .dbest__i.is-top { border-color: var(--tide); }
  .dbest__rk { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 3.2em; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--tide); font-weight: 800; text-align: center; font-size: 13px; }
  .dbest__rk { background: none !important; padding: 0; color: var(--ink-muted); font-size: 12px; }
  .dbest__i.is-top .dbest__rk { color: var(--tide); }
  .dbest__b { min-width: 0; }
  .dbest__t { margin: 0; font-weight: 800; font-size: 15px; }
  .dbest__v { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); } .dbest__v b { color: var(--ink); font-family: var(--font-mono); font-size: 16px; }
  .dbest .dsrc, .dbest .dnote { margin: 4px 0 0; }
  .dbest__i.is-open { grid-column: 1 / -1; } .dbest__i.is-open .dbest__b { flex: 1; }
  .dbest__more { margin-top: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--tide); border-radius: var(--radius-pill); background: none; color: var(--tide); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
  .dbest__i.is-open .dbest__more { background: var(--tide); color: var(--on-tide, #fff); }
  .dbest__rank { margin-top: 10px; }
  @media (min-width: 900px) { .dbest__rank .dcmp__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(11, auto); grid-auto-flow: column; column-gap: 40px; } }
  .linkbtn { border: 0; padding: 0; background: none; color: var(--tide); font: inherit; cursor: pointer; text-decoration: underline; }
  .dmissing, .dnotes { margin: 0 0 10px; padding-left: 20px; font-size: 14px; } .dmissing li, .dnotes li { margin: 6px 0; }
  /* 船班異動公告卡片（2026-09-28） */
  .ncards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-3); }
  .ncard { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); border-left: 4px solid var(--line-strong); }
  .ncard--stop { border-left-color: var(--stop); } .ncard--go { border-left-color: var(--go); }
  .ncard--hold { border-left-color: var(--hold); } .ncard--tide { border-left-color: var(--tide); }
  .ncard__a { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 10px 14px 9px; color: inherit;
              text-decoration: none; min-height: 44px; }
  .ncard__a:hover { background: var(--surface-sunken); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .ncard__a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .ncard__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .ncard__d { font-family: var(--font-mono); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ncard__r { font-size: 16px; line-height: 1.3; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ncard__pill { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: var(--hold); background: var(--hold-tint); padding: 1px 9px; border-radius: var(--radius-pill); }
  .ncard__t { font-size: 13px; line-height: 1.45; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ncard__t--main { font-size: 15px; font-weight: 700; color: var(--ink); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ncard__f { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-muted); }
  .ncard__go { display: inline-flex; align-items: center; gap: 3px; color: var(--tide); font-weight: 700; white-space: nowrap; }
  /* 手機的類別多選（點開勾選） */
  .catpick { position: relative; }
  .catpick > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px;
                       padding: 0 30px 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); position: relative; }
  .catpick > summary::-webkit-details-marker { display: none; }
  .catpick > summary::after { content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }
  .catpick__v { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .catpick__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 60vh; overflow: auto;
                   background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); padding: 4px; min-width: 200px; }
  .catpick__i { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; font-size: 15px; cursor: pointer; }
  .catpick__i input { width: 20px; height: 20px; flex: none; }
  .pfsel { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin-bottom: var(--space-3); }
  .preview { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--ink-muted); }

  .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--space-4); }
  .pcard { display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: var(--ink);
           background: var(--surface-raised); border: 1px solid var(--line); border-top: 4px solid var(--pc);
           border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card);
           transition: transform .15s ease, box-shadow .15s ease; }
  .pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
  .pcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .pcard__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
                background: color-mix(in srgb, var(--pc) 16%, var(--surface-sunken)); }
  .pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: 1; }
  .pcard__initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-serif);
                    font-size: 56px; color: color-mix(in srgb, var(--pc) 60%, var(--ink-muted)); }
  .pcard__body { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); min-width: 0; }
  .pcard__kind { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; color: var(--pc); }
  .pcard__name { font-family: var(--font-serif); font-size: 19px; line-height: 26px; font-weight: 700; }
  .pcard__meta { font-size: 12px; line-height: 17px; color: var(--ink-muted);
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
  .pcard__badge { font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: var(--radius-pill);
                  background: var(--surface-sunken); color: var(--ink-muted); white-space: nowrap; }
  @media (max-width: 560px) {
    .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
    .pcard__name { font-size: 17px; line-height: 23px; }
    .pcard__initial { font-size: 44px; }
  }

  /* 時間長卷：左邊一條線，年代是站牌 */
  .ptl__era { position: relative; padding-left: 22px; }
  .ptl__era::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 0; width: 2px; background: var(--line-strong); }
  .ptl__h { position: relative; margin: var(--space-4) 0 var(--space-2); font-family: var(--font-serif); font-size: 18px; }
  .ptl__h::before { content: ''; position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
                    background: var(--surface); border: 3px solid var(--tide); box-sizing: border-box; }
  .ptl__h .muted { font-family: var(--font-sans); font-size: 13px; font-weight: 400; }
  .ptl__list { list-style: none; margin: 0; padding: 0; }
  .ptl__b { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); align-items: center;
            width: 100%; min-height: 56px; padding: 6px 8px; text-align: left; font: inherit; color: var(--ink);
            background: none; border: 0; border-radius: var(--radius-md); cursor: pointer; }
  .ptl__b:hover { background: var(--surface-sunken); }
  .ptl__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .ptl__ph { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
             background: var(--surface-sunken); font-family: var(--font-serif); font-size: 18px; color: var(--ink-muted); }
  .ptl__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
  .ptl__t { min-width: 0; }
  .ptl__t b { font-size: 16px; margin-right: 8px; }
  .ptl__y { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .ptl__s { display: block; font-size: 12px; line-height: 17px; color: var(--ink-muted);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* 島嶼地圖 */
  .pmap { height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-sunken); }
  .pmap__hint { margin: var(--space-2) 0 var(--space-4); font-size: 13px; }
  .pmap__dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--tide); }
  .pmap__pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px;
               transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));
               font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; color: var(--ink);
               background: var(--surface-raised); border: 2px solid var(--tide); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); }
  .pmap__pin b { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: var(--radius-pill);
                 background: var(--tide); color: var(--on-tide, #fff); font-size: 14px; }
  .pmap__pin.is-on { background: var(--tide); color: var(--on-tide, #fff); }
  .pmap__pin.is-on b { background: var(--surface); color: var(--tide); }
  .pmap__pin.is-zero { opacity: .55; border-color: var(--line-strong); }
  .pmap__pin.is-zero b { background: var(--line-strong); }
  @media (max-width: 560px) {
    .pmap { height: 320px; }
    /* 手機上島與島只隔兩百多像素，標籤改直的（數字在上、島名在下）才不會疊在一起 */
    .pmap__pin { flex-direction: column; gap: 0; padding: 3px 8px 4px; font-size: 12px; line-height: 14px; border-radius: 14px; }
    .pmap__pin b { min-width: 24px; height: 22px; font-size: 13px; }
  }

  /* 故事頁 */
  .pstory__hero { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--space-5); align-items: end;
                  padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
  .pstory__hero:not(:has(.pstory__ph)) { grid-template-columns: 1fr; }
  .pstory__ph { margin: 0; }
  .pstory__ph img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
                    border-radius: var(--radius-lg); border-bottom: 4px solid var(--pc); background: var(--surface-sunken); }
  .pstory__ph figcaption { margin-top: 4px; font-size: 11px; line-height: 15px; color: var(--ink-muted); overflow-wrap: anywhere; }
  .pstory__ph figcaption a { color: inherit; }
  .pstory__kind { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--pc); }
  .pstory__name { margin: 2px 0 4px; font-family: var(--font-serif); font-size: 34px; line-height: 1.2; }
  .pstory__meta { margin: 0 0 var(--space-2); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .pstory__cats { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--space-2); }
  .pstory__place { margin: 0; font-size: 13px; color: var(--ink-muted); }
  .pstory__chapters { padding: var(--space-4) 0; }
  .pstory__ch { position: relative; margin: 0 0 var(--space-4); }
  .pstory__ch p { margin: 0; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
  .pstory__ch.is-lead p::first-letter { float: left; font-family: var(--font-serif); font-size: 3.1em; line-height: .95;
                                        margin: 4px 8px 0 0; color: var(--pc); }
  .pstory__no { display: block; margin-bottom: 2px; font-family: var(--font-serif); font-size: 13px; letter-spacing: .2em; color: var(--pc); }
  .pstory__news, .pstory__src { padding-top: var(--space-3); border-top: 1px solid var(--line); }
  .pstory__news h3, .pstory__src h3 { margin: 0 0 var(--space-2); font-size: 14px; }
  .pstory__news ul, .pstory__src ul { margin: 0 0 var(--space-3); padding-left: 1.2em; font-size: 14px; line-height: 1.7; }
  .pstory__src { font-size: 13px; color: var(--ink-muted); }
  .pstory__why summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
  @media (max-width: 560px) {
    .pstory__hero { grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
    .pstory__name { font-size: 26px; }
    .pstory__ch p { font-size: 15px; line-height: 1.85; }
  }


  /* ─── 島上商家名錄 ─── 一家兩行：店名＋類別｜電話 · 村 · 營業時間 · 有哪些連結。整列可點開詳情 */
  .shopfind { margin: 0 0 var(--space-3); }
  .shoplist { list-style: none; margin: 0; padding: 0; }
  .shoplist__i + .shoplist__i { border-top: 1px solid var(--line); }
  /* 封面縮圖：96×72（伺服器給 192×144 的 WebP，約 5 KB，兩倍解析度剛好） */
  .shopthumb { position: relative; flex: none; width: 96px; height: 72px; border-radius: var(--radius-md);
               overflow: hidden; display: grid; place-items: center; }
  .shopthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .shopthumb__i { font-family: var(--font-serif); font-size: 26px; font-weight: 700; opacity: .75; }
  .shopthumb::before { content: ''; position: absolute; inset: 0;
                       background: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 9px); opacity: .08; }
  .shoplist__txt { flex: 1; min-width: 0; display: block; }
  .shopcover { margin: 0 0 var(--space-3); }
  /* 關閉鈕是浮在右上角的，照片緊接在後面會被它蓋住（使用者 2026-09-28）：照片從關閉鈕下面開始 */
  .sheet__x + figure, .sheet__x + img, .sheet__x + .shopcover { clear: both; padding-top: var(--space-2); }
  .shopcover img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
                   border-radius: var(--radius-lg); background: var(--surface-sunken); }
  .shopcover figcaption { margin-top: 4px; font-size: 11px; color: var(--ink-muted); }
  .shopcover figcaption a { color: inherit; }
  @media (max-width: 560px) { .shopthumb { width: 72px; height: 54px; } .shopthumb__i { font-size: 20px; } }
  .shoplist__b { display: flex; gap: var(--space-3); align-items: center; width: 100%; min-height: 56px; padding: 8px 4px; text-align: left; font: inherit;
                 color: var(--ink); background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm); }
  .shoplist__b:hover { background: var(--surface-sunken); }
  .shoplist__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .shoplist__t { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
  .shoplist__n { font-size: 15px; line-height: 22px; font-weight: 700; min-width: 0; }
  .shoplist__t .festlist__k { margin-right: 0; }
  .shoplist__s { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--ink-muted);
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shoplist__s > span + span::before { content: '·'; margin: 0 6px; }
  .shoplist__tel { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
  .shoplist__lk { color: var(--tide); font-weight: 600; }
  .shoplist__hl { color: var(--hold-ink, var(--hold)); font-weight: 700; }
  .shoplist__warn { color: var(--stop); font-weight: 700; }
  .shoplist__owner { color: var(--ink); font-weight: 700; }
  /* 廣告標示：要一眼看得出來，但不要比店名搶眼。
     class 不能叫 shopad／ad：廣告攔截器會把它藏起來，等於沒有揭露（後台就被藏過一次） */
  .shoppaid { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 11px; line-height: 16px; font-weight: 700;
            vertical-align: 2px; color: var(--hold-ink, var(--ink)); border: 1px solid var(--hold); border-radius: 4px; }
  .shopwhy__pin { margin: var(--space-2) 0 0; font-size: 13px; color: var(--ink); }
  .shopstatus { margin: var(--space-3) 0; padding: var(--space-3); border-radius: var(--radius-md);
                background: var(--stop-tint); color: var(--ink); font-size: 14px; }
  .shopstatus b { color: var(--stop); }
  .shopstatus ul { margin: 4px 0 0; padding-left: 1.2em; line-height: 1.6; }
  .shopstatus p { margin: 4px 0 0; font-size: 13px; }
  .shoprep .rvpanel__ta { width: 100%; box-sizing: border-box; }
  .shoppending { margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
                 background: var(--hold-tint); font-size: 13px; }
  .shopreg--closed summary { color: var(--stop); }
  .shopwhy summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink); font-weight: 700; }
  .shopwhy p { margin: var(--space-2) 0 0; font-size: 12px; }
  .shopsort { font-size: 13px; margin: 0 0 var(--space-2); }
  .shoplist--reg .shoplist__n { font-weight: 600; font-size: 14px; }
  .shopmore { display: flex; justify-content: center; padding: var(--space-3) 0; }
  .shopreg { margin-top: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-2); }
  .shopreg summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
                     font-weight: 700; font-size: 14px; }
  .shopreg summary .muted { font-weight: 400; font-size: 12px; }
  .shopact { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
  .shopact__b { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
                border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink);
                text-decoration: none; font-weight: 600; font-size: 14px; background: var(--surface); }
  .shopact__b:hover { background: var(--surface-sunken); }
  .shopact__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .shopact__b--main { background: var(--tide); border-color: var(--tide); color: var(--on-tide, #fff);
                      font-variant-numeric: tabular-nums; }
  .shopact__b--main:hover { background: var(--tide); filter: brightness(1.08); }
  .shopnote { font-size: 13px; }
  .shopsrc { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line);
             font-size: 13px; color: var(--ink-muted); }
  .shopsrc h3 { margin: 0 0 var(--space-2); font-size: 14px; color: var(--ink); }
  .shopsrc ul { margin: 0; padding-left: 1.2em; line-height: 1.7; }


  /* ─── 景點 /spots ─── 地圖以動畫展開、釘子依序淡入（使用者要求「以動畫方式跑出一個地圖」） */
  .spotisles { margin-bottom: 0; }
  .spotfilters { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
  .spotfilters__row { display: flex; align-items: flex-start; gap: var(--space-3); }
  .spotfilters__row .newsfilter { margin-bottom: 0; flex: 1; }
  .spotfilters__lb { flex: none; width: 2.6em; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
  .spotfilters .pfsel { flex: 1; margin-bottom: 0; }
  @media (max-width: 560px) { .spotfilters__row { display: block; } .spotfilters__lb { display: none; } }
  .spotmap { height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
             background: #0b2a3a; margin-bottom: var(--space-4); animation: spotmap-in .45s cubic-bezier(.2,.7,.2,1) both; }
  .spotmap--wait { display: grid; place-items: center; background: var(--surface-sunken); }
  @keyframes spotmap-in { from { opacity: 0; transform: translateY(-8px) scale(.985); clip-path: inset(0 0 100% 0 round 12px); }
                          to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 12px); } }
  .spin { position: absolute; left: 0; top: 0; transform: translate(-7px, -7px); display: flex; align-items: center; gap: 4px;
          white-space: nowrap; cursor: pointer; animation: spin-in .35s ease-out both; }
  .spin i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid #fff;
            box-shadow: 0 1px 3px rgba(0,0,0,.5); flex: none; transition: transform .15s ease; }
  .spin b { font-size: 12px; line-height: 16px; font-weight: 700; color: #fff; padding: 1px 6px; border-radius: 6px;
            background: rgba(0,0,0,.55); text-shadow: none; }
  .spin:hover i, .is-hot .spin i { transform: scale(1.5); }
  .is-hot .spin b, .spin:hover b { background: var(--c); }
  @keyframes spin-in { from { opacity: 0; transform: translate(-7px, -22px); } to { opacity: 1; transform: translate(-7px, -7px); } }
  .spotdesc { margin: var(--space-3) 0; font-size: 15px; line-height: 1.85; }
  .spotphone { margin: 0 0 var(--space-3); font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
  .spotphone__i { display: block; }
  .spotphone__i b { color: var(--ink); font-variant-numeric: tabular-nums; }
  /* 全部：只留小點＋各島標籤（點了飛過去）；滑過清單時那一個仍然顯示名字 */
  .is-overview .spin b { display: none; }
  .is-overview .is-hot .spin b { display: inline; }
  .is-overview .spin i { width: 10px; height: 10px; }
  .spisle { position: absolute; left: 0; top: 0; transform: translate(var(--dx, -50%), var(--dy, -150%)); white-space: nowrap; cursor: pointer;
            min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid #fff; background: rgba(13,109,115,.92);
            color: #fff; font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.4);
            animation: spisle-in .5s ease-out both; }
  /* 不能沿用釘子的 spin-in：那個動畫的最後一格寫死了 transform，會蓋掉標籤的位置（上下錯開全部失效） */
  @keyframes spisle-in { from { opacity: 0; } to { opacity: 1; } }
  .spisle b { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .85; }
  .spisle:hover { background: #0d6d73; transform: translate(var(--dx, -50%), var(--dy, -150%)) scale(1.06); }
  .spisle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  @media (max-width: 560px) {
    .spotmap { height: 320px; }
    .spin b { display: none; }                       /* 手機上名字會疊在一起：只留點，滑過或點了再看 */
    .spisle { font-size: 13px; padding: 0 10px; }
    .is-hot .spin b { display: inline; }
  }
  @media (prefers-reduced-motion: reduce) {
    .spotmap, .spin { animation: none; }
  }


  /* ─── 景點 3D 地圖 ─── 島嶼立體浮在海上（Three.js），釘子是疊在上面的 HTML，每一格畫面投影一次位置 */
  .spot3d { position: relative; height: 480px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-4);
            background: linear-gradient(#bfe3ef, #4aaed3); border: 1px solid var(--line);
            animation: spotmap-in .45s cubic-bezier(.2,.7,.2,1) both; touch-action: none; cursor: grab; }
  .spot3d:active { cursor: grabbing; }
  .spot3d__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .spot3d__pins { position: absolute; inset: 0; pointer-events: none; }
  .spot3d__pin, .spot3d__isle { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; }
  .spot3d__pin { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
                 margin: -7px 0 0 -7px; white-space: nowrap; font: inherit; animation: spot3d-in .5s ease-out both; }
  .spot3d__pin i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid #fff;
                   box-shadow: 0 2px 4px rgba(0,0,0,.55); transition: transform .15s ease; }
  .spot3d__pin b { font-size: 12px; line-height: 16px; font-weight: 700; color: #fff; padding: 1px 6px; border-radius: 6px;
                   background: rgba(0,0,0,.55); }
  .spot3d__pin:hover i, .spot3d__pin.is-hot i { transform: scale(1.6); }
  .spot3d__pin:hover b, .spot3d__pin.is-hot b { background: var(--c); }
  .spot3d__pin.is-hot { z-index: 5; }
  .spot3d__pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
  /* 名稱疊到別的名稱或超出邊緣就藏起來（placePins 判斷）。用 visibility 不用 display：寬度要量得到 */
  .spot3d__pin.no-lb b { visibility: hidden; }
  /* 行程的點：點裡寫第幾站，比一般的點大 */
  .spot3d__pin.is-trip { margin: -11px 0 0 -11px; z-index: 4; }
  .spot3d__pin.is-trip i { width: 22px; height: 22px; font: 700 12px/18px system-ui, sans-serif; font-style: normal; color: #fff; text-align: center; }
  .spottrip { align-items: center; }
  .spottrip .camsel__s { max-width: 14em; }
  .spottrip__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
  .spottripday h3 { font-size: 15px; margin: 14px 0 4px; }
  /* 行程規劃 */
  .tripbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
  .tripform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; margin: 12px 0;
              padding: 14px; border: 1px solid var(--line, #d9e2e5); border-radius: 12px; }
  .tripform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2, #445); }
  .tripform input, .tripform select, .tripform textarea { font: inherit; font-size: 15px; min-height: 40px; padding: 6px 10px;
              border: 1px solid var(--line, #c9d3d6); border-radius: 8px; background: var(--surface, #fff); color: inherit; }
  .tripform__wide, .tripform .tripbar { grid-column: 1 / -1; }
  .tripnote { white-space: pre-wrap; margin: 6px 0; }
  .tripshare { font-size: 13px; overflow-wrap: anywhere; }
  .tripshare button { margin-left: 8px; min-height: 32px; }
  .tripmsg { font-size: 14px; color: var(--hold, #9a6700); }
  .tripdays { margin: 12px 0; }
  .triplist { list-style: none; padding: 0; margin: 0; }
  .tripitem { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line, #e3e8ea); }
  .tripitem__n { width: 26px; height: 26px; border-radius: 50%; background: var(--deep, #0C6E77); color: #fff; font-weight: 700;
                 font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
  .tripitem__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .tripitem__t b { font-size: 16px; }
  .tripitem__time { font-variant-numeric: tabular-nums; font-weight: 700; }
  .tripitem__timein { font: inherit; font-variant-numeric: tabular-nums; min-height: 36px; padding: 2px 6px; border: 1px solid var(--line, #c9d3d6);
                      border-radius: 6px; background: transparent; color: inherit; }
  .tripitem__s { margin: 3px 0 0; font-size: 13px; color: var(--ink-2, #556); }
  .tripitem__alert { margin: 4px 0 0; font-size: 13px; font-weight: 600; }
  .tripitem__alert.is-stop { color: var(--stop, #c92a2a); }
  .tripitem__alert.is-hold { color: var(--hold, #9a6700); }
  .tripitem__alert.is-go { color: var(--go, #2b8a3e); }
  .tripitem__act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
  .tripitem__act a, .tripitem__act button, .tripitem__act select { font-size: 13px; min-height: 36px; min-width: 36px; padding: 4px 10px;
                      border: 1px solid var(--line, #c9d3d6); border-radius: 8px; background: transparent; color: inherit;
                      display: inline-flex; align-items: center; gap: 4px; text-decoration: none; cursor: pointer; }
  .tripitem__act button:disabled { opacity: .35; cursor: default; }
  .tripitem__del { color: var(--stop, #c92a2a) !important; }
  .triproutes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
  .tripadd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0; }
  .trippick { list-style: none; padding: 0; margin: 8px 0; max-height: 60vh; overflow: auto; }
  .trippick button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; min-height: 44px;
                     border: 0; border-bottom: 1px solid var(--line, #e3e8ea); background: none; color: inherit; font: inherit; cursor: pointer; }
  .trippick button:hover { background: var(--surface-2, #f1f5f6); }
  .trippick span { font-size: 13px; color: var(--ink-2, #556); }
  .tripjoin { margin: 10px 0; }
  .tripjoin.tripform { padding: 10px; }
  .tripjoin__ok { font-size: 14px; }
  /* 行程第二階段：分頁、共同編輯、分帳、列印 */
  .tripics { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; text-decoration: none; font-size: 13px; font-weight: 700;
             color: var(--tide); }
  span.tripics { color: var(--ink-muted); font-weight: 400; }
  .tripcollab { margin: 8px 0; font-size: 13px; }
  .tripmembers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
  .tripmember { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
  .tripmember button { border: 0; background: none; cursor: pointer; min-width: 28px; min-height: 28px; color: var(--ink-muted); font-size: 16px; }
  .triptabs { display: flex; gap: 4px; margin: 14px 0 6px; border-bottom: 1px solid var(--line); }
  .triptabs__t { appearance: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-muted); cursor: pointer;
                 padding: 10px 14px; min-height: 44px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
  .triptabs__t[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tide); }
  .tripsplit { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--ink-2, #445); }
  .tripsplit__i { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 15px; color: var(--ink); cursor: pointer; }
  .tripsplit__i input { width: 20px; height: 20px; }
  .tripform .tripsplit__i { flex-direction: row; font-size: 15px; }
  .tripform .tripsplit { flex-direction: row; }
  .tripsum { margin: 14px 0; }
  .tripsum__total { font-size: 16px; } .tripsum__total b { font-family: var(--font-mono); font-size: 20px; }
  .tripsum__t { width: 100%; max-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 8px 0; }
  .tripsum__t th, .tripsum__t td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .tripsum__t th:first-child, .tripsum__t td:first-child { text-align: left; }
  .tripsum__t .is-plus { color: var(--go); font-weight: 700; } .tripsum__t .is-minus { color: var(--stop); font-weight: 700; }
  .tripsum h3 { font-size: 15px; margin: 16px 0 6px; }
  .triptx { margin: 0; padding-left: 20px; font-size: 15px; } .triptx li { margin: 4px 0; }
  .tripexps { list-style: none; margin: 0; padding: 0; }
  .tripexps li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tripexps__a { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
  .tripexps__b { display: flex; flex-direction: column; } .tripexps__b span { font-size: 12px; color: var(--ink-muted); }
  .tripexps__c { display: flex; gap: 4px; }
  .tripexps__c button { min-height: 36px; min-width: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: none; color: inherit; cursor: pointer; }
  .tripprint { display: none; }
  @media print {
    .lookroot[data-view="trips"] > :not(main) { display: none !important; }
    .lookroot[data-view="trips"] main .block > div > :not(.tripprint) { display: none !important; }
    .lookroot[data-view="trips"] .tripprint { display: block !important; color: #000; font-size: 11pt; }
    .tripprint h1 { font-size: 18pt; margin: 0 0 4pt; } .tripprint h2 { font-size: 13pt; margin: 14pt 0 4pt; border-bottom: 1px solid #999; }
    .tripprint table { width: 100%; border-collapse: collapse; } .tripprint td { padding: 3pt 4pt; vertical-align: top; border-bottom: 1px solid #ddd; }
    .tripprint .tp-t { width: 4em; font-family: monospace; } .tripprint .tp-k { width: 3em; color: #555; }
    .tripprint section { break-inside: avoid-page; } .tripprint .tp-src { margin-top: 16pt; font-size: 8pt; color: #666; }
    body { background: #fff !important; }
  }
  .tripsample { padding: 12px 14px; border-radius: 12px; background: var(--surface-sunken, #eef3f4); margin: 10px 0; }
  .tripsample p { margin: 0 0 6px; }
  .tripsample__d { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
  .tripsample__d input { font: inherit; min-height: 36px; padding: 2px 8px; border: 1px solid var(--line, #c9d3d6); border-radius: 8px; }
  .timesel { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
  .timesel select { font: inherit; font-size: 15px; min-height: 36px; padding: 2px 4px; border: 1px solid var(--line, #c9d3d6);
                    border-radius: 6px; background: var(--surface, #fff); color: inherit; }
  .tripform__lb { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2, #445); }
  .tripitem.has-ph { grid-template-columns: 28px 96px 1fr; }
  /* 行程頁手機排版（2026-10-03 使用者）：常用動作與「第幾天」改成一排可橫滑的膠囊；項目第一行是名稱、第二行是時間 */
  .tripitem__when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
  .tripitem__when .tripitem__s { margin: 0; }
  .tripdanger { margin-left: auto; }
  .tripacts > .dy-btn, .tripacts > a { border: 1px solid var(--line, #d3dadc); border-radius: 999px; background: var(--surface-raised, #fff); }
  @media (max-width: 560px) {
    .tripacts, .tripdays { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
    .tripacts::-webkit-scrollbar, .tripdays::-webkit-scrollbar { display: none; }
    .tripacts > *, .tripdays > * { flex: none; }
    .tripacts > .dy-btn, .tripacts > a { min-height: 40px; padding: 0 14px; font-size: 14px; }
    .tripitem__t b { font-size: 17px; }
    .tripitem__act { gap: 6px; }
    .tripitem__act a, .tripitem__act button, .tripitem__act select { min-height: 40px; }
  }
  .tripitem .shopthumb { margin-top: 2px; }
  @media (max-width: 560px) { .tripitem.has-ph { grid-template-columns: 26px 64px 1fr; } .tripitem .shopthumb { width: 64px; height: 48px; } }
  .trippick__f { margin: 6px 0; }
  .trippick li > button { flex-direction: row; align-items: center; gap: 10px; }
  .trippick__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .trippick__txt b { font-size: 15px; }
  .trippick__why { font-size: 13px; margin: 6px 0; color: var(--ink-2, #445); }
  .trippick__all { margin-left: 8px; min-height: 32px; border: 1px solid var(--line, #c9d3d6); border-radius: 999px; background: none;
                   color: inherit; font: inherit; font-size: 13px; padding: 2px 10px; cursor: pointer; }
  .is-overview .spot3d__pin b { display: none; }
  .is-overview .spot3d__pin.is-hot b { display: inline; }
  /* 全部的時候島很小，點會把島整個蓋住看不出形狀：只留島嶼標籤，清單滑過的那一個才出現 */
  .is-overview .spot3d__pin { visibility: hidden !important; }
  .is-overview .spot3d__pin.is-hot { visibility: visible !important; }
  .spot3d__isle { transform-origin: 0 0; margin: -60px 0 0 -48px; min-height: 44px; padding: 0 14px; border-radius: 999px;
                  border: 2px solid #fff; background: rgba(13,109,115,.92); color: #fff; font: inherit; font-size: 15px;
                  font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.45);
                  animation: spot3d-in .6s ease-out 1.6s both; }
  .spot3d__isle b { margin-left: 4px; opacity: .85; font-variant-numeric: tabular-nums; }
  /* 島太近標籤會疊（同 2D 地圖）：北竿往上、南竿放左、西莒放左、東莒放右。位置每格由 JS 設 transform，所以用 margin 偏移 */
  .spot3d__isle[data-k=beigan] { margin-top: -112px; }
  .spot3d__isle[data-k=nangan] { margin-left: -132px; margin-top: -22px; }
  .spot3d__isle[data-k=xiju] { margin-left: -122px; margin-top: -22px; }
  .spot3d__isle[data-k=dongju] { margin-left: 22px; margin-top: -22px; }
  .spot3d__isle:hover { background: #0d6d73; }
  /* 點動物時冒出來的小對話泡泡（跟著動物移動） */
  .spot3d__say { position: absolute; left: 0; top: 0; margin: -58px 0 0 -18px; padding: 3px 9px; border-radius: 12px;
                 background: #fff; color: #173b45; font-size: 13px; font-weight: 800; white-space: nowrap; pointer-events: none;
                 box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 6; }
  .spot3d__say { display: flex; flex-direction: column; gap: 1px; white-space: normal; max-width: 260px; line-height: 1.4; }
  .spot3d__say1 { white-space: nowrap; }
  .spot3d__say2 { font-size: 11.5px; font-weight: 600; color: #3d5c66; }
  .spot3d__say::after { content: ''; position: absolute; left: var(--ax, 14px); bottom: -5px; border: 5px solid transparent;
                        border-bottom: 0; border-top-color: #fff; }
  .spot3d__cr-short { display: none; }
  /* 知識卡：地圖右下角（手機是底部整條），不擋住中間的島 */
  .spot3d__card { position: absolute; right: 12px; bottom: 44px; width: min(320px, calc(100% - 24px)); z-index: 7;
                  background: #fff; color: #173b45; border-radius: 12px; padding: 12px 14px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
                  animation: spot3d-in .2s ease-out both; cursor: auto; }
  .spot3d__cardx { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; font-size: 22px;
                   color: #5a6b70; cursor: pointer; }
  .spot3d__cardt { margin: 0 36px 2px 0; font-weight: 800; font-size: 16px; }
  .spot3d__cardt i { font-weight: 400; font-size: 12px; color: #5a6b70; }
  .spot3d__cardw { margin: 0 0 6px; font-size: 12px; color: #0d6d73; font-weight: 700; }
  .spot3d__cardb { margin: 0 0 6px; font-size: 14px; line-height: 1.7; }
  .spot3d__cards { margin: 0; font-size: 11px; color: #5a6b70; line-height: 1.6; }
  @media (max-width: 560px) { .spot3d__card { left: 8px; right: 8px; width: auto; bottom: 8px; } }
  .spot3d__mebtn { position: absolute; left: 12px; top: 64px; z-index: 6; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0;
                   background: rgba(15, 40, 55, .82); color: #fff; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
  .spot3d__mebtn.is-on { background: #12a3a8; }
  .spot3d__geomsg { position: absolute; left: 12px; top: 112px; z-index: 6; margin: 0; max-width: calc(100% - 90px); padding: 6px 12px; border-radius: 10px;
                    background: rgba(15, 40, 55, .88); color: #fff; font-size: 13px; }
  .spot3d__nightbtn { position: absolute; left: 12px; top: 12px; z-index: 6; min-height: 44px; padding: 0 16px; border-radius: 999px;
                      border: 1px solid rgba(255,255,255,.6); background: rgba(10,35,60,.72); color: #fff; font: inherit; font-weight: 800;
                      font-size: 14px; cursor: pointer; backdrop-filter: blur(4px); }
  .spot3d__nightbtn.is-on { background: rgba(255,244,214,.92); color: #3a2a00; border-color: rgba(0,0,0,.1); }
  .spot3d__nightbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* 全螢幕：按鈕在右上角；手機不顯示（手機本身就是滿版） */
  .spot3d__fullbtn { position: absolute; right: 12px; top: 12px; z-index: 6; min-height: 44px; padding: 0 16px; border-radius: 999px;
                     border: 1px solid rgba(255,255,255,.6); background: rgba(10,35,60,.72); color: #fff; font: inherit; font-weight: 800;
                     font-size: 14px; cursor: pointer; backdrop-filter: blur(4px); }
  .spot3d__fullbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .spot3d.is-full { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
  .spot3d:fullscreen { height: 100vh; border-radius: 0; }
  .spot3d:-webkit-full-screen { height: 100vh; border-radius: 0; }
  /* 手機也有全螢幕（使用者 2026-09-28）；iPhone 不支援元素全螢幕，走 is-full 蓋滿視窗 */
  @media (max-width: 560px) {
    .spot3d__fullbtn { right: 8px; top: 8px; padding: 0 12px; font-size: 13px; }
    .spot3d .spot3d__credit { top: 58px; }
    .spot3d__live { top: 104px; }
  }
  .spot3d__zoom { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column;
                  border-radius: 12px; overflow: hidden; background: rgba(10,35,60,.72); backdrop-filter: blur(4px); }
  .spot3d__zoom button { width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
  .spot3d__zoom button + button { border-top: 1px solid rgba(255,255,255,.25); }
  .spot3d__zoom button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
  .spot3d.is-full { touch-action: none; }
  .spot3d__islebtn { white-space: nowrap; }
  @media (max-width: 560px) {
    /* 要比後面的 .spot3d__isles 基本樣式具體，否則被蓋掉（第一版就被蓋掉，選島列超出螢幕） */
    .spot3d .spot3d__isles { left: 8px; right: 8px; transform: none; justify-content: space-between; gap: 2px; padding: 4px; }
    .spot3d .spot3d__islebtn { min-width: 0; flex: 1; padding: 0 4px; font-size: 14px; }
  }
  .spot3d__sheet { position: relative; z-index: 30; cursor: auto; }
  .spot3d__isles { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: flex; gap: 6px;
                   padding: 6px; border-radius: 999px; background: rgba(10,35,60,.72); backdrop-filter: blur(4px); }
  .spot3d__islebtn { min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent;
                     color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .spot3d__islebtn.is-on { background: #fff; color: #0d3b45; }
  .spot3d__islebtn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
  .spot3d.is-full .spot3d__hint, .spot3d.is-full .spot3d__credit { bottom: 76px; }
  .spot3d__live { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 5; margin: 0; padding: 4px 12px;
                  border-radius: 999px; background: rgba(10,35,60,.72); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
                  pointer-events: none; }
  .spot3d__cams { position: absolute; inset: 0; pointer-events: none; }
  .spot3d__cam { position: absolute; left: 0; top: 0; pointer-events: auto; margin: -16px 0 0 -16px; width: 32px; height: 32px;
                 border-radius: 50%; border: 2px solid #fff; background: #c0392b; font-size: 15px; line-height: 1; padding: 0; cursor: pointer;
                 box-shadow: 0 2px 6px rgba(0,0,0,.45); will-change: transform; }
  .spot3d__cam::after { content: ''; position: absolute; inset: -6px; }   /* 觸控範圍撐到 44px，圖示維持 32px */
  .spot3d__cam:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .is-overview .spot3d__cam { display: none; }
  .spot3d__camv { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 8px; border-radius: 8px; overflow: hidden; background: #000; }
  .spot3d__camv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .spot3d__live-s { display: none; }
  @media (max-width: 560px) {
    .spot3d .spot3d__live { top: 114px; left: 12px; transform: none; font-size: 11.5px; white-space: normal; text-align: left; max-width: calc(100% - 70px); line-height: 1.35; border-radius: 10px; padding: 4px 10px; }
    .spot3d__live-l { display: none; } .spot3d__live-s { display: inline; }
  }
  /* 手機：地圖上的按鈕只留圖示、圓形 44px；操作提示 6 秒後淡掉（2026-10-03 使用者：手機塞太多東西） */
  @media (max-width: 560px) {
    .spot3d__nightbtn, .spot3d__mebtn, .spot3d__fullbtn { width: 44px; min-height: 44px; padding: 0; justify-content: center; font-size: 18px; }
    .spot3d__mebtn { top: 64px; }
    .spot3d__nightbtn .s3t, .spot3d__mebtn .s3t, .spot3d__fullbtn .s3t { display: none; }
    .spot3d__hint { animation: s3hint .8s 6s forwards; }
  }
  @keyframes s3hint { to { opacity: 0; visibility: hidden; } }
  .spot3d__hint { position: absolute; left: 12px; bottom: 8px; margin: 0; padding: 3px 8px; border-radius: 6px; font-size: 12px;
                  color: #e8f2f5; background: rgba(0,0,0,.4); pointer-events: none; }
  .spot3d__credit { position: absolute; right: 8px; bottom: 8px; margin: 0; font-size: 11px; color: rgba(255,255,255,.7); pointer-events: none; }
  @keyframes spot3d-in { from { opacity: 0; } to { opacity: 1; } }
  @media (max-width: 560px) {
    .spot3d { height: 360px; }
    /* 手機也顯示名稱，字小一點（使用者 2026-09-27）；疊到的由 placePins 藏起來 */
    .spot3d__pin i { width: 11px; height: 11px; }
    .spot3d__pin { margin: -5.5px 0 0 -5.5px; gap: 2px; }
    .spot3d__pin b { font-size: 10px; line-height: 13px; padding: 0 4px; border-radius: 4px; }
    .spot3d__isle { font-size: 13px; padding: 0 10px; margin: -58px 0 0 -40px; }
    .spot3d__isle[data-k=nangan] { margin-left: -96px; margin-top: -22px; }
    .spot3d__isle[data-k=xiju] { margin-left: -88px; margin-top: -22px; }
    .spot3d__isle[data-k=dongju] { margin-left: 16px; margin-top: -22px; }
    .spot3d__isle[data-k=beigan] { margin-top: -96px; }
    .spot3d__isle[data-k=dongyin] { margin-left: -96px; margin-top: -22px; }   /* 東引在右上角，放上面會超出 */
    .spot3d__credit { top: 8px; bottom: auto; font-size: 10px; }
    .spot3d__cr-long { display: none; }
    .spot3d__cr-short { display: inline !important; }       /* 手機上移到右上角，不跟左下的操作提示疊在一起 */
  }
  @media (prefers-reduced-motion: reduce) { .spot3d, .spot3d__pin, .spot3d__isle { animation: none; } }


  /* ─── 通訊錄 /contacts ─── 電話是一顆顆可以直接撥的按鈕（一筆常有好幾支、分單位） */
  .ctrow { padding: 8px 4px; }
  .ctline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
  .ctmeta { font-size: 12px; color: var(--ink-muted); margin-right: 2px; }
  .ctshop { font-size: 13px; }
  .ctphone { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border-radius: 999px;
             border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px;
             font-variant-numeric: tabular-nums; background: var(--surface); }
  .ctphone b { font-weight: 700; color: var(--ink-muted); font-size: 12px; }
  .ctphone:hover { background: var(--surface-sunken); }
  .ctphone:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .ctrow .shoplist__t { justify-content: flex-start; flex-wrap: wrap; }
  /* ── 節慶介紹 /festivals ── */
  .festlist__more { margin-left: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .festcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); margin: var(--space-3) 0 var(--space-4); }
  .festcard { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
              border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
  .festcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
  .festcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .festcard__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
  .festcard__ph { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.9); }
  .festcard.is-past .festcard__img { filter: grayscale(.6); }
  .festcard__b { padding: var(--space-3) var(--space-4) var(--space-4); }
  .festcard__t { margin: 0 0 4px; font-size: 19px; }
  .festcard__m { margin: 0 0 6px; font-size: 13px; color: var(--ink-muted); }
  .festcard__l { margin: 0; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .festpage { max-width: 860px; }
  .festpage__back { margin: 0 0 var(--space-2); font-size: 14px; }
  .festpage__back a { display: inline-flex; min-height: 44px; align-items: center; }
  .festpage__t { margin: 0; font-size: 30px; }
  .festpage__aka { margin: 4px 0 var(--space-3); color: var(--ink-muted); font-size: 14px; }
  .festpage__lead { font-size: 17px; line-height: 1.8; margin: var(--space-3) 0 var(--space-4); }
  .festpage__sec h2 { font-size: 19px; margin: var(--space-5) 0 var(--space-2); }
  .festpage__sec p { line-height: 1.85; margin: 0 0 var(--space-3); }
  .festpage__src ul { padding-left: 1.2em; line-height: 1.9; font-size: 14px; }
  .festgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: var(--space-3) 0; }
  .festgal__i { margin: 0; }
  .festgal__i.is-first { grid-column: 1 / -1; }
  .festgal__b { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
  .festgal__b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .2s ease; }
  .festgal__i.is-first .festgal__b img { aspect-ratio: 16 / 9; }
  .festgal__b:hover img { transform: scale(1.03); }
  .festgal__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .festgal figcaption { font-size: 12px; line-height: 1.5; margin-top: 4px; color: var(--ink-muted); }
  .festgal figcaption span { display: block; color: var(--ink); }
  .zoomer__cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: min(92vw, 820px); margin: 0;
                 padding: 6px 12px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 1.5; text-align: center; }
  @media (max-width: 560px) {
    .festpage__t { font-size: 25px; }
    .festgal { grid-template-columns: repeat(2, 1fr); }
  }
  .ctaka { font-size: 12px; color: var(--ink-muted); }
  /* 計程車的車牌：做成一塊小車牌的樣子，跟名字分開 */
  .ctplate { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 1px 8px; border: 1.5px solid var(--ink); border-radius: 5px; background: #fff; color: var(--ink); white-space: nowrap; }
  /* 天氣視窗：所有天氣類別排一列，現在的凸顯 */
  .wxall { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .wxall li { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 12px; font-size: 12.5px; color: var(--ink-muted); opacity: .45; filter: grayscale(.6); }
  .wxall li .wxi { width: 30px; height: 30px; margin: 0; } .wxall li:not(.is-on) .wxi * { animation: none !important; }
  .wxall li.is-on { opacity: 1; filter: none; background: color-mix(in srgb, var(--tide, #0c7078) 12%, var(--surface-raised, #fff)); box-shadow: inset 0 0 0 2px var(--tide, #0c7078); color: var(--ink); font-weight: 800; }
  .wxall .wxi__cloud { fill: #c5d1d9; stroke: #6d8490; } .wxall .wxi__fog { stroke: #8a9ba5; }
  .ctmerged { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--surface-sunken); font-size: 12px; line-height: 1.6; color: var(--ink-muted); }
  .ctmerged b { color: var(--ink); }
  .ctissues { margin: 6px 0 0; padding: 6px 10px; list-style: none; border-radius: 8px; background: var(--hold-tint); font-size: 12px; line-height: 1.6; }
  .ctissues b { color: var(--hold-ink, var(--ink)); }

  /* 首頁「今晚的海」摘要（完整的在天空與海頁） */
  .seabrief { display: grid; gap: var(--space-3); }
  .seabrief__row { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); column-gap: var(--space-3);
                   align-items: baseline; }
  .seabrief__k { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
  .seabrief__v { margin: 0; font-size: 15px; line-height: 24px; }
  .seabrief__v--sm { font-size: 14px; font-variant-numeric: tabular-nums; }
  .seabrief__i { white-space: nowrap; margin-right: 12px; display: inline-block; }
  .seabrief__n { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--tide); }
  .seabrief__s { margin: 2px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
  .seabrief__spots { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
  .seabrief__more { appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit;
                    font-size: 13px; color: var(--tide); justify-self: end; min-height: 44px; padding: 0 2px; }
  .seabrief__more:hover { text-decoration: underline; text-underline-offset: 3px; }

  /* 接下來三個月：一個節慶兩行的清單（取代原本一張六行的卡片） */
  .festlist { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
  .festlist__i { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); column-gap: var(--space-3);
                 align-items: baseline; padding: 10px 0; }
  .festlist__i + .festlist__i { border-top: 1px solid var(--line); }
  .festlist__d { font-size: 14px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
                 white-space: nowrap; }
  .festlist__t { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
  .festlist__n { font-size: 15px; line-height: 22px; font-weight: 700; min-width: 0; }
  .festlist__k { flex: none; font-size: 11px; line-height: 16px; font-weight: 700; padding: 0 6px; margin-right: 6px;
                 border-radius: var(--radius-pill); white-space: nowrap; }
  .festlist__k--go { background: color-mix(in srgb, var(--go) 14%, transparent); color: var(--go); }
  .festlist__k--tide { background: color-mix(in srgb, var(--tide) 14%, transparent); color: var(--tide); }
  .festlist__k--stop { background: color-mix(in srgb, var(--stop) 14%, transparent); color: var(--stop); }
  .festlist__k--hold { background: color-mix(in srgb, var(--hold) 16%, transparent); color: var(--hold-ink, var(--ink)); }
  .festlist__k--neutral { background: var(--surface-sunken); color: var(--ink-muted); }
  @media (max-width: 560px) {
    /* 手機：日期欄縮窄，長名稱才不會被擠到換行 */
    .festlist__i { grid-template-columns: 5.3em minmax(0, 1fr); column-gap: var(--space-2); }
    .festlist__d { font-size: 13px; }
  }
  .festlist__s { margin: 2px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-muted);
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .festlist__ann { color: var(--tide); font-weight: 600; text-decoration: none; display: inline-flex;
                   align-items: center; gap: 2px; }
  .festlist__ann:hover { text-decoration: underline; text-underline-offset: 3px; }
  .festlist__sep { margin: 0 6px; }
  .festlist__y { display: block; font-size: 11px; line-height: 14px; font-weight: 400; color: var(--ink-muted); }
  /* 整列可點的（連到原文）：連結的 ::after 透明蓋住整列，觸控目標夠大、行距不變 */
  .festlist__i--link { position: relative; }
  .festlist__i--link:hover { background: var(--surface-sunken); }
  .festlist__a { color: var(--ink); text-decoration: none; display: inline; }
  .festlist__a::after { content: ''; position: absolute; inset: 0; }
  .festlist__a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .festlist__a svg { margin-left: 4px; vertical-align: -1px; color: var(--ink-muted); }
  .festgrid { display: grid; gap: var(--space-3); margin-top: var(--space-3);
              grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
              grid-auto-rows: 1fr; }
  .festcard { display: flex; flex-direction: column; gap: var(--space-1);
              padding: var(--space-4); }
  .festcard__top { display: flex; align-items: center; gap: var(--space-2);
                   flex-wrap: wrap; margin-bottom: var(--space-1); }
  .festcard__conv { font-size: 11px; line-height: 16px; color: var(--ink-faint); }
  .festcard__date { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
                    font-size: 20px; line-height: 27px; font-weight: 600; color: var(--ink); }
  .festcard__when { margin: 0; font-size: 12px; line-height: 19px; color: var(--ink-muted); }
  .festcard__ann { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px;
                   line-height: 19px; color: var(--tide); text-decoration: none; font-weight: 600; }
  .festcard__ann:hover { text-decoration: underline; text-underline-offset: 3px; }
  .festcard__note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                    overflow: hidden; margin-top: auto; padding-top: var(--space-1); }
  .festbrief__d { display: inline-block; min-width: 92px; color: var(--ink); font-weight: 600; }
  .festcard__name { margin: 0; font-size: 17px; line-height: 25px; font-weight: 700; color: var(--ink); }
  .festcard__note { margin: 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
  .festbrief { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
  .festbrief li { font-size: 15px; line-height: 24px; }
  .festtable { width: 100%; border-collapse: collapse; margin-top: var(--space-3); }
  .festtable th { text-align: left; font-size: 12px; letter-spacing: .06em; color: var(--ink-muted);
                  font-weight: 600; padding: 0 var(--space-3) var(--space-2) 0;
                  border-bottom: 1px solid var(--line-strong); }
  .festtable td { padding: var(--space-3) var(--space-3) var(--space-3) 0;
                  border-bottom: 1px solid var(--line); vertical-align: top;
                  font-size: 14px; line-height: 23px; }
  .festtable td:first-child { white-space: nowrap; color: var(--ink-muted); }
  @media (max-width: 720px) {
    .festtable, .festtable tbody, .festtable tr, .festtable td { display: block; width: 100%; }
    .festtable thead { display: none; }
    .festtable tr { border-bottom: 1px solid var(--line); padding: var(--space-3) 0; }
    .festtable td { border: 0; padding: 0 0 var(--space-1); }
  }

  /* ---- 訂位連結 ---- */
  .booklinks { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; }
  .booklink { display: inline-flex; align-items: center; gap: 4px; font-size: 13px;
              font-weight: 700; color: var(--tide); text-decoration: none; }
  .booklink:hover { text-decoration: underline; text-underline-offset: 3px; }
  .booklink:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

  /* ---- 船班公告卡片 ----
     主從關係：解析出來的事實（狀態、日期、航線、船與業者）在上面且醒目，
     原始標題在最下面、字小且淡——它是查證用的原文，不是要讀的重點。 */
  .noticecard { display: flex; flex-direction: column; gap: var(--space-2); }
  .noticecard--pending { border-style: dashed; border-color: var(--hold); }
  .noticecard__top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
  .noticecard__when { font-family: var(--font-mono); font-variant-numeric: tabular-nums;
                      font-size: 15px; font-weight: 600; color: var(--ink); }
  .noticecard__route { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700;
                       color: var(--ink); letter-spacing: .01em; }
  .noticecard__who { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
  .noticecard__who b { color: var(--ink); font-weight: 700; }
  .noticecard__src { display: inline-flex; align-items: baseline; gap: 4px; margin-top: var(--space-1);
                     font-size: 12px; line-height: 19px; color: var(--ink-faint);
                     text-decoration: none; border-top: 1px solid var(--line); padding-top: var(--space-2); }
  .noticecard__src:hover { color: var(--ink-muted); text-decoration: underline; }
  .noticecard__src:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

  /* ---- 相關報導（同一事件的其餘報導）---- */
  .related { margin-top: var(--space-2); }
  /* 新聞列是「縮圖｜文字」兩欄格線，這個收合沒指定欄就會掉進縮圖那一欄
     （手機上 84px 寬），「另有 1 則相關報導」被擠成兩行。對齊到文字欄。 */
  .newsitem > .related { grid-column: 2; margin-top: 0; }
  .related > summary { cursor: pointer; font-size: 13px; line-height: 21px; color: var(--ink-muted);
                       list-style: none; display: inline-flex; align-items: center; gap: 4px; }
  .related > summary::before { content: '▸'; font-size: 11px; }
  .related[open] > summary::before { content: '▾'; }
  .related > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
  .related ul { margin: var(--space-2) 0 0; padding-left: var(--space-4); }
  .related li { font-size: 13px; line-height: 22px; }

  /* ---- 內文連結 ----
     設計系統沒有定義全域 a，之前掉回瀏覽器預設藍（#0000ee），
     那個藍不在色盤裡，夾在琥珀色快報中間特別突兀。
     一般內文用 --tide；快報裡的連結沿用該則快報自己的色調，
     用底線當「這是連結」的訊號，不靠顏色（顏色不是唯一訊號）。 */
  main a { color: var(--tide); text-underline-offset: 3px; text-decoration-thickness: 1px; }
  main a:hover { text-decoration-thickness: 2px; }
  main a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
  .dy-banner a { color: inherit; text-decoration: underline; font-weight: 600; }

  /* ---- 審核台：理由與規則 ---- */
  .rvpanel { margin-top: var(--space-3); padding: var(--space-4);
             background: var(--surface-sunken); border: 1px solid var(--line-strong);
             border-radius: var(--radius-md); }
  .rvpanel__lb { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
  .rvpanel__ta { width: 100%; box-sizing: border-box; font-family: var(--font-sans);
                 font-size: 15px; line-height: 24px; color: var(--ink);
                 background: var(--surface-raised); border: 1px solid var(--line-strong);
                 border-radius: var(--radius-sm); padding: 8px var(--space-3); resize: vertical; }
  .rvpanel__ta:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .rvpanel__terms { margin-top: var(--space-3); }
  .rvpanel__hint { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
  .rvpanel__act { display: flex; gap: var(--space-2); align-items: center;
                  flex-wrap: wrap; margin-top: var(--space-3); }
  .rvnote { margin: var(--space-2) 0 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
  .rvnote b { color: var(--ink); }

  /* ---- 審核台 ---- */
  .weights { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .weight {
    font-family: var(--font-mono); font-size: 12px; line-height: 16px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 4px var(--space-2); color: var(--ink-muted);
  }
  .weight b { color: var(--ink); }
  .weight.down { border-color: var(--stop); color: var(--stop); }
  .weight.up { border-color: var(--go); color: var(--go); }

  /* 你設定過的來源。只列已經設定的——把全部來源列出來讓人逐一設定，
     等於要人先讀完一份四十幾項的名單才能開始做事。
     來源設定改在審核單則時順手做（portal.js 的 reasonPanel）。 */
  /* ---- 月曆 ----
     使用者要的是「像 daykeep 那樣一眼看得完的月曆」，分觀光與活動兩層。 */
  .calbar { display: flex; align-items: center; justify-content: space-between;
            gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
  .calnav { display: flex; align-items: center; gap: var(--space-2); }
  .calnav__b {
    appearance: none; border: 1px solid var(--line-strong); background: transparent;
    color: var(--ink); width: 34px; height: 34px; border-radius: var(--radius-sm);
    font-size: 20px; line-height: 1; cursor: pointer;
  }
  .calnav__b:hover { border-color: var(--ink-muted); }
  .calnav__t { font-weight: 700; font-size: 17px; line-height: 26px; min-width: 7.5em; text-align: center; }

  /* 期間型的節慶（藍眼淚季 4/1–9/30、大健行 9/1–10/31）列在月曆上方。
     逐日標記會讓每一格長得一樣，真正的活動全被擠進「+7」裡看不到。 */
  .calseason { margin: 0 0 var(--space-2); font-size: 13px; line-height: 22px; color: var(--ink); }
  .calseason__lb { font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-right: 8px; }
  .calseason__i { white-space: nowrap; }
  .calseason__sep { margin: 0 8px; color: var(--ink-muted); }
  /* 新聞清單上的導言摘要。兩行截斷——摘要是拿來判斷「要不要點進去」的，
     佔掉半個畫面反而讓一頁看不到幾則。 */
  .newsex { margin: 4px 0 0; font-size: 13px; line-height: 21px; color: var(--ink-muted);
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; }
  .excerpt__more { color: var(--ink-muted); }
  .excerpt__note { margin-top: var(--space-2); font-size: 12px; color: var(--ink-muted); }

  /* 首頁三日活動。刻意壓矮：一條切換列＋最多三行。
     每個可點的東西觸控範圍都是 44px（SPEC 11），但**看得到的**膠囊只有 30px——
     整條 44px 高的色塊太重，壓過了下面的內容。 */
  /* 首頁：活動（左、窄）與頭條（右、寬）同一排；窄螢幕上下排 */
  .homemix { display: grid; gap: 0 var(--space-6); align-items: start; }
  .homemix .days3 { margin-top: 0; background: var(--surface-raised, #fff); }
  .homemix .days3__lb, .homemix .days3__more { display: none; }          /* 標題與「行事曆」已經在上面那一行 */
  .days3__i.is-xtra, .days3__i--rest.is-wide { display: none; }       /* 第 4 項以後只在首頁電腦版並排時顯示 */
  @media (min-width: 1000px) {
    .homemix:not(.homemix--one) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; }
    /* 左右等高：活動那張卡拉到跟頭條一樣高，並多列幾項把高度用掉 */
    .homemix:not(.homemix--one) .homemix__a { display: flex; flex-direction: column; } .homemix:not(.homemix--one) .homemix__a .days3 { flex: 1; }
    .homemix:not(.homemix--one) .days3__i.is-xtra, .homemix:not(.homemix--one) .days3__i--rest.is-wide { display: grid; }
    .homemix:not(.homemix--one) .days3__i--rest.is-narrow { display: none; }
    .homemix:not(.homemix--one) .days3__md, .homemix:not(.homemix--one) .days3__pl { display: none; }      /* 欄位窄：不寫日期數字與地點，時刻留著 */
    .homemix:not(.homemix--one) .days3__i { grid-template-columns: 68px minmax(0, 1fr) auto; column-gap: var(--space-2); }
    .homemix:not(.homemix--one) .days3__tabs { display: flex; flex: 1; } .homemix:not(.homemix--one) .days3__tab { flex: 1; justify-content: center; }
  }
  .days3 { margin-top: var(--space-4); border: 1px solid var(--line);
           border-radius: var(--radius-md); background: var(--surface); }
  .days3__bar { display: flex; align-items: center; gap: 0 var(--space-3);
                flex-wrap: wrap; padding: 0 var(--space-3);
                border-bottom: 1px solid var(--line); }
  .days3__lb { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  .days3__tabs { display: inline-flex; }
  .days3__tab { appearance: none; border: 0; background: transparent; cursor: pointer;
                position: relative; z-index: 0; font: inherit; font-size: 13px; color: var(--ink-muted);
                padding: 0 12px; min-height: 44px; border-radius: var(--radius-pill);
                display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .days3__tab::before { content: ''; position: absolute; inset: 7px 0; z-index: -1;
                        border-radius: var(--radius-pill); }
  .days3__tab:hover::before { background: var(--surface-sunken); }
  .days3__tab[aria-selected="true"] { color: var(--on-tide); }
  .days3__tab[aria-selected="true"]::before { background: var(--tide); }
  .days3__tab:focus-visible { outline: 2px solid var(--tide); outline-offset: -5px; }
  .days3__d { font-weight: 700; }
  .days3__md { font-variant-numeric: tabular-nums; }
  .days3__n { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
              box-sizing: border-box; border-radius: 9px; text-align: center;
              font-size: 11px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
              background: var(--surface-sunken); color: var(--ink-muted); }
  .days3__tab[aria-selected="true"] .days3__n { background: rgba(255,255,255,.22); color: inherit; }
  .days3__more { appearance: none; border: 0; background: transparent; cursor: pointer;
                 font: inherit; font-size: 13px; color: var(--ink-muted); margin-left: auto;
                 padding: 0 2px; min-height: 44px; white-space: nowrap; }
  .days3__more:hover { color: var(--ink); }
  /* 三欄：標籤｜標題｜時間地點。標籤欄固定寬，標題才會對齊同一條線。
     每一行本身就是按鈕或連結（不是段落裡的行內連結），觸控目標照 SPEC 11 要 44px */
  .days3__list { list-style: none; margin: 0; padding: 0; }
  .days3__i { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
              align-items: center; column-gap: var(--space-3);
              padding: 0 var(--space-3); min-height: 44px; }
  .days3__i + .days3__i { border-top: 1px solid var(--line); }
  .days3__tag { justify-self: start; font-size: 11px; line-height: 18px; font-weight: 700;
                color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-pill);
                padding: 0 7px; white-space: nowrap; }
  /* 沒有標籤也要佔住第一欄，否則標題會滑進去；只拿掉外框 */
  .days3__tag:empty { border: 0; padding: 0; }
  .days3__t { appearance: none; border: 0; background: transparent; padding: 11px 0;
              cursor: pointer; font: inherit; font-size: 14px; line-height: 22px;
              color: var(--ink); text-align: left; text-decoration: none; min-width: 0;
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  span.days3__t { cursor: default; }
  a.days3__t:hover, button.days3__t:hover { text-decoration: underline; text-underline-offset: 3px; }
  .days3__m { display: flex; gap: var(--space-3); justify-content: flex-end; min-width: 0;
              max-width: 22em; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
  .days3__clk { font-variant-numeric: tabular-nums; flex: none; }
  .days3__pl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  /* 「還有 N 項」從標題欄開始，跟上面的標題對齊 */
  .days3__i--rest .days3__rest { grid-column: 2 / -1; justify-self: start; }
  .days3__rest { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer;
                 font: inherit; font-size: 12px; color: var(--ink-muted); min-height: 44px; }
  .days3__rest:hover { color: var(--ink); text-decoration: underline; }
  .days3__none { margin: 0; padding: 12px var(--space-3); font-size: 13px; color: var(--ink-muted); }
  @media (max-width: 560px) {
    .days3__lb { display: none; }
    .days3__md { display: none; }
    .days3__i { column-gap: var(--space-2); }
    .days3__pl { display: none; }
  }

  /* 每日活動的條列模式。日期用等寬字對齊，一眼掃得下去；
     卡片看得到海報，條列一個畫面放得下三倍的量。 */
  /* 每日活動的條列：一場兩行（同「接下來三個月」的 festlist） */
  .actlist { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
  .actlist__i { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); column-gap: var(--space-3);
                align-items: baseline; padding: 10px 0; }
  .actlist__i + .actlist__i { border-top: 1px solid var(--line); }
  .actlist__d { font-size: 14px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
                white-space: nowrap; }
  .actlist__d.is-today { color: var(--tide); }
  .actlist__b { min-width: 0; }
  .actlist__t { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer;
                font: inherit; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink);
                text-align: left; }
  .actlist__t:hover { text-decoration: underline; text-underline-offset: 3px; }
  /* 整列都能點：標題只有一行高（22px），撐到 44px 又違背「行距壓低」。
     讓按鈕的可點範圍透明地蓋住整列（約 60px），觸控目標夠大、畫面不變 */
  .actlist__i { position: relative; }
  .actlist__t::after { content: ''; position: absolute; inset: 0; }
  .actlist__i:hover { background: var(--surface-sunken); }
  .actlist__n { font-size: 12px; font-weight: 400; color: var(--ink-muted); }
  .actlist__m { margin: 2px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-muted);
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 560px) {
    .actlist__i { grid-template-columns: 5.3em minmax(0, 1fr); column-gap: var(--space-2); }
    .actlist__d { font-size: 13px; }
  }

  /* 地區按鈕各自的顏色。用左側色點而不是整顆染色——
     六顆全染色會蓋過「選中」這個狀態，反而看不出自己現在在看哪一區。
     色點在未選中時就看得到，選中時再由 dy-chip 的既有樣式反白。 */
  .isl::before { content: ''; width: 8px; height: 8px; border-radius: 50%;
                 background: var(--isl); flex: none; }
  .isl--nangan  { --isl: #0f766e; }   /* 南竿 深青 */
  .isl--beigan  { --isl: #2563eb; }   /* 北竿 藍 */
  .isl--dongyin { --isl: #7c3aed; }   /* 東引 紫 */
  .isl--juguang { --isl: #ea580c; }   /* 莒光 橘 */
  .isl--taiwan  { --isl: #64748b; }   /* 台灣 灰藍：不是馬祖，刻意不搶眼 */
  .isl--unknown { --isl: #cbd5e1; }   /* 未標示 淺灰 */
  .isl[aria-pressed="true"]::before { background: currentColor; }

  /* 即時搜尋框 */
  .dysearch { display: flex; align-items: center; gap: var(--space-2);
              border: 1px solid var(--line); border-radius: var(--radius-pill);
              background: var(--surface-raised, #fff); padding: 6px 14px;
              margin-bottom: var(--space-3); }
  .dysearch:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px
              color-mix(in srgb, var(--focus) 18%, transparent); }
  .dysearch__i { color: var(--ink-muted); flex: none; }
  .dysearch__in { flex: 1; min-width: 0; border: 0; background: transparent;
                  font: inherit; font-size: 15px; line-height: 26px; color: var(--ink);
                  outline: none; }
  /* 拿掉 Safari／Chrome 內建的搜尋清除鈕：我們自己有一顆，兩顆並排很怪 */
  .dysearch__in::-webkit-search-cancel-button { display: none; }
  .dysearch__x { appearance: none; border: 0; background: transparent; cursor: pointer;
                 font-size: 20px; line-height: 1; color: var(--ink-muted); padding: 0 2px; }
  .dysearch__x:hover { color: var(--ink); }
  .dysearch__n { font-size: 12px; color: var(--ink-muted); white-space: nowrap; flex: none; }

  .calseason__d { margin-left: 4px; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

  /* minmax(0, 1fr) 不能寫成 1fr：1fr 的最小值隱含是 auto，而格子裡的活動標籤是
     white-space: nowrap，min-content 等於整串文字的寬度。結果有活動的那幾欄被文字
     撐開、沒活動的被壓扁，整個表格超出容器把星期六擠出畫面，.caltag 的省略號也
     永遠不會生效（要有寬度上限才會截）。minmax(0,…) 允許欄位縮到比內容還窄。 */
  .calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px;
             background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md);
             overflow: hidden; }
  .calgrid__h { background: var(--surface-sunken); text-align: center;
                font-size: 12px; line-height: 28px; color: var(--ink-muted); font-weight: 600; }
  .calgrid__h.is-end { color: var(--stop); }
  .calcell {
    appearance: none; border: 0; text-align: left; cursor: pointer;
    background: var(--surface-raised, #fff); min-height: 76px; padding: 4px 5px;
    display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--ink);
    min-width: 0;      /* 同上：flex 子項的 auto 最小寬度會再撐一次，這裡也要放行 */
    overflow: hidden;
  }
  .calcell--pad { background: var(--surface-sunken); cursor: default; }
  .calcell.is-empty { cursor: default; }
  .calcell:not(.is-empty):hover { background: var(--surface-sunken); }
  .calcell.is-today .calcell__d {
    background: var(--tide); color: var(--on-tide); border-radius: var(--radius-pill);
    width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  }
  /* 已經結束的日子壓暗。行事曆是拿來看「接下來有什麼」的，
     過去的留著是為了查證與回顧，但不該跟未來的搶注意力。
     壓的是整格的不透明度而不是換顏色——換顏色會變成另一種狀態，
     壓暗才讀得出「這是同一種東西，只是過去了」。 */
  .calcell.is-past { opacity: .42; }
  .calcell.is-past:hover { opacity: .72; }
  .calcell.is-past .calcell__d { color: var(--ink-muted); }

  .calcell.is-sel { outline: 2px solid var(--focus); outline-offset: -2px; }
  .calcell__d { font-family: var(--font-mono); font-size: 13px; line-height: 22px; font-weight: 600; }
  .calcell__more { font-size: 11px; line-height: 15px; color: var(--ink-muted); }
  .caltag {
    font-size: 11px; line-height: 16px; padding: 1px 4px; border-radius: var(--radius-sm);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
    /* 用省略號而不是在 JS 裡硬切字。切到第 6 個字會變成「馬祖才有的「」，
       後引號還在、前面被截掉，看起來像資料壞了。 */
    min-width: 0;
  }
  .caltag--tour { background: color-mix(in srgb, var(--go) 18%, transparent); color: var(--go-ink, var(--ink)); }
  .caltag--act { background: color-mix(in srgb, var(--tide) 16%, transparent); color: var(--ink); }

  /* 月曆與選中那一天：電腦版左右並排、等高；清單太長就在自己裡面捲 */
  .calsplit { display: grid; gap: var(--space-4); align-items: stretch; }
  .calday__t { display: flex; align-items: baseline; gap: 10px; } .calday__t span { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
  @media (min-width: 1000px) {
    .calsplit { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
    .calsplit > .calday { margin-top: 0; position: relative; min-height: 0; background: var(--surface-raised, #fff); }
    .calsplit > .calday .calday__list { position: absolute; left: var(--space-3); right: var(--space-3); top: 52px; bottom: var(--space-3); overflow-y: auto; align-content: start; }
  }
  /* 收起來的區塊（沒有日期的活動訊息） */
  .calfold { margin: var(--space-4) 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised, #fff); }
  .calfold > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--space-4); font-weight: 800; cursor: pointer; list-style: none; }
  .calfold > summary::-webkit-details-marker { display: none; } .calfold > summary em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--tide); } .calfold[open] > summary em { visibility: hidden; }
  .calfold > .plain { padding: 0 var(--space-4) var(--space-3); margin: 0 !important; border: 0; box-shadow: none; background: transparent; border-radius: 0; }
  .calfold > summary span { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
  /* 馬祖一年頁下面的節慶兩塊：左右並排 */
  .yearfest { display: grid; gap: var(--space-5); align-items: start; } .yearfest > .footnote { grid-column: 1 / -1; margin: 0; }
  .yr__pick .today__h { display: flex; align-items: center; gap: 8px; } .yr__x { margin-left: auto; appearance: none; border: 0; background: transparent; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink-muted); min-width: 40px; min-height: 40px; border-radius: 50%; } .yr__x:hover { background: var(--surface-sunken, #f1ede5); color: var(--ink); }
  /* 馬祖一年色帶圖下面那一行「接下來三個月」 */
  .yr__up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--space-4) 0 0; font-size: 14px; } .yr__up > b { margin-right: 4px; }
  .yr__upb { appearance: none; cursor: pointer; font: inherit; font-weight: 700; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-raised, #fff); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
  .yr__upb span { font-weight: 700; font-size: 13px; color: var(--tide); } .yr__upb.is-on { border-color: var(--tide); box-shadow: 0 0 0 1px var(--tide); }
  .calday { margin-top: var(--space-3); padding: var(--space-3);
            border: 1px solid var(--line); border-radius: var(--radius-md); }
  .calday__t { margin: 0 0 var(--space-2); font-size: 15px; line-height: 24px; }
  .calday__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .calday__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-2); }
  /* 標籤不縮：標題一長就被擠成「觀…」「活…」 */
  .calday__list > li > .caltag { flex: none; overflow: visible; }
  .calday__list > li > span, .calday__list > li > button { flex: 1 1 0; min-width: 0; }
  /* 收起來的其他報導 */
  .calmore { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
  .calmore > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
  .calmore > summary { list-style: none; }
  .calmore > summary::-webkit-details-marker { display: none; }
  .calmore > summary::before { content: '▸'; margin-right: 6px; font-size: 11px; }
  .calmore[open] > summary::before { content: '▾'; }
  .calmore > summary:hover { color: var(--ink); }
  .calmore ul { list-style: none; margin: 0; padding: 0 0 0 var(--space-3); display: grid; gap: 4px; }
  .calmore .calday__link { font-size: 13px; color: var(--ink-muted); }
  .calday__link {
    appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer;
    font: inherit; color: var(--ink); text-align: left; text-decoration: underline;
    text-underline-offset: 3px; text-decoration-color: var(--line-strong);
  }
  .calday__link:hover { text-decoration-color: currentColor; }
  .calnote { margin: var(--space-3) 0 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }

  @media (max-width: 560px) {
    .calcell { min-height: 60px; }
    .caltag { font-size: 10px; }
  }

  /* 手機的週列表：七顆日期按鈕，左右箭頭切週，點哪一天只列那一天。
     月曆格子在手機上一格只有 50px，標題只剩兩個字加「…」（使用者：月曆太小）。
     桌面維持月曆；手機只顯示這個（同一份資料，見 buildMonth）。 */
  .calweek { display: none; }
  .wkbar { display: flex; align-items: stretch; gap: 2px; margin-top: var(--space-2); }
  .wkbar__arrow { appearance: none; border: 0; background: transparent; cursor: pointer; flex: none;
                  width: 32px; min-height: 56px; font: inherit; font-size: 22px; color: var(--ink-muted);
                  border-radius: var(--radius-sm); }
  .wkbar__arrow:hover { background: var(--surface-sunken); color: var(--ink); }
  .wkbar__days { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .wkbar__d { appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
              font: inherit; color: var(--ink); min-height: 56px; padding: 4px 0; border-radius: var(--radius-md);
              display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
  .wkbar__d:hover { background: var(--surface-sunken); }
  .wkbar__d.is-past { color: var(--ink-muted); }
  .wkbar__w { font-size: 11px; line-height: 14px; color: var(--ink-muted); }
  .wkbar__d.is-end .wkbar__w { color: var(--stop); }
  .wkbar__d.is-today .wkbar__w { color: var(--tide); font-weight: 700; }
  .wkbar__n { font-size: 17px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .wkbar__c { font-size: 10px; line-height: 14px; min-width: 16px; padding: 0 4px; border-radius: 7px;
              background: color-mix(in srgb, var(--tide) 16%, transparent); color: var(--ink);
              font-variant-numeric: tabular-nums; text-align: center; }
  .wkbar__c.is-zero { background: transparent; color: var(--line-strong); }
  .wkbar__d[aria-selected="true"] { background: var(--tide); border-color: var(--tide); color: var(--on-tide); }
  .wkbar__d[aria-selected="true"] .wkbar__w { color: var(--on-tide); }
  .wkbar__d[aria-selected="true"] .wkbar__c { background: rgba(255,255,255,.25); color: var(--on-tide); }
  .wkbar__d:focus-visible, .wkbar__arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .wkday { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
  .wkday__h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
              margin-bottom: var(--space-2); }
  .wkday__t { font-size: 16px; line-height: 24px; font-weight: 700; }
  .wkday__back { appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit;
                 font-size: 13px; color: var(--tide); min-height: 44px; padding: 0 4px; }
  .calweek__none { margin: 0; font-size: 14px; color: var(--ink-muted); }
  .calweek .calday__list li { font-size: 15px; line-height: 23px; }
  @media (max-width: 560px) {
    .calweek { display: block; }
    .calnav--month, .calgrid, .calday, .calseason--month, .calnote--month { display: none; }
  }

  /* ---- 活動文章頁（我們自己的版面，不是外連） ---- */
  .actfacts { margin: 0 0 var(--space-4); display: grid; gap: 6px; }
  .actfacts__row { display: grid; grid-template-columns: 5.5em 1fr; gap: var(--space-3);
                   font-size: 15px; line-height: 24px; }
  .actfacts dt { display: flex; align-items: center; gap: 5px; color: var(--ink-muted); }
  .actfacts dd { margin: 0; }
  .actimgs { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
  .actimgs__b {
    appearance: none; border: 0; background: transparent; padding: 0; cursor: zoom-in;
    display: block; position: relative; width: 100%;
  }
  .actimgs img { width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
  .actimgs__zoom {
    position: absolute; right: 8px; bottom: 8px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(0,0,0,.62); color: #fff; font-size: 12px; line-height: 18px;
    padding: 3px 8px; border-radius: var(--radius-pill);
  }

  /* ---- 圖片檢視器 ----
     活動海報把時程、地點、報名方式全擠在一張圖裡，字很小，
     不能放大就等於沒有提供資訊。 */
  .zoomer {
    position: fixed; inset: 0; z-index: var(--z-dialog, 90);
    background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center;
    overflow: hidden; touch-action: none;
  }
  .zoomer__img {
    max-width: 94vw; max-height: 86vh; cursor: grab; user-select: none;
    transform-origin: center center; transition: transform .06s linear;
  }
  .zoomer__img.is-zoomed { cursor: grab; }
  .zoomer__img:active { cursor: grabbing; }
  .zoomer__bar {
    position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px;
    display: flex; align-items: center; gap: 6px; z-index: 1;
  }
  .zoomer__b {
    appearance: none; cursor: pointer; border: 1px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.5); color: #fff; font: inherit; font-size: 17px; line-height: 1;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
  }
  .zoomer__b--w { width: auto; padding: 0 12px; font-size: 14px; }
  .zoomer__b:hover { background: rgba(255,255,255,.18); }
  .zoomer__k { color: #fff; font-size: 13px; min-width: 4em; text-align: center; }
  .zoomer__hint {
    position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); left: 0; right: 0;
    text-align: center; color: rgba(255,255,255,.7); font-size: 12px; margin: 0;
  }
  @media (max-width: 560px) { .zoomer__hint { display: none; } }

  /* 滑鼠移過去的縮圖。不點進去也看得出是什麼。 */
  .peek {
    position: fixed; z-index: calc(var(--z-dialog, 90) + 1);   /* 對話框（加入景點）裡的縮圖也要蓋得過 */ pointer-events: none;
    background: var(--surface-raised, #fff); border: 1px solid var(--line-strong);
    border-radius: var(--radius-md); padding: 4px; box-shadow: var(--shadow-lift);
  }
  .peek img { display: block; width: 320px; height: auto; max-height: 260px;
              object-fit: contain; background: var(--surface-sunken);
              border-radius: var(--radius-sm); }
  @media (hover: none) { .peek { display: none; } }

  .calday__plain { color: var(--ink-muted); }
  .actbody p { margin: 0 0 8px; font-size: 15px; line-height: 26px; }
  /* 內文裡的網址（linkify）。很長的網址要能在任何地方斷行——
     報名表網址原本把對話框撐寬，底下多出一條橫向捲軸 */
  .bodylink { color: var(--tide); text-decoration: underline; text-underline-offset: 3px;
              overflow-wrap: anywhere; word-break: break-all; }
  .bodylink:hover { text-decoration-thickness: 2px; }
  .actbody, .infobody, .bsheet__body { overflow-wrap: anywhere; }
  .actbody p:empty { display: none; }
  .actsrc { margin: var(--space-4) 0 0; padding-top: var(--space-3);
            border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }

  .act__open {
    appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer;
    font: inherit; color: var(--ink); text-align: left;
    display: flex; align-items: center; gap: 6px; width: 100%;
  }
  .act__open:hover .act__t { text-decoration: underline; text-underline-offset: 3px; }
  .act__thumb {
    appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer;
    margin-top: 6px; display: block; max-width: 180px;
  }
  .act__thumb img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }

  .srcset {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    align-items: center; margin-top: var(--space-3);
  }
  .srcset__lb { font-size: 13px; line-height: 21px; color: var(--ink-muted); }

  /* 來源搜尋。233 個來源平鋪，要找特定一家等於用眼睛掃。
     輸入框不要做成小方塊——手機上點得到才算數（最小高度 40px）。 */
  .srcfind {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    align-items: center; margin-top: var(--space-3);
  }
  .srcfind input {
    flex: 1 1 14em; min-width: 0; min-height: 40px;
    padding: 6px var(--space-3);
    font: inherit; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
  }
  .srcfind input:focus-visible { outline: 2px solid var(--tide); outline-offset: 1px; }
  .srcfind__x {
    cursor: pointer; min-height: 40px; padding: 0 var(--space-3);
    font: inherit; color: var(--ink-muted);
    background: transparent; border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
  }
  .srcfind__x:hover { color: var(--ink); border-color: var(--ink-muted); }
  .srcfind .muted { font-size: 13px; }
  .moretopics { display: inline-block; }
  .moretopics > summary {
    cursor: pointer; font-size: 13px; line-height: 21px; color: var(--ink-muted);
    list-style: none; padding: 4px var(--space-2);
    border: 1px dashed var(--line-strong); border-radius: var(--radius-pill);
  }
  .moretopics > summary::-webkit-details-marker { display: none; }
  .moretopics > summary:hover { color: var(--ink); border-color: var(--ink-muted); }
  .moretopics[open] > summary { margin-bottom: var(--space-2); }

  .srcmore { margin-top: var(--space-4); }
  .srcmore > summary {
    cursor: pointer; font-size: 13px; line-height: 21px; color: var(--ink-muted);
    padding: var(--space-2) 0;
  }
  .srcmore > summary:hover { color: var(--ink); }

  /* 載入中的骨架。比一句「還沒抓到」好——它讀起來是「正在來」，
     而不是「壞了」，而且版面不會在資料到達時跳動。 */
  .skel { display: grid; gap: var(--space-4); padding: var(--space-2) 0; }
  .skel__row { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-4); align-items: start; }
  .skel__img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
  .skel__lines { display: grid; gap: 10px; padding-top: 4px; }
  .skel__l { height: 14px; border-radius: 4px; }
  .skel__l--t { width: 72%; }
  .skel__l--m { width: 38%; height: 11px; }
  .skel__img, .skel__l {
    background: linear-gradient(90deg,
      var(--surface-sunken) 25%, var(--line) 37%, var(--surface-sunken) 63%);
    background-size: 400% 100%;
    animation: skel 1.4s ease-in-out infinite;
  }
  @keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
  /* 載入中的循環動畫（loadingBox）：小船在浪上搖、藍眼淚閃（使用者 2026-09-30） */
  .ldr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 16px; color: var(--ink-muted, #5b6770); text-align: center; }
  .ldr--s { flex-direction: row; gap: 12px; padding: 14px 16px; justify-content: flex-start; }
  .ldr__art { width: 112px; height: 60px; overflow: hidden; border-radius: 14px; background: linear-gradient(#e7f3f5, #d3eaee); }
  .ldr--s .ldr__art { width: 64px; height: 34px; border-radius: 10px; flex: none; }
  .ldr__wave { transform-box: view-box; }
  .ldr__wave--b { fill: #7cc4cf; opacity: .55; animation: ldrWave 3.2s linear infinite; }
  .ldr__wave--f { fill: #2d8f9c; animation: ldrWave 2.1s linear infinite reverse; }
  @keyframes ldrWave { from { transform: translateX(0); } to { transform: translateX(24px); } }
  .ldr__boat { transform-box: view-box; transform-origin: 48px 36px; animation: ldrBob 2.4s ease-in-out infinite; }
  .ldr__hull { fill: #0f3d4a; }
  .ldr__mast { stroke: #0f3d4a; stroke-width: 1.4; }
  .ldr__sail { fill: #f6a04d; }
  @keyframes ldrBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(2.5px) rotate(4deg); } }
  .ldr__tears circle { fill: #5ff2ff; filter: drop-shadow(0 0 2px #5ff2ff); animation: ldrTear 2.4s ease-in-out infinite; opacity: 0; }
  .ldr__tears circle:nth-child(2) { animation-delay: .8s; } .ldr__tears circle:nth-child(3) { animation-delay: 1.6s; }
  @keyframes ldrTear { 0%,100% { opacity: 0; } 40%,60% { opacity: 1; } }
  .ldr__t { font-size: 15px; letter-spacing: .04em; }
  .ldr--s .ldr__t { font-size: 14px; text-align: left; }
  .ldr__dots { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
  .ldr__dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ldrDot 1.2s ease-in-out infinite; opacity: .25; }
  .ldr__dots i:nth-child(2) { animation-delay: .2s; } .ldr__dots i:nth-child(3) { animation-delay: .4s; }
  @keyframes ldrDot { 0%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
  /* 連不上：灰色、船停著、不閃——「會自動重試」而不是「壞掉了」 */
  .ldr--off .ldr__art { background: #eceff0; }
  .ldr--off .ldr__wave--b { fill: #b9c3c6; } .ldr--off .ldr__wave--f { fill: #8c9a9e; }
  .ldr--off .ldr__sail { fill: #b9c3c6; } .ldr--off .ldr__tears { display: none; }
  .ldr--off .ldr__boat, .ldr--off .ldr__wave { animation-duration: 6s; }
  .sheet .ldr, .sp__modal .ldr { padding: 28px 8px; }
  /* 班次卡還沒資料：三條流光灰條 */
  .skws { display: grid; gap: 14px; padding: 18px 20px 4px; }
  .skw { display: grid; grid-template-columns: 52px 1fr 64px; gap: 14px; align-items: center; }
  .skw i { display: block; height: 14px; border-radius: 6px;
    background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--line) 37%, var(--surface-sunken) 63%);
    background-size: 400% 100%; animation: skel 1.4s ease-in-out infinite; }
  .skw__b { width: 70%; } .skw__c { height: 22px !important; border-radius: 11px !important; }
  .skw:nth-child(2) .skw__b { width: 55%; } .skw:nth-child(3) .skw__b { width: 82%; }
  .depwait .ldr { padding: 10px 20px 18px; }
  /* 島況列還沒資料：數值位置換成流光小條，不排一整列「—」 */
  .dy-cond--wait .dy-cond__value, .dy-cond--wait .condmini__v { color: transparent !important; position: relative; min-width: 2.6em; display: inline-block; }
  .dy-cond--wait .dy-cond__value::after, .dy-cond--wait .condmini__v::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.10) 25%, rgba(255,255,255,.28) 37%, rgba(255,255,255,.10) 63%); background-size: 400% 100%; animation: skel 1.4s ease-in-out infinite; }
  .dy-cond--wait .dy-cond__unit, .dy-cond--wait .lvlbtn { visibility: hidden; }
  .switchrow .ldr--s { padding: 8px 0; }
  @media (prefers-reduced-motion: reduce) {
    .ldr__wave, .ldr__boat, .ldr__tears circle, .ldr__dots i, .skw i, .dy-cond--wait .dy-cond__value::after, .dy-cond--wait .condmini__v::after { animation: none !important; }
    .ldr__tears circle { opacity: .8; }
  }
  @media (prefers-reduced-motion: reduce) {
    .skel__img, .skel__l { animation: none; background: var(--surface-sunken); }
  }

  .footnote { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; line-height: 21px; }

  /* ---- 島況列的來源查證 tip ---- */
  .condq { position: relative; border-radius: var(--radius-sm); }
  .condq:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 3px; }
  .condtip {
    position: fixed; z-index: var(--z-dialog);
    display: grid; gap: 2px; width: max-content; max-width: 320px;
    background: var(--surface-raised); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift); padding: var(--space-3);
    font-family: var(--font-sans); font-size: 13px; line-height: 20px; text-align: left; white-space: normal;
  }
  .condtip b { font-size: 14px; }
  /* 起降門檻：提示框與分級說明裡的一塊，門檻與現在的值用大字並排（使用者 2026-10-05：門檻要顯目） */
  .condgate { display: grid; gap: 4px; margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken, #ece7de); border-left: 4px solid var(--tide, #0c7078); }
  .condgate__r { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .condgate__k { font-size: 12.5px; color: var(--ink-muted); min-width: 5.5em; }
  .condtip .condgate__v, .condgate__v { font-family: var(--font-mono); font-size: 18px; line-height: 24px; color: var(--ink); }
  .condgate__s { font-size: 12.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
  .condgate__s--go { color: #0f6b3a; background: #d9f2e3; } .condgate__s--hold { color: #8a5a00; background: #fbecc4; } .condgate__s--stop { color: #a3211a; background: #fbdcd8; }
  .condgate__n { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
  /* 起降門檻畫成一條線：紅＝低於門檻、黃＝接近門檻、綠＝達標準；上面的點是現在、下面的線是門檻 */
  .condgate__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .gline { position: relative; display: block; padding: 24px 0 22px; }
  .gline__track { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
  .gline__z { display: block; height: 100%; } .gline__z--stop { background: #ef4444; } .gline__z--hold { background: #facc15; } .gline__z--go { background: #34d399; }
  .gline__lb { position: absolute; transform: translateX(-50%); font-size: 12.5px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; }
  .gline__lb b, .condtip .gline__lb b { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
  .gline__lb--now { top: 0; } .gline__lb--lim { bottom: 0; }
  .gline__pt { position: absolute; transform: translateX(-50%); }
  .gline__pt--now { top: 16px; border: 6px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
  .gline__pt--lim { top: 20px; width: 0; height: 18px; border-left: 2px dashed var(--ink); }
  .frule .condgate { display: grid; margin: 0 0 12px; }
  /* 點一格跳出的說明：圖示＋名稱、大字數值＋程度條、分級一覽、來源一行（使用者 2026-10-05：文字精簡、圖示優先） */
  .frule.lvinfo { width: min(420px, 100%); display: grid; gap: 10px; }
  .lvinfo__h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--ink-muted); }
  .lvinfo__h svg { width: 20px; height: 20px; }
  .lvinfo__now { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
  .lvinfo__v { font-size: 28px; line-height: 34px; display: inline-flex; align-items: center; }
  .lvinfo__v .wxi { width: 30px; height: 30px; }
  .lvinfo__sub { margin: -4px 0 0; font-size: 13.5px; color: var(--ink-muted); }
  .lvinfo .condgate, .lvinfo .frule__note { margin: 0; }
  /* 分級畫成一條線：每級一段顏色，「現在」的箭頭落在數值所在的位置；下面是分界的數字與各級名稱 */
  .lvline { position: relative; display: grid; gap: 3px; padding-top: 24px; margin: 4px 0 2px; }
  .lvline__now { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; line-height: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; display: grid; justify-items: center; }
  .lvline__now::after { content: ''; border: 6px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; margin-top: 1px; }
  .lvline__now.is-right { transform: none; justify-items: start; } .lvline__now.is-left { transform: translateX(-100%); justify-items: end; }
  .lvline__now.is-right span { margin-left: 9px; } .lvline__now.is-left span { margin-right: 9px; }
  .lvline__now.is-right::after { margin-left: -6px; } .lvline__now.is-left::after { margin-right: -6px; }
  /* 起降門檻標在同一條線上：最上面一排是門檻，虛線往下穿過線 */
  .lvline--gate { padding-top: 46px; }
  .lvline--gate .lvline__now { top: 22px; }
  .lvline__glb { position: absolute; top: 0; transform: translateX(-50%); font-size: 12.5px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; }
  .lvline__glb b { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
  .lvline__gl { position: absolute; top: 18px; height: 46px; width: 0; border-left: 2px dashed var(--ink); transform: translateX(-1px); z-index: 1; }
  .lvinfo__gate { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; }
  .lvline__track { display: flex; gap: 2px; height: 14px; }
  .lvline__seg { flex: 1; border-radius: 3px; background: #cbd5db; opacity: .55; }
  .lvline__seg.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--surface-raised, #fff), 0 0 0 3.5px var(--ink); }
  .lvline__seg.lvl--0 { background: #34d399; } .lvline__seg.lvl--1 { background: #a3e635; } .lvline__seg.lvl--2 { background: #facc15; }
  .lvline__seg.lvl--3 { background: #fb923c; } .lvline__seg.lvl--4 { background: #ef4444; } .lvline__seg.lvl--c { background: #3b9bd6; } .lvline__seg.lvl--t { background: #0c9aa0; }
  .lvline__ticks { position: relative; height: 15px; font-size: 11px; line-height: 15px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .lvline__ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
  .lvline__ticks span:last-child { transform: translateX(-35%); }
  .lvline__ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
  .lvline__names { display: flex; gap: 2px; font-size: 12px; line-height: 15px; color: var(--ink-muted); text-align: center; }
  .lvline__names span { flex: 1; min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }   /* 手機上放不下時平均折成兩行，不要只掉一個字 */
  .lvline__names .is-on { color: var(--ink); font-weight: 800; }
  /* 潮汐小圖 */
  .tidefig { margin: 0; padding: 8px 10px 10px; border-radius: 12px; background: color-mix(in srgb, var(--tide, #0c7078) 10%, var(--surface-raised, #fff)); }
  .tidefig svg { display: block; width: 100%; height: auto; overflow: visible; }
  .tidefig__line { stroke: var(--tide, #0c7078); stroke-width: 2.5; stroke-linejoin: round; }
  .tidefig__pt { fill: var(--tide, #0c7078); }
  .tidefig__nowpt { fill: var(--surface-raised, #fff); stroke: var(--ink); stroke-width: 2.5; }
  .tidefig__now { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
  .tidefig__nowt { font-size: 12px; font-weight: 800; fill: var(--ink); }
  .tidefig__t { font-size: 12px; font-weight: 700; fill: var(--ink); font-family: var(--font-sans); }
  .tidefig__h { font-size: 11.5px; fill: var(--ink-muted); font-family: var(--font-mono); }
  .tidefig figcaption { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
  /* 起降視窗：能見度、雲冪各一條門檻線，下面是三種顏色的圖例 */
  .frow { display: grid; gap: 0; padding: 10px 12px 4px; border-radius: 12px; background: var(--surface-sunken, #ece7de); }
  .frow__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; }
  .frow__na { font-size: 12.5px; color: var(--ink-muted); }
  .frow .gline { padding: 24px 0 24px; }
  .fleg { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-muted); }
  .fleg span { display: inline-flex; align-items: center; gap: 5px; }
  .fleg i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }
  .lvinfo__v.frule__go { color: #15803d; } .lvinfo__v.frule__hold { color: #b26a00; } .lvinfo__v.frule__stop { color: #b42318; }
  .lvinfo__src { margin: 0; font-size: 12.5px; color: var(--ink-muted); }
  .lvinfo__src a { color: var(--tide); }
  .condcomp { display: none; }
  /* 雙機場表格裡能點的格子（沒有滑鼠提示框了，點了看說明與來源） */
  .condclick { cursor: pointer; border-radius: 6px; }
  .condclick:hover { background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
  .condclick:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 3px; }
  /* ---- 日（淺色）模式的島況列：淺底卡片、深色字（使用者 2026-10-05：白天整頁淺底，中間一大塊深藍不適合）。
     夜（深色）模式照舊。程度條保留顏色但加深一點；程度的字改深色（亮綠、亮黃的字在白底上看不清楚） ---- */
  [data-theme="light"] .dy-cond { --surface-deep: var(--surface-raised, #fff); --ink-deep: var(--ink); --ink-deep-muted: var(--ink-muted);
    --go-on-deep: #0f7a4d; --hold-on-deep: #8f5d00; --stop-on-deep: #c2332a; --focus-invert: var(--tide, #0c7078); --cond-rule: var(--line, #dcd6cb);
    border: 1px solid var(--line, #dcd6cb); box-shadow: 0 1px 2px rgba(20,38,45,.06); }
  /* 地區選單是青綠底白字（日夜兩種主題都一樣），跟各頁標題裡的島名同一個顏色與形狀：兩顆是同一個選單 */
  .dy-cond .condpick__btn, [data-theme="light"] .dy-cond .condpick__btn { background: #0c7078; border-color: #0c7078; color: #fff; }
  .dy-cond .condpick__btn:hover, [data-theme="light"] .dy-cond .condpick__btn:hover { background: #0a5d64; }
  .islpick { position: relative; display: inline-block; vertical-align: middle; margin-right: .35em; }
  .islpick__btn { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: var(--radius-md); border: 1px solid #0c7078; background: #0c7078; color: #fff;
                  font-family: var(--font-sans); font-size: 18px; line-height: 26px; font-weight: 800; white-space: nowrap; cursor: pointer; }
  .islpick__btn:hover { background: #0a5d64; } .islpick__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .islpick__menu { font-weight: 400; letter-spacing: 0; }
  [data-theme="light"] .dy-cond .lvl__bar i { background: #e6e1d6; }
  [data-theme="light"] .dy-cond .lvl--0 .is-on { background: #17a673; } [data-theme="light"] .dy-cond .lvl--1 .is-on { background: #7cb518; }
  [data-theme="light"] .dy-cond .lvl--2 .is-on { background: #d9a400; } [data-theme="light"] .dy-cond .lvl--3 .is-on { background: #e9781a; }
  [data-theme="light"] .dy-cond .lvl--4 .is-on { background: #dc3b32; } [data-theme="light"] .dy-cond .lvl--c .is-on { background: #3b9bd6; }
  [data-theme="light"] .dy-cond .lvl--t .is-on { background: #0c9aa0; }
  [data-theme="light"] .dy-cond .lvl .lvl__w { color: var(--ink); }
  [data-theme="light"] .dy-cond .cchip.lvl--0 .cchip__dot { background: #17a673; } [data-theme="light"] .dy-cond .cchip.lvl--1 .cchip__dot { background: #7cb518; }
  [data-theme="light"] .dy-cond .cchip.lvl--2 .cchip__dot { background: #d9a400; } [data-theme="light"] .dy-cond .cchip.lvl--3 .cchip__dot { background: #e9781a; }
  [data-theme="light"] .dy-cond .cchip.lvl--4 .cchip__dot { background: #dc3b32; } [data-theme="light"] .dy-cond .cchip.lvl--c .cchip__dot { background: #3b9bd6; }
  [data-theme="light"] .dy-cond .cchip.lvl--t .cchip__dot { background: #0c9aa0; }
  [data-theme="light"] .dy-cond button.ctile:hover, [data-theme="light"] .dy-cond button.cchip:hover { background: var(--surface-sunken, #f1ede5); }
  [data-theme="light"] .dy-cond .condclick:hover { background: var(--surface-sunken, #f1ede5); box-shadow: 0 0 0 4px var(--surface-sunken, #f1ede5); }
  [data-theme="light"] .dy-cond .condgrp + .condgrp { border-top-color: var(--line, #dcd6cb); }
  [data-theme="light"] .dy-cond .condwide__r:not(.condwide__r--h) + .condwide__r > span { border-top-color: var(--line, #dcd6cb); }
  [data-theme="light"] .dy-cond .condtap.dy-cond__value--go { background: rgba(15,122,77,.12); }
  [data-theme="light"] .dy-cond .condtap.dy-cond__value--hold { background: rgba(143,93,0,.14); }
  [data-theme="light"] .dy-cond .condtap.dy-cond__value--stop { background: rgba(194,51,42,.12); }
  button.cchip:hover { background: rgba(255,255,255,.08); }
  /* 可以點的格子：名稱旁有小箭頭 */
  .ctile__go { margin-left: auto; font-size: 15px; line-height: 16px; font-weight: 700; opacity: .45; }
  button.ctile:hover .ctile__go, button.ctile:focus-visible .ctile__go { opacity: 1; }
  .condtip__demo { color: var(--stop); font-weight: 600; }
  .condtip__real { color: var(--go); font-weight: 600; }
  /* 真實欄位在島況列上加一個小點，不用顏色當唯一線索——hover 才有完整說明 */
  .condq--real .dy-cond__value::after { content: '·'; color: var(--go); margin-left: 3px; font-weight: 700; }
  .condtip__row { color: var(--ink-muted); }
  .condtip__link { color: var(--tide); font-family: var(--font-mono); font-size: 12px; word-break: break-all; }
  @media (max-width: 720px) { .condtip { left: auto; right: 0; max-width: 78vw; } }


  /* ---- 直播嵌入：擋掉 YouTube 的播放器介面 ---- */
  .camshot { position: relative; width: 100%; height: 100%; background: var(--surface-deep); }
  .camshot > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
  .camshot__open {
    position: absolute; right: var(--space-2); bottom: var(--space-2); z-index: 1;
    font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 600;
    color: var(--ink-deep); background: rgba(0,0,0,.55); text-decoration: none;
    padding: 4px var(--space-2); border-radius: var(--radius-md);
  }
  .camshot__open:hover { background: rgba(0,0,0,.78); text-decoration: underline; }
  .camshot__open:focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 2px; }
  /* CamPanel 的 stage 有內距，嵌入影像時取消，讓畫面貼齊 */
  .dy-panel__stage:has(.camshot) { padding: 0; }

  /* ---- 馬祖現場（2026-10-07 重排）：島分頁、播放器（全螢幕、拍一張）、帶狀態的縮圖 ---- */
  .lvtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 var(--space-4);
    background: var(--surface-sunken, #efeae0); border-radius: 14px; max-width: 520px; }
  .lvtabs__b { appearance: none; border: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink-muted); cursor: pointer;
    min-height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
  .lvtabs__b.is-on { background: var(--surface-raised, #fff); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
  .lvtabs__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .lvtabs__n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-muted); background: var(--surface-sunken, #efeae0); border-radius: 999px; min-width: 20px; padding: 1px 6px; }
  .lvtabs__b.is-on .lvtabs__n { background: var(--tide, #0c7078); color: #fff; }
  .lv { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(300px, 1fr); gap: var(--space-4); align-items: stretch; }
  .lv > .lvstage:not(.is-full) { align-self: start; }
  .lv__side { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-3); border: 1px solid var(--line, #dcd6cb); border-radius: 14px; background: var(--surface-raised, #fff); }
  .lv__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); min-width: 0; }
  @media (max-width: 1080px) { .lv { grid-template-columns: minmax(0, 1fr); } }
  .lv__info { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 2px; }
  .lv__name { margin: 0 0 4px; font-size: 19px; line-height: 27px; font-weight: 700; }
  .lv__desc { margin: 0 0 var(--space-3); font-size: 14.5px; line-height: 1.7; color: var(--ink); }
  /* 這個島現在的狀況：跟首頁最上面的島況列同一種格子（深底、圖示＋數值＋程度條） */
  .lvcond { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 2px; padding: 6px; margin: 0 0 var(--space-3); border-radius: 12px; background: #10222b; color: #fff; }
  .lvcond .ctile { padding: 6px; } .lvcond .ctile__lb { color: rgba(255,255,255,.66); } .lvcond .ctile__v { font-family: var(--font-mono); font-size: 17px; }
  .lvcond .ctile__v small { font-size: 11.5px; opacity: .8; } .lvcond .lvl { flex-wrap: wrap; }
  .lv__src { margin: auto 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); }

  .lvstage { position: relative; background: #0b161c; border-radius: 14px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
  .lvstage__view { position: relative; flex: 1; min-height: 0; aspect-ratio: 16 / 9; width: 100%; background: #060d11; display: grid; gap: 3px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); }
  .lvtile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0b161c; display: flex; align-items: center; justify-content: center; }
  .lvtile[role="button"] { cursor: pointer; }
  .lvtile.is-cur::after { content: ''; position: absolute; inset: 0; border: 2px solid #39c0c8; pointer-events: none; z-index: 2; }
  .lvtile:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  .lvtile .camshot { background: #000; }
  .lvtile__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .lvtile__off { margin: 0; padding: var(--space-4); max-width: 30em; text-align: center; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.6); }
  .lvtile__tag { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 7px;
    background: rgba(0,0,0,.58); color: #fff; font-size: 12.5px; line-height: 18px; pointer-events: none; }
  .lvstage:not(.is-full) .lvtile__tag { max-width: calc(100% - 150px); top: 10px; left: 10px; }
  .lvtile__st { font-weight: 700; white-space: nowrap; } .lvtile__nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .lvtile__zoom { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 3px 9px; border-radius: 7px; background: #39c0c8; color: #06282b; font-size: 12px; line-height: 18px; font-weight: 700; pointer-events: none; }
  .lvstage__hud { position: absolute; top: 10px; z-index: 2; padding: 3px 9px; border-radius: 7px; background: rgba(0,0,0,.58); color: #fff; font-size: 12.5px; line-height: 18px; pointer-events: none; }
  .lvstage__hud--r { right: 10px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  .lvstage__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
  .lvstage__dot.is-on, .lvstage__dot.is-night { animation: lvblink 1.6s steps(2, start) infinite; }
  .lvstage__dot.is-fog { background: #e9b949; } .lvstage__dot.is-off { background: #8a949a; }
  @keyframes lvblink { to { opacity: .25; } }
  .lvstage__flash { position: absolute; inset: 0; z-index: 3; background: #fff; animation: lvflash .45s ease-out forwards; pointer-events: none; }
  @keyframes lvflash { from { opacity: .85; } to { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .lvstage__dot, .lvstage__flash { animation: none; } .lvstage__flash { opacity: 0; } }

  .lvbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px; background: #10222b; }
  .lvbar__sp { flex: 1; }
  .lvbar__b { appearance: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 14px; border-radius: 10px; white-space: nowrap;
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .lvbar__b:hover { background: rgba(255,255,255,.16); } .lvbar__b:focus-visible, .lvseg__b:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
  .lvbar__b[disabled] { opacity: .4; cursor: default; }
  .lvbar__b.is-on { background: #39c0c8; border-color: #39c0c8; color: #06282b; }
  .lvbar__b--sq { width: 44px; padding: 0; font-size: 22px; line-height: 1; flex: none; }
  .lvbar__b--shot { background: #fff; color: #10222b; border-color: #fff; } .lvbar__b--shot:hover { background: #e3eaec; }
  .lvbar__shut { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #10222b; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 8px #e5484d; }
  .lvseg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
  .lvseg__b { appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.72); cursor: pointer; min-height: 38px; min-width: 44px; padding: 0 12px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
  .lvseg__b:hover { color: #fff; } .lvseg__b.is-on { background: #fff; color: #10222b; }
  .lvseg__lb { font-size: 13px; }

  /* 全螢幕：上面是分割畫面，下面一條（名稱與時間、選地區、排法、自動換畫面、拍一張、離開） */
  .lvstage.is-full { position: fixed; inset: 0; z-index: 4000; border-radius: 0; background: #060d11;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .lvstage.is-full .lvstage__view { aspect-ratio: auto; }
  .lvstage.is-full .camshot__open { display: none; }
  .lvbar__id { display: inline-flex; align-items: center; gap: 8px; color: #fff; white-space: nowrap; padding: 0 6px; }
  .lvbar__id b { font-family: var(--font-serif); font-size: 17px; color: #fff; } .lvbar__id .mono { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); }
  .lvbar__sp { font-size: 12.5px; color: rgba(255,255,255,.55); text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lvstage__view.is-g4 { grid-template-columns: repeat(var(--c), minmax(0, 1fr)); }
  .lvstage__view.is-gm { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); grid-template-rows: repeat(var(--k), minmax(0, 1fr)); }
  .lvstage__view.is-gm .lvtile.is-main { grid-column: 1; grid-row: 1 / -1; }
  .lvstage__view.is-gm.is-many { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .lvstage__view.is-gm.is-many .lvtile.is-main { grid-column: 1 / span 3; grid-row: 1 / span 3; }
  @media (orientation: portrait) {
    .lvstage__view.is-g4 { grid-template-columns: repeat(var(--cp), minmax(0, 1fr)); }
    .lvstage__view.is-gm { grid-template-columns: repeat(var(--k), minmax(0, 1fr)); grid-template-rows: minmax(0, 3fr) minmax(0, 1fr); }
    .lvstage__view.is-gm .lvtile.is-main { grid-column: 1 / -1; grid-row: 1; }
    .lvstage__view.is-gm.is-many { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 3fr); }
    .lvstage__view.is-gm.is-many .lvtile.is-main { grid-column: 1 / -1; grid-row: 1; }
  }
  /* 拖拉換位置：被拖的那格變淡，要放下的那格亮框，游標旁跟著鏡頭名稱 */
  .lvtile[role="button"] { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
  .lvstage__view.is-dragging .lvtile { cursor: grabbing; }
  .lvtile.is-drag { opacity: .35; }
  .lvtile.is-over::after { content: ''; position: absolute; inset: 0; z-index: 3; border: 3px dashed #ffd166; background: rgba(255,209,102,.16); pointer-events: none; }
  .lvghost { position: fixed; z-index: 6; transform: translate(12px, 14px); padding: 5px 11px; border-radius: 8px; background: #ffd166; color: #2b2000; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
  @media (max-width: 700px) {
    .lvstage.is-full .lvbar { gap: 6px; padding: 6px; } .lvstage.is-full .lvbar__sp { display: none; } .lvbar__id { order: -2; flex: 1; } .lvstage.is-full .lvbar__b.lvbar__x { order: -1; flex: none; padding: 0 14px; }
    .lvstage.is-full .lvseg { flex: 1; } .lvstage.is-full .lvseg--isl { flex: 1 1 100%; } .lvstage.is-full .lvseg__b { flex: 1; padding: 0 4px; min-width: 0; font-size: 13px; } .lvseg__lb { display: none; }
    .lvstage.is-full .lvbar__b { flex: 1; padding: 0 8px; } .lvstage.is-full .lvbar__b--sq { flex: none; }
    .lvstage.is-full .lvtile__tag { font-size: 11.5px; left: 5px; top: 5px; padding: 2px 7px; }
  }
  html:has(.lvstage.is-full), html:has(.lvstage.is-full) body { overflow: hidden !important; }
  .lvsnap { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(6,14,18,.82); }
  .lvsnap__card { background: #fff; color: #17323a; border-radius: 14px; padding: 12px; max-width: 560px; width: 100%; max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
  .lvsnap__img { display: block; width: 100%; height: auto; border-radius: 8px; }
  .lvsnap__msg { margin: 0; font-size: 13px; line-height: 1.6; color: #4b5b62; }
  .lvsnap__act { display: flex; flex-wrap: wrap; gap: 8px; }
  .lvsnap__b { appearance: none; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #c9d2d5; background: #fff; color: #17323a;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: 1; white-space: nowrap; }
  .lvsnap__b.is-main { background: #0c7078; border-color: #0c7078; color: #fff; }
  .lvsnap__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

  .lvcard { appearance: none; font: inherit; text-align: left; cursor: pointer; padding: 6px; min-width: 0; border-radius: 12px; border: 1px solid var(--line, #dcd6cb); background: var(--surface-raised, #fff); color: var(--ink);
    display: flex; flex-direction: column; gap: 6px; }
  .lvcard:hover { border-color: var(--line-strong, #b9b1a2); } .lvcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .lvcard.is-on { border-color: var(--tide, #0c7078); box-shadow: 0 0 0 2px var(--tide, #0c7078); }
  .lvcard__pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #22343c; }
  .lvcard__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .lvcard.st-off .lvcard__pic { background: repeating-linear-gradient(135deg, #2a3940 0 8px, #24323a 8px 16px); }
  .lvcard__st { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 700; color: #fff; background: #1f8a4c; }
  .lvcard__st.is-fog { background: #b7791f; } .lvcard__st.is-night { background: #33415c; } .lvcard__st.is-off { background: #6b757b; }
  .lvcard__name { font-size: 14.5px; line-height: 20px; font-weight: 700; padding: 0 2px 2px; overflow-wrap: anywhere; }


  /* 載入畫面（使用者 2026-09-30：要精緻有趣、會動的循環動畫）：純 CSS＋SVG，網站程式還沒下載完就會動。
     夜晚的海：遠山與燈塔掃光、三層海浪、渡輪上下晃、浪頭有藍眼淚一閃一閃，下面三句話輪流出現 */
  .boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px;
          background: radial-gradient(120% 80% at 50% 0%, #123a4e 0%, #0a1f2c 55%, #06131c 100%); color: #cfe9ee; font-family: var(--font-sans); overflow: hidden; z-index: 1; }
  .boot h1 { font-family: var(--font-serif); color: #f3fbfc; font-size: 34px; line-height: 1.2; margin: 0; letter-spacing: .08em; text-shadow: 0 2px 18px rgba(80,220,230,.35); }
  .boot__scene { width: min(360px, 88vw); aspect-ratio: 36 / 20; }
  .boot__scene svg { width: 100%; height: 100%; overflow: visible; }
  .boot__beam { transform-origin: 262px 58px; animation: bootbeam 4s linear infinite; }
  @keyframes bootbeam { 0% { transform: rotate(-70deg); opacity: 0; } 15% { opacity: .9; } 50% { transform: rotate(40deg); opacity: .9; } 65% { opacity: 0; } 100% { transform: rotate(40deg); opacity: 0; } }
  .boot__lamp { animation: bootlamp 4s ease-in-out infinite; } @keyframes bootlamp { 0%, 100% { opacity: .5; } 30%, 50% { opacity: 1; } }
  .boot__w1 { animation: bootwave 7s linear infinite; } .boot__w2 { animation: bootwave 5s linear infinite reverse; } .boot__w3 { animation: bootwave 3.6s linear infinite; }
  @keyframes bootwave { from { transform: translateX(0); } to { transform: translateX(-120px); } }
  .boot__ship { animation: bootship 3s ease-in-out infinite, bootsail 16s linear infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes bootship { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 4px; rotate: 3deg; } }
  @keyframes bootsail { from { transform: translateX(-60px); } to { transform: translateX(300px); } }
  .boot__tear { animation: boottear 2.4s ease-in-out infinite; } .boot__tear:nth-child(2n) { animation-delay: .6s; } .boot__tear:nth-child(3n) { animation-delay: 1.3s; } .boot__tear:nth-child(5n) { animation-delay: 1.9s; }
  @keyframes boottear { 0%, 100% { opacity: 0; } 40%, 60% { opacity: 1; } }
  .boot__star { animation: boottwinkle 3s ease-in-out infinite; } .boot__star:nth-child(2n) { animation-delay: 1.1s; } .boot__star:nth-child(3n) { animation-delay: 2s; }
  @keyframes boottwinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  .boot__tips { position: relative; height: 22px; width: min(360px, 90vw); text-align: center; font-size: 14.5px; color: #9fd3dc; }
  .boot__tips span { position: absolute; inset: 0; opacity: 0; animation: boottip 9s infinite; }
  .boot__tips span:nth-child(2) { animation-delay: 3s; } .boot__tips span:nth-child(3) { animation-delay: 6s; }
  @keyframes boottip { 0% { opacity: 0; transform: translateY(6px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-6px); } }
  .boot__dots { display: flex; gap: 6px; } .boot__dots i { width: 7px; height: 7px; border-radius: 50%; background: #5fe3d6; animation: bootdot 1.2s ease-in-out infinite; }
  .boot__dots i:nth-child(2) { animation-delay: .15s; } .boot__dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes bootdot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-6px); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .boot__tips span:first-child { opacity: 1; } }
  /* 開場動畫：Logo 從系統畫面的位置彈出、光環擴散、名字浮現、海浪升起，最後整片淡出露出網站 */
  .splash { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
            background: radial-gradient(120% 80% at 50% 30%, #123a4e 0%, #0a1f2c 55%, #06131c 100%); overflow: hidden;
            animation: splashout .5s ease-in 2.1s forwards; }
  @keyframes splashout { to { opacity: 0; visibility: hidden; } }
  .splash__logo { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 10px 40px rgba(0,0,0,.45);
                  animation: splashpop .9s cubic-bezier(.2,1.4,.4,1) both, splashfloat 3s ease-in-out .9s infinite; }
  @keyframes splashpop { 0% { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
  @keyframes splashfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .splash__rings { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
  .splash__rings i { position: absolute; left: -70px; top: -120px; width: 140px; height: 140px; border-radius: 50%; border: 2px solid rgba(95,227,214,.55);
                     animation: splashring 1.8s ease-out .5s infinite; opacity: 0; }
  .splash__rings i:nth-child(2) { animation-delay: .9s; } .splash__rings i:nth-child(3) { animation-delay: 1.3s; }
  @keyframes splashring { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
  .splash__name { margin-top: 14px; font-family: var(--font-serif); font-size: 34px; color: #f3fbfc; letter-spacing: .12em; text-shadow: 0 2px 18px rgba(80,220,230,.4);
                  animation: splashup .7s ease-out .55s both; }
  .splash__sub { font-size: 14px; color: #9fd3dc; letter-spacing: .2em; animation: splashup .7s ease-out .8s both; }
  @keyframes splashup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .splash__sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; animation: splashsea 1s ease-out .3s both; }
  @keyframes splashsea { from { transform: translateY(100%); } to { transform: none; } }
  @media (prefers-reduced-motion: reduce) { .splash { animation: splashout .3s ease-in .6s forwards; } }

  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
