/* =====================================================================
   Ripple 介面優化層（2026-11-19 起）
   ---------------------------------------------------------------------
   只處理呈現與操作回饋，不改任何流程或資料。由 master.html 在 0100_main.css 之後載入。
   命名一律加 rx- 前綴，避免和既有 class、Tailwind utility 衝突。
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. 設計 token（沿用 theme-system.css 的顏色，補上文字用品牌色與動態時間）
   --------------------------------------------------------------------- */
:root,
:root[data-theme="dark"] {
    --rx-brand: var(--color-primary, #FF6A00);
    --rx-brand-hover: var(--color-primary-light, #FF8533);
    /* 品牌橘當「文字」用：深色底上原色即可 */
    --rx-brand-text: #FF7A1A;
    --rx-brand-soft: rgba(255, 106, 0, 0.14);
    --rx-surface: var(--bg-card, #000000);
    --rx-surface-raised: #1A1A1A;
    --rx-text: var(--text-primary, #FFFFFF);
    --rx-text-muted: #A3A3A3;
    --rx-border: var(--border-primary, #2A2A2A);
    --rx-focus: #FF8533;

    --rx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --rx-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --rx-dur-fast: 160ms;
    --rx-dur: 260ms;
}

:root[data-theme="light"] {
    /* 白底上 #FF6A00 只有 2.87:1，文字改用加深的品牌橘（5.5:1） */
    --rx-brand-text: #B34700;
    --rx-brand-soft: rgba(255, 106, 0, 0.10);
    --rx-surface: #FFFFFF;
    --rx-surface-raised: #FFFFFF;
    --rx-text: #111111;
    --rx-text-muted: #5B6170;
    --rx-border: #E5E7EB;
    --rx-focus: #CC5500;
}

/* ---------------------------------------------------------------------
   2. 鍵盤操作的焦點框（滑鼠點擊不顯示）
   --------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--rx-focus);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------------------------------------------------------------------
   3. 手機底部導覽列（mobile-nav.html）
      五格等寬、圖示與文字對齊同一條基準線；中間「建立貼文」微凸並保留文字；
      目前所在頁以 aria-current 標示（js/ripple-ux.js 設定）
   --------------------------------------------------------------------- */
.rx-tabbar__row {
    display: flex;
    align-items: stretch;
    height: 64px;
    padding: 0 4px;
}

.rx-tabbar__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0 2px 10px;
    color: var(--rx-text-muted);
    -webkit-tap-highlight-color: transparent;
    transition: color var(--rx-dur-fast) ease;
}

.rx-tabbar__item > i {
    font-size: 19px;
    line-height: 1;
    height: 20px;
    display: flex;
    align-items: center;
    transition: transform var(--rx-dur) var(--rx-ease-spring);
}

.rx-tabbar__label {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-tabbar__item:active > i {
    transform: scale(0.88);
}

/* theme-system.css 會把所有連結染成品牌橘、所有圖示染成白色（選擇器權重較高），
   導覽列用 :not(#rx) 提高權重，維持「未選取灰、選取橘」 */
.rx-tabbar .rx-tabbar__item:not(#rx) {
    color: var(--rx-text-muted);
}

.rx-tabbar .rx-tabbar__item:not(#rx) > i,
.rx-tabbar .rx-tabbar__item:not(#rx) .rx-tabbar__label {
    color: inherit;
}

/* 目前所在頁：品牌色＋上方指示條 */
.rx-tabbar .rx-tabbar__item[aria-current="page"]:not(#rx) {
    color: var(--rx-brand-text);
}

.rx-tabbar .rx-tabbar__fab:not(#rx) > i {
    color: #FFFFFF;
}

/* 淺色主題：導覽列原本固定黑底，改為跟著主題 */
:root[data-theme="light"] .rx-tabbar:not(#rx) {
    background-color: #FFFFFF;
    border-top-color: var(--rx-border);
    box-shadow: 0 -4px 16px -8px rgba(17, 17, 17, 0.12);
}

.rx-tabbar__item[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 3px;
    margin-left: -14px;
    border-radius: 0 0 3px 3px;
    background: var(--rx-brand);
}

/* 中間的建立貼文：圓形按鈕微凸，文字與其他格對齊 */
.rx-tabbar__fab {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 52px;
    height: 52px;
    margin-left: -26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rx-brand);
    color: #FFFFFF;
    font-size: 20px;
    box-shadow: 0 6px 16px -4px rgba(255, 106, 0, 0.55), 0 0 0 4px var(--bg-card, #000000);
    transition: transform var(--rx-dur) var(--rx-ease-spring), background-color var(--rx-dur-fast) ease, opacity var(--rx-dur-fast) ease;
}

:root[data-theme="light"] .rx-tabbar__fab {
    box-shadow: 0 6px 16px -4px rgba(255, 106, 0, 0.45), 0 0 0 4px #FFFFFF;
}

/* 往下捲時導覽列會整條往下藏起（load-mobile-nav.js 設 translateY(100%)），
   微凸的圓形按鈕會露出一截，跟著淡出 */
.rx-tabbar[style*="translateY(100%)"] .rx-tabbar__fab {
    opacity: 0;
    transform: translateY(24px);
}

.rx-tabbar__item--create:active .rx-tabbar__fab {
    transform: scale(0.92);
    background: var(--rx-brand-hover);
}

/* ---------------------------------------------------------------------
   4. 首頁動態牆（landing.html；卡片由 vendor/landing.api.js 產生，這裡只調外觀）
      卡片：文字／圖片／影片貼文與活動卡片共用同一個互動列結構
   --------------------------------------------------------------------- */

/* 4-1 卡片載入時由下往上浮現（無限捲動新載入的卡片也會），前幾張依序出現 */
#dynamicPostsSection > [data-view-target-type] {
    animation: rx-rise 520ms var(--rx-ease-out) backwards;
    transition: border-color var(--rx-dur-fast) ease, box-shadow var(--rx-dur) var(--rx-ease-out);
}

#dynamicPostsSection > [data-view-target-type]:nth-child(2) { animation-delay: 60ms; }
#dynamicPostsSection > [data-view-target-type]:nth-child(3) { animation-delay: 120ms; }
#dynamicPostsSection > [data-view-target-type]:nth-child(4) { animation-delay: 180ms; }

#dynamicPostsSection > [data-view-target-type]:hover {
    border-color: var(--border-secondary, #3A3A3A);
    box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.8);
}

:root[data-theme="light"] #dynamicPostsSection > [data-view-target-type]:hover {
    box-shadow: 0 12px 28px -18px rgba(17, 17, 17, 0.28);
}

@keyframes rx-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* 4-2 互動列：瀏覽數｜按讚｜留言｜分享｜檢舉
   原本五個項目用 justify-between 平均散開、只有圖示大小的點擊範圍；
   改為三個主要動作等寬、點擊範圍 40px，瀏覽數與檢舉退到兩側 */
#dynamicPostsSection > [data-view-target-type] > div.border-t:not(.mt-4) {
    padding: 6px 8px;
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between {
    display: grid;
    grid-template-columns: minmax(56px, auto) repeat(3, minmax(0, 1fr)) 40px;
    align-items: center;
    gap: 2px;
}

/* 瀏覽數：只顯示、不可點，視覺上降一級 */
#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > div:first-child {
    padding: 0 8px;
    font-size: 13px;
    color: var(--rx-text-muted) !important;
    font-variant-numeric: tabular-nums;
    cursor: default;
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > div:first-child > i {
    font-size: 12px;
    color: inherit !important;
}

/* 三個主要動作 */
#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button:not(#rx) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    min-width: 0;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--rx-text-muted) !important;
    background-color: transparent !important;
    transition: background-color var(--rx-dur-fast) ease, color var(--rx-dur-fast) ease, transform var(--rx-dur-fast) ease;
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button > * + * {
    margin-left: 0 !important;
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button > i:not(.post-liked) {
    font-size: 16px;
    color: inherit !important;
    transition: transform var(--rx-dur) var(--rx-ease-spring);
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button:not(#rx):hover {
    background-color: var(--rx-brand-soft) !important;
    color: var(--rx-brand-text) !important;
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button:not(#rx):active {
    transform: scale(0.95);
}

/* 檢舉：只留圖示、放最右邊，滑過才變紅 */
#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button:last-child:not(#rx) {
    width: 40px;
    padding: 0;
    justify-self: end;
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button:last-child > i:not(#rx) {
    font-size: 13px;
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button:last-child:not(#rx):hover {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #EF4444 !important;
}

/* 已按讚：愛心放大一下（只在使用者剛按下時播放，js/ripple-ux.js 標記 data-rx-tapped） */
#dynamicPostsSection button[data-rx-tapped] > i.post-liked {
    animation: rx-heart-pop 420ms var(--rx-ease-spring);
}

#dynamicPostsSection > [data-view-target-type] > div.border-t > div.flex.justify-between > button > i.post-liked {
    font-size: 16px;
}

@keyframes rx-heart-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.4); }
    65% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* 4-3 留言：內文原本是 gray-500（深色底對比不足），改為次要文字色並放大一級 */
#dynamicPostsSection [data-view-target-type] .bg-dark.rounded-lg > p.whitespace-pre-wrap {
    font-size: 13px !important;
    line-height: 1.55;
    color: var(--text-secondary, #D1D1D1) !important;
}

/* 留言下方的按讚／回覆／檢舉：加大點擊範圍 */
#dynamicPostsSection [data-view-target-type] .bg-dark.rounded-lg + div > button {
    padding: 6px 4px;
    margin-top: -2px;
}

/* ---------------------------------------------------------------------
   5. 活動頁底部固定報名列（event_page.html 的 [data-rx-bookbar]）
      上方「費用與報名」捲出畫面時由下滑入；手機版位於底部導覽列之上
      （--rx-bookbar-bottom 由 js/ripple-ux.js 依導覽列實際可見高度設定）
   --------------------------------------------------------------------- */
.rx-bookbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--rx-bookbar-bottom, 0px);
    z-index: 45;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 10, 10, 0.94);
    border-top: 1px solid var(--rx-border);
    box-shadow: 0 -12px 32px -16px rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    transform: translateY(calc(100% + var(--rx-bookbar-bottom, 0px) + 8px));
    visibility: hidden;
    transition: transform 360ms var(--rx-ease-out), visibility 0s linear 360ms, bottom 300ms ease-in-out;
}

.rx-bookbar.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 360ms var(--rx-ease-out), visibility 0s, bottom 300ms ease-in-out;
}

:root[data-theme="light"] .rx-bookbar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 32px -18px rgba(17, 17, 17, 0.25);
}

.rx-bookbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
}

