/* =====================================================================
   房间广场（V3.25）
   沿用夜屋语言：灯色 #F5C97A 系、深色夜空底；浅色主题冷调浅灰玻璃 #F5F6F8。
   广场卡片是「亮着的窗」，房间页是「一间有人安静做事的屋子」。
   动效统一在 data-motion=off 与 prefers-reduced-motion 下关停。
   ===================================================================== */

/* ---------- 通用：灯点 ---------- */
.plaza-lamp {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #F5C97A;
  box-shadow: 0 0 6px rgba(245, 201, 122, 0.85);
  vertical-align: middle;
}
.plaza-lamp.is-off {
  background: rgba(154, 163, 178, 0.5);
  box-shadow: none;
}

/* =====================================================================
   一、广场列表页
   ===================================================================== */
.plaza-wrap { padding-bottom: 40px; }

.plaza-head { padding: 18px 0 6px; }
.plaza-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink, #1A1208);
}
.plaza-sub {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #6B6355);
}
.plaza-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #8A6A22;
  background: rgba(245, 201, 122, 0.16);
  border: 1px solid rgba(245, 201, 122, 0.34);
}
.plaza-live.is-quiet {
  color: var(--muted, #6B6355);
  background: rgba(154, 163, 178, 0.1);
  border-color: rgba(154, 163, 178, 0.24);
}
.plaza-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #E5B45C;
  box-shadow: 0 0 6px rgba(229, 180, 92, 0.9);
  animation: plaza-breathe 2.6s ease-in-out infinite;
}
@keyframes plaza-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

