/* 由 css/app.css 機械轉出（2026-11-04）：顏色改吃 V2 tokens，規則不動，讓還沒重排的頁面在三配色都能用。
   不要在這裡加新規則：外殼與共用元件在 app-v2.css（後載入、會蓋過本檔），頁面重排的樣式放 app-v2-<組名>.css。
   頁面重排完成後，可把該頁不再用到的舊規則從本檔刪掉。token 對照見 md/APP_V2_COMPONENTS.md。 */

:root {
  --app-tabbar-h: 64px;
  --app-header-h: 56px;
  --app-shell-w: 480px;
}

/* .app-body 背景改在 app-v2.css */

/* hidden 屬性優先權保險（.app-form 等 display 規則不得蓋過） */
[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: var(--app-shell-w);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   精簡 header（返回 ＋ 頁標題 ＋ 品牌）— 固定頂部
   -------------------------------------------------------------------------- */

.app-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(var(--veil), 0.92);
  border-bottom: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-top: env(safe-area-inset-top, 0px);
}

.app-header__inner {
  width: min(var(--app-shell-w), 100%);
  height: var(--app-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
}

.app-header__back {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--s-accent);
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}

.app-header__title {
  flex: 1;
  margin: 0;
  /* 對齊官網 .site-header__brand-main：金色調＋寬間距，避免純白粗體突兀 */
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--s-accent);
  /* text-shadow 移除：淺底會糊 */;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

/* .app-header__brand img 移到 app-v2.css（不可寫 display，會蓋掉 Logo 淺／深切換） */

/* --------------------------------------------------------------------------
   主內容 — 預留上下固定元素空間
   -------------------------------------------------------------------------- */

.app-main {
  padding-top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px) + 16px);
  padding-inline: 16px;
  padding-bottom: calc(var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px);
}

/* --------------------------------------------------------------------------
   底部 Tab Bar（§3.3）— 固定底部、safe-area、48px 點擊區
   -------------------------------------------------------------------------- */

.app-tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(var(--veil), 0.92);
  border-top: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-tabbar__list {
  width: min(var(--app-shell-w), 100%);
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-tabbar__item {
  flex: 1;
}

.app-tabbar__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--app-tabbar-h);
  min-width: 48px;
  color: var(--app-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.app-tabbar__link svg {
  width: 24px;
  height: 24px;
}

.app-tabbar__link[aria-current="page"] {
  color: var(--gold);
}

.app-tabbar__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--s-btn);
}

.app-tabbar__badge {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(5px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--a-r);
  background: var(--red);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   骨架佔位卡（空殼頁用；之後由各頁實際元件取代）
   -------------------------------------------------------------------------- */

.app-placeholder {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  padding: 32px 20px;
  text-align: center;
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.85;
}

.app-placeholder__kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.app-placeholder p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   最新名單（§4.1）— 資訊列 ＋ 名單卡
   -------------------------------------------------------------------------- */

.app-lead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2px 2px 14px;
  color: var(--app-dim);
  font-size: 15px;
}

.app-lead strong {
  color: var(--gold);
  font-weight: 600;
}

.app-card {
  display: block;
  margin-bottom: 18px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  text-decoration: none;
  color: var(--ivory);
}

.app-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.app-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 上下漸層遮罩：讓契合指數與姓名疊在照片上仍保持對比（§7） */
.app-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0) 34%);
  pointer-events: none;
}

.app-card__score {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--s-btn-ink);
  /* text-shadow 移除：淺底會糊 */;
}

/* 有左上緞帶時，契合指數往下讓位（§4.1 v0.4） */
.app-card--ribbon .app-card__score {
  top: 66px;
}

.app-card__name {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app-card__name strong {
  font-size: 18px;
  font-weight: 600;
}

.app-card__name span {
  font-size: 14px;
  color: var(--s-ink-2);
}

.app-card__chip-new {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.6 * var(--a-k)));
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  background: rgba(var(--veil), 0.35);
}

/* 右上狀態 badge＝我的狀態（金）；左上緞帶＝對方的狀態（暗紅）（§4.1） */
.app-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  background: var(--s-btn);
  color: var(--s-btn-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* 剩餘時間框（心動兩子頁的照片右上；最新名單不放） */
.app-card__timeleft {
  padding: 4px 10px;
  background: rgba(var(--a-ink-rgb), 0.92);
  color: var(--s-btn-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.app-card__timeleft--corner {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* 五顆星評分（PM 需求 1）：底星灰、覆蓋層金，寬度＝分數% */
.app-stars {
  position: relative;
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--s-muted);
}

.app-stars__base {
  white-space: nowrap;
}

.app-stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

.app-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-stars__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.app-stars__label {
  font-size: 14px;
  color: var(--s-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.app-stars--lg .app-stars__label {
  font-size: 16px;
}

.app-stars--lg .app-stars {
  font-size: 26px;
  letter-spacing: 4px;
}

.app-stars--lg .app-stars__num {
  font-size: 25px;
}

/* 照片內的連結（心動頁等）：不掉回瀏覽器預設藍色 */
.app-card__media,
.app-card__media:visited {
  color: var(--ivory);
  text-decoration: none;
}

/* 狀態 Tag 疊在照片左上（橫向排列；右側留空給倒數框） */
.app-card__phototags {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 110px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-card__phototags .app-tag {
  background: rgba(var(--veil), 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.app-card__phototags .app-tag--sent {
  border-color: rgba(var(--a-gold-rgb), calc(0.7 * var(--a-k)));
}

.app-card__phototags .app-tag--read {
  background: rgba(96, 17, 22, 0.82);
  color: var(--a-danger);
}

/* 照片下方的評分列（PM 需求 1） */
.app-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px 0;
}

.app-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.app-tag {
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.app-tag--new {
  border-color: rgba(var(--a-gold-rgb), calc(0.55 * var(--a-k)));
  color: var(--gold);
}

.app-tag--sent {
  background: rgba(var(--a-gold-rgb), calc(0.16 * var(--a-k)));
  border-color: rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k)));
  color: var(--gold);
}

.app-tag--read {
  background: rgba(139, 30, 36, 0.28);
  border-color: rgba(139, 30, 36, 0.75);
  color: var(--a-danger);
}

.app-tag--off {
  background: rgba(var(--a-ink-rgb), 0.06);
  border-color: rgba(var(--a-ink-rgb), 0.12);
  color: var(--app-dim);
}

/* 綜合評價（詳情頁）：細項長條不再顯示數字。
   雙類名提高優先權——基礎 .app-meter 的三欄規則寫在檔案較後處，單類名會被蓋掉 */
.app-meter.app-meter--plain {
  grid-template-columns: 76px 1fr;
}

/* 會員中心大卡片選單（PM 需求 6：滿版大區塊取代小方格） */
.app-bigmenu {
  display: grid;
  gap: 12px;
}

.app-bigmenu a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  color: var(--ivory);
  text-decoration: none;
}

.app-bigmenu svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.app-bigmenu strong {
  display: block;
  font-size: 17px;
}

.app-bigmenu p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--app-dim);
}

.app-bigmenu__arrow {
  margin-left: auto;
  color: var(--s-accent);
  font-size: 22px;
}

/* 會員登入（假頁面，PM 需求 7） */

.app-login {
  max-width: 380px;
  margin-inline: auto;
  /* 與 .app-main 的 16px 相加＝手機兩側 24px，欄位不貼邊 */
  padding: 10px 8px 0;
  text-align: center;
}

.app-login__logo {
  display: block;
  width: 152px;
  height: auto;
  margin: 18px auto 14px;
}

.app-login__slogan {
  margin: 0 0 24px;
  color: var(--app-dim);
  font-size: 14px;
  letter-spacing: 0.22em;
}

.app-login__form {
  display: grid;
  gap: 20px;
  text-align: left;
  margin-bottom: 6px;
}

.app-login__form label {
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--s-accent);
}

/* 註冊頁（2026-08-04）也用這組表單樣式，故 select 一併納入——
   漏掉會變成瀏覽器預設白底下拉，在黑金介面上非常突兀。
   「忘記密碼」展開後的 Email 欄不在 .app-login__form 內，一併套用 */
.app-login__form input,
.app-login__form select,
.app-auth-help input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.24 * var(--a-k)));
  border-radius: 0;
  background: rgba(var(--a-ink-rgb), 0.04);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.app-login__form input::placeholder,
.app-auth-help input::placeholder {
  color: var(--app-dim);
  opacity: 1;
}

.app-login__form input:focus,
.app-login__form select:focus,
.app-auth-help input:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(var(--a-ink-rgb), 0.06);
  box-shadow: 0 0 0 3px rgba(var(--a-gold-rgb), calc(0.16 * var(--a-k)));
}

/* 瀏覽器自動填入會把欄位刷成淺藍底：用極長的轉場把底色凍結在原本的深色 */
.app-login__form input:-webkit-autofill,
.app-auth-help input:-webkit-autofill {
  -webkit-text-fill-color: var(--ivory);
  caret-color: var(--ivory);
  transition:
    background-color 600000s 0s,
    color 600000s 0s,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.app-login__form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efbd6c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

/* 登入／註冊的「顯示密碼」：靠右的文字鈕，不再是獨立粗框按鈕（點擊區仍 48px） */
.app-login__form .app-auth-password-toggle {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  margin: 0 0 -14px auto;
  padding: 0 2px;
  border: 0;
  color: var(--s-accent);
  letter-spacing: 0.04em;
}

.app-login__form .app-auth-password-toggle:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* 展開的原生選單由系統繪製，深底白字在部分瀏覽器不套用 → option 明確給亮底深字 */
.app-login__form option { color: var(--s-btn-ink); background: var(--s-bg-2); }

/* 註冊頁簡訊驗證列（2026-08-06）：驗證碼輸入＋發送鈕並排 */
.app-otp-row {
  display: flex;
  gap: 10px;
}
.app-otp-row input {
  flex: 1;
  min-width: 0;
}
.app-otp-row .app-btn {
  flex: 0 0 auto;
  width: auto;
  padding-inline: 14px;
  white-space: nowrap;
}

.app-login__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
  color: var(--app-dim);
  font-size: 13px;
}

.app-login__divider::before,
.app-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(var(--a-ink-rgb), 0.1);
}

.app-login .app-btn--ghost {
  text-decoration: none;
}

/*
 * LINE 按鈕（2026-07-30 登入頁；2026-09-29 起含綁定 LINE 的按鈕）。
 * #06c755 是 LINE 官方品牌綠，屬外部品牌規範要求——本專案「不新增色票」原則的唯一例外，
 * 只准用在「用 LINE 登入／綁定 LINE」這類 LINE 按鈕，不得擴散到其他元件。
 * 2026-10-23 依 LINE Login button design guidelines 改版：圖示用官方素材
 * （/img/line-login-icon.png＝官方範本 line_120.png，不可改色或變形），
 * hover／按下以 10%／30% 黑疊在底色上。圖示與文字一起置中、不加分隔線（使用者 2026-10-23 指定，
 * 與官方範本的左側圖示＋直線版型不同；圖示本身仍為官方原檔）。
 * 選擇器要寫 .app-btn.app-btn--line：基本 .app-btn（display:block）定義在本段之後，
 * 單 class 會被蓋掉排版——舊版圖示「跑版」就是這個原因。
 */
.app-btn.app-btn--line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding: 0 20px;
  background: #06c755;
  color: var(--s-btn-ink);
  text-decoration: none;
}

.app-btn.app-btn--line:hover,
.app-btn.app-btn--line:focus-visible {
  box-shadow: inset 0 0 0 100vmax rgba(var(--a-shadow-rgb), calc(0.1 * var(--a-shadow-k)));
}

.app-btn.app-btn--line:active {
  box-shadow: inset 0 0 0 100vmax rgba(var(--a-shadow-rgb), calc(0.3 * var(--a-shadow-k)));
}

.app-btn__line-mark {
  display: block;
  flex: 0 0 auto;
}

.app-btn__line-mark img {
  display: block;
  width: 44px;
  height: 44px;
}

/* 會員中心可操作表單（PM 缺口②） */

.app-form {
  display: block;
  text-align: left;
}

.app-form label {
  display: block;
  font-size: 14px;
  color: var(--s-accent);
}

.app-form input,
.app-form select,
.app-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}

.app-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(var(--a-gold-rgb), calc(0.7 * var(--a-k))) 50%), linear-gradient(135deg, rgba(var(--a-gold-rgb), calc(0.7 * var(--a-k))) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.app-form select option {
  background: var(--s-bg-2);
  color: var(--ivory);
}

.app-form textarea {
  resize: vertical;
  line-height: 1.8;
}

.app-form .app-btn {
  margin-top: 16px;
}

.app-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.app-fieldset {
  margin-top: 18px;
}

.app-fieldset > p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--s-accent);
}

/* 勾選／單選膠囊（大點擊區，適齡設計） */
.app-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-check {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.04);
  color: var(--ivory) !important;
  font-size: 15px !important;
  cursor: pointer;
}

.app-check input {
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--gold);
}

.app-check:has(input:checked) {
  border-color: rgba(var(--a-gold-rgb), calc(0.6 * var(--a-k)));
  background: rgba(var(--a-gold-rgb), calc(0.12 * var(--a-k)));
}

.app-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 112px;
  overflow: hidden;
  pointer-events: none;
}

.app-ribbon span {
  position: absolute;
  top: 26px;
  left: -36px;
  width: 152px;
  transform: rotate(-45deg);
  background: var(--red);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 5px 0;
  box-shadow: 0 4px 12px rgba(var(--a-shadow-rgb), calc(0.5 * var(--a-shadow-k)));
}

.app-card__info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--s-ink-2);
  border-top: 1px solid var(--app-card-line);
}

/* --------------------------------------------------------------------------
   對象詳細頁（§4.2）
   -------------------------------------------------------------------------- */

.app-gallery {
  position: relative;
  border: 1px solid var(--app-card-line);
}

.app-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.app-gallery__track figure {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
}

.app-gallery__track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0) 34%);
  pointer-events: none;
}

.app-gallery .app-card__score,
.app-gallery .app-card__name {
  z-index: 2;
}

.app-album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.app-album__slot {
  position: relative; /* C1：刪除鈕定位 */
  aspect-ratio: 1;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  display: grid;
  place-items: center;
  color: var(--s-muted);
  overflow: hidden;
}

/* C1 相簿真上傳：已上傳格右上角的刪除鈕 */
.app-album__del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--veil), 0.72);
  color: var(--ivory);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.app-album__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-album__slot svg {
  width: 28px;
  height: 28px;
}

.app-btn {
  display: block;
  width: 100%;
  padding: 15px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  border: 0;
  cursor: pointer;
}

.app-btn--primary {
  background: var(--s-btn);
  color: var(--s-btn-ink);
}

.app-btn--primary[disabled] {
  background: rgba(var(--a-ink-rgb), 0.16);
  color: var(--s-muted);
  cursor: default;
}

.app-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.app-btn--ghost {
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--s-ink-2);
  border: 1px solid rgba(var(--a-ink-rgb), 0.1);
  padding: 12px;
  font-size: 15px;
}

.app-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--app-dim);
  font-size: 14px;
  line-height: 1.8;
}

.app-section {
  margin-top: 26px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  padding: 22px 16px;
}

.app-section__title {
  margin: 0 0 18px;
  text-align: center;
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

/* 見面聊的偏好 */

.app-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: center;
}

.app-slot {
  border: 1px solid var(--app-card-line);
  padding: 14px 8px;
}

.app-slot h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ivory);
}

.app-slot p {
  margin: 0;
  font-size: 15px;
  color: var(--app-dim);
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.app-chip {
  padding: 6px 14px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k)));
  color: var(--gold);
  font-size: 14px;
}

/* 卡片上的加分特質小標籤 */
.app-chip--sm {
  padding: 4px 10px;
  font-size: 13px;
}

.app-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 18px;
}

.app-fact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--ivory);
}

.app-fact svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.app-style-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--a-ink-rgb), 0.07);
  font-size: 15px;
  color: var(--app-dim);
}

.app-style-row b {
  color: var(--ivory);
  font-weight: 500;
}

/* 約會風格四項版（時間觀念／儀態氣質／舉止風度／交談氛圍） */
.app-style-row--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  text-align: center;
}

/* 初見約會小建議 */
.app-tips {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border: 1px solid var(--app-card-line);
  background: rgba(var(--a-gold-rgb), calc(0.05 * var(--a-k)));
}