.rx-bookbar__cover {
    flex: none;
    width: 64px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.rx-bookbar__event {
    flex: 1 1 auto;
    min-width: 0;
}

.rx-bookbar p {
    margin: 0;
}

.rx-bookbar__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rx-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-bookbar__meta {
    margin-top: 2px !important;
    font-size: 12.5px;
    color: var(--rx-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-bookbar__price {
    flex: none;
    text-align: right;
}

.rx-bookbar__priceline {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.rx-bookbar__amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--rx-brand-text);
    font-variant-numeric: tabular-nums;
}

.rx-bookbar__was {
    font-size: 13px;
    color: var(--rx-text-muted);
}

.rx-bookbar__per {
    font-size: 13px;
    color: var(--rx-text-muted);
}

.rx-bookbar__left {
    margin-top: 2px !important;
    font-size: 12.5px;
    color: var(--rx-text-muted);
}

.rx-bookbar__left.is-low {
    color: #FBBF24;
    font-weight: 600;
}

:root[data-theme="light"] .rx-bookbar__left.is-low {
    color: #B45309;
}

.rx-bookbar__actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rx-bookbar button.rx-bookbar__icon:not(#rx) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--rx-border);
    background-color: transparent !important;
    color: var(--rx-text) !important;
    transition: border-color var(--rx-dur-fast) ease, color var(--rx-dur-fast) ease;
}

.rx-bookbar button.rx-bookbar__icon:not(#rx) > i {
    color: inherit !important;
}

.rx-bookbar button.rx-bookbar__icon:not(#rx):hover {
    border-color: var(--rx-brand);
    color: var(--rx-brand-text) !important;
}

.rx-bookbar button.rx-bookbar__cta:not(#rx) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 168px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    /* 不能報名的狀態（已報名、額滿、截止…）：灰底，和可報名的橘色按鈕區分 */
    background-color: var(--rx-surface-raised) !important;
    color: var(--rx-text-muted) !important;
    cursor: default;
}

:root[data-theme="light"] .rx-bookbar button.rx-bookbar__cta:not(#rx):not(.is-primary) {
    background-color: #EEF0F3 !important;
}

.rx-bookbar button.rx-bookbar__cta:not(#rx) > i {
    color: inherit !important;
}

.rx-bookbar button.rx-bookbar__cta.is-primary:not(#rx) {
    background-color: var(--rx-brand) !important;
    color: #FFFFFF !important;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(255, 106, 0, 0.65);
    transition: background-color var(--rx-dur-fast) ease, transform var(--rx-dur-fast) ease;
}

.rx-bookbar button.rx-bookbar__cta.is-primary:not(#rx):hover {
    background-color: var(--rx-brand-hover) !important;
}

.rx-bookbar button.rx-bookbar__cta.is-primary:not(#rx):active {
    transform: scale(0.97);
}

/* 報名列出現時，頁面底部多留空間，最後的內容不會被蓋住 */
html.rx-bookbar-on #eventPageApp {
    padding-bottom: 96px;
}

/* 平板：拿掉封面縮圖 */
@media (max-width: 1023px) {
    .rx-bookbar__cover {
        display: none;
    }
}

/* 手機：只留價格、剩餘名額與報名按鈕 */
@media (max-width: 767px) {
    .rx-bookbar__inner {
        gap: 12px;
        padding: 10px 16px;
    }

    .rx-bookbar__event,
    .rx-bookbar button.rx-bookbar__icon:not(#rx) {
        display: none;
    }

    .rx-bookbar__price {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .rx-bookbar__priceline {
        justify-content: flex-start;
    }

    .rx-bookbar__amount {
        font-size: 19px;
    }

    .rx-bookbar__actions {
        flex: 0 1 auto;
        min-width: 0;
    }

    .rx-bookbar button.rx-bookbar__cta:not(#rx) {
        min-width: 0;
        max-width: 60vw;
        height: 46px;
        padding: 0 18px;
        font-size: 15px;
    }

    .rx-bookbar button.rx-bookbar__cta:not(#rx) > span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    html.rx-bookbar-on #eventPageApp {
        padding-bottom: 150px;
    }
}

/* ---------------------------------------------------------------------
   6. 活動列表卡片（event_list.html 的 .rx-ecard、熱門活動的狀態標籤）
   --------------------------------------------------------------------- */

/* 封面：滑過時微放大（外框裁切） */
.rx-ecard__media {
    overflow: hidden;
}

.rx-ecard__media > img {
    transition: transform 520ms var(--rx-ease-out), filter 300ms ease !important;
}

.rx-ecard:hover .rx-ecard__media > img {
    transform: scale(1.04);
}

/* 標題連結：theme-system.css 會把連結染成品牌橘，標題維持主要文字色，滑過才變橘 */
.rx-ecard a.rx-ecard__title:not(#rx) {
    color: inherit !important;
    transition: color var(--rx-dur-fast) ease;
}

.rx-ecard a.rx-ecard__title:not(#rx):hover {
    color: var(--rx-brand-text) !important;
}

/* 狀態標籤（早鳥、即將額滿、額滿…）：疊在照片上要看得清楚 */
.rx-ecard__badge {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* 早鳥原本是半透明藍底藍字，照片上幾乎看不到 */
.rx-ecard__badge[class*="bg-blue-500"]:not(#rx) {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #93C5FD !important;
}

.rx-ecard__badge[class*="bg-yellow-100"]:not(#rx) {
    background-color: #FEF3C7 !important;
    color: #92400E !important;
}

/* 剩 5 個名額以內 */
.rx-ecard__low {
    color: #FBBF24;
    font-weight: 600;
}

:root[data-theme="light"] .rx-ecard__low {
    color: #B45309;
}

/* 價格：大數字與原價、單位對齊同一條基準線 */
.rx-ecard__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 2px;
}

/* ---------------------------------------------------------------------
   7. 桌機頁首（header.html）
   --------------------------------------------------------------------- */

/* 「建立貼文」文字：寬螢幕才顯示，窄一點只留＋（提示文字仍在） */
.rx-hdr-label {
    display: none;
}

@media (min-width: 1280px) {
    #createPostBtn .rx-hdr-label {
        display: inline;
        white-space: nowrap;
    }

    #createPostBtn {
        white-space: nowrap;
    }
}

/* 訊息、通知：點擊範圍統一 40px，圖示置中 */
#mainHeader button.rx-hdr-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#mainHeader button.rx-hdr-icon > i {
    font-size: 17px;
}

/* ---------------------------------------------------------------------
   8. 個人中心側邊選單（my_sidebar.html）
   --------------------------------------------------------------------- */

/* 目前所在頁：左側加一條指示，收合時也看得出來 */
#sidebar .sidebar-item {
    position: relative;
}

#sidebar .sidebar-item[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: var(--rx-brand);
}

/* 展開時寬度 324px → 248px（2026-11-20），右側操作區多出 76px。
   依四種語系實測最長的選單文字（14px）：中文「成為活動主辦人」98px、英文「Operation Guide」110px、
   日文「サブスクリプション」126px、韓文「내가 개최한 이벤트」119px；
   一個選單項目需要 外距 32 + 內距 32 + 圖示 24 + 間距 12 + 文字 126 ≈ 226px，248px 仍留約 20px 餘裕。
   原本的展開／收合程式會加回 w-[324px] class 或寫入 inline width，這裡用 !important 統一；
   收合（80px，load-sidebar.js 以 w-[80px] class、其他舊程式以 .collapsed 表示）不受影響 */
#sidebar:not(.collapsed):not(.w-\[80px\]) {
    width: 248px !important;
}

/* 文字萬一超出（字型差異），以刪節號收尾，不換行撐高 */
#sidebar .sidebar-item-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 圖示寬度固定，文字對齊同一條線 */
#sidebar .sidebar-item-icon > i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

/* ---------------------------------------------------------------------
   10. 活動頁右上角報名卡（event_page.html 側欄最上方的 .rx-booking）
       依原型設計：價格 → 早鳥 → 日期／地點／名額 → 名額進度 → 截止倒數 → 報名 → 提醒／分享 → 政策 → 金流說明
       只在桌機（≥1024px，側欄在右邊時）顯示；手機版沿用頁面中段的「費用與報名」與底部報名列
   --------------------------------------------------------------------- */
.rx-booking {
    display: none;
}

@media (min-width: 1024px) {
    .rx-booking {
        display: block;
        margin-bottom: 32px;
        padding: 22px;
        border-radius: 16px;
        background: var(--rx-surface);
        border: 1px solid var(--border-secondary, #3A3A3A);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 8px 24px -12px rgba(0, 0, 0, 0.8);
        color: var(--rx-text);
    }
}

:root[data-theme="light"] .rx-booking {
    border-color: #E5E7EB;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 12px 28px -18px rgba(17, 17, 17, 0.22);
}

.rx-booking p {
    margin: 0;
}

.rx-booking__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.rx-booking__price {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--rx-brand-text);
    font-variant-numeric: tabular-nums;
}

.rx-booking__price-row s {
    font-size: 15px;
    color: var(--rx-text-muted);
}

.rx-booking__per {
    font-size: 14px;
    color: var(--rx-text-muted);
}

.rx-booking__early {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 10px !important;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(63, 169, 245, 0.14);
    color: #7CC4FA;
    font-size: 12px;
    font-weight: 700;
}

.rx-booking__early > i {
    color: inherit !important;
}

:root[data-theme="light"] .rx-booking__early {
    background: #E0F2FE;
    color: #075985;
}

.rx-booking__facts {
    display: grid;
    gap: 10px;
    margin: 18px 0 12px;
    padding: 16px 0 0;
    border-top: 1px solid var(--rx-border);
    list-style: none;
    font-size: 14px;
}

.rx-booking__facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.rx-booking__facts li > i {
    width: 16px;
    margin-top: 3px;
    flex: none;
    text-align: center;
    color: var(--rx-brand-text) !important;
}

.rx-booking__facts b {
    margin-left: auto;
    flex: none;
    font-size: 13px;
    color: var(--rx-text-muted);
}

.rx-booking__facts b.is-low {
    color: #FBBF24;
}

:root[data-theme="light"] .rx-booking__facts b.is-low {
    color: #B45309;
}

.rx-booking__bar {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--rx-border);
}

.rx-booking__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--rx-brand);
    transition: width 600ms var(--rx-ease-out);
}

.rx-booking__deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--rx-brand-soft);
    font-size: 13px;
    color: var(--rx-text);
}

.rx-booking__deadline > i {
    color: var(--rx-brand-text) !important;
}

.rx-booking__deadline > b {
    margin-left: auto;
    color: var(--rx-brand-text);
    font-variant-numeric: tabular-nums;
}

/* 報名按鈕：可報名＝橘色；其他狀態（已報名、額滿、截止…）＝灰色、不可點 */
.rx-booking button.rx-booking__cta:not(#rx) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    background-color: var(--rx-surface-raised) !important;
    color: var(--rx-text-muted) !important;
    cursor: default;
}

:root[data-theme="light"] .rx-booking button.rx-booking__cta:not(#rx):not(.is-primary) {
    background-color: #EEF0F3 !important;
}

.rx-booking button.rx-booking__cta:not(#rx) > i {
    color: inherit !important;
}

.rx-booking button.rx-booking__cta.is-primary:not(#rx) {
    background-color: var(--rx-brand) !important;
    color: #FFFFFF !important;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(255, 106, 0, 0.7);
    transition: background-color var(--rx-dur-fast) ease, transform var(--rx-dur-fast) ease;
}

.rx-booking button.rx-booking__cta.is-primary:not(#rx):hover {
    background-color: var(--rx-brand-hover) !important;
}

.rx-booking button.rx-booking__cta.is-primary:not(#rx):active {
    transform: scale(0.98);
}

.rx-booking__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.rx-booking__row.is-single {
    grid-template-columns: 1fr;
}

.rx-booking button.rx-booking__ghost:not(#rx) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-secondary, #3A3A3A);
    background-color: transparent !important;
    color: var(--rx-text) !important;
    font-size: 14px;
    font-weight: 600;
    transition: border-color var(--rx-dur-fast) ease, color var(--rx-dur-fast) ease, background-color var(--rx-dur-fast) ease;
}

:root[data-theme="light"] .rx-booking button.rx-booking__ghost:not(#rx) {
    border-color: #D1D5DB;
}

.rx-booking button.rx-booking__ghost:not(#rx) > i {
    color: inherit !important;
}

.rx-booking button.rx-booking__ghost:not(#rx):hover,
.rx-booking button.rx-booking__ghost.is-on:not(#rx) {
    border-color: var(--rx-brand);
    color: var(--rx-brand-text) !important;
    background-color: var(--rx-brand-soft) !important;
}

.rx-booking button.rx-booking__policy:not(#rx) {
    display: flex;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--rx-border);
    border-radius: 0;
    background-color: transparent !important;
    text-align: left;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--rx-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--rx-text) !important;
}

.rx-booking button.rx-booking__policy:not(#rx) > span {
    flex: 1;
}

.rx-booking button.rx-booking__policy:not(#rx) > i:first-child {
    color: #22C55E !important;
}

.rx-booking button.rx-booking__policy:not(#rx) > i:last-child {
    font-size: 12px;
    color: var(--rx-text-muted) !important;
}

.rx-booking button.rx-booking__policy:not(#rx):hover {
    color: var(--rx-brand-text) !important;
}

.rx-booking__trust {
    display: flex !important;
    gap: 8px;
    margin-top: 10px !important;
    font-size: 12px;
    line-height: 1.5;
    color: var(--rx-text-muted);
}

.rx-booking__trust > i {
    margin-top: 3px;
    color: var(--rx-text-muted) !important;
}

/* ---------------------------------------------------------------------
   11. 活動頁「參與者」頭像與剩餘名額（event_page.html 的 .rx-seats）
       一排 10 格（手機 5 格）、置中；頭像放大到 56px（手機 48px）；最多 30 格，第 30 格為「…+N」
   --------------------------------------------------------------------- */
.rx-seats:not(#rx) {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 16px 0;
    padding: 4px 0;
}

/* 頭像與名額圓圈：原本 48px（w-12 h-12）放大到 56px */
.rx-seats > .group > img,
.rx-seats > .group > div {
    width: 56px !important;
    height: 56px !important;
}

.rx-seats > .group > div > span {
    font-size: 15px !important;
}

