[hidden] { display: none !important; }
:root, [data-theme="forestsky"] { --bg:#F4F8F7; --b1:#A9CC9F; --b2:#A8CFF2; --b3:#D3EBE0; --logo1:#2E6A4E; --logo2:#2F74AE; --accent:#2F74AE; --primary:#2E6A4E; --strong:#24543D; }
[data-theme="mist"] { --bg:#EFEEEA; --b1:#EDB898; --b2:#B8CBB4; --b3:#C7D2E2; --logo1:#1C1C1A; --logo2:#5E5E59; --accent:#B5501C; --primary:#1C1C1A; --strong:#1C1C1A; }
[data-theme="orangeblue"] { --bg:#EEF0F7; --b1:#FFB067; --b2:#4A6CF0; --b3:#9FB6FF; --logo1:#E8601C; --logo2:#2343C7; --accent:#D9561A; --primary:#2343C7; --strong:#1D3AAE; }
[data-theme="forest"] { --bg:#EDF1EA; --b1:#A9CC9F; --b2:#EADBA6; --b3:#7FB89B; --logo1:#2E6A4E; --logo2:#7A8F2E; --accent:#B9602A; --primary:#2E6A4E; --strong:#24543D; }
[data-theme="lavender"] { --bg:#F1EEF7; --b1:#C9B6F2; --b2:#FFC7A8; --b3:#B6C3F7; --logo1:#5E42C4; --logo2:#D9603F; --accent:#C9542F; --primary:#5B3FBF; --strong:#4A31A3; }
[data-theme="ocean"] { --bg:#EBF4F4; --b1:#7FD0CA; --b2:#FFB6A3; --b3:#9CCFF0; --logo1:#0E7579; --logo2:#DB5246; --accent:#CC4136; --primary:#0E6B6F; --strong:#0B5A5D; }
[data-theme="sakura"] { --bg:#F8EEF1; --b1:#F5B4C7; --b2:#FFD8B8; --b3:#E2C5F0; --logo1:#CF3F76; --logo2:#3A3340; --accent:#C2386B; --primary:#3A3340; --strong:#3A3340; }
[data-theme="lemon"] { --bg:#F6F4E9; --b1:#FFE17A; --b2:#FFB86B; --b3:#CDE59A; --logo1:#1C1C1A; --logo2:#8A6600; --accent:#B5501C; --primary:#1C1C1A; --strong:#1C1C1A; }
[data-theme="mono"] { --bg:#EDEDED; --b1:#D9D9D9; --b2:#C4C4C4; --b3:#E8E8E8; --logo1:#111111; --logo2:#111111; --accent:#E0331B; --primary:#111111; --strong:#111111; }

:root { --op: .55; --glass: rgba(255,255,255,var(--op)); --line: rgba(255,255,255,.75); --text:#1C1C1A; --muted:#5E5E59; --fs:15px;
  --round: 'Chiron GoRound TC', 'Noto Sans TC', system-ui, sans-serif; --body: 'Noto Sans TC', system-ui, sans-serif; --display: 'Bricolage Grotesque', 'Chiron GoRound TC', sans-serif; }
html.large { --fs:17px; }
* { box-sizing: border-box; }
body { margin:0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: var(--fs); line-height: 1.6; min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(90px); }
.blobs i:nth-child(1) { width: 560px; height: 560px; background: var(--b1); opacity: .55; top: 40px; left: -140px; }
.blobs i:nth-child(2) { width: 520px; height: 520px; background: var(--b2); opacity: .5; top: 50vh; right: -120px; }
.blobs i:nth-child(3) { width: 440px; height: 440px; background: var(--b3); opacity: .55; top: 160px; left: 48%; }

.glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 18px; }

header.top { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 42px; width: auto; display: block; }
.search { flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 20px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); padding: 0 16px; }
.search input { border: none; background: transparent; outline: none; flex: 1; font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #3A3A37; flex: none; overflow: hidden; text-decoration: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }

.btn { min-height: 40px; padding: 0 18px; border-radius: 20px; border: none; background: var(--primary); color: #fff; font-family: var(--round); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: rgba(255,255,255,.7); color: var(--text); border: 1px solid rgba(28,28,26,.15); font-weight: 500; }
.btn.danger { background: #fff; color: #A32D2D; border: 1px solid #A32D2D; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.icon-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: none; background: transparent; color: var(--muted); font-size: 13px; border-radius: 18px; }
.icon-btn:hover { background: rgba(255,255,255,.6); }
.icon-btn.on { color: var(--accent); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.layout { max-width: 1080px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
nav.side { flex: 1 1 160px; max-width: 180px; display: flex; flex-direction: column; gap: 2px; font-family: var(--round); position: sticky; top: 88px; }
nav.side a { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-size: 16px; color: #4A4A46; }
nav.side a.active { background: var(--glass); backdrop-filter: blur(20px); font-weight: 700; color: var(--strong); }
nav.side .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--accent); }
main.main { flex: 999 1 520px; min-width: 0; max-width: 600px; display: flex; flex-direction: column; gap: 12px; }
aside.side { flex: 1 1 200px; max-width: 220px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 88px; }
aside.side h2 { margin: 0; font-size: 15px; font-family: var(--round); color: var(--strong); }
aside.side .box { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
aside.side .box a { text-decoration: none; }
.foot { font-size: 12px; color: var(--muted); padding: 0 6px; line-height: 2; }
.foot a { color: var(--muted); }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.35); align-self: flex-start; font-family: var(--round); }
.tabs button { min-height: 36px; padding: 0 18px; border-radius: 10px; border: none; background: transparent; font-size: 14px; color: #4A4A46; }
.tabs button.on { background: rgba(255,255,255,.92); font-weight: 700; color: var(--strong); }

.composer { padding: 14px 16px; display: flex; gap: 12px; }
.composer textarea { width: 100%; border: none; background: transparent; outline: none; resize: none; font-size: 16px; min-height: 44px; line-height: 1.6; }
.composer .row { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.composer .preview { position: relative; margin-top: 8px; }
.composer .preview img { max-height: 200px; border-radius: 12px; display: block; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-height: 36px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

.post { padding: 16px 18px; display: flex; gap: 12px; }
.post .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post .meta { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; position: relative; }
.post .name { font-weight: 700; font-family: var(--round); text-decoration: none; font-size: 15px; }
.post .time { color: var(--muted); font-size: 13px; margin-left: 4px; }
.post .text { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
.post .text a { color: var(--accent); text-decoration: none; }
.star { border: none; background: transparent; color: var(--accent); font-size: 13px; padding: 0 4px; min-height: 24px; }
.tip { position: absolute; top: 26px; z-index: 5; background: #1C1C1A; color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.linkcard { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.55); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.linkcard small { color: var(--muted); font-size: 12px; }
.linkcard b { font-size: 14px; font-weight: 500; }
.pimg { position: relative; border-radius: 14px; overflow: hidden; max-height: 480px; }
.pimg img { width: 100%; display: block; max-height: 480px; object-fit: cover; }
.pimg.blur img { filter: blur(32px) saturate(.8); transform: scale(1.1); }
.pimg .cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; background: rgba(28,28,26,.38); border: none; width: 100%; }
.pimg .cover b { font-family: var(--round); font-size: 16px; }
.pimg .cover span { font-size: 13px; }
.sens-text { background: rgba(28,28,26,.06); border-radius: 12px; padding: 10px 12px; }
.actions { display: flex; gap: 14px; margin-left: -8px; align-items: center; }
.menu { margin-left: auto; position: relative; }
.pop { position: absolute; right: 0; top: 38px; z-index: 6; min-width: 140px; padding: 6px; display: flex; flex-direction: column; background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.pop button { text-align: left; border: none; background: transparent; min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
.pop button:hover { background: rgba(28,28,26,.06); }

.card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card h1, .card h2 { margin: 0; font-family: var(--round); color: var(--strong); }
.card h1 { font-size: 26px; } .card h2 { font-size: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field input, .field textarea, .field select { border: 1px solid rgba(28,28,26,.15); background: rgba(255,255,255,.8); border-radius: 10px; padding: 10px 12px; outline: none; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.switch { flex: none; width: 52px; height: 30px; border-radius: 15px; border: none; background: rgba(28,28,26,.25); position: relative; padding: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { left: 25px; }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.5); border: 2px solid rgba(255,255,255,.8); text-align: left; }
.theme.on { border-color: var(--primary); }
.theme .sw { height: 56px; border-radius: 10px; position: relative; overflow: hidden; }
.theme .sw i { position: absolute; width: 70px; height: 70px; border-radius: 50%; filter: blur(14px); }
.theme b { font-family: var(--round); font-size: 14px; }
.notice { background: rgba(255,255,255,.7); border: 1px solid rgba(28,28,26,.12); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ok { color: #2E7D4F; font-weight: 500; font-size: 13px; }
.err { color: #A32D2D; font-size: 13px; }

.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 420px; max-height: 80vh; overflow: auto; background: rgba(255,255,255,.97); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal h2 { margin: 0; font-family: var(--round); font-size: 18px; }
.ulist { display: flex; flex-direction: column; gap: 10px; }
.uitem { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #1C1C1A; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; z-index: 60; }

nav.bottom { display: none; }
@media (max-width: 760px) {
  .layout { padding: 12px; gap: 12px; }
  nav.side, aside.side { display: none; }
  header.top { padding: 0 12px; gap: 10px; }
  .search { display: none; }
  .logo img { height: 36px; }
  nav.bottom { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; z-index: 20; justify-content: space-around; align-items: center;
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
  nav.bottom a { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: #4A4A46; position: relative; }
  nav.bottom a.active { color: var(--primary); }
  nav.bottom svg.i { width: 24px; height: 24px; }
  body { padding-bottom: 72px; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 後台 */
.admin { display: flex; flex-wrap: wrap; min-height: calc(100vh - 64px); }
.admin nav { flex: 1 1 200px; max-width: 220px; padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.45); backdrop-filter: blur(20px); border-right: 1px solid var(--line); font-family: var(--round); }
.admin nav a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 10px; text-decoration: none; color: #4A4A46; }
.admin nav a.active { background: rgba(255,255,255,.9); color: var(--strong); font-weight: 700; }
.admin nav .badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.admin main { flex: 999 1 640px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.admin h1 { margin: 0; font-family: var(--round); font-size: 26px; color: var(--strong); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 30px; font-family: var(--display); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid rgba(28,28,26,.1); }
td { padding: 10px 8px; border-bottom: 1px solid rgba(28,28,26,.06); vertical-align: middle; }
.pill { padding: 3px 10px; border-radius: 12px; background: rgba(28,28,26,.07); font-size: 12px; white-space: nowrap; }
.pill.warn { background: #F7E6DC; color: #7E3512; }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .admin main { padding: 16px; } .stats, .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== v2 新增 ===== */
.stack { display: flex; flex-direction: column; gap: 12px; }
.ptitle { margin: 0 4px; font-family: var(--round); font-size: 24px; color: var(--strong); }
.subhead { margin: 8px 4px 0; font-family: var(--round); font-size: 16px; color: var(--strong); }
.readmore { color: var(--accent); font-size: 14px; text-decoration: none; font-weight: 500; }
.blogtitle { margin: 2px 0; font-family: var(--round); font-size: 20px; font-weight: 700; color: var(--strong); text-decoration: none; line-height: 1.4; }
h1.blogtitle { font-size: 26px; }
.blogbody { font-size: 16px; line-height: 1.95; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: var(--accent); display: inline-block; }
.profile { padding-top: 0; overflow: hidden; }
.banner { height: 170px; margin: 0 -20px; background-size: cover; background-position: center; }
.avatar.ring { border: 4px solid rgba(255,255,255,.9); }
.counter { padding: 2px 10px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1px dashed var(--paccent, var(--primary)); color: var(--strong); font-size: 13px; }
.linktabs a { min-height: 36px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; color: #4A4A46; }
.linktabs a.on { background: rgba(255,255,255,.92); font-weight: 700; color: var(--strong); }
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.album { padding: 10px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.album .cover { position: relative; aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.6) center / cover; display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; }
.album .cover.blur { filter: blur(14px); }
.album b { font-family: var(--round); font-size: 14px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.photo { padding: 0; border: none; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: rgba(255,255,255,.5); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { display: flex; justify-content: center; background: rgba(0,0,0,.04); border-radius: 12px; }
.lightbox img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.modal.wide { max-width: 760px; }
.chat { padding: 16px; display: flex; flex-direction: column; gap: 8px; height: min(60vh, 560px); overflow-y: auto; }
.bubble { max-width: 75%; align-self: flex-start; background: rgba(255,255,255,.85); border-radius: 16px 16px 16px 4px; padding: 8px 12px; display: flex; flex-direction: column; white-space: pre-wrap; word-break: break-word; }
.bubble.mine { align-self: flex-end; background: var(--primary); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble small { font-size: 11px; opacity: .7; align-self: flex-end; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid rgba(28,28,26,.15); background: rgba(255,255,255,.7); font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(28,28,26,.15); padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--text); }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal h2 { margin-top: 8px; font-size: 17px; }
.legal p { margin: 0; line-height: 1.8; }
.chart { display: flex; flex-direction: column; gap: 8px; }
.chart .legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.chart .key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart .bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; }
.chart .col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.chart .stack-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.chart .stack-bars i { width: 40%; min-height: 2px; border-radius: 3px 3px 0 0; }
.chart small { font-size: 11px; color: var(--muted); }
.human-check { min-height: 70px; }
@media (max-width: 760px) {
  .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { height: 120px; }
  .chart .bars { gap: 2px; } .chart small { font-size: 9px; }
  .bubble { max-width: 85%; }
}

.groups.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .groups.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pimg { position: relative; }
.pimg .credit { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.pimg .credit:hover { background: rgba(0,0,0,.65); }
.pimg.blur .credit { display: none; }

/* 投票 */
.poll { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.poll-opt { text-align: left; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--primary); background: transparent; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.poll-opt:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.poll-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--text, #222) 6%, transparent); }
.poll-bar .fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--primary) 22%, transparent); transition: width .5s ease; }
.poll-bar.mine .fill, .poll-bar.win .fill { background: color-mix(in srgb, var(--primary) 38%, transparent); }
.poll-bar .label, .poll-bar b { position: relative; }
.poll-bar.mine .label, .poll-bar.win .label { font-weight: 700; }
.poll-meta { font-size: 13px; }
.poll-editor { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 6%, transparent); }
.poll-editor input { flex: 1; }
.poll-editor .row { gap: 8px; align-items: center; }
/* 標籤 */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.tag-row .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; font-size: 14px; }
.tag-row .chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.tag-input { flex: 1; min-width: 140px; border: 0; background: transparent; font: inherit; padding: 4px; outline: none; }
/* @ # 提示 */
.suggest { position: absolute; z-index: 30; left: 0; top: 64px; min-width: 240px; max-width: 100%; background: rgba(255,255,255,.97); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 6px; display: flex; flex-direction: column; }
.suggest[hidden] { display: none; }
.suggest button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.suggest button.on, .suggest button:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.suggest small { color: var(--muted); margin-left: auto; }
.suggest .star { color: var(--primary); font-size: 12px; }
.poll-editor input { padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.8); font: inherit; }
.poll-editor select { padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.8); font: inherit; }

/* ===== 表情回應 ===== */
.react { position: relative; display: inline-flex; align-items: center; }
.react .emo { font-size: 16px; line-height: 1; }
.react-more { padding: 0 4px; min-height: 30px; font-size: 14px; opacity: .55; }
.react-more:hover { opacity: 1; }
.react-sum { border: 0; background: none; padding: 0 4px; cursor: pointer; font-size: 14px; letter-spacing: -3px; }
.react-sum[hidden] { display: none; }
.react-pick { position: absolute; bottom: 40px; left: -4px; z-index: 20; display: flex; gap: 2px; padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.97); box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.react-pick[hidden] { display: none; }
.react-pick button { border: 0; background: none; font-size: 24px; line-height: 1; padding: 4px; border-radius: 50%; cursor: pointer; transition: transform .12s; }
.react-pick button:hover { transform: scale(1.3); }

/* ===== 多張圖片 ===== */
.pimg.grid { display: grid; gap: 4px; border-radius: 16px; overflow: hidden; }
.pimg.grid img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; border-radius: 0; }
.pimg.grid.g1 img { height: auto; max-height: 520px; }
.pimg.grid.g2 { grid-template-columns: 1fr 1fr; height: 300px; }
.pimg.grid.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 320px; }
.pimg.grid.g3 img:first-child { grid-row: span 2; }
.pimg.grid.g4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 340px; }
.mpreview { display: flex; gap: 8px; flex-wrap: wrap; }
.mpreview .thumb { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; }
.mpreview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mpreview .thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }

/* ===== 轉發、引用 ===== */
.reposted { font-size: 13px; text-decoration: none; margin-bottom: 2px; }
.quote { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.45); color: inherit; text-decoration: none; }
.quote:hover { background: rgba(255,255,255,.7); }
.quote.deleted { color: var(--muted); font-size: 14px; }
.quote .meta { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.quote .text { font-size: 14px; white-space: pre-wrap; }
.quote .qimgs { position: relative; }
.quote .qimgs img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }
.quote .qimgs span { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.blurimg { filter: blur(20px); }
.avatar.xs { width: 20px; height: 20px; font-size: 11px; }
.cchip { margin-left: 6px; font-size: 12px; padding: 2px 8px; border-radius: 999px; text-decoration: none; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); white-space: nowrap; }

/* ===== 限時動態 ===== */
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.stories[hidden] { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; width: 68px; flex: none; padding: 0; color: var(--text); }
.story small { font-size: 12px; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .ring { position: relative; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent, #4A90D9)); }
.story .ring.seen { background: rgba(0,0,0,.15); }
.story .ring.none { background: transparent; }
.story .ring .avatar { width: 56px; height: 56px; border: 2px solid #fff; font-size: 20px; }
.story .ring i { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; font-size: 14px; }
.story-view { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: grid; place-items: center; }
.story-stage { position: relative; width: min(420px, 100vw); height: min(740px, 100vh); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.story-stage.small { height: 340px; width: 100%; border-radius: 14px; padding: 20px; transition: background .2s; }
.story-stage.small textarea { background: transparent; border: 0; color: #fff; font-size: 22px; font-weight: 700; text-align: center; resize: none; outline: none; }
.story-stage.small textarea::placeholder { color: rgba(255,255,255,.7); }
.story-stage img { width: 100%; height: 100%; object-fit: contain; }
.story-stage .stext { margin: 0; padding: 0 28px; font-size: 26px; font-weight: 700; text-align: center; white-space: pre-wrap; line-height: 1.5; }
.story-stage .scap { position: absolute; left: 0; right: 0; bottom: 40px; margin: 0; padding: 10px 20px; text-align: center; font-size: 18px; background: rgba(0,0,0,.4); }
.sbars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sbars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.sbars i.done { background: #fff; }
.sbars i.now::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: sbar 6s linear forwards; }
@keyframes sbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shead { position: absolute; top: 20px; left: 12px; right: 8px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.shead small { opacity: .8; }
.icon-btn.light { color: #fff; }
.snav { position: absolute; top: 70px; bottom: 0; width: 35%; border: 0; background: transparent; cursor: pointer; z-index: 2; }
.snav.prev { left: 0; } .snav.next { right: 0; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; }

/* ===== 每日投票 ===== */
.daily { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 20px; border: 1.5px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.daily .text { font-size: 17px; font-weight: 700; }

/* ===== 社團 ===== */
.ccard { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: inherit; }
.ccard .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cicon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.cicon.lg { width: 64px; height: 64px; font-size: 34px; border-radius: 18px; }
.chead { gap: 12px; }
.csel { border: 1px solid rgba(0,0,0,.12); border-radius: 999px; padding: 4px 10px; background: rgba(255,255,255,.7); font: inherit; font-size: 13px; max-width: 160px; }
.csel[hidden] { display: none; }
.pill.ok { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }

/* ===== 處理紀錄、透明度、徽章 ===== */
.status-banner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #FCEBEB; color: #7A1F1F; border: 1px solid #F0BDBD; }
.snap { margin: 0; padding: 8px 12px; border-left: 3px solid rgba(0,0,0,.15); color: var(--muted); font-size: 14px; white-space: pre-wrap; background: rgba(255,255,255,.4); border-radius: 0 10px 10px 0; }
.appeal { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.5); }
.tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tstats div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.5); }
.tstats b { font-size: 22px; font-family: var(--display, inherit); }
.tstats small { color: var(--muted); }
.tbar { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 10px; font-size: 14px; }
.tbar i { height: 10px; border-radius: 6px; background: var(--primary); opacity: .7; }
.tbar b { text-align: right; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.08); cursor: default; }
@media (max-width: 640px) { .tstats { grid-template-columns: repeat(2, 1fr); } .tbar { grid-template-columns: 100px 1fr 32px; } .pimg.grid.g2, .pimg.grid.g3, .pimg.grid.g4 { height: 240px; } }
.appeal .pill { align-self: flex-start; }

.bchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.bchips::-webkit-scrollbar { display: none; }
.bchips button { flex: none; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.6); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.bchips button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
