/* ════════════════════════════════════════════════════════════════
   家族旅行誌 — the app look (redesign, 2026-10-02)
   black + grey surfaces, thin sharp type (Satoshi + PingFang TC 300), tight thin big numbers,
   grey gradient buttons, and the colour code: ONE colour per kind of information, always the same —
   hotel · time/dates · money · places · flights · people · warnings/avoid · best pick (★).
   Red means good; there is no green anywhere. Motion is slow and quiet (and none with reduce-motion).
   This file is public (the sign-in page needs it): no names, no secrets in it.
   ════════════════════════════════════════════════════════════════ */

/* self-hosted fonts (fonts/Satoshi-FFL.txt): the first paint never waits for them, and they work offline */
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0C0C0C; --card: #161616; --card2: #1B1B1B; --chip: #1F1F1F; --line: #2C2C2C; --line2: #3A3A3A;
  --t1: #FFFFFF; --t2: #CDCDCD; --t3: #9A9A9A;
  /* the colour code */
  --c-hotel: #C084FC; --c-time: #7AB2FF; --c-money: #FFD84D; --c-place: #67E8F9;
  --c-flight: #F97316; --c-people: #F062B8; --c-warn: #FFB020; --c-best: #EF4444;
  --r: 18px;
  --ui: "Satoshi", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
  --safe-l: env(safe-area-inset-left); --safe-r: env(safe-area-inset-right);
  /* the side gutter: 16 px, wider when the phone is turned and the notch sits on a side */
  --gl: max(16px, var(--safe-l)); --gr: max(16px, var(--safe-r));
  --slow: cubic-bezier(.4, 0, .2, 1);
  --call: #FFD84D;   /* the voice controls: the call yellow (buttons, not information) */
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--t1); font: 300 15px/1.65 var(--ui); -webkit-font-smoothing: antialiased; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.num { font-weight: 300; letter-spacing: -.04em; font-variant-numeric: proportional-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── the colour code: coloured words are a step heavier so small coloured text stays sharp ── */
.c-hotel, .c-time, .c-money, .c-place, .c-flight, .c-people, .c-warn, .c-best { font-weight: 500; }
.c-hotel { color: var(--c-hotel); } .c-time { color: var(--c-time); } .c-money { color: var(--c-money); }
.c-place { color: var(--c-place); } .c-flight { color: var(--c-flight); } .c-people { color: var(--c-people); }
.c-warn { color: var(--c-warn); } .c-best { color: var(--c-best); }
.num.c-hotel, .num.c-time, .num.c-money, .num.c-place, .num.c-flight, .num.c-people, .num.c-warn, .num.c-best { font-weight: 300; }

/* ── top bar: grows by the safe area so nothing tappable sits under the clock ── */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; height: calc(52px + var(--safe-t));
  padding: var(--safe-t) var(--gr) 0 var(--gl);
  background: rgba(12,12,12,.84); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line); }
.top .brand { font-weight: 500; font-size: 16px; letter-spacing: .02em; }
.top .brand i, .brand i { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; vertical-align: 2px; font-size: 0;
  background: conic-gradient(var(--c-hotel), var(--c-time), var(--c-place), var(--c-money), var(--c-best), var(--c-people), var(--c-hotel)); }
.top .grow { flex: 1; min-width: 0; }
.top .back { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -10px;
  font-size: 28px; line-height: 1; color: var(--t1); }
.top .ttl { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { font-size: 11.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* who is using this phone (the chat shows it on each message) — tap to change */
.top .me { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; margin-right: -6px; }
.top .me span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500;
  background: var(--chip); border: 1px solid var(--line2); color: var(--c-people); }

.page { max-width: 1100px; margin: 0 auto; padding: 14px var(--gr) calc(40px + var(--safe-b)) var(--gl); }

/* ── the front page cover: Taipei's clock on top, the next trip at the bottom, over the family's own photo ──
   the photo sits on its own layer and very slowly grows a little and comes back (alternate: it never jumps back);
   the words and buttons stay still above it */
.cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; color: #fff;
  min-height: calc(100svh - 52px - var(--safe-t) - 28px); max-height: 860px; border-radius: 22px; overflow: hidden;
  clip-path: inset(0 round 22px); background: var(--card); }
