/* 活動總覽(public/activity-overview-ui.js):菜單 → 優惠活動 最上面、總部 → 活動。
   手機優先:一欄、卡片整張可點(44px 以上)、字 13px 以上、不橫向捲動;寬螢幕卡片兩欄排。 */
.act-ov { margin: 0 0 14px; border: 1px solid var(--line, #dee2e6); border-radius: 12px; background: #fff; padding: 12px; min-width: 0; }
#act-ov-hq.hq-panel { padding: 14px; }
.ov-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.ov-title { font-size: 17px; font-weight: 800; }
.ov-sub { font-size: 13px; color: var(--muted, #6b7280); }
.ov-pick { margin-bottom: 8px; font-size: 14px; }
.ov-pick select { min-height: 44px; font-size: 15px; max-width: 100%; }
.ov-warn { font-size: 13.5px; line-height: 1.5; color: #7a4a00; background: #fff4e6; border: 1px solid #ffc078; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.ov-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ov-f { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line, #dee2e6); background: #f8f9fa; color: #343a40; font-size: 14px; font-weight: 700; cursor: pointer; }
.ov-f.on { background: #fff4e6; border-color: #ffa94d; color: #c2410c; }
.ov-grp { margin-bottom: 8px; }
.ov-grp-h { font-size: 13px; font-weight: 800; color: #495057; letter-spacing: .04em; margin: 10px 0 6px; }
.ov-card { position: relative; border: 1px solid var(--line, #dee2e6); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; min-width: 0; }
.ov-card[data-row-act] { cursor: pointer; min-height: 44px; }
.ov-card.dim { background: #f8f9fa; }
.ov-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.ov-name { font-size: 15.5px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.ov-st { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: #f1f3f5; color: #6b7280; }
.ov-st.live { background: #ebfbee; color: var(--ok-fg, #1f7a32); }
.ov-st.soon { background: #fff4e6; color: #c2410c; }
.ov-st.wait { background: #e7f5ff; color: #1864ab; }
.ov-st.pause { background: #fff9db; color: #8a5a00; }
.ov-desc { font-size: 14px; line-height: 1.5; color: #343a40; margin-top: 4px; overflow-wrap: anywhere; }
.ov-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.ov-chip { font-size: 13px; font-weight: 700; border-radius: 4px; padding: 1px 6px; background: #f1f3f5; color: #495057; border: 1px solid #dee2e6; white-space: nowrap; }
.ov-chip.online { background: #fff9db; color: #8a5a00; border-color: #ffe066; }
.ov-chip.co { background: #e7f5ff; color: #1971c2; border-color: #a5d8ff; }
.ov-chip.kind { background: transparent; border-color: transparent; padding-left: 0; color: #6b7280; }
.ov-go { display: block; margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--primary-text, #c2410c); text-align: right; }
.ov-note { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: #6b7280; }
.ov-empty { font-size: 14px; line-height: 1.6; color: #6b7280; padding: 14px 4px; }
.ov-dead { margin-top: 6px; }
.ov-dead > summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 700; color: #6b7280; cursor: pointer; }
@media (min-width: 900px) {
  .ov-grp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .ov-grp-h { grid-column: 1 / -1; }
}
/* 整塊可收起(平常展開;下面還有各種活動的設定卡,手機上想直接看設定就收起來) */
.ov-wrap > summary.ov-head { list-style: none; cursor: pointer; min-height: 44px; align-items: center; margin-bottom: 0; }
.ov-wrap > summary.ov-head::-webkit-details-marker { display: none; }
.ov-wrap > summary.ov-head::after { content: '▾'; margin-left: auto; color: #adb5bd; font-size: 14px; }
.ov-wrap[open] > summary.ov-head { margin-bottom: 8px; }
.ov-wrap[open] > summary.ov-head::after { content: '▴'; }
/* 「編輯 ›」跟標籤同一行靠右,卡片不多佔一行 */
.ov-meta .ov-go { margin: 0 0 0 auto; align-self: center; }