/* 第 30 格：其餘數量 */
.rx-seats__more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--rx-brand);
    background: var(--rx-brand-soft);
    color: var(--rx-brand-text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.rx-seats__more > span {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.rx-seats__more > b {
    font-size: 14px;
    font-weight: 700;
}

/* 平板以下：一排 5 格 */
@media (max-width: 639px) {
    .rx-seats:not(#rx) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px 0;
    }

    .rx-seats > .group > img,
    .rx-seats > .group > div,
    .rx-seats__more {
        width: 48px !important;
        height: 48px !important;
    }
}

/* ---------------------------------------------------------------------
   12. 參與者狀態標籤（event_page.html 側欄「參加人數」名單的 .rx-status）
       已加入／已付款＝綠、未付款（已報名待付款）＝藍、邀請＝橘；同一種膠囊形狀與大小
   --------------------------------------------------------------------- */
.rx-status:not(#rx) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    height: 26px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: #FFFFFF !important;
}

.rx-status:not(#rx) > i {
    font-size: 10px;
    color: inherit !important;
}

.rx-status--joined:not(#rx) {
    background-color: #15803D !important; /* 綠：白字 5:1 */
}

.rx-status--pending:not(#rx) {
    background-color: #1D4ED8 !important; /* 藍：白字 6.7:1 */
}

.rx-status--invite:not(#rx) {
    background-color: var(--rx-brand) !important;
    cursor: pointer;
    transition: background-color var(--rx-dur-fast) ease, transform var(--rx-dur-fast) ease;
}

.rx-status--invite:not(#rx):hover {
    background-color: var(--rx-brand-hover) !important;
}

.rx-status--invite:not(#rx):active {
    transform: scale(0.95);
}

/* ---------------------------------------------------------------------
   13. 我的個人檔案（my_profile.html）：精簡標題列 .rx-profile-bar
       桌機版分頁標籤捲出畫面後，固定在內容區上方：頁面名稱｜分頁｜儲存變更
       位置（top／left／width）由 js/ripple-ux.js 依 #mainContent 與「Email 未驗證」提醒條計算
   --------------------------------------------------------------------- */
.rx-profile-bar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    z-index: 30;
    background: var(--bg-primary, #1A1A1A);
    border-bottom: 1px solid var(--rx-border);
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--rx-dur) ease, transform var(--rx-dur) var(--rx-ease-out), visibility 0s linear var(--rx-dur);
}

.rx-profile-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--rx-dur) ease, transform var(--rx-dur) var(--rx-ease-out), visibility 0s;
}

:root[data-theme="light"] .rx-profile-bar {
    background: var(--bg-primary, #F4F5F7);
    box-shadow: 0 10px 24px -18px rgba(17, 17, 17, 0.35);
}

.rx-profile-bar__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 56px;
    padding: 0 24px;
}

.rx-profile-bar__title {
    flex: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--rx-text);
}

.rx-profile-bar__tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.rx-profile-bar__tabs::-webkit-scrollbar {
    display: none;
}

.rx-profile-bar button.rx-profile-bar__tab:not(#rx) {
    position: relative;
    flex: none;
    padding: 0 12px;
    border: 0;
    background-color: transparent !important;
    color: var(--rx-text-muted) !important;
    font-size: 14px;
    white-space: nowrap;
    transition: color var(--rx-dur-fast) ease;
}

.rx-profile-bar button.rx-profile-bar__tab:not(#rx):hover {
    color: var(--rx-text) !important;
}

.rx-profile-bar button.rx-profile-bar__tab.is-active:not(#rx) {
    color: var(--rx-brand-text) !important;
    font-weight: 600;
}

.rx-profile-bar button.rx-profile-bar__tab.is-active:not(#rx)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--rx-brand);
}

.rx-profile-bar button.rx-profile-bar__save:not(#rx) {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background-color: var(--rx-brand) !important;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    transition: background-color var(--rx-dur-fast) ease, transform var(--rx-dur-fast) ease;
}

.rx-profile-bar button.rx-profile-bar__save:not(#rx) > i {
    color: inherit !important;
}

.rx-profile-bar button.rx-profile-bar__save:not(#rx):hover {
    background-color: var(--rx-brand-hover) !important;
}

.rx-profile-bar button.rx-profile-bar__save:not(#rx):active {
    transform: scale(0.97);
}

/* 手機版：原本就有底部固定的儲存按鈕，不顯示精簡列 */
@media (max-width: 767px) {
    .rx-profile-bar {
        display: none;
    }
}

/* ---------------------------------------------------------------------
   14. 我的訊息（my_message.html）：手機／平板開啟對話時全螢幕
       開啟對話（對話列表隱藏、對話面板顯示）時，html 加上 .rx-chat-focus（js/ripple-ux.js 第 7 節）：
       隱藏上方頁首、底部導覽列與側欄，對話佔滿整個畫面；按對話左上角的返回回到列表後恢復。
       只在 <1024px 生效（桌機列表與對話並排，不需要）。
   --------------------------------------------------------------------- */
@media (max-width: 1023px) {
    html.rx-chat-focus body {
        padding-top: 0 !important;
    }

    html.rx-chat-focus #header-container,
    html.rx-chat-focus #mobile-nav-container,
    html.rx-chat-focus #sidebar-container {
        display: none !important;
    }

    /* 對話貼齊畫面邊緣；App 內避開瀏海與底部 Home 條 */
    html.rx-chat-focus #mainContent {
        padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) !important;
    }

    html.rx-chat-focus #myMessageApp > div:first-child {
        display: none !important;
    }

    html.rx-chat-focus #myMessageApp .conversation-container {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    /* 輸入區原本為底部導覽列預留 80px（pb-20），導覽列隱藏後不需要 */
    html.rx-chat-focus #myMessageApp .conversation-container [class*="pb-20"] {
        padding-bottom: 12px !important;
    }
}

/* ---------------------------------------------------------------------
   15. 破壞性動作的圖示按鈕（.rx-danger，例如追蹤用戶頁的「移除」「封鎖」）
       平常與其他圖示相同，滑過／鍵盤聚焦時變紅，和一般動作區分
   --------------------------------------------------------------------- */