.cv-bg { position: absolute; inset: 0; z-index: 0; background: var(--card) center / cover no-repeat; transform-origin: 50% 60%;
  will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
.cover.still .cv-bg { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -.8%, 0); } }
.cover::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.10) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.30) 62%, rgba(0,0,0,.82) 100%); }
.cover > :not(.cv-bg) { position: relative; z-index: 2; }
.cv-top { padding: 22px 20px 0; }
.cv-clock { display: flex; align-items: baseline; gap: 8px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.cv-clock .num { font-size: 78px; line-height: .95; font-weight: 300; letter-spacing: -.05em; }
.cv-ap { font-size: 19px; font-weight: 400; }
.cv-date { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.cv-bot { padding: 0 20px 20px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.cv-tag { display: inline-flex; align-items: center; height: 26px; font-size: 12px; font-weight: 500; letter-spacing: .1em; padding: 0 10px; border-radius: 99px; text-shadow: none;
  color: var(--c-place); background: rgba(8,30,34,.55); border: 1px solid rgba(103,232,249,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cv-place { font-size: 40px; font-weight: 500; line-height: 1.15; margin-top: 8px; letter-spacing: .01em; }
.cv-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 6px; font-size: 15px; }
.cv-line:empty { display: none; }
.cv-temp { font-size: 34px; font-weight: 300; letter-spacing: -.04em; }
.cv-left b { font-weight: 300; font-size: 22px; letter-spacing: -.03em; color: var(--c-time); }
.cv-ask { font-weight: 300; font-size: 32px; line-height: 1.25; letter-spacing: -.01em; }
.cv-sub { font-size: 14px; margin-top: 6px; max-width: 34em; }
.cv-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cv-btns .btn { background: rgba(28,28,28,.62); border-color: rgba(255,255,255,.26); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); text-shadow: none; }
.cv-btns .btn.on { background: rgba(255,255,255,.92); border-color: transparent; color: #111; }
@media (min-width: 900px) { .cover { min-height: 600px; } .cv-top { padding: 30px 32px 0; } .cv-bot { padding: 0 32px 30px; }
  .cv-clock .num { font-size: 104px; } .cv-place { font-size: 54px; } }

/* ── sections ── */
.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { font-weight: 500; font-size: 18px; letter-spacing: .01em; }
.sec-h .kick { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--t2); }
.sec-h .more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; margin-top: -12px; margin-bottom: -12px; padding: 0 2px 0 12px; font-size: 13px; color: var(--t2); }
.sec-h .dot { width: 6px; height: 6px; border-radius: 50%; background: #8A8A8A; transform: translateY(-2px); flex: 0 0 auto; }
.kicker { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; color: var(--t2); }

/* ── cards ── */
.card { background: linear-gradient(180deg, #191919, var(--card) 40%); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.35); }
.pad { padding: 16px; }

/* ── pills / chips ── */
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500;
  background: var(--chip); border: 1px solid var(--line2); white-space: nowrap; }
.pill.best { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.7); color: #fff; }
.pill.best b { color: var(--c-best); font-weight: 500; }
.pill.warn { background: rgba(255,176,32,.10); border-color: rgba(255,176,32,.6); color: var(--c-warn); }
.pill.time { background: rgba(122,178,255,.10); border-color: rgba(122,178,255,.5); color: var(--c-time); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips > span { flex: 0 0 auto; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line2); white-space: nowrap; }

/* ── buttons: grey gradient, 44 px tall ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px;
  background: linear-gradient(180deg, #303030, #232323); border: 1px solid #4A4A4A; color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.4); transition: transform .2s var(--slow), opacity .3s; }
.btn.block { width: 100%; }
.btn.quiet { background: var(--chip); border-color: var(--line2); font-weight: 400; box-shadow: none; }
.btn.small { height: 44px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn.on { background: linear-gradient(180deg, #4A4A4A, #3A3A3A); border-color: #9A9A9A; font-weight: 500; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }

/* ── lists and rows ── */
.list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }   /* minmax(0,…): long one-line text never widens the page */
@media (min-width: 760px) { .list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-height: 64px; color: #fff; }
.row .pic { width: 56px; height: 56px; border-radius: 12px; background: var(--chip) center / cover no-repeat; flex: 0 0 auto; }
.row .txt { flex: 1; min-width: 0; }
.row b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .txt > span { display: block; font-size: 13px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { color: var(--t2); font-size: 18px; flex: 0 0 auto; }
.row.fail { border-color: rgba(255,176,32,.45); border-style: dashed; }
.row.fail .txt > span { white-space: normal; }   /* the reason it stopped is read in full */
.row .go { flex: 0 0 auto; }
.empty { padding: 18px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--t2); font-size: 13.5px; text-align: center; }
.notes-at { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--t2); white-space: nowrap; }
.notes-at::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-hotel); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-time); box-shadow: 0 0 0 3px rgba(122,178,255,.22);
  animation: breathe 2.4s ease-in-out infinite; flex: 0 0 auto; margin: 0 6px 0 3px; vertical-align: 1px; }
@keyframes breathe { 50% { opacity: .35; } }
/* a copy kept on this phone, shown when the Mac or the network is off */
.offline { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px;
  background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.4); color: var(--c-warn); }