.app-tips__title {
  margin: 0 0 10px;
  text-align: center;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.app-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-tips li {
  font-size: 15px;
  line-height: 2;
  color: var(--s-ink-2);
}

.app-tips li b {
  color: var(--gold);
  font-weight: 600;
}

/* 契合指數 */

.app-compat__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.app-compat__total .app-rating {
  flex: 0 0 auto;
}

.app-compat__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.app-compat__cap {
  font-size: 15px;
  color: var(--app-dim);
}

.app-meter {
  display: grid;
  grid-template-columns: 66px 32px 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 14px;
}

.app-meter__label {
  color: var(--s-ink-2);
}

.app-meter__val {
  color: var(--gold);
  text-align: right;
}

.app-meter__track {
  display: block;
  height: 6px;
  background: rgba(var(--a-ink-rgb), 0.1);
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.22 * var(--a-k)));
}

.app-meter__fill {
  display: block;
  height: 100%;
  background: var(--s-btn);
}

/* 個人摘要 */

.app-table {
  margin: 0;
}

.app-table > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.07);
}

.app-table dt {
  color: var(--s-accent);
  font-size: 15px;
}

.app-table dd {
  margin: 0;
  color: var(--ivory);
  font-size: 16px;
}

.app-wt__title {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--s-accent);
  letter-spacing: 0.16em;
}

.app-wt {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
}

.app-wt__group {
  text-align: center;
  font-size: 13px;
  color: var(--app-dim);
}

.app-wt__boxes {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.app-wt__box {
  min-width: 36px;
  padding: 6px 4px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  font-size: 13px;
  text-align: center;
  color: var(--app-dim);
}

.app-wt__box--on {
  background: rgba(var(--a-gold-rgb), calc(0.22 * var(--a-k)));
  border-color: rgba(var(--a-gold-rgb), calc(0.5 * var(--a-k)));
  color: var(--ivory);
}

/* 關於我 */

.app-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ivory);
}

.app-qa dt {
  margin-top: 18px;
  color: var(--s-accent);
  font-size: 15px;
}

.app-qa dd {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ivory);
}

/* 空狀態（§4.7）：說明＋行動指引 */

.app-empty {
  text-align: center;
  padding: 26px 12px;
  color: var(--app-dim);
  font-size: 15px;
  line-height: 1.9;
}

.app-empty svg {
  width: 34px;
  height: 34px;
  color: var(--s-muted);
  margin-bottom: 8px;
}

/* 詳細頁固定底部動作列（取代 Tab Bar，§4.2） */

.app-actionbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(var(--veil), 0.92);
  border-top: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.app-actionbar .app-btn {
  max-width: calc(var(--app-shell-w) - 32px);
}

.app-actionbar .app-btn--primary {
  text-decoration: none; /* 進入聊天為 <a> */
}

.app-actionbar__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  width: min(calc(var(--app-shell-w) - 32px), 100%);
}

.app-header__title a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   想見（§4.3）— 子頁切換 ＋ 想見卡
   -------------------------------------------------------------------------- */

.app-subtabs {
  display: flex;
  margin: -4px 0 16px;
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.08);
}

.app-subtabs a {
  position: relative;
  flex: 1;
  padding: 13px 0;
  text-align: center;
  font-size: 16px;
  color: var(--app-dim);
  text-decoration: none;
}

.app-subtabs a[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

.app-subtabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 2px;
  background: var(--s-btn);
}

.app-subtabs__badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: var(--a-r);
  background: var(--red);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 2px;
}

.app-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--app-card-line);
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
  color: var(--s-ink-2);
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
}

.app-card__actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  padding: 12px 16px 16px;
}

.app-card--expired {
  filter: grayscale(1);
  opacity: 0.7;
}

.app-card__state {
  padding: 0 16px 14px;
  text-align: center;
  color: var(--app-dim);
  font-size: 14px;
}

.app-card__state--ok {
  color: var(--gold);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   我的朋友（§4.4）
   -------------------------------------------------------------------------- */

.app-friend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.07);
  text-decoration: none;
  color: var(--ivory);
}

.app-friend__avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--app-card-line);
}

.app-friend__main {
  flex: 1;
  min-width: 0;
}

.app-friend__name {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.app-friend__last {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--app-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-friend__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 13px;
  color: var(--app-dim);
}

.app-friend__dot {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--a-r);
  background: var(--red);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.app-friend__lock {
  font-size: 12px;
  color: var(--s-accent);
}

.app-friend__date {
  color: var(--s-accent);
}

/* 約會分頁（我的朋友 › 約會）：彙總面板 */

.app-datehead {
  margin: 20px 2px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--s-accent);
}

.app-datecard {
  margin-bottom: 14px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  padding: 16px;
}

.app-datecard--done {
  opacity: 0.75;
}

.app-datecard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.07);
}

.app-datecard__head strong {
  font-size: 17px;
}

.app-datecard__tag {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--app-card-line);
  font-size: 12px;
  color: var(--app-dim);
  white-space: nowrap;
}

.app-datecard__pair {
  margin: 14px 0 6px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.app-datecard__when {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--ivory);
  line-height: 1.8;
}

.app-datecard__cancel {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--app-dim);
  text-decoration: underline;
  cursor: pointer;
}

.app-datecard__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.app-datecard__actions .app-btn {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  text-decoration: none;
}

.app-datecard__status {
  margin: 14px -16px -16px;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--app-dim);
  border-top: 1px solid rgba(var(--a-ink-rgb), 0.06);
}

.app-datecard__status--ok {
  background: rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k)));
  color: var(--s-accent);
}

.app-datecard__status--cancelled {
  background: rgba(139, 30, 36, 0.16);
  color: var(--a-danger);
}

/* 原因選單 Bottom Sheet（取消約會／檢舉會員共用，沿用 .app-sheet 骨架）
   ——不掛 class 的裸 button 會吃到瀏覽器預設白底，看起來像破版 */

.app-sheet__panel button[data-cancel-reason],
.app-sheet__panel button[data-report-reason] {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.06);
  background: none;
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.app-sheet__panel button[data-cancel-reason]:active,
.app-sheet__panel button[data-report-reason]:active {
  background: rgba(139, 30, 36, 0.18);
}

/* 檢舉最後一項不留懸空分隔線（下方緊接說明文字，非另一個可點項目）；
   取消 sheet 不套用——它最後一項下面還接「其他原因」輸入框，線要留著分段 */
.app-sheet__panel button[data-report-reason]:last-of-type {
  border-bottom: 0;
}

.app-sheet__form {
  display: flex;
  gap: 10px;
  padding: 14px 18px 6px;
}

.app-sheet__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}

.app-sheet__form .app-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 12px 16px;
  font-size: 15px;
}

.app-sheet__note {
  margin: 0;
  padding: 10px 18px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--app-dim);
}

/* 發起約會 sheet（C3）：直向堆疊表單 */
.app-sheet__stack {
  display: grid;
  gap: 12px;
  padding: 14px 18px 8px;
  text-align: left;
}

.app-sheet__stack label {
  font-size: 14px;
  color: var(--s-accent);
}

.app-sheet__stack input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  color-scheme: dark; /* 原生日期/時間選擇器用深色 */
}

/* 聊天室頂條的「發起約會」為正向動作 → 金色（蓋過預設暗紅） */
.app-chat__notice button[data-date-open] {
  background: var(--s-btn);
  border-color: var(--gold);
  color: var(--s-btn-ink);
  font-weight: 600;
}

/* 對方邀約待確認：同意（金）＋婉拒（灰）並排 */
.app-chat__notice--propose { flex-wrap: wrap; }
.app-chat__notice-actions { display: flex; gap: 8px; }
.app-chat__notice button[data-date-accept] {
  background: var(--s-btn); border-color: var(--gold); color: var(--s-btn-ink); font-weight: 600;
}
.app-chat__notice button[data-date-decline],
.app-chat__notice button[data-date-withdraw] {
  background: rgba(var(--a-ink-rgb), .06); border-color: rgba(var(--a-ink-rgb), .14); color: var(--app-dim);
}

.app-datecard.app-chat__notice--cancelled {
  text-align: center;
  color: var(--s-muted);
  border-color: rgba(139, 30, 36, 0.6);
  background: rgba(139, 30, 36, 0.12);
}

/* --------------------------------------------------------------------------
   聊天室（§4.5）
   -------------------------------------------------------------------------- */

.app-chat__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--app-card-line);
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
  color: var(--s-ink-2);
  font-size: 14px;
  text-align: left;
  line-height: 1.6;
}

.app-chat__notice button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid rgba(139, 30, 36, 0.85);
  background: rgba(139, 30, 36, 0.18);
  color: var(--s-ink-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.app-chat__notice button[data-confirming] {
  background: var(--red);
  font-weight: 600;
}

.app-chat__notice--cancelled {
  justify-content: center;
  border-color: rgba(139, 30, 36, 0.6);
  background: rgba(139, 30, 36, 0.12);
  color: var(--s-muted);
}

.app-chat__unlock {
  margin: 0 0 14px;
  text-align: center;
  color: var(--s-accent);
  font-size: 14px;
}

.app-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 0;
}

.app-msg--me {
  justify-content: flex-end;
}

.app-msg__bubble {
  max-width: 76%;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.app-msg--them .app-msg__bubble {
  background: rgba(var(--a-ink-rgb), 0.07);
  color: var(--ivory);
}

.app-msg--me .app-msg__bubble {
  background: var(--s-btn);
  color: var(--s-btn-ink);
}

.app-msg__meta {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.5;
  color: var(--app-dim);
  text-align: right;
}

/* 未送出的訊息（QA-20261019-10）：保留原文、虛線框標示，下方附重新傳送 */
.app-msg--failed .app-msg__bubble {
  opacity: 0.75;
  outline: 2px dashed var(--a-danger);
  outline-offset: 2px;
}

.app-msg--failed .app-msg__meta {
  color: var(--a-danger);
}

.app-msg__failed {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.app-msg__retry {
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
}

/* 底部輸入列（聊天室取代 Tab Bar） */

.app-chatbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(var(--veil), 0.92);
  border-top: 1px solid var(--app-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}

.app-chatbar form,
.app-chatbar__inner {
  display: flex;
  gap: 10px;
  width: min(calc(var(--app-shell-w) - 32px), 100%);
}

.app-chatbar input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  border-radius: var(--a-r);
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}

.app-chatbar input::placeholder {
  color: var(--app-dim);
}

.app-chatbar input[readonly] {
  cursor: pointer;
}

.app-chatbar__send {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--s-btn);
  color: var(--s-btn-ink);
  cursor: pointer;
}

.app-chatbar__send svg {
  width: 22px;
  height: 22px;
}

/* 罐頭訊息 Bottom Sheet */

.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.app-sheet--open {
  display: block;
}

.app-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.app-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--app-shell-w);
  margin-inline: auto;
  max-height: 62dvh;
  overflow-y: auto;
  background: var(--s-bg-2);
  border: 1px solid var(--app-line);
  border-bottom: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}

.app-sheet__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--s-bg-2);
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.08);
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.app-sheet__close {
  border: 0;
  background: none;
  color: var(--app-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

/* 罐頭訊息選單：分類標題＋自動換行標籤（短句一排多顆、長句佔整行，減少下滑） */
.app-sheet__group {
  margin: 0;
  padding: 14px 16px 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--s-accent);
  border-top: 1px solid rgba(var(--a-ink-rgb), 0.06);
}

.app-sheet__group:first-child {
  border-top: 0;
}

.app-sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 8px;
}

.app-sheet__chips button[data-canned] {
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.05);
  color: var(--ivory);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
}

.app-sheet__chips button[data-canned]:active {
  background: rgba(var(--a-gold-rgb), calc(0.14 * var(--a-k)));
  border-color: rgba(var(--a-gold-rgb), calc(0.5 * var(--a-k)));
}

/* --------------------------------------------------------------------------
   「我的」選單（§4.6）
   -------------------------------------------------------------------------- */

.app-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.app-menu a {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px 8px;
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  color: var(--ivory);
  font-size: 15px;
  text-decoration: none;
}

.app-menu a svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

/* ── C7 通知鈴鐺（header；PM 表五：通知不佔 Tab）──────────── */
.app-bell {
  position: relative;
  flex: 0 0 auto;
}

.app-bell__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: var(--s-accent);
  cursor: pointer;
}

.app-bell__btn svg {
  width: 24px;
  height: 24px;
}

.app-bell__badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--a-r);
  background: var(--red);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.app-bell__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  width: min(300px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--app-line);
  border-radius: var(--a-r);
  background: rgba(14, 12, 11, 0.98);
  box-shadow: 0 18px 40px rgba(var(--a-shadow-rgb), calc(0.6 * var(--a-shadow-k)));
  z-index: 40;
}

.app-bell__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--a-r);
  color: var(--ivory);
  font-size: 16px;
  text-decoration: none;
}

.app-bell__item:hover {
  background: rgba(var(--a-gold-rgb), calc(0.08 * var(--a-k)));
}

.app-bell__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--a-r);
  background: var(--red);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.app-bell__empty {
  margin: 0;
  padding: 16px 14px;
  color: var(--s-muted);
  font-size: 15px;
}

/* ==========================================================================
   動效系統（v0.25, 2026-07-30）— 入場動畫 ＋ 觸控回饋
   --------------------------------------------------------------------------
   目的：介面「按下去沒感覺」→ 補上克制、有質感的回饋。設計約束：
     · 只用 opacity / transform（合成層屬性），不動 layout，手機不掉幀
     · 慢起快收的緩出曲線，位移幅度小（≤18px）、縮放幅度小（≥0.975）
     · 不新增色票：光暈一律用既有 --gold / 黑，靠透明度做層次
     · 全站啟用：head.php 預設輸出 <body class="app-body app-motion">；
       個別頁要關掉就在 require head 之前設 $appMotion = false
     · 無障礙：prefers-reduced-motion: reduce 一律關閉（見本區塊末）
   JS 增強（app.js「動效」段）為選配：沒有 JS 也會走 CSS-only stagger 進場，
   內容絕不會因為腳本沒載入而卡在透明狀態。
   ========================================================================== */

.app-motion {
  /* 緩出曲線：慢起快收，收尾長 —— 高單價品牌慣用的「穩重」感 */
  --app-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --app-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --app-t-press: 130ms; /* 觸壓：要跟得上手指 */
  --app-t-state: 260ms; /* 狀態轉換 */
  --app-t-enter: 620ms; /* 入場 */
}