button.btn-icon.rx-danger:not(#rx):not(:disabled):hover,
button.btn-icon.rx-danger:not(#rx):not(:disabled):focus-visible {
    color: #EF4444 !important;
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
}

button.btn-icon.rx-danger:not(#rx):not(:disabled):hover > i,
button.btn-icon.rx-danger:not(#rx):not(:disabled):focus-visible > i {
    color: inherit !important;
}

/* ---------------------------------------------------------------------
   16. 只有圖示的圓形按鈕（.rx-icon-btn，例如清單頁的搜尋按鈕）
       沿用原本按鈕的外框顏色，只縮成 40×40 的圓形
   --------------------------------------------------------------------- */
button.rx-icon-btn:not(#rx) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0 !important;
    border-radius: 50%;
}

button.rx-icon-btn:not(#rx) > i {
    font-size: 15px;
    color: inherit !important;
}

/* ---------------------------------------------------------------------
   17. 我的通知（my_notifications.html）：每則通知一行 .rx-notif
       頭像 40px｜標題 · 內容（過長截斷）｜時間；滑過時操作按鈕蓋在時間的位置
   --------------------------------------------------------------------- */
.rx-notif:not(#rx) {
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.rx-notif:not(#rx) > div:first-child {
    margin: 0;
}

.rx-notif:not(#rx) > .rx-notif__avatar {
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
}

.rx-notif:not(#rx) > .rx-notif__avatar > i {
    font-size: 16px;
}

.rx-notif__line {
    display: flex;
    align-items: baseline;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
}

.rx-notif__title {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-notif__body {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-notif__body::before {
    content: "·";
    margin: 0 8px;
    color: var(--rx-text-muted);
}

.rx-notif__time {
    flex: none;
    min-width: 56px;
    text-align: right;
    white-space: nowrap;
    transition: opacity var(--rx-dur-fast) ease;
}

.rx-notif:not(#rx) > .rx-notif__actions {
    top: 50%;
    transform: translateY(-50%);
}

/* 滑過顯示操作按鈕時，時間淡出讓位 */
.rx-notif:hover > .rx-notif__time,
.rx-notif:focus-within > .rx-notif__time {
    opacity: 0;
}

/* 手機：標題可用寬度較窄，內容仍在同一行並截斷 */
@media (max-width: 639px) {
    .rx-notif:not(#rx) {
        gap: 10px;
        padding: 12px;
    }

    .rx-notif__line {
        font-size: 14px;
    }

    .rx-notif__title {
        max-width: 70%;
    }

    .rx-notif__time {
        min-width: 0;
    }
}

/* ---------------------------------------------------------------------
   18. 活動評論（my_review.html）：評論清單欄寬 .rx-review-table
       左右留白 24 → 16px、欄位標題不換行、活動名稱最多兩行、評論者頭像固定 40px
   --------------------------------------------------------------------- */
.rx-review-table:not(#rx) th,
.rx-review-table:not(#rx) td {
    padding-left: 16px;
    padding-right: 16px;
}

.rx-review-table:not(#rx) th {
    white-space: nowrap;
}

.rx-review-table:not(#rx) .rx-review-avatar {
    flex: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.rx-review-table:not(#rx) td:nth-child(2) {
    min-width: 180px;
}

.rx-review-event {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.45;
}

.rx-review-table:not(#rx) td:nth-child(5) {
    min-width: 160px;
}

/* ---------------------------------------------------------------------
   19. 訂閱（my_subscription.html）：訂閱紀錄表格欄寬 .rx-sub-table
       文字不被拆成單字直排：標題、狀態標籤、訂單編號不換行；方案名稱｜週期分兩行；
       空間不足時，訂單時間在「日期」與「時間」之間換行
   --------------------------------------------------------------------- */
.rx-sub-table:not(#rx) th,
.rx-sub-table:not(#rx) td {
    padding-left: 12px;
    padding-right: 12px;
}

.rx-sub-table:not(#rx) th:first-child,
.rx-sub-table:not(#rx) td:first-child {
    padding-left: 20px;
}

.rx-sub-table:not(#rx) th:last-child,
.rx-sub-table:not(#rx) td:last-child {
    padding-right: 20px;
}

.rx-sub-table:not(#rx) th {
    white-space: nowrap;
}

/* 訂單時間：可在日期與時間之間換行 */
.rx-sub-table:not(#rx) td:nth-child(1) {
    white-space: normal;
    min-width: 96px;
}

/* 方案類型：名稱一行、週期（每年／每月）一行 */
.rx-sub-table:not(#rx) td:nth-child(2) {
    white-space: nowrap;
}

.rx-sub-table:not(#rx) td:nth-child(2) > span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
}

/* 訂單編號：不斷字，字級略小 */
.rx-sub-table:not(#rx) td:nth-child(6) {
    white-space: nowrap;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* 付款狀態標籤不斷字 */
.rx-sub-table:not(#rx) td:nth-child(8) {
    white-space: nowrap;
}

.rx-sub-table:not(#rx) td:nth-child(8) > span.rounded-full {
    display: inline-block;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   20. 訂閱（my_subscription.html）：目前方案卡片 .rx-plan
       桌機：方案名稱｜分隔線｜價格、開始日期、有效期至、剩餘天數 排成一列
       明細欄數（4 欄／App 內 3 欄）仍由 js/my_subscription.js 切換，這裡不指定
   --------------------------------------------------------------------- */
#currentPlanContent.rx-plan:not(#rx) {
    padding: 16px;
}

.rx-plan__main > div:first-child {
    margin-bottom: 12px;
}

.rx-plan__main > #planDetailGrid {
    margin-top: 0;
    row-gap: 12px;
}

@media (min-width: 768px) {
    #currentPlanContent.rx-plan:not(#rx) {
        padding: 20px 24px;
    }

    .rx-plan__main {
        display: flex;
        align-items: center;
        gap: 28px;
    }

    .rx-plan__main > div:first-child {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        min-width: 200px;
        max-width: 300px;
        margin-bottom: 0;
    }

    .rx-plan__main > #planDetailGrid {
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 28px;
        border-left: 1px solid var(--rx-border);
    }
}

/* ---------------------------------------------------------------------
   21. 我的貼文（my_posts.html）：清單欄位 .rx-posts-table
       左右留白 24 → 16px、內容欄最多兩行、數字欄不換行
   --------------------------------------------------------------------- */
.rx-posts-table:not(#rx) th,
.rx-posts-table:not(#rx) td {
    padding-left: 16px;
    padding-right: 16px;
}

.rx-posts-table:not(#rx) th:first-child,
.rx-posts-table:not(#rx) td:first-child {
    width: 48px;
    padding-left: 20px;
    padding-right: 4px;
}

.rx-posts-table:not(#rx) td:nth-child(2) {
    min-width: 260px;
}

.rx-posts-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

/* ---------------------------------------------------------------------
   22. 我的貼文（my_posts.html）：網格卡片 .rx-pcard
       左上勾選框、狀態標籤右移讓位；分類標籤與操作按鈕同一列；已勾選卡片加橘色外框
   --------------------------------------------------------------------- */
.rx-pcard__check {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.rx-pcard__check > input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.rx-pcard:not(#rx) .rx-pcard__status {
    left: 48px;
}

.rx-pcard.is-selected:not(#rx) {
    border-color: var(--rx-brand);
    box-shadow: 0 0 0 1px var(--rx-brand);
}

.rx-pcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
}

.rx-pcard__tag {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   23. 主辦人頁（expert_page.html）：證照 .rx-cert
       每張卡片「年份｜名稱＋發證單位」左右排列；證照區塊寬度 ≥ 560px 時兩張並排，較窄時一欄
   --------------------------------------------------------------------- */
.rx-cert-section {
    container-type: inline-size;
}

.rx-cert-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

@container (min-width: 560px) {
    .rx-cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 容器查詢不支援時的備援：桌機兩欄 */
@supports not (container-type: inline-size) {
    @media (min-width: 900px) {
        .rx-cert-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
}

.rx-cert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 12px 16px;
}

.rx-cert__year {
    flex: none;
    min-width: 64px;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.rx-cert__body {
    flex: 1 1 auto;
    min-width: 0;
}

.rx-cert__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
}

.rx-cert__org {
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   24. 活動款項（my_payments.html）
       .rx-donut：付款方式卡片圓環在左、圖例在右；總營收為 0 時圓環灰階
       .rx-pay-table：款項清單欄寬（日期區間可換行，標題與標籤不斷字）
   --------------------------------------------------------------------- */
.rx-donut {
    container-type: inline-size;
}

.rx-donut__body {
    display: flex;
    flex-direction: column;
}

#paymentDonutLegend.rx-donut__legend button {
    white-space: nowrap;
}

/* 卡片內容寬度 ≥ 240px（約卡片 290px）才改為左右排列；更窄時維持原本上下排列 */
@container (min-width: 240px) {
    .rx-donut__body {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .rx-donut__body > .rx-donut__chart {
        flex: 0 0 132px;
        width: 132px;
        height: 132px !important;
    }

    .rx-donut__body > .rx-donut__legend {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        margin-top: 0 !important;
    }
}

.rx-donut.is-empty #paymentDonutChart {
    filter: grayscale(1);
    opacity: 0.35;
}

.rx-pay-table:not(#rx) th,
.rx-pay-table:not(#rx) td {
    padding-left: 12px;
    padding-right: 12px;
}

.rx-pay-table:not(#rx) th:first-child,
.rx-pay-table:not(#rx) td:first-child {
    padding-left: 20px;
    min-width: 120px;
}

.rx-pay-table:not(#rx) th:last-child,
.rx-pay-table:not(#rx) td:last-child {
    padding-right: 20px;
}

.rx-pay-table:not(#rx) th {
    white-space: nowrap;
}

.rx-pay-table:not(#rx) td:nth-child(2) {
    min-width: 104px;
}

.rx-pay-table:not(#rx) td .rounded-full,
.rx-pay-table:not(#rx) td:nth-child(n+4) {
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   25. 首頁側欄「探索社群」（landing.html #trendingTopicsApp）：多欄小卡 .rx-topics
       依區塊寬度：< 220px 一欄、220–419px 兩欄、≥ 420px 三欄；名稱以「/」拆成中文主名稱與英文副名稱兩行
   --------------------------------------------------------------------- */
.rx-topics-box {
    container-type: inline-size;
}

.rx-topics {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-content: start;
}

@container (min-width: 220px) {
    .rx-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 420px) {
    .rx-topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 首頁個人卡片簡介：最多 3 行 */
.rx-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* 空狀態佔滿整列 */
.rx-topics > :not(.rx-topic) {
    grid-column: 1 / -1;
}

.rx-topic {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 50px;
    padding: 8px;
}

.rx-topic__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 12px;
}

.rx-topic__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.rx-topic__name,
.rx-topic__sub,
.rx-topic__count {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rx-topic__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.rx-topic__sub,
.rx-topic__count {
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.3;
}

/* ---------------------------------------------------------------------
   26. 主辦活動（my_events.html）：狀態分頁 .rx-status-tabs、手機搜尋列 #eventsActions
       分頁間距 24 → 8px；仍放不下時維持左右滑動
   --------------------------------------------------------------------- */
.rx-status-tabs:not(#rx) > * + * {
    margin-left: 8px !important;
}

/* 手機（<768px）清單檢視卡片（.event-manage-card）精簡：原本 8 個欄位全部直排，一張卡約 680–760px。
   改為兩欄格線：活動資訊整列（封面 96 → 64px）｜日期、地點並排｜參與人數整列｜分銷代碼整列（代碼與複製同一行）｜
   票價、評論數並排｜操作圖示一列。欄位順序依 my_events.html 清單卡片的 8 個 .emc-cell */
@media (max-width: 767px) {
    .event-manage-card:not(#rx) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px 14px;
        padding: 14px;
    }

    .event-manage-card:not(#rx) > .emc-cell {
        min-width: 0;
        margin: 0;
    }

    .event-manage-card:not(#rx) > .emc-cell:nth-child(1),
    .event-manage-card:not(#rx) > .emc-cell:nth-child(4),
    .event-manage-card:not(#rx) > .emc-cell:nth-child(5),
    .event-manage-card:not(#rx) > .emc-cell:nth-child(8) {
        grid-column: 1 / -1;
    }

    .event-manage-card:not(#rx) .emc-label {
        margin-bottom: 4px;
    }

    .event-manage-card:not(#rx) .emc-info {
        gap: 12px;
    }

    .event-manage-card:not(#rx) .emc-info__cover {
        width: 64px;
        height: 64px;
    }

    /* 分銷代碼：標籤、代碼、複製同一行，使用人數在下 */
    .event-manage-card:not(#rx) .distribution-code-card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
        padding: 8px 12px;
    }

    .event-manage-card:not(#rx) .distribution-code-card__label {
        margin-bottom: 0;
    }

    .event-manage-card:not(#rx) .distribution-code-card__divider {
        display: none;
    }

    .event-manage-card:not(#rx) .distribution-code-card__usage {
        flex-basis: 100%;
    }

    /* 操作：不顯示「操作」標題，8 個圖示同一列 */
    .event-manage-card:not(#rx) > .emc-cell:nth-child(8) > .emc-label {
        display: none;
    }

    .event-manage-card:not(#rx) .emc-actions {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
        justify-items: center;
        gap: 4px;
    }

    .event-manage-card:not(#rx) .emc-qrcode-toggle {
        margin-top: 8px;
    }
}

/* 手機：搜尋列原本與排序擠在同一列（搜尋框只剩約 50px），改為「搜尋框＋按鈕」一列、排序在下一列佔滿寬度 */
@media (max-width: 639px) {
    #eventsActions > div:last-child {
        flex-wrap: wrap;
        gap: 10px;
    }

    #eventsActions > div:last-child > * {
        margin-left: 0 !important;
    }

    #eventsActions > div:last-child > .relative.shrink-0 {
        order: 3;
        flex: 1 1 100%;
    }

    #eventsActions > div:last-child > .relative.shrink-0 > button {
        width: 100%;
        justify-content: space-between;
    }
}

/* ---------------------------------------------------------------------
   27. 分段表單的垂直間距 .rx-stack；主辦活動表單選單固定位置 .rx-formnav（手機／平板）、.rx-formside（桌機）
       Tailwind 的 space-y-* 只排除有 hidden 屬性的元素，v-show／.hidden（display:none）的區塊仍會讓下一個可見區塊多出上邊距，
       造成右欄比左側選單低一截。改用 flex + gap：隱藏的區塊不佔任何間距
   --------------------------------------------------------------------- */
.rx-stack:not(#rx) {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rx-stack:not(#rx) > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 主辦活動表單（手機／平板）的區塊選單：貼齊捲動區頂端（原本 top:60px 會懸在半空、上方露出內容）
   sticky 停在 #mainContent 的內距內側；本頁 #mainContent 各寬度皆為 p-6（24px），所以往上抵銷 24px */
.rx-formnav:not(#rx) {
    top: -24px;
}

/* 桌機左側區塊選單：停在捲動區內距內側（頁首下 24px），原本 top:80px 會比右欄低一大截 */
.rx-formside:not(#rx) {
    top: 0;
}

/* ---------------------------------------------------------------------
   28. 主辦活動表單（my_events.html）：手機／平板專注模式
       表單開啟時 html 加上 .rx-form-focus（js/ripple-ux.js watchFormFocus，只在 <1024px）：
       隱藏網站頁首、底部導覽列與側欄 → 區塊選單貼齊畫面最上方；底部顯示「儲存／發布／預覽」動作列 .rx-formbar
   --------------------------------------------------------------------- */
.rx-formbar {
    display: none;
}

@media (max-width: 1023px) {
    html.rx-form-focus body {
        padding-top: 0 !important;
    }

    html.rx-form-focus #header-container,
    html.rx-form-focus #mobile-nav-container,
    html.rx-form-focus #sidebar-container {
        display: none !important;
    }

    /* 頁首隱藏後，外層原本為頁首預留的 60px 上內距一併拿掉 */
    html.rx-form-focus div:has(> #mainContent) {
        padding-top: 0 !important;
    }

    /* 表單最下方原本的「儲存／發布／預覽」按鈕列與固定動作列重複，專注模式下隱藏 */
    html.rx-form-focus .rx-formend {
        display: none !important;
    }

    /* 底部留出動作列高度，最後一個欄位不會被擋住 */
    html.rx-form-focus #mainContent {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* App 內避開瀏海：選單貼頂時往下讓出安全區 */
    html.rx-form-focus .rx-formnav:not(#rx) {
        top: calc(-24px + env(safe-area-inset-top, 0px));
    }

    html.rx-form-focus .rx-formbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        gap: 8px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-card, #000000);
        border-top: 1px solid var(--rx-border);
        box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, 0.9);
    }

    :root[data-theme="light"].rx-form-focus .rx-formbar {
        background: #FFFFFF;
        box-shadow: 0 -10px 24px -18px rgba(17, 17, 17, 0.35);
    }

    .rx-formbar button.rx-formbar__btn:not(#rx) {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        height: 44px;
        padding: 0 12px;
        border: 1px solid var(--rx-brand);
        border-radius: 999px;
        background-color: transparent !important;
        color: var(--rx-text) !important;
        font-size: 15px;
        font-weight: 600;
        white-space: nowrap;
    }

    .rx-formbar button.rx-formbar__btn:not(#rx) > i {
        color: inherit !important;
    }

    .rx-formbar button.rx-formbar__btn.is-primary:not(#rx) {
        background-color: var(--rx-brand) !important;
        color: #FFFFFF !important;
    }

    .rx-formbar button.rx-formbar__btn:not(#rx):disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .rx-formbar button.rx-formbar__btn:not(#rx):not(:disabled):active {
        transform: scale(0.97);
    }
}

/* ---------------------------------------------------------------------
   29. 類別／興趣選擇（my_events.html 建立活動的類別、my_profile.html 的興趣）
       .rx-catpick：已選分類膠囊＋「選擇類別」按鈕
       .rx-sheet：底部滑出選單（≥1024px 為置中視窗），開關由 js/ripple-ux.js watchSheets 處理
       .rx-catchip：選單內兩欄晶片（≥640px 三欄），左側為後台設定的分類圖示；選中整塊橘色＋打勾
   --------------------------------------------------------------------- */
.rx-catcount {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rx-brand);
}

.rx-catpick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rx-catpick__pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 4px 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 106, 0, 0.4);
    background: rgba(255, 106, 0, 0.14);
    color: var(--rx-brand-text);
    font-size: 13px;
    font-weight: 600;
}

.rx-catpick__icon {
    margin-right: 2px;
    font-size: 12px;
    color: inherit !important;
}

.rx-catpick button.rx-catpick__remove:not(#rx) {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background-color: transparent !important;
    color: inherit !important;
    font-size: 11px;
}

.rx-catpick button.rx-catpick__remove:not(#rx):hover {
    background-color: rgba(255, 106, 0, 0.25) !important;
}

.rx-catpick button.rx-catpick__open:not(#rx) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1px dashed var(--rx-brand);
    border-radius: 999px;
    background-color: transparent !important;
    color: var(--rx-brand-text) !important;
    font-size: 13px;
    font-weight: 600;
}

.rx-catpick button.rx-catpick__open:not(#rx) > i {
    color: inherit !important;
    font-size: 12px;
}

/* 底部選單 */
.rx-sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    visibility: hidden;
    pointer-events: none;
}

.rx-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}

.rx-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity var(--rx-dur) ease;
}

.rx-sheet.is-open .rx-sheet__backdrop {
    opacity: 1;
}

.rx-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    max-height: 82dvh;
    background: #111111;
    border-top: 1px solid var(--rx-border);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.26s var(--rx-ease-out);
    outline: none;
}

:root[data-theme="light"] .rx-sheet__panel {
    background: #FFFFFF;
}

.rx-sheet.is-open .rx-sheet__panel {
    transform: none;
}

.rx-sheet__grab {
    width: 40px;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: 4px;
    background: #444444;
}

.rx-sheet__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 12px 18px;
}

.rx-sheet__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rx-text);
}

.rx-sheet__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--rx-brand-text);
}

.rx-sheet button.rx-sheet__x:not(#rx) {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background-color: transparent !important;
    color: var(--rx-text-muted) !important;
}

.rx-sheet button.rx-sheet__x:not(#rx) > i {
    color: inherit !important;
}

.rx-sheet__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 16px 12px;
    overscroll-behavior: contain;
}

.rx-sheet__foot {
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rx-border);
}

.rx-sheet button.rx-sheet__done:not(#rx) {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background-color: var(--rx-brand) !important;
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 700;
}

/* 選單開啟時內容區不跟著捲動 */
html.rx-sheet-lock #mainContent {
    overflow: hidden !important;
}

