/* Seven Street 新前端（12-01）。
   色：IG 四色——寶藍 #3050FF、螢光粉紅 #F2167F（重點字）、白、黑；螢光綠 --lime 淨係主要掣（搵人一齊出、搵人）。
   頂部欄＝寶藍實色帶（Gini 12-01：「又冇 top bar」），路牌 logo＋門牌 7；內頁有自己嘅頂部欄（返回、標題縮寫、分享）。
   日夜：<html data-th="day|night">（香港時間 7–19 點日頭；「我」頁可以揀）。夜晚用深海軍藍（Gini 11-30「黑版太黑」）。
   ⛔ 新嘢一律用變數，唔好寫硬色；⛔ 唔用 3D 地圖、霓虹、米黃橙紅宋體、死圖色塊佔位。 */
:root, html[data-th="day"] {
  --blue: #3050FF; --pink: #F2167F; --lime: #C6FF3D; --ink: #0A0F2C;
  --bar: #3050FF; --bar-tx: #FFFFFF;
  --bg: #F2F4FF; --sf: #FFFFFF; --sf2: #E9EDFF; --tx: #0A0F2C; --tx2: rgba(10, 15, 44, .66); --line: rgba(16, 24, 72, .12);
  --blue-tx: #2238D6; --pink-tx: #D60F70; --ic: #3050FF;
  --shadow: 0 10px 24px -14px rgba(20, 35, 120, .45); --tab: #FFFFFF; --tab-off: rgba(10, 15, 44, .5);
  --skel-a: #E3E8FF; --skel-b: #F3F5FF;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
html[data-th="night"] {
  --bar: #2A40E0; --bar-tx: #FFFFFF;
  --bg: #1D2648; --sf: #28325A; --sf2: #333E6B; --tx: #F2F4FF; --tx2: rgba(242, 244, 255, .74); --line: rgba(214, 224, 255, .16);
  --blue-tx: #B4C0FF; --pink-tx: #FF77B7; --ic: #B4C0FF;
  --shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); --tab: #222B52; --tab-off: rgba(242, 244, 255, .58);
  --skel-a: #28325A; --skel-b: #333E6B;
}
/* ---------- 夜晚色三套（12-01 晚測試，html[data-nt]；冇設＝上面現版深海軍藍）。淡字 ≥ 4.5:1；螢光綠夜晚調暗少少唔刺眼；⛔ 純黑、霓虹 ---------- */
html[data-th="night"][data-nt="1"] {   /* 1 深靛藍＋寶藍光：底深但有藍紫色相，頂欄保持品牌寶藍、下面一圈寶藍光 */
  --bar: #3050FF; --bg: #121838; --sf: #1B2250; --sf2: #262E66; --tab: #151B44; --tx: #EEF1FF; --tx2: rgba(226, 231, 255, .76); --line: rgba(160, 176, 255, .18);
  --blue-tx: #AAB8FF; --pink-tx: #FF7DBA; --ic: #A3B3FF; --lime: #BDF53B; --skel-a: #1B2250; --skel-b: #262E66; --shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
  --f-land: #151C45; --f-track: rgba(18, 24, 56, .92); --f-pinline: #121838; --f-top: var(--bar);
}
html[data-th="night"][data-nt="1"] .top { box-shadow: 0 12px 32px -14px rgba(48, 80, 255, .85); }
html[data-th="night"][data-nt="2"] {   /* 2 深灰紫：中性、低彩度，似 IG／Threads 夜晚；頂欄同底一齊暗 */
  --bar: #24212F; --bg: #16141C; --sf: #221F2B; --sf2: #2D2938; --tab: #1B1922; --tx: #F2EFF7; --tx2: rgba(242, 239, 247, .72); --line: rgba(255, 255, 255, .11);
  --blue-tx: #B0B8FF; --pink-tx: #FF7DBA; --ic: #B7AEF5; --lime: #BDF53B; --skel-a: #221F2B; --skel-b: #2D2938; --shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
  --f-land: #1C1A23; --f-track: rgba(22, 20, 28, .92); --f-pinline: #16141C; --f-top: var(--bar);
}
html[data-th="night"][data-nt="3"] {   /* 3 寶藍頂欄＋深灰內容：頂欄同日頭一樣，內容區中性深灰 */
  --bar: #3050FF; --bg: #17181C; --sf: #222429; --sf2: #2D3037; --tab: #1C1D22; --tx: #F2F3F7; --tx2: rgba(242, 243, 247, .72); --line: rgba(255, 255, 255, .12);
  --blue-tx: #A9B6FF; --pink-tx: #FF7DBA; --ic: #A3B3FF; --lime: #BDF53B; --skel-a: #222429; --skel-b: #2D3037; --shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
  --f-land: #1B1C21; --f-track: rgba(23, 24, 28, .92); --f-pinline: #17181C; --f-top: var(--bar);
}
/* 測試版夜晚色切換（「我」頁） */
.ntrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font: 700 15px "Noto Sans TC", sans-serif; }
.ntseg { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--sf2); }
.ntseg button { height: 34px; padding: 0 10px; border-radius: 999px; font: 700 12.5px "Noto Sans TC", sans-serif; color: var(--tx2); white-space: nowrap; }
.ntseg button[aria-pressed="true"] { background: #D60F70; color: #fff; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--tx); }
body { font-family: "Noto Sans TC", "Archivo", -apple-system, system-ui, sans-serif; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
::selection { background: var(--pink); color: #fff; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 8px; }
svg.lucide { width: 22px; height: 22px; flex: none; }
#app { padding: 0 0 calc(64px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
body[data-v="det"] #app { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 頂部欄（寶藍實色帶） ---------- */
.top { position: relative; z-index: 20; background: var(--bar); color: var(--bar-tx); padding: calc(env(safe-area-inset-top) + 10px) 12px 12px 16px; }
.top-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .ri { display: flex; gap: 2px; }
.icb { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.icb:active { background: var(--sf2); }
.top .icb:active { background: rgba(255, 255, 255, .18); }
.top .logo { text-decoration: none; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
/* 搜尋（喺藍帶入面，第二行） */
.srch { margin-top: 12px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 4px 0 14px; background: #fff; color: #0A0F2C; border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .45); }
.srch svg.lucide { width: 20px; height: 20px; color: #3050FF; }
.srch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font: 500 16px "Noto Sans TC", sans-serif; color: #0A0F2C; }
.srch input::placeholder { color: rgba(10, 15, 44, .56); }
.srch input::-webkit-search-cancel-button { display: none; }
.srch:focus-within { box-shadow: 0 0 0 3px var(--pink); }
.srch-x { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: rgba(10, 15, 44, .6); }
.srch-x[hidden] { display: none; }

/* ---------- 內頁頂部欄 ---------- */
.dtop { position: sticky; top: 0; display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top) + 4px) 4px 4px; }
.dtop-t { flex: 1; min-width: 0; text-align: center; font: 900 16px/1.2 "Noto Sans TC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 街牌（真香港街名牌：白底黑字、黑粗邊、右邊黑色尖箭嘴；上英文、下中文） ---------- */
.sign { display: inline-flex; flex-direction: column; justify-content: center; background: #fff; color: #000; border: 2.5px solid #000; border-right: 0; padding: 3px 6px 3px 8px; position: relative; border-radius: 4px 0 0 4px; line-height: 1; white-space: nowrap; }
.sign::after { content: ""; position: absolute; top: -2.5px; bottom: -2.5px; right: -15px; width: 15px; background: #000; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sign::before { content: ""; position: absolute; top: 0; bottom: 0; right: -10px; width: 11px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); z-index: 1; }
.sign b { font: 700 8.5px "Archivo", sans-serif; letter-spacing: .2px; }
.sign i { font: 900 15px "Noto Sans TC", sans-serif; font-style: normal; margin-top: 1px; letter-spacing: 1px; }
.sign.sm b { font-size: 7px; } .sign.sm i { font-size: 12px; }
.sign.lg b { font-size: 11px; } .sign.lg i { font-size: 20px; }
.sign.logo i { display: inline-flex; align-items: flex-end; gap: 6px; }
.sign.logo sup { font: 800 10px "Archivo", sans-serif; line-height: 1; margin-bottom: 1px; }
.top .sign.logo { margin-right: 15px; }

/* ---------- 篩選：三個下拉（同一行、一樣闊；揀咗轉實色） ---------- */
.flt { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 12px 10px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.dd { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--sf); box-shadow: inset 0 0 0 1.5px var(--line); font: 700 14.5px "Noto Sans TC", sans-serif; color: var(--tx); min-width: 0; }
.dd-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd svg.lucide { width: 16px; height: 16px; opacity: .7; }
.dd select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.dd.on { background: var(--ink); color: #fff; box-shadow: none; }
.dd.on svg.lucide { opacity: 1; }
html[data-th="night"] .dd.on { background: #fff; color: var(--ink); }
.dd:focus-within { box-shadow: 0 0 0 3px var(--pink); }
.cnt { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 6px 16px 8px; font: 500 14px "Noto Sans TC", sans-serif; color: var(--tx2); }
.cnt b { font: 900 15px "Archivo", "Noto Sans TC", sans-serif; color: var(--tx); font-variant-numeric: tabular-nums; }
.lnk { font: 700 14px "Noto Sans TC", sans-serif; color: var(--blue-tx); padding: 10px 4px; margin: -10px -4px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 標題（IG 定案：白字黑邊、粉紅重點字、寶藍投影）——淨係用喺封面／hero ---------- */
.ttl { font: 900 30px/1.14 "Noto Sans TC", sans-serif; color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 3px 3px 0 var(--blue); letter-spacing: .5px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.ttl em { font-style: normal; color: var(--pink); }
.strip { display: inline-block; max-width: 100%; background: #fff; color: #000; border: 2.5px solid #000; border-radius: 6px; font: 900 13px/1.3 "Noto Sans TC", sans-serif; padding: 4px 10px; }
.hash { font: 900 15px "Noto Sans TC", sans-serif; color: var(--pink); -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }

/* ---------- 主頁格仔（IG 帳戶頁咁，一行三格，4:5 封面） ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--blue) center / cover no-repeat; overflow: hidden; text-decoration: none; color: #fff; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .66) 100%); }
.tile.noimg::after { display: none; }
.tile > * { position: absolute; z-index: 2; }
/* 封面加料（3 欄 390 闊每格約 129×161；字最細 10px；唔疊：上一行 #分類＋♥，下面一條直排） */
.tile::after { background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .72) 100%); }
.tile .t-top { top: 6px; left: 6px; right: 6px; display: flex; justify-content: flex-end; }
.tile .t-top .sign { margin-right: 10px; max-width: calc(100% - 10px); }
.tile .t-cat { min-width: 0; font: 900 11px/1.15 "Noto Sans TC", sans-serif; color: var(--pink); -webkit-text-stroke: 2.4px #fff; paint-order: stroke fill; white-space: nowrap; overflow: hidden; text-overflow: clip; padding: 1px 1px 2px; }
.tile .t-want { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px 0 4px; border-radius: 999px; background: #fff; color: #000; font: 800 10.5px/1 "Archivo", sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.tile .t-want svg.lucide { width: 11px; height: 11px; color: var(--pink); fill: var(--pink); stroke-width: 2.4; }
.tile .t-bot { left: 6px; right: 6px; bottom: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sign.xs { border-width: 1.5px; padding: 2px 4px 2px 5px; border-radius: 3px 0 0 3px; }
.sign.xs b { font-size: 10px; letter-spacing: 0; }
.sign.xs i { font-size: 12px; letter-spacing: .5px; }
.sign.xs::after { top: -1.5px; bottom: -1.5px; right: -10px; width: 10px; }
.sign.xs::before { right: -7.5px; width: 8px; }
.tile .t-ttl { position: static; font: 900 13.5px/1.2 "Noto Sans TC", sans-serif; color: #fff; -webkit-text-stroke: 1.3px #000; paint-order: stroke fill; text-shadow: 1.5px 1.5px 0 var(--blue); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; max-width: 100%; padding: 0 2px 1px 0; }
.tile .t-d { position: static; max-width: 100%; background: #fff; color: #000; border: 1.5px solid #000; border-radius: 4px; font: 800 10.5px/1.25 "Archivo", "Noto Sans TC", sans-serif; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tile .t-d i { font-style: normal; font-family: "Noto Sans TC", sans-serif; color: #D60F70; }
.tile .t-d.end { background: #D60F70; color: #fff; border-color: #fff; font-family: "Noto Sans TC", sans-serif; }
.tile .t-d.end i { color: #fff; }
.tile .t-ic { top: 40%; left: 50%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, .9); }
.tile .t-ttl em { font-style: normal; color: var(--pink); }
.tile .t-ic svg.lucide { width: 30px; height: 30px; }
.tile:active { filter: brightness(.88); }
.tile:focus-visible { outline-offset: -3px; border-radius: 0; }
.tile.skel { background: linear-gradient(100deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%) 0 0 / 300% 100%; animation: sk 1.4s linear infinite; }
.tile.skel::after { display: none; }
@keyframes sk { to { background-position: -150% 0; } }

/* ---------- 空、載入、錯 ---------- */
.empty { margin: 48px 28px; text-align: center; color: var(--tx2); font: 500 15px/1.6 "Noto Sans TC", sans-serif; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty > svg.lucide { width: 40px; height: 40px; margin-bottom: 6px; color: var(--ic); }
.empty b { font: 900 18px "Noto Sans TC", sans-serif; color: var(--tx); }
.empty .pill { margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--sf); color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--line); font: 700 15px "Noto Sans TC", sans-serif; }
.pill svg.lucide { width: 18px; height: 18px; }
.skel-l { height: 22px; width: 70%; border-radius: 8px; background: var(--skel-a); }
.skel-l.s { width: 40%; }
.skel-box { height: 180px; border-radius: 16px; background: var(--skel-a); }

/* ---------- 資訊卡內頁 ---------- */
.dt-hero { position: relative; aspect-ratio: 4 / 3; background: var(--blue) center / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; padding: 16px 16px 20px; overflow: hidden; }
.dt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .58) 100%); }
.dt-hero.noimg::after { display: none; }
.dt-hero > * { position: relative; z-index: 2; }
.dt-hero .ttl { font-size: 28px; max-width: 100%; }
.dt-hero.skel { background: var(--skel-a); }
.dt-hero.skel::after { display: none; }
.dt-body { padding: 14px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--sf2); color: var(--tx); font: 700 13px "Noto Sans TC", sans-serif; }
.tag svg.lucide { width: 15px; height: 15px; color: var(--ic); }
.tag.cat { background: var(--blue); color: #fff; }
.tag.cat svg.lucide { color: #fff; }
.tag.st-on, .tag.st-today { background: var(--lime); color: #0A0F2C; }
.tag.st-end { background: var(--pink); color: #fff; }
.tag.st-soon { box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; }
.box { background: var(--sf); border-radius: 16px; padding: 4px 14px; box-shadow: var(--shadow); }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; font: 700 15.5px/1.45 "Noto Sans TC", sans-serif; }
.row + .row { border-top: 1px solid var(--line); }
.row > svg.lucide { width: 20px; height: 20px; margin-top: 2px; color: var(--ic); }
.row > div, .row-m { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row small { display: block; margin-top: 2px; font: 500 13.5px/1.5 "Noto Sans TC", sans-serif; color: var(--tx2); }
.row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.row .tag { height: 26px; font-size: 12.5px; }
.row .free { color: var(--pink-tx); }
.ra { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 13px; border-radius: 999px; background: var(--sf2); color: var(--blue-tx); font: 800 14px "Noto Sans TC", sans-serif; text-decoration: none; white-space: nowrap; }
.ra svg.lucide { width: 17px; height: 17px; }
.ra:active { filter: brightness(.94); }
.r-want > svg.lucide { color: var(--pink-tx); }
.txt { font: 500 16px/1.8 "Noto Sans TC", sans-serif; white-space: pre-wrap; max-width: 40em; }
.credit { font: 500 13px/1.5 "Noto Sans TC", sans-serif; color: var(--tx2); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--tab); box-shadow: 0 -1px 0 var(--line); padding: 10px 16px max(10px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.dock .go { flex: 1; justify-content: center; height: 52px; font-size: 17px; }
.want { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 18px; border-radius: 999px; font: 800 15px "Noto Sans TC", sans-serif; color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--line); }
.want[aria-pressed="true"] { color: var(--pink-tx); box-shadow: inset 0 0 0 1.5px currentColor; }
.want[aria-pressed="true"] svg { fill: currentColor; }
.go { display: inline-flex; align-items: center; gap: 7px; background: var(--lime); color: #0A0F2C; font: 900 15px "Noto Sans TC", sans-serif; padding: 10px 18px; border-radius: 999px; box-shadow: 0 0 0 2px #0A0F2C; }
.go svg.lucide { width: 20px; height: 20px; }
.go:active { transform: scale(.97); }
.go[disabled] { opacity: .45; }

/* ---------- 文章（導語、有咩做、分段、相簿、實用資料、尾段大掣） ---------- */
.lede { font: 500 17px/1.85 "Noto Sans TC", sans-serif; padding: 14px 0; border-top: 3px solid var(--blue); border-bottom: 3px solid var(--blue); max-width: 40em; }
html[data-th="night"] .lede { border-color: var(--ic); }
.art { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.art h2 { font: 900 21px/1.35 "Noto Sans TC", sans-serif; text-wrap: balance; }
.art-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.art-h span { font: 500 13px "Noto Sans TC", sans-serif; color: var(--tx2); white-space: nowrap; }
.hl, .tips { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hl li, .tips li { display: flex; gap: 10px; font: 500 16px/1.65 "Noto Sans TC", sans-serif; }
.hl li svg.lucide { width: 20px; height: 20px; margin-top: 3px; padding: 2px; border-radius: 999px; background: var(--blue); color: #fff; stroke-width: 3; }
.tips { background: var(--sf); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.tips li svg.lucide { width: 19px; height: 19px; margin-top: 3px; color: var(--ic); }
.fig { margin: 2px 0 0; }
.fig img, .gfig img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--skel-a); }
.fig img { max-height: 70vh; object-fit: cover; }
figcaption { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
figcaption span { font: 500 14px/1.5 "Noto Sans TC", sans-serif; }
figcaption small { font: 500 12.5px/1.4 "Noto Sans TC", sans-serif; color: var(--tx2); }
.gal { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal::-webkit-scrollbar { display: none; }
.gfig { flex: none; width: 78%; scroll-snap-align: start; scroll-margin-left: 16px; }
.gfig img { aspect-ratio: 4 / 3; object-fit: cover; }
.endcta { margin-top: 10px; padding: 20px 16px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
html[data-th="night"] .endcta { background: var(--sf2); }
.endcta b { font: 900 20px "Noto Sans TC", sans-serif; }
.endcta p { font: 500 14.5px/1.6 "Noto Sans TC", sans-serif; color: rgba(255, 255, 255, .8); }
.endcta .go { margin-top: 10px; width: 100%; justify-content: center; height: 52px; font-size: 17px; box-shadow: none; }
.dock .shr { padding: 0; width: 52px; flex: none; }

/* ---------- 底部彈出表（點去、加入日曆） ---------- */
.sh-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sh-scrim { position: absolute; inset: 0; background: rgba(6, 10, 30, .5); opacity: 0; transition: opacity .2s ease-out; }
.sh { position: relative; width: 100%; max-width: 520px; background: var(--sf); color: var(--tx); border-radius: 20px 20px 0 0; padding: 6px 12px max(14px, env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .32s var(--ease); }
.sh-wrap.on .sh-scrim { opacity: 1; }
.sh-wrap.on .sh { transform: none; }
.sh-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 4px 6px; }
.sh-h h2 { font: 900 18px "Noto Sans TC", sans-serif; }
.sh-b { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 6px; }
.sh-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 14px; background: var(--bg); text-align: left; text-decoration: none; color: var(--tx); width: 100%; }
.sh-opt > svg.lucide:first-child { color: var(--ic); }
.sh-opt > svg.lucide:last-child:not(:first-child) { width: 18px; height: 18px; opacity: .55; }
.sh-opt span { flex: 1; min-width: 0; }
.sh-opt b { display: block; font: 800 16px "Noto Sans TC", sans-serif; }
.sh-opt small { display: block; font: 500 13px/1.45 "Noto Sans TC", sans-serif; color: var(--tx2); overflow-wrap: anywhere; }
.sh-opt:active { filter: brightness(.95); }
.sh-date { display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 6px; font: 700 14px "Noto Sans TC", sans-serif; color: var(--tx2); }
.sh-date input { height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--tx); font: 700 16px "Archivo", sans-serif; }

/* ---------- 底部分頁 ---------- */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; height: calc(56px + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); background: var(--tab); box-shadow: 0 -1px 0 var(--line); display: flex; }
.tabs[hidden] { display: none; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 11px "Noto Sans TC", sans-serif; color: var(--tab-off); text-decoration: none; }
.tabs a svg.lucide { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--blue); }
html[data-th="night"] .tabs a[aria-current="page"] { color: #fff; }
.tabs a[aria-current="page"] svg.lucide { stroke-width: 2.6; }

/* ---------- 篩選 chip（搵人模組借用） ---------- */
.chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; border-radius: 999px; font: 700 13.5px "Noto Sans TC", sans-serif; background: var(--sf); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
html[data-th="night"] .chip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.chip svg.lucide { width: 15px; height: 15px; }

/* ---------- 行程：組咗｜想去（s7-find.js 行程頁用） ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 2px 16px 12px; padding: 4px; border-radius: 999px; background: var(--sf2); }
.seg button { height: 40px; border-radius: 999px; font: 800 15px "Noto Sans TC", sans-serif; color: var(--tx2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-selected="true"] { background: var(--sf); color: var(--tx); box-shadow: 0 2px 8px -4px rgba(10, 15, 44, .4); }
.seg b { font: 800 12px "Archivo", sans-serif; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; display: inline-grid; place-items: center; }
html[data-th="night"] .seg button[aria-selected="true"] { background: #fff; color: var(--ink); }
body[data-v="me"] .top, body[data-v="trips"] .top, body[data-v="msgs"] .top { margin-bottom: 14px; }
.nrow { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--sf); text-decoration: none; color: var(--tx); box-shadow: var(--shadow); }
.nrow + .nrow { margin-top: 10px; }
.nrow-i { flex: none; width: 64px; height: 80px; border-radius: 10px; background: var(--blue) center / cover no-repeat; display: grid; place-items: center; color: #fff; }
.nrow-b { flex: 1; min-width: 0; }
.nrow-b b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 800 15.5px/1.35 "Noto Sans TC", sans-serif; }
.nrow-b small { display: block; margin-top: 4px; font: 500 13px/1.4 "Noto Sans TC", sans-serif; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrow .tag { height: 24px; font-size: 12px; margin-top: 6px; }
.nrow > svg.lucide { color: var(--tx2); width: 18px; height: 18px; }

/* ---------- 未搬過嚟嘅分頁 ---------- */
.soon { margin: 60px 28px; text-align: center; }
.soon h2 { font: 900 22px "Noto Sans TC", sans-serif; margin: 14px 0 8px; }
.soon p { font: 500 15px/1.6 "Noto Sans TC", sans-serif; color: var(--tx2); }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; background: var(--ink); color: #fff; font: 700 14px "Noto Sans TC", sans-serif; padding: 10px 18px; border-radius: 999px; transition: opacity .25s, transform .25s var(--ease); max-width: 86vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
html[data-th="night"] .toast { background: #fff; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .tile.skel { animation: none; } .sh, .sh-scrim, .toast { transition: none; } }

/* ---------- 頂欄訊息掣（右上角，同通知鐘並排） ---------- */
.icb.msg { position: relative; color: inherit; text-decoration: none; }
.msgb { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font: 800 11px/15px "Archivo", sans-serif; text-align: center; border: 2px solid var(--bar); font-variant-numeric: tabular-nums; }
.msgb[hidden] { display: none; }

/* ---------- 主頁上半部（Klook 分類卡＋港生活式週末一行） ---------- */
.qc { position: relative; z-index: 21; margin: -28px 12px 0; padding: 14px 6px 10px; border-radius: 18px; background: var(--sf); box-shadow: 0 14px 30px -18px rgba(10, 15, 44, .55), 0 0 0 1px var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
.qi { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 2px; border-radius: 12px; }
.qi-i { --c: var(--blue); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 6px 12px -8px var(--c); }
.qi-i svg.lucide { width: 24px; height: 24px; }
.qi-t { font: 700 12.5px/1.2 "Noto Sans TC", sans-serif; color: var(--tx); text-align: center; word-break: keep-all; }
.qi-bl .qi-i { --c: #3050FF; } .qi-pk .qi-i { --c: #D60F70; } .qi-gn .qi-i { --c: #0E8A4F; } .qi-ink .qi-i { --c: #0A0F2C; }
html[data-th="night"] .qi-ink .qi-i { --c: #4A5290; }
.qi[aria-pressed="true"] .qi-i { box-shadow: 0 0 0 3px var(--sf), 0 0 0 5.5px var(--tx); }
.qi[aria-pressed="true"] .qi-t { font-weight: 900; }
.qi:active .qi-i { transform: scale(.94); }
.wk { padding-top: 22px; }
.wk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 16px 10px; }
.wk-h h2 { font: 900 20px/1.3 "Noto Sans TC", sans-serif; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wk-h h2 span { font: 800 14.5px "Archivo", "Noto Sans TC", sans-serif; color: var(--tx2); }
.wk-h .lnk { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; white-space: nowrap; }
.wk-h .lnk svg.lucide { width: 16px; height: 16px; }
.wk-r { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 16px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.wk-r::-webkit-scrollbar { display: none; }
.wk-r .tile { flex: none; width: 36%; border-radius: 12px; scroll-snap-align: start; scroll-margin-left: 16px; }
.allh { font: 900 20px/1.3 "Noto Sans TC", sans-serif; padding: 26px 16px 0; }
.allh + .flt { padding-top: 10px; }
.f-bar-r { display: flex; align-items: center; gap: 4px; }
.f-bar-r .icb.msg { color: #fff; }


/* ================= 12-01 晚：app 感（Gini：「好似網站，唔似 app」「唔夠精緻」） =================
   iOS 字級：大標題 28–34、標題 20–22、內文 16–17、註 13；撳落有反饋；唔揀到字（文章內文除外）；頂欄黐頂；彈框＝底部 sheet。 */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.txt, .lede, .art p, .art li, input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html { -webkit-text-size-adjust: 100%; }
button:active, .ra:active, .pill:active, .dd:active, .sh-opt:active { transform: scale(.97); }
button, .ra, .pill, .dd, .sh-opt, .tile, .qi-i { transition: transform .16s var(--ease), filter .16s; }
.tile:active { transform: scale(.98); filter: brightness(.9); }

/* 主頁頂：logo 一行（碌走）＋搜尋一行（黐頂） */
.top.hm { padding-bottom: 6px; }
.srow { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2px; padding: calc(env(safe-area-inset-top) * 0 + 8px) 8px 10px 16px; background: var(--bar); color: var(--bar-tx); }
.srow .srch { flex: 1; margin-top: 0; height: 42px; border-radius: 12px; }
.srow .ri { display: flex; }
.srow .icb:active { background: rgba(255, 255, 255, .18); }
.apron { height: 34px; background: var(--bar); margin-bottom: -34px; }
.top.stk { position: sticky; top: 0; z-index: 30; }
.qc { margin: 0 12px; padding: 14px 4px 12px; display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 20px; }
.qc::-webkit-scrollbar { display: none; }
.qi { flex: none; width: 70px; scroll-snap-align: start; }
.qi-all .qi-i { --c: var(--ink); background: var(--sf2); color: var(--tx); box-shadow: none; }
.qi-all[aria-pressed="true"] .qi-i { background: var(--ink); color: #fff; }
html[data-th="night"] .qi-all[aria-pressed="true"] .qi-i { background: #fff; color: var(--ink); }
.allh { font: 900 22px/1.25 "Noto Sans TC", sans-serif; letter-spacing: -.01em; }
.flt { top: var(--stk, 60px); z-index: 20; }
.dd { width: 100%; }
.cnt { font-size: 13px; }
.cnt b { font-size: 14px; }
.wk-h h2 { font-size: 22px; letter-spacing: -.01em; }

/* 底部 sheet：選項清單有剔；太長就喺 sheet 入面碌 */
.sh { max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; }
.sh::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 999px; background: var(--line); margin: 4px auto 6px; }
.sh-list { gap: 2px; background: var(--bg); border-radius: 14px; padding: 4px; }
.sh-radio { min-height: 50px; background: transparent; border-radius: 10px; }
.sh-radio[aria-checked="true"] { background: var(--sf); }
.sh-radio[aria-checked="true"] b { color: var(--blue-tx); }
.sh-radio > svg.lucide:last-child { color: var(--blue-tx); opacity: 1 !important; width: 20px !important; height: 20px !important; }

/* 內頁：頂欄疊喺大圖上（透明＋圓形掣），碌過大圖先變實色出標題；內容似 sheet 疊上大圖 */
.dtop { position: fixed; top: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; z-index: 40; display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top) + 6px) 8px 6px; color: #fff; background: transparent; transition: background .22s var(--ease), box-shadow .22s; }
.dtop .icb { background: rgba(10, 15, 44, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dtop .dtop-t { flex: 1; min-width: 0; text-align: center; font: 800 16px/1.2 "Noto Sans TC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .22s var(--ease); }
.dtop.solid { background: var(--bar); box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.dtop.solid .icb { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.dtop.solid .dtop-t { opacity: 1; transform: none; }
.dt-hero { aspect-ratio: auto; height: calc(min(100vw, 520px) * .92 + env(safe-area-inset-top)); padding-bottom: 38px; }
.dt-body { position: relative; z-index: 2; margin-top: -22px; border-radius: 22px 22px 0 0; background: var(--bg); padding-top: 18px; gap: 16px; }
.box { border-radius: 18px; padding: 2px 14px; box-shadow: 0 1px 0 var(--line), 0 12px 28px -20px rgba(20, 35, 120, .5); }
.row { padding: 14px 0; font-size: 16px; }
.lede { border: 0; padding: 0; font-size: 17px; line-height: 1.75; color: var(--tx); }
.art { margin-top: 6px; }
.art h2 { font-size: 20px; letter-spacing: -.01em; }
.hl.card { background: var(--sf); border-radius: 18px; padding: 14px; box-shadow: 0 1px 0 var(--line), 0 12px 28px -20px rgba(20, 35, 120, .5); gap: 12px; }
.tips { box-shadow: 0 1px 0 var(--line), 0 12px 28px -20px rgba(20, 35, 120, .5); border-radius: 18px; }
.fig img, .gfig img { border-radius: 16px; }
.dock { padding-top: 10px; box-shadow: 0 -1px 0 var(--line), 0 -10px 24px -18px rgba(10, 15, 44, .35); }
html[data-th="night"] .box, html[data-th="night"] .hl.card, html[data-th="night"] .tips { box-shadow: 0 0 0 1px var(--line); }

/* 其他分頁大標題（iOS 34） */
.f-pgt { font-size: 32px; letter-spacing: -.02em; padding-top: 6px; }

/* 轉頁：入深一層由右推入；返出嚟由左滑返、少少回彈；底部分頁唔郁 */
.tabs { view-transition-name: s7tabs; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .34s; animation-fill-mode: both; }
html[data-nav="push"]::view-transition-old(root) { animation-name: s7outL; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
html[data-nav="push"]::view-transition-new(root) { animation-name: s7inR; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
html[data-nav="pop"]::view-transition-old(root) { animation-name: s7outR; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
html[data-nav="pop"]::view-transition-new(root) { animation-name: s7inL; animation-timing-function: cubic-bezier(.3, 1.12, .6, 1); }
@keyframes s7inR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes s7outL { from { transform: none; opacity: 1; } to { transform: translateX(-28%); opacity: .6; } }
@keyframes s7inL { from { transform: translateX(-28%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes s7outR { from { transform: none; } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } button:active, .tile:active { transform: none; } }


/* ================= 12-01 晚 polish7：高級感、有層次（Gini：「太扁平、好 raw」「唔似 Klook 嗰種高級感」）＋全 app 冇左右碌 =================
   做法跟 Klook／KKday／港生活：淺灰底＋白卡、柔和多層陰影、大圓角、淡色圓底細彩色 icon、細而精嘅淡色 chip、相片圓角＋細漸層；
   寶藍做重點唔做大面積；頂欄白色半透明模糊（iOS）。⛔ 米黃橙紅。夜晚色 3 套跟同一套層次。 */
:root, html[data-th="day"] {
  --bg: #F4F5F9; --sf: #FFFFFF; --sf2: #EEF0F6; --tx: #0B1030; --tx2: rgba(11, 16, 48, .62); --line: rgba(16, 24, 64, .08);
  --bar: rgba(255, 255, 255, .84); --bar-tx: #0B1030; --tab: rgba(255, 255, 255, .9);
  --sh1: 0 1px 2px rgba(16, 24, 64, .05), 0 4px 12px -4px rgba(16, 24, 64, .08), 0 18px 34px -18px rgba(16, 24, 64, .14);
  --sh2: 0 2px 6px rgba(16, 24, 64, .06), 0 16px 36px -12px rgba(16, 24, 64, .2);
  --shadow: var(--sh1); --tint-bl: #EBEFFF; --tint-pk: #FDE8F1; --tint-gn: #E3F5EC; --tint-ink: #ECEDF3;
  --ic-bl: #3050FF; --ic-pk: #D60F70; --ic-gn: #0E8A4F; --ic-ink: #0B1030;
}
html[data-th="night"] {
  --bar: rgba(29, 38, 72, .82); --bar-tx: #F2F4FF; --tab: rgba(34, 43, 82, .92);
  --sh1: 0 0 0 1px rgba(214, 224, 255, .08), 0 14px 30px -18px rgba(0, 0, 0, .7); --sh2: 0 0 0 1px rgba(214, 224, 255, .1), 0 18px 40px -14px rgba(0, 0, 0, .75); --shadow: var(--sh1);
  --tint-bl: rgba(120, 145, 255, .16); --tint-pk: rgba(255, 125, 186, .16); --tint-gn: rgba(70, 200, 140, .16); --tint-ink: rgba(214, 224, 255, .1);
  --ic-bl: #A9B8FF; --ic-pk: #FF8CC3; --ic-gn: #6FD9A6; --ic-ink: #E6E9FF;
}
html[data-th="night"][data-nt="1"] { --bar: rgba(48, 80, 255, .9); --bar-tx: #FFFFFF; --tab: rgba(21, 27, 68, .92); }
html[data-th="night"][data-nt="2"] { --bar: rgba(22, 20, 28, .82); --bar-tx: #F2EFF7; --tab: rgba(27, 25, 34, .92); --tint-bl: rgba(176, 184, 255, .14); --tint-ink: rgba(255, 255, 255, .08); }
html[data-th="night"][data-nt="3"] { --bar: rgba(48, 80, 255, .94); --bar-tx: #FFFFFF; --tab: rgba(28, 29, 34, .92); --tint-ink: rgba(255, 255, 255, .08); }

/* 冇左右碌：頁面本身唔准出橫向（任何闊度） */
html, body { overflow-x: hidden; }
#app { overflow-x: clip; }

/* 頂欄：半透明模糊（iOS），白／淺灰為主 */
.top, .srow, .dtop.solid, .tabs, .dock { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.top, .srow { background: var(--bar); color: var(--bar-tx); }
.top.stk, .srow { box-shadow: 0 1px 0 var(--line); }
.top.hm { box-shadow: none; }
.top .icb:active, .srow .icb:active { background: var(--sf2); }
.srow .srch, .srch { background: var(--sf2); color: var(--tx); box-shadow: none; border-radius: 12px; }
.srch input { color: var(--tx); }
.srch input::placeholder { color: var(--tx2); }
.srch svg.lucide { color: var(--tx2); }
.srch-x { color: var(--tx2); }
.srch:focus-within { box-shadow: 0 0 0 2px var(--blue); background: var(--sf); }
html[data-th="night"][data-nt="1"] .srch, html[data-th="night"][data-nt="3"] .srch { background: rgba(255, 255, 255, .94); color: #0B1030; }
html[data-th="night"][data-nt="1"] .srch input, html[data-th="night"][data-nt="3"] .srch input { color: #0B1030; }
.apron { display: none; }
.msgb { border-color: var(--sf); }
.top .logo { box-shadow: 0 4px 10px -6px rgba(16, 24, 64, .35); }

/* 分類：白卡＋淡色圓底細彩色 icon，2 行一次過見晒（全部＋8 類＝5＋4） */
.qc { margin: 6px 12px 0; padding: 14px 6px 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; column-gap: 0; overflow: visible; border-radius: 22px; background: var(--sf); box-shadow: var(--sh1); }
.qi { width: auto; min-width: 0; gap: 6px; }
.qi-i { width: 48px; height: 48px; border-radius: 999px; background: var(--tint-bl); color: var(--ic-bl); box-shadow: none; }
.qi-i svg.lucide { width: 22px; height: 22px; stroke-width: 2; }
.qi-pk .qi-i { background: var(--tint-pk); color: var(--ic-pk); }
.qi-gn .qi-i { background: var(--tint-gn); color: var(--ic-gn); }
.qi-ink .qi-i, .qi-all .qi-i { background: var(--tint-ink); color: var(--ic-ink); }
.qi-bl .qi-i, .qi-pk .qi-i, .qi-gn .qi-i, .qi-ink .qi-i { --c: initial; }
.qi-t { font: 600 12px/1.2 "Noto Sans TC", sans-serif; color: var(--tx); }
.qi[aria-pressed="true"] .qi-i { box-shadow: 0 0 0 2px var(--sf), 0 0 0 4px currentColor; }
.qi[aria-pressed="true"] .qi-t { font-weight: 800; color: var(--tx); }
.qi-all[aria-pressed="true"] .qi-i { background: var(--tint-ink); color: var(--ic-ink); }
html[data-th="night"] .qi-all[aria-pressed="true"] .qi-i { background: var(--tint-ink); color: var(--ic-ink); }

/* 週末：2 欄（唔左右掃） */
.wk { padding-top: 24px; }
.wk-h h2 { font-size: 20px; font-weight: 900; }
.wk-h h2 span { font: 600 13.5px "Archivo", "Noto Sans TC", sans-serif; }
.wk-h .lnk { font-size: 14px; font-weight: 700; color: var(--blue-tx); }
.wk-r { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 0 16px; }
.wk-r .tile { width: auto; border-radius: 16px; box-shadow: var(--sh1); }

/* 篩選行做分隔（拎走「全部新嘢」標題）：白卡黐頂 */
.flt { margin-top: 22px; padding: 10px 12px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.dd { height: 40px; background: var(--sf); box-shadow: var(--sh1); font: 700 14px "Noto Sans TC", sans-serif; }
.dd.on { background: var(--tint-bl); color: var(--blue-tx); box-shadow: inset 0 0 0 1.5px currentColor; }
html[data-th="night"] .dd.on { background: var(--tint-bl); color: var(--blue-tx); }
.cnt { padding: 8px 16px 10px; }

/* 格仔：留邊、圓角、細漸層；街牌細一半（淨係中文）；#分類、標題、日期條細啲對齊 */
.grid { gap: 6px; padding: 0 12px; }
.tile { border-radius: 12px; }
.tile::after { background: linear-gradient(180deg, rgba(0, 0, 0, .16) 0, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .62) 100%); }
.tile .t-top { top: 7px; left: 7px; right: 7px; }
.sign.xxs { border-width: 1.2px; padding: 1.5px 3px 1.5px 4px; border-radius: 2px 0 0 2px; margin-right: 7px; }
.sign.xxs b { display: none; }
.sign.xxs i { font-size: 10px; letter-spacing: .3px; margin: 0; }
.sign.xxs::after { top: -1.2px; bottom: -1.2px; right: -7px; width: 7px; }
.sign.xxs::before { right: -5.3px; width: 5.5px; }
.tile .t-bot { left: 8px; right: 8px; bottom: 8px; gap: 4px; }
.tile .t-cat { font-size: 10.5px; -webkit-text-stroke: 2px #fff; padding: 0; }
.tile .t-ttl { font-size: 13px; line-height: 1.22; -webkit-text-stroke: 1.1px #000; text-shadow: 1.2px 1.2px 0 var(--blue); }
.tile .t-d { font-size: 10px; border-width: 1px; border-radius: 4px; padding: 1px 5px; }
.wk-r .tile .t-ttl { font-size: 15px; }
.wk-r .tile .t-bot { left: 10px; right: 10px; bottom: 10px; }

/* 內頁：細而精嘅淡色 chip、白卡多層陰影 */
.dt-body { gap: 14px; }
.tag { height: 26px; padding: 0 10px; font: 700 12.5px "Noto Sans TC", sans-serif; background: var(--tint-ink); color: var(--tx); }
.tag svg.lucide { width: 14px; height: 14px; color: currentColor; }
.tag.cat { background: var(--tint-bl); color: var(--blue-tx); }
.tag.cat svg.lucide { color: currentColor; }
.tag.st-on, .tag.st-today { background: var(--tint-gn); color: var(--ic-gn); }
html[data-th="day"] .tag.st-on, html[data-th="day"] .tag.st-today { color: #0B6B3D; }
.tag.st-end { background: var(--tint-pk); color: var(--pink-tx); }
.tag.st-soon { background: var(--tint-ink); box-shadow: none; }
.row .tag { background: var(--tint-ink); }
.box, .hl.card, .tips { border-radius: 20px; box-shadow: var(--sh1); }
html[data-th="night"] .box, html[data-th="night"] .hl.card, html[data-th="night"] .tips { box-shadow: var(--sh1); }
.row > svg.lucide { width: 18px; height: 18px; padding: 7px; box-sizing: content-box; border-radius: 999px; background: var(--tint-bl); color: var(--ic-bl); margin-top: -3px; }
.r-want > svg.lucide { background: var(--tint-pk); color: var(--ic-pk); }
.ra { height: 36px; padding: 0 12px; background: var(--tint-bl); color: var(--blue-tx); font-size: 13.5px; }
.hl li svg.lucide { background: var(--tint-bl); color: var(--ic-bl); }
.tips li svg.lucide { color: var(--ic-bl); }
.endcta { background: var(--sf); color: var(--tx); box-shadow: var(--sh1); border-radius: 22px; }
.endcta p { color: var(--tx2); }
.endcta .go { box-shadow: none; }
html[data-th="night"] .endcta { background: var(--sf); }
.dtop.solid { color: var(--bar-tx); }
.dtop.solid .icb:active { background: var(--sf2); }
.dock { background: var(--tab); }
.go { box-shadow: 0 6px 16px -8px rgba(60, 90, 0, .55); }
.dock .want { box-shadow: inset 0 0 0 1px var(--line); background: var(--sf); }
/* 相簿：唔左右掃，兩欄格仔 */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; margin: 0; padding: 0; }
.gfig { width: auto; }
.gfig img { border-radius: 14px; aspect-ratio: 1 / 1; }

/* 底部分頁、sheet */
.tabs { background: var(--tab); box-shadow: 0 -1px 0 var(--line); }
.sh { border-radius: 24px 24px 0 0; box-shadow: var(--sh2); }
.sh-list { background: var(--sf2); }
.sh-radio[aria-checked="true"] { background: var(--sf); box-shadow: var(--sh1); }

/* 行程、我：白卡多層陰影 */
html .f-trow, html .f-mrow, html .nrow, html .m-card, html .m-list, html .m-form { box-shadow: var(--sh1); }
.seg { background: var(--sf2); }
html .m-hero { box-shadow: var(--sh2); }

/* 搵人：頂欄白色半透明（日頭）；分類 chip 換行唔左右掃；底部矮卡淨出最近一張（全部喺列表睇）；我嘅一齊出直排 */
html[data-th="day"] .f-top { background: var(--bar); color: var(--bar-tx); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--sh2); }
html[data-th="day"] .f-loc { color: var(--tx); }
html[data-th="day"] .f-mine { background: var(--tint-bl); color: var(--blue-tx); }
html[data-th="day"] .f-chip { color: var(--tx); box-shadow: inset 0 0 0 1px var(--line); background: var(--sf); }
html[data-th="day"] .f-chip[aria-pressed="true"] { background: var(--tint-bl); color: var(--blue-tx); box-shadow: inset 0 0 0 1.5px currentColor; }
html[data-th="day"] .f-chip.is-sub { color: var(--tx2); }
html[data-th="day"] .f-chip.is-sub[aria-pressed="true"] { background: var(--tint-bl); color: var(--blue-tx); }
html[data-th="day"] .f-bar-r .icb.msg { color: var(--tx); }
html .f-cats { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
html .f-chip { height: 34px; }
html .f-rail { overflow: hidden; }
html .f-rail .f-mini { width: 100%; flex: 1 0 100%; }
html .f-rail .f-mini ~ .f-mini { display: none; }
html .f-hrail { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 6px; }

/* polish7 修：標題唔留孤字（唔用 -webkit-box 截行，改高度截 3 行＋平衡斷行）；分類揀咗用寶藍圈；搵人分類 chip 細啲；資料行平衡斷行 */
.tile .t-ttl { display: block; text-wrap: balance; max-height: calc(1.22em * 3 + 2px); overflow: hidden; -webkit-line-clamp: unset; }
.qi[aria-pressed="true"] .qi-i { box-shadow: 0 0 0 2px var(--sf), 0 0 0 3.5px var(--blue); }
html[data-th="night"] .qi[aria-pressed="true"] .qi-i { box-shadow: 0 0 0 2px var(--sf), 0 0 0 3.5px var(--ic-bl); }
html .f-chip { height: 30px; font-size: 13px; gap: 5px; padding: 0 11px 0 6px; }
html .f-chip:first-child { padding-left: 12px; }
html .f-cd { width: 20px; height: 20px; }
html .f-cd svg.lucide { width: 12px; height: 12px; }
html .f-cats { gap: 6px; row-gap: 6px; }
.row-m { text-wrap: balance; }
.tile .t-ttl { word-break: normal; overflow-wrap: normal; line-break: strict; }   /* keep-all 令中文淨係喺邊界硬斷，平衡斷行用唔到 → 出孤字；改返正常斷字畀 balance 平均分行 */