@keyframes app-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes app-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes app-fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes app-bar-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 目前頁底線由中央展開，取代「唰」地出現 */
@keyframes app-underline {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes app-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   入場：固定框架（header / tabbar）→ 資訊列 → 內容，依序浮現
   -------------------------------------------------------------------------- */

.app-motion .app-header {
  animation: app-fade-down 420ms var(--app-ease) both;
}

.app-motion .app-tabbar {
  animation: app-bar-in 420ms var(--app-ease) both;
  animation-delay: 60ms;
}

.app-motion .app-lead {
  animation: app-fade-up 520ms var(--app-ease) both;
  animation-delay: 90ms;
}

/* 各頁的「內容主體」— 一律依序浮現。清單刻意逐項列出而非通配，
   聊天泡泡（.app-msg）等會被 JS 動態重繪的元素不列入，免得每次輪詢都閃。 */
.app-motion .app-card,
.app-motion .app-friend,
.app-motion .app-datecard,
.app-motion .app-datehead,
.app-motion .app-bigmenu a,
.app-motion .app-section,
.app-motion .app-fieldset,
.app-motion .app-album,
.app-motion .app-gallery,
.app-motion .app-empty,
.app-motion .app-placeholder,
.app-motion .app-login {
  animation: app-enter var(--app-t-enter) var(--app-ease) both;
  animation-delay: 140ms;
}

/* 保底（無 JS）：同型元素依序疊延遲，最多到第 5 個，之後不再累加 */
.app-motion .app-card:nth-of-type(2),
.app-motion .app-friend:nth-of-type(2),
.app-motion .app-datecard:nth-of-type(2),
.app-motion .app-bigmenu a:nth-of-type(2),
.app-motion .app-section:nth-of-type(2),
.app-motion .app-fieldset:nth-of-type(2) { animation-delay: 200ms; }

.app-motion .app-card:nth-of-type(3),
.app-motion .app-friend:nth-of-type(3),
.app-motion .app-datecard:nth-of-type(3),
.app-motion .app-bigmenu a:nth-of-type(3),
.app-motion .app-section:nth-of-type(3),
.app-motion .app-fieldset:nth-of-type(3) { animation-delay: 260ms; }

.app-motion .app-card:nth-of-type(4),
.app-motion .app-friend:nth-of-type(4),
.app-motion .app-datecard:nth-of-type(4),
.app-motion .app-bigmenu a:nth-of-type(4),
.app-motion .app-section:nth-of-type(4),
.app-motion .app-fieldset:nth-of-type(4) { animation-delay: 320ms; }

.app-motion .app-card:nth-of-type(n + 5),
.app-motion .app-friend:nth-of-type(n + 5),
.app-motion .app-datecard:nth-of-type(n + 5),
.app-motion .app-bigmenu a:nth-of-type(n + 5),
.app-motion .app-section:nth-of-type(n + 5),
.app-motion .app-fieldset:nth-of-type(n + 5) { animation-delay: 380ms; }

/* 頁內小構件：子分頁列、提示句，跟著資訊列一起淡上來。
   聊天室只讓頂部通知條／解鎖提示淡入，訊息泡泡（.app-msg）一律不動——
   輪詢每 5 秒可能重繪，會讓對話整片閃。 */
.app-motion .app-subtabs,
.app-motion .app-hint,
.app-motion .app-intro,
.app-motion .app-chat__notice,
.app-motion .app-chat__unlock {
  animation: app-fade-up 520ms var(--app-ease) both;
  animation-delay: 90ms;
}

/* 固定底部的操作列（詳情頁 CTA、聊天輸入列）：與 Tab Bar 同步淡入 */
.app-motion .app-actionbar,
.app-motion .app-chatbar {
  animation: app-bar-in 420ms var(--app-ease) both;
  animation-delay: 60ms;
}

/* JS 增強：首屏以外的內容先掛 .is-pending 壓住（使用者還看不到，不會察覺），
   捲到時才加 .is-in 播放 —— 下方內容不再「在看不見的地方播完」。
   只標記視窗外的元素，首屏維持上面的 CSS stagger，因此不會有隱藏閃爍。 */
.app-motion .is-pending {
  animation: none;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
}

.app-motion .is-pending.is-in {
  animation: app-enter var(--app-t-enter) var(--app-ease) both;
  animation-delay: 0ms;
}

/* 巢狀時只讓外層播（例：編輯表單 form.app-section 內的 .app-fieldset），
   免得父子位移疊加。這裡一併寫死 opacity/transform —— 內層即使被誤標
   .is-pending 也保證看得見，動畫可以不播，內容不能不見。 */
.app-motion .app-section .app-fieldset,
.app-motion .app-section .app-album,
.app-motion .app-section .app-gallery,
.app-motion .app-section .app-card,
.app-motion .app-section .app-friend,
.app-motion .app-section .app-empty {
  animation: none;
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   觸控回饋：按下＝縮一點點 ＋ 金色微光；放開自然彈回
   -------------------------------------------------------------------------- */

/* 按壓態一律「:active ＋ .is-pressed」雙寫：
   iOS Safari 的 :active 只有在元素/祖先綁了 touch 監聽時才會觸發，加上這裡把
   -webkit-tap-highlight 關掉（免得跳出系統灰框），手機上光靠 :active 會完全沒反應。
   .is-pressed 由 app.js 於 pointerdown 掛上、放開即移除 —— 手機與桌機表現一致。 */

.app-motion .app-card {
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    border-color var(--app-t-state) var(--app-ease-soft),
    box-shadow var(--app-t-state) var(--app-ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.app-motion .app-card:active,
.app-motion .app-card.is-pressed {
  transform: scale(0.985);
  border-color: rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k)));
  box-shadow: 0 12px 34px -14px rgba(var(--a-gold-rgb), calc(0.34 * var(--a-k)));
}

/* 卡片按下時照片極輕微推近，帶出「往裡走一層」的層次 */
.app-motion .app-card__media img {
  transition: transform 420ms var(--app-ease);
}

.app-motion .app-card:active .app-card__media img,
.app-motion .app-card.is-pressed .app-card__media img {
  transform: scale(1.018);
}

.app-motion .app-btn {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    filter var(--app-t-press) var(--app-ease-soft),
    box-shadow var(--app-t-state) var(--app-ease-soft);
}

.app-motion .app-btn:active,
.app-motion .app-btn.is-pressed {
  transform: scale(0.975);
}

.app-motion .app-btn--primary:active,
.app-motion .app-btn--primary.is-pressed {
  filter: brightness(0.94);
  box-shadow: 0 8px 26px -10px rgba(var(--a-gold-rgb), calc(0.6 * var(--a-k)));
}

.app-motion .app-btn--ghost:active,
.app-motion .app-btn--ghost.is-pressed {
  background: rgba(var(--a-ink-rgb), 0.1);
  border-color: rgba(var(--a-gold-rgb), calc(0.32 * var(--a-k)));
}

/* 停用中的按鈕不給任何回饋（回饋＝「有反應」的承諾） */
.app-motion .app-btn[disabled] {
  transform: none;
  filter: none;
  box-shadow: none;
}

/* 圖示鍵（返回、鈴鐺）：縮＋淡＋一圈淡金底，48px 點擊區內看得出被按到 */
.app-motion .app-header__back,
.app-motion .app-bell__btn {
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft),
    opacity var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-header__back:active,
.app-motion .app-header__back.is-pressed,
.app-motion .app-bell__btn:active,
.app-motion .app-bell__btn.is-pressed {
  transform: scale(0.88);
  background: rgba(var(--a-gold-rgb), calc(0.14 * var(--a-k)));
  opacity: 0.86;
}

.app-motion .app-bell__panel:not([hidden]) {
  transform-origin: top right;
  animation: app-pop 220ms var(--app-ease) both;
}

.app-motion .app-bell__item {
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-bell__item:active,
.app-motion .app-bell__item.is-pressed {
  background: rgba(var(--a-gold-rgb), calc(0.12 * var(--a-k)));
}

/* Tab Bar：整格亮起（底部一層淡金光暈）＋ icon 縮 ＋ 文字轉金。
   只縮 icon 在手機上幾乎看不出來，故連整格底色一起給。 */
.app-motion .app-tabbar__link {
  transition:
    color var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-tabbar__link svg {
  transition: transform var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-tabbar__link:active,
.app-motion .app-tabbar__link.is-pressed {
  color: var(--gold);
  background: radial-gradient(120% 90% at 50% 100%, rgba(var(--a-gold-rgb), calc(0.16 * var(--a-k))), rgba(var(--a-gold-rgb), calc(0 * var(--a-k))) 70%);
}

.app-motion .app-tabbar__link:active svg,
.app-motion .app-tabbar__link.is-pressed svg {
  transform: scale(0.86);
}

.app-motion .app-tabbar__link[aria-current="page"]::before {
  transform-origin: center;
  animation: app-underline 460ms var(--app-ease) both;
  animation-delay: 220ms;
}

/* 列表列（訊息／朋友）與會員中心大選單：整列亮起 ＋ 微縮，跟名單卡同一套語彙 */
.app-motion .app-friend,
.app-motion .app-bigmenu a {
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    border-color var(--app-t-state) var(--app-ease-soft),
    background-color var(--app-t-state) var(--app-ease-soft);
}

.app-motion .app-friend:active,
.app-motion .app-friend.is-pressed,
.app-motion .app-bigmenu a:active,
.app-motion .app-bigmenu a.is-pressed {
  transform: scale(0.985);
  border-color: rgba(var(--a-gold-rgb), calc(0.36 * var(--a-k)));
  background: rgba(var(--a-gold-rgb), calc(0.07 * var(--a-k)));
}

/* 大選單右側箭頭：按下時往前推一點，暗示「要前往」 */
.app-motion .app-bigmenu__arrow {
  transition: transform var(--app-t-state) var(--app-ease);
}

.app-motion .app-bigmenu a:active .app-bigmenu__arrow,
.app-motion .app-bigmenu a.is-pressed .app-bigmenu__arrow,
.app-motion .app-bigmenu a.is-navigating .app-bigmenu__arrow {
  transform: translateX(3px);
}

/* 子分頁（心動／我的朋友上方的切換） */
.app-motion .app-subtabs a {
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-subtabs a:active,
.app-motion .app-subtabs a.is-pressed {
  color: var(--gold);
  background: rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k)));
}

/* 可點的小元件（罐頭訊息、取消原因、檢舉原因、chip、相簿、送出鍵、關閉鍵） */
.app-motion a.app-chip,
.app-motion button.app-chip,
.app-motion .app-datecard__cancel,
.app-motion .app-chatbar__send,
.app-motion .app-sheet__close,
.app-motion .app-album__slot,
.app-motion .app-album__del,
.app-motion .app-sheet__chips button[data-canned],
.app-motion .app-sheet__panel button[data-cancel-reason],
.app-motion .app-sheet__panel button[data-report-reason] {
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-press) var(--app-ease-soft);
}

.app-motion a.app-chip:active,
.app-motion a.app-chip.is-pressed,
.app-motion button.app-chip:active,
.app-motion button.app-chip.is-pressed,
.app-motion .app-datecard__cancel:active,
.app-motion .app-datecard__cancel.is-pressed,
.app-motion .app-chatbar__send:active,
.app-motion .app-chatbar__send.is-pressed,
.app-motion .app-sheet__close:active,
.app-motion .app-sheet__close.is-pressed,
.app-motion .app-album__slot:active,
.app-motion .app-album__slot.is-pressed,
.app-motion .app-album__del:active,
.app-motion .app-album__del.is-pressed,
.app-motion .app-sheet__chips button[data-canned]:active,
.app-motion .app-sheet__chips button[data-canned].is-pressed,
.app-motion .app-sheet__panel button[data-cancel-reason]:active,
.app-motion .app-sheet__panel button[data-cancel-reason].is-pressed,
.app-motion .app-sheet__panel button[data-report-reason]:active,
.app-motion .app-sheet__panel button[data-report-reason].is-pressed {
  transform: scale(0.96);
}

/* 罐頭訊息／原因清單是長條列，光靠縮放看不出來 → 按下時整條底色轉金 */
.app-motion .app-sheet__chips button[data-canned].is-pressed,
.app-motion .app-sheet__panel button[data-cancel-reason].is-pressed,
.app-motion .app-sheet__panel button[data-report-reason].is-pressed {
  background: rgba(var(--a-gold-rgb), calc(0.14 * var(--a-k)));
}

/* 底部彈出面板（罐頭訊息、取消原因、檢舉原因）：從下方滑上來，不是瞬間出現 */
.app-motion .app-sheet--open .app-sheet__panel {
  animation: app-sheet-up 320ms var(--app-ease) both;
}

.app-motion .app-sheet--open .app-sheet__backdrop {
  animation: app-fade 220ms var(--app-ease-soft) both;
}

@keyframes app-sheet-up {
  from {
    transform: translateY(14%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes app-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   導航中回饋：點下到新頁畫出來之間有數百毫秒空窗（PHP 頁還要 loopback 打 API），
   這段若毫無交代，使用者會覺得「按了沒反應」而重複點。
   → 被點的目標保持高亮，另在 header 下緣跑一條極細金線交代「正在前往」。
   -------------------------------------------------------------------------- */

.app-motion .app-tabbar__link.is-navigating {
  color: var(--gold);
  background: radial-gradient(120% 90% at 50% 100%, rgba(var(--a-gold-rgb), calc(0.14 * var(--a-k))), rgba(var(--a-gold-rgb), calc(0 * var(--a-k))) 70%);
}

.app-motion .app-tabbar__link.is-navigating svg {
  transform: translateY(-1px);
}

/* 維持一點壓下感，避免放開瞬間彈回、下一刻又整頁換掉的跳動 */
.app-motion .app-card.is-navigating {
  transform: scale(0.994);
  border-color: rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k)));
  box-shadow: 0 12px 34px -14px rgba(var(--a-gold-rgb), calc(0.34 * var(--a-k)));
  opacity: 0.88;
}

.app-motion .app-bell__item.is-navigating {
  background: rgba(var(--a-gold-rgb), calc(0.12 * var(--a-k)));
}

.app-motion .app-friend.is-navigating,
.app-motion .app-bigmenu a.is-navigating {
  border-color: rgba(var(--a-gold-rgb), calc(0.36 * var(--a-k)));
  background: rgba(var(--a-gold-rgb), calc(0.07 * var(--a-k)));
}

.app-motion .app-subtabs a.is-navigating {
  color: var(--gold);
}

.app-progress {
  position: fixed;
  top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  height: 2px;
  z-index: 45;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(var(--a-gold-rgb), calc(0.35 * var(--a-k))), var(--gold));
  animation: app-progress 8s cubic-bezier(0.12, 0.72, 0.2, 1) forwards;
  pointer-events: none;
}

/* 前段跑得快、後段趨緩且永遠不到底 —— 沒有假裝「快好了」的進度條 */
@keyframes app-progress {
  from {
    transform: scaleX(0);
    opacity: 1;
  }
  35% {
    transform: scaleX(0.55);
  }
  to {
    transform: scaleX(0.94);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   漣漪：按鈕觸點擴散一圈微光（由 app.js 插入 .app-ripple）
   金底鍵用暗色、深底鍵用金色 —— 都壓在極低透明度，只留「觸到了」的餘韻
   -------------------------------------------------------------------------- */

.app-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k))), rgba(var(--a-gold-rgb), calc(0 * var(--a-k))) 68%);
  animation: app-ripple 620ms var(--app-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}

.app-btn--primary .app-ripple {
  background: radial-gradient(circle, rgba(var(--veil), 0.26), rgba(var(--veil), 0) 68%);
}

@keyframes app-ripple {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(34);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   無障礙：使用者在系統關掉動態效果時，一律不動
   （回饋改用不位移的色彩變化保留，仍看得出「按到了」）
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .app-motion *,
  .app-motion *::before,
  .app-motion *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }

  .app-motion .app-card.is-pending {
    opacity: 1;
    transform: none;
  }

  .app-motion .app-card:active,
  .app-motion .app-card.is-pressed,
  .app-motion .app-btn:active,
  .app-motion .app-btn.is-pressed,
  .app-motion .app-header__back:active,
  .app-motion .app-header__back.is-pressed,
  .app-motion .app-bell__btn:active,
  .app-motion .app-bell__btn.is-pressed,
  .app-motion .app-tabbar__link:active svg,
  .app-motion .app-tabbar__link.is-pressed svg,
  .app-motion .app-card:active .app-card__media img,
  .app-motion .app-card.is-pressed .app-card__media img {
    transform: none;
  }

  /* 按壓的顏色變化保留（仍看得出按到了），只是不位移 */

  .app-ripple {
    display: none;
  }
}

/* ── 金流頁（方案與付款，2026-08-03）：價格表卡片／付款方式／付款紀錄 ── */

.app-banner {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  border-radius: var(--a-r);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ivory);
  margin-bottom: 14px;
}

.app-banner--ok {
  border-color: rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k)));
}

.app-banner--warn {
  border-color: rgba(var(--a-danger-rgb), 0.5);
  color: var(--a-danger);
}

.app-plan {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  border-radius: var(--a-r);
  padding: 20px;
  margin-top: 14px;
}

.app-plan--picked {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

.app-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.app-plan__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.app-plan__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
  white-space: nowrap;
}

/* 高端系列說明（2026-08-06）：年薪門檻、區塊小標、A/B/C 方案標籤 */
.app-plan__threshold {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gold);
}
.app-plan__blocktitle {
  margin: 16px 0 0;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--ivory);
  opacity: .85;
}
/* A/B/C 方案標籤行：不吃清單的 ✦ 前綴（2026-08-06 使用者回饋「每行都有亮點很怪」），
   改為金色小標，與其下條件行做出層級 */
.app-plan__features li.app-plan__sublabel {
  padding-left: 0;
  margin-top: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}
.app-plan__features li.app-plan__sublabel::before {
  content: none;
}

.app-plan__summary {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--app-dim);
}

.app-plan__features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.app-plan__features li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory);
}

.app-plan__features li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  top: 2px;
  font-size: 12px;
  color: var(--gold);
}

.app-plan .app-btn {
  margin-top: 16px;
}

/* 轉帳帳戶資訊框（後台系統設定原文顯示） */
.app-paybox {
  border: 1px dashed rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k)));
  border-radius: var(--a-r);
  padding: 14px 16px;
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ivory);
}

.app-order {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
  border-radius: var(--a-r);
  padding: 14px 16px;
  margin-top: 10px;
}

.app-order__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
}

.app-order__meta {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--app-dim);
}

.app-order__status {
  color: var(--a-danger);
  font-weight: 600;
  white-space: nowrap;
}