/* 桌機：置中視窗 */
@media (min-width: 1024px) {
    .rx-sheet__panel {
        left: 50%;
        right: auto;
        top: 50%;
        bottom: auto;
        width: min(620px, calc(100vw - 48px));
        max-height: min(640px, 86vh);
        border: 1px solid var(--rx-border);
        border-radius: 16px;
        transform: translate(-50%, -46%);
        opacity: 0;
        transition: transform 0.22s var(--rx-ease-out), opacity 0.18s ease;
    }

    .rx-sheet.is-open .rx-sheet__panel {
        transform: translate(-50%, -50%);
        opacity: 1;
    }

    .rx-sheet__grab {
        display: none;
    }

    .rx-sheet__head {
        padding-top: 16px;
    }
}

/* 選單內的分類晶片 */
.rx-catgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 640px) {
    .rx-catgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rx-catchip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid #3A3A3A;
    border-radius: 12px;
    color: var(--rx-text);
    cursor: pointer;
    user-select: none;
    transition: background-color var(--rx-dur-fast) ease, border-color var(--rx-dur-fast) ease, transform 0.1s ease;
}

.rx-catchip:active {
    transform: scale(0.97);
}

/* 晶片為 <button> 時（我的資料「興趣」）：覆蓋全站按鈕底色與文字顏色 */
button.rx-catchip:not(#rx) {
    width: 100%;
    background-color: transparent !important;
    color: var(--rx-text) !important;
    font: inherit;
    text-align: left;
}

button.rx-catchip:not(#rx):focus-visible {
    outline: 2px solid var(--rx-brand);
    outline-offset: 2px;
}

button.rx-catchip.is-on:not(#rx) {
    background-color: var(--rx-brand) !important;
    border-color: var(--rx-brand);
    color: #FFFFFF !important;
}

/* 隱藏原生勾選框但保留給鍵盤與讀屏使用；全站主題會把 checkbox 設為 position:relative 與固定尺寸，需以較高權重覆蓋 */
.rx-catchip > input[type="checkbox"]:not(#rx) {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.rx-catchip:focus-within {
    outline: 2px solid var(--rx-brand);
    outline-offset: 2px;
}

.rx-catchip__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--rx-brand);
    font-size: 13px;
    transition: background-color var(--rx-dur-fast) ease, color var(--rx-dur-fast) ease;
}

.rx-catchip__icon > i {
    color: inherit !important;
}

.rx-catchip.is-on .rx-catchip__icon {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

:root[data-theme="light"] .rx-catchip:not(.is-on) .rx-catchip__icon {
    background: rgba(255, 106, 0, 0.1);
}

.rx-catchip__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rx-catchip__main {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rx-catchip__sub {
    margin-top: 1px;
    overflow: hidden;
    color: var(--rx-text-muted);
    font-size: 11.5px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 打勾徽章放在卡片右上角外緣，不佔文字寬度 */
.rx-catchip__check {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 2px solid #111111;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--rx-brand);
    font-size: 9px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--rx-dur-fast) ease, transform var(--rx-dur-fast) ease;
}

.rx-catchip__check > i {
    color: inherit !important;
}

.rx-catchip.is-on {
    background: var(--rx-brand);
    border-color: var(--rx-brand);
    color: #FFFFFF;
}

.rx-catchip.is-on .rx-catchip__sub {
    color: rgba(255, 255, 255, 0.85);
}

.rx-catchip.is-on .rx-catchip__check {
    opacity: 1;
    transform: none;
}

:root[data-theme="light"] .rx-catchip:not(.is-on) {
    border-color: #D1D5DB;
}

/* ---------------------------------------------------------------------
   30. 主辦活動卡片（my_events.html 網格 .rx-hcard）與開關樣式 .rx-switch
   --------------------------------------------------------------------- */
/* 封面上的狀態標籤：加深底色，淺色封面也看得清楚 */
.rx-hcard__badges > span {
    background-color: rgba(0, 0, 0, 0.62) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 操作按鈕：平均分布；卡片較窄（平板三欄約 230px）時自動換到第二列，原本最後兩三個按鈕（含刪除）會超出卡片外 */
.rx-hcard__actions:not(#rx) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    justify-items: center;
    row-gap: 6px;
}

.rx-hcard__actions:not(#rx) > span.text-xs {
    grid-column: 1 / -1;
    justify-self: start;
}

/* 2026-11-24 使用者指示：手機版（<768px）8 個操作按鈕排成一行。
   原本欄寬至少 36px＋間距 4px，8 顆需要約 320px，375 寬手機卡片只有 293px，「刪除」會掉到第二行。
   手機版改為不留固定間距、按鈕平均分配寬度（最寬 40px、置中），較窄的手機也維持一行 */
@media (max-width: 767px) {
    .rx-hcard__actions:not(#rx) {
        grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
        column-gap: 0;
    }

    .rx-hcard__actions:not(#rx) > .btn-icon {
        width: 100%;
        max-width: 40px;
        min-width: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 開關樣式（原生 checkbox 外觀改為開關；事件、checked、disabled 皆不變） */
input[type="checkbox"].rx-switch:not(#rx) {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: none;
    width: 34px !important;
    height: 20px !important;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background-color: #3A3A3A;
    cursor: inherit;
    transition: background-color var(--rx-dur-fast) ease;
}

input[type="checkbox"].rx-switch:not(#rx)::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform var(--rx-dur-fast) var(--rx-ease-out);
}

input[type="checkbox"].rx-switch:not(#rx):checked {
    background-color: var(--rx-brand);
}

/* 2026-11-24：Tailwind forms 會在勾選時加上白色打勾背景圖，開關不需要，移除 */
input[type="checkbox"].rx-switch:not(#rx),
input[type="checkbox"].rx-switch:not(#rx):checked {
    background-image: none !important;
}

input[type="checkbox"].rx-switch:not(#rx):checked::after {
    transform: translateX(14px);
}

input[type="checkbox"].rx-switch:not(#rx):focus-visible {
    outline: 2px solid var(--rx-brand);
    outline-offset: 2px;
}

:root[data-theme="light"] input[type="checkbox"].rx-switch:not(#rx):not(:checked) {
    background-color: #D1D5DB;
}

/* ---------------------------------------------------------------------
   31. 桌機頁首排版（header.html #mainHeader）
       原本左（Logo）／中（搜尋）／右（按鈕＋名稱）三區各佔 1/3；右側內容較長時（例如名稱很長）會往左溢出、蓋到搜尋框。
       改為：左右兩區依內容寬度、不被壓縮；中間搜尋區可縮小（最寬 448px），三者永不重疊。
   --------------------------------------------------------------------- */
@media (min-width: 768px) {
    #mainHeader .justify-between.h-16 > div:first-child:not(#rx) {
        flex: 1 0 auto;
    }

    #mainHeader .justify-between.h-16 > div:nth-child(2):not(#rx) {
        flex: 0 1 448px;
        min-width: 0;
    }

    #mainHeader .justify-between.h-16 > div:last-child:not(#rx) {
        flex: 1 0 auto;
    }

    /* 名稱過長時以「…」截斷 */
    #userMenuBtn > span:not(#rx) {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 只有圖示的主要按鈕（例如活動評論的「重設」）：加橘色外框，與旁邊的「篩選」一致（2026-11-20） */
button.btn-primary.rx-icon-btn:not(#rx) {
    border: 1px solid var(--rx-brand) !important;
}

/* ---------------------------------------------------------------------
   32. 篩選列 .rx-filterbar（活動評論 my_review.html）
       兩組欄位攤平成同一列（display: contents），依序：開始日期｜結束日期｜活動｜搜尋｜篩選｜重設，空間不足時換行
   --------------------------------------------------------------------- */
.rx-filterbar:not(#rx) > div {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.rx-filterbar:not(#rx) > div > div {
    display: contents;
}

.rx-filterbar:not(#rx) .relative:has(> input[type="date"]) {
    flex: 0 0 168px;
}

.rx-filterbar:not(#rx) .relative:has(> select) {
    flex: 1 1 200px;
    min-width: 0;
}

.rx-filterbar:not(#rx) .rx-filterbar__search {
    flex: 1 1 200px;
    min-width: 0;
}

.rx-filterbar:not(#rx) .form-input {
    width: 100% !important;
    height: 42px;
}

.rx-filterbar:not(#rx) button.rx-icon-btn {
    flex: none;
}

@media (max-width: 639px) {
    .rx-filterbar:not(#rx) .relative:has(> input[type="date"]) {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .rx-filterbar:not(#rx) input[type="date"].form-input {
        min-width: 0;
        padding-right: 8px;
    }

    .rx-filterbar:not(#rx) .relative:has(> select) {
        flex: 1 1 100%;
    }
}

/* ---------------------------------------------------------------------
   33. 活動頁主辦人區塊（event_page.html）：「訊息」「追蹤」帶文字的膠囊按鈕 .rx-orgbtn
   --------------------------------------------------------------------- */
.rx-orgbtn:not(#rx) {
    width: auto !important;
    gap: 8px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.rx-orgbtn:not(#rx) > i {
    color: inherit !important;
}

/* 手機：加上文字後一列放不下，改為換行（原本為左右捲動，檢舉按鈕會被捲到畫面外） */
@media (max-width: 479px) {
    div:has(> .rx-orgbtn):not(#rx) {
        flex-wrap: wrap !important;
        overflow: visible !important;
        row-gap: 10px;
    }
}

/* ---------------------------------------------------------------------
   34. 活動列表（event_list.html）：主辦者列只保留橘色捲動提示條（js watchScrollProgress），隱藏原生捲軸；主辦者頭像放大並加橘色外框
   --------------------------------------------------------------------- */
#expertsScroll:not(#rx) {
    scrollbar-width: none !important;
}

#expertsScroll::-webkit-scrollbar {
    display: none;
}

/* 主辦者頭像：放大兩倍（56 → 112px）、一律橘色外框；已選取的加粗外框＋光暈，右下角勾選徽章同比放大 */
#expertsScroll > div:not(#rx) {
    min-width: 112px;
}

#expertsScroll > div > .relative > img:not(#rx) {
    width: 112px;
    height: 112px;
    border-width: 2px;
    border-color: var(--rx-brand) !important;
}

#expertsScroll > div > .relative > img.border-primary:not(#rx) {
    border-width: 4px;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.25);
}

#expertsScroll > div > .relative > div:not(#rx) {
    width: 28px;
    height: 28px;
    right: 4px;
    bottom: 4px;
}

/* 名稱最多兩行置中，不截斷成「…」 */
#expertsScroll > div > span:not(#rx) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 128px;
    overflow: hidden;
    white-space: normal !important;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

/* ---------------------------------------------------------------------
   35. 活動列表卡片（event_list.html）依原型 Ripple_平台_0319 的 r-ecard：
       封面日期、滑過上浮＋光暈＋封面放大、名額漸層條、圖示按鈕與整列查看活動按鈕
   --------------------------------------------------------------------- */
/* 首頁動態牆的活動貼文封面：日期在封面圖左下（距下緣與左緣 10px，與活動列表卡片一致） */
a.rx-feed-cover {
    position: relative;
    display: block;
}

a.rx-feed-cover > .rx-ecard__date {
    bottom: 14px;
    left: 14px;
    /* 動態牆封面較大，日期放大 150% */
    min-width: 72px;
    padding: 9px 12px;
    border-radius: 14px;
}

a.rx-feed-cover > .rx-ecard__date b {
    font-size: 27px;
}

a.rx-feed-cover > .rx-ecard__date small {
    font-size: 16px;
}

/* 手機／小平板（<768px）：再縮小 30% */
@media (max-width: 767px) {
    a.rx-feed-cover > .rx-ecard__date {
        bottom: 10px;
        left: 10px;
        min-width: 50px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    a.rx-feed-cover > .rx-ecard__date b {
        font-size: 19px;
    }

    a.rx-feed-cover > .rx-ecard__date small {
        font-size: 11px;
    }
}

/* 封面下緣漸層，讓日期清楚 */
.rx-ecard__media::after,
#trendingScroll a > .relative::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    pointer-events: none;
}

.rx-ecard__date {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--bg-card, #000000);
    color: var(--rx-text);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    line-height: 1.1;
}

.rx-ecard__date b {
    font-size: 18px;
    font-weight: 800;
}

.rx-ecard__date small {
    margin-top: 1px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rx-brand-text);
}

:root[data-theme="light"] .rx-ecard__date {
    background: #FFFFFF;
    color: #111111;
}