/* ── carousels: one card per plan, sideways ── */
.rail { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gr)) 0 calc(-1 * var(--gl)); padding: 2px var(--gr) 6px var(--gl);
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gl); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail > .empty { flex: 0 0 76%; max-width: 300px; display: grid; place-items: center; min-height: 120px; }
.pc { flex: 0 0 76%; max-width: 300px; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: #fff; display: flex; flex-direction: column; }
.pc .ph { position: relative; aspect-ratio: 4 / 3; background: #222 center / cover no-repeat; }
.pc .ph .glass-tag { position: absolute; left: 10px; top: 10px; }
.pc .in { padding: 11px 13px 13px; }
.pc b { display: block; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .meta { font-size: 12.5px; }
.pc .upd { font-size: 12px; color: var(--t2); margin-top: 4px; }
.pc.add { align-items: center; justify-content: center; text-align: center; border-style: dashed; border-color: var(--line2); background: transparent; min-height: 250px; }
.pc.add .plus { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 300; border: 1px solid var(--line2); }
.pc.add span { font-size: 14px; color: var(--t2); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; margin-top: 4px; }
.meta span { white-space: nowrap; }
.glass-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; color: #fff;
  background: rgba(15,15,15,.6); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.duo { display: grid; gap: 30px 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }

/* ── a trip card (我們的旅程) ── */
.trip { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--card) center / cover no-repeat; border: 1px solid var(--line); color: #fff; }
.trip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78)); }
.trip .glass-tag { position: absolute; z-index: 1; left: 12px; top: 12px; }
.trip .in { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.trip b { display: block; font-weight: 500; font-size: 19px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.trip .in > span { font-size: 13px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }

/* ── the snorkel card (秘密好房 on the home): a slow loop, only while on screen ── */
.dive { position: relative; display: block; margin-bottom: 12px; border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 9; min-height: 150px;
  border: 1px solid var(--line); background: #071a22 center / cover no-repeat; color: #fff; }
.dive video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dive::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.dive .in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
  text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.dive b { font-weight: 500; font-size: 17px; }
.dive .in > span { font-size: 13px; }
@media (min-width: 760px) { .dive { aspect-ratio: auto; height: 240px; } }   /* a computer: a band, not a wall of water */
.find { display: flex; align-items: center; gap: 12px; margin-top: 12px; min-height: 52px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: #fff; }
.find svg { width: 20px; height: 20px; }
.find span { flex: 1; font-size: 14.5px; }
.find em { font-style: normal; color: var(--t2); font-size: 18px; }

/* ── a picture banner (the plan board's destination) ── */
.hero-card { position: relative; color: #fff; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--card) center / cover no-repeat;
  border: 1px solid var(--line); display: flex; align-items: flex-end; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.75)); }
.hero-card .in { position: relative; z-index: 1; padding: 16px; width: 100%; }
.hero-card h1 { font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: .01em; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.hero-card p { font-size: 13.5px; margin-top: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }

/* ── segmented switch ── */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.seg button { flex: 1; height: 40px; border-radius: 10px; font-size: 14px; color: var(--t2); }
.seg button.on { background: #262626; color: #fff; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line2); }
.seg button .n, .seg .n { color: var(--c-hotel); font-weight: 500; }

/* ── the planning room ── */
.room { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .room { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .room .seg { display: none; } .room .pane { display: block !important; }
  .board-pane { position: sticky; top: calc(66px + var(--safe-t)); max-height: calc(100svh - 80px - var(--safe-t)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 130px; }
.msg { max-width: 90%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.75; word-break: break-word; }
.msg.me { align-self: flex-end; background: #232323; border: 1px solid var(--line2); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.ai p { margin: 0 0 6px; } .msg.ai p:last-child { margin: 0; }
.msg.ai b { font-weight: 500; }
.msg.ai ul { margin: 6px 0 4px; padding-left: 0; list-style: none; }
.msg.ai li { position: relative; padding-left: 14px; margin-bottom: 6px; }
.msg.ai li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 4px; height: 4px; border-radius: 50%; background: var(--t2); }
.msg.ai a { color: #fff; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; word-break: break-all; }
.msg .who { display: block; font-size: 11.5px; font-weight: 500; color: var(--c-people); margin-bottom: 2px; white-space: normal; }
.msg .say { margin-top: 8px; font-size: 13px; color: var(--t2); display: inline-flex; gap: 4px; align-items: center; min-height: 44px;
  padding: 0 14px; border-radius: 22px; background: #1A1A1A; border: 1px solid var(--line2); }
.msg .say.on { color: var(--t1); border-color: #9A9A9A; }
.from { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t2); margin: 0 0 -6px; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: #fff; flex: 0 0 auto;
  background: conic-gradient(from 200deg, var(--c-hotel), var(--c-time), var(--c-place), var(--c-money), var(--c-best), var(--c-hotel)); padding: 1.5px; }
.av span { width: 100%; height: 100%; border-radius: 50%; background: #111; display: grid; place-items: center; }
.work { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; padding: 11px 15px; border-radius: 18px; background: var(--card); border: 1px dashed var(--line2); font-size: 13px; color: var(--t2); max-width: 90%; }
.work .live { display: flex; align-items: center; gap: 8px; color: #fff; }
.work .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-time); animation: breathe 2.4s ease-in-out infinite; }
.work .live b { font-weight: 300; color: var(--c-time); }
.hello { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.hello h3 { font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.hello p { font-size: 14px; color: var(--t2); }
.ideas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
.ideas::-webkit-scrollbar { display: none; }
.ideas button { flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line2); font-size: 13.5px; color: #fff; white-space: nowrap; }

/* the composer: a solid bar at the bottom, above the home bar (on a computer: under the chat column, still solid) */
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gr) calc(10px + var(--safe-b)) var(--gl);
  background: rgba(12,12,12,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .composer { left: 50%; right: auto; transform: translateX(-50%); width: min(1100px, 100%); padding-right: calc(var(--gr) + 396px); pointer-events: none;
    background: linear-gradient(90deg, rgba(12,12,12,.97) calc(100% - 396px), transparent calc(100% - 396px)); border-top: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .composer > * { pointer-events: auto; }
  .composer::before { content: ""; position: absolute; left: 0; right: 396px; top: 0; border-top: 1px solid var(--line); } }
.composer .bar { display: flex; align-items: flex-end; gap: 8px; max-width: 760px; margin: 0 auto; }
@media (min-width: 900px) { .composer .bar { margin: 0; } }
.composer textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; resize: none; padding: 12px 16px; border-radius: 23px; background: var(--card); border: 1px solid var(--line2); color: #fff; font: 300 16px/1.4 var(--ui); outline: none; }   /* 16 px: an iPhone zooms the page on a smaller box */
.composer textarea::placeholder { color: var(--t2); }
.composer textarea:disabled { opacity: .5; }
.round { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--chip); border: 1px solid var(--line2); font-size: 18px; color: #fff; }
.round svg { width: 19px; height: 19px; }
.round.send { background: linear-gradient(180deg, #3A3A3A, #2A2A2A); border-color: #555; }
.round:disabled { opacity: .45; }
/* the mic = a call button: black with a yellow ring; yellow when it listens */
.round.mic { background: #0C0C0C; border: 2px solid var(--call); color: #fff; }
.round.mic.on { background: var(--call); border-color: var(--call); color: #0C0C0C; }
.composer .hint { font-size: 12px; color: var(--t2); margin: 6px 4px 0; min-height: 1em; max-width: 760px; }
@media (max-width: 899px) { .composer .hint { margin-left: auto; margin-right: auto; } }

/* ── the plan board ── */
.board { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.board .card { padding: 16px; }
.board .card h4 { font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--t2); margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 7px 10px; font-size: 14.5px; }
.facts dt { color: var(--t2); } .facts dd { color: #fff; }
.hotel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hotel.fav { border-color: rgba(239,68,68,.55); }
.hotel .ph { aspect-ratio: 16 / 8; background: var(--chip) center / cover no-repeat; }
.hotel .in { padding: 13px 15px 15px; }
.hotel b.nm { display: block; font-weight: 500; font-size: 16.5px; color: var(--c-hotel); }
.hotel .fav-tag { margin-left: 6px; vertical-align: 2px; }
.hotel .meta { font-size: 13px; margin-top: 2px; }
.hotel .why { font-size: 14px; margin-top: 8px; color: var(--t1); }
.hotel .best { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(239,68,68,.13), rgba(239,68,68,0) 85%); border: 1px solid rgba(239,68,68,.4); font-size: 14px; }
.hotel .best small { display: block; font-size: 11px; letter-spacing: .1em; color: var(--c-best); font-weight: 500; margin-bottom: 2px; }
.hotel .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hotel .notes-at { margin-top: 8px; }
.todo { list-style: none; }
.todo li { list-style: none; display: flex; gap: 10px; font-size: 14px; margin-bottom: 7px; }
.todo li::before { content: ""; width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--line2); flex: 0 0 auto; margin-top: 4px; }
.qs { list-style: none; }
.qs li { list-style: none; font-size: 14px; margin-bottom: 7px; }
.qs li::before { content: "？"; color: var(--c-warn); font-weight: 500; margin-right: 4px; }

/* ══ 秘密好房 · the room finder, the research, the report (rooms.html + rooms.js) ══ */
/* the finder */
.finder .f-l { display: block; font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--t2); margin: 16px 0 8px; }
.finder .f-l:first-child { margin-top: 0; font-size: 16px; letter-spacing: .01em; color: var(--t1); }
.finder .f-hint { font-size: 12.5px; color: var(--t2); margin: -4px 0 8px; }
.field { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; background: #101010; border: 1px solid var(--line2); color: #fff;
  font: 300 16px/1.5 var(--ui); outline: none; }   /* 16 px: an iPhone zooms the page on a smaller box */
textarea.field { padding: 12px 14px; resize: vertical; }
.field:focus { border-color: #6A6A6A; }
.field::placeholder { color: #8A8A8A; }
.wants { display: flex; flex-wrap: wrap; gap: 8px; }
.want { height: 40px; padding: 0 14px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line2); font-size: 14px; color: var(--t2);
  transition: background .6s var(--slow), border-color .6s var(--slow), color .6s var(--slow); }
.want[aria-pressed="true"] { background: #2E2E2E; border-color: #9A9A9A; color: #fff; font-weight: 500; }
.want[aria-pressed="true"]::before { content: "✓ "; }
.finder #go { margin-top: 18px; }
.f-err { margin-top: 10px; font-size: 13.5px; color: var(--c-warn); }
.f-err:empty { display: none; }
/* 「這間我們研究過了」 — open the report or research it again */
.known { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(192,132,252,.07); border: 1px solid rgba(192,132,252,.35); font-size: 14px; }
.known .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.known .acts .btn { flex: 1; }
.known:empty { display: none; }
/* a researched hotel in the list: its own photo on top (photos[0] only), then the answer */
.hcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); color: #fff; }
.hcard .ph { aspect-ratio: 16 / 9; background: var(--chip) center / cover no-repeat; }
.hcard .in { padding: 12px 14px 14px; }
.hcard b { display: block; font-weight: 500; font-size: 16px; }
.hcard p { font-size: 13.5px; color: var(--t2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .notes-at { margin-top: 6px; }

/* the research running */
.research .clock { margin-bottom: 4px; }
.live-line { display: flex; align-items: center; gap: 2px; font-size: 14px; color: #fff; margin-top: 4px; }
.steps { display: grid; gap: 6px; margin-top: 12px; grid-template-columns: minmax(0, 1fr); }
.steps div { font-size: 13.5px; color: var(--t2); } .steps div.now { color: #fff; }

/* the report */
.rhero { position: relative; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.rhero.pic::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(12,12,12,.55) 66%, rgba(12,12,12,.94) 100%); }
.rhero .ps { border-radius: 0; }
.rhero .ps-track > .ps-it { aspect-ratio: 4 / 3; max-height: 62svh; }
.rhero .in { position: relative; z-index: 1; padding: 18px 16px 16px; }
.rhero.pic .in { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.rhero.pic .in a { pointer-events: auto; }
.rhero h1 { font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; margin-top: 6px; }
.rhero .meta { font-size: 13.5px; margin-top: 6px; }
.rhero .meta span { white-space: normal; }
@media (min-width: 900px) { .rhero .ps-track > .ps-it { aspect-ratio: 21 / 9; } .rhero h1 { font-size: 38px; } .rhero .in { padding: 22px 24px; } }
.cols { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.colA, .colB { display: contents; }
@media (min-width: 900px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
  .colA, .colB { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .colB { position: sticky; top: calc(66px + var(--safe-t)); } }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; } .o8 { order: 8; } .o9 { order: 9; }
.verdict { padding: 16px; border-color: rgba(239,68,68,.45); background: linear-gradient(165deg, rgba(239,68,68,.12), #161616 45%); }
.verdict .v-top { display: flex; align-items: center; gap: 8px; }
.verdict .v-top .conf { margin-left: auto; font-size: 12.5px; color: var(--t2); }
.verdict .v-top .conf b { color: #fff; font-weight: 500; }
.verdict h2 { font-weight: 300; font-size: 26px; line-height: 1.25; letter-spacing: -.01em; margin-top: 12px; }
.verdict .one { font-size: 16px; font-weight: 400; line-height: 1.75; margin-top: 10px; }
.verdict .warnline { font-size: 14px; line-height: 1.7; margin-top: 10px; }
.verdict .why { font-size: 12.5px; color: var(--t2); line-height: 1.7; margin-top: 10px; }
.verdict .took { margin-top: 8px; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.stats div { padding: 0 4px; min-width: 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.stats b { display: block; font-size: 28px; line-height: 1.1; }
.stats span { font-size: 11.5px; color: var(--t2); }
.wants-on { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.wants-on .lbl { font-size: 12px; color: var(--t2); margin-right: 2px; }
.wants-on .pill { font-weight: 400; }
.wants-on .pill::before { content: "✓"; font-weight: 500; }
.mapcard { overflow: hidden; }
.mapcard .hd { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 10px; }
.mapcard .hd h3 { font-weight: 500; font-size: 16px; }
.mapcard .hd span { margin-left: auto; font-size: 12px; color: var(--t2); }
.sat { position: relative; display: block; width: 100%; background: #000; cursor: zoom-in; }
.sat img { width: 100%; min-height: 180px; object-fit: cover; }   /* the card keeps its size while Esri's picture arrives */
.sat .n { position: absolute; top: 8px; right: 10px; font-weight: 500; font-size: 12px; color: #fff; padding: 2px 9px; border-radius: 99px; background: rgba(12,12,12,.7); border: 1px solid rgba(255,255,255,.25); }
.sec-card { padding: 16px; }
.sec-card .sh { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sec-card .sh h3 { font-weight: 500; font-size: 17px; }
.sec-card .layout { font-size: 14.5px; line-height: 1.85; }
.zones { display: grid; gap: 12px; }
.zone { padding: 16px; }
.zone .zt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zone .faces { font-size: 12.5px; }
.zone .rooms { font-weight: 300; font-size: 28px; letter-spacing: -.02em; margin-top: 10px; line-height: 1.25; }
.zone .zn { font-size: 14px; margin-top: 2px; }
.zone.best { border-color: rgba(239,68,68,.5); background: linear-gradient(165deg, rgba(239,68,68,.10), var(--card) 50%); }
.zone.avoid { border-style: dashed; border-color: rgba(255,176,32,.5); }
.pts { margin-top: 10px; list-style: none; display: grid; gap: 9px; }
.pts li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.8; }
.pts li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: #8A8A8A; }
.zone.best .pts li::before { background: var(--c-best); }
.zone.avoid .pts li::before { background: var(--c-warn); }
.pts.q li::before { content: "？"; width: auto; height: auto; background: none; top: 0; left: -1px; color: var(--c-warn); font-weight: 500; font-size: 13px; }
.pts.t li::before { background: var(--c-time); }
.evs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; vertical-align: 1px; }
/* evidence chips: small to look at, 44 px to tap (the hit area reaches past the chip) */
.ev { position: relative; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line2);
  font-size: 11.5px; font-weight: 400; color: #fff; white-space: nowrap; line-height: 1; }
.ev::after { content: ""; position: absolute; inset: -9px -3px; }
.ev.on { border-color: #9A9A9A; background: #2A2A2A; }
.ev .c-time { font-weight: 400; }
.evbox { margin-top: 8px; padding: 11px 13px; border-radius: 12px; background: #121212; border: 1px solid var(--line2); font-size: 13.5px; }
.evbox q { display: block; line-height: 1.75; }
.evbox a, .evbox span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--t2); word-break: break-all; }
.book dl { margin-top: 4px; }
.book .brow { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.book .brow dt { flex: 0 0 72px; color: var(--t2); font-size: 13px; }
.book .brow dd { min-width: 0; word-break: break-word; }
.book .how { font-size: 14px; line-height: 1.85; margin: 10px 0 12px; color: var(--t2); }
.mail { border-radius: 14px; background: #101010; border: 1px solid var(--line2); overflow: hidden; }
.mail .mh { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12px; color: var(--t2); border-bottom: 1px solid var(--line); }
.mail .mh b { color: #fff; font-weight: 500; word-break: break-all; }
.mail pre, .book details pre { white-space: pre-wrap; word-break: break-word; font: 300 13.5px/1.7 var(--ui); padding: 10px 12px 12px; color: #E8E8E8; }
.book details { margin-top: 6px; }
.book details pre { background: #101010; border: 1px solid var(--line2); border-radius: 12px; }
.book summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; color: var(--t2); cursor: pointer; }
.book .acts { display: flex; gap: 8px; margin-top: 12px; }
.book .acts .btn { flex: 1; }
.book .fine { font-size: 12px; color: var(--t2); margin-top: 10px; }
.facts-list { list-style: none; display: grid; gap: 0; margin-top: 4px; }
.facts-list li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts-list li:last-child { border-bottom: none; }
.facts-list li span { flex: 1; min-width: 0; }
.facts-list li b { flex: 0 0 auto; font-weight: 300; font-size: 20px; letter-spacing: -.02em; }
.links { display: grid; gap: 8px; margin-top: 10px; grid-template-columns: minmax(0, 1fr); }   /* long map titles never widen the page */
.vids { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 8px calc(-1 * var(--gr)) 0 calc(-1 * var(--gl)); padding: 0 var(--gr) 4px var(--gl); scroll-snap-type: x mandatory; }
.vids::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 0; padding: 0; } }
.vid { flex: 0 0 210px; scroll-snap-align: start; color: #fff; }
.vid .th { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: #222 center / cover no-repeat; border: 1px solid var(--line); }
.vid .th span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.72); }
.vid b { font-size: 13px; font-weight: 400; margin-top: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.foot { font-size: 12px; color: var(--t2); margin-top: 18px; line-height: 1.8; }
.foot a { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }

/* ── a hotel's own photos: the strip (swipe sideways) and the full-screen viewer (pinch / double-tap zoom, swipe down to close) ── */
.ps { position: relative; overflow: hidden; background: #111; }
.ps-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ps-track::-webkit-scrollbar { display: none; }
.ps-it { flex: 0 0 100%; aspect-ratio: 16 / 10; scroll-snap-align: start; scroll-snap-stop: always; display: block; padding: 0; background: #111; cursor: zoom-in; }
.ps-it img { width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ps-it.gone { display: none; }
.ps-n { position: absolute; z-index: 2; top: 10px; right: 10px; pointer-events: none; }
.pv { position: fixed; inset: 0; z-index: 300; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none;
  overflow: hidden; opacity: 0; transition: opacity .6s var(--slow); }
.pv.open { opacity: 1; }
.pv-img { max-width: 100vw; max-height: 100svh; width: auto; height: auto; object-fit: contain; transform-origin: 50% 50%; will-change: transform;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.pv-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(6px + var(--safe-t)) var(--gr) 6px var(--gl); background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.pv-n { font-size: 13px; color: var(--t2); letter-spacing: .06em; }
.pv-x { width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; color: #fff; }
.pv-go { position: absolute; top: 50%; width: 44px; height: 64px; margin-top: -32px; display: none; place-items: center; font-size: 34px; font-weight: 300; color: #fff;
  background: rgba(28,28,28,.55); border-radius: 12px; }
.pv-p { left: var(--gl); } .pv-nx { right: var(--gr); }
@media (hover: hover) and (pointer: fine) { .pv-go { display: grid; } }

/* ── 航線 · the God's Eye flight globe (flight page + the home card) ── */
.eye { position: relative; height: 58svh; min-height: 340px; background: #000; border-bottom: 1px solid var(--line); }
.eye-globe, .globe-card .g { position: absolute; inset: 0; }
.cesium-widget-credits, .cesium-credit-lightbox-overlay { font-size: 10px !important; opacity: .75; }
.cesium-credit-logoContainer img { height: 14px !important; }
.hud { position: absolute; z-index: 5; font-size: 11px; letter-spacing: .12em; color: var(--t2); pointer-events: none; text-shadow: 0 1px 6px #000; }
.hud b { display: block; color: #fff; font-weight: 500; letter-spacing: .26em; }
.hud .c-flight { letter-spacing: .1em; }
.hud.tl { top: 10px; left: var(--gl); } .hud.tr { top: 10px; right: var(--gr); text-align: right; }
.eye-tools { position: absolute; z-index: 5; right: calc(var(--gr) - 4px); bottom: 30px; display: flex; gap: 8px; }
.eye-tools .btn, .zoom .btn, .places .btn { background: rgba(28,28,28,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
/* the zoom column on the globe's right edge: 近看 · the slider (up = closer) · 全景 */
.zoom { position: absolute; z-index: 5; right: calc(var(--gr) - 4px); top: 44px; bottom: 80px; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.zoom .btn { width: 56px; padding: 0; }
.ztrack { position: relative; flex: 1; width: 44px; min-height: 90px; touch-action: none; cursor: ns-resize; outline: none; }
.ztrack::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 4px; margin-left: -2px; border-radius: 2px; background: rgba(255,255,255,.24); }
.zthumb { position: absolute; left: 50%; top: 100%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff;
  border: 2px solid #3A3A3A; box-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; }
.ztrack:focus-visible .zthumb { outline: 2px solid #fff; outline-offset: 2px; }
.eye-tools .btn.on, .places .btn.on { background: linear-gradient(180deg, #4A4A4A, #3A3A3A); border-color: #9A9A9A; }
.row.leg { width: 100%; text-align: left; }
.row .no { flex: 0 0 auto; width: 70px; font-size: 16px; color: var(--c-flight); }
.row .live b.air { display: inline; color: var(--c-flight); font-weight: 500; }
.fine { font-size: 12px; color: var(--t2); margin-top: 14px; }
.globe-card { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; border: 1px solid var(--line); }
.globe-card .in { position: absolute; left: 14px; right: 14px; bottom: 34px; z-index: 4; pointer-events: none; }
.globe-card .in b { display: block; font-weight: 500; font-size: 17px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.globe-card .in span { font-size: 12.5px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.globe-card .hud.tl { left: 14px; }
.globe-card .tap { position: absolute; inset: 0; z-index: 6; }
/* the place buttons on the globe (one tap → that airport's close-up), clear of the zoom column */
.places { position: absolute; z-index: 5; top: 52px; left: var(--gl); right: calc(var(--gr) + 66px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.places::-webkit-scrollbar { display: none; }
.places .btn { flex: 0 0 auto; height: 36px; padding: 0 12px; font-size: 13px; }

/* swipe-back tab and the research clock */
.swipe-back { position: fixed; z-index: 9999; left: 0; top: 50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; line-height: 1; color: #fff; background: rgba(28,28,28,.9); border: 1px solid var(--line2); opacity: 0;
  transform: translate(-44px, -50%); transition: opacity .15s; pointer-events: none; }
.clock { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.clock b { font-size: 46px; font-weight: 300; letter-spacing: -.04em; color: var(--c-time); line-height: 1.05; }
.clock span { font-size: 13px; color: var(--t2); }
.took { font-size: 12.5px; color: var(--t2); margin-top: 6px; }

/* ── a small sheet (「你是誰？」) ── */
.sheet-bg { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .6s var(--slow); }
.sheet-bg.open { opacity: 1; }
.sheet { width: 100%; max-width: 480px; padding: 20px var(--gr) calc(20px + var(--safe-b)) var(--gl); background: var(--card2); border: 1px solid var(--line2);
  border-radius: 22px 22px 0 0; transform: translateY(24px); transition: transform .6s var(--slow); }
.sheet-bg.open .sheet { transform: none; }
@media (min-width: 600px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h3 { font-weight: 500; font-size: 18px; }
.sheet p { font-size: 13.5px; color: var(--t2); margin-top: 4px; }
.sheet input { width: 100%; height: 48px; margin-top: 14px; padding: 0 14px; border-radius: 14px; background: #101010; border: 1px solid var(--line2); color: #fff; font: 300 16px var(--ui); outline: none; }
.sheet .chips { margin-top: 10px; flex-wrap: wrap; }
.sheet .chips button { height: 40px; padding: 0 14px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line2); font-size: 14px; }
.sheet .acts { display: flex; gap: 8px; margin-top: 16px; }
.sheet .acts .btn { flex: 1; }

/* ── 「聲音」: the Mac voice + speed for read-aloud (a sheet from the 🔈 button in the top bar) ── */
.top .tool { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; margin-right: -6px; color: var(--t1); }
.top .tool svg { width: 20px; height: 20px; }
.top .tool span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); border: 1px solid var(--line2); }
.vp { display: grid; gap: 8px; margin-top: 14px; }
.vp-l { font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--t2); margin-top: 4px; }
.vp select { width: 100%; height: 48px; padding: 0 40px 0 14px; border-radius: 14px; background: #101010; border: 1px solid var(--line2); color: #fff;
  font: 300 16px var(--ui); -webkit-appearance: none; appearance: none; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, #CDCDCD 50%), linear-gradient(135deg, #CDCDCD 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.vp-rate { display: flex; gap: 4px; padding: 4px; background: #101010; border: 1px solid var(--line2); border-radius: 14px; }
.vp-rate button { flex: 1; height: 40px; border-radius: 10px; font-size: 14.5px; color: var(--t2); }
.vp-rate button.on { background: #262626; color: #fff; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line2); }
.vp-try { margin-top: 6px; }
.vp-try.on { border-color: #9A9A9A; color: #fff; }
.vp-msg { font-size: 12.5px; color: var(--c-warn); min-height: 1em; }
/* who is using the site — name + own PIN (Wei 10-02 22:3x) · 管家的個性 */
.sheet .chips button.on { color: #fff; border-color: #fff; }
.sheet .chips button small { font-size: 11px; margin-left: 2px; opacity: .7; }
.sheet.who input[type=password] { letter-spacing: .4em; font-weight: 500; }
.who-err { min-height: 1.2em; margin-top: 8px !important; color: var(--c-warn) !important; }
.sheet { max-height: 92vh; overflow-y: auto; }
.pp { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chips button { height: 38px; padding: 0 14px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line2); font-size: 14px; color: var(--t2); }
.pp-chips button.on { color: #fff; border-color: #fff; }
.pp textarea { width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 14px; background: #101010; border: 1px solid var(--line2);
  color: #fff; font: 300 16px/1.5 var(--ui); resize: vertical; outline: none; }
.pp-note, .pp-who { font-size: 12.5px !important; color: var(--t3) !important; }

/* ── 說話 · the voice bar (TC.talkBar): at the very bottom, over the home bar's safe area, while any voice is in use ── */
.composer.talking > .bar, .composer.talking > .hint { display: none; }
.tbar { display: flex; align-items: center; gap: 6px; max-width: 760px; margin: 0 auto; min-height: 40px; }
.tbar[hidden] { display: none; }
@media (min-width: 900px) { .tbar { margin: 0; } }
.tbar.fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: none; padding: 8px var(--gr) calc(6px + var(--safe-b)) var(--gl);
  background: rgba(12,12,12,.96); border-top: 1px solid var(--line); }
.tbar .call { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: #0C0C0C; border: 2px solid var(--call); color: #fff;
  transition: background .6s var(--slow), color .6s var(--slow); }
.tbar .call svg { width: 18px; height: 18px; }
.tbar .call.on { background: var(--call); color: #0C0C0C; }
.tbar .call.end { width: auto; border-radius: 99px; padding: 0 14px; font-size: 14px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }   /* MC's yellow End call pill */
.tbar .tb-mute { margin-left: 4px; }
.tb-st { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 300; letter-spacing: .04em; color: var(--call); white-space: nowrap; overflow: hidden; }
/* the sound meter (app.js meter): five yellow bars that rise with his voice; she speaks → they sway; she thinks → they breathe */
.tb-mtr { display: inline-flex; align-items: center; gap: 2px; height: 18px; flex: 0 0 auto; }
.tb-mtr b { width: 3px; height: 3px; border-radius: 2px; background: var(--call); transition: height .09s linear; }
.tbar[data-st=idle] .tb-mtr { opacity: .3; }
.tbar[data-st=thinking] .tb-mtr, .tbar[data-st=hearing] .tb-mtr { animation: tb-breathe 1.6s ease-in-out infinite; }
.tbar[data-st=speaking] .tb-mtr b { animation: tb-sway .9s ease-in-out infinite; }
.tbar[data-st=speaking] .tb-mtr b:nth-child(2) { animation-delay: -.3s; } .tbar[data-st=speaking] .tb-mtr b:nth-child(3) { animation-delay: -.6s; }
.tbar[data-st=speaking] .tb-mtr b:nth-child(4) { animation-delay: -.15s; } .tbar[data-st=speaking] .tb-mtr b:nth-child(5) { animation-delay: -.45s; }
@keyframes tb-sway { 50% { height: 12px; } }
@keyframes tb-breathe { 50% { opacity: .35; } }
.tb-b { flex: 0 0 auto; height: 36px; padding: 0 10px; border-radius: 99px; background: #1B1B1B; border: 1px solid #3A3A3A; font-size: 13px; color: #fff; white-space: nowrap; }
.tb-b:disabled { opacity: .4; }
.tb-b[hidden] { display: none; }
.tb-b.muted { background: #FFD84D; color: #111; border-color: #FFD84D; }   /* 靜音 on: the MC call yellow, unmistakable */
.tbar[data-st=muted] .tb-mtr b { background: #8A8A8A; }
/* the mic ON is unmistakable (Wei 10-02 23:5x: 「I can't tell if this voice system is on or off」): bigger words, a live dot, a call-yellow
   line on top of the bar, and the header mic rings while it is on (body.mic-on) — off = no bar, a plain mic */
.tbar:not([hidden]) { border-top: 2px solid var(--call) !important; }
.tb-st { font-size: 15px; font-weight: 400; }
.tb-st .tb-on { font-weight: 600; color: var(--call); }
.tb-st .tb-sep { font-style: normal; opacity: .6; }
/* the header mic = MC's own (Wei 10-02 23:5x): a yellow RING with black inside = ready (off) · tap → SOLID yellow = on, working · tap
   again → the ring again. Every page (the report page's mic was a grey chip). */
.top .talk-t span { background: #0C0C0C; border: 2px solid var(--call, #FFD84D); color: #fff; }
body.mic-on .talk-t span, .top .talk-t.on span { background: var(--call, #FFD84D) !important; color: #0C0C0C !important; border-color: var(--call, #FFD84D) !important; }
@media (max-width: 480px) { .tb-st .tb-sep, .tb-st .tb-on { display: none; } }   /* a phone: the bar itself replaces the typing box — the word is enough */
@media (prefers-reduced-motion: reduce) { .tbar .tb-mtr, .tbar .tb-mtr b { animation: none !important; } }
@media (max-width: 360px) { .tb-b { padding: 0 8px; font-size: 12.5px; } .tbar .call { width: 38px; height: 38px; } }
/* a slimmer bar that covers nothing (Wei 10-03 02:5x: 「make it nice so they don't overlap with other stuff」): the composer that holds it
   is slim too while it talks, and a page with a bar of its own ends above it (--tb-h = the bar's height, measured by TC.talkBar) */
.composer.talking { padding-top: 6px; padding-bottom: calc(6px + var(--safe-b)); }
body.tb-pad { padding-bottom: var(--tb-h, 0px); }
.tb-home { background: var(--call, #FFD84D) !important; color: #0C0C0C !important; border-color: var(--call, #FFD84D) !important; font-weight: 500; }
@media (max-width: 480px) { .tbar.staying [data-k=voice] { display: none; } }   /* a phone: 回到對話 takes 聲音's place */
/* the talk follows him: another page of the app opens in a frame ABOVE the talking page, ending above its bar (TC.go / stayOpen) */
.stay { position: fixed; left: 0; right: 0; top: 0; bottom: var(--tb-h, 0px); z-index: 59; background: #0C0C0C; }
.stay iframe { display: block; width: 100%; height: 100%; border: 0; background: #0C0C0C; }
body.staying { overflow: hidden; }
/* inside that frame: the one talk is the page below — this page's own voice controls are hidden */
html.in-frame .tbar, html.in-frame .talk-t, html.in-frame #mic, html.in-frame .ivb { display: none !important; }

/* ── quiet motion only: nothing moves for a phone that asks for less motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cv-bg { transform: none !important; }
}
/* the buttons never sit on the yellow line (Wei 10-03 03:3x screenshot: 「the buttons overlap the line」, a grey line over it too): room
   under the line; on a phone ONE full-width yellow line — the composer's — and no grey line; a phone with no room for the word keeps the
   meter (the word goes while another page is open above, and on a narrow phone) */
.composer > .tbar { padding-top: 8px; }
@media (max-width: 899px) {
  .composer.talking { border-top: 2px solid var(--call, #FFD84D); padding-top: 8px; }
  .composer.talking > .tbar { border-top: 0 !important; padding-top: 0; } }
@media (max-width: 480px) { .tbar.staying .tb-st > span { display: none; } .tbar .tb-b { padding: 0 8px; } .tb-st { gap: 5px; } }
@media (max-width: 400px) { .tbar .tb-st > span { display: none; } }