.app-order__status.is-paid {
  color: var(--gold);
}

.app-order__status.is-reported {
  color: var(--ivory);
}

.app-order__no {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--app-dim);
}

/* 轉帳後五碼回報（輸入＋按鈕一列） */
.app-last5 {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.app-last5 input {
  flex: 1;
  min-width: 0;
  background: rgba(var(--a-ink-rgb), 0.06);
  border: 1px solid var(--app-line);
  border-radius: var(--a-r);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ivory);
}

.app-last5 .app-btn {
  width: auto;
  margin: 0;
  padding: 12px 20px;
}

/* --------------------------------------------------------------------------
   推薦對象（talent）的狀態摘要 — 心動頁與會員中心頁首
   她開 App 的頻率遠低於付費會員，主畫面要先答「現在有什麼事等我」，
   而不是給一個可以逛的清單。色票沿用官網 tokens，未新增。
   -------------------------------------------------------------------------- */

.app-status {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-card-bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-status__head {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  color: var(--ivory);
}

.app-status__badge {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gold);
}

.app-status__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
}

.app-status__grid li {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--app-card-line);
  border-radius: 4px;
  text-align: center;
}

.app-status__grid strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.app-status__grid span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--app-dim);
}

.app-status__date {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--app-card-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
}

.app-status__date > span {
  font-size: 13px;
  color: var(--app-dim);
}

.app-status__date strong {
  color: var(--ivory);
  font-weight: 500;
}

.app-status__date a {
  align-self: flex-start;
  margin-top: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  text-decoration: none;
}

.app-status__date a:hover,
.app-status__date a:focus-visible {
  text-decoration: underline;
}

.app-status__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--app-dim);
}

.app-status--slim {
  gap: 10px;
}

/* ── 入會資料與驗證文件（報價 5，2026-09-03）─────────────────
   只用既有 tokens（--gold／--app-dim／--red 的既有 rgba 寫法），不新增色票。 */
.app-verify__status {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.22 * var(--a-k)));
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
}

.app-verify__status--returned {
  border-color: rgba(139, 30, 36, 0.45);
  background: rgba(139, 30, 36, 0.12);
}

.app-verify__stage {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
}

.app-verify__status--returned .app-verify__stage {
  color: var(--a-danger);
}

.app-verify__msg {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--s-ink-2);
}

.app-verify__bar {
  margin-top: 14px;
  height: 8px;
  background: rgba(var(--a-ink-rgb), 0.08);
  overflow: hidden;
}

.app-verify__bar span {
  display: block;
  height: 100%;
  background: var(--s-btn);
  transition: width 0.3s;
}

.app-verify__pct {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--app-dim);
}

.app-verify__doc {
  padding: 14px 0;
  border-top: 1px solid rgba(var(--a-ink-rgb), 0.07);
}

.app-verify__doclabel {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.app-verify__files {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.app-verify__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(var(--a-ink-rgb), 0.05);
}

.app-verify__file--rejected {
  background: rgba(139, 30, 36, 0.14);
}

.app-verify__file--approved {
  background: rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k)));
}

.app-verify__filename {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

.app-verify__filename small {
  color: var(--app-dim);
  font-size: 13px;
}

/* 點擊區 ≥48px（適齡設計：客群偏長，小按鈕按不到） */
.app-verify__del {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--app-dim);
  text-decoration: underline;
  cursor: pointer;
}

.app-verify__upload {
  display: block;
  cursor: pointer;
}

.app-verify__progress {
  margin: 10px 0 0;
  height: 6px;
  background: rgba(var(--a-ink-rgb), 0.08);
}

.app-verify__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--s-btn);
  transition: width 0.2s;
}

.app-verify__lacks {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.app-verify__err {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--a-danger);
}

/* v0.57: readable verification instructions and 48px touch controls. */
[data-verification-form] [data-verification-note],
[data-verification-form] [data-verification-hint] { font-size:16px; line-height:1.6; }
[data-verification-send] { min-height:48px; }

/* 約會本名僅由已授權 API 提供，hidden 不得被版型覆蓋。 */
.app-chat__identity { margin: 16px 0; padding: 16px; border: 1px solid var(--gold); border-radius: var(--a-r); font-size: 16px; overflow-wrap: anywhere; }
.app-chat__identity[hidden] { display: none; }
.app-chat__identity p { margin: 0 0 8px; }
.app-chat__identity-warn { color: var(--ivory); opacity: .85; font-size: 15px; line-height: 1.6; }
.app-chat__identity-list { list-style: none; margin: 8px 0 0; padding: 0; }
.app-chat__identity-list li { margin: 0 0 6px; padding-left: 1em; }
.app-chat__identity-list li::before { content: '•'; display: inline-block; width: 1em; margin-left: -1em; color: var(--gold); }
.app-chat__identity-list li[hidden] { display: none; }

/* 精選預覽：保留名單，將進一步認識交由顧問聯繫。 */
.app-preview-notice { margin-top: 0; font-size: 16px; line-height: 1.7; }
.app-preview-notice h2 { font-size: 20px; }
.app-preview-notice a { display: inline-flex; align-items: center; min-height: 48px; color: var(--gold); }
.app-preview-card { margin-bottom: 24px; }
.app-preview-card .app-card { margin-bottom: 0; }
.app-preview-card__actions { padding: 16px; }
.app-preview-card__actions p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
.app-preview-card__actions button { min-height: 48px; width: 100%; }
.app-preview-card__actions button:disabled { opacity: .65; }

/* Member login and registration recovery controls. */
.app-auth-help { margin: 16px 0; text-align: left; font-size: 16px; }
.app-auth-help summary { min-height: 48px; display: list-item; padding: 12px 0; cursor: pointer; color: var(--gold); }
.app-auth-help p { line-height: 1.8; }
.app-auth-help a, [data-register-recovery] a { color: var(--gold); text-decoration: underline; }
.app-auth-help label { display: block; margin: 16px 0; }
.app-auth-password-toggle { min-height: 48px; padding: 8px 12px; margin-top: 4px; color: var(--gold); border: 1px solid currentColor; background: transparent; cursor: pointer; font: inherit; font-size: 16px; }
.app-auth-error { display: block; color: var(--gold); font-size: 16px; line-height: 1.6; margin-top: 6px; }
/* 註冊／LINE 首次登入的驗證（2026-10-02；勿用 .app-verify，那是入會驗證頁的區塊）：欄位下方一列「狀態＋驗證按鈕」，按了才開驗證視窗 */
.app-idcheck { display: flex; align-items: center; gap: 12px; margin-top: -4px; }
.app-idcheck__status { flex: 1; margin: 0; font-size: 16px; line-height: 1.5; color: var(--app-dim); }
.app-idcheck__status--ok { color: var(--gold); font-weight: 600; }
.app-idcheck__status--alert { color: var(--gold); }
.app-idcheck .app-btn { width: auto; flex: 0 0 auto; min-height: 48px; padding: 10px 18px; font-size: 16px; }
.app-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px 20px 20px;
  border: 1px solid var(--app-line);
  background: var(--s-bg-2);
  color: var(--ivory);
  text-align: left;
}
.app-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.app-dialog[open] { display: grid; gap: 12px; }
.app-dialog__title { margin: 0; font-size: 20px; color: var(--gold); letter-spacing: 0.04em; }
.app-dialog__to { margin: 0; font-size: 16px; line-height: 1.6; word-break: break-all; }
.app-dialog__to strong { color: var(--ivory); }
.app-dialog label { font-size: 15px; color: var(--s-accent); }
.app-dialog input {
  display: block; width: 100%; padding: 13px 14px; font-family: inherit; font-size: 20px; letter-spacing: 0.2em;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14); background: rgba(var(--a-ink-rgb), 0.06); color: var(--ivory);
}
.app-dialog input::placeholder { font-size: 16px; letter-spacing: normal; }
.app-dialog input[readonly] { border-color: rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k))); }
.app-dialog .app-btn { min-height: 48px; }
.app-dialog .app-note { margin: 0; text-align: left; font-size: 15px; }
.app-dialog .app-note--ok { color: var(--gold); font-size: 16px; }
.app-dialog :focus-visible, .app-idcheck .app-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[data-register-error], [data-login-error] { scroll-margin-top: 90px; }
[data-reg][aria-invalid=true], [data-login-form] [aria-invalid=true] { border-color: var(--gold); }
.app-auth-help :focus-visible, .app-auth-password-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── 綁定 LINE 提醒（2026-09-29，_partials/line-bind-prompt.php）：會員中心與首頁；按鈕是上方的 LINE 品牌綠 ── */
.app-line-prompt { margin: 0 0 18px; font-size: 16px; line-height: 1.7; }
.app-line-prompt p { margin: 0 0 12px; color: var(--ivory); }
.app-line-prompt .app-btn { min-height: 48px; margin-top: 4px; }
.app-line-prompt .app-btn--ghost { margin-top: 10px; font-size: 16px; }
.app-line-prompt .app-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 2026-10-19 QA-01／04：會員中心儲存與心動動作的行內錯誤（role=alert），密碼欄顯示切換。
   色值沿用本檔既有錯誤色 #dd8b8b，未新增色票 */
.app-inline-error {
  margin: 10px 0 0;
  text-align: left;
  color: var(--a-danger);
  font-size: 16px;
  line-height: 1.6;
}
.app-pw-field { grid-column: 1 / -1; min-width: 0; } /* 密碼欄獨佔一列：長標籤不擠成兩行、輸入框夠寬 */
.app-pw-field .app-auth-password-toggle { width: 100%; }

/* ===== 2026-10-23 UX 改版：共用工具與我的檔案頭像佔位 ===== */
/* 視覺隱藏、螢幕閱讀器可讀 */
.app-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 沒照片時的頭像：佔位圖＋金色相機徽章，點了直接開選圖 */
.app-avatar-add {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  cursor: pointer;
}
.app-avatar-add__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--s-btn);
  color: var(--s-btn-ink);
  box-shadow: 0 0 0 3px var(--s-bg);
}
.app-avatar-add__badge svg {
  width: 15px;
  height: 15px;
}

/* 送出結果提示（app.js appToast）：頁首下方滑出 */
.app-toast {
  position: fixed;
  top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px) + 12px);
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(440px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.5 * var(--a-k)));
  border-radius: var(--a-r);
  background: var(--s-bg-2);
  color: var(--ivory);
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 18px 40px rgba(var(--a-shadow-rgb), calc(0.5 * var(--a-shadow-k)));
  opacity: 0;
  transform: translate(-50%, -14px);
  pointer-events: none;
  transition:
    opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.app-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
.app-toast svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.app-toast--error {
  border-color: rgba(var(--a-danger-rgb), 0.6);
}
.app-toast--error svg {
  color: var(--a-danger);
}

/* 按鈕送出中的轉圈 */
.app-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: app-spin 800ms linear infinite;
}
@keyframes app-spin {
  to { transform: rotate(360deg); }
}
.app-btn.is-busy,
.app-btn.is-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* 完成狀態：金框＋勾勾，不用灰掉的停用樣式（會被誤認為沒反應） */
.app-btn.is-done,
.app-btn.is-done:disabled {
  border: 1px solid var(--gold);
  background: rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k)));
  color: var(--gold);
  opacity: 1;
  cursor: default;
}
.app-btn.is-done svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
@media (prefers-reduced-motion: reduce) {
  /* 全站規則只把動畫縮成 1ms，無限循環會變成閃爍：直接關掉 */
  .app-spinner {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.6;
  }
}

/* ===== 2026-10-23 UX 改版：共用元件（各頁照這組寫，不要各自發明） =====
   A 區塊標頭＋編輯鈕：app_section_head()；B 編輯中黏底儲存列：.app-form-actions；
   C 空值：.app-empty-field；D 空狀態：app_empty()；E 回饋：appToast／appConfirm／appFlashThenReload；
   G 適齡字級與點擊區：本區塊末統一覆寫 */

/* A. 區塊標頭：標題靠左、「✎ 編輯」靠右 */
.app-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.app-section__head .app-section__title {
  margin: 0;
  text-align: left;
}
.app-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.5 * var(--a-k)));
  border-radius: 999px;
  background: rgba(var(--a-gold-rgb), calc(0.08 * var(--a-k)));
  color: var(--gold);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-edit-btn svg {
  width: 18px;
  height: 18px;
}
.app-edit-btn:active {
  transform: scale(0.97);
}
.app-edit-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* B. 編輯中：tabbar 收起、儲存／取消黏在畫面底部，不必捲到最下面找 */
/* 用獨立的 translate：tabbar 有 transform 進場動畫（fill both），寫 transform 會被蓋掉 */
body.is-editing .app-tabbar {
  translate: 0 100%;
  pointer-events: none;
}
body.is-editing .app-main {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.app-form-actions {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  margin: 18px -16px -22px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--app-line);
  background: var(--s-bg-2);
}
.app-form-actions .app-btn {
  margin: 0 !important;
}
.app-tabbar {
  transition: translate 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* C. 空值：「未填寫・去填寫」直接進編輯並跳到該欄 */
.app-empty-field {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  margin-left: -6px;
  border: 0;
  background: none;
  color: var(--s-accent);
  font: inherit;
  font-size: 16px;
  text-decoration: underline dashed;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* D. 空狀態卡：icon＋標題＋說明＋主要按鈕 */
.app-empty--card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 32px 20px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0, rgba(var(--a-gold-rgb), calc(0.08 * var(--a-k))), transparent 70%),
    var(--app-card-bg);
}
.app-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.35 * var(--a-k)));
  border-radius: 50%;
  color: var(--gold);
}
.app-empty__icon svg {
  width: 30px;
  height: 30px;
  margin: 0;
  color: inherit;
}
.app-empty__title {
  margin: 4px 0 0;
  color: var(--ivory);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.app-empty__text {
  margin: 0;
  max-width: 30em;
  color: var(--app-dim);
  font-size: 16px;
  line-height: 1.75;
}
.app-empty--card .app-btn {
  margin-top: 6px;
  text-decoration: none;
}
.app-empty--card .app-btn + .app-btn {
  margin-top: 0;
}

/* E. 站內確認對話框（appConfirm，取代原生 alert／confirm） */
.app-confirm {
  width: min(400px, calc(100vw - 32px));
  padding: 24px 20px 20px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k)));
  border-radius: var(--a-r);
  background: var(--s-bg-2);
  color: var(--ivory);
  box-shadow: 0 30px 70px rgba(var(--a-shadow-rgb), calc(0.6 * var(--a-shadow-k)));
}
.app-confirm::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.app-confirm[open] {
  animation: app-confirm-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes app-confirm-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.app-confirm__title {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.app-confirm__body {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--s-ink-2);
}
.app-confirm__actions {
  display: grid;
  gap: 10px;
}
.app-confirm__actions .app-btn {
  min-height: 52px;
}
.app-btn--danger {
  border: 1px solid var(--app-error);
  background: rgba(var(--a-danger-rgb), 0.12);
  color: var(--app-error);
}

/* G. 適齡字級（內文 ≥16px）與點擊區（≥48px）：統一覆寫既有元件 */
.app-note,
.app-hint,
.app-form label,
.app-fieldset > p,
.app-btn--ghost,
.app-card__info,
.app-table dt,
.app-plan__features li,
.app-empty {
  font-size: 16px;
}
.app-check {
  font-size: 16px !important;
}
.app-chip,
.app-card__state,
.app-bigmenu p,
.app-chat__notice,
.app-sheet__note {
  font-size: 15px;
}
.app-datecard__status {
  font-size: 14px;
}
.app-tabbar__link {
  font-size: 14px;
}
.app-chat__notice button {
  min-height: 48px;
  font-size: 15px;
}
.app-album__del,
.app-sheet__close {
  min-width: 44px;
  min-height: 44px;
}

/* ===== 2026-10-23 UX：App 個人資料類（我的檔案、個人資料、擇偶條件、帳號設定、入會驗證、會員中心、tabbar 鎖定） =====
   只用既有 tokens（--gold／--ivory／--red／--app-*）與本檔既有的 rgba 色值，不新增色票 */

/* 區塊內的說明文字：不用 .app-hint 的框（框中框太擠），左對齊、16px */
.app-me-note {
  margin: 12px 0 0;
  color: var(--app-dim);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}
.app-me-note a,
.app-fillcard__more a {
  color: var(--gold);
}
.app-mesec__warn {
  color: var(--app-error);
}

/* 身分卡（我的檔案頁首、會員中心頂部）：大頭像＋暱稱＋城市年齡＋完成度＋下一步 */
.app-mecard {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
  margin: 0 0 18px;
  padding: 18px 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.28 * var(--a-k)));
  border-radius: var(--a-r);
  background:
    radial-gradient(ellipse 90% 70% at 0 0, rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k))), transparent 70%),
    var(--app-card-bg);
}
.app-mecard__photo,
.app-mecard__add {
  display: block;
  border-radius: 50%;
}
.app-mecard__photo:focus-visible,
.app-mecard__add:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.app-mecard__avatar {
  display: block;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(var(--a-gold-rgb), calc(0.55 * var(--a-k)));
  border-radius: 50%;
  object-fit: cover;
  background: var(--s-bg-2);
}
.app-mecard__add .app-avatar-add__badge {
  width: 32px;
  height: 32px;
}
.app-mecard__main {
  min-width: 0;
}
.app-mecard__name {
  margin: 0;
  color: var(--ivory);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.app-mecard__meta {
  margin: 4px 0 0;
  color: var(--app-dim);
  font-size: 16px;
}
.app-mecard__badges {
  margin: 8px 0 0;
}
.app-mecard__progress {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--app-dim);
  font-size: 15px;
}
.app-mecard__progress strong {
  color: var(--gold);
  font-weight: 600;
}
.app-mecard__bar,
.app-fillcard__bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(var(--a-ink-rgb), 0.08);
  overflow: hidden;
}
.app-mecard__bar > span,
.app-fillcard__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--s-btn);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.app-mecard__todo,
.app-mecard__next,
.app-mecard__note {
  grid-column: 1 / -1;
}
.app-mecard__todo p,
.app-mecard__next p {
  margin: 0 0 10px;
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.app-mecard__todos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-todo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px dashed rgba(var(--a-gold-rgb), calc(0.6 * var(--a-k)));
  border-radius: 999px;
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
  color: var(--gold);
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-todo-chip:active {
  transform: scale(0.97);
}
.app-mecard__note {
  margin: 0;
  color: var(--app-dim);
  font-size: 15px;
  line-height: 1.7;
}
.app-mecard__next .app-btn {
  text-decoration: none;
}

/* 我的檔案：相簿與自我介紹區塊 */
.app-mesec__count {
  color: var(--app-dim);
  font-size: 15px;
}
.app-mesec .app-album {
  margin-top: 0;
}
.app-album__slot--add {
  align-content: center;
  gap: 6px;
  border: 1.5px dashed rgba(var(--a-gold-rgb), calc(0.6 * var(--a-k)));
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
  color: var(--gold);
  cursor: pointer;
}
.app-album__slot--add svg {
  width: 30px;
  height: 30px;
}
.app-album__label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.app-album__slot--empty {
  opacity: 0.45;
  cursor: pointer;
}
.app-album__slot--add:active,
.app-album__slot--empty:active {
  transform: scale(0.98);
}
.app-album__slot:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.app-album__badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 10px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.5 * var(--a-k)));
  border-radius: 999px;
  background: rgba(var(--veil), 0.82);
  color: var(--gold);
  font-size: 14px;
  line-height: 1.5;
}
.app-album__badge--rejected {
  border-color: rgba(var(--a-danger-rgb), 0.7);
  color: var(--app-error);
}
.app-album .app-album__del {
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--veil), 0.78);
  color: var(--ivory);
  font: inherit;
  font-size: 15px;
}
.app-album__preview {
  position: absolute;
  inset: 0;
}
.app-album__busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: rgba(var(--veil), 0.6);
  color: var(--ivory);
  font-size: 15px;
}
.app-album__slot.is-uploading > svg,
.app-album__slot.is-uploading > .app-album__label {
  visibility: hidden;
}
.app-album.is-uploading .app-album__slot:not(.is-uploading) {
  opacity: 0.35;
  pointer-events: none;
}