/* ---------- 分类筛选 ---------- */
.plaza-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 16px;
  scrollbar-width: none;
}
.plaza-cats::-webkit-scrollbar { display: none; }
.plaza-cat {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted, #6B6355);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: color .18s, background .18s, border-color .18s;
}
.plaza-cat:hover { color: #8A6A22; border-color: rgba(245, 201, 122, 0.5); }
.plaza-cat.is-on {
  color: #6B4E12;
  background: rgba(245, 201, 122, 0.28);
  border-color: rgba(229, 180, 92, 0.6);
  font-weight: 600;
}

/* ---------- 营内房间 ---------- */
.plaza-camp {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 201, 122, 0.14), rgba(245, 201, 122, 0.04));
  border: 1px solid rgba(229, 180, 92, 0.3);
}
.plaza-camp-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #6B4E12;
}
.plaza-camp-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted, #6B6355);
}
.plaza-camp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plaza-camp-room {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(229, 180, 92, 0.28);
  transition: transform .18s, box-shadow .18s;
}
.plaza-camp-room:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(160, 130, 60, 0.16); }
.plaza-camp-name { font-size: 14px; color: var(--ink, #1A1208); }
.plaza-camp-lit { font-size: 12px; color: #8A6A22; }

/* ---------- 房间卡片 ---------- */
.plaza-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plaza-card {
  border-radius: 16px;
  background: #FFFDF7;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 10px rgba(120, 100, 60, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.plaza-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(120, 100, 60, 0.14);
  border-color: rgba(229, 180, 92, 0.45);
}
.plaza-card.is-quiet { background: #FAF9F5; }
.plaza-card.is-quiet .plaza-card-name { color: #7A7365; }
.plaza-card.is-mine { border-color: rgba(229, 180, 92, 0.7); }

.plaza-card-link {
  display: block;
  padding: 15px 16px;
  text-decoration: none;
  color: inherit;
}
.plaza-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.plaza-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #1A1208);
}
.plaza-card-lit {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: #8A6A22;
  white-space: nowrap;
}
.plaza-card.is-quiet .plaza-card-lit { color: #9A9384; }
.plaza-card-task {
  display: block;
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--muted, #6B6355);
}
.plaza-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.plaza-card-tags em {
  font-style: normal;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #7A6A48;
  background: rgba(245, 201, 122, 0.16);
}
.plaza-card-tags em.is-camp {
  color: #6B4E12;
  background: rgba(229, 180, 92, 0.3);
}
.plaza-card-mine {
  display: inline-block;
  margin-top: 9px;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #6B4E12;
  background: rgba(245, 201, 122, 0.34);
}

.plaza-empty {
  padding: 40px 20px;
  text-align: center;
  border-radius: 16px;
  background: #FAF9F5;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}
.plaza-empty p { margin: 0 0 14px; color: var(--muted, #6B6355); }

.plaza-foot-note {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: #9A9384;
}

/* ---------- 轻确认浮层 ---------- */
.plaza-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 0;
  background: rgba(20, 16, 10, 0.42);
  backdrop-filter: blur(2px);
}
.plaza-sheet[hidden] { display: none; }
.plaza-sheet-box {
  width: 100%;
  max-width: 460px;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #FFFDF7;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  animation: plaza-sheet-up .26s ease;
}
@keyframes plaza-sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.plaza-sheet-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #1A1208);
}
.plaza-sheet-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted, #6B6355);
}
.plaza-sheet-btns {
  display: flex;
  gap: 10px;
}
.plaza-sheet-btns .btn { flex: 1 1 0; }

/* =====================================================================
   二、房间专注页
   ===================================================================== */
.plaza-room { padding-bottom: 40px; }

.pr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 8px;
}
.pr-back {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 17px;
  color: var(--muted, #6B6355);
  background: rgba(0, 0, 0, 0.04);
  transition: background .18s, color .18s;
}
.pr-back:hover { color: #8A6A22; background: rgba(245, 201, 122, 0.2); }
.pr-name {
  flex: 1 1 auto;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink, #1A1208);
}
.pr-lit {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: #8A6A22;
  white-space: nowrap;
}

.pr-topic {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted, #6B6355);
}

/* ---------- 光点区 ---------- */
.pr-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 18px 14px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 40%, rgba(245, 201, 122, 0.14), rgba(245, 201, 122, 0.02) 70%);
  border: 1px solid rgba(229, 180, 92, 0.2);
}
.pr-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(154, 163, 178, 0.42);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.pr-dot.is-lit {
  background: #F5C97A;
  box-shadow: 0 0 8px rgba(245, 201, 122, 0.8);
}
.pr-dot.is-away {
  background: rgba(245, 201, 122, 0.34);
  box-shadow: 0 0 4px rgba(245, 201, 122, 0.3);
}
.pr-dot.is-me {
  width: 13px; height: 13px;
  background: #FFE8B8;
  box-shadow: 0 0 12px rgba(255, 232, 184, 0.95);
}
.pr-dot-more {
  font-size: 12px;
  color: #8A6A22;
}
.pr-dots-note {
  margin: 10px 0 18px;
  font-size: 12.5px;
  text-align: center;
  color: #9A9384;
}

/* ---------- 计时面板（复用 .countdown 视觉） ---------- */
.pr-lamp {
  padding: 26px 18px 22px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 201, 122, 0.1), rgba(245, 201, 122, 0.02));
  border: 1px solid rgba(229, 180, 92, 0.22);
}
.pr-lamp-label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #9A8A66;
}
.pr-lamp .countdown {
  margin: 8px 0 6px;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #6B4E12;
  font-variant-numeric: tabular-nums;
}
.pr-lamp .countdown-sub {
  font-size: 13px;
  color: var(--muted, #6B6355);
}

/* ---------- 我在做… ---------- */
.pr-task {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
}
.pr-task-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted, #6B6355);
}
.pr-task-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink, #1A1208);
  background: #FFFDF7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color .18s, box-shadow .18s;
}
.pr-task-input:focus {
  outline: none;
  border-color: rgba(229, 180, 92, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 201, 122, 0.18);
}

/* ---------- 操作 ---------- */
.pr-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
}
.pr-actions .btn { flex: 1 1 0; }

