/* NotesMap 網頁版樣式。
 *
 * 色值一律取自 docs/ui-color-tokens.md（兩端配色仲裁表）——動任何顏色前先讀那份，
 * 不要在這裡自己配一支新的橘／新的灰，否則網頁與 App 會慢慢分岔。
 *
 * 全域規範（/Users/neowang/.claude/CLAUDE.md）在這份檔案裡的落點：
 *  - 連結一律無底線
 *  - 點擊不可出現黑色 tap highlight／focus 黑框
 *  - alert 類元件不加 border-left，只用背景色＋圓角
 *  - 按鈕 hover 只加深背景，不改文字顏色
 *  - 選中態＝深灰底＋白字（§11，粉底與「灰底橘字」都被否決過）
 */

:root {
  /* A：品牌色 */
  --brand:        #FF731A;   /* Brand.orange。⚠️ 只能當色塊或圖示，不可當淺底上的小字 */
  --brand-deep:   #F5520F;   /* Brand.orangeDeep */
  --brand-on:     #4A2408;   /* 疊在品牌橘上的前景。⚠️ 不是白色——白字在 #FF731A 上只有 2.72:1 */
  /* 淺底上的橘「字」一律用這支（intro 頁的 --brand-ink 同值）。
     docs/ui-color-tokens.md §10.2 已仲裁：#FF731A 在白底只有 2.36:1，
     16px 粗體仍屬 WCAG 的一般文字（大字門檻是 18.66px+bold）⇒ 不合格。 */
  --brand-ink:    #D9490A;

  /* C：語意色（iOS 淺色模式值） */
  --text:         #000000;
  --text-2:       rgba(60, 60, 67, 0.60);
  --text-3:       rgba(60, 60, 67, 0.30);
  --sep:          rgba(60, 60, 67, 0.29);
  --bg:           #FFFFFF;
  --bg-group:     #F2F2F7;
  --fill:         rgba(118, 118, 128, 0.12);
  --red:          #FF3B30;
  --orange:       #FF9500;
  --blue:         #007AFF;
  --green:        #34C759;
  /* 統計列四格的著色要對齊 Android `PlacesScreen.kt`（IosSystem.Indigo／Pink），
     所以這兩支也要有。值同 iOS 系統色淺色模式。 */
  --indigo:       #5856D6;
  --pink:         #FF2D55;
  --skeleton:     #D1D1D6;

  /* B：便利貼六色（兩端已對齊，不可自行改動） */
  --m-avoid:          #FF3B30;
  --m-warning:        #FF9500;
  --m-reminder:       #AF52DE;
  --m-recommendation: #34C759;
  --m-review:         #A2845E;
  --m-task:           #007AFF;

  /* §11：選中態 */
  --sel-bg:       #3A3A3C;
  --sel-fg:       #FFFFFF;

  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }

/* 🔴 這一行不是樣式整理，是修一個會讓整頁完全不能點的缺陷（2026-08-14 用 Playwright 實測抓到）。
 *
 * `[hidden]` 的預設值只是 UA 樣式表裡的 `display: none`，**任何自訂的 display 都會蓋過它**。
 * 這頁有三個元素中招：`.modal-root { display: grid }`、`.boot`／`.signin { display: flex }`。
 * 症狀最嚴重的是 modal——它是 `position: fixed; inset: 0`，於是一層看不見的全螢幕遮罩
 * 永遠蓋在畫面上，**每一個按鈕、每一列地點都點不到**，而畫面看起來完全正常，
 * console 也一個字都不會印。
 *
 * 用 `!important` 是刻意的：這條規則的用途就是「不管誰設了 display，hidden 一律優先」。 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-group);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
               "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ⚠️ 全域規範：連結一律去底線（含所有狀態） */
a { text-decoration: none !important; color: var(--blue); }

/* ⚠️ 全域規範：點擊不可出現黑色高亮方框／focus 黑點外框 */
a, button, label, input, select, textarea, [role="button"], .clickable {
  -webkit-tap-highlight-color: transparent;
}
a:focus, a:focus-visible,
button:focus, button:focus-visible,
[role="button"]:focus, [role="button"]:focus-visible { outline: none; }
/* 鍵盤使用者仍要看得到焦點——用品牌色外框取代預設黑框，不是整個拿掉。 */
.btn:focus-visible, .input:focus-visible, .place-row:focus-visible,
.place-card:focus-visible, .vt-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 115, 26, .35);
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0; }

/* ════════ 圖示（Google Material Symbols Rounded Filled，見 js/icons.js）════════
 *
 * 2026-08-14：整頁的 emoji 與手繪線條 SVG 全部換成同一套 Material Symbols。
 * 換掉的理由不只是好不好看——emoji 由**作業系統**畫，同一個 🔔 在 macOS／Windows／
 * Android 上是三種完全不同的圖，粗細、顏色、留白都不一樣，永遠對不齊也上不了色。
 *
 * ⚠️ 尺寸一律由 JS 的 `icon(name, { size })` 給（寫成 width/height 屬性），
 *    CSS 這邊只在**需要覆蓋**時才寫 `svg { width: … }`（例如導覽列的 media query）。
 * ────────────────────────────────────────────────────────────── */