/* 頁首完成度卡（個人資料、擇偶條件） */
.app-fillcard {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 18px 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.28 * var(--a-k)));
  border-radius: var(--a-r);
  background:
    radial-gradient(ellipse 90% 70% at 0 0, rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k))), transparent 70%),
    var(--app-card-bg);
}
.app-fillcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--app-dim);
  font-size: 16px;
}
.app-fillcard__head strong {
  color: var(--ivory);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.app-fillcard__done,
.app-fillcard__more {
  margin: 0;
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.7;
}

/* 檢視表：「僅顧問可見」等小註記；左對齊的標籤群 */
.app-dt-note {
  display: block;
  margin-top: 2px;
  color: var(--app-dim);
  font-size: 13px;
}
.app-dd-note {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--app-card-line);
  border-radius: 999px;
  color: var(--app-dim);
  font-size: 13px;
  white-space: nowrap;
  vertical-align: 2px;
}
.app-chips--start {
  justify-content: flex-start;
  margin-top: 0;
}
.app-table dd {
  overflow-wrap: anywhere;
}

/* 編輯表單 */
.app-form__lead {
  margin: 0 0 16px;
}
.app-form__wide {
  grid-column: 1 / -1;
}
.app-fieldset--first {
  margin-top: 0;
}
.app-form__stack {
  display: grid;
  gap: 14px;
}
/* 編輯中：其他區塊的編輯入口先停用，一次只編一段（儲存列與 tabbar 才不會互相蓋住） */
body.is-editing .app-edit-btn,
body.is-editing .app-empty-field,
body.is-editing [data-fill-next] {
  opacity: 0.4;
  pointer-events: none;
}

/* 擇偶條件：一鍵勾整區 */
.app-region-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.app-region-quick__btn {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k)));
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.app-region-quick__btn[aria-pressed="true"] {
  background: rgba(var(--a-gold-rgb), calc(0.16 * var(--a-k)));
}

/* 帳號設定：即時開關（role=switch，切換即儲存） */
.app-section--first {
  margin-top: 0;
}
.app-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.07);
}
.app-switch-row__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.app-switch-row__text strong {
  color: var(--ivory);
  font-size: 17px;
  font-weight: 600;
}
.app-switch-row__text span {
  color: var(--app-dim);
  font-size: 15px;
  line-height: 1.6;
}
.app-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--app-dim);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-switch__track {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: var(--a-r);
  background: rgba(var(--a-ink-rgb), 0.16);
  transition: background 220ms ease;
}
.app-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 2px 6px rgba(var(--a-shadow-rgb), calc(0.4 * var(--a-shadow-k)));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.app-switch[aria-checked="true"] {
  color: var(--gold);
}
.app-switch[aria-checked="true"] .app-switch__track {
  background: var(--s-btn);
}
.app-switch[aria-checked="true"] .app-switch__thumb {
  transform: translateX(20px);
}
.app-switch__state {
  min-width: 1.2em;
}
.app-switch:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--a-r);
}
.app-switch:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* 帳號設定：登出與頁底危險區 */
.app-me-logout {
  margin-top: 26px;
  text-decoration: none;
}
.app-danger {
  margin-top: 34px;
  padding: 20px 16px;
  border: 1px solid rgba(var(--a-danger-rgb), 0.4);
  border-radius: var(--a-r);
  background: rgba(139, 30, 36, 0.1);
}
.app-danger__title {
  margin: 0 0 8px;
  color: var(--app-error);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.app-danger p {
  margin: 0 0 14px;
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.75;
}
.app-danger__ack {
  margin: 0 0 14px;
}
.app-danger .app-btn--danger {
  min-height: 52px;
}
.app-btn--danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 會員中心：停用說明、分組標題 */
.app-me-inactive {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.app-me-inactive p {
  margin: 0;
  color: var(--s-ink-2);
}
.app-me-inactive .app-me-inactive__title {
  color: var(--app-error);
  font-size: 17px;
  font-weight: 600;
}
.app-me-inactive .app-btn {
  margin-top: 4px;
  text-decoration: none;
}
.app-menu-group {
  margin: 28px 0 10px;
  padding-left: 2px;
  color: var(--s-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.app-me-logout-menu {
  margin-top: 28px;
}

/* 入會驗證：每份文件的狀態 tag、可鍵盤操作的上傳 */
.app-verify__dochead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.app-verify__dochead .app-verify__doclabel {
  margin: 0;
}
.app-doc-tag {
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid var(--app-card-line);
  border-radius: 999px;
  color: var(--app-dim);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
.app-doc-tag--ok {
  border-color: var(--gold);
  background: rgba(var(--a-gold-rgb), calc(0.16 * var(--a-k)));
  color: var(--gold);
}
.app-doc-tag--pending {
  border-color: rgba(var(--a-gold-rgb), calc(0.55 * var(--a-k)));
  color: var(--gold);
}
.app-doc-tag--rejected {
  border-color: rgba(var(--a-danger-rgb), 0.6);
  color: var(--app-error);
}
.app-verify__upload:focus-within .app-btn {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.app-verify__err {
  font-size: 16px;
}
.app-verify__submit {
  margin-top: 14px;
}
.app-verify__progress-text {
  margin-top: 6px;
}

/* tabbar：未開通／停用時鎖住的分頁 */
.app-tabbar__link--locked {
  color: var(--s-muted);
}
.app-tabbar__link .app-tabbar__lock {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  background: var(--s-bg-2);
  color: var(--gold);
  transform: translateX(5px);
}
.app-tabbar__note {
  color: var(--s-accent);
  font-size: 11px;
  letter-spacing: 0;
}

/* ===== 2026-10-23 UX：App 配對類與服務頁（最新名單、心動、朋友／約會、聊天、對方檔案、高端系列、訊息） =====
   只用既有 tokens（--gold／--ivory／--black／--app-*）與本檔已有的金色透明度，不新增色票（規則 11） */

/* 最新名單：「開始使用」三步清單（取代原本疊在一起的歡迎／補資料／綁 LINE／精選說明四張卡） */
.app-start {
  margin: 0 0 18px;
  padding: 20px 16px 16px;
  border-color: rgba(var(--a-gold-rgb), calc(0.35 * var(--a-k)));
  border-radius: var(--a-r);
  background:
    radial-gradient(ellipse 90% 70% at 0 0, rgba(var(--a-gold-rgb), calc(0.09 * var(--a-k))), transparent 70%),
    var(--app-card-bg);
}
.app-start__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.app-start__head .app-section__title {
  margin: 0;
  text-align: left;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.app-start__count {
  flex: 0 0 auto;
  color: var(--app-dim);
  font-size: 15px;
}
.app-start__lead {
  margin: 8px 0 12px;
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.app-start__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-start__step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(var(--a-ink-rgb), 0.07);
}
.app-start__step:first-child {
  border-top: 0;
  padding-top: 6px;
}
.app-start__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.5 * var(--a-k)));
  border-radius: 50%;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
}
.app-start__mark svg {
  width: 18px;
  height: 18px;
}
.app-start__step.is-done .app-start__mark {
  border-color: var(--gold);
  background: var(--s-btn);
  color: var(--s-btn-ink);
}
.app-start__title {
  margin: 4px 0 2px;
  color: var(--ivory);
  font-size: 17px;
  font-weight: 600;
}
.app-start__step.is-done .app-start__title,
.app-start__text {
  color: var(--app-dim);
}
.app-start__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
.app-start__step.is-next .app-start__text {
  color: var(--s-ink-2);
}
.app-start__body .app-btn {
  margin-top: 12px;
  text-decoration: none;
}
.app-start__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
}
/* 不是下一步的步驟縮成一行：標題靠左、「前往 ›」靠右 */
.app-start__step:not(.is-next) {
  align-items: center;
  padding: 6px 0;
}
.app-start__step:not(.is-next) .app-start__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
}
.app-start__step:not(.is-next) .app-start__title {
  margin: 0;
}
.app-start__step:not(.is-next) .app-start__text {
  flex-basis: 100%;
}
.app-start > .app-btn--ghost {
  margin-top: 6px;
}

/* 最新名單：預覽（未開通）卡片本體不可點，只留「我想認識他」與開通說明 */
.app-preview-card {
  border: 1px solid var(--app-card-line);
  background: var(--app-card-bg);
}
.app-preview-card .app-card {
  border: 0;
  background: none;
}
.app-card--static {
  cursor: default;
}
.app-preview-card__actions .app-btn {
  min-height: 52px;
}
.app-preview-card__actions p:empty {
  display: none;
}
.app-preview-card__actions p.is-error {
  color: var(--app-error);
}
.app-preview-card__more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 6px;
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
}

/* 心動：同意後的「前往聊天」 */
.app-card__actions--single {
  grid-template-columns: 1fr;
  padding-top: 0;
}
.app-card__actions--single .app-btn {
  text-decoration: none;
}

/* 朋友／約會分頁：待你回覆的邀約、按鈕 48px、回報連結 */
.app-datecard--invite {
  border-color: rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k)));
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
}
.app-datecard__actions .app-btn {
  min-height: 48px;
  font-size: 16px;
}
.app-datecard__cancel {
  min-height: 48px;
  font-size: 16px;
}
.app-datecard__more {
  margin: 6px 0 0;
  text-align: center;
}
.app-datecard__more a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
}

/* 聊天室約會提示條：說明在上、按鈕在下（同意／婉拒／撤回／已完成見面用 48px 的 .app-btn） */
.app-chat__notice.app-chat__notice--stack {
  display: block;
  padding: 14px;
}
.app-chat__notice-text {
  margin: 0;
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.app-chat__notice--stack .app-chat__notice-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.app-chat__notice .app-chat__notice-actions .app-btn {
  min-height: 48px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  white-space: normal;
}
.app-chat__notice .app-chat__notice-actions .app-btn--primary {
  border: 1px solid var(--gold);
  background: var(--s-btn);
  color: var(--s-btn-ink);
}
.app-chat__notice .app-chat__notice-actions .app-btn--ghost {
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--s-ink-2);
}
.app-chat__notice .app-chat__notice-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--app-dim);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.app-chat__notice a.app-chat__notice-link {
  color: var(--gold);
  text-decoration: none;
}
.app-chat__notice-actions .app-inline-error {
  grid-column: 1 / -1;
}
.app-chat__unlock--locked {
  color: var(--app-dim);
}

/* 聊天室空狀態：紀錄區是真正的空元素時才顯示，送出或輪詢補進訊息就自動收起 */
.app-chat__empty {
  margin-top: 8px;
}
[data-chat-log]:not(:empty) ~ [data-chat-empty] {
  display: none;
}

/* 聊天輸入列：鎖定時「選擇訊息」、解鎖後「送出」，圖示一律配文字 */
.app-chatbar__send.app-chatbar__send--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--a-r);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.app-chatbar__send--text svg {
  width: 20px;
  height: 20px;
}

/* 面板（罐頭訊息、取消約會、發起約會、檢舉）：關閉鈕 48×48、加「關閉」字 */
.app-sheet__head {
  gap: 12px;
  line-height: 1.5;
}
.app-sheet__close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 48px;
  margin: -6px -6px -6px 0;
  padding: 0 14px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  border-radius: 999px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0;
}
.app-sheet__close span {
  color: var(--app-dim);
  font-size: 14px;
}
.app-sheet__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.app-sheet__stack label {
  font-size: 16px;
}
.app-sheet__stack .app-btn {
  min-height: 52px;
}

/* 取消約會面板：先選原因，再按「確定取消約會」 */
.app-cancel {
  padding: 4px 0 2px;
}
.app-cancel__reasons {
  margin: 0;
  padding: 0;
  border: 0;
}
.app-cancel__reason {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.06);
  color: var(--ivory);
  font-size: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-cancel__reason input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--gold);
}
.app-cancel__reason:has(input:checked) {
  background: rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k)));
}
.app-cancel__reason:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.app-cancel__other {
  display: block;
  width: calc(100% - 36px);
  margin: 12px 18px 0;
  padding: 12px 14px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
}
.app-cancel .app-inline-error {
  margin: 12px 18px 0;
}
.app-cancel > .app-btn {
  width: calc(100% - 36px);
  min-height: 52px;
  margin: 16px 18px 0;
}

/* 對方檔案：檢舉／封鎖移到頁尾、摘要空值、狀態列說明 */
.app-album--others {
  margin-top: 8px;
}
.app-profile-more {
  margin: 26px 0 0;
  padding: 18px 2px 0;
  border-top: 1px solid var(--app-line);
}
.app-profile-more__title {
  margin: 0 0 6px;
  color: var(--app-dim);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.app-profile-more__text {
  margin: 0 0 4px;
  color: var(--app-dim);
  font-size: 16px;
  line-height: 1.7;
}
.app-table dd.app-dd--empty {
  color: var(--app-dim);
}
.app-actionbar__note {
  width: min(calc(var(--app-shell-w) - 32px), 100%);
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.35 * var(--a-k)));
  color: var(--gold);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

