/* 生活圈詳情的推薦與心得（plan 2026-10-29-one-map Task 3）：舊地圖側欄 #cellsheet-body 與 /me 側欄 #sv-detail 共用一份。
   原本放在 style.css，/me 不載 style.css；搬出來後兩個殼都載這一份（index.html 排在 style.css 後面，疊加順序不變）。 */
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-toggle .cp-rec-tl { overflow-wrap: anywhere; }
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-toggle[aria-expanded="true"] { border-color: var(--ink); background: var(--bg); }
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-toggle.is-mine { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
:is(#cellsheet-body, #sv-detail) .cp-rec [data-rec-thumb] path, :is(#cellsheet-body, #sv-detail) .side-acts [data-rec-thumb] path { fill: transparent; transition: fill 140ms ease; }
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-toggle.is-mine [data-rec-thumb] path { fill: currentColor; }
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-toggle .cp-rec-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(#cellsheet-body, #sv-detail) .cp-rec[hidden], :is(#cellsheet-body, #sv-detail) .cp-rec-toggle[hidden], :is(#cellsheet-body, #sv-detail) .cp-rec [hidden] { display: none; }
:is(#cellsheet-body, #sv-detail) .cp-rec-noscript { margin: 12px 22px 0; font-size: 13px; color: var(--muted); }
/* 面板 V2.1（使用者 2026-10-01：版面太亂）：精簡卡片——標題／一列「動作＋票數」／狀態行／揭露＋了解更多；說明另開一頁。開 160ms、關 100ms */
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 4; width: min(360px, 100%);
  max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain; padding: 16px 16px 12px; text-align: left;
  border: 1px solid var(--hair); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 16px 40px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
  opacity: 0; transform: translateY(-6px); transform-origin: top left; pointer-events: none;
  transition: opacity 160ms cubic-bezier(.2, .8, .2, 1), transform 160ms cubic-bezier(.2, .8, .2, 1); }
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
:is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-pop.is-closing { opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 100ms ease-in, transform 100ms ease-in; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-close { flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-close:hover { background: var(--bg); color: var(--ink); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-h { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-h:focus, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about-h:focus { outline: none; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sub { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* 動作列：一整列可點的卡片——圓底大拇指＋「推薦居住」＋右側票數 */
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 14px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--hair); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease-out, box-shadow 140ms ease; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta:hover:not([aria-disabled="true"]):not([disabled]) { border-color: var(--brand); box-shadow: 0 2px 10px rgba(31, 74, 128, .12); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta:active:not([aria-disabled="true"]):not([disabled]) { transform: scale(.98); transition-duration: 80ms; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta[disabled] { opacity: .55; cursor: default; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-busy { cursor: progress; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-busy .cp-rec-cta-l { color: var(--muted); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-done { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); cursor: default; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta:focus-visible, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-link:focus-visible, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-back:focus-visible,
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-burst { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand); transition: background-color 140ms ease, color 140ms ease; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-done .cp-rec-burst { background: var(--brand); color: var(--card); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-done [data-rec-thumb] path { fill: currentColor; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-ico [data-rec-thumb] { transform-box: fill-box; transform-origin: 30% 80%; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta-l { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-count { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-done .cp-rec-count { color: var(--brand); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks { position: absolute; inset: 0; pointer-events: none; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--brand); opacity: 0; }
/* 狀態行（固定保留一行高：推薦前後卡片不跳）＋揭露行 */
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-row-status { min-height: 28px; margin-top: 4px; }   /* ≥ 取消推薦連結的高度：推薦前後卡片不跳 */
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-row-meta { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--hair); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-status { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-disc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-link, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-back { position: relative; flex: none; padding: 4px 0; border: 0; background: none; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; white-space: nowrap; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-link::after, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-back::after { content: ""; position: absolute; inset: -10px -6px; }   /* 觸控區 ≥44px，不撐版面 */
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-link:hover, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-back:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-undo { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-undo[aria-disabled="true"] { opacity: .5; cursor: default; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-ts:empty { display: none; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-ts { margin-top: 10px; max-width: 100%; overflow: hidden; }
/* 「關於匿名推薦」另一頁 */
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about .cp-rec-top { align-items: center; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-back { padding: 10px 0; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about-h { flex: 1 1 auto; margin: 0; font-size: 15px; font-weight: 700; text-align: center; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about-body { margin-top: 4px; font-size: 13px; line-height: 1.6; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about-lead { margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--ink); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about-body h4 { margin: 12px 0 2px; font-size: 13px; font-weight: 700; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about-body p { margin: 0; color: var(--muted); }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-about-body a { color: var(--brand); }

/* 成功微動畫（V2 §6，2026-10-01 改大拇指）：手掌填色＋輕彈 420ms、6 光點 360ms（延遲 40ms），單次；票數淡入上移 160ms */
@keyframes cp-rec-thumb-pop { 0% { transform: scale(.85) rotate(0deg); } 40% { transform: scale(1.22) rotate(-12deg); } 70% { transform: scale(.96) rotate(2deg); } 100% { transform: scale(1) rotate(0deg); } }
@keyframes cp-rec-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-12px); } 40% { opacity: .8; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-24px); } }
@keyframes cp-rec-count-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-celebrating [data-rec-thumb] { animation: cp-rec-thumb-pop 420ms cubic-bezier(.3, .7, .3, 1) 1; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-celebrating .cp-rec-sparks i { animation: cp-rec-spark 360ms ease-out 40ms 1 both; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks i:nth-child(1) { --a: 0deg; } :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks i:nth-child(2) { --a: 60deg; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks i:nth-child(3) { --a: 120deg; } :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks i:nth-child(4) { --a: 180deg; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks i:nth-child(5) { --a: 240deg; } :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks i:nth-child(6) { --a: 300deg; }
:is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-celebrating .cp-rec-count, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-count.is-bumped { animation: cp-rec-count-in 160ms ease-out 1; }
@media (prefers-reduced-motion: reduce) {
  :is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-pop, :is(#cellsheet-body, #sv-detail) .side-acts .cp-rec-pop.is-closing, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta, :is(#cellsheet-body, #sv-detail) .cp-rec [data-rec-thumb] path,
  :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-burst { transition: none; transform: none; }
  :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-celebrating [data-rec-thumb], :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-celebrating .cp-rec-sparks i,
  :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta.is-celebrating .cp-rec-count, :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-count.is-bumped { animation: none; }
  :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-sparks { display: none; }
  :is(#cellsheet-body, #sv-detail) .cp-rec .cp-rec-cta:active:not([aria-disabled="true"]):not([disabled]) { transform: none; }
}
:is(#cellsheet-body, #sv-detail) .cp-meta .cp-meta-cmt a, :is(#cellsheet-body, #sv-detail) .cp-meta .cp-meta-cmt button { font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }

/* 生活圈心得（spec 2026-10-18-community-comments §6）。顏色只用 style.css 變數（--ink 在此是字色、--brand 才是主色），[data-theme="dark"] 自動跟著換。
   注意：不放 cityguide.css——該檔測試規定不得出現 .cp-*。 */
.cp-cmt { margin-top: 28px; font-family: var(--sans); container: cpcmt / inline-size; }   /* 預覽兩欄看區塊自己的寬（下面 @container cpcmt） */
:is(.cp-cmt, .cmt-sub) .cmt-list { list-style: none; margin: 12px 0 0; padding: 0; }
:is(.cp-cmt, .cmt-sub) .cmt-item { padding: 12px 0; border-top: 1px solid var(--hair); }
:is(.cp-cmt, .cmt-sub) .cmt-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
:is(.cp-cmt, .cmt-sub) .cmt-nick { font-size: 15px; font-weight: 700; color: var(--ink); }
:is(.cp-cmt, .cmt-sub) .cmt-time { font-size: 13px; font-weight: 400; color: var(--muted); }
:is(.cp-cmt, .cmt-sub) .cmt-lang { font-size: 12px; border: 1px solid var(--hair); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
:is(.cp-cmt, .cmt-sub) .cmt-text { margin: 6px 0; font-size: 15px; line-height: 1.6; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
:is(.cp-cmt, .cmt-sub) .cmt-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
:is(.cp-cmt, .cmt-sub) .cmt-confirm { font-size: 13px; color: var(--ink); }
:is(.cp-cmt, .cmt-sub) .cmt-act { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
:is(.cp-cmt, .cmt-sub) .cmt-form { display: grid; gap: 10px; margin-top: 8px; }
:is(.cp-cmt, .cmt-sub) .cmt-field { display: grid; gap: 4px; color: var(--ink); }
:is(.cp-cmt, .cmt-sub) .cmt-field input, :is(.cp-cmt, .cmt-sub) .cmt-field textarea { font-size: 16px; width: 100%; box-sizing: border-box; color: var(--ink); background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 8px 10px; font-family: inherit; }
:is(.cp-cmt, .cmt-sub) .cmt-rules, :is(.cp-cmt, .cmt-sub) .cmt-field small, :is(.cp-cmt, .cmt-sub) .cmt-status, :is(.cp-cmt, .cmt-sub) .cmt-empty, :is(.cp-cmt, .cmt-sub) .cmt-msg, .cmt-sub .cmt-notice { font-size: 13px; color: var(--muted); }
.cmt-sub .cmt-banned { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 4px 0; padding: 14px 16px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 12px; background: var(--card, transparent); }
:is(.cp-cmt, .cmt-sub) .cmt-form-acts { display: flex; gap: 8px; justify-content: flex-end; }
:is(.cp-cmt, .cmt-sub) .cmt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--hair); border-radius: 22px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
:is(.cp-cmt, .cmt-sub) .cmt-primary { border-color: var(--brand); background: var(--brand); color: var(--card); }
:is(.cp-cmt, .cmt-sub) .cmt-danger { border-color: #b3261e; background: #b3261e; color: #fff; }
:is(.cp-cmt, .cmt-sub) .cmt-btn:disabled { opacity: .55; cursor: not-allowed; }
:is(.cp-cmt, .cmt-sub) .cmt-btn:focus-visible, :is(.cp-cmt, .cmt-sub) .cmt-act:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* 心得預覽卡片、手機全螢幕頁、桌機置中 modal（spec 2026-10-18-community-page-airbnb-layout §4–§5；2026-10-18 使用者修訂：桌機改 modal、字級照 Airbnb 評論卡）。
   字級只在上面 :is(.cp-cmt, .cmt-sub) 那段定（暱稱 15/700、時間 13/400、本文 15/1.6）；這裡只排版，不再改字級（測試擋）。 */
.cp-cmt .cmt-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.cp-cmt .cmt-cards.cmt-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cp-cmt .cmt-rail .cmt-card { flex: 0 0 80%; scroll-snap-align: start; }
/* 桌機（2026-10-19 使用者修訂）：跟附近生活圈一樣一排、‹ › click 翻（箭頭樣式同 .cp-near-arrow）；一頁約 2.4 張，露出下一張讓人知道還有 */
.cp-cmt .cmt-strip-wrap { position: relative; margin-top: 12px; }
.cp-cmt .cmt-cards.cmt-strip { display: flex; gap: 12px; margin-top: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; overscroll-behavior-x: contain; scrollbar-width: none; }
.cp-cmt .cmt-cards.cmt-strip::-webkit-scrollbar { display: none; }
.cp-cmt .cmt-strip .cmt-card { flex: 0 0 calc((100% - 24px) / 2.4); scroll-snap-align: start; }
.cp-cmt .cmt-arrow { position: absolute; top: calc(50% - 4px); transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair); background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.14); font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cp-cmt .cmt-arrow:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.cp-cmt .cmt-arrow.prev { left: -20px; } .cp-cmt .cmt-arrow.next { right: -20px; }
.cp-cmt .cmt-arrow[hidden] { display: none; }
@media (hover: none), (pointer: coarse) { .cp-cmt .cmt-arrow { display: none !important; } }
.cmt-card { border: 1px solid var(--hair); border-radius: 14px; padding: 16px; background: var(--card); box-sizing: border-box; min-width: 0; }
.cmt-card .cmt-who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cmt-av { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--hair); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }   /* 預覽卡片與完整清單共用 */
.cmt-card .cmt-nick, .cmt-card .cmt-time { display: block; }
.cmt-card .cmt-clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.cmt-read { display: inline-flex; align-items: baseline; gap: 4px; margin-top: 8px; background: none; border: 0; padding: 0; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: underline; text-underline-offset: 2px; color: var(--ink); cursor: pointer; }
.cmt-read[hidden] { display: none; }   /* 上面 display:inline-flex 會蓋過瀏覽器內建的 [hidden]（2026-10-18 截圖踩到）*/
.cmt-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; color: var(--ink); cursor: pointer; }
.cmt-link:disabled { opacity: .55; cursor: default; }
.cp-meta-cmt a { color: inherit; text-decoration: underline; }
.cp-cmt .cmt-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cmt-sub { background: var(--card); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; font-family: var(--sans); }
.cmt-sub.is-mobile { position: fixed; inset: 0; z-index: 1450; animation: cmtSubIn .22s ease-out; }   /* 同 #report-sheet：高過手機抽屜（1300）與導覽列（1400）；登入是 <dialog>，在 top layer 不受影響 */
.cmt-backdrop { position: fixed; inset: 0; z-index: 1600; background: rgba(0, 0, 0, .45); animation: cmtFade .2s ease-out; }   /* 深淺色都用同一層黑紗 */
.cmt-sub.is-modal { position: fixed; inset: 0; margin: auto; z-index: 1601; width: min(720px, 92vw); height: fit-content; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: cmtModalIn .2s ease-out; }   /* 自己不捲（捲軸不會切掉右側圓角），只捲下面的 .cmt-sub-body */
.cmt-sub-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; background: var(--card); border-bottom: 1px solid var(--hair); }
.cmt-sub.is-modal .cmt-sub-top { position: static; flex: 0 0 auto; padding: 10px 10px 10px 24px; }
.cmt-sub.is-modal .cmt-back { margin-left: -14px; }
.cmt-sub-top h2 { font-size: 17px; font-weight: 800; margin: 0; color: var(--ink); flex: 1 1 auto; min-width: 0; }
/* 開啟時程式把焦點放到標題（給螢幕閱讀器）；滑鼠開的不畫焦點框，鍵盤才畫 */
.cmt-sub h2:focus:not(:focus-visible) { outline: none; }
.cmt-sub h2:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.cmt-back, .cmt-close { width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: none; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 22px; }
.cmt-back { font-size: 28px; }
.cmt-close { font-size: 18px; }
.cmt-close:hover, .cmt-back:hover { background: var(--hair); }
.cmt-back:focus-visible, .cmt-close:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.cmt-sub-body { padding: 12px 20px 32px; }
.cmt-sub.is-modal .cmt-sub-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px 28px; }
.cmt-sub.is-mobile .cmt-sub-body { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.cmt-sub .cmt-write { margin-bottom: 4px; }
@keyframes cmtSubIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes cmtFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmtModalIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }   /* 置中靠 inset＋margin:auto，不用 translate(-50%,-50%)（Chromium 奇數尺寸文字會糊） */
/* 每則心得右上的「⋯」選單（2026-10-18 使用者修訂：取代一直顯示的編輯／刪除／檢舉連結） */
.cmt-sub .cmt-item { position: relative; }
.cmt-sub .cmt-meta { padding-right: 40px; align-items: center; }
.cmt-sub .cmt-meta .cmt-av { margin-right: 8px; }
.cmt-sub .cmt-acts:empty { display: none; }
.cmt-menu-wrap { position: absolute; top: 6px; right: 0; }
.cmt-card.is-mine { position: relative; }
.cmt-card.is-mine .cmt-who { padding-right: 40px; }
.cmt-card .cmt-menu-wrap { top: 0; }
.cp-cmt .cmt-rail .cmt-card .cmt-menu-wrap { top: 8px; right: 8px; }
/* 必填標記與欄位下的錯誤 */
.cmt-req { color: var(--muted); font-weight: 400; }
.cmt-field-err { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: #b3261e; }
[data-theme="dark"] .cmt-field-err { color: #ff8a80; }
:is(.cp-cmt, .cmt-sub) .cmt-field [aria-invalid="true"] { border-color: #b3261e; }
.cmt-more-btn { width: 36px; height: 36px; border: 0; border-radius: 18px; background: none; color: var(--muted); font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.cmt-more-btn:hover, .cmt-more-btn[aria-expanded="true"] { background: var(--hair); color: var(--ink); }
.cmt-more-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
/* 桌機（滑鼠）：平常藏起來，滑到那則或裡面有焦點才出現；用 opacity，不用 display／visibility，Tab 仍到得了 */
@media (min-width: 769px) and (pointer: fine) {
  .cmt-sub .cmt-more-btn { opacity: 0; transition: opacity .12s ease-out; }
  .cmt-sub .cmt-item:hover .cmt-more-btn, .cmt-sub .cmt-item:focus-within .cmt-more-btn, .cmt-sub .cmt-more-btn[aria-expanded="true"] { opacity: 1; }
  .cmt-sub .cmt-item.is-mine .cmt-more-btn { opacity: 1; }   /* 自己的心得一直顯示（2026-10-19 使用者修訂） */
}
.cmt-menu { position: absolute; top: 40px; right: 0; z-index: 2; min-width: 140px; padding: 6px 0; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: cmtFade .12s ease-out; }
.cmt-menu.is-up { top: auto; bottom: 40px; }
.cmt-menu [role="menuitem"] { display: block; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.cmt-menu [role="menuitem"]:hover, .cmt-menu [role="menuitem"]:focus-visible { background: var(--hair); outline: none; }
@media (prefers-reduced-motion: reduce) { .cmt-sub.is-mobile, .cmt-sub.is-modal, .cmt-backdrop, .cmt-menu { animation: none; } .cmt-sub .cmt-more-btn { transition: none; } }   /* 權重要跟掛動畫的規則一樣（0,2,0） */

/* /me（#sv-detail）：推薦鈕的膠囊外觀（舊殼由 style.css 的 #cellsheet-body .side-acts > .pa-btn 給）；/me 動作列靠右，推薦鈕自己靠左（同舊圈頁） */
#sv-detail .side-acts > :is(.cp-rec-toggle, .cp-share-btn) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 14px; margin: 0 auto 0 0;
  border: 1px solid var(--hair); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25; flex: none; cursor: pointer; }
#sv-detail .side-acts > :is(.cp-rec-toggle, .cp-share-btn):hover { border-color: var(--ink); }
#sv-detail .side-acts > :is(.cp-rec-toggle, .cp-share-btn):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
#sv-detail .side-acts { position: relative; flex-wrap: wrap; }   /* 推薦面板 absolute 貼著動作列往下展開 */

/* 分享鈕（Task 3b）：靠右（同舊圈頁「推薦｜分享 收藏」）；推薦鈕自己靠左，不再兩顆都推 auto */
#sv-detail .side-acts > .cp-share-btn { margin: 0 0 0 auto; }
#sv-detail .side-acts > .cp-rec-toggle:not([hidden]) ~ .cp-share-btn { margin-left: 0; }
#sv-detail .side-acts > .cp-share-btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
/* 分享面板（就地展開，取代舊圈頁的分享彈窗）：預覽列＋目標一排（目標按鈕樣式同格子詳情，saved.css） */
#sv-detail .cp-share-panel { flex-direction: column; gap: 10px; padding: 12px; }
#sv-detail .cp-share-panel .share-cp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); }
#sv-detail .cp-share-panel .share-cp-shape { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
#sv-detail .cp-share-panel .share-cp-shape svg { width: 48px; height: 48px; }
#sv-detail .cp-share-panel .share-cp-shape svg path { fill: none; stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#sv-detail .cp-share-panel .share-cp-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#sv-detail .cp-share-panel .share-cp-name { font-size: 15px; font-weight: 800; color: var(--ink); }
#sv-detail .cp-share-panel .share-cp-tag { font-size: 13px; color: var(--ink); line-height: 1.45; }
#sv-detail .cp-share-panel .share-cp-url { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sv-detail .cp-share-targets { display: flex; gap: 4px; }
/* 回報（取代舊圈頁的 #creport-sheet）：外框、欄位同格子詳情的回報表單（saved.css .cd-cell-report） */
#sv-detail .cp-report-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#sv-detail .cp-creport .rr-opt { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; font-size: 13px; line-height: 1.4; }
#sv-detail .cp-creport .rr-opt input { margin-top: 2px; }
#sv-detail .cp-creport select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); color: var(--ink); }
#sv-detail .cp-creport [hidden] { display: none; }
/* 附近生活圈 ‹ ›（同舊圈頁 style.css 的 #cellsheet-body 版；觸控裝置藏起來、照舊用手指滑） */
#sv-detail .cp-near-wrap { position: relative; }
#sv-detail .cp-near-arrow { position: absolute; top: calc(50% - 4px); transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair); background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.14); font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
#sv-detail .cp-near-arrow:hover { transform: translateY(-50%) scale(1.06); }
#sv-detail .cp-near-arrow.prev { left: -16px; } #sv-detail .cp-near-arrow.next { right: -16px; }
#sv-detail .cp-near-arrow[hidden] { display: none; }
@media (hover: none), (pointer: coarse) { #sv-detail .cp-near-arrow { display: none !important; } }
/* 窄欄的心得卡（Task 3b：/me 側欄 420px、手機抽屜）：區塊自己不到 480px 寬時，一張卡吃滿欄寬（只露一點下一張）、內距收一點、暱稱與時間可換行；
   寬欄（舊圈頁半螢幕側欄）照舊一排約 2.4 張 */
@container cpcmt (max-width: 480px) {
  .cp-cmt .cmt-strip .cmt-card, .cp-cmt .cmt-rail .cmt-card { flex: 0 0 calc(100% - 40px); padding: 14px; }
  .cp-cmt .cmt-card .cmt-who { gap: 10px; margin-bottom: 8px; }
  .cp-cmt .cmt-card .cmt-who > :not(.cmt-av) { min-width: 0; }
  .cp-cmt .cmt-card .cmt-nick { overflow-wrap: anywhere; }
  .cp-cmt .cmt-arrow.prev { left: -12px; } .cp-cmt .cmt-arrow.next { right: -12px; }
}