/* `flex: none`：圖示放進 flex 容器（膠囊、按鈕、列）時不可以被壓扁，
   文字太長要換行的是文字，不是圖示。 */
.ico { flex: none; }

/* 「圖示 ＋ 文字」的組合。gap 統一在這裡，各處不要自己調。 */
.ico-text { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }

/* 說明句用：文字會折成多行時，圖示要對齊**第一行**，不是整段的垂直中央
   （置中的話，三行的說明會讓圖示浮在中間，看起來像跟第二行有關）。 */
.ico-text.is-lead { align-items: flex-start; }
.ico-text.is-lead > .ico { margin-top: .2em; }

/* ════════ 按鈕 ════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--fill);
  color: var(--text);
  transition: background-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
/* ⚠️ 全域規範：hover 只加深背景，不改文字顏色 */
.btn:hover  { background: rgba(118, 118, 128, .20); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--fill); }

.btn-primary   { background: var(--brand); color: var(--brand-on); }
.btn-primary:hover { background: var(--brand-deep); color: var(--brand-on); }
.btn-secondary { background: #E5E5EA; color: var(--text); }
.btn-secondary:hover { background: #D6D6DB; color: var(--text); }
.btn-ghost     { background: transparent; color: var(--text-2); font-weight: 500; }
.btn-ghost:hover { background: var(--fill); color: var(--text-2); }
.btn-danger    { color: var(--red); }
.btn-danger:hover { color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }

/* ════════ 輸入 ════════ */
.input, .textarea, .select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); outline: none; }
.field { margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }

/* ════════ 提示框（⚠️ 一律不加 border-left，只用底色＋圓角）════════ */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.55;
}
.alert-error { background: #FFF0EF; color: #8A1C15; }
.alert-warn  { background: #FFF7E8; color: #7A4B00; }
.alert-info  { background: #EEF4FF; color: #1B3E7A; }
.alert-ok    { background: #EAF9EE; color: #14532B; }

.notice {
  background: var(--bg-group);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  line-height: 1.6;
}
.notice strong { display: block; color: var(--text); margin-bottom: 2px; }

/* ════════ 開機／登入 ════════ */
.boot, .signin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--text-2);
  padding: 24px;
}
/* 品牌標。圖形來自 `../intro/notesmap-logo.svg`（唯一來源）。
   ⚠️ 不要在這裡加 `background` 或 `border-radius`：圓角與橘色漸層是 SVG 自己畫的，
      外面再套一層底色，logo 邊緣就會露出一圈對不齊的橘。 */
.mark { display: block; flex: none; }
.mark-lg { width: 56px; height: 56px; }
.mark-sm { width: 28px; height: 28px; }

.signin-card {
  width: min(440px, 100%);
  background: var(--bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.signin-card h1 { font-size: 21px; }
.signin-lead { color: var(--text-2); font-size: 14px; }
.signin-sub  { color: var(--text-2); font-size: 12.5px; }
.signin-foot { font-size: 12.5px; color: var(--text-3); }
.signin-foot a { color: var(--text-2); }
.gsi-slot { min-height: 44px; display: grid; place-items: center; }

/* LINE 登入鈕。寬度 280px 是刻意對齊上面 GIS 按鈕的寬度（auth.js 的 renderButton
   指定 width: 280），兩顆不等寬會看起來像沒對齊的兩個東西。
   ⚠️ #06C755 是 LINE 品牌規範色，不可換成品牌橘；白字在這個綠上是 3.1:1，
      所以字級用 15px/700（大字級的門檻是 3:1）。 */
.line-btn {
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;          /* 與 GIS 的 shape: 'pill' 一致 */
  background: #06C755;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
/* hover 只加深背景，不改文字顏色（全域 CSS 規範） */
.line-btn:hover { background: #05B34C; color: #fff; }
.line-btn:focus, .line-btn:focus-visible { outline: none; }
.line-btn:disabled { background: #9BDCB4; cursor: default; }
.line-btn-logo { width: 22px; height: 22px; flex: 0 0 auto; }

/* ════════ 頂欄 ════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  /* ⚠️ 實色背景，不用 rgba + backdrop-filter：safe-area 那截會透出底色變成灰灰一條 */
  background: var(--bg);
  border-bottom: 1px solid var(--sep);
  padding-top: env(safe-area-inset-top);
}
/* 內層與內容同寬（800px），這樣品牌標才會跟底下的卡片對齊 */
.topbar-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.brand-word { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 「Map」用深橘 --brand-ink，不是 --brand：這是 16px 的小字（見 :root 的註解與
   docs/ui-color-tokens.md §10.2）。intro 頁的 `.logo-map` 用的也是同一支。 */
.brand-word b { color: var(--brand-ink); font-weight: 700; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.sync-state { font-size: 12.5px; color: var(--text-2); }
.sync-state.is-error { color: var(--red); }

/* 圖示按鈕（返回、重新整理）*/
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}
.icon-btn svg { width: 22px; height: 22px; display: block; }
.icon-btn:hover { background: var(--fill); color: var(--text-2); }
.icon-btn.is-busy { opacity: .5; pointer-events: none; }

@media (max-width: 420px) {
  /* 窄螢幕把同步時間收起來，只留圖示——不然品牌標會被擠掉 */
  .sync-state { display: none; }
}

/* ════════ 版面：單欄 800px ＋ 底部固定導覽（對齊兩端 App）════════
 *
 * ⚠️ 這是 2026-08-14 依使用者決定改的。原本是桌機雙欄（左清單右詳情）。
 *    我當時建議維持雙欄（PC 的優勢是大螢幕與側邊比對），使用者選擇以**與 App 的一致性**
 *    為優先——那是產品決定，記在這裡是為了讓後人知道「單欄不是沒想過，是刻意選的」。
 * ────────────────────────────────────────────────────────────── */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.view {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 16px;
  /* 底部導覽是懸浮的 fixed 膠囊，內容要自己讓開，否則最後一列永遠被蓋住。
     ⚠️ 讀 `--nav-space` 而不是自己算——換版型時只要改那一個 token（學自 iampaws）。 */
  padding-bottom: var(--nav-space);
}

/* ── 底部懸浮膠囊導覽 ─────────────────────────────────────────
 *
 * 參考 iampaws 的 `handdrawn.css`「浮動膠囊導覽」（.app-nav）：
 * 左右內縮 ＋ 離底一段距離 ＋ 固定高度 ＋ 置中 max-width ＋ 圓角 ＋ 陰影。
 *
 * ⚠️ 兩個從那邊學到、必須一起帶過來的做法：
 *
 *  ① **用一組 token 表達「導覽佔掉多少空間」**（`--nav-space`），內容的 padding-bottom
 *     與任何要疊在導覽上方的元素都讀它。iampaws 的註解寫得很清楚：換皮會改變實際
 *     尺寸與位置，各自去算 `height + safe-area` 的地方就會全部對不齊。
 *
 *  ② **背景不可以用 `backdrop-filter: blur`**（全域規範）。iampaws 用的是
 *     `rgba(...,0.9)` 微透明而非模糊。這裡更保守，直接用實色——膠囊本來就浮在
 *     內容之上、離底邊有距離，透不透出底色沒有差別，實色反而邊緣更利落。
 *
 * ⚠️ 貼底式導覽那條「padding-bottom 用 max(4px, safe-area-bottom - 40px)」的公式
 *    **不適用**於膠囊：膠囊不延伸進 safe-area，而是整個往上讓開，
 *    所以是 `bottom: max(12px, env(safe-area-inset-bottom))`。
 * ────────────────────────────────────────────────────────────── */
:root {
  --nav-h: 62px;                 /* 膠囊本身的高度 */
  --nav-gap: 12px;               /* 離左右與底邊的距離 */
  /* 內容要讓出來的總高度：膠囊 ＋ 離底距離 ＋ 再留一點空隙 */
  --nav-space: calc(var(--nav-h) + max(var(--nav-gap), env(safe-area-inset-bottom)) + 14px);
}

.tabbar {
  position: fixed;
  left: var(--nav-gap);
  right: var(--nav-gap);
  bottom: max(var(--nav-gap), env(safe-area-inset-bottom));
  z-index: 400;
  height: var(--nav-h);
  /* 520 → 800（2026-08-15 使用者要求加寬，先試 680 再拍板 800）。
     800 = `.view` 的 max-width ⇒ 膠囊左右緣與上方內容欄對齊。
     ⚠️ 已知取捨：`.tab` 是 `flex: 1 1 0`，選中態的深灰膠囊會跟著格子一起撐開，
        在這個寬度會變成一條偏長的深色長條。**這是看過 680／800 兩版比較後選的**，
        不是沒注意到。要讓膠囊不隨格子撐開就得改選中態的長相，而那個樣式是
        退過兩版才定案的（見 [[notesmap-ui-no-pink-selection]]），不在這次範圍。 */
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  /* ⚠️ 實色（見上方說明）；靠陰影與細框跟內容分層，不靠模糊 */
  background: var(--bg);
  border: 1px solid var(--sep);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .08);
  padding: 5px 8px;
  gap: 3px;
}

.tab {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: relative;
  border-radius: 999px;
  color: var(--text-2);
  transition: background-color .18s ease, color .18s ease;
}
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 10.5px; font-weight: 600; line-height: 1.2; }
.tab:hover { background: var(--bg-group); }

/* 選中態＝**深灰藥丸 ＋ 白字白圖示**。
   直接沿用 §11 已仲裁過的選中態（粉底與「灰底橘字」都被否決過），
   同時滿足 §10.2「品牌橘不可當淺底小字」——白字壓在深灰上對比 12:1 以上。 */
.tab.is-active {
  background: var(--sel-bg);
  color: var(--sel-fg);
}
.tab.is-active span { color: var(--sel-fg); font-weight: 700; }
.tab.is-active:hover { background: #2C2C2E; }

/* 中央「新增」：橘色圓鈕，與兩端 App 的 5 格導覽一致（Android 0.0.11 把它從 FAB 搬進中央）。
   左右多留一點空隙——橘圓鈕緊貼著選中態的深灰藥丸時會糊成一團。 */
.tab-add { flex: 0 0 auto; padding: 0 10px; }
.tab-add:hover { background: transparent; }
.tab-add span { display: none; }          /* 膠囊高度有限，中央鈕只留圖示 */
.tab-add .tab-add-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-on);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(255, 115, 26, .45);
  transition: background-color .18s ease, transform .18s ease;
}
.tab-add .tab-add-circle svg { width: 23px; height: 23px; }
.tab-add:hover .tab-add-circle { background: var(--brand-deep); transform: scale(1.05); }
.tab-add:active .tab-add-circle { transform: scale(.96); }

/* 動態的未讀紅點 */
.tab-dot {
  position: absolute;
  top: 6px;
  left: calc(50% + 7px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--bg);
}
.tab.is-active .tab-dot { border-color: var(--sel-bg); }

@media (max-width: 380px) {
  /* 很窄的手機：標籤文字讓位，只留圖示，免得五格擠成一團 */
  .tab span { display: none; }
  .tab svg { width: 23px; height: 23px; }
}

/* ── 快速選單的膠囊（對齊 iOS ExploreSearchView 的 quickPickBar）── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0;
  background: var(--bg-group);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.chip:hover { background: #E5E5EA; }
/* 選中態沿用 §11 的深灰＋白字，與底部導覽、清單一致 */
.chip.is-active { background: var(--sel-bg); color: var(--sel-fg); font-weight: 600; }

/* 便利貼型別選鈕（取代原本的 <select>：option 塞不進 SVG，只能用彩色 emoji，
   跟整頁扁平單色的 Material Symbols 對不起來）。圖示與文字要垂直置中對齊。 */
.type-chip { display: inline-flex; align-items: center; gap: 6px; }
.type-chips { margin-top: 2px; }

/* 距離膠囊（「找附近」才會出現） */
.pr-chip.is-near { background: #EAF9EE; color: #14532B; font-weight: 600; }

/* ── 卡片與區塊 ───────────────────────────────────────────── */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.card-pad { padding: 14px 16px; }

/* ── 統計列（地點／提醒／共享／關注，對齊 iOS PlaceListView 的 StatCard）── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px 6px;
  text-align: center;
  border: 0;
  font: inherit;
  cursor: default;
}
.stat-card.is-tappable { cursor: pointer; }
.stat-card.is-tappable:hover { background: var(--bg-group); }

/* 🔴 選中態原本整組漏掉：`places.js` 會加 `is-active`，但這裡沒有任何對應規則
 *    ⇒ 點下去只看得到 hover 的淺灰，滑鼠一移開就完全看不出「現在正在篩選」，
 *    而清單卻真的被篩過了（畫面上唯一的線索只剩「符合條件的有 N 個」那行小字）。
 *    這頁其他三個選中態（底部導覽、快速選單膠囊、搜尋建議）都已經照 §11 做了，
 *    只有統計卡沒跟上 ⇒ 沿用同一套深灰底＋白字。
 *
 * ⚠️ 圖示的 tint 是 inline style（`icon(name, { color })`），一般規則蓋不過去，
 *    所以這裡要 `!important`。選中時一定要改成白色：四支 tint 裡最亮的 --blue
 *    壓在 #3A3A3C 上只有 2.3:1，維持原色等於看不見。 */
.stat-card.is-active { background: var(--sel-bg); }
.stat-card.is-active b { color: var(--sel-fg); }
.stat-card.is-active span { color: rgba(255, 255, 255, .85); }
.stat-card.is-active .ico { color: var(--sel-fg) !important; }
.stat-card.is-tappable.is-active:hover { background: #2C2C2E; }
.stat-card b { display: block; font-size: 20px; line-height: 1.25; }
.stat-card span { font-size: 11.5px; color: var(--text-2); }
/* 卡片是置中排版，裡面的「圖示＋標籤」也要置中——inline-flex 預設靠左，
   不設這行的話四張卡的標籤會全部貼在左邊，跟上面置中的數字對不齊。 */
.stat-card .stat-label { display: flex; justify-content: center; gap: 4px; }

/* ── 工具列（搜尋、動作）───────────────────────────────────── */
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .input { flex: 1 1 200px; }
/* 探索頁的「縣市／類別」兩個下拉要並排（2026-08-15 使用者要求）。
   ⚠️ 原因不是沒設樣式，是 `.select` 的基礎規則寫死 `width: 100%`——在 `flex-wrap`
      的 toolbar 裡，那等於每個下拉都自己撐滿一整行，於是兩個上下疊。
   ⚠️ `min-width: 0` 不可省：flex 項目預設 `min-width: auto`，會被最長的
      `<option>`（像「臺北市（12,345）」）撐住而縮不下去，窄螢幕就又擠成兩行。
   ⚠️ 刻意只作用在 `.toolbar` 內：編輯頁（editor.js）與共享邀請（share.js）的下拉
      仍然要滿寬，那些不在 toolbar 裡，不會被這條掃到。

   🔴 basis 用 `calc(50% - 4px)` 而不是固定 px：先試 `160px`，桌機／平板都對，
      **手機 390px 卻差 2px 就換行**（卡片內可用寬 326px，而 160+160+8 = 328）。
      固定值永遠有某個螢幕寬度剛好卡在邊界上，而症狀就是「並排失效」但看不出原因。
      `50% - 4px`（4px＝gap 8px 的一半）在任何寬度都剛好兩個一行。 */
.toolbar .select { flex: 1 1 calc(50% - 4px); width: auto; min-width: 0; }
.list-count { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }

/* ── 清單 ─────────────────────────────────────────────────── */
.place-list { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--sep);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.place-row:last-child { border-bottom: 0; }
.place-row:hover { background: var(--bg-group); }
.place-row:active { background: #E9E9EE; }
.pr-body { min-width: 0; flex: 1; }
.pr-name { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-sub  { font-size: 12.5px; color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-meta { display: flex; gap: 5px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.pr-chip {
  /* 裝得下圖示：純文字時 inline 就夠，塞了 svg 之後不用 flex 會對不齊基線 */
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
  white-space: nowrap;
}
.pr-chip.is-nocoord { background: #FFF7E8; color: #7A4B00; }
.pr-chip.is-readonly { background: #EEF4FF; color: #1B3E7A; }
.pr-dots { display: flex; gap: 2px; margin-top: 4px; }
.pr-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pr-arrow { color: var(--text-3); flex: none; }
.pr-arrow svg { width: 18px; height: 18px; display: block; }

/* ── 探索結果：列表／卡片切換（js/explore.js 的 viewToggle）──────
 *
 * 只有探索頁有這個切換。「地點」分頁刻意沒有：那裡的每一列還有置頂、勾選、⋮ 選單、
 * 便利貼預覽這些互動，換成網格要重排一整套按鈕，不是同一件事。
 * ────────────────────────────────────────────────────────────── */
.result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* 筆數那行在 flex 裡就不需要自己的下邊距了，否則切換鈕會被推得比它高 */
.result-head .list-count { margin-bottom: 0; flex: 1; min-width: 0; }

.view-toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg-group);
  border-radius: 999px;
  flex: none;
}
.vt-btn {
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .15s ease;
}
.vt-btn svg { width: 18px; height: 18px; display: block; }
/* ⚠️ 全域規範：hover 只加深背景，不改文字顏色 */
.vt-btn:hover { background: #E5E5EA; }
/* §11 選中態＝深灰底＋白字。粉底與「灰底橘字」都被否決過，不要再換回去。 */
.vt-btn.is-active { background: var(--sel-bg); color: var(--sel-fg); }
.vt-btn.is-active:hover { background: #2C2C2E; }

/* 卡片網格。
 * 🔴 用 `auto-fill + minmax(220px, 1fr)` 而不是固定欄數：內容欄寬 768px（`.view` 800 − 左右 16），
 *    768 = 3×220 + 2×10 有找 ⇒ 桌機 3 欄；約 500px 寬時剩 2 欄；手機（390px）1 欄。
 *    寫死 `repeat(3, 1fr)` 的話手機上每張卡只剩 116px，店名一個字都放不下。
 *    這與 `.toolbar .select` 那條註解是同一個教訓：固定 px 永遠有某個螢幕寬度卡在邊界上。 */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
/* 頁碼分隔線要橫跨整列，否則它會佔掉一格、看起來像一張空卡片 */
.place-grid > .page-sep { grid-column: 1 / -1; }

.place-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s ease;
}
.place-card:hover { background: var(--bg-group); }
.place-card:active { background: #E9E9EE; }
/* 載入中的骨架卡：長得一樣但不是按鈕 ⇒ 不給手指游標、不給 hover 回饋 */
.place-card.is-skel { cursor: default; }
.place-card.is-skel:hover { background: var(--bg); }
/* ⚠️ 焦點框要**疊在**卡片陰影上，不是取代它：上面那條共用的 focus-visible 只寫了外框，
   `box-shadow` 是整支被覆蓋的屬性 ⇒ 用鍵盤 Tab 過去時卡片會突然變扁。 */
.place-card:focus-visible { box-shadow: 0 0 0 3px rgba(255, 115, 26, .35), var(--shadow); }

.pc-cat { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* 分類色只上在這條小色塊上——分類色（#FF9500、#00C7BE…）當白底小字全部不到 3:1 */
.pc-bar { width: 3px; height: 12px; border-radius: 2px; flex: none; }
.pc-cat-text {
  font-size: 11.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 名稱與地址各折兩行後截斷：卡片的意義就在於長店名不必被切成「苗栗舊山線鐵道自行…」 */
.pc-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-sub {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 膠囊推到卡片底部：同一列的卡片高度一致（grid 預設 stretch），
   沒有它的話評分／距離會浮在各自內容下方，一排看過去高低不一。 */
.place-card .pr-meta { margin-top: auto; padding-top: 6px; }
/* 🔴 膠囊本身是 `white-space: nowrap`，而「★ 4.4 · 1343 則評論」比窄卡片還寬
   ⇒ 不設上限的話它會整條**溢出到卡片外面**（320px 手機兩欄時實測會超出約 6px）。
   截字比截版面好：看得出還有內容，也不會破壞網格。 */
.place-card .pr-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* 手機：兩欄小卡（使用者 2026-08-16 決定）。
 * 一欄時卡片只是「比較胖的清單列」——同樣的資訊佔掉快兩倍的垂直空間。
 * 兩欄要換到的成本是**地址藏起來只留行政區**（170px 寬放不下整串地址），
 * 想看完整地址就切回列表檢視或點進去。 */
@media (max-width: 480px) {
  /* 明確寫死 2 欄，不靠 auto-fill：minmax 的下限一旦大於可用寬度就會塌回 1 欄，
     而 320px 的小手機正好卡在那個邊界上（同 `.toolbar .select` 那條的教訓）。 */
  .place-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .place-card { padding: 10px 11px; gap: 2px; }
  .pc-name { font-size: 14.5px; }
  .pc-sub { font-size: 12px; }
  .pc-addr { display: none; }
}

/* ── 詳情（推疊成一個畫面，不是側欄）───────────────────────── */
.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
/* 原本是 34px 的 emoji（吃 font-size）；現在裝的是 SVG，改用顏色控制輕重。
   `--text-3` 已經是 30% 不透明的灰，不必再疊 opacity。 */
.empty-mark { color: var(--text-3); line-height: 0; }

.detail-head { padding: 16px; border-bottom: 1px solid var(--sep); }
.detail-head h2 { font-size: 19px; }
.detail-sub { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.detail-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.detail-body { padding: 16px; }

.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-2);
  margin: 0 0 8px;
}

.memo-list { display: flex; flex-direction: column; gap: 8px; }
.memo {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-group);
}
/* 型別圖示：顏色由 JS 依型別給（六色與兩端一致），這裡只管對齊。
   `line-height: 0` ＋ 一點 padding：讓圖示對齊便利貼內文的第一行。 */
.memo-icon { line-height: 0; padding-top: 3px; flex: none; }
.memo-body { flex: 1; min-width: 0; }
.memo-text { white-space: pre-wrap; word-break: break-word; }
.memo-text.is-done { text-decoration: line-through; color: var(--text-2); }
.memo-meta { font-size: 12px; color: var(--text-2); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* 項目之間的「·」由 CSS 自動長。
   ⚠️ 不要回頭改成 JS 那邊 `join(' · ')`——meta 的項目是條件式的（有沒有照片、
      有沒有時間提醒），字串拼接一遇到「最後一項不存在」就會留下結尾多一個「·」。 */
.memo-meta > * + *::before { content: '·'; margin-right: 6px; color: var(--text-3); }
.memo-del { align-self: flex-start; }

.coord-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coord-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text-2); }

/* ── 動態 ─────────────────────────────────────────────────── */
.feed-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sep);
  align-items: flex-start;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row.is-unread { background: #FFF6F0; }
.feed-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex: none;
  white-space: nowrap;
}
.feed-body { flex: 1; min-width: 0; }
.feed-text { line-height: 1.55; }
.feed-time { font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* ── 成員 ─────────────────────────────────────────────────── */
.member-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sep); }
.member-row:last-child { border-bottom: 0; }
.avatar {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}
.role-chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--text-2); }

/* ── 設定列（「我的」用）──────────────────────────────────── */
.rows { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 13px 15px;
  border: 0; border-bottom: 1px solid var(--sep);
  background: transparent; font: inherit; text-align: left;
  color: var(--text);
}
.row:last-child { border-bottom: 0; }
button.row, a.row { cursor: pointer; }
button.row:hover, a.row:hover { background: var(--bg-group); }
.row-title { flex: 1; min-width: 0; }
.row-value { color: var(--text-2); font-size: 13.5px; }
/* 設定列右側「可以點進去」的箭頭（取代原本的文字符號「›」） */
.row-chevron { color: var(--text-3); line-height: 0; flex: none; }
.group-title { font-size: 12px; font-weight: 700; color: var(--text-2); margin: 18px 4px 6px; letter-spacing: .04em; }
.group-foot { font-size: 12.5px; color: var(--text-2); margin: 7px 4px 0; line-height: 1.6; }

/* ── 底部彈出面板（「＋」）───────────────────────────────── */
.sheet-root { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.sheet {
  position: relative;
  width: min(800px, 100%);
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.22);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  animation: sheet-up .2s ease;
}
@keyframes sheet-up { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-grip { width: 38px; height: 4px; border-radius: 999px; background: var(--text-3); margin: 10px auto 4px; }
.sheet-body { padding: 6px 14px 4px; }
.sheet-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 12px;
  border: 0; background: transparent; font: inherit; text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text);
}
.sheet-item:hover { background: var(--bg-group); }
.sheet-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--fill); display: grid; place-items: center; color: var(--text-2); }
.sheet-item small { display: block; color: var(--text-2); font-size: 12.5px; font-weight: 400; margin-top: 1px; }
.sheet-item b { font-weight: 600; }

/* ════════ Modal ════════ */
.modal-root { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.modal {
  position: relative;
  width: min(600px, 100%);
  max-height: min(86vh, 860px);
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.is-wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--sep); }
.modal-head h2 { font-size: 16px; flex: 1; }
.modal-x { border: 0; background: transparent; cursor: pointer; color: var(--text-2); padding: 5px; border-radius: 6px; display: grid; place-items: center; }
.modal-x:hover { background: var(--fill); color: var(--text-2); }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ════════ Toast（⚠️ 全域規範：會改資料的操作一律要有回饋）════════ */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #2C2C2E;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  animation: toast-in .18s ease;
  max-width: min(520px, 90vw);
  text-align: center;
}
.toast.is-error { background: #8A1C15; }
.toast.is-ok    { background: #14532B; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ════════ 無限捲頁的哨兵（見 js/infinite.js）════════
 *
 * ⚠️ 高度不能太小：它要進得了視野才會觸發，而且 `rootMargin: 600px` 是在它進畫面
 *    **之前**就先載，所以使用者正常情況下看到的是已經長出來的內容，不是這一行。
 * ⚠️ 這一行也要撐開版面：清單最後一列緊貼著底部懸浮導覽時，哨兵剛好把空間讓出來。 */
.inf {
  padding: 14px 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-2);
}
.inf-body { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.inf-end { color: var(--text-3); }
.inf-error { color: var(--red); }

/* 每一批之間的頁碼標記（無限捲頁把「我在哪裡」拿掉了，這一行補回方位感）。
 *
 * ⚠️ 2026-08-15 使用者看過實機畫面後要求**拿掉兩側那兩條橫線**，只留置中的小字。
 *    原因看得出來：清單每一列本來就有 `border-bottom`，再加兩條橫線等於同一個區域
 *    有三種線在打架。**不要再把 `::before/::after` 的線加回來。**
 *
 * 保留 `border-bottom` 是刻意的——那是清單列本來的節奏，不是這個元件的裝飾。
 * ⚠️ 底色用實色 var(--bg)：它夾在清單列之間，透明會讓上一列的分隔線穿過文字。 */
.page-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--sep);
}
.page-sep-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.inf-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--text-3);
  border-top-color: transparent;
  border-radius: 50%;
  animation: inf-spin .7s linear infinite;
}
@keyframes inf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .inf-spinner { animation: none; } }

/* ════════ 下載 App 的 CTA（見 js/appcta.js 檔頭）════════
 *
 * 商店徽章沿用 intro 頁 `.store-badge` 的長相（深底、白字、小標＋大標），
 * 使用者從介紹頁走過來會認得是同一顆按鈕。
 * ⚠️ 深底不用品牌橘：白字壓在 #FF731A 上只有 2.72:1（見 :root 的 --brand-on 註解）。
 * ────────────────────────────────────────────────────────────── */
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2C2C2E;                 /* 與 toast 同一支深灰 */
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  min-width: 146px;
  transition: background-color .15s ease;
}
/* ⚠️ 全域規範：hover 只加深／變化背景，不改文字顏色 */
.store-badge:hover { background: #48484A; color: #fff; }
.store-badge:active { transform: translateY(1px); }
.store-badge small  { display: block; font-size: 10px; color: #fff; opacity: .72; line-height: 1.4; }
.store-badge strong { display: block; font-size: 14px; color: #fff; line-height: 1.3; }
.store-icon { width: 22px; height: 22px; flex: none; object-fit: contain; display: block; }

/* 卡片版（匯入完成、「我的」分頁、建立地點後的對話框） */
.appcta {
  background: #FFF6F0;                 /* 與 .drop:hover 同一支淺橘 */
  border-radius: var(--radius);
  padding: 14px 16px;
}
.appcta-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.appcta-head b { font-weight: 700; }
/* ⚠️ 品牌橘不可以當淺底上的小字（2.36:1）——說明文字一律用一般文字色 */
.appcta-text { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 12px; }

/* 橫幅版（主畫面頂部常駐，可關閉）。
   掛在頂欄與 `.view` 之間，不是 `position: fixed`——固定住會蓋掉內容，而它不是
   非看不可的東西。跟著頁面捲走就好。 */
.appcta-bar { background: #FFF6F0; border-bottom: 1px solid #F6DFCF; }
.appcta-bar-inner {
  max-width: 800px;                    /* 與 .topbar-inner／.view 同寬才對得齊 */
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.appcta-bar-text { flex: 1; min-width: 0; }
.appcta-bar-text b { display: block; font-size: 13.5px; }
.appcta-bar-text span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.appcta-bar .store-row { flex: none; }
/* 橫幅裡的徽章比卡片小一號：這是常駐元件，不該比內容還搶眼 */
.appcta-bar .store-badge { padding: 6px 12px; min-width: 0; }
.appcta-bar .store-badge small { display: none; }
.appcta-bar .store-badge strong { font-size: 13px; }
.appcta-bar .store-icon { width: 18px; height: 18px; }
.appcta-x { flex: none; align-self: flex-start; }

@media (max-width: 720px) {
  /* 窄螢幕：文字與按鈕改成上下兩段，否則兩顆徽章會把文字擠成一條 */
  .appcta-bar-inner { flex-wrap: wrap; }
  .appcta-bar-text { flex: 1 1 100%; order: 1; }
  .appcta-bar > .appcta-bar-inner > .ico { order: 0; }
  .appcta-bar .store-row { order: 2; flex: 1 1 100%; }
  .appcta-x { order: 0; margin-left: auto; }
}

/* ════════ 地點搜尋建議（探索池）════════ */
.suggest { border: 1px solid var(--sep); border-radius: var(--radius-sm); max-height: 260px; overflow-y: auto; }
.suggest-row {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--sep);
  background: transparent;
  padding: 9px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--text);
}
.suggest-row:last-child { border-bottom: 0; }
.suggest-row:hover { background: var(--bg-group); }
.suggest-row.is-active { background: var(--sel-bg); color: var(--sel-fg); }
.suggest-row.is-active small { color: rgba(255,255,255,.75); }
.suggest-row small { display: block; color: var(--text-2); font-size: 12px; }

/* ════════ 地圖 ════════ */
.map { height: 320px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--sep); }
.map-pin {
  width: 20px; height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.leaflet-container { font: inherit; }

/* ════════ 匯入流程 ════════ */
.drop {
  border: 2px dashed var(--text-3);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  color: var(--text-2);
  background: var(--bg-group);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.drop:hover, .drop.is-over { border-color: var(--brand); background: #FFF6F0; }
.drop-mark { color: var(--text-3); line-height: 0; margin-bottom: 6px; }
.drop:hover .drop-mark, .drop.is-over .drop-mark { color: var(--brand); }

.steps { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.step {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
}
.step.is-now { background: var(--sel-bg); color: var(--sel-fg); font-weight: 600; }
.step.is-done { background: #EAF9EE; color: #14532B; }

.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat {
  flex: 1 1 110px;
  background: var(--bg-group);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.stat b { display: block; font-size: 21px; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--text-2); }

.preview-list { max-height: 340px; overflow-y: auto; border: 1px solid var(--sep); border-radius: var(--radius-sm); }
.preview-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-bottom: 1px solid var(--sep); }
.preview-row:last-child { border-bottom: 0; }
.preview-row.is-skip { opacity: .5; }
.preview-name { font-weight: 600; }
.preview-sub { font-size: 12px; color: var(--text-2); }

.check-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13.5px; cursor: pointer; }
.check-row input { margin-top: 3px; flex-shrink: 0; }

.progress { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); transition: width .2s ease; }

/* 骨架載入 */
.skel { background: var(--skeleton); border-radius: 6px; animation: skel 1.3s ease-in-out infinite; }
@keyframes skel { 0%,100% { opacity: .55; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ════════ 窄螢幕 ════════ */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .place-list { max-height: none; }
  .who { display: none; }
  .col-detail:empty { display: none; }
}