/* 高端系列說明：頁首「預約專屬諮詢」主卡（全頁唯一主按鈕） */
.app-consult-hero {
  margin-top: 0;
  padding: 24px 18px;
  border-color: rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k)));
  border-radius: var(--a-r);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0, rgba(var(--a-gold-rgb), calc(0.14 * var(--a-k))), transparent 70%),
    var(--app-card-bg);
  text-align: center;
}
.app-consult-hero__title {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.app-consult-hero__text {
  margin: 0 0 18px;
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}
.app-consult-hero .app-btn {
  min-height: 56px;
}
.app-consult-hero .app-inline-error {
  text-align: left;
}
.app-consult-hero__note {
  margin: 12px 0 0;
  color: var(--app-dim);
  font-size: 16px;
}
.app-consult-hero__back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 4px;
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
}

/* 高端系列說明：系列改可收合比較（摘要＝意象圖＋系列名＋門檻），卡內按鈕是次要的「諮詢此系列」 */
/* 系列清單本身不加框：每個系列已是一張可收合的卡，外面再包一層 .app-section 會變成框中框 */
.app-section.app-series-list {
  padding: 0;
  border: 0;
  background: none;
}
.app-series-list__note {
  margin: -8px 0 6px;
}
.app-series {
  margin-top: 12px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  background: rgba(var(--a-ink-rgb), 0.02);
  overflow: hidden;
}
.app-series[open] {
  border-color: rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k)));
}
.app-series__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 14px 12px 12px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-series__summary::-webkit-details-marker {
  display: none;
}
.app-series__summary::marker {
  content: "";
}
.app-series__summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.app-series__img {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  border-radius: var(--a-r);
  object-fit: cover;
}
.app-series__text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.app-series__name {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.app-series__threshold {
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.app-series__chev {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--gold);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.app-series[open] .app-series__chev {
  transform: rotate(180deg);
}
.app-series__body {
  padding: 2px 16px 18px;
  border-top: 1px solid rgba(var(--a-ink-rgb), 0.07);
}
.app-series__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
}
.app-series__body .app-btn {
  margin-top: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .app-series__chev {
    transition: none;
  }
}

/* 黏底儲存列能真的黏住（2026-10-23）：官網 style.css 的 main { overflow: hidden } 讓 .app-main 變成捲動容器，
   position: sticky 會黏在 main 裡而不是畫面底部。編輯中才放開垂直方向（水平仍裁切，不會出現橫向捲動） */
body.is-editing .app-main {
  overflow-x: clip;
  overflow-y: visible;
}
@supports not (overflow: clip) {
  body.is-editing .app-main {
    overflow: visible;
  }
}
/* 捲到表單或欄位時，不要被固定頁首蓋住 */
[data-me-form],
[data-pref-form],
[data-editable] input,
[data-editable] select,
[data-editable] textarea {
  scroll-margin-top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px) + 12px);
  scroll-margin-bottom: 110px;
}
/* 相簿刪除鈕：窄一點，少擋照片 */
.app-album .app-album__del {
  padding: 0 10px;
  font-size: 14px;
}

/* ==========================================================================
   動效 v0.81（2026-10-23）— 建立在 v0.25 動效系統與 v0.80 UX 改版之上
   · 換頁轉場：View Transitions（iOS 18.2+／LINE 內建瀏覽器同版、Android WebView 新版）；
     頁首與 Tab Bar 固定不動，只有內容交叉淡入。不支援的瀏覽器照舊整頁換，不受影響
   · v0.80 新元件補按壓回饋（iOS 的 :active 不觸發，一律配 .is-pressed，JS 見 app.js「動效」段）
   · 勾選跳一下、開關按住時圓鈕拉長、底部面板拖曳把手、照片載入淡入、Tab 圖示輕跳
   只用既有色值；減少動態時全部關閉（本區塊末）。
   ========================================================================== */

@view-transition {
  navigation: auto;
}

.app-header {
  view-transition-name: app-header;
}

.app-tabbar {
  view-transition-name: app-tabbar;
}

::view-transition-group(app-header),
::view-transition-group(app-tabbar) {
  animation-duration: 240ms;
}

/* 舊頁快速淡出、新頁淡入；內容本身另有 v0.25 的依序浮現 */
::view-transition-old(root) {
  animation: 160ms cubic-bezier(0.4, 0, 0.2, 1) both app-vt-out;
}

::view-transition-new(root) {
  animation: 260ms cubic-bezier(0.22, 1, 0.36, 1) both app-vt-in;
}

@keyframes app-vt-out {
  to {
    opacity: 0;
  }
}

@keyframes app-vt-in {
  from {
    opacity: 0;
  }
}

/* 支援換頁轉場時，頁首與 Tab Bar 每換一頁都重新滑入一次反而像整頁重載 → 固定不動 */
@supports (view-transition-name: none) {
  .app-motion .app-header,
  .app-motion .app-tabbar {
    animation: none;
  }
}

/* Tab 圖示：切到該分頁時輕輕跳一下（新頁的目前分頁） */
@keyframes app-tab-pop {
  0% {
    transform: scale(0.82);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: none;
  }
}

.app-motion .app-tabbar__link[aria-current="page"] svg {
  animation: app-tab-pop 420ms var(--app-ease) 80ms both;
}

/* v0.80 新元件的按壓回饋：縮一點＋淡一點（用獨立的 scale 屬性，不動元件原有的 transform）。
   名單卡上的照片連結 .app-card__media 不列入：要讓外層 .app-card 整張下沉（v0.25 的設計） */
.app-motion :is(
    .app-check,
    .app-empty-field,
    .app-chat__notice-link,
    .app-cancel__reason,
    .app-verify__upload,
    .app-verify__del,
    .app-start__link,
    .app-services__reload,
    .app-series__summary,
    .app-series__link,
    .app-region-quick__btn,
    .app-preview-card,
    .app-preview-card__more,
    .app-plan,
    .app-order,
    .app-me-logout,
    .app-mecard__photo,
    .app-mecard__add,
    .app-header__brand,
    .app-danger__ack,
    .app-consult-hero__back,
    .app-avatar-add,
    .app-auth-password-toggle
  ) {
  -webkit-tap-highlight-color: transparent;
  transition:
    scale var(--app-t-press) var(--app-ease-soft),
    opacity var(--app-t-press) var(--app-ease-soft),
    background-color var(--app-t-state) var(--app-ease-soft),
    border-color var(--app-t-state) var(--app-ease-soft),
    color var(--app-t-state) var(--app-ease-soft);
}

.app-motion :is(
    .app-check,
    .app-empty-field,
    .app-chat__notice-link,
    .app-cancel__reason,
    .app-verify__upload,
    .app-verify__del,
    .app-start__link,
    .app-services__reload,
    .app-series__summary,
    .app-series__link,
    .app-region-quick__btn,
    .app-preview-card,
    .app-preview-card__more,
    .app-plan,
    .app-order,
    .app-me-logout,
    .app-mecard__photo,
    .app-mecard__add,
    .app-header__brand,
    .app-danger__ack,
    .app-consult-hero__back,
    .app-avatar-add,
    .app-auth-password-toggle
  ).is-pressed {
  scale: 0.97;
  opacity: 0.88;
}

/* 編輯鈕、待辦 chip 原本只有 :active（iOS 不觸發）→ 補 .is-pressed */
.app-motion .app-edit-btn.is-pressed,
.app-motion .app-todo-chip.is-pressed {
  transform: scale(0.97);
}

/* 勾選：打勾的那一下整顆跳一下 */
@keyframes app-check-pop {
  0% {
    scale: 1;
  }
  40% {
    scale: 1.06;
  }
  100% {
    scale: 1;
  }
}

.app-motion .app-check.is-toggled {
  animation: app-check-pop 300ms var(--app-ease) both;
}

/* 開關：按住時圓鈕往兩側拉長（iOS 原生開關的手感），放開彈回 */
.app-motion .app-switch__thumb {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    scale var(--app-t-press) var(--app-ease-soft);
}

.app-motion .app-switch.is-pressed .app-switch__thumb {
  scale: 1.16 0.94;
}

/* 底部面板：頂端拖曳把手，提示可往下拖關閉；拖曳中跟著手指走 */
.app-sheet__panel::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: rgba(var(--a-ink-rgb), 0.28);
}

.app-sheet__panel.is-dragging {
  transition: none !important;
}

.app-sheet__panel.is-settling {
  transition: translate 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sheet--open .app-sheet__backdrop.is-dragging {
  transition: none;
}

/* 照片載入淡入：還沒載完的先透明，載完淡入（腳本沒跑時照片照常顯示） */
.app-motion img.app-img-loading {
  opacity: 0;
}

.app-motion img.app-img-in {
  animation: app-fade 380ms var(--app-ease-soft) both;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .app-motion .app-tabbar__link[aria-current="page"] svg,
  .app-motion .app-check.is-toggled {
    animation: none;
  }

  .app-motion :is(
      .app-check,
      .app-empty-field,
        .app-preview-card,
      .app-plan,
      .app-order,
      .app-mecard__photo
    ).is-pressed,
  .app-motion .app-switch.is-pressed .app-switch__thumb {
    scale: none;
  }
}

/* --------------------------------------------------------------------------
   E04 雙品牌（2026-10-30）：頁首文字標誌（沒有 Logo 檔的品牌）、會員中心品牌卡。
   顏色走官網 style.css 的 .brand-color--* 與既有 tokens，不新增色票。
   -------------------------------------------------------------------------- */
.app-header__brand-text {
  display: block;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 會員中心「品牌與服務」：外框比照 .app-fillcard；左標籤、右內容，內文 16px */
.app-brandcard {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.28 * var(--a-k)));
  border-radius: var(--a-r);
  background: var(--app-card-bg);
}

.app-brandcard__list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.app-brandcard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.app-brandcard__row + .app-brandcard__row {
  padding-top: 10px;
  border-top: 1px solid var(--app-card-line);
}

.app-brandcard__row dt {
  flex: none;
  color: var(--app-dim);
}

.app-brandcard__row dd {
  margin: 0;
  color: var(--ivory);
  font-weight: 600;
  text-align: right;
}

.app-brandcard .app-btn {
  min-height: 48px;
  margin: 0;
}

/* ===== E09 驗證徽章（q17）：資料頁「身分／學歷／工作／收入（或照片）」，已驗證打勾 =====
   只用既有 tokens 與本檔既有 rgba 色值；未驗證不只靠顏色區分，另有「未驗證」文字 */
.app-vbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 2px 0;
  padding: 0;
  list-style: none;
}
.app-vbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--app-card-line);
  border-radius: 999px;
  color: var(--app-dim);
  font-size: 15px;
  line-height: 1.5;
}
.app-vbadge svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.app-vbadge__state {
  font-size: 13px;
}
.app-vbadge--ok {
  border-color: var(--gold);
  background: rgba(var(--a-gold-rgb), calc(0.12 * var(--a-k)));
  color: var(--gold);
}
.app-vbadge--ok span:first-of-type {
  font-weight: 600;
}

/* 個人頁「詳細資料」分組小標 */
.app-detail__group {
  margin: 18px 0 6px;
  color: var(--s-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.app-section .app-detail__group:first-of-type {
  margin-top: 0;
}

/* ===== E08 會員資料填寫精靈 /app/me/profile-wizard/ ===== */
.app-wz-head {
  margin-bottom: 14px;
}
.app-wz-head .app-me-note {
  margin: 0;
}
.app-wz-steps {
  margin: 0 -16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.app-wz-steps::-webkit-scrollbar {
  display: none;
}
.app-wz-steps ol {
  display: flex;
  gap: 8px;
  width: max-content;
  margin: 0;
  padding: 2px 16px 4px;
  list-style: none;
}
.app-wz-steps__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--app-card-line);
  border-radius: 999px;
  background: var(--app-card-bg);
  color: var(--app-dim);
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-wz-steps__no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
}
.app-wz-steps__btn.is-done {
  color: var(--s-ink-2);
}
.app-wz-steps__btn.is-done .app-wz-steps__no {
  border-color: var(--gold);
  background: rgba(var(--a-gold-rgb), calc(0.16 * var(--a-k)));
  color: var(--gold);
}
.app-wz-steps__btn[aria-current="step"] {
  border-color: var(--gold);
  background: rgba(var(--a-gold-rgb), calc(0.12 * var(--a-k)));
  color: var(--gold);
  font-weight: 600;
}
.app-wz-steps__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.app-wz-step {
  margin-top: 14px;
}
.app-wz-step__no {
  margin: 0 0 4px;
  color: var(--app-dim);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.app-wz-step .app-section__title:focus {
  outline: none;
}
.app-wz-field {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--app-card-line);
}
.app-wz-field__label,
.app-form .app-wz-field__label {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  color: var(--ivory);
  font-size: 16px;
  font-weight: 600;
}
.app-wz-field__label small {
  display: block;
  margin-top: 2px;
  color: var(--app-dim);
  font-size: 14px;
  font-weight: 400;
}
.app-wz-field__hint {
  margin: 6px 0 0;
  color: var(--app-dim);
  font-size: 14px;
  line-height: 1.6;
}
.app-wz-multi {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.app-wz-multi .app-checks {
  margin-top: 8px;
}
.app-wz-multi .app-check {
  min-height: 48px;
}
.app-wz-multi[disabled] .app-check {
  opacity: 0.45;
  cursor: not-allowed;
}
.app-form .app-wz-vis {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--app-dim);
  font-size: 14px;
}
.app-wz-vis span {
  flex: none;
}
.app-form .app-wz-vis select {
  flex: 1 1 auto;
  min-height: 48px;
  margin: 0;
  padding: 8px 34px 8px 12px;
  font-size: 15px;
}
.app-wz-consent {
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.28 * var(--a-k)));
  border-radius: var(--a-r);
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
}
.app-wz-consent__text {
  margin: 0 0 10px;
  color: var(--s-ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.app-wz-consent .app-check {
  min-height: 48px;
}
.app-wz-consent__done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 10px;
  color: var(--app-dim);
  font-size: 15px;
}
.app-wz-consent__done p {
  margin: 0;
  flex: 1 1 180px;
}
.app-wz-consent__done .app-wz-withdraw {
  flex: none;
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
}
.app-wz-consent__note {
  margin: 0 0 10px;
  color: var(--app-dim);
  font-size: 15px;
  line-height: 1.7;
}
.app-wz-status {
  margin: 0 0 16px;
  padding: 12px;
  border-left: 3px solid var(--gold);
  background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k)));
  color: var(--s-ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.app-wz-status--warn {
  border-left-color: var(--app-error);
  color: var(--app-error);
}
.app-wz-public {
  margin: 0 0 18px;
  font-size: 16px;
}
.app-wz-public summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--gold);
  cursor: pointer;
}
.app-wz-public .app-qa {
  margin: 0;
}
.app-form .app-wz-field textarea {
  min-height: 96px;
}
.app-wz-locked {
  margin: 0 0 22px;
}
.app-wz-locked a {
  color: var(--gold);
}
.app-wz-draft {
  display: block;
  min-height: 48px;
  margin: 4px auto 0;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.app-wz-draft:disabled {
  opacity: 0.5;
}
.app-wz-done .app-btn-row .app-btn {
  margin: 0;
}

/* 有同意框的欄位：欄名已在上方，legend 只留「可複選」說明 */
.app-wz-field__label--sub small {
  margin-top: 0;
}
.app-wz-public summary::before {
  content: "▸";
  margin-right: 8px;
}
.app-wz-public[open] summary::before {
  content: "▾";
}
.app-wz a.app-btn,
.app-wz-entry a.app-btn {
  text-decoration: none;
}

/* 會員中心入口卡片、我的檔案的驗證標章區 */
.app-wz-entry .app-me-note {
  margin: 0;
}
.app-wz-entry .app-btn {
  margin: 0;
}
/* --------------------------------------------------------------------------
   E22 聲音控 match（2026-11-01）：/app/me/voice/ 錄音與試聽、對方檔案頁的播放區。
   只用官網既有 tokens（--gold／--ivory／--app-dim），不新增色票；按鈕與標籤沿用 .app-btn／.app-tag。
   -------------------------------------------------------------------------- */
.app-voice__lead {
  text-align: left;
  margin-top: 0;
}

.app-voice__terms {
  margin: 0 0 14px;
  padding-left: 1.4em;
  font-size: 16px;
  line-height: 1.8;
}

.app-voice__terms li + li {
  margin-top: 6px;
}

.app-voice__agree {
  margin-bottom: 14px;
}

.app-voice__reading {
  margin: 12px 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(var(--a-gold-rgb), calc(0.6 * var(--a-k)));
  background: rgba(var(--a-ink-rgb), 0.04);
  font-size: 17px;
  line-height: 1.9;
}

.app-voice__timer {
  margin: 8px 0 4px;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-align: center;
}

.app-voice__actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.app-voice__actions:empty {
  display: none;
}

.app-voice__player {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 12px 0;
}

.app-voice__label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--s-accent);
}