/* 滑過：上浮 6px＋橘色光暈＋封面放大（取代原本 1px 上移） */
.rx-ecard:not(#rx),
#trendingScroll > a:not(#rx) {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.rx-ecard__media > img,
#trendingScroll > a > .relative > img {
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

#trendingScroll > a > .relative {
    overflow: hidden;
}

/* 熱門活動橫向列：上方留空間，卡片上浮時不被裁切 */
#trendingScroll:not(#rx) {
    padding-top: 8px;
}

@media (hover: hover) {
    .rx-ecard:not(#rx):hover,
    #trendingScroll > a:not(#rx):hover {
        transform: translateY(-6px);
        border-color: rgba(255, 106, 0, 0.45);
        box-shadow: 0 18px 40px -16px rgba(255, 106, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .rx-ecard:hover .rx-ecard__media > img,
    #trendingScroll > a:hover > .relative > img {
        transform: scale(1.05);
    }
}

/* 卡片上的主辦人頭像放大 130%：主列表 32 → 42px、熱門活動 24 → 31px */
.rx-ecard a.rx-ecard__host > img:not(#rx) {
    width: 42px;
    height: 42px;
    flex: none;
}

#trendingScroll > a .p-4 > .flex > img:not(#rx) {
    width: 31px;
    height: 31px;
    flex: none;
}

/* 主辦人列（連到主辦人頁） */
.rx-ecard a.rx-ecard__host:not(#rx) {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.rx-ecard a.rx-ecard__host:not(#rx):hover .rx-ecard__host-name {
    color: var(--rx-brand-text);
}

/* 名額條：6px、橘→琥珀漸層 */
.rx-ecard .rx-ecard__bar:not(#rx) {
    height: 6px;
    border-radius: 999px;
    background: var(--rx-border);
    overflow: hidden;
}

.rx-ecard .rx-ecard__bar:not(#rx) > .quota-progress {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #FF6A00, #FFB347) !important;
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

/* 圖示按鈕：36px 外框圓形 */
.rx-ecard a.rx-ecard__icon-btn:not(#rx) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #3F3F46;
    border-radius: 50%;
    background-color: transparent !important;
    color: var(--rx-text-muted) !important;
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.rx-ecard a.rx-ecard__icon-btn:not(#rx) > i {
    color: inherit !important;
}

.rx-ecard a.rx-ecard__icon-btn:not(#rx):hover {
    border-color: var(--rx-brand);
    background-color: rgba(255, 106, 0, 0.14) !important;
    color: var(--rx-brand-text) !important;
}

:root[data-theme="light"] .rx-ecard a.rx-ecard__icon-btn:not(#rx) {
    border-color: #D1D5DB;
}

/* 整列「查看活動 →」 */
.rx-ecard a.rx-ecard__cta:not(#rx) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    background-color: var(--rx-brand) !important;
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.16s ease;
}

.rx-ecard a.rx-ecard__cta:not(#rx) > i {
    color: inherit !important;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rx-ecard a.rx-ecard__cta:not(#rx):hover {
    background-color: var(--rx-brand-hover) !important;
}

.rx-ecard a.rx-ecard__cta:not(#rx):hover > i {
    transform: translateX(4px);
}

/* 「了解活動」＋「瀏覽主辦人」同一列，各佔一半 */
.rx-ecard__ctas {
    display: flex;
    gap: 10px;
}

.rx-ecard__ctas > a {
    flex: 1 1 0;
    min-width: 0;
}

.rx-ecard a.rx-ecard__cta--ghost:not(#rx) {
    border: 1px solid var(--rx-brand);
    background-color: transparent !important;
    color: var(--rx-brand-text) !important;
    font-size: 14px;
    font-weight: 600;
}

.rx-ecard a.rx-ecard__cta--ghost:not(#rx):hover {
    background-color: rgba(255, 106, 0, 0.12) !important;
}

/* ---------------------------------------------------------------------
   36. 訂閱方案彈窗「訂閱方案注意事項」（my_subscription.html #planNoticeList，由 js/my_subscription_plan_modal.js 產生）
       原本「• 標題 內文」左右排列，標題被擠成一字一行；改為標題在上、內文在下（皆對齊在圓點後方），
       內文保留後台設定的換行（各方案分行顯示），條列之間加大間距。只改樣式，程式與後台設定不變
   --------------------------------------------------------------------- */
#planNoticeList > li:not(#rx) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 4px;
    align-items: start;
}

#planNoticeList > li + li:not(#rx) {
    margin-top: 18px !important;
}

#planNoticeList > li > span:first-child:not(#rx) {
    grid-row: 1 / span 2;
    margin-right: 0;
}

#planNoticeList > li > span:not(:first-child):not(#rx) {
    grid-column: 2;
    margin-left: 0 !important;
}

/* 標題（後台的 highlight）：橘色粗體一整行 */
#planNoticeList > li > span.text-primary:not(#rx) {
    font-size: 15px;
    font-weight: 700;
}

/* 內文：保留換行、行距放寬 */
#planNoticeList > li > span:last-child:not(.text-primary):not(#rx) {
    white-space: pre-line;
    line-height: 1.75;
}

/* ---------------------------------------------------------------------
   37. 主辦活動網格卡片票價（my_events.html .rx-hprice）
       有優惠時「原價：$199 ｜ 優惠價格：$180」排成一行（標題在左、金額在右），中間細分隔線；
       原價刪除線灰字、優惠價品牌橘粗體
   --------------------------------------------------------------------- */
.rx-hprice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
    min-width: 0;
}

.rx-hprice__col {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
}

.rx-hprice__col + .rx-hprice__col {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
}

.rx-hprice__label {
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-tertiary, #9ca3af);
    white-space: nowrap;
}

.rx-hprice__orig {
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-tertiary, #9ca3af);
    text-decoration: line-through;
    white-space: nowrap;
}

/* 卡片較窄（平板三欄約 192px）放不下一行時，改為上下兩行、不顯示分隔線 */
div:has(> .rx-hprice) {
    container-type: inline-size;
}

@container (max-width: 279px) {
    .rx-hprice {
        flex-direction: column;
        align-items: flex-start;
    }

    .rx-hprice__col + .rx-hprice__col {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

.rx-hprice__now {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   38. 橘色外框按鈕 .rx-outline-btn（活動頁「新增至我的日曆」）：1px 品牌橘外框，與重設按鈕一致
   --------------------------------------------------------------------- */
.rx-outline-btn:not(#rx) {
    border: 1px solid var(--rx-brand) !important;
}

.rx-outline-btn:not(#rx):hover {
    background-color: rgba(255, 106, 0, 0.12) !important;
}

/* ---------------------------------------------------------------------
   39. 首頁活動貼文「報名即將截止／已截止」狀態框（landing.css .registration-status）淺色主題
       原本兩種主題都是深色漸層底＋白字，淺色主題下像一塊黑色區塊、說明文字對比不足。
       淺色主題改為：即將截止＝淡橘底＋橘框，標題深橘 #C2410C（淺底上可讀），時鐘圖示品牌橘；
       已截止＝淺灰底＋灰框，標題深色、圖示與說明灰色。深色主題沿用 landing.css 原樣式，
       但時鐘圖示原本被 theme-system 強制成白色，這裡改回 landing.css 原設計：即將截止 #FF9D32、已截止 #CBB9AA
   --------------------------------------------------------------------- */
.registration-status--closing-soon:not(#rx) .registration-status__icon i {
    color: #FF9D32 !important;
}

.registration-status--closed:not(#rx) .registration-status__icon i {
    color: #CBB9AA !important;
}

/* 39-1（2026-11-24）寬度剛好 768px 時狀態框蓋住價格：landing.css 在 ≤768px 把狀態框設為滿寬（手機改為價格下方的小卡），
   但貼文的價格列在 ≥768px（md:flex-row）已改成左右並排，768px 兩邊同時成立 → 狀態框 700px 且不縮小，左邊價格欄被擠成 0 寬，
   價格文字跑到狀態框底下。≥768px 時狀態框改回依內容寬度（最寬 60%），價格在左、狀態在右；手機版不變 */
@media (min-width: 768px) {
    .registration-status:not(#rx) {
        width: auto;
        max-width: 60%;
    }
}

/* ---------------------------------------------------------------------
   40. 手機「個人選單」（mobile-nav.html #mobileProfileMenu）圖示與文字對齊
       各圖示寬度不同（fa-user-edit 較寬、fa-file-alt 較窄），文字起點參差不齊；
       圖示統一為 24px 寬並置中、與文字間距 12px，所有選項文字左緣對齊。只改樣式
   --------------------------------------------------------------------- */
#mobileProfileMenu a:not(#rx) > i:first-child {
    display: inline-block;
    width: 24px;
    margin-right: 12px !important;
    text-align: center;
}

/* ---------------------------------------------------------------------
   41. 主辦活動建立／編輯表單（my_events.html #newEventSectionVue）手機版寬度
       頁面內距 24px＋卡片內距 24px，375 寬時輸入框只剩 277px。手機（<768px）：
       表單（含上方區塊選單）左右各外擴 12px，與螢幕邊緣保留 12px；表單卡片內距 24 → 16px；
       輸入框約 319px。平板／桌機不變
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* 2026-11-24：頁面左右內距全站改為 5px（第 48 節），表單不再需要外擴，改回 0，避免超出螢幕 */
    #newEventSectionVue:not(#rx) {
        margin-left: 0;
        margin-right: 0;
    }

    #newEventSectionVue .bg-card-bg.rounded-xl.p-6:not(#rx) {
        padding: 16px !important;
    }
}

/* ---------------------------------------------------------------------
   42. 主辦活動表單「報名資料設定」（my_events.html .rx-regform）— 2026-11-24 使用者選擇做法 B
       原本 11 個分類、42 個欄位全部攤開（手機約 4000px），必填只有 14px 的「*」小勾選框。
       改為：畫面只列出已選欄位（欄位名稱＋所屬分類、「必填」膠囊開關、移除 ×），
       其他欄位按「新增欄位」從底部選單（#rxRegFieldSheet，沿用 .rx-sheet／.rx-catchip）依分類挑選、可全選。
       v-model 與 onRegFieldSelectedChange／onRegFieldRequiredChange／toggleRegSection 不變
   --------------------------------------------------------------------- */
.rx-regpick__count {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--rx-text-muted, #9CA3AF);
}

.rx-regpick__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rx-regrow {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 6px 8px 14px;
    border: 1px solid var(--border-primary, #2A2A2A);
    border-radius: 10px;
}

.rx-regrow__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rx-regrow__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary, #FFFFFF);
    word-break: break-word;
}

.rx-regrow__group {
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--text-tertiary, #9CA3AF);
}

