/* 活動 (/activities/) and the card it shares with 行程 (activity-card.js): a post in 動態 — who it is from, the picture, a few
   short lines, who is going and one button. Hairlines and the site's own colours, so 深色模式 follows (theme.css). */
.sc-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--lb-line,#e6eaef); border-radius:10px; background:var(--lb-bg,#fff); color:var(--lb-text,#101113); }
.sc-head { display:flex; align-items:center; min-height:54px; padding:0 12px; }
.sc-author { display:flex; align-items:center; gap:10px; min-width:0; color:inherit; text-decoration:none; }
.sc-who { display:grid; min-width:0; }
.sc-name { overflow:hidden; font-size:14px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.sc-note { overflow:hidden; color:var(--lb-text-2,#5f6672); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.sc-face { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--lb-surface,#eef1f5); color:var(--lb-text-2,#5f6672); font-size:14px; font-weight:700; object-fit:cover; }
.sc-face-small { width:24px; height:24px; font-size:11px; border:2px solid var(--lb-bg,#fff); }
.sc-link { display:block; color:inherit; text-decoration:none; }
.sc-media { position:relative; aspect-ratio:4 / 3; overflow:hidden; background:var(--lb-surface,#e9edf2); }
.sc-media > img { display:block; width:100%; height:100%; object-fit:cover; }
.sc-media-kind { display:grid; place-items:center; background:linear-gradient(135deg, var(--sc-kind) 0%, color-mix(in srgb, var(--sc-kind) 55%, #101113) 100%); }
.sc-emoji { font-size:72px; line-height:1; filter:drop-shadow(0 6px 14px rgb(0 0 0 / 22%)); }
.sc-badge, .sc-ai { position:absolute; top:10px; left:10px; padding:3px 9px; border-radius:999px; background:rgb(16 17 19 / 72%); color:#fff; font-size:12px; font-weight:600; }
.sc-ai { top:auto; bottom:10px; }
.sc-body { display:grid; gap:4px; padding:12px 14px 4px; }
.sc-title { margin:0; font-size:17px; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
.sc-link:hover .sc-title { color:var(--lb-link,#006bff); }
.sc-line { margin:0; color:var(--lb-text-2,#5f6672); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.sc-when { color:var(--lb-text,#101113); font-weight:600; }
.sc-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:56px; margin-top:auto; padding:6px 14px 12px; }
.sc-people { display:flex; align-items:center; gap:8px; min-width:0; }
.sc-stack { display:flex; }
.sc-stack > * + * { margin-left:-8px; }
.sc-count { color:var(--lb-text,#101113); font-size:13px; font-weight:600; white-space:nowrap; }
.sc-action { flex:none; min-height:40px; padding:0 16px; border:1px solid var(--lb-line-strong,#c9d2dd); border-radius:10px; background:var(--lb-bg,#fff); color:var(--lb-text,#101113); font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
.sc-action.is-primary { border-color:transparent; background:#006bff; color:#fff; }
.sc-action:disabled { cursor:default; opacity:.6; }

/* The page. */
.ac { max-width:1120px; }
.ac-intro { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:20px 0 12px; }
.ac-intro h2 { margin:0; font-size:24px; font-weight:700; }
.ac-intro p { margin:4px 0 0; }
.ac-new { flex:none; }
.ac-filters { display:grid; gap:8px; margin:8px 0 16px; }
.ac-filters .tp-chips { display:flex; gap:8px; margin:0; padding:2px 0; overflow-x:auto; scrollbar-width:none; }
.ac-filters .tp-chips::-webkit-scrollbar { display:none; }
.ac-filters .tp-chip { flex:0 0 auto; }
.ac-grid, .ac-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:18px; }
.ac-mine { margin:8px 0 24px; }
.ac-mine h2, .ac-people h2, .ac-requests h2 { margin:0 0 12px; font-size:18px; font-weight:700; }
.ac-status { color:var(--tp-muted); text-align:center; padding:24px 0; }
.ac-status:empty { display:none; }
.ac-more { display:flex; margin:20px auto 0; }
.ac-back { display:inline-flex; margin:12px 0; color:var(--tp-muted); text-decoration:none; font-size:14px; }
.ac-card-one { max-width:560px; margin:0 auto; }
.ac-note { max-width:560px; margin:14px auto 0; font-size:15px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.ac-group, .ac-manage, .ac-quiet { display:flex; flex-wrap:wrap; gap:10px; max-width:560px; margin:14px auto 0; }
.ac-group > a { flex:1 1 150px; }
.ac-map-link { display:flex; max-width:560px; margin:14px auto 0; box-sizing:border-box; }
.ac-safety, .ac-wait, .ac-warn { max-width:560px; margin:14px auto 0; padding:10px 14px; border-radius:10px; background:var(--lb-surface,#f4f6f9); color:var(--lb-text-2,#5f6672); font-size:13px; line-height:1.6; }
.ac-step .ac-safety { margin:0; }
.ac-warn { background:#fff4e5; color:#7a4100; }
.ac-wait { color:var(--lb-text,#101113); }
.ac-people, .ac-requests { max-width:560px; margin:22px auto 0; }
.ac-members { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
.ac-members li { display:flex; align-items:center; gap:10px; min-height:48px; }
.ac-member-name { display:flex; flex:1; align-items:baseline; gap:8px; min-width:0; overflow-wrap:anywhere; }
.ac-member-name small { color:var(--tp-muted); font-size:12px; }
.ac-small { min-height:36px; padding:0 14px; font-size:14px; }
.ac-danger { color:var(--lb-red-text,#b02b34); }
.ac-quiet { justify-content:center; gap:18px; margin-top:28px; }
.ac-report { display:flex; gap:8px; align-items:center; }
.ac-report select { min-height:36px; border:1px solid var(--tp-line); border-radius:8px; background:var(--lb-bg,#fff); color:inherit; font:inherit; }

/* The sheet: one question at a time. */
.ac-sheet { width:min(520px, calc(100% - 24px)); }
.ac-sheet .tp-sheet-head { gap:10px; padding:12px 12px 4px; }
.ac-dots { display:flex; flex:1; justify-content:center; gap:6px; margin:0; padding:0; list-style:none; }
.ac-dots li { width:22px; height:4px; border-radius:2px; background:var(--tp-line); }
.ac-dots li.is-on { background:var(--lb-link,#006bff); }
.ac-step { margin:0; }
.ac-step-body { display:grid; gap:14px; padding:8px 20px 22px; }
.ac-step h3 { margin:6px 0 2px; font-size:22px; font-weight:700; }
.ac-step input[type=text], .ac-step input[type=search], .ac-step input[type=date], .ac-step input[type=time], .ac-step textarea { box-sizing:border-box; width:100%; min-width:0; min-height:48px; padding:10px 12px; border:1px solid var(--lb-line-strong,#c9d2dd); border-radius:10px; background:var(--lb-surface,#f4f6f9); color:inherit; font:inherit; font-size:16px; }
.ac-step textarea { resize:vertical; line-height:1.6; }
.ac-field { display:grid; gap:6px; min-width:0; font-size:14px; }
.ac-field[hidden] { display:none; }
.ac-two { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:10px; }
.ac-wide { width:100%; }
.ac-say:empty { display:none; }
.ac-kind-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.ac-kind { display:grid; justify-items:start; gap:2px; min-height:96px; padding:12px; border:1px solid var(--tp-line); border-radius:14px; background:var(--lb-bg,#fff); color:inherit; font:inherit; text-align:left; cursor:pointer; }
.ac-kind:hover, .ac-kind.is-on { border-color:var(--sc-kind); box-shadow:inset 0 0 0 1px var(--sc-kind); }
.ac-kind-emoji { font-size:28px; line-height:1.2; }
.ac-kind strong { font-size:15px; }
.ac-kind small { color:var(--tp-muted); font-size:12px; line-height:1.4; }
.ac-results { display:grid; gap:2px; margin:-6px 0 0; padding:0; list-style:none; }
.ac-results:empty { display:none; }
.ac-result { display:grid; justify-items:start; width:100%; min-height:48px; padding:8px 10px; border:0; border-radius:8px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.ac-result:hover { background:var(--lb-surface,#f4f6f9); }
.ac-result small { color:var(--tp-muted); font-size:12px; }
.ac-chosen { margin:0; font-weight:600; }
.ac-chosen:empty { display:none; }
.ac-stepper { display:flex; align-items:center; justify-content:center; gap:24px; }
.ac-stepper[hidden] { display:none; }
.ac-count { min-width:48px; font-size:32px; font-weight:700; text-align:center; }
.ac-switch { display:flex; align-items:center; gap:12px; min-height:48px; cursor:pointer; }
.ac-switch input { width:22px; height:22px; accent-color:#006bff; }
.ac-switch span { display:grid; gap:2px; }
.ac-switch small { color:var(--tp-muted); font-size:13px; }
.ac-toast { position:fixed; z-index:60; left:50%; bottom:calc(96px + env(safe-area-inset-bottom)); max-width:calc(100% - 32px); margin:0; padding:10px 16px; border-radius:12px; background:#101113; color:#fff; font-size:14px; transform:translateX(-50%); box-shadow:0 10px 30px rgb(0 0 0 / 24%); }
.ac-toast[hidden] { display:none; }


/* 已驗證 beside a name, who organises it, 回饋, the area picker and past activities. */
.sc-name-row { display:flex; align-items:center; gap:6px; min-width:0; }
.sc-safety { font-size:12px; }
.ac-host { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; max-width:560px; margin:12px auto 0; font-size:14px; }
.ac-member-name .sc-verified { align-self:center; }
.ac-area-open { flex:0 0 auto; display:inline-flex; align-items:center; gap:2px; max-width:60vw; min-height:36px; padding:0 14px; border:1px solid var(--lb-text,#101113); border-radius:999px; background:var(--lb-bg,#fff); color:var(--lb-text,#101113); font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
.ac-area-open [data-area-label] { overflow:hidden; min-width:0; text-overflow:ellipsis; white-space:nowrap; }
.ac-area-note { margin:0; font-size:13px; }
.ac-area-note[hidden] { display:none; }
.ac-area h3 { margin:6px 0 8px; font-size:15px; }
.ac-area-cities { display:flex; flex-wrap:wrap; gap:8px; }
.ac-area-sheet .ac-step-body > .tp-chip { justify-self:start; }
.ac-past { margin-top:16px; }
.ac-past > summary { min-height:44px; display:flex; align-items:center; color:var(--tp-muted); font-weight:650; cursor:pointer; }
.ac-past .ac-grid { margin-top:8px; }
.ac-rewards { display:grid; gap:8px; min-width:0; margin:0; padding:0; border:0; }
.ac-rewards legend { margin-bottom:8px; font-size:14px; }
.ac-rewards .tp-chips { flex-wrap:wrap; margin:0; }
.ac-rewards input[hidden] { display:none; }
.ac-verify .social-or { display:none; }

.sc-quorum { color:var(--lb-text,#101113); font-weight:600; }
.sc-quorum.is-met { color:#1b6b3a; }
.sc-quorum.is-missed { color:var(--lb-text-2,#5f6672); }
:root[data-themeable][data-theme="dark"] .sc-quorum.is-met { color:#8fe0aa; }

.ac-chat { position:relative; }
.ac-chat-dot { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:6px; padding:0 6px; border-radius:999px; background:#ff3040; color:#fff; font-size:12px; font-weight:700; line-height:1; box-sizing:border-box; }
.ac-chat-dot[hidden] { display:none; }

@media (max-width:767px) {
  .ac { width:calc(100% - 24px); }
  .ac-intro { flex-wrap:wrap; }
  .ac-new { width:100%; }
  .ac-grid, .ac-list { grid-template-columns:minmax(0,1fr); gap:16px; }
  .ac-sheet { width:100%; max-width:none; max-height:calc(100dvh - 12px); margin:auto 0 0; border-radius:20px 20px 0 0; }
}
@media (max-width:360px) {
  .ac-kind-grid { gap:8px; }
  .ac-kind { min-height:88px; padding:10px; }
  .sc-foot { flex-wrap:wrap; }
  .sc-action { flex:1 1 100%; }
}
/* 深色模式: the warning keeps its colour, readable on black. */
:root[data-themeable][data-theme="dark"] .ac-warn { background:#3a2600; color:#ffd8a8; }
:root[data-themeable][data-theme="dark"] .sc-action.is-primary, :root[data-themeable][data-theme="dark"] .ac-dots li.is-on { background:#2f86ff; }
@media (prefers-color-scheme: dark) {
  :root[data-themeable]:not([data-theme="light"]) .ac-warn { background:#3a2600; color:#ffd8a8; }
  :root[data-themeable]:not([data-theme="light"]) .sc-action.is-primary, :root[data-themeable]:not([data-theme="light"]) .ac-dots li.is-on { background:#2f86ff; }
}