.app-voice__script {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(var(--a-ink-rgb), 0.14);
  background: rgba(var(--a-ink-rgb), 0.06);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  resize: vertical;
}

.app-voice__script:disabled {
  opacity: 0.6;
}

.app-voice__count {
  text-align: right;
}

.app-voice__count.is-over {
  color: var(--app-error);
}

.app-voice .app-section > .app-btn,
.app-voice-play .app-btn {
  margin-top: 12px;
}
/* E30 測試用「回報問題」（2026-10-30）：右側窄側標＋回報對話框＋「我的問題回報」頁。只用既有 tokens（規則 11）。
   側標放在畫面右緣中下方，避開頂部 header、底部 tabbar 與聊天輸入列；編輯中（黏底儲存列）收起。 */
.app-issue-fab {
  position: fixed;
  right: 0;
  top: 58%;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 40px;
  padding: 12px 0;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k)));
  border-right: 0;
  border-radius: var(--a-r) 0 0 var(--a-r);
  background: rgba(var(--veil), 0.88);
  color: var(--gold);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow: -4px 6px 18px rgba(var(--a-shadow-rgb), calc(0.45 * var(--a-shadow-k)));
}
.app-issue-fab::before { /* 點擊區補到 48px 寬 */
  content: "";
  position: absolute;
  inset: -4px 0 -4px -8px;
}
.app-issue-fab svg { width: 18px; height: 18px; writing-mode: horizontal-tb; }
.app-issue-fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.is-editing .app-issue-fab { display: none; }
.app-issue {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 22px 18px 18px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k)));
  border-radius: var(--a-r);
  background: var(--s-bg-2);
  color: var(--ivory);
  text-align: left;
}
.app-issue::backdrop { background: rgba(0, 0, 0, 0.72); }
.app-issue__title { margin: 0 0 6px; color: var(--gold); font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }
.app-issue__lead { margin: 0 0 16px; color: var(--s-ink-2); font-size: 16px; line-height: 1.7; }
.app-issue .app-form label { font-size: 16px; }
.app-issue__sev { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.app-issue__sev legend { margin-bottom: 8px; padding: 0; font-size: 16px; color: var(--s-accent); }
.app-issue__opt { display: flex !important; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid rgba(var(--a-ink-rgb), 0.12); color: var(--ivory) !important; cursor: pointer; }
.app-issue__opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--gold); }
.app-issue__opt b { margin-right: 8px; color: var(--gold); font-weight: 600; }
.app-issue__opt:has(input:checked) { border-color: var(--gold); background: rgba(var(--a-gold-rgb), calc(0.08 * var(--a-k))); }
.app-issue__zone { display: grid; gap: 8px; }
.app-issue__label { margin: 0; font-size: 16px; color: var(--s-accent); }
.app-issue__zone .app-btn { min-height: 48px; }
.app-issue__zone.is-drag { outline: 1px dashed var(--gold); outline-offset: 4px; }
.app-issue__hint { margin: 0; color: var(--app-dim); font-size: 15px; line-height: 1.6; }
.app-issue__hint span { display: block; }
.app-issue__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.app-issue__thumbs:empty { display: none; }
.app-issue__thumb { width: 88px; }
.app-issue__thumb img { display: block; width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--app-line); }
.app-issue__thumb-x { width: 100%; min-height: 40px; margin-top: 4px; border: 1px solid rgba(var(--a-ink-rgb), 0.14); background: rgba(var(--a-ink-rgb), 0.06); color: var(--ivory); font: inherit; font-size: 15px; cursor: pointer; }
.app-issue__auto { font-size: 15px; color: var(--app-dim); }
.app-issue__auto summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.app-issue__auto p { margin: 4px 0 0; word-break: break-all; }
.app-issue__error { margin: 0; color: var(--app-error); font-size: 16px; line-height: 1.6; }
.app-issue__actions { display: grid; gap: 10px; margin-top: 18px; }
.app-issue__actions .app-btn { min-height: 52px; }
.app-issue__link { display: flex; align-items: center; justify-content: center; min-height: 48px; color: var(--gold); font-size: 16px; }
.app-issue__done { text-align: center; }
.app-issue :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.app-issues { font-size: 16px; overflow-wrap: anywhere; }
.app-issues__status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 16px; color: var(--app-dim); }
.app-issues__status.is-error { justify-content: flex-start; color: var(--app-error); line-height: 1.6; }
.app-issues__lead { margin: 4px 2px 16px; color: var(--s-ink-2); line-height: 1.75; }
.app-issues__new { margin-bottom: 18px; }
.app-issues__card { margin-top: 16px; border-radius: var(--a-r); text-align: left; }
.app-issues__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.app-issues__no { color: var(--app-dim); font-size: 15px; }
.app-issues__state { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border: 1px solid rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k))); border-radius: 999px; color: var(--gold); font-size: 15px; }
.app-issues__state--verifying { background: var(--s-btn); border-color: var(--gold); color: var(--s-btn-ink); font-weight: 600; }
.app-issues__state--resolved, .app-issues__state--wontfix, .app-issues__state--duplicate { border-color: rgba(var(--a-ink-rgb), 0.16); color: var(--app-dim); }
.app-issues__state--log { min-height: 26px; margin-bottom: 6px; }
.app-issues__desc, .app-issues__body { margin: 0 0 10px; color: var(--ivory); line-height: 1.75; white-space: pre-wrap; }
.app-issues__meta { display: grid; grid-template-columns: 84px 1fr; gap: 4px 10px; margin: 0 0 10px; font-size: 15px; }
.app-issues__meta dt { color: var(--app-dim); }
.app-issues__meta dd { margin: 0; word-break: break-all; }
.app-issues__note { margin: 0 0 10px; color: var(--gold); line-height: 1.7; }
.app-issues__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.app-issues__thumbs img { display: block; width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--app-line); }
.app-issues__verify { margin: 14px 0 4px; padding: 14px; border: 1px solid rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k))); background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k))); }
.app-issues__verify-title { margin: 0 0 10px; color: var(--gold); font-weight: 600; }
.app-issues__verify .app-btn { min-height: 52px; }
.app-issues__more { margin-top: 14px; display: grid; gap: 12px; }
.app-issues__more .app-btn { margin-top: 0; }
.app-issues__error { margin: 0; color: var(--app-error); line-height: 1.6; }
.app-issues__logs { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--app-card-line); list-style: none; display: grid; gap: 14px; }
.app-issues__who { margin: 0; color: var(--app-dim); font-size: 15px; }

/* ===== E17／E18／E19／D49 隱形 MATCH 會員頁面（2026-11-03） =====
   只用既有 tokens（--gold／--ivory／--red／--app-line／--app-card-line／--app-card-bg／--app-dim），不新增色票。
   適齡：內文 ≥16px、點擊區 ≥48px。照片一律是伺服器端模糊圖，這裡不再加 CSS blur（不靠前端遮）。 */
.app-match__lead { margin: 4px 0 16px; text-align: left; font-size: 16px; color: var(--s-ink-2); }
.app-match__lead a { color: var(--gold); }
.app-match__cta, .app-match__more { margin-top: 18px; width: 100%; }

.app-mlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.app-mlist__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--app-card-line); font-size: 16px; }
.app-mlist__row:last-child { border-bottom: 0; }
.app-mlist__row small { color: var(--app-dim); font-size: 14px; }
.app-mlist__row strong { font-weight: 600; color: var(--ivory); text-align: right; }
.app-mlist__row strong.is-on { color: var(--gold); }
.app-mlist__row strong.is-off { color: var(--app-dim); font-weight: 400; }

.app-mtodo { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.app-mtodo__item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--app-card-line); color: var(--ivory); text-decoration: none; font-size: 16px; }
.app-mtodo__item:hover, .app-mtodo__item:focus-visible { border-color: rgba(var(--a-gold-rgb), calc(0.55 * var(--a-k))); }
.app-mtodo__mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(var(--a-gold-rgb), calc(0.55 * var(--a-k))); border-radius: 50%; color: var(--s-btn-ink); font-size: 14px; }
.app-mtodo__item.is-done .app-mtodo__mark { background: var(--s-btn); border-color: var(--gold); }
.app-mtodo__item.is-done .app-mtodo__label { color: var(--s-ink-2); }
.app-mtodo__state { color: var(--gold); font-size: 15px; white-space: nowrap; }
.app-mtodo__item.is-done .app-mtodo__state { color: var(--app-dim); }

.app-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-mgo { display: grid; align-content: start; gap: 6px; min-height: 104px; padding: 14px 12px; border: 1px solid rgba(var(--a-gold-rgb), calc(0.32 * var(--a-k))); background: rgba(var(--a-gold-rgb), calc(0.05 * var(--a-k))); color: var(--ivory); text-decoration: none; }
.app-mgo strong { color: var(--gold); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.app-mgo span { color: var(--s-ink-2); font-size: 15px; line-height: 1.55; }
.app-mgo.is-off { border-color: var(--app-card-line); background: transparent; }
.app-mgo.is-off strong { color: var(--app-dim); }

.app-mcards { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.app-mcard { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--app-card-line); background: var(--app-card-bg); }
.app-mcard--wide { margin-bottom: 14px; }
.app-mcard__photo { display: block; width: 96px; height: 120px; overflow: hidden; background: rgba(var(--a-ink-rgb), 0.04); }
.app-mcard__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-mcard__body { min-width: 0; }
.app-mcard__name { margin: 0 0 4px; color: var(--ivory); font-size: 18px; font-weight: 600; }
.app-mcard__meta { margin: 0 0 4px; color: var(--s-ink-2); font-size: 15px; line-height: 1.6; }
.app-mcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.app-mscore { display: inline-flex; align-items: baseline; gap: 1px; margin-left: 6px; padding: 1px 10px; border: 1px solid rgba(var(--a-gold-rgb), calc(0.55 * var(--a-k))); border-radius: 999px; color: var(--gold); font-size: 15px; font-weight: 400; vertical-align: 2px; }
.app-mscore strong { font-size: 17px; font-weight: 600; }
.app-mscore small { font-size: 13px; }
.app-mscore--none { border-color: var(--app-card-line); color: var(--app-dim); font-size: 14px; }

.app-mactions { display: grid; gap: 10px; margin-top: 12px; }
.app-mactions .app-btn { margin: 0; }
.app-mactions--row { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }

.app-mslots { display: grid; gap: 14px; }
.app-mslots__day { margin: 0; padding: 0; border: 0; }
.app-mslots__day legend { margin-bottom: 8px; color: var(--gold); font-size: 16px; font-weight: 600; }

.app-mform { display: grid; gap: 10px; }
.app-mform.app-section { padding-bottom: 18px; }
.app-mform__label { color: var(--s-accent); font-size: 15px; }
.app-mform__input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid rgba(var(--a-ink-rgb), 0.18); background: rgba(var(--a-ink-rgb), 0.04); color: var(--ivory); font-size: 16px; font-family: inherit; }
.app-mform__input:focus { outline: 2px solid rgba(var(--a-gold-rgb), calc(0.6 * var(--a-k))); outline-offset: 1px; }
.app-mform__row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; }
.app-mform__consent { line-height: 1.6; align-items: flex-start !important; }
.app-form-actions.app-form-actions--one { grid-template-columns: 1fr; }

.app-mhero { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; margin-bottom: 6px; }
.app-mhero__photo { display: block; width: 112px; height: 140px; overflow: hidden; background: rgba(var(--a-ink-rgb), 0.04); }
.app-mhero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-mhero__name { margin: 0 0 4px; color: var(--ivory); font-size: 22px; font-weight: 600; }
.app-mhero__meta { margin: 0 0 6px; color: var(--s-ink-2); font-size: 16px; }
.app-mhero__blur { margin: 0; color: var(--app-dim); font-size: 14px; }

.app-mtotal { text-align: center; }
.app-mtotal__value { margin: 0; color: var(--gold); font-size: 52px; font-weight: 600; line-height: 1.1; }
.app-mtotal__value small { font-size: 22px; margin-left: 2px; }
.app-mtotal__none { font-size: 18px; color: var(--app-dim); font-weight: 400; }

.app-mbars { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.app-mbars__row { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 10px; font-size: 16px; }
.app-mbars__label { color: var(--ivory); }
.app-mbars__track { position: relative; height: 10px; border-radius: 999px; background: rgba(var(--a-ink-rgb), 0.08); overflow: hidden; }
.app-mbars__track--empty { background: repeating-linear-gradient(90deg, rgba(var(--a-ink-rgb), 0.08) 0 6px, transparent 6px 12px); }
.app-mbars__fill { display: block; height: 100%; border-radius: 999px; background: var(--s-btn); }
.app-mbars__fill--mid { background: rgba(var(--a-gold-rgb), calc(0.65 * var(--a-k))); }
.app-mbars__fill--low { background: rgba(var(--a-gold-rgb), calc(0.35 * var(--a-k))); }
.app-mbars__value { min-width: 4.5em; color: var(--gold); font-size: 15px; text-align: right; }
.app-mbars__value--none { color: var(--app-dim); }

.app-mfriction { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.app-mfriction li { display: grid; gap: 4px; padding: 12px; border-left: 3px solid var(--red); background: rgba(139, 30, 36, 0.12); }
.app-mfriction strong { color: var(--ivory); font-size: 16px; }
.app-mfriction span { color: var(--s-ink-2); font-size: 16px; line-height: 1.65; }

.app-radar-wrap { max-width: 320px; margin: 0 auto; }
.app-radar { display: block; width: 100%; height: auto; overflow: visible; }
.app-radar__ring { fill: none; stroke: var(--app-card-line); stroke-width: 1; }
.app-radar__axis { stroke: var(--app-card-line); stroke-width: 1; }
.app-radar__label { fill: var(--s-ink-2); font-size: 19px; }
.app-radar__shape { fill: var(--s-muted); stroke: var(--gold); stroke-width: 2; }

.app-mquiz { display: grid; gap: 0; }
.app-mquiz__q { margin-top: 14px; }
.app-mquiz__text { padding: 0; margin-bottom: 12px; color: var(--ivory); font-size: 17px; line-height: 1.7; }
.app-mquiz__no { color: var(--gold); font-weight: 600; }
.app-mquiz__track { margin: 10px 0 6px; color: var(--s-accent); font-size: 15px; }
.app-mquiz__opts .app-check { min-height: 48px; }
.app-mquiz__type { margin: 0; text-align: center; color: var(--gold); font-size: 22px; font-weight: 600; }
.app-mquiz__test { margin-top: 4px; }

.app-mcond { margin: 0 0 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--app-card-line); display: grid; gap: 10px; }
.app-mcond:last-child { border-bottom: 0; }
.app-mcond__label { padding: 0; color: var(--ivory); font-size: 16px; font-weight: 600; }
.app-mcond__value { display: grid; gap: 8px; }
.app-mcond__num { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--s-ink-2); font-size: 15px; }

.app-friend__service { margin-left: 6px; font-size: 12px; vertical-align: 2px; }
.app-chat__service { margin: 0 0 12px; color: var(--app-dim); font-size: 14px; text-align: center; }

@media (max-width: 360px) {
  .app-mgrid { grid-template-columns: 1fr; }
  .app-mcard { grid-template-columns: 80px 1fr; }
  .app-mcard__photo { width: 80px; height: 100px; }
  .app-mbars__row { grid-template-columns: 6.5em 1fr auto; }
}

/* ===== E10 隱形 MATCH 線上購買（/app/plans/ 購買區，2026-11-03） ===== */
.app-mpay__reason {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  font-size: 16px;
  color: var(--ivory);
}

.app-mpay__quota {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ivory);
}

.app-mpay__months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.app-mpay__legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  color: var(--app-dim);
}

.app-mpay__month {
  position: relative;
  display: block;
  cursor: pointer;
}

.app-mpay__month input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.app-mpay__month span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  text-align: center;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ivory);
}

.app-mpay__month small {
  font-size: 14px;
  color: var(--app-dim);
}

.app-mpay__month input:checked + span {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
  color: var(--gold);
}

