@import url("./bubbles.css");
@import url("./bubble-albums.css");
/* libenest.com's home feed (platform-home-feed.mjs): one column of posts, full width on a phone and a centred column on a
   wide screen, with a quiet column of links beside it. After the photo-app pass (2026-11-05) a card is a slim author row,
   the picture, a row of icons, 「N 個讚」, two lines of words and when; no grey boxes, hairlines only. Muted text is #5f6672
   (4.5:1 on white); the accent is the site blue, and a liked heart is red. */
.fd { --fd-ink:var(--lb-text,#101113); --fd-text:var(--lb-text,#24282e); --fd-muted:var(--lb-text-2,#5f6672); --fd-line:var(--lb-line,#eef0f3); --fd-accent:#006bff; --fd-like:#ff3040; display:flex; justify-content:center; align-items:flex-start; gap:56px; width:100%; max-width:940px; margin:0 auto; padding:16px 16px 48px; box-sizing:border-box; color:var(--fd-ink); }
.fd-column { flex:0 1 520px; min-width:0; max-width:520px; }
.fd-home-toolbar { display:flex; align-items:center; gap:8px; min-width:0; margin-bottom:12px; padding:0 12px; border-bottom:1px solid var(--fd-line); }
.fd-region { flex:0 1 auto; min-width:0; max-width:38%; }
.fd-region-open { display:flex; align-items:center; gap:5px; max-width:100%; min-height:44px; border:0; padding:0 4px; background:none; color:var(--fd-ink); font:inherit; font-size:13px; cursor:pointer; }
.fd-region-open [data-region-label] { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fd-region-open > [aria-hidden] { flex:none; }
.fd [data-home-daily][hidden] { display:none; }
.fd-activities { margin:0 12px 20px; }
.fd-activities > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.fd-activities h2 { min-width:0; margin:0; font-size:14px; line-height:1.5; font-weight:600; }
.fd-activities > header > a { flex:none; display:flex; gap:5px; align-items:center; min-height:44px; color:var(--fd-muted); font-size:12px; text-decoration:none; white-space:nowrap; }
.fd-activities nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.fd-activities nav a { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:5px; min-height:44px; padding:8px 4px; box-sizing:border-box; border-radius:10px; background:var(--lb-surface,#f4f6f9); color:var(--fd-ink); font-size:13px; text-decoration:none; }
.fd-activities nav svg { flex:none; color:var(--lb-link,var(--fd-accent)); }
.fd-travel-links { display:grid; gap:10px; margin:0 12px; }
.fd-travel-links > a { display:flex; align-items:center; gap:12px; min-height:72px; padding:12px; border:1px solid var(--fd-line); border-radius:12px; color:var(--fd-ink); text-decoration:none; }
.fd-travel-links > a > svg { flex:none; color:var(--lb-link,var(--fd-accent)); }
.fd-travel-links > a > span { flex:1; min-width:0; }
.fd-travel-links strong { display:block; font-size:16px; }
.fd-travel-links small { display:block; margin-top:4px; color:var(--fd-muted); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.fd-region-dialog { max-width:calc(100vw - 24px); color:var(--fd-ink); }
.fd-region-dialog form { margin:0; min-width:0; }
.fd-region-body { padding:0 20px 20px; }
.fd-region-body fieldset { display:grid; gap:4px; min-width:0; padding:0; margin:0; border:0; }
.fd-region-mode { display:flex; align-items:center; gap:10px; min-height:44px; font-size:15px; cursor:pointer; }
.fd-region-mode input { accent-color:var(--fd-accent); }
.fd-region-body [data-region-fields] { display:grid; gap:12px; margin:16px 0; }
.fd-region-body [data-region-fields][hidden] { display:none; }
.fd-region-body [data-region-fields] label { display:grid; gap:6px; font-size:14px; }
.fd-region-body select { display:block; width:100%; min-width:0; min-height:44px; padding:8px; border:1px solid var(--lb-line-strong,#c9d2dd); border-radius:8px; background:var(--lb-surface,#f4f6f9); color:inherit; font:inherit; font-size:16px; }
.fd-region-note { margin:10px 0; color:var(--fd-muted); font-size:13px; line-height:1.6; }
.fd-region-error { color:var(--lb-red-text,#b02b34); font-size:14px; }
.fd-region-dialog .fd-region-apply { display:block; width:100%; min-height:44px; padding:10px; border:0; border-radius:10px; background:var(--fd-accent); color:#fff; font:inherit; font-weight:600; cursor:pointer; }
@media (max-width:350px) { .fd-home-toolbar { gap:4px; } .fd-activities nav a { font-size:12px; } }
.fd-entry { margin:0 0 20px; padding:18px 20px 4px; border:1px solid #29415c; border-radius:20px; background:#0f1d33; color:#fff; }
.fd-entry h2 { margin:0; color:inherit; font-size:16px; font-weight:600; line-height:24px; letter-spacing:.06em; }
.fd-entry-globe { display:block; width:100%; height:146px; margin:0 auto 8px; }
.fd-entry-map { display:flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:0 16px; border-radius:12px; background:#ffd34d; color:#0f1d33; font-size:16px; font-weight:700; text-decoration:none; }
.fd-entry-map:hover { background:#ffdf7c; }
.fd-entry-links { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:0 16px; }
.fd-entry-links a { display:inline-flex; align-items:center; gap:5px; min-height:44px; color:#d6e2ee; font-size:13px; text-decoration:none; }
.fd-entry-links a:hover { color:#fff; text-decoration:underline; }
.fd-entry-distance { margin-right:auto; }
.fd-entry-links [hidden] { display:none; }
.fd .fd-entry a:focus-visible { outline-color:#ffd34d; }
.fd-list { display:grid; gap:20px; margin:0; padding:0; list-style:none; }
.fd-card > article { overflow:hidden; border:1px solid var(--lb-line,#e6eaef); border-radius:10px; background:var(--lb-bg,#fff); padding-bottom:10px; }
.fd :is(a, button):focus-visible, .fd-sheet :is(a, button):focus-visible { outline:2px solid var(--lb-link,var(--fd-accent)); outline-offset:2px; border-radius:6px; }

/* Who posted it: the photo (a ring while they have a 限時動態), the name with its small marks, the place, 追蹤 and ⋯. */
.fd-head { display:flex; align-items:center; gap:8px; min-height:54px; padding:0 2px 0 12px; }
.fd-avatar { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; }
.fd-avatar .community-avatar { width:32px !important; height:32px !important; }
.fd-avatar.is-live .community-avatar { box-shadow:0 0 0 2px var(--lb-bg,#fff), 0 0 0 4px var(--lb-link,var(--fd-accent)); }
.fd-avatar.is-live.is-seen .community-avatar { box-shadow:0 0 0 2px var(--lb-bg,#fff), 0 0 0 3px var(--lb-line,#c9d0d9); }
.fd-avatar.is-live.is-bubble:not(.is-seen) .community-avatar { box-shadow:0 0 0 2px var(--lb-bg,#fff), 0 0 0 4px #1aa34a; }
.fd-who { flex:1; min-width:0; display:grid; justify-items:start; gap:0; line-height:1.3; }
.fd-name { display:flex; align-items:center; gap:6px; max-width:100%; margin:0; font-size:14px; font-weight:700; }
.fd-name > a, .fd-name > .fd-name-text { overflow:hidden; min-width:0; color:var(--fd-ink); text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.fd-name > a:hover { text-decoration:underline; }
.fd-invited { flex:none; padding:0 6px; border:1px solid var(--lb-line,#c9d2dd); border-radius:999px; color:var(--lb-text,#24282e); font-size:10px; font-weight:600; line-height:15px; }
.fd-ai { flex:none; padding:0 6px; border-radius:999px; background:var(--lb-strong,#101113); color:#fff; font-size:10px; font-weight:500; line-height:16px; }
/* 貼文只給泡泡看: a small green mark beside the name, with the reader's own bubble (post-audience.mjs). */
.fd-bubble { flex:0 1 auto; min-width:0; overflow:hidden; padding:0 7px; border-radius:999px; background:#13853a; color:#fff; font-size:11px; font-weight:700; line-height:18px; text-overflow:ellipsis; white-space:nowrap; }
[data-post-bubble] .sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.fd-place { display:block; overflow:hidden; max-width:100%; margin:0; color:var(--fd-text); font-size:12px; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
a.fd-place:hover { color:var(--lb-link,var(--fd-accent)); }
/* The place, how many friends have been, and ● LIVE share one line; the place gives way with an ellipsis. */
.fd-place-line { display:flex; align-items:center; gap:6px; max-width:100%; min-width:0; }
.fd-place-line > .fd-place { min-width:0; }
.fd-music { display:flex; align-items:center; gap:4px; max-width:100%; overflow:hidden; color:var(--fd-text); font-size:12px; text-decoration:none; white-space:nowrap; }
.fd-music-text { overflow:hidden; text-overflow:ellipsis; }
a.fd-music:hover { color:var(--lb-link,var(--fd-accent)); }
p.fd-music { margin:0; }
.fd-sound { position:absolute; right:10px; bottom:10px; z-index:2; display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:rgb(16 17 19 / 62%); color:#fff; cursor:pointer; }
.fd-sound::after { content:""; position:absolute; inset:-6px; }
.fd-sound[aria-pressed="false"] .fd-sound-on, .fd-sound[aria-pressed="true"] .fd-sound-off { display:none; }
.fd-sound:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.fd-place-friends { display:inline-flex; align-items:center; gap:4px; margin-left:8px; color:var(--lb-text-2,#5f6672); vertical-align:top; }
.fd-place-faces { display:inline-flex; }
.fd-place-face { display:inline-grid; place-items:center; width:16px; height:16px; overflow:hidden; border:1.5px solid var(--lb-bg,#fff); border-radius:50%; background:var(--lb-surface,#e9edf2); color:var(--lb-text,#101113); font-size:9px; font-weight:700; }
.fd-place-face + .fd-place-face { margin-left:-5px; }
.fd-place-face img { width:100%; height:100%; object-fit:cover; }
.fd-more-button { flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; background:none; color:var(--fd-ink); cursor:pointer; }

/* The picture keeps a 4:5 box before it loads, so the cards below never move. */
.fd-media { position:relative; display:block; aspect-ratio:4 / 5; overflow:hidden; background:var(--lb-surface,#e9edf2); -webkit-tap-highlight-color:transparent; }
.fd-media > img { display:block; width:100%; height:100%; object-fit:cover; }
button.fd-media { width:100%; padding:0; border:0; cursor:pointer; }
iframe.fd-player { width:100%; height:auto; border:0; background:#000; }
/* Several photos: swiped sideways in the card, one at a time; 2/5, the dots under it and (on a computer) arrows follow. */
.fd-track { display:flex; width:100%; height:100%; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
.fd-track::-webkit-scrollbar { display:none; }
.fd-track > img { flex:0 0 100%; width:100%; height:100%; object-fit:cover; scroll-snap-align:center; scroll-snap-stop:always; }
.fd-step { position:absolute; top:50%; display:none; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:rgb(255 255 255 / 88%); color:#101113; box-shadow:0 1px 4px rgb(0 0 0 / 20%); transform:translateY(-50%); cursor:pointer; }
.fd-step-prev { left:10px; }
.fd-step-next { right:10px; }
@media (hover:hover) and (pointer:fine) { .fd-step:not([hidden]) { display:grid; } }
/* The dots have a row of their own under the photo, with room above and below as on a photo app, so the action row (with
   地圖 in it) never runs into them. At most five show; the window slides with the photo, and an edge with more beyond is
   smaller (feed-dots.js). */
.fd-dots { display:flex; justify-content:center; align-items:center; gap:5px; padding:14px 0 6px; }
.fd-dots > span { flex:none; width:6px; height:6px; border-radius:50%; background:var(--lb-line-strong,#c9d2dd); transition:background-color .2s, transform .2s, width .2s, margin .2s; }
.fd-dots > span.is-small { transform:scale(.66); }
.fd-dots > span.is-away { width:0; margin:0 -2.5px; transform:scale(0); }
@media (prefers-reduced-motion: reduce) { .fd-dots > span { transition:background-color .2s; } }
.fd-dots > span.is-on { background:var(--lb-link,var(--fd-accent)); }
.fd-badge { position:absolute; top:12px; right:12px; display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:999px; background:rgb(16 17 19 / 68%); color:#fff; font-size:12px; line-height:18px; }
.fd-play { position:absolute; top:50%; left:50%; display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:rgb(16 17 19 / 50%); color:#fff; transform:translate(-50%, -50%); }
.fd-media > .ai-mark { left:12px; bottom:auto; top:12px; padding:2px 8px; border-radius:999px; background:#101113; font-size:11px; font-weight:500; line-height:16px; }
/* A double tap's heart (likes.js), over the picture for a moment. */
.fd-pop { position:absolute; inset:0; display:grid; place-items:center; color:#fff; pointer-events:none; }
.fd-pop svg { width:96px !important; height:96px !important; filter:drop-shadow(0 4px 14px rgb(0 0 0 / 30%)); animation:fd-pop .8s ease-out forwards; }
@keyframes fd-pop { 0% { opacity:0; transform:scale(.3); } 15% { opacity:1; transform:scale(1.15); } 30% { transform:scale(.95); } 45% { transform:scale(1); } 80% { opacity:1; } 100% { opacity:0; transform:scale(1); } }

/* Icons only: 愛心, 留言 (with its real count above zero), 分享, and 收藏 at the end. */
.fd-actions { display:flex; align-items:center; min-height:46px; padding:2px 4px 0; }
.fd-action { display:inline-flex; align-items:center; justify-content:center; gap:3px; min-width:44px; height:44px; padding:0 6px; border:0; background:none; color:var(--fd-ink); font:inherit; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; }
.fd-action:hover, .fd-action.is-copied { color:var(--lb-link,var(--fd-accent)); }
.fd-like:hover { color:var(--fd-ink); }
.fd-actions .community-save { width:44px; height:44px; margin-left:auto; border:0; border-radius:0; background:none; color:var(--fd-ink); }
.fd-actions .community-save svg { width:25px; height:25px; }
.fd-actions .community-save[aria-pressed="true"], .fd-actions .community-save.ag-is-saved { color:var(--fd-ink); background:none; }
.fd-likes { margin:0 14px 2px; color:var(--fd-ink); font-size:14px; font-weight:700; line-height:20px; }
.fd-likes[hidden] { display:none; }

/* The name and two lines of words; 更多 sits over the end of the second line when there is more. */
.fd-caption { position:relative; margin:0 14px; font-size:14px; line-height:20px; color:var(--fd-text); }
.fd-caption > p, .fd-caption .translation-original > p { margin:0; }
.fd-caption > p, .fd-caption .translation-original > p { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; cursor:pointer; }
.fd-caption.is-open > p, .fd-caption.is-open .translation-original > p { display:block; -webkit-line-clamp:none; line-clamp:none; cursor:auto; }
.fd-caption-name { color:inherit; text-decoration:none; }
/* The post's own words, opened by 更多 in the card. */
.fd-body { margin-top:8px; }
.fd-body[hidden] { display:none; }
.fd-body > p { margin:0 0 10px; white-space:pre-line; }
.fd-body > h3 { margin:14px 0 6px; color:var(--fd-ink); font-size:15px; line-height:22px; }
.fd-body > a { color:var(--lb-link,var(--fd-accent)); font-weight:600; text-decoration:none; }
/* 地點與住宿: a quiet second step under the words, opening the post's places (a tap opens the place sheet, 導航 the phone's
   map) and the stays near them, swiped sideways, in the card. */
.fd-extra-open { display:inline-flex; align-items:center; gap:4px; min-height:36px; margin:6px 0 0; padding:0 12px; border:1px solid var(--lb-line,#dfe6f0); border-radius:999px; background:none; color:var(--fd-text); font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.fd-extra-open[hidden] { display:none; }
.fd-extra-open svg { transition:transform .2s; }
.fd-extra-open[aria-expanded="true"] svg { transform:rotate(180deg); }
.fd-extra[hidden] { display:none; }
.fd-extra > section { margin:12px 0 4px; }
.fd-extra > section > h3 { margin:0 0 6px; color:var(--fd-ink); font-size:14px; line-height:20px; }
.fd-extra > section[hidden] { display:none; }
/* The post's places on a small map, the same base map as 探索地圖; a pin is a dot like the map's own. */
.fd-map { position:relative; height:180px; margin:0 0 8px; overflow:hidden; border-radius:12px; background:var(--lb-surface,#e9edf2); }
.fd-map[hidden] { display:none; }
.fd-map-pin { width:22px; height:22px; padding:0; border:3px solid #fff; border-radius:50%; background:var(--lb-link,var(--fd-accent)); box-shadow:0 2px 6px rgb(0 0 0 / 30%); cursor:pointer; }
.fd-extra-places > ul { display:grid; gap:2px; margin:0; padding:0; list-style:none; }
.fd-extra-places li { display:flex; align-items:center; gap:8px; min-height:44px; }
.fd-extra-places li > a:first-child { display:grid; flex:1; min-width:0; color:inherit; text-decoration:none; }
.fd-extra-places li > a:first-child > strong { overflow:hidden; color:var(--fd-ink); font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.fd-extra-places li > a:first-child > span { overflow:hidden; color:var(--fd-muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.fd-extra-places li > a:first-child > span:empty { display:none; }
.fd-go { flex:none; display:inline-flex; align-items:center; gap:4px; min-height:36px; padding:0 12px; border:1px solid var(--lb-line,#dfe6f0); border-radius:999px; color:var(--fd-ink); font-size:13px; font-weight:600; text-decoration:none; }
.fd-stays { display:flex; gap:10px; overflow-x:auto; margin:0 -14px; padding:0 14px 4px; scroll-padding-inline:14px; scroll-snap-type:x proximity; scrollbar-width:none; }
.fd-stays::-webkit-scrollbar { display:none; }
.fd-stay { flex:0 0 46%; max-width:180px; display:grid; gap:2px; color:inherit; text-decoration:none; scroll-snap-align:start; }
.fd-stay-photo { display:block; aspect-ratio:4 / 3; overflow:hidden; border-radius:10px; background:var(--lb-surface,#e9edf2); }
.fd-stay-photo > img { display:block; width:100%; height:100%; object-fit:cover; }
.fd-stay > strong { overflow:hidden; margin-top:4px; color:var(--fd-ink); font-size:13px; line-height:18px; text-overflow:ellipsis; white-space:nowrap; }
.fd-stay > small { overflow:hidden; color:var(--fd-muted); font-size:12px; line-height:16px; text-overflow:ellipsis; white-space:nowrap; }
.fd-caption strong { color:var(--fd-ink); font-weight:700; }
.fd-caption-more { position:absolute; right:0; bottom:0; padding:0 0 0 28px; border:0; background:linear-gradient(90deg, rgb(255 255 255 / 0%), var(--lb-bg,#fff) 24px); color:var(--fd-muted); font:inherit; font-size:14px; line-height:20px; cursor:pointer; }
.fd-caption-more::after { content:""; position:absolute; inset:-12px 0 -12px 0; }
.fd-caption-more[hidden] { display:none; }
.fd-comments { display:block; width:fit-content; margin:0 14px; padding:5px 0; color:var(--fd-muted); font-size:14px; line-height:20px; text-decoration:none; }
.fd-comments:hover { color:var(--fd-ink); }
.fd-meta { margin:2px 14px 0; color:var(--fd-muted); font-size:11px; line-height:16px; }

.fd-more { display:flex; align-items:center; justify-content:center; min-height:48px; margin:24px auto 0; padding:0 24px; width:fit-content; border:1px solid var(--lb-line,#dfe6f0); border-radius:999px; color:var(--lb-link,var(--fd-accent)); font-size:14px; font-weight:600; text-decoration:none; }
.fd-end { margin:28px 0 0; color:var(--fd-muted); font-size:13px; text-align:center; }
.fd-end a { color:var(--lb-link,var(--fd-accent)); }

/* 推薦／追蹤中 on a wide screen: a slim switch above the cards (follow.js runs it). A phone has the header's menu instead. */
.fd-tabs { display:flex; flex:1; min-width:0; margin:0; }
.fd-tabs > button { position:relative; flex:1; min-height:44px; min-width:0; padding:0 8px; border:0; background:none; color:var(--fd-muted); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.fd-tabs > button[aria-selected="true"] { color:var(--fd-ink); }
.fd-tabs > button[aria-selected="true"]::after { content:""; position:absolute; left:50%; bottom:-1px; width:24px; height:2px; border-radius:2px; background:var(--lb-link,var(--fd-accent)); transform:translateX(-50%); }
.fd-panel[hidden] { display:none; }

/* 追蹤 on a card's author row: shown by follow.js to a reader who does not follow the creator yet. */
.fd-follow { flex:none; min-width:44px; min-height:44px; margin-right:-8px; padding:0 8px; border:0; background:none; color:var(--lb-link,var(--fd-accent)); font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.fd-follow.is-following { color:var(--fd-muted); font-weight:600; }
.fd-follow[hidden] { display:none; }

/* 推薦追蹤 (its own rules are in community-social.css, shared with a traveller's page). The strip's cards must not widen the feed's one column: the slot may shrink and the list scrolls instead. */
.fd-list { grid-template-columns:minmax(0, 1fr); }
.fd-suggest-slot { min-width:0; list-style:none; }
.fd-suggest-slot[hidden] { display:none; }

/* 追蹤中 with nothing to show yet: a few words, one button, and the suggestions under it. */
.fd-panel > .fd-suggest, .fd-panel > .community-empty + .fd-suggest { margin-top:16px; }
.fd-following-action { display:flex; align-items:center; justify-content:center; min-height:44px; margin-top:6px; padding:0 22px; border:0; border-radius:999px; background:var(--fd-accent); color:#fff; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }

/* ⋯: one sheet with the post's other things to do; from the bottom on a phone, in the middle on a wide screen. */
.fd-sheet { width:min(100%, 400px); max-width:100%; margin:auto; padding:0; border:0; border-radius:16px; background:var(--lb-elevated,#fff); color:var(--lb-text,#101113); box-shadow:0 24px 70px rgb(20 32 50 / 18%); }
.fd-sheet::backdrop { background:rgb(16 17 19 / 45%); }
.fd-sheet-body { display:grid; padding:6px 0; }
.fd-sheet-body > a, .fd-sheet-body > button { display:flex; align-items:center; gap:14px; min-height:52px; padding:0 20px; border:0; background:none; color:var(--lb-text,#101113); font:inherit; font-size:15px; text-align:left; text-decoration:none; cursor:pointer; }
.fd-sheet-body > a[hidden], .fd-sheet-body > p[hidden] { display:none; }
.fd-sheet-body > a:hover, .fd-sheet-body > button:hover { background:var(--lb-surface,#f6f7f9); }
.fd-sheet-body > a > span, .fd-sheet-body > button > span { display:grid; min-width:0; }
.fd-sheet-body small { overflow:hidden; color:var(--lb-text-2,#5f6672); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.fd-sheet-body small:empty { display:none; }
.fd-sheet-danger { color:var(--lb-red-text,#c42a2a) !important; }
.fd-sheet-note { display:flex; align-items:center; gap:8px; margin:0; padding:10px 20px; color:var(--lb-text-2,#5f6672); font-size:13px; line-height:1.5; }
/* A stay from 這附近的住宿 in a half sheet, like a photo app's ad: its own page below a bar that pulls it up or down. */
.fd-stay-sheet { width:min(100%, 640px); height:58vh; max-height:none; overflow:hidden; transition:height .25s ease; }
.fd-stay-sheet[open] { display:flex; flex-direction:column; }
.fd-stay-sheet.is-tall { height:92vh; }
.fd-stay-grip { flex:none; padding:6px 8px 0 20px; touch-action:none; cursor:grab; border-bottom:1px solid var(--lb-line,#eef0f3); }
.fd-stay-grip > span { display:block; width:40px; height:5px; margin:0 auto 6px; border-radius:999px; background:var(--lb-line-strong,#c9d2dd); }
.fd-stay-head { display:flex; align-items:center; gap:8px; }
.fd-stay-head > h2 { flex:1; overflow:hidden; margin:0; font-size:15px; line-height:22px; text-overflow:ellipsis; white-space:nowrap; }
.fd-stay-whole { flex:none; padding:0 6px; color:var(--lb-link,var(--fd-accent)); font-size:13px; font-weight:600; text-decoration:none; }
.fd-stay-frame { flex:1; width:100%; border:0; background:var(--lb-bg,#fff); }
@media (prefers-reduced-motion: reduce) { .fd-stay-sheet { transition:none; } }

/* 留言 and a place, in a sheet from the bottom over the feed (home-feed.js). */
.fd-pane { width:min(100%, 560px); max-height:min(80vh, 720px); }
.fd-pane[open] { display:flex; flex-direction:column; }
.fd-pane-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 8px 8px 20px; border-bottom:1px solid var(--lb-line,#eef0f3); }
.fd-pane-head > h2 { overflow:hidden; margin:0; font-size:16px; line-height:24px; text-overflow:ellipsis; white-space:nowrap; }
.fd-sheet-x { flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; background:none; color:inherit; cursor:pointer; }
.fd-pane-body { overflow:auto; padding:12px 20px 20px; overscroll-behavior:contain; }
.fd-pane-comments { margin:0; padding:0; border:0; }
.fd-pane-note { margin:0 0 8px; color:var(--lb-text-2,#5f6672); font-size:13px; }
.fd-pane-shots { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; margin-bottom:16px; }
.fd-pane-shot { aspect-ratio:4 / 5; padding:0; border:0; overflow:hidden; background:var(--lb-surface,#e9edf2); cursor:pointer; }
.fd-pane-shot > img { display:block; width:100%; height:100%; object-fit:cover; }
/* The place's sheet: 「N 位朋友去過這裡」 with their faces, and 在這裡分享 a photo or a video of it. */
.fd-pane-friends { display:flex; align-items:center; gap:8px; margin:0 0 12px; color:var(--lb-text,#101113); font-size:14px; font-weight:600; }
.fd-pane-friends[hidden] { display:none; }
.fd-pane-faces { display:flex; }
.fd-pane-face { display:grid; place-items:center; width:28px; height:28px; margin-left:-8px; overflow:hidden; border:2px solid var(--lb-elevated,#fff); border-radius:50%; background:var(--lb-surface-2,#e6eaf3); color:var(--lb-text,#101113); font-size:12px; font-weight:700; }
.fd-pane-face:first-child { margin-left:0; }
.fd-pane-face > img { width:100%; height:100%; object-fit:cover; }
.fd-pane-share { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; margin-bottom:10px; border:1px solid var(--lb-line,#dfe6f0); border-radius:999px; color:var(--lb-text,#101113); font-weight:600; text-decoration:none; }
.fd-pane-go { display:flex; align-items:center; justify-content:center; min-height:48px; border-radius:999px; background:var(--lb-link,var(--fd-accent)); color:#fff; font-weight:600; text-decoration:none; }
.fd-sheet-cancel { justify-content:center; margin-top:4px; border-top:1px solid var(--lb-line,#eef0f3) !important; font-weight:600; }

.fd-side { display:none; }
@media (min-width:1080px) {
  .fd { padding-top:24px; }
  .fd-side { position:sticky; top:24px; display:grid; gap:16px; flex:0 0 300px; }
  .fd-side nav { display:grid; gap:2px; }
  .fd-side nav a { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 10px; border-radius:12px; color:var(--fd-ink); text-decoration:none; }
  .fd-side nav a:hover { background:var(--lb-surface,#f4f6f9); }
  .fd-side nav a > svg { flex:none; color:var(--lb-link,var(--fd-accent)); }
  .fd-side nav strong { display:block; font-size:14px; font-weight:650; }
  .fd-side nav small { display:block; margin-top:2px; color:var(--fd-muted); font-size:12px; line-height:1.45; }
  .fd-rank h2 { margin:2px 0 8px; font-size:14px; font-weight:700; }
  .fd-rank .cm-rank-lists { grid-template-columns:1fr; }
}
/* A phone (and a small tablet): the header's menu switches the feed, and the cards lose their frame. */
@media (max-width:820px) {
  .fd-card > article { border:0; border-radius:0; }
}
/* On a phone the cards run edge to edge, as on a photo app. */
@media (max-width:639px) {
  .fd { padding:0 0 24px; }
  .fd-entry { margin:12px 12px 14px; padding:14px 16px 2px; border-radius:18px; }
  .fd-entry-globe { height:130px; }
  .fd-list { gap:14px; }
  .fd-card > article { padding-bottom:4px; }
  .fd-column > .community-empty, .fd-panel > .community-empty { margin:16px; }
  .fd-panel > .fd-suggest { margin-top:8px; }
  .fd-sheet { width:100%; margin:auto 0 0; border-radius:16px 16px 0 0; padding-bottom:env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion:reduce) { .fd *, .fd *::before, .fd *::after { transition:none !important; animation:none !important; } }

/* 訊息 in the home's top bar (聊天, chat-badge.js): the paper plane left of ☰, with a red count of conversations that have
   something new. */
.ag-header .ag-header-inbox { position:relative; display:inline-flex; }
.ag-inbox-badge { position:absolute; top:4px; right:2px; min-width:18px; height:18px; padding:0 5px; box-sizing:border-box; border:2px solid var(--lb-bg,#fff); border-radius:999px; background:#e0245e; color:#fff; font-size:11px; font-weight:700; line-height:14px; text-align:center; }
.ag-inbox-badge[hidden] { display:none; }
.ag-header .ag-header-notify { position:relative; display:inline-flex; }
.ag-notify-dot { position:absolute; top:7px; right:6px; width:9px; height:9px; border:2px solid var(--lb-bg,#fff); border-radius:50%; background:#ff3040; }
.ag-notify-dot[hidden] { display:none; }
/* With ♡ and 訊息 the home's bar holds four buttons: a little narrower on the smallest phones. */
@media (max-width:360px) { .ag-header .ag-header-tools .ag-icon-button { width:38px; } }

.fd-plans { margin:0 12px 16px; padding:16px; border:1px solid var(--fd-line); border-radius:12px; }
.fd-plans header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.fd-plans h2 { margin:0; font-size:18px; }
.fd-plans header a { color:var(--fd-ink); font-size:13px; text-decoration:none; white-space:nowrap; }
.fd-plans-note { margin:10px 0; color:var(--fd-muted); font-size:13px; line-height:1.6; }
.fd-plans-countries { display:flex; gap:8px; overflow-x:auto; padding:4px 0 10px; }
.fd-plans-countries button { flex:none; min-height:36px; padding:6px 14px; border:1px solid var(--fd-line); border-radius:20px; background:transparent; color:var(--fd-ink); font:inherit; font-size:13px; cursor:pointer; }
.fd-plans-countries button[aria-pressed="true"] { background:var(--fd-ink); border-color:var(--fd-ink); color:var(--lb-bg,#fff); }
.fd-plans-list { list-style:none; padding:0; margin:0; }
.fd-plans-list li + li { border-top:1px solid var(--fd-line); }
.fd-plans-list a { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:54px; color:var(--fd-ink); text-decoration:none; }
.fd-plans-list span { min-width:0; overflow-wrap:anywhere; font-size:14px; }
.fd-plans-list time { flex:none; color:var(--fd-muted); font-size:12px; }
.fd-plans-new { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:8px 16px; border:0; border-radius:10px; background:var(--fd-ink); color:var(--lb-bg,#fff); font:inherit; font-size:14px; text-decoration:none; cursor:pointer; }

.fd-caption .translation-original { position: relative; }

.fd-bubbles { max-width:none; }
.fd-bubble-list { gap:12px; padding:12px 0; }
.fd-bubble-card { overflow:hidden; border:1px solid var(--lb-line,#eef0f3); border-radius:14px; background:var(--lb-bg,#fff); }
.fd-bubble-albums { grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 16px 16px; }
.fd-bubble-albums strong { font-size:13px; }
.fd-bubble-albums small { font-size:12px; }

.fd.is-friends .fd-side, .fd.is-friends .fd-home-toolbar > :not(.fd-tabs) { display:none; }
.fd-friends-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 0 4px; }
.fd-friends-head h2 { margin:0; font-size:22px; }
.fd-friends-head a, .fd-friend-actions a { color:var(--lb-link,#006bff); font-size:13px; }
.fd-friend-photos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0 16px; margin:0; list-style:none; }
.fd-friend-photo { display:block; color:var(--fd-ink); text-decoration:none; min-width:0; }
.fd-friend-photo > img { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:12px; background:var(--lb-surface,#e9edf2); }
.fd-friend-caption { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px; padding:8px 0 4px; font-size:12px; }
.fd-friend-caption strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fd-friend-caption time { color:var(--fd-muted); }
.fd-friend-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 16px 4px; }
.fd-friend-share { min-height:44px; padding:9px 15px; border:0; border-radius:999px; background:var(--lb-primary,#006bff); color:white; font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
.fd-friend-share:disabled { opacity:.6; cursor:wait; }
.fd-friend-private { display:block; padding:4px 16px 14px; color:var(--fd-muted); font-size:12px; }
.fd-friend-status:not(:empty), .fd-friend-empty { margin:0; padding:0 16px 16px; color:var(--fd-muted); }
.fd-friend-status:empty { display:none; }
@media(max-width:480px) { .fd-friend-photos { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.fd-entry .fd-entry-globe { width:100%; height:auto; margin:10px 0; }
.fd-entry .ta-globe-view { position:relative; width:min(100%,360px); aspect-ratio:1; margin:auto; }
.fd-entry .ta-globe-stage, .fd-entry .ta-globe-view > .ta-globe-map { position:absolute; inset:0; border-radius:16px; overflow:hidden; }
.fd-entry .ta-globe-map .maplibregl-canvas { background:radial-gradient(circle at 50% 45%,#1d3a66,#0a1830); }
.fd-entry .maplibregl-marker-covered { visibility:hidden; pointer-events:none; }
.fd-entry-globe figcaption { margin:10px 0; color:#c9d6e8; font-size:12px; text-align:center; }
.ta-photo-pin { display:block; width:40px; height:40px; padding:1px; border:1px solid rgb(255 255 255 / .8); border-radius:50%; background:#fff; box-shadow:0 2px 8px rgb(0 0 0 / .25); cursor:pointer; overflow:hidden; }
.ta-photo-pin img { display:block; width:100%; height:100%; min-width:0; min-height:0; border-radius:50%; object-fit:cover; }
.fd-entry-share { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; margin:8px 0 14px; }
.fd-entry-share button, .fd-entry-share a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid rgb(255 255 255 / .3); border-radius:999px; background:rgb(255 255 255 / .1); color:#fff; font:inherit; font-size:13px; cursor:pointer; text-decoration:none; }
.fd-entry-share [hidden] { display:none; }
.fd-entry .ta-place { position:absolute; right:8px; bottom:8px; left:8px; z-index:2; max-height:calc(100% - 16px); overflow:auto; padding:10px 12px; border:1px solid rgb(255 255 255 / .2); border-radius:14px; background:rgb(28 38 54 / .68); backdrop-filter:blur(24px) saturate(150%); -webkit-backdrop-filter:blur(24px) saturate(150%); color:white; }
.fd-entry .ta-place[hidden] { display:none; }
.fd-entry .ta-place-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.fd-entry .ta-place-close { width:44px; height:44px; border:0; background:transparent; color:inherit; font:inherit; font-size:24px; }
.fd-entry .ta-place ul { display:grid; gap:6px; padding:0; margin:0; list-style:none; }
.fd-entry .ta-place li a { display:flex; align-items:center; gap:8px; min-height:44px; color:inherit; text-decoration:none; }
.fd-entry .ta-place li img { width:44px; height:44px; border-radius:8px; object-fit:cover; }

.fd-friend-location { display:block; color:var(--fd-muted); font-size:12px; line-height:1.5; padding-bottom:5px; }

.fd-avatar-column{flex:none;width:56px;height:64px;display:grid;grid-template-rows:40px 16px;justify-items:center;align-content:center;gap:2px}
.fd-avatar-distance{display:block;min-height:16px;max-width:64px;white-space:nowrap;padding:1px 4px;border:1px solid #d5b35d;border-radius:8px;color:#74520c;background:#fff6da;font-size:10px;font-weight:700;line-height:12px;font-variant-numeric:tabular-nums}
.fd-avatar-distance:empty{visibility:hidden}