/* ---------- 结算卡 ---------- */
.pr-done {
  margin: 18px 0 0;
  padding: 22px 18px;
  text-align: center;
  border-radius: 18px;
  background: #FFFDF7;
  border: 1px solid rgba(229, 180, 92, 0.3);
  animation: plaza-fade-in .3s ease;
}
.pr-done[hidden] { display: none; }
@keyframes plaza-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pr-done-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #1A1208);
}
.pr-done-note {
  margin: 8px 0 16px;
  font-size: 13.5px;
  color: var(--muted, #6B6355);
}
.pr-done-btns {
  display: flex;
  gap: 10px;
}
.pr-done-btns .btn { flex: 1 1 0; }

.pr-foot-note {
  margin: 24px 0 0;
  font-size: 12px;
  text-align: center;
  color: #9A9384;
}

/* =====================================================================
   三、首页板块
   ===================================================================== */
.plaza-block {
  margin: 18px 0 0;
  padding: 0;
}
.plaza-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.plaza-block-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1A1208);
}
.plaza-block-title .plaza-lamp { margin-right: 6px; }
.plaza-block-more {
  flex: 0 0 auto;
  font-size: 12.5px;
  text-decoration: none;
  color: #8A6A22;
  transition: color .18s;
}
.plaza-block-more:hover { color: #6B4E12; }
.plaza-block-fold {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  color: #9A9384;
  cursor: pointer;
  padding: 2px 4px;
  transition: color .18s;
}
.plaza-block-fold:hover { color: #8A6A22; }

.plaza-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.plaza-rail::-webkit-scrollbar { display: none; }

.plaza-mini {
  flex: 0 0 62%;
  max-width: 220px;
  scroll-snap-align: start;
  border-radius: 14px;
  background: #FFFDF7;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 8px rgba(120, 100, 60, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.plaza-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(120, 100, 60, 0.14); }
.plaza-mini.is-quiet { background: #FAF9F5; }
.plaza-mini-link {
  display: block;
  padding: 12px 13px;
  text-decoration: none;
  color: inherit;
}
.plaza-mini-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink, #1A1208);
}
.plaza-mini.is-quiet .plaza-mini-name { color: #7A7365; }
.plaza-mini-lit {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #8A6A22;
}
.plaza-mini.is-quiet .plaza-mini-lit { color: #9A9384; }
.plaza-mini-task {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted, #6B6355);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 折叠态：只留一行文字链 */
.plaza-block.is-folded .plaza-rail,
.plaza-block.is-folded .plaza-block-more { display: none; }
.plaza-block.is-folded .plaza-block-head { margin-bottom: 0; }

/* ---------- 计时区下方常驻卡片 ---------- */
.plaza-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  color: #6B4E12;
  background: rgba(245, 201, 122, 0.14);
  border: 1px solid rgba(229, 180, 92, 0.3);
  transition: background .18s, transform .18s;
}
.plaza-strip:hover { background: rgba(245, 201, 122, 0.24); transform: translateY(-1px); }
.plaza-strip-arrow { flex: 0 0 auto; color: #8A6A22; }

/* =====================================================================
   四、深色主题（夜屋）
   ===================================================================== */
html:not([data-theme="light"]) .plaza-title,
html:not([data-theme="light"]) .pr-name,
html:not([data-theme="light"]) .plaza-card-name,
html:not([data-theme="light"]) .plaza-mini-name,
html:not([data-theme="light"]) .pr-done-title,
html:not([data-theme="light"]) .plaza-block-title,
html:not([data-theme="light"]) .plaza-sheet-title {
  color: #E8E2D4;
}
html:not([data-theme="light"]) .plaza-sub,
html:not([data-theme="light"]) .plaza-card-task,
html:not([data-theme="light"]) .plaza-mini-task,
html:not([data-theme="light"]) .pr-topic,
html:not([data-theme="light"]) .pr-task-label,
html:not([data-theme="light"]) .pr-done-note,
html:not([data-theme="light"]) .plaza-sheet-text,
html:not([data-theme="light"]) .plaza-camp-note {
  color: #9AA3B2;
}
html:not([data-theme="light"]) .plaza-card,
html:not([data-theme="light"]) .plaza-mini,
html:not([data-theme="light"]) .pr-done,
html:not([data-theme="light"]) .plaza-sheet-box {
  background: rgba(26, 34, 52, 0.92);
  border-color: rgba(245, 201, 122, 0.18);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
html:not([data-theme="light"]) .plaza-card.is-quiet,
html:not([data-theme="light"]) .plaza-mini.is-quiet,
html:not([data-theme="light"]) .plaza-empty {
  background: rgba(26, 34, 52, 0.6);
}
html:not([data-theme="light"]) .plaza-card.is-quiet .plaza-card-name,
html:not([data-theme="light"]) .plaza-mini.is-quiet .plaza-mini-name {
  color: #9AA3B2;
}
html:not([data-theme="light"]) .plaza-cat {
  color: #9AA3B2;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
html:not([data-theme="light"]) .plaza-cat.is-on {
  color: #F5C97A;
  background: rgba(245, 201, 122, 0.18);
  border-color: rgba(245, 201, 122, 0.5);
}
html:not([data-theme="light"]) .plaza-camp {
  background: linear-gradient(135deg, rgba(245, 201, 122, 0.12), rgba(245, 201, 122, 0.02));
  border-color: rgba(245, 201, 122, 0.26);
}
html:not([data-theme="light"]) .plaza-camp-title { color: #F5C97A; }
html:not([data-theme="light"]) .plaza-camp-room {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 201, 122, 0.24);
}
html:not([data-theme="light"]) .plaza-camp-name { color: #E8E2D4; }
html:not([data-theme="light"]) .plaza-camp-lit { color: #F5C97A; }
html:not([data-theme="light"]) .pr-back {
  color: #9AA3B2;
  background: rgba(255, 255, 255, 0.08);
}
html:not([data-theme="light"]) .pr-lamp {
  background: linear-gradient(180deg, rgba(245, 201, 122, 0.12), rgba(245, 201, 122, 0.02));
  border-color: rgba(245, 201, 122, 0.22);
}
html:not([data-theme="light"]) .pr-lamp .countdown { color: #F5C97A; }
html:not([data-theme="light"]) .pr-lamp-label { color: #9AA3B2; }
html:not([data-theme="light"]) .pr-lamp .countdown-sub { color: #9AA3B2; }
html:not([data-theme="light"]) .pr-task-input {
  color: #E8E2D4;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
html:not([data-theme="light"]) .pr-dots {
  background: radial-gradient(ellipse at 50% 40%, rgba(245, 201, 122, 0.16), rgba(245, 201, 122, 0.02) 70%);
  border-color: rgba(245, 201, 122, 0.2);
}
html:not([data-theme="light"]) .plaza-strip {
  color: #F5C97A;
  background: rgba(245, 201, 122, 0.12);
  border-color: rgba(245, 201, 122, 0.28);
}
html:not([data-theme="light"]) .plaza-strip:hover { background: rgba(245, 201, 122, 0.2); }
html:not([data-theme="light"]) .plaza-foot-note,
html:not([data-theme="light"]) .pr-foot-note,
html:not([data-theme="light"]) .pr-dots-note { color: #6E7686; }

/* =====================================================================
   五、桌面端
   ===================================================================== */
@media (min-width: 768px) {
  .plaza-grid { grid-template-columns: repeat(2, 1fr); }
  .plaza-mini { flex: 0 0 30%; max-width: 240px; }
  .plaza-sheet { align-items: center; padding: 20px; }
  .plaza-sheet-box { border-radius: 20px; }
  .pr-lamp .countdown { font-size: 48px; }
}

/* =====================================================================
   六、动效关停
   ===================================================================== */
[data-motion="off"] .plaza-live-dot { animation: none; }
[data-motion="off"] .plaza-card,
[data-motion="off"] .plaza-mini,
[data-motion="off"] .plaza-camp-room,
[data-motion="off"] .plaza-strip,
[data-motion="off"] .pr-dot { transition: none; }
[data-motion="off"] .plaza-sheet-box,
[data-motion="off"] .pr-done { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .plaza-live-dot { animation: none; }
  .plaza-card, .plaza-mini, .plaza-camp-room, .plaza-strip, .pr-dot { transition: none; }
  .plaza-sheet-box, .pr-done { animation: none; }
}
/* =====================================================================
 七、V3.26 白天档（.plaza-day）
 白天进广场用浅色底，晚间沿用上面的夜色。
 只在本页容器作用域内覆盖，不动全局主题，也不抢用户已选的「柔光」偏好。
 ===================================================================== */
.plaza-day {
 --plaza-day-bg: #F5F6F8;
 --plaza-day-card: #FFFFFF;
 --plaza-day-line: rgba(26, 18, 8, 0.08);
 --plaza-day-ink: #1F2328;
 --plaza-day-sub: #6B7280;
 --plaza-day-accent: #B98A3C;
}

.plaza-day .plaza-title,
.plaza-day .pr-name,
.plaza-day .plaza-card-name,
.plaza-day .plaza-mini-name,
.plaza-day .pr-done-title,
.plaza-day .plaza-block-title,
.plaza-day .plaza-sheet-title,
.plaza-day .plaza-camp-title {
 color: var(--plaza-day-ink);
}

.plaza-day .plaza-sub,
.plaza-day .plaza-card-task,
.plaza-day .plaza-mini-task,
.plaza-day .pr-topic,
.plaza-day .pr-task-label,
.plaza-day .pr-done-note,
.plaza-day .plaza-sheet-text,
.plaza-day .plaza-camp-note,
.plaza-day .plaza-foot-note,
.plaza-day .pr-dots-note {
 color: var(--plaza-day-sub);
}

.plaza-day .plaza-card,
.plaza-day .plaza-mini,
.plaza-day .pr-done,
.plaza-day .plaza-sheet-box,
.plaza-day .plaza-camp-room {
 background: var(--plaza-day-card);
 border-color: var(--plaza-day-line);
 box-shadow: 0 1px 2px rgba(26, 18, 8, 0.04), 0 8px 24px rgba(26, 18, 8, 0.05);
}

.plaza-day .plaza-card.is-quiet,
.plaza-day .plaza-mini.is-quiet {
 background: #FAFBFC;
}

.plaza-day .plaza-card:hover,
.plaza-day .plaza-mini:hover,
.plaza-day .plaza-camp-room:hover {
 border-color: rgba(185, 138, 60, 0.35);
 box-shadow: 0 2px 4px rgba(26, 18, 8, 0.05), 0 12px 28px rgba(185, 138, 60, 0.12);
}

.plaza-day .plaza-live-dot {
 background: var(--plaza-day-accent);
 box-shadow: 0 0 0 4px rgba(185, 138, 60, 0.14);
}

.plaza-day .plaza-live,
.plaza-day .plaza-card-lit,
.plaza-day .plaza-camp-lit {
 color: var(--plaza-day-accent);
}

.plaza-day .plaza-cat {
 color: var(--plaza-day-sub);
 border-color: var(--plaza-day-line);
 background: var(--plaza-day-card);
}

.plaza-day .plaza-cat.is-on {
 color: #FFFFFF;
 background: var(--plaza-day-accent);
 border-color: var(--plaza-day-accent);
}

.plaza-day .plaza-card-tags em {
 color: var(--plaza-day-sub);
 background: rgba(26, 18, 8, 0.04);
}

.plaza-day .pr-dot {
 background: rgba(26, 18, 8, 0.12);
}

.plaza-day .pr-dot.is-lit {
 background: var(--plaza-day-accent);
}

.plaza-day .pr-lamp .countdown {
 color: var(--plaza-day-ink);
}

/* 用户显式选了深色主题时，白天也不强推浅色底——尊重用户选择 */
html[data-theme="dark"] .plaza-day .plaza-card,
html[data-theme="dark"] .plaza-day .plaza-mini,
html[data-theme="dark"] .plaza-day .plaza-sheet-box,
html[data-theme="dark"] .plaza-day .plaza-camp-room {
 background: rgba(255, 255, 255, 0.06);
 border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .plaza-day .plaza-title,
html[data-theme="dark"] .plaza-day .pr-name,
html[data-theme="dark"] .plaza-day .plaza-card-name,
html[data-theme="dark"] .plaza-day .plaza-mini-name,
html[data-theme="dark"] .plaza-day .plaza-camp-title {
 color: #F2F4F7;
}

html[data-theme="dark"] .plaza-day .plaza-sub,
html[data-theme="dark"] .plaza-day .plaza-card-task,
html:not([data-theme="light"]) .plaza-day .plaza-foot-note {
 color: #9AA3B2;
}

/* =====================================================================
   八、V3.27 同频聚合 + 任务胶囊
   同频行只在人数 ≥3 时由服务端渲染（k-匿名阈值），这里只管样式。
   胶囊是「任务条区域的增强」，不新增弹窗、不新增前置步骤。
   ===================================================================== */

/* ---------- 房间内同频行 ---------- */
.pr-same-freq {
  margin: 14px 0 0;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: #6B4E12;
  border-radius: 12px;
  background: rgba(245, 201, 122, 0.12);
  border: 1px solid rgba(229, 180, 92, 0.24);
  animation: plaza-fade-in .3s ease;
}

/* ---------- 任务胶囊 ---------- */
.pr-caps {
  margin: 16px 0 0;
}
.pr-caps-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted, #6B6355);
}
.pr-caps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pr-cap {
  padding: 7px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #6B4E12;
  background: #FFFDF7;
  border: 1px solid rgba(229, 180, 92, 0.34);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.pr-cap:hover {
  background: rgba(245, 201, 122, 0.18);
  border-color: rgba(229, 180, 92, 0.6);
  transform: translateY(-1px);
}
.pr-cap.is-on {
  color: #4A3408;
  background: #FFE8B8;
  border-color: #E5B45C;
  font-weight: 600;
}
.pr-caps-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #8A6A22;
}
.pr-caps-note[hidden] { display: none; }

/* ---------- 结算页累计数 ---------- */
.pr-done-total {
  margin: 6px 0 14px;
  font-size: 13px;
  color: #8A6A22;
}

/* ---------- 广场卡片 / 首页小卡的同频文案 ---------- */
.plaza-card-freq {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #8A6A22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plaza-card-freq.is-quiet { color: #9A9384; }
.plaza-mini-freq {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8A6A22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 深色主题 ---------- */
html:not([data-theme="light"]) .pr-same-freq {
  color: #F5C97A;
  background: rgba(245, 201, 122, 0.1);
  border-color: rgba(245, 201, 122, 0.24);
}
html:not([data-theme="light"]) .pr-caps-label { color: #9AA3B2; }
html:not([data-theme="light"]) .pr-cap {
  color: #E8E2D4;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 201, 122, 0.24);
}
html:not([data-theme="light"]) .pr-cap:hover {
  background: rgba(245, 201, 122, 0.16);
  border-color: rgba(245, 201, 122, 0.5);
}
html:not([data-theme="light"]) .pr-cap.is-on {
  color: #1A1208;
  background: #F5C97A;
  border-color: #F5C97A;
}
html:not([data-theme="light"]) .pr-caps-note,
html:not([data-theme="light"]) .pr-done-total,
html:not([data-theme="light"]) .plaza-card-freq,
html:not([data-theme="light"]) .plaza-mini-freq {
  color: #C9A45E;
}
html:not([data-theme="light"]) .plaza-card-freq.is-quiet { color: #6E7686; }

/* ---------- 白天档 ---------- */
.plaza-day .pr-same-freq {
  color: var(--plaza-day-accent);
  background: rgba(185, 138, 60, 0.08);
  border-color: rgba(185, 138, 60, 0.2);
}
.plaza-day .pr-caps-label { color: var(--plaza-day-sub); }
.plaza-day .pr-cap {
  color: var(--plaza-day-ink);
  background: var(--plaza-day-card);
  border-color: var(--plaza-day-line);
}
.plaza-day .pr-cap:hover { border-color: rgba(185, 138, 60, 0.45); }
.plaza-day .pr-cap.is-on {
  color: #FFFFFF;
  background: var(--plaza-day-accent);
  border-color: var(--plaza-day-accent);
}
.plaza-day .pr-caps-note,
.plaza-day .pr-done-total,
.plaza-day .plaza-card-freq,
.plaza-day .plaza-mini-freq {
  color: var(--plaza-day-accent);
}
.plaza-day .plaza-card-freq.is-quiet { color: var(--plaza-day-sub); }

/* ---------- 动效关停 ---------- */
[data-motion="off"] .pr-cap,
[data-motion="off"] .pr-same-freq { transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .pr-cap { transition: none; }
  .pr-same-freq { animation: none; }
}