.rx-regform button.rx-regrow__del:not(#rx) {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background-color: transparent !important;
    color: var(--text-tertiary, #9CA3AF) !important;
}

.rx-regform button.rx-regrow__del:not(#rx):hover {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #EF4444 !important;
}

.rx-regform button.rx-regrow__del:not(#rx) > i {
    color: inherit !important;
}

.rx-regpick__empty {
    padding: 18px 12px;
    border: 1px dashed var(--border-primary, #3A3A3A);
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-tertiary, #9CA3AF);
}

/* 新增欄位：整列虛線橘框按鈕 */
.rx-regform button.rx-regpick__add:not(#rx) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: 1.5px dashed var(--rx-brand);
    border-radius: 10px;
    background-color: transparent !important;
    color: var(--rx-brand-text, #FF6A00) !important;
    font-size: 14px;
    font-weight: 700;
}

.rx-regform button.rx-regpick__add:not(#rx):hover {
    background-color: rgba(255, 106, 0, 0.08) !important;
}

.rx-regform button.rx-regpick__add:not(#rx) > i {
    color: inherit !important;
}

/* 「必填」膠囊開關：隱藏原本的小勾選框，整顆膠囊可點 */
.rx-reqpill:not(#rx) {
    position: relative;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border-primary, #D1D5DB);
    border-radius: 999px;
    color: var(--text-tertiary, #9CA3AF);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.rx-reqpill > input[type="checkbox"]:not(#rx) {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0;
    cursor: pointer;
}

.rx-reqpill > span:not(#rx) {
    font-size: 12px !important;
    font-weight: 600;
    color: inherit !important;
    white-space: nowrap;
}

.rx-reqpill:has(> input:checked):not(#rx) {
    border-color: #EF4444;
    background-color: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.rx-reqpill:has(> input:focus-visible):not(#rx) {
    outline: 2px solid var(--rx-brand);
    outline-offset: 2px;
}

/* 新增欄位選單：分類標題列＋全選 */
.rx-reggroup + .rx-reggroup {
    margin-top: 18px;
}

.rx-reggroup__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary, #D1D1D1);
}

.rx-reggroup__head > i:not(#rx) {
    width: 16px;
    text-align: center;
    color: var(--rx-brand) !important;
}

.rx-regform button.rx-reggroup__all:not(#rx) {
    margin-left: auto;
    height: 28px;
    padding: 0 12px;
    border: 1px solid var(--border-primary, #3A3A3A);
    border-radius: 999px;
    background-color: transparent !important;
    color: var(--text-tertiary, #9CA3AF) !important;
    font-size: 12px;
    font-weight: 600;
}

.rx-regform button.rx-reggroup__all.is-on:not(#rx) {
    border-color: var(--rx-brand);
    color: var(--rx-brand-text, #FF6A00) !important;
}

/* 欄位晶片沒有圖示，高度較小；同意聲明文字較長，改一欄並可換行 */
.rx-regform .rx-catchip:not(#rx) {
    min-height: 44px;
    padding: 8px 12px;
}

.rx-regform .rx-catchip__main:not(#rx) {
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

.rx-catgrid--wide:not(#rx) {
    grid-template-columns: 1fr !important;
}

/* ---------------------------------------------------------------------
   43. 我的個人檔案（my_profile.html #profileApp）表單標題 ICON 統一
       原本一半標題沒有 ICON、有 ICON 的顏色灰橘混用、間距 mr-1／mr-2 不一。
       每個 .form-label 都有 ICON（新增的加 .rx-flabel-ic），統一品牌橘、16px 寬置中、與文字間距 8px
   --------------------------------------------------------------------- */
#profileApp .form-label i.fas:not(#rx),
#profileApp .form-label i.far:not(#rx),
#profileApp .form-label i.fab:not(#rx) {
    display: inline-block;
    width: 16px;
    margin-right: 8px !important;
    text-align: center;
    color: var(--rx-brand) !important;
}

/* ---------------------------------------------------------------------
   44. 主辦活動卡片（my_events.html）可見性與狀態標籤底色
       原本所有標籤都是同一種半透明黑底，無法一眼分辨。依類型上實色底＋白字
       （白字對比皆 >= 4.5:1，封面圖深淺都看得清楚，深色／淺色主題相同）。
       可見性 3 種用 .rx-vis--*（my_events.html 新增），狀態沿用 getStatusBadge() 回傳的 badge-* class；
       網格卡片封面（.rx-hcard__badges）與列表卡片標題下方（.emc-info__content）一致。只改樣式
   --------------------------------------------------------------------- */
/* 可見性 */
/* 公開：藍（輔助色 #3FA9F5 加深，白字可讀） */
.rx-hcard__badges > span.rx-vis--public:not(#rx),
.event-manage-card .emc-info__content span.rx-vis--public:not(#rx) {
    background-color: #0E7BC2 !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 粉絲：紫 */
.rx-hcard__badges > span.rx-vis--followers:not(#rx),
.event-manage-card .emc-info__content span.rx-vis--followers:not(#rx) {
    background-color: #7C3AED !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 私人：灰 */
.rx-hcard__badges > span.rx-vis--private:not(#rx),
.event-manage-card .emc-info__content span.rx-vis--private:not(#rx) {
    background-color: #4B5563 !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 狀態 */
/* 進行中：綠 */
.rx-hcard__badges > span.badge-ongoing:not(#rx),
.event-manage-card .emc-info__content span.badge-ongoing:not(#rx) {
    background-color: #15803D !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 已發布（備用，同進行中） */
.rx-hcard__badges > span.badge-published:not(#rx),
.event-manage-card .emc-info__content span.badge-published:not(#rx) {
    background-color: #15803D !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 草稿：石板灰 */
.rx-hcard__badges > span.badge-draft:not(#rx),
.event-manage-card .emc-info__content span.badge-draft:not(#rx) {
    background-color: #64748B !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 即將到來（尚未開放報名）：靛藍 */
.rx-hcard__badges > span.badge-scheduled:not(#rx),
.event-manage-card .emc-info__content span.badge-scheduled:not(#rx) {
    background-color: #4F46E5 !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 已完成：青綠 */
.rx-hcard__badges > span.badge-completed:not(#rx),
.event-manage-card .emc-info__content span.badge-completed:not(#rx) {
    background-color: #0F766E !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 已取消：紅 */
.rx-hcard__badges > span.badge-cancelled:not(#rx),
.event-manage-card .emc-info__content span.badge-cancelled:not(#rx) {
    background-color: #B91C1C !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 下架：深灰褐 */
.rx-hcard__badges > span.badge-takedown:not(#rx),
.event-manage-card .emc-info__content span.badge-takedown:not(#rx) {
    background-color: #57534E !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 待審核：琥珀 */
.rx-hcard__badges > span.badge-pending:not(#rx),
.event-manage-card .emc-info__content span.badge-pending:not(#rx) {
    background-color: #B45309 !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 已退款：玫紅（目前卡片沒有此標籤，先備好樣式） */
.rx-hcard__badges > span.badge-refunded:not(#rx),
.event-manage-card .emc-info__content span.badge-refunded:not(#rx) {
    background-color: #BE185D !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 已刪除（備用）：深灰 */
.rx-hcard__badges > span.badge-deleted:not(#rx),
.event-manage-card .emc-info__content span.badge-deleted:not(#rx) {
    background-color: #374151 !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

/* 44-1 主辦活動「已退款」頁籤的退款卡片封面狀態標籤（my_events.html，2026-11-24 新增 .rx-badge）
        與卡片下方狀態文字同一套判斷；新狀態沒有既有 badge 樣式，.rx-badge 補上與其他標籤相同的尺寸 */
.rx-hcard__badges > span.rx-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}
/* 退款處理中：深橘 */
.rx-hcard__badges > span.badge-refund-processing:not(#rx) {
    background-color: #C2410C !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 已核准（舊資料沒有退款進度時）：綠 */
.rx-hcard__badges > span.badge-approved:not(#rx) {
    background-color: #15803D !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 已拒絕：紅 */
.rx-hcard__badges > span.badge-denied:not(#rx) {
    background-color: #B91C1C !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
/* 44-2 我的報名（user_events.html #eventsGridView）網格卡片封面標籤加上 .rx-hcard__badges，
        與主辦活動共用第 30、44 節（原本為頁面內的淡色半透明樣式）；列表卡片 .emc-info__content 已由第 44 節涵蓋 */

/* 44-3 我的報名「已退款」頁籤：退款申請右側狀態膠囊（user_events.html .rx-rq--*），底色與主辦活動退款標籤一致 */
span.rx-rq:not(#rx) > i {
    color: #FFFFFF !important;
}
/* 退款審核中：琥珀（同待審核） */
span.rx-rq.rx-rq--pending:not(#rx) {
    background-color: #B45309 !important;
    color: #FFFFFF !important;
}
/* 退款處理中：深橘 */
span.rx-rq.rx-rq--processing:not(#rx) {
    background-color: #C2410C !important;
    color: #FFFFFF !important;
}
/* 退款完成＝已退款：玫紅 */
span.rx-rq.rx-rq--refunded:not(#rx) {
    background-color: #BE185D !important;
    color: #FFFFFF !important;
}
/* 已核准：綠 */
span.rx-rq.rx-rq--approved:not(#rx) {
    background-color: #15803D !important;
    color: #FFFFFF !important;
}
/* 已拒絕：紅 */
span.rx-rq.rx-rq--denied:not(#rx) {
    background-color: #B91C1C !important;
    color: #FFFFFF !important;
}

/* ---------------------------------------------------------------------
   45. 我的個人檔案（my_profile.html）手機版「儲存變更」
       原本是懸浮在內容上的膠囊（bottom 80px、左右 24px），捲動時會蓋住下方的按鈕（如「新增」經歷／認證），
       看起來像兩個按鈕疊在一起。改為貼齊底部導覽列（65px）上方的整列儲存列：有頁面底色與上框線，
       內容在儲存列後方捲動，界線清楚；頁面底部多留空間，最後的欄位與按鈕可以捲到儲存列上方。只改樣式
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
    .rx-savebar:not(#rx) {
        left: 0 !important;
        right: 0 !important;
        bottom: 65px !important;
        padding: 10px 16px;
        background: var(--bg-primary, #111);
        border-top: 1px solid var(--border-primary);
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.18);
    }

    .rx-savebar:not(#rx) > button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #profileSection:has(> .rx-savebar):not(#rx) {
        padding-bottom: 88px;
    }
}

/* ---------------------------------------------------------------------
   46. iPad／平板版面（html.is-tablet，由 master.html 判斷；2026-11-24，iPad版面調整清單）
       平板寬度 ≥ 768px 原本直接套桌機版（滑鼠操作）。這一節只在 html.is-tablet 時生效，
       桌機（滑鼠）與手機版不受影響。對應清單項目：#1 #4 #5 #6 #8 #9 #10 #11
   --------------------------------------------------------------------- */

/* 46-1（#1）底部導覽列：平板沿用手機的底部導覽列（mobile-nav.html 原本 md:hidden） */
html.is-tablet nav.rx-tabbar:not(#rx) {
    display: block !important;
}

html.is-tablet .rx-tabbar__row:not(#rx) {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* 導覽列的「我的」選單、發文類型與發文視窗：開啟時（移除 .hidden）在平板也要顯示 */
html.is-tablet #mobileProfileMenu:not(.hidden):not(#rx) {
    display: block !important;
}

html.is-tablet #mobilePostTypeModal:not(.hidden):not(#rx),
html.is-tablet #mobileCreatePostModal:not(.hidden):not(#rx) {
    display: flex !important;
}

/* 「我的」選單在平板與手機相同：滿版（2026-11-24 使用者指示，取消原本置中 560px 面板） */

/* 內容底部讓開導覽列（同 app-shell.css 手機版的做法） */
html.is-tablet #mainContent:not(#rx) {
    padding-bottom: calc(5rem + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

/* 46-2（#5）Header 頭像選單：平板只用點擊開關（header.js 原本就有），停用滑鼠移過才開
   iPad 點一下會同時觸發 hover 與 click，造成打開後關不掉或閃一下 */
html.is-tablet #userDropdown.hidden:not(#rx) {
    display: none !important;
}

html.is-tablet #userDropdown:not(.hidden):not(#rx) {
    display: block !important;
    opacity: 1 !important;
}

/* 46-2b Header 搜尋欄：原本 Logo、搜尋、右側按鈕三區各佔 1/3（flex-1），768 寬時搜尋輸入框只剩 34px。
   平板改成 Logo 與右側按鈕只佔需要的寬度，其餘空間給搜尋欄（最寬 448px） */
html.is-tablet #mainHeader .h-16 > div.flex-1:first-of-type:not(#rx) {
    flex: 0 0 auto;
}

html.is-tablet #mainHeader .h-16 > div.flex-1:last-child:not(#rx) {
    flex: 0 0 auto;
    gap: 12px !important;
}

html.is-tablet #mainHeader .h-16 > div.flex-1:has(form[action="search_results"]):not(#rx) {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
}

/* 46-3（#6）個人中心側邊欄改成抽屜：平時收在畫面左側外，Header 的「選單」按鈕叫出（js/ripple-ux.js 4-1） */
.rx-drawer-btn {
    display: none;
}

/* 2026-11-24 使用者指示：平板的個人選單只保留底部導覽列「我的」（項目與側邊欄、頭像選單相同），
   Header 的「☰」抽屜按鈕與右上角頭像選單在平板隱藏；側邊欄維持收起。抽屜樣式保留，日後要恢復只需移除下方兩條隱藏規則 */
html.is-tablet .rx-drawer-btn:not(#rx),
html.is-tablet #userMenu:not(#rx) {
    display: none !important;
}

html.is-tablet.rx-has-drawer .rx-drawer-btn:not(#rx) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: 8px;
    margin-left: -8px;
    border-radius: 10px;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-size: 20px;
}

html.is-tablet.rx-has-drawer .rx-drawer-btn:not(#rx):active {
    background: var(--bg-hover, rgba(255, 255, 255, 0.08)) !important;
}

html.is-tablet #sidebar:not(#rx) {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: min(324px, 86vw) !important;
    padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    z-index: 700 !important;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
    overflow-y: auto !important;
}

html.is-tablet.rx-drawer-open #sidebar:not(#rx) {
    transform: none;
}

/* 抽屜裡一律完整顯示文字（桌機收合成圖示列時以 inline style 隱藏文字），收合按鈕在平板不需要 */
/* 依身分只顯示其一的文字（如「追蹤用戶」限主辦人、「追蹤中」限非主辦人，loading.css 判斷）不可一起強制顯示 */
html.is-tablet #sidebar .sidebar-item-text:not([data-expert-only]):not([data-non-expert-only]):not(#rx),
html.is-tablet.is-expert #sidebar .sidebar-item-text[data-expert-only]:not(#rx),
html.is-tablet.is-not-expert #sidebar .sidebar-item-text[data-non-expert-only]:not(#rx) {
    display: inline !important;
}

html.is-tablet #sidebar #sidebarTitle:not(#rx),
html.is-tablet #sidebar #sidebarMenuLabel:not(#rx) {
    display: block !important;
}

/* 桌機收合狀態（#sidebar.collapsed，theme-system.css）會把文字設成透明、寬度 0：抽屜裡一律顯示 */
html.is-tablet #sidebar .sidebar-item-text:not(#rx),
html.is-tablet #sidebar #sidebarTitle:not(#rx),
html.is-tablet #sidebar #sidebarMenuLabel:not(#rx) {
    opacity: 1 !important;
    width: auto !important;
    overflow: visible !important;
}

/* 抽屜底色與邊框跟隨深色／淺色主題（theme-system 的 --bg-secondary） */
html.is-tablet #sidebar:not(#rx) {
    background-color: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-primary) !important;
}

/* 目前所在頁（橘底）的文字與圖示一律白色：淺色主題原本被改成灰字壓在橘底上，看不清楚（桌機展開時同樣適用） */
#sidebar .sidebar-item:is([aria-current="page"], .sidebar-item-active) .sidebar-item-text:not(#rx),
#sidebar .sidebar-item:is([aria-current="page"], .sidebar-item-active) .sidebar-item-icon:not(#rx),
#sidebar .sidebar-item:is([aria-current="page"], .sidebar-item-active) .sidebar-item-icon i:not(#rx) {
    color: #FFFFFF !important;
}

html.is-tablet[data-theme="light"] #sidebar:not(#rx) {
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
}

html.is-tablet #sidebar #collapseSidebar:not(#rx) {
    display: none !important;
}

/* 桌機收合過（sidebar-toggle.js 給項目加 justify-center px-2）時，抽屜內仍以展開樣式靠左排列 */
html.is-tablet #sidebar .sidebar-item:not(#rx) {
    justify-content: flex-start !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    min-height: 44px;
}

.rx-drawer-mask {
    display: none;
}

html.is-tablet.rx-drawer-open .rx-drawer-mask:not(#rx) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 690;
    background: rgba(0, 0, 0, 0.5);
}

/* 46-4（#8）登入／註冊：平板一律單欄，隱藏左側影片大圖，表單 460px 置中，顯示手機版 Logo */
html.is-tablet div:has(> .signin-form-panel) > div:not(.signin-form-panel):not(#rx) {
    display: none !important;
}

html.is-tablet .signin-form-panel:not(#rx) {
    width: 100% !important;
    align-items: center !important;
    padding: 32px 24px !important;
}

html.is-tablet .signin-form-panel > .max-w-md:not(#rx) {
    max-width: 460px;
}

html.is-tablet .signin-form-panel > .max-w-md > .md\:hidden:not(#rx) {
    display: flex !important;
}

/* 46-5（#9）活動列表：熱門活動卡片與下方「依活動篩選」同寬（直式兩欄、橫式三欄），移除兩區之間多餘的空白 */
html.is-tablet #trendingScroll > a.flex-shrink-0:not(#rx) {
    width: calc((100% - 24px) / 2);
}

html.is-tablet #trendingScroll > a.flex-shrink-0 + a.flex-shrink-0:not(#rx) {
    margin-left: 24px !important;
}

@media (min-width: 1024px) {
    html.is-tablet #trendingScroll > a.flex-shrink-0:not(#rx) {
        width: calc((100% - 48px) / 3);
    }
}

html.is-tablet div.container.pb-24:has(> #trendingEvents):not(#rx) {
    padding-bottom: 0 !important;
}

/* 46-6（#11）內容最大寬度 1040px 置中：橫式時不會卡片擠在左邊、右邊空一大片
   個人中心（main#mainContent 是捲動容器，限制其內容而不是容器本身；固定定位的元件不受影響） */
html.is-tablet main#mainContent > :not(.fixed):not(script):not(style):not(#rx) {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

html.is-tablet #eventsContainer:not(#rx),
html.is-tablet div.container.max-w-1320:not(#rx) {
    max-width: 1040px;
}

/* 46-8（全站，2026-11-24 使用者指示「全站一致」）彈出視窗的背景遮罩：一律加上模糊，底色加深 10%
   對象：全螢幕固定遮罩（fixed＋inset-0，或 fixed＋top-0＋left-0＋w-screen）且用 bg-black/NN 半透明黑底，
   含 JS 產生的視窗（檢舉、封鎖、邀請等，同樣是 fixed inset-0 bg-black/60）與底部選單 .rx-sheet。
   50→60%、60→70%、70→80%、80→90%、85→95%；90%、95%（圖片燈箱等）已接近全黑，只加模糊不再加深 */
:is(.fixed.inset-0, .fixed.top-0.left-0.w-screen):is([class~="bg-black/50"], [class~="bg-black/60"], [class~="bg-black/70"], [class~="bg-black/80"], [class~="bg-black/85"], [class~="bg-black/90"], [class~="bg-black/95"]):not(#rx),
.rx-sheet__backdrop:not(#rx) {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

:is(.fixed.inset-0, .fixed.top-0.left-0.w-screen)[class~="bg-black/50"]:not(#rx) {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

:is(.fixed.inset-0, .fixed.top-0.left-0.w-screen)[class~="bg-black/60"]:not(#rx) {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

:is(.fixed.inset-0, .fixed.top-0.left-0.w-screen)[class~="bg-black/70"]:not(#rx) {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

:is(.fixed.inset-0, .fixed.top-0.left-0.w-screen)[class~="bg-black/80"]:not(#rx) {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

:is(.fixed.inset-0, .fixed.top-0.left-0.w-screen)[class~="bg-black/85"]:not(#rx) {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

/* 底部選單 .rx-sheet 的遮罩：55% → 65% */
.rx-sheet__backdrop:not(#rx) {
    background: rgba(0, 0, 0, 0.65);
}

/* 46-9（全站，2026-11-24 使用者指示）建立貼文視窗「公開／僅限追蹤者／私人」下拉選單：
   原本 18px 高、12px 字（vendor/header.api.js 範本的 text-xs p-0 border-0），手指很難點。
   放大為 40px 高、14px 字、圓角外框；平板（html.is-tablet）44px，符合 Apple 觸控 44pt。v-model 與選項不變 */
#createPostModal .flex.items-center.mb-4 select:not(#rx) {
    display: block;
    min-width: 160px;
    height: 40px;
    margin-top: 6px !important;
    padding: 0 36px 0 12px !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: 10px;
    background-color: var(--bg-input, var(--bg-hover, #1F1F1F)) !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    line-height: 1.2;
}

html.is-tablet #createPostModal .flex.items-center.mb-4 select:not(#rx) {
    height: 44px;
    font-size: 15px !important;
}

#createPostModal .flex.items-center.mb-4 > img:not(#rx) {
    align-self: flex-start;
    margin-top: 2px;
}

/* 46-7（#4，全站）右上角「新通知」提示框：藏起來時往右移 100%，但它離右邊 16px，左邊框會露出一條橘線。
   藏起來時同時設為不可見（滑出動畫結束後才隱藏，出現時立即可見） */
#notificationToast:not(#rx) {
    transition: transform 0.3s ease, visibility 0s linear 0s !important;
}

#notificationToast.translate-x-full:not(#rx) {
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s !important;
}

/* ---------------------------------------------------------------------
   47. 主辦人頁封面（expert_page.html .rx-xp-avatar／.rx-xp-info）：頭像與文字對齊、距下緣 30px（2026-11-24 使用者指示）
       原本頭像垂直置中（距下緣約 120px），文字區塊距下緣 40px＋內距 40px，兩者高度不一致。
       ≥768px：頭像底部距封面下緣 30px；文字區塊同樣距下緣 30px、高度與頭像相同（160px），內容垂直置中。
       手機版（上下排列）不變；只改樣式，名稱、地點、數據等資料不變
   --------------------------------------------------------------------- */
@media (min-width: 768px) {
    .rx-xp-avatar:not(#rx) {
        top: auto !important;
        bottom: 30px !important;
        transform: none !important;
    }

    .rx-xp-avatar:not(#rx) > .mb-4 {
        margin-bottom: 0 !important;
    }

    .rx-xp-info:not(#rx) {
        bottom: 30px !important;
        height: 160px;
        display: flex;
        align-items: center;
    }

    .rx-xp-info:not(#rx) > div {
        flex: 1;
        align-items: center !important;
        padding-bottom: 0 !important;
    }

    /* 最後一行（數據列）的下外距不計入，讓整段文字在頭像高度內真正置中 */
    .rx-xp-info:not(#rx) > div > div > :last-child {
        margin-bottom: 0 !important;
    }
}

/* 封面上的「追蹤中」「訊息」「⋯」外框按鈕：加上 70% 黑底，在淺色封面圖上也清楚（2026-11-24 使用者指示）。
   原本為透明或 20% 黑底；滑鼠移入時沿用原本的 hover 底色（追蹤中→橘、訊息／⋯→深灰），深色／淺色主題相同 */
button.expert-following-btn:not(:hover):not(#rx),
button.expert-message-btn:not(:hover):not(#rx),
button.expert-more-btn:not(:hover):not(#rx) {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* ---------------------------------------------------------------------
   48. 手機版頁面左右間距全站統一 5px（2026-11-24 使用者指示：卡片列表與螢幕邊緣只保留左右 5px）
       原本各頁不一：首頁、活動列表 12px，主辦人頁、活動頁、搜尋結果 16px，個人中心各頁 12–24px。
       手機（<768px）把頁面最外層容器的左右內距統一為 5px：
       個人中心 main#mainContent、各頁 .container.mx-auto（首頁、活動列表、活動頁、主辦人頁、搜尋結果、貼文頁等）。
       只改左右內距，上下間距、卡片內距與平板／桌機不變
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
    main#mainContent:not(#rx),
    .container.mx-auto:not(#rx),
    #eventsContainer:not(#rx) {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* 頁面標題與說明文字不是卡片，貼齊 5px 太擠：多內縮 7px（距邊緣共 12px），卡片仍是 5px */
    main#mainContent h1:not(#rx),
    main#mainContent h1 + p:not(#rx) {
        padding-left: 7px;
        padding-right: 7px;
    }
}

/* ---------------------------------------------------------------------
   49. 訪客版首頁（guest.html）與登入頁「先逛逛」（2026-11-25）
       訪客卡、手機訪客橫幅的按鈕、登入提示面板（沿用 .rx-sheet），深色／淺色主題皆適用
   --------------------------------------------------------------------- */
a.rx-guest-btn:not(#rx) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background-color var(--rx-dur-fast, .15s) ease, color var(--rx-dur-fast, .15s) ease;
}

.rx-guest-card a.rx-guest-btn:not(#rx) + a.rx-guest-btn {
    margin-top: 10px;
}

a.rx-guest-btn--primary:not(#rx) {
    background: var(--rx-brand) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--rx-brand);
}

a.rx-guest-btn--primary:not(#rx) i {
    color: #FFFFFF !important;
}

a.rx-guest-btn--outline:not(#rx) {
    background: transparent !important;
    color: var(--rx-brand) !important;
    border: 1px solid var(--rx-brand);
}

a.rx-guest-btn--outline:not(#rx) i {
    color: var(--rx-brand) !important;
}

a.rx-guest-btn--outline:not(#rx):hover {
    background: rgba(255, 106, 0, 0.1) !important;
}

a.rx-guest-login:not(#rx) {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 登入提示面板 */
.rx-guest-sheet__body {
    /* 底部加 iPhone 安全區域，避免 Home 指示條壓到「先不要」（與 .rx-sheet__foot 相同做法） */
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.rx-guest-sheet__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 4px auto 12px;
    border-radius: 9999px;
    background: rgba(255, 106, 0, 0.12);
}

.rx-guest-sheet__icon i:not(#rx) {
    color: var(--rx-brand) !important;
    font-size: 22px;
}

.rx-guest-sheet__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.rx-guest-sheet__desc {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.rx-guest-sheet__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

button.rx-guest-sheet__later:not(#rx) {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-size: 14px;
}

/* 登入頁「先逛逛」：與「登入」同大小的外框按鈕 */
a.rx-guest-browse:not(#rx) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-primary) !important;
    font-weight: 700;
    transition: border-color var(--rx-dur-fast, .15s) ease, color var(--rx-dur-fast, .15s) ease;
}

a.rx-guest-browse:not(#rx) i {
    color: var(--rx-brand) !important;
}

a.rx-guest-browse:not(#rx):hover {
    border-color: var(--rx-brand);
    color: var(--rx-brand) !important;
}

/* ---------------------------------------------------------------------
   9. 減少動態
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .rx-tabbar__item > i,
    .rx-tabbar__fab {
        transition: none;
    }

    #dynamicPostsSection > [data-view-target-type],
    #dynamicPostsSection button[data-rx-tapped] > i.post-liked {
        animation: none;
    }

    .rx-bookbar,
    .rx-bookbar.is-visible {
        transition: none;
    }

    .rx-ecard:hover .rx-ecard__media > img {
        transform: none;
    }
}