.app-mpay__month input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.app-mpay__card .app-btn {
  margin-top: 16px;
}

.app-mpay__methods {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.app-mpay__method,
.app-mpay__retry {
  min-height: 52px;
  font-size: 17px;
}

.app-mpay__retry {
  margin-top: 10px;
}

.app-mpay__vacc {
  margin-top: 10px;
}

.app-mpay__sheet:focus {
  outline: none;
}
/* ===== E12／E16 會員首頁儀表板與會員選單新頁（2026-11-03，工作線 C；只用既有 tokens，不新增色票） ===== */
.app-home-entry,
.app-home-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k)));
  border-radius: var(--a-r);
  background: rgba(var(--a-gold-rgb), calc(0.08 * var(--a-k)));
  color: var(--ivory);
  text-decoration: none;
}
.app-home-entry svg { flex: 0 0 auto; width: 28px; height: 28px; color: var(--gold); }
.app-home-entry > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.app-home-entry strong { font-size: 17px; color: var(--gold); }
.app-home-entry span span { font-size: 15px; color: var(--app-dim); }
.app-home-link { min-height: 48px; padding: 10px 14px; margin-bottom: 12px; }
.app-home-link > span:first-child { color: var(--gold); font-size: 16px; font-weight: 600; }
.app-home-link small { flex: 1; font-size: 15px; color: var(--app-dim); }

.app-home__hello { margin-bottom: 4px; }
.app-home__greet { margin: 0 0 6px; font-size: 20px; color: var(--ivory); }
.app-home__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.app-home__brand { font-size: 15px; color: var(--app-dim); }
.app-home__note { margin: 8px 0 12px; font-size: 16px; line-height: 1.7; color: var(--s-ink-2); }
.app-home__empty { margin: 0; font-size: 16px; line-height: 1.7; color: var(--app-dim); text-align: center; }
.app-home__card { margin-top: 16px; }
.app-home__todos,
.app-home__feed,
.app-home__shortcuts,
.app-home__steps,
.app-home__rings { list-style: none; margin: 0; padding: 0; }
.app-home__todos { display: grid; gap: 8px; }
.app-home__todo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  color: var(--ivory);
  font-size: 16px;
  text-decoration: none;
}
.app-home__todo > span:first-child { flex: 1; }
.app-home__todo--urgent { border-color: rgba(var(--a-gold-rgb), calc(0.55 * var(--a-k))); background: rgba(var(--a-gold-rgb), calc(0.07 * var(--a-k))); }
.app-home__count {
  min-width: 32px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--s-btn);
  color: var(--s-btn-ink);
  font-weight: 700;
  text-align: center;
}
.app-home__date { display: flex; align-items: center; gap: 14px; min-height: 72px; color: var(--ivory); text-decoration: none; }
.app-home__avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--app-card-line); }
.app-home__date-main { display: grid; gap: 4px; flex: 1; min-width: 0; font-size: 16px; }
.app-home__date-main strong { font-size: 18px; }
.app-home__date-main > span { display: inline-flex; align-items: center; gap: 6px; }
.app-home__ico { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }
.app-home__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.app-home__steps a {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 72px;
  padding: 10px 4px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  color: var(--ivory);
  text-decoration: none;
}
.app-home__steps strong { font-size: 24px; color: var(--gold); line-height: 1.2; }
.app-home__steps span { font-size: 15px; }
.app-home__plan { display: grid; margin: 0 0 10px; font-size: 16px; }
.app-home__plan span { font-size: 15px; color: var(--app-dim); }
.app-home__rings { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.app-home__ring-item { display: grid; justify-items: center; gap: 4px; text-align: center; }
.app-home__ring {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--pct, 0) * 1%), rgba(var(--a-ink-rgb), 0.1) 0);
}
.app-home__ring::before { content: ""; grid-area: 1 / 1; width: 66px; height: 66px; border-radius: 50%; background: var(--s-bg-2); }
.app-home__ring-val { grid-area: 1 / 1; position: relative; font-size: 20px; font-weight: 700; color: var(--gold); }
.app-home__ring-label { font-size: 16px; color: var(--ivory); }
.app-home__ring-sub { font-size: 14px; color: var(--app-dim); }
.app-home__coins {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  background: var(--app-card-bg);
  color: var(--ivory);
  font-size: 16px;
  text-decoration: none;
}
.app-home__coins span:nth-of-type(1) { flex: 1; }
.app-home__coins strong { font-size: 20px; color: var(--gold); }
.app-home__upgrade .app-btn { width: 100%; }
.app-home__shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.app-home__shortcut a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 4px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  color: var(--ivory);
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}
.app-home__shortcut svg { width: 26px; height: 26px; color: var(--gold); }
[data-shortcuts].is-editing .app-home__shortcuts { grid-template-columns: 1fr; }
[data-shortcuts].is-editing .app-home__shortcut { display: flex; align-items: center; gap: 8px; }
[data-shortcuts].is-editing .app-home__shortcut a { flex: 1; grid-template-columns: auto 1fr; justify-items: start; min-height: 52px; padding: 8px 12px; pointer-events: none; }
.app-home__move { display: flex; gap: 6px; }
.app-home__move .app-btn { min-height: 48px; padding: 0 10px; font-size: 15px; margin: 0; }
.app-home__shortcut[data-extra] a { opacity: 0.6; }
.app-home__short-actions { display: grid; gap: 10px; margin-top: 14px; }
.app-home__feed { display: grid; gap: 8px; margin-bottom: 12px; }
.app-home__feed a { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid transparent; color: var(--ivory); text-decoration: none; }
.app-home__feed a.is-unread { border-left-color: var(--gold); background: rgba(var(--a-gold-rgb), calc(0.05 * var(--a-k))); }
.app-home__feed strong { font-size: 16px; }
.app-home__feed span { font-size: 15px; color: var(--s-ink-2); }
.app-home__feed small { font-size: 14px; color: var(--app-dim); }
@media (max-width: 360px) { .app-home__shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* E16 會員選單新頁（紅線積分、安全守護、通知偏好、可見範圍、聯絡、FAQ、公告、收藏、文件、發票、退款、客服案件） */
.app-mc__lead { margin: 0 0 14px; font-size: 16px; line-height: 1.75; color: var(--s-ink-2); }
.app-mc__empty { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--app-dim); }
.app-mc__big { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0 0 8px; }
.app-mc__big strong { font-size: 48px; line-height: 1; color: var(--gold); }
.app-mc__big span { font-size: 18px; }
.app-mc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.app-mc__item { padding: 12px 0; border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.07); }
.app-mc__item:last-child { border-bottom: 0; }
.app-mc__item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.app-mc__meta { display: block; margin: 2px 0; font-size: 15px; line-height: 1.6; color: var(--app-dim); }
.app-mc__answer { margin: 8px 0 0; font-size: 16px; line-height: 1.8; color: var(--s-ink-2); white-space: normal; }
.app-mc__notes { margin: 0 0 14px; padding-left: 1.2em; font-size: 16px; line-height: 1.8; }
.app-mc__rule,
.app-mc__notice { border-top: 1px solid rgba(var(--a-ink-rgb), 0.07); }
.app-mc__rule summary,
.app-mc__notice summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 52px;
  padding: 10px 0;
  font-size: 16px;
  cursor: pointer;
}
.app-mc__notice summary { display: grid; }
.app-mc__notice.is-unread summary strong { color: var(--gold); }
.app-mc__rule ul { margin: 0 0 12px; padding-left: 1.2em; font-size: 16px; line-height: 1.8; }
.app-mc__sos-grid { display: grid; gap: 10px; }
.app-mc__sos-grid .app-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin: 0; font-size: 17px; }
.app-mc__sos-grid svg { width: 20px; height: 20px; }
.app-mc__tips { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.app-mc__tips li { display: grid; gap: 2px; font-size: 16px; line-height: 1.7; }
.app-mc__tips strong { color: var(--gold); }
.app-mc__modes { margin: 0 0 6px; padding-left: 1.2em; font-size: 15px; line-height: 1.8; color: var(--s-ink-2); }
.app-mc__visgroup { margin-top: 16px; min-width: 0; }
.app-mc__visgroup legend { padding: 0 6px; }
.app-mc__visrow { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid rgba(var(--a-ink-rgb), 0.07); }
.app-mc__visrow:last-child { border-bottom: 0; }
.app-mc__visname { display: grid; gap: 2px; font-size: 16px; }
.app-mc__visname small { font-size: 14px; color: var(--app-dim); }
.app-mc__visrow select { min-height: 48px; font-size: 16px; }
.app-mc__visform .app-form-actions { position: static; display: block; margin: 18px 0 0; padding: 0; border-top: 0; background: none; }
.app-mc__visform .app-form-actions .app-btn { width: 100%; }
.app-mc__contact { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.app-mc__contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--app-card-line);
  border-radius: var(--a-r);
  background: var(--app-card-bg);
  color: var(--ivory);
  text-decoration: none;
}
.app-mc__contact-row svg { flex: 0 0 auto; width: 26px; height: 26px; color: var(--gold); }
.app-mc__contact-row > span:nth-of-type(1) { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.app-mc__contact-row small { font-size: 14px; color: var(--app-dim); }
.app-mc__more { margin-top: 8px; }
.app-mc__faqnav { margin-bottom: 4px; gap: 8px; }
.app-mc__faqnav .app-chip { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.app-mc__favs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.app-mc__fav { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--app-card-line); border-radius: var(--a-r); background: var(--app-card-bg); }
.app-mc__fav-main { display: flex; align-items: center; gap: 14px; color: var(--ivory); text-decoration: none; }
.app-mc__fav-main img { flex: 0 0 auto; width: 72px; height: 72px; border-radius: var(--a-r); object-fit: cover; }
.app-mc__fav-main > span { display: grid; gap: 4px; font-size: 16px; }
.app-mc__fav-main strong { font-size: 18px; }
.app-mc__fav .app-btn { margin: 0; min-height: 48px; }
.app-mc__thread { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.app-mc__msg { padding: 10px 12px; border: 1px solid var(--app-card-line); border-radius: var(--a-r); }
.app-mc__msg--me { border-color: rgba(var(--a-gold-rgb), calc(0.4 * var(--a-k))); background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k))); }
.app-mc__msg small { font-size: 14px; color: var(--app-dim); }
.app-mc__msg p { margin: 4px 0 0; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.app-mc__shot { display: block; max-width: 160px; margin-top: 8px; border-radius: var(--a-r); }
.app-mc .app-btn-row .app-btn svg { width: 18px; height: 18px; vertical-align: -3px; }
.app-mc [hidden] { display: none !important; }
.app-home [hidden] { display: none !important; }
.app-mc a:not([class]), .app-home a:not([class]) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
/* ===== E13–E15 獎勵與推薦、活動進階、約會後互動回饋（2026-11-03，r2-engage；只用既有 tokens） ===== */
.app-rewards__balance { margin: 0 0 12px; color: var(--gold); line-height: 1.2; }
.app-rewards__num { font-size: 40px; font-weight: 600; letter-spacing: 0.02em; }
.app-rewards__unit { font-size: 18px; }
.app-rewards__level { margin: 0 0 10px; color: var(--gold); font-size: 18px; }
.app-rewards__bar { position: relative; height: 12px; margin: 4px 0 10px; border-radius: 999px; background: var(--app-card-bg); border: 1px solid var(--app-line); overflow: hidden; }
.app-rewards__fill { position: absolute; inset: 0 auto 0 0; background: var(--s-btn); border-radius: 999px; }
.app-rewards__ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.app-rewards__ladder li { display: grid; gap: 2px; min-height: 56px; padding: 8px 10px; border: 1px solid var(--app-card-line); border-radius: var(--a-r); color: var(--app-dim); }
.app-rewards__ladder li.is-reached { border-color: rgba(var(--a-gold-rgb), calc(0.45 * var(--a-k))); color: var(--ivory); }
.app-rewards__ladder li.is-current { background: rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k))); }
.app-rewards__peak { font-size: 16px; }
.app-rewards__sub, .app-events__sub { margin: 14px 0 8px; color: var(--gold); font-size: 16px; font-weight: 500; letter-spacing: 0.04em; }
.app-rewards__hot ol { margin: 0 0 12px; padding-left: 1.4em; line-height: 1.8; }
.app-rewards__task { padding: 12px 0; border-bottom: 1px solid var(--app-card-line); }
.app-rewards__task p { margin: 0 0 6px; }
.app-rewards__amount { color: var(--gold); white-space: nowrap; }
.app-rewards__notice { padding: 12px 14px; border: 1px solid var(--app-line); border-radius: var(--a-r); color: var(--ivory); }
.app-rewards__gifts { margin: 0; padding: 0; list-style: none; }
.app-rewards__gift { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--app-card-line); }
.app-rewards__gift .app-rewards__state, .app-rewards__gift .app-btn { grid-column: 1 / -1; justify-self: start; }
.app-rewards__state { color: var(--app-dim); font-size: 16px; }
.app-rewards__rules { margin: 0 0 8px; padding-left: 1.2em; color: var(--ivory); line-height: 1.75; }

.app-events__cover { display: block; width: calc(100% + 32px); max-width: none; height: auto; margin: -22px -16px 14px; border-radius: var(--a-r) var(--a-r) 0 0; aspect-ratio: 16 / 9; object-fit: cover; }
.app-events__timeline { margin: 0 0 10px; padding: 0; list-style: none; border-left: 2px solid var(--app-line); }
.app-events__timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 6px 0 6px 14px; line-height: 1.6; }
.app-events__time { color: var(--gold); }
.app-events__list { margin: 0 0 10px; padding-left: 1.2em; line-height: 1.75; }
.app-events__notices { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--app-line); border-radius: var(--a-r); }
.app-events__notices legend { padding: 0 6px; color: var(--gold); }
.app-events__check { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 10px 0 2px; margin: 0 !important; }
.app-events__check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--gold); }
.app-events__notice-body summary, .app-events__more summary, .app-feedback__details summary { min-height: 44px; display: flex; align-items: center; color: var(--gold); cursor: pointer; }
.app-events__notice-body p { margin: 0 0 8px 32px; color: var(--app-dim); font-size: 15px; }
.app-events__more { margin: 0 0 14px; }
.app-events__transfer { padding: 12px 14px; border: 1px dashed var(--app-line); border-radius: var(--a-r); white-space: pre-line; }
.app-events__face { display: flex; align-items: center; justify-content: center; margin: 8px 0 6px; text-decoration: none; }
.app-events__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.app-events__tabs .app-services__small { margin: 0; }
.app-events__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.app-events__photo img, .app-events__photo video { display: block; width: 100%; height: auto; border-radius: var(--a-r); background: var(--app-card-bg); }
.app-events__photo .app-services__small { width: 100%; }

.app-feedback__form { margin-top: 8px; }
.app-feedback__step { margin: 0 0 18px; padding: 14px; border: 1px solid var(--app-card-line); border-radius: var(--a-r); }
.app-feedback__step legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; color: var(--gold); font-size: 17px; }
.app-feedback__no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--ivory); font-size: 15px; }
.app-feedback__label { margin: 12px 0 6px !important; color: var(--ivory); }
.app-feedback__choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.app-feedback__chip { display: inline-flex !important; align-items: center; gap: 8px; min-height: 48px; margin: 0 !important; padding: 0 14px; border: 1px solid var(--app-line); border-radius: 999px; cursor: pointer; }
.app-feedback__chip input { width: 20px; height: 20px; accent-color: var(--gold); }
.app-feedback__chip:has(input:checked) { border-color: var(--gold); background: rgba(var(--a-gold-rgb), calc(0.1 * var(--a-k))); }
.app-feedback__star { display: grid !important; grid-template-columns: 1fr 112px; align-items: center; gap: 10px; }
.app-feedback__confirm { display: flex !important; align-items: flex-start; gap: 10px; min-height: 48px; }
.app-feedback__confirm input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); }
.app-feedback__received { padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(var(--a-gold-rgb), calc(0.06 * var(--a-k))); border-radius: 0 var(--a-r) var(--a-r) 0; }
/* ===== E24 活動人臉比對報到（同意頁） ===== */
.app-face__lead { text-align: left; margin-top: 0; font-size: 16px; line-height: 1.8; }
.app-face__terms { margin: 0 0 14px; padding-left: 1.4em; font-size: 16px; line-height: 1.8; }
.app-face__terms li + li { margin-top: 6px; }
.app-face__agree { margin-bottom: 14px; }
.app-face .app-btn + .app-btn { margin-top: 12px; }
