:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f1f1f8;
  --text: #17172b;
  --muted: #6b6b85;
  --line: #e4e4ef;
  --primary: #4f46e5;
  --primary-ink: #ffffff;
  --primary-soft: #ecebff;
  --accent: #f0643c;
  --accent-soft: #fff0ea;
  --ok: #16a34a;
  --ok-soft: #e8f8ee;
  --warn: #b45309;
  --warn-soft: #fff6e0;
  --danger: #dc2626;
  --pro: #b7791f;
  --pro-soft: #fff5dc;
  --shadow: 0 1px 2px rgba(20, 20, 50, .05), 0 6px 20px rgba(20, 20, 50, .06);
  --shadow-hover: 0 2px 4px rgba(20, 20, 50, .06), 0 12px 28px rgba(79, 70, 229, .12);
  --radius: 16px;
  --sk: #ebebf3; --sk-hi: #f6f6fb;
  --wrap: 1120px;
  --badge-red: #e5484d; --badge-ink: #ffffff; /* v1.8.0：未讀數字 */
  --verified: #1d9bf0; --verified-ink: #ffffff; /* v1.8.0：藍勾勾 */
}
/* v1.12.0：深色只在使用者手動選擇時套用（html[data-theme="dark"]），預設一律亮色 */
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0f0f17; --surface: #181824; --surface-2: #22222f; --text: #ececf5; --muted: #9a9ab3; --line: #2c2c3c;
    --primary: #8b84ff; --primary-ink: #0f0f17; --primary-soft: #26244a; --accent: #ff8a65; --accent-soft: #3a241e;
    --ok: #4ade80; --ok-soft: #173023; --warn: #fbbf24; --warn-soft: #33290f; --pro: #f6c453; --pro-soft: #332a12;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    --shadow-hover: 0 2px 4px rgba(0,0,0,.35), 0 12px 28px rgba(0,0,0,.35);
    --sk: #23232f; --sk-hi: #2c2c3a; --danger: #f87171;
    --badge-red: #e5484d; --badge-ink: #ffffff; --verified: #4cb3ff; --verified-ink: #0f0f17;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Tahoma", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.app { max-width: var(--wrap); margin: 0 auto; padding: 16px 16px 96px; min-height: 70vh; }
body { overflow-wrap: break-word; }
.center { text-align: center; } .muted { color: var(--muted); } .pad { padding: 32px 0; } .small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .spacer { flex: 1; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stack > * + * { margin-top: 12px; }
h1 { font-size: 26px; line-height: 1.3; margin: 8px 0 12px; letter-spacing: -.01em; }
h2 { font-size: 19px; margin: 24px 0 10px; } h3 { font-size: 16px; margin: 0 0 6px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); font-size: 16px; min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .brand span { font-size: 14px; } .topbar-in { gap: 8px; } }
.me-link { display: inline-flex; flex: none; }
.brand-logo { width: 28px; height: 28px; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { color: var(--muted); padding: 6px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; position: relative; }
.topnav a.on { color: var(--primary); background: var(--primary-soft); }
@media (min-width: 760px) { .topnav { display: flex; } .tabbar { display: none !important; } .app { padding-bottom: 40px; } }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tabbar a.on { color: var(--primary); }
.tabbar svg { width: 22px; height: 22px; }
.badge-dot { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--badge-red); color: var(--badge-ink); box-shadow: 0 0 0 2px var(--surface); font-size: 11px; line-height: 17px; text-align: center; font-weight: 700; }
.topnav .badge-dot { top: -4px; left: auto; right: -4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 12px; cursor: pointer; font-weight: 650; font-size: 14px; color: var(--text); transition: transform .05s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--danger); }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.liked { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.link { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card.link:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: var(--shadow-hover); }
.card.link:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
a.card { color: inherit; display: block; }
.pcard { display: flex; flex-direction: column; gap: 10px; }
.pcard-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.avatar.lg { width: 76px; height: 76px; font-size: 28px; } .avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.name { font-weight: 750; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.headline { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--text); border: 1px solid transparent; }
.chip.role { background: var(--primary-soft); color: var(--primary); }
.chip.want { background: var(--accent-soft); color: var(--accent); }
.chip.pro { background: var(--pro-soft); color: var(--pro); font-size: 11px; padding: 1px 8px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.score { font-weight: 800; color: var(--ok); font-size: 13px; background: var(--ok-soft); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.reasons { font-size: 12.5px; color: var(--muted); }
.label { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* forms */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.input, textarea.input, select.input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); outline: none; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input { min-height: 96px; resize: vertical; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.pick button.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pick.accent button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lock-box { border: 1px dashed var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.private { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); font-weight: 700; }

/* tabs */
.tabs { display: flex; gap: 6px; margin: 8px 0 16px; overflow-x: auto; }
.tabs button { border: 0; background: var(--surface-2); padding: 8px 14px; border-radius: 999px; font-weight: 650; cursor: pointer; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: var(--text); color: var(--bg); }

/* landing */
.hero { padding: 36px 0 12px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.18; margin: 0 0 14px; letter-spacing: -.02em; }
.hero .x { color: var(--accent); }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 0 22px; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.stats b { font-size: 22px; display: block; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan.hl { border: 2px solid var(--primary); }
.price { font-size: 30px; font-weight: 800; } .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
ul.check { padding: 0; margin: 10px 0; list-style: none; } ul.check li { padding: 3px 0 3px 24px; position: relative; font-size: 14px; }
ul.check li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
ul.check li.no::before { content: "–"; color: var(--muted); } ul.check li.no { color: var(--muted); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 12px; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.bubble.mine { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.bubble time { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.composer { position: sticky; bottom: calc(57px + env(safe-area-inset-bottom)); display: flex; gap: 8px; background: var(--bg); padding: 8px 0; }
@media (min-width: 760px) { .composer { bottom: 0; } }
.composer textarea { min-height: 44px; height: 44px; flex: 1; }
.contact-card { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); border-radius: 14px; padding: 12px 14px; }
.contact-card b { color: var(--ok); }

/* modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(10,10,25,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-bg { align-items: center; } }
.modal { background: var(--surface); width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; }
@media (min-width: 640px) { .modal { border-radius: 20px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; z-index: 60; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); }
.banner { padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.banner.ok { background: var(--ok-soft); color: var(--ok); } .banner.info { background: var(--primary-soft); color: var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }
.menu-dots { position: relative; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; }
.kv div:nth-child(odd) { color: var(--muted); }
.locked { filter: blur(5px); pointer-events: none; user-select: none; }
.upsell { border: 1px solid var(--pro); background: var(--pro-soft); border-radius: 16px; padding: 16px; }
.upsell b { color: var(--pro); }
.footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 0 10px; }

/* v1.1.0：條款同意視窗 */
.modal.consent { max-width: 560px; }
.consent-box { margin-top: 12px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.65; max-height: 34vh; overflow: auto; display: grid; gap: 6px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; font-size: 14px; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--primary); }
.consent-check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

/* v1.1.0：聯絡方式「公開」開關 */
.contact-head { margin-bottom: 6px; }
.contact-head > label { font-weight: 700; font-size: 14px; }
.pub-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 700; user-select: none; }
.pub-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pub-toggle .sw { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.pub-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.pub-toggle input:checked + .sw { background: var(--primary); }
.pub-toggle input:checked + .sw::after { transform: translateX(14px); }
.pub-toggle input:focus-visible + .sw { outline: 2px solid var(--primary); outline-offset: 2px; }
.pub-toggle .pub-txt { color: var(--muted); min-width: 4.5em; }
.pub-toggle .pub-txt::after { content: attr(data-off); }
.pub-toggle input:checked ~ .pub-txt { color: var(--primary); }
.pub-toggle input:checked ~ .pub-txt::after { content: attr(data-on); }
.row.contact-head { flex-wrap: nowrap; align-items: center; }
.contact-head > label:first-child { flex: 1; min-width: 0; margin: 0; }
.contact-head .pub-toggle { flex: none; }

/* v1.2.0：UID、體驗、GM */
.uid { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); padding: 3px 9px 3px 4px; border-radius: 999px; font: 600 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; letter-spacing: .02em; }
.uid:hover { border-color: var(--primary); }
.uid .uid-k { font-family: inherit; font-size: 10.5px; font-weight: 800; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 1px 6px; letter-spacing: .04em; }
.uid svg, .btn svg { width: 14px; height: 14px; flex: none; }
.chip.trial { background: var(--ok-soft); color: var(--ok); }
.chip.gm { background: var(--text); color: var(--bg); font-size: 11px; padding: 1px 8px; letter-spacing: .05em; }
.chip.off { background: var(--surface-2); color: var(--muted); }
.gm-strip { background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; }
.gm-strip-in { max-width: var(--wrap); margin: 0 auto; padding: 7px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gm-strip button, .gm-strip a { background: transparent; border: 1px solid color-mix(in srgb, var(--bg) 45%, transparent); color: var(--bg); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.code-list { display: grid; gap: 10px; }
.code-row { display: grid; gap: 6px; }
.code-row .code-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-row .code { font-size: 16px; font-weight: 800; }
.code-row.disabled { opacity: .6; }
.redeem-input { text-transform: uppercase; }
.redeem-input::placeholder { text-transform: none; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.form-grid label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.new-codes { background: var(--ok-soft); border-radius: 12px; padding: 10px 12px; }
.code-row .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 4px 12px; flex-wrap: wrap; }

/* ============ v1.3.0 ============ */
.grow { flex: 1; min-width: 0; }
.nowrap-top { flex-wrap: nowrap; align-items: flex-start; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
.break { word-break: break-all; }
.clamp1, .clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { -webkit-line-clamp: 1; } .clamp2 { -webkit-line-clamp: 2; } .clamp3 { -webkit-line-clamp: 3; }
.req { color: var(--accent); font-weight: 800; }
.page-head { margin: 4px 0 14px; } .page-head h1 { margin: 4px 0 4px; }
.section-head { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; } .section-head h2 { margin: 0 0 8px; scroll-margin-top: 80px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.back-link:hover { color: var(--primary); }
.check-row { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin: 0; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.link-btn.danger { color: var(--danger); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
@media (min-width: 1024px) { .only-mobile { display: none !important; } }

/* 骨架畫面 */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--sk) 25%, var(--sk-hi) 50%, var(--sk) 75%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.sk-av { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.sk-line { height: 12px; margin: 7px 0; } .w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.sk-title { width: 180px; height: 26px; margin: 10px 0 18px; }
.sk-card { min-height: 190px; } .sk-row { gap: 12px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
#list.loading { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* 確認視窗、視窗按鈕列 */
.m-title { margin: 0 0 8px; font-size: 19px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal.confirm { max-width: 420px; }
.confirm-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; margin-bottom: 10px; }
.confirm-ic.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
@media (max-width: 639px) { .modal-actions .btn { flex: 1; } }

/* 未讀 */
a.card.match-row, .match-row { display: flex; align-items: center; gap: 12px; } /* v1.10.1：a.card 的 display: block 會蓋掉，要寫得更明確 */
.match-row.unread { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.match-row.unread .nm { font-weight: 800; }
.match-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.unread-badge { display: inline-block; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--badge-red); color: var(--badge-ink); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.unread-note { color: var(--accent) !important; font-weight: 800 !important; margin-left: 6px; }

/* 人物卡（v1.3.0 改版：想找什麼、推薦理由更顯眼；同一排卡片等高） */
.grid { align-items: stretch; }
.pcard { gap: 10px; height: 100%; }
.pcard-id { min-width: 0; flex: 1; }
.pcard .name { min-width: 0; } .name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pcard .headline { font-size: 13.5px; line-height: 1.45; min-height: 2.9em; }
.pcard-want { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 7px 9px; }
.pcard-lbl { font-size: 12px; font-weight: 800; color: var(--accent); white-space: nowrap; padding-top: 3px; }
.pcard-want .chip.want { background: var(--surface); }
.pcard-why { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ok); font-weight: 650; }
.chips.one-line { flex-wrap: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chips.one-line .chip { flex: none; }
.pcard-bottom { margin-top: auto; display: grid; gap: 8px; }
.pcard-meta { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.inv-msg { max-height: 8.5em; overflow: auto; }
.score.big-score { font-size: 18px; padding: 6px 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; border-radius: 14px; }
.score.big-score small { font-size: 10.5px; font-weight: 700; opacity: .8; }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

/* 首頁 */
.home-top { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .home-top { grid-template-columns: 3fr 2fr; } }
.next h3, .comp h3 { margin: 0 0 6px; }
.next-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.next-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 14px; }
.next-list a:hover { background: var(--primary-soft); color: var(--primary); }
.next-list li.hot a { background: var(--accent-soft); color: var(--accent); }
.ns-ic { flex: none; width: 22px; text-align: center; } .ns-t { flex: 1; min-width: 0; } .ns-go { flex: none; opacity: .6; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat .price { font-size: 26px; }
.welcome { max-width: 640px; }
.welcome-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 2px; }
.stat-grid-admin { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; }

/* 檔案完成度 */
.comp .bar, .wiz-prog .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0; }
.comp .bar i, .wiz-prog .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: width .25s; }
.comp-pct { color: var(--primary); font-size: 18px; }
.comp-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.comp-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 14px; }
.comp-list a { font-weight: 650; }
.comp-list li > span { flex: none; white-space: nowrap; }
.comp.done { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }

/* 檔案表單：欄位錯誤、分段 */
.field.invalid > .input, .field.invalid .input { border-color: var(--danger); }
.field.invalid .pick { outline: 1.5px solid var(--danger); outline-offset: 6px; border-radius: 12px; }
.lock-box.invalid { border-color: var(--danger); border-style: solid; }
.field-err { color: var(--danger); font-size: 13px; font-weight: 650; margin-top: 6px; }
.field.flash { animation: flash 1.6s ease; border-radius: 12px; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--primary-soft); background: var(--primary-soft); } 100% { box-shadow: none; background: transparent; } }
.sec-title { margin: 0 0 2px; font-size: 18px; } .sec-desc { margin: 0 0 16px; }
.pf-sec { scroll-margin-top: 80px; } .pf-sec + .pf-sec { margin-top: 14px; }
.pf-sec .field:last-child { margin-bottom: 0; }
.savebar { position: sticky; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 5; padding: 12px 0 4px; background: linear-gradient(transparent, var(--bg) 35%); }
@media (min-width: 760px) { .savebar { bottom: 0; } }
.profile-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.profile-layout { grid-template-areas: "comp" "main" "side"; }
.pf-comp { grid-area: comp; } .pf-main { grid-area: main; min-width: 0; } .pf-side { grid-area: side; min-width: 0; }
.pf-side h2:first-child { margin-top: 0; }
@media (min-width: 1024px) { .profile-layout { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main comp" "main side"; grid-template-rows: auto 1fr; align-items: start; } }
.uid-row { margin: -4px 0 14px; }
.account .row { flex-wrap: nowrap; } .account .row > :last-child { text-align: right; }
@media (max-width: 420px) { .account .row { flex-wrap: wrap; } }
.pick.sm button { padding: 5px 11px; font-size: 13px; }

/* 精靈 */
.wiz { max-width: 720px; margin: 0 auto; }
.wiz-prog { margin-bottom: 14px; }
.wiz-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wiz-steps li > span, .wiz-steps li > button { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 650; background: none; border: 0; padding: 0; cursor: default; min-width: 0; text-align: left; }
.wiz-steps li > button { cursor: pointer; }
.wiz-steps .n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 12px; font-weight: 800; }
.wiz-steps .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-steps li.cur .n { background: var(--primary); color: var(--primary-ink); } .wiz-steps li.cur > span { color: var(--text); }
.wiz-steps li.done .n { background: var(--ok-soft); color: var(--ok); } .wiz-steps li.done > button { color: var(--ok); }
@media (max-width: 520px) { .wiz-steps .t { display: none; } .wiz-steps li.cur .t { display: inline; } .wiz-steps { grid-template-columns: auto auto auto auto; justify-content: space-between; } }
.wiz-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; position: sticky; bottom: calc(57px + env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 0; z-index: 5; }
@media (min-width: 760px) { .wiz-nav { bottom: 0; } }

/* 探索 */
.disc { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "filters" "results"; }
.disc-search { grid-area: search; } .filters { grid-area: filters; } .disc-results { grid-area: results; min-width: 0; }
.search-row { display: flex; gap: 8px; }
.search-row .input { flex: 1; min-width: 0; }
.filter-toggle { position: relative; } .filter-toggle svg { width: 16px; height: 16px; }
.fcount:not(:empty) { background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; }
@media (max-width: 420px) { .filter-toggle span:not(.fcount) { display: none; } .search-row .btn { padding-left: 12px; padding-right: 12px; } }
.tabs.roles { margin: 10px 0 0; scrollbar-width: none; } .tabs.roles::-webkit-scrollbar { display: none; }
.filters { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.filters.open { display: block; }
.filters-head { display: flex; align-items: center; margin-bottom: 8px; }
.fgroup { padding: 10px 0; border-top: 1px solid var(--line); } .fgroup .label { display: block; }
.fgroup .check-row + .check-row { margin-top: 8px; }
.filters #fdone { margin-top: 10px; }
.result-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 34px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.active-chips:not(:empty) { margin-bottom: 12px; }
.chip.removable, .chip.clear-all { cursor: pointer; border: 1px solid var(--line); background: var(--surface); }
.chip.removable:hover { border-color: var(--danger); color: var(--danger); }
.chip.clear-all { color: var(--muted); background: transparent; border-style: dashed; }
@media (min-width: 1024px) {
  .disc { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "filters search" "filters results"; column-gap: 20px; align-items: start; }
  .filters { display: block; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
  .filter-toggle { display: none; }
}

/* 個人頁 */
.person-layout { display: grid; gap: 14px; margin-top: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .person-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .person-head { position: sticky; top: 76px; } }

/* 開場白 */
.ice { margin-top: 12px; }
.ice-list { display: grid; gap: 6px; }
.ice-btn { text-align: left; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); color: var(--text); border-radius: 12px; padding: 8px 11px; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.ice-btn:hover { border-style: solid; border-color: var(--primary); }
.ice-btn::before { content: "＋ "; color: var(--primary); font-weight: 800; }
.counter { font-variant-numeric: tabular-nums; color: var(--muted); } .counter.warn { color: var(--warn); font-weight: 700; }
.chat-empty { text-align: center; padding: 18px 0 6px; } .chat-empty .ice { text-align: left; max-width: 560px; margin: 12px auto 0; }
.chat-head { margin-top: 10px; flex-wrap: nowrap; }
.contact-fold { margin-top: 10px; } .contact-fold summary { cursor: pointer; list-style: none; } .contact-fold summary::-webkit-details-marker { display: none; }
.contact-fold summary::after { content: " ▾"; color: var(--ok); }
.composer-hint { text-align: right; margin-top: -2px; }
@media (max-width: 759px) { .composer-hint { display: none; } }
.chat { min-height: 120px; }

/* Club */
.club-card { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.club-card h3 { margin: 2px 0 0; }
.club-card-foot { margin-top: auto; display: grid; gap: 6px; }
.club-head { margin-top: 10px; }
.club-layout { display: grid; gap: 4px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .club-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .club-side { position: sticky; top: 76px; } }
.post-composer { display: grid; gap: 8px; } .post-composer textarea { min-height: 80px; }
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.post-head .who { display: inline-flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.post-body { margin-top: 8px; }
.comments { margin-top: 10px; display: grid; gap: 8px; }
.comments:has(> :first-child) { border-top: 1px solid var(--line); padding-top: 10px; }
.cmt { display: flex; gap: 8px; align-items: flex-start; }
.cmt-bubble { background: var(--surface-2); border-radius: 12px; padding: 6px 10px; font-size: 14px; min-width: 0; flex: 1; }
.cmt-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; flex-wrap: wrap; } .cmt-meta a { color: var(--text); }
.cmt-meta .link-btn { margin-left: auto; }
.cmt-form { display: flex; gap: 8px; } .cmt-form .input { padding: 8px 11px; flex: 1; min-width: 0; }
.avatar.xs { width: 28px; height: 28px; font-size: 12px; }
.member-list { padding: 8px; display: grid; gap: 2px; max-height: 70vh; overflow: auto; }
.member { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; color: var(--text); }
.member:hover { background: var(--surface-2); }
.small-name { font-size: 14px; }

/* 首頁（未登入） */
.hero { display: grid; gap: 28px; padding: 28px 0 8px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding-top: 44px; } }
.hero-tag { margin-bottom: 14px; }
.hero .nw { white-space: nowrap; }
@media (max-width: 380px) { .hero h1 { font-size: 28px; } }
.hero-cta { margin-bottom: 14px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero-trust li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.hero-samples { position: relative; display: grid; gap: 12px; padding: 30px 14px 14px; border-radius: 24px; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.sample-tag { position: absolute; top: 9px; left: 14px; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.pcard.sample { cursor: default; }
.pcard.sample .headline { min-height: 0; }
@media (min-width: 960px) { .pcard.sample:nth-of-type(2) { margin-left: 24px; } .pcard.sample:nth-of-type(3) { margin-left: 8px; } }
@media (max-width: 959px) { .pcard.sample:nth-of-type(3) { display: none; } }
.sec-h { margin-top: 40px; }
.club-promo { background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 800; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.final-cta { margin-top: 32px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--primary-soft); border-color: transparent; }
.final-cta h3 { margin: 0 0 2px; font-size: 18px; }
@media (max-width: 520px) { .final-cta .btn { width: 100%; } }

.plan { display: flex; flex-direction: column; } .plan > .btn:last-child { margin-top: auto; } .plan ul.check { margin-bottom: 16px; }

/* ============ v1.4.0：聚會、訊息、先線上聊聊 ============ */
.chip.live { background: var(--accent); color: #fff; }
.chip.mode-chip { background: var(--surface-2); color: var(--muted); font-weight: 650; }
.chip.sm { font-size: 11px; padding: 1px 7px; }
.chip.removable.sel { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs.msg-tabs { scrollbar-width: none; } .tabs.msg-tabs::-webkit-scrollbar { display: none; }
.tab-n { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; font-size: 11px; font-weight: 800; text-align: center; background: var(--surface); color: var(--muted); }
.tab-n.hot { background: var(--badge-red); color: var(--badge-ink); }
.tabs button.on .tab-n:not(.hot) { background: var(--bg); color: var(--text); }
.inv-mode { margin-bottom: -2px; }
.input.bad { border-color: var(--danger); }
.meet-hint.err { color: var(--danger); font-weight: 650; }

/* 聚會卡片 */
.mcard { display: flex; gap: 12px; align-items: flex-start; height: 100%; }
.mcard-date { flex: none; width: 58px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; flex-direction: column; align-items: center; padding: 7px 0 6px; line-height: 1.2; }
.mcard-date b { font-size: 17px; } .mcard-date span { font-size: 11.5px; font-weight: 700; } .mcard-date .mcard-hm { margin-top: 3px; font-size: 12px; color: var(--text); }
.mcard-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mcard-body h3 { margin: 2px 0 0; font-size: 15.5px; line-height: 1.4; }
.mcard-chips { gap: 4px; } .mcard-chips .chip { font-size: 11.5px; padding: 1px 8px; }
.mcard.is-canceled { opacity: .65; } .mcard.is-canceled h3 { text-decoration: line-through; }
.mstrip { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .mstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.empty-inline { padding: 14px 16px; }
.meet-intro { margin: -6px 0 6px; }
.tag-filter { margin: -6px 0 10px; } .tag-filter:empty { display: none; }
#quota:not(:empty) { margin: -4px 0 12px; }
.club-meets { margin-top: 10px; }
.meet-promo { display: flex; gap: 14px; align-items: flex-start; }
.meet-promo-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.meet-promo-ic svg { width: 24px; height: 24px; }

/* 首頁：下一場聚會 */
.next-meet { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 6px 0 10px; display: grid; gap: 10px; background: var(--surface-2); }
.next-meet.live { border-color: var(--accent); background: var(--accent-soft); }
.nm-top { display: flex; gap: 10px; align-items: center; }
.nm-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.nm-ic svg { width: 20px; height: 20px; }
.next-meet.live .nm-ic { background: var(--accent); color: #fff; }
.nm-title { font-weight: 750; color: var(--text); font-size: 15px; }
.nm-when { color: var(--muted); } .next-meet.live .nm-when { color: var(--accent); }
.nm-nolink { color: var(--warn); font-weight: 600; }
.join-btn { font-weight: 800; }

/* 邀請方式 */
.mode-pick { display: grid; gap: 8px; margin-top: 6px; }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mode-opt input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--primary); }
.mode-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mode-txt { display: grid; gap: 1px; min-width: 0; } .mode-txt b { font-size: 14.5px; }

/* 建立聚會 */
.mform { max-width: 760px; margin: 0 auto; }
.mform .card + .card { margin-top: 14px; }
.tpl-list { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.tpl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: center; font-size: 14px; }
.tpl:hover { border-color: var(--primary); } .tpl.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.tpl-ic { font-size: 22px; line-height: 1.2; }
@media (max-width: 400px) { .tpl { padding: 10px 4px; font-size: 13px; } }
.mtime { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.mtime .field { margin-bottom: 0; }
.meet-step { border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 14px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 8px; }
.meet-step.compact { padding: 10px 12px; margin: 8px 0; }
.meet-step-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.meet-howto { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 1px; }
.meet-howto .mono { font-size: 12px; word-break: break-all; }
.meet-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meet-row .input { flex: 1 1 220px; min-width: 0; }
.meet-step.invalid .input { border-color: var(--danger); }
.privacy-note { background: var(--primary-soft); color: var(--text); border-radius: 12px; padding: 10px 12px; }

/* 聚會頁 */
.meet-layout { display: grid; gap: 14px; margin-top: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .meet-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .meet-head { position: sticky; top: 76px; } }
.meet-main > section + section, .meet-main > section + .row { margin-top: 4px; }
.meet-main h2 { margin: 18px 0 8px; } .meet-main > section:first-child h2 { margin-top: 0; }
.meet-main > .card + section, .meet-main > section.card + section.card { margin-top: 14px; }
.meet-when { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.meet-when-main { font-weight: 750; font-size: 16px; }
.join-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); border-radius: 14px; padding: 10px 12px; }
.join-box .grow { flex: 1 1 180px; }
.join-box.live { border-color: var(--accent); background: var(--accent-soft); }
.live-txt { color: var(--accent); }
.warn-box { border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); border-radius: 14px; padding: 10px 12px; }
.warn-box > b { color: var(--warn); }
.cal-row .btn { flex: 1 1 auto; }
.host-tools { border-top: 1px solid var(--line); padding-top: 12px; }
.member-list.plain { max-height: none; }
.member-list .member { display: flex; align-items: center; gap: 8px; }
.member-a { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--text); }
div.member:hover { background: transparent; } .member-a:hover .nm { color: var(--primary); }
.connect { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.connect .member-list { padding: 0; box-shadow: none; }

/* 聊天室上方：聯絡方式交換、1 對 1 */
#cx:not(:empty), #oo:not(:empty) { margin-top: 10px; }
.cx-card, .oo-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.cx-card { border-style: dashed; background: var(--surface-2); }
.cx-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oo-card { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.slot-list { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 650; }
button.slot { cursor: pointer; background: var(--surface); border-color: var(--primary); color: var(--primary); }
button.slot:hover { background: var(--primary); color: var(--primary-ink); }
button.slot[disabled] { opacity: .45; cursor: not-allowed; }
.oo-note { background: var(--surface-2); border-radius: 10px; padding: 6px 10px; }
.oo-meet + .oo-meet { border-top: 1px solid var(--line); padding-top: 10px; }
.oo-link { display: grid; gap: 6px; justify-items: start; }
.slot-inputs { margin-top: 12px; }
.slot-inputs .field { margin-bottom: 10px; }
.meet-step .hint { font-size: 12.5px; color: var(--muted); }
.tabs.msg-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; overflow: visible; }
.tabs.msg-tabs button { padding: 7px 4px; font-size: 13.5px; background: transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 0; }
.tabs.msg-tabs button.on { background: var(--text); color: var(--bg); }
.msg-tabs .tl-short { display: none; }
@media (max-width: 480px) { .msg-tabs .tl-long { display: none; } .msg-tabs .tl-short { display: inline; } .tab-n { margin-left: 3px; } }

/* ============ v1.5.0：CocoFun 品牌、電子名片、大頭貼、體驗碼 ============ */
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand .brand-name { font-size: 18px; font-weight: 850; letter-spacing: -.01em; white-space: nowrap; }
.brand .brand-sub { font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
@media (max-width: 400px) { .brand span.brand-txt { font-size: inherit; } }
@media (max-width: 430px) { .topbar.authed .brand-sub { display: none; } }
@media (max-width: 340px) { .brand-sub { display: none; } }
.hero-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-brand b { font-size: 22px; font-weight: 850; color: var(--primary); letter-spacing: -.01em; }
.hero-brand span { font-size: 14px; font-weight: 700; color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.avatar.xl { width: 104px; height: 104px; font-size: 40px; }

/* 體驗碼 */
.land-code { margin-top: 14px; }
.land-code-toggle { font-size: 14px; color: var(--primary); }
.land-code-box { margin-top: 8px; display: grid; gap: 6px; max-width: 460px; }
.land-code-box .row { flex-wrap: nowrap; } .land-code-box .input { flex: 1; min-width: 0; }
.redeem-msg:empty { display: none; }
.redeem-msg { color: var(--ok); font-weight: 650; } .redeem-msg.err { color: var(--danger); }
.home-code { margin-top: 14px; }
.redeem-compact { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 14px; }
.redeem-compact .rc-ic { font-size: 18px; }
.redeem-compact .rc-lbl { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; white-space: nowrap; }
.redeem-compact .rc-form { display: flex; gap: 8px; flex: 1 1 220px; min-width: 0; }
.redeem-compact .input { flex: 1; min-width: 0; padding: 7px 11px; }
.redeem-compact .redeem-msg { flex-basis: 100%; }
.upsell-code { margin-top: 10px; }
.redeem-kv { margin-top: 8px; }

/* 入口卡片（我的名片） */
a.card.card-entry, .card-entry { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--text); }
.card-entry:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.ce-ic { font-size: 24px; flex: none; } .ce-sub { display: block; }

/* 大頭貼設定 */
.photo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.photo-actions { display: grid; gap: 8px; justify-items: start; flex: 1; min-width: 180px; }
.photo-actions label.btn { cursor: pointer; }
.vis-pick { display: grid; gap: 8px; }
.mode-opt.disabled { opacity: .55; cursor: not-allowed; }
.photo-sec .field { margin-bottom: 14px; }

/* 裁切視窗 */
.modal.crop-modal { max-width: 560px; }
.crop-area { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.crop-wrap { position: relative; width: min(280px, 100%); aspect-ratio: 1; flex: 1 1 auto; max-width: 280px; border-radius: 14px; overflow: hidden; touch-action: none; cursor: grab; background: #888; user-select: none; }
.crop-wrap.dragging { cursor: grabbing; }
.crop-wrap canvas { display: block; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(10, 10, 25, .5); border: 2px solid rgba(255, 255, 255, .9); pointer-events: none; }
.crop-side { display: grid; gap: 4px; justify-items: center; flex: none; }
.crop-prev { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 300px; color: var(--muted); font-weight: 800; }
.crop-zoom input { flex: 1; accent-color: var(--primary); }
@media (max-width: 420px) { .crop-area { flex-direction: column; align-items: center; } .crop-side { flex-direction: row; gap: 10px; align-items: center; } .crop-prev { width: 64px; height: 64px; } }

/* 電子名片 */
.bcard-page { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.bcard.sk-card { min-height: 420px; }
.bcard-band { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 52px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(240, 100, 60, .9) 0 22%, transparent 23%), linear-gradient(120deg, #4f46e5, #8b5cf6); }
.bcard-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bcard-brand .brand-logo { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.bcard-brand > span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bcard-brand b { font-size: 16px; } .bcard-brand small { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard-tag { font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .2); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.bcard-id { text-align: center; padding: 0 18px; margin-top: -52px; }
.bcard-id .avatar.xl { margin: 0 auto; border: 4px solid var(--surface); box-shadow: 0 4px 14px rgba(20, 20, 50, .14); }
.bcard-name { font-size: 26px; margin: 10px 0 4px; word-break: break-word; }
.bcard-headline { color: var(--muted); font-size: 15px; line-height: 1.5; }
.bcard-chips { justify-content: center; margin-top: 10px; }
.bcard-body { padding: 18px; display: grid; gap: 14px; }
.bcard-want { background: var(--accent-soft); border-radius: 14px; padding: 10px 12px; }
.bcard-want .label { color: var(--accent); }
.bcard-want .chip.want { background: var(--surface); }
.bcard-note { margin-top: 6px; }
.bcard-kv { grid-template-columns: 100px 1fr; }
.bcard-qr { display: flex; gap: 14px; align-items: center; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.bcard-qr .qr { width: 112px; height: 112px; flex: none; border-radius: 10px; border: 1px solid var(--line); }
.bcard-qr > div { min-width: 0; } .bcard-url { word-break: break-all; font-size: 12px; margin-top: 2px; }
.bcard-actions .btn + .btn { margin-top: 8px; }
.bcard-missing { text-align: center; padding: 32px 18px; }
.bcard-missing h1 { font-size: 22px; }
.bcard-missing .confirm-ic { margin: 0 auto 10px; }
.bcard-about { display: grid; gap: 4px; background: var(--primary-soft); border-color: transparent; }
.sc-list { display: grid; gap: 8px; }
.sc-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--surface); min-width: 0; }
a.sc-item:hover { border-color: var(--primary); }
.sc-item .grow { display: grid; gap: 2px; }
.sc-item b { font-size: 14.5px; line-height: 1.4; }
.sc-kind { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.sc-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.sc-ic svg { width: 20px; height: 20px; } .sc-ic.proj { background: var(--accent-soft); color: var(--accent); }
.sc-roles { margin-top: 2px; } .sc-roles .chip { font-size: 11.5px; padding: 1px 8px; }

/* 分享 */
.share-row { display: grid; gap: 10px; }
.share-url { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 6px 6px 6px 12px; min-width: 0; }
.share-url .mono { flex: 1; font-size: 13px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btns .btn { flex: 1 1 auto; }
.sh-line { color: #06a547; } .sh-fb { color: #1877f2; }
:root[data-theme="dark"] .sh-line { color: #3ddc84; }
:root[data-theme="dark"] .sh-fb { color: #6aa8ff; }

/* 我的名片 */
.mycard-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.mycard-main > .card + .card, .mycard-main > .savebar + .card { margin-top: 14px; }
.mycard-side .label { margin-bottom: 8px; }
@media (min-width: 1024px) { .mycard-layout { grid-template-columns: minmax(0, 1fr) 440px; align-items: start; } .mycard-side { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; padding-bottom: 8px; } }
.card-switch { flex-wrap: nowrap; gap: 12px; } .card-switch label.grow { cursor: pointer; }
.pub-toggle.big .sw { width: 50px; height: 30px; } .pub-toggle.big .sw::after { width: 24px; height: 24px; top: 3px; left: 3px; } .pub-toggle.big input:checked + .sw::after { transform: translateX(20px); }
.card-explain { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.card-explain ul.check { margin: 0; } .card-explain ul.check li { font-size: 13.5px; }
.sc-pick { display: grid; gap: 8px; margin: 10px 0 6px; }
.sc-pick:empty { display: none; }
.sc-check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.sc-check input { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.sc-check .sc-item { flex: 1; }

/* 管理後台：儲存空間 */
.storage .bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.storage .bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.storage.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); } .storage.warn .bar i { background: var(--warn); }
.storage.danger { border-color: var(--danger); } .storage.danger .bar i { background: var(--danger); }
.recent-photos summary { cursor: pointer; }
.rp-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 10px; }
.rp { display: grid; gap: 2px; justify-items: center; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; min-width: 0; }
.rp > div { max-width: 100%; }
.bcard-page { grid-template-columns: minmax(0, 1fr); }
.bcard-page > * { min-width: 0; }
.bcard-actions .btn { white-space: normal; text-align: center; line-height: 1.35; }

/* v1.5.1：加到主畫面 / 安裝 App */
.btn.install-top { flex: none; color: var(--primary); background: var(--primary-soft); border-color: transparent; padding: 6px 10px; gap: 5px; }
.install-top svg { width: 18px; height: 18px; }
.install-top .install-lbl { font-size: 13px; }
@media (max-width: 759px) { .install-top .install-lbl { display: none; } .install-top { padding: 6px; } }
.install-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; position: relative; padding-right: 40px; }
.install-card img { border-radius: 11px; flex: none; }
.install-card .grow { min-width: 0; flex: 1; }
.install-card .btn { flex: none; }
.install-card .ins-x { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.install-card .ins-x:hover { background: var(--surface-2); }
@media (max-width: 480px) { .install-card { flex-wrap: wrap; } .install-card .btn { width: 100%; } }
.pf-side .install-card { padding-right: 16px; flex-wrap: wrap; } .pf-side .install-card .btn { width: 100%; }
.land-install { font-size: 14px; color: var(--primary); margin-right: 16px; }
.modal.install-modal .ins-head { display: flex; gap: 12px; align-items: center; }
.modal.install-modal .ins-head img { border-radius: 13px; flex: none; }
.ins-steps { margin: 14px 0 10px; padding-left: 0; list-style: none; counter-reset: ins; display: grid; gap: 10px; }
.ins-steps li { counter-increment: ins; position: relative; padding: 10px 12px 10px 46px; background: var(--surface-2); border-radius: 12px; font-size: 14.5px; line-height: 1.55; }
.ins-steps li::before { content: counter(ins); position: absolute; left: 12px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ins-ic { width: 18px; height: 18px; vertical-align: -3px; color: var(--primary); }

/* ============ v1.6.0：Email 通知、邀請好友、作品集、防騷擾 ============ */
.review-strip { background: var(--warn-soft); color: var(--warn); border-top: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: 13px; font-weight: 600; }
.review-strip-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; line-height: 1.55; }
.review-strip a { color: inherit; text-decoration: underline; word-break: break-all; }
.ref-banner { display: flex; gap: 10px; align-items: flex-start; }
.ref-ic { font-size: 20px; line-height: 1.2; flex: none; }
.modal.reward-modal { max-width: 460px; }
.reward-ic { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.reward-list li { font-size: 15px; }
.away-note { margin-top: 6px; display: inline-block; background: var(--surface-2); color: var(--muted); border-radius: 10px; padding: 4px 10px; font-weight: 600; }
.modal .away-note { margin-top: 10px; }
/* 防詐提醒 */
.scam-note { background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: 14px; padding: 10px 12px; margin: 4px 0 6px; font-size: 14px; position: relative; }
.scam-note .scam-ic { flex: none; font-size: 16px; }
.scam-note .ins-x { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; flex: none; }
.scam-act { margin-top: 6px; }
/* 作品集 */
.pf-list { display: grid; gap: 12px; margin-bottom: 12px; }
.pf-list:empty { display: none; }
.pf-item { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface-2); }
.pf-item-head { display: flex; align-items: center; gap: 4px; }
.pf-item-head .btn { padding: 4px 9px; }
.pf-hint:empty { display: none; }
.pf-hint.err { color: var(--danger); font-weight: 650; }
#sec-portfolio .sec-title .chip { font-size: 11px; vertical-align: 2px; }
#sec-portfolio.invalid { border-color: var(--danger); }
.pf-show { display: grid; gap: 8px; }
.pf-link { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); min-width: 0; }
a.pf-link:hover { border-color: var(--primary); }
.pf-link .grow { display: grid; gap: 1px; min-width: 0; }
.pf-link b { font-size: 14.5px; line-height: 1.4; }
.pf-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.pf-ic svg { width: 16px; height: 16px; }
.pf-dom { flex: none; max-width: 40%; color: var(--primary); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .pf-link { flex-wrap: wrap; } .pf-link .grow { flex: 1 1 60%; } .pf-dom { max-width: 100%; flex-basis: 100%; padding-left: 40px; } }
/* Email 通知設定、邀請好友 */
.notify-card .vis-pick { gap: 6px; }
.ref-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.ref-main > .card + .card { margin-top: 14px; }
.ref-stats { margin-top: 0; }
@media (min-width: 1024px) { .ref-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.ref-steps { margin: 4px 0; }
/* 管理後台 */
.email-admin .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.email-admin .bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.runs { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.run { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.run .err { color: var(--danger); font-weight: 700; }
.review-card { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.review-reports { display: grid; gap: 8px; }
.review-reports > div { background: var(--surface-2); border-radius: 10px; padding: 6px 10px; }
.ref-top { display: grid; gap: 4px; }
@media (max-width: 1023px) { .ref-side { order: -1; } .ref-layout { display: flex; flex-direction: column; } }

/* ---------- v1.7.0：多語系（English / ไทย；v1.9.0 加 한국어） ---------- */
/* 泰文：字型優先用泰文字型、行高加大（泰文有上下標音符號）、斷行交給瀏覽器的泰文斷詞 */
:lang(th) body, html:lang(th) body { font-family: "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Tahoma", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
html:lang(th) body { word-break: normal; overflow-wrap: anywhere; line-break: auto; }
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3 { line-height: 1.45; letter-spacing: 0; }
html:lang(en) body, html:lang(th) body { overflow-wrap: anywhere; }
html:lang(en) .btn, html:lang(th) .btn { white-space: normal; text-align: center; }
/* v1.9.0：韓文：韓文字型優先；用空格斷行（keep-all，避免一個詞被切成兩行），太長的字串才強制斷 */
:lang(ko) body, html:lang(ko) body { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Noto Sans CJK KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ko) .btn { white-space: normal; text-align: center; }
/* 語言按鈕（上方工具列，每一頁都有） */
.lang-wrap { position: relative; display: inline-flex; flex: none; }
.btn.lang-btn { padding: 6px 8px; gap: 4px; color: var(--muted); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-btn .lang-code { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 168px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font-size: 15px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--primary-soft); outline: none; }
.lang-menu button.on { color: var(--primary); font-weight: 700; }
.lang-links { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; justify-content: center; }
.link-btn { border: 0; background: none; padding: 2px 0; color: var(--primary); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-lang { margin-top: 8px; }
/* 體驗中的小標籤：窄螢幕用短的寫法 */
.chip.trial .tc-short { display: none; }
/* v1.7.0：上方多了語言按鈕，手機寬度改用短的寫法（「剩 N 天」；完整文字在滑鼠提示 / 讀屏） */
@media (max-width: 480px) { .chip.trial { position: relative; } .chip.trial .tc-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } .chip.trial .tc-short { display: inline; } }
.topbar-in > .chip, .topbar-in > .btn { flex: none; white-space: nowrap; }
/* 360px：品牌名稱縮小讓位給右邊的按鈕；底部分頁列的字太長時縮小、不換行 */
@media (max-width: 400px) { .lang-btn .lang-code { display: none; } .btn.lang-btn { padding: 6px; } }
.tabbar a > span:not(.badge-dot) { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:lang(th) .tabbar a, html:lang(en) .tabbar a { font-size: 10.5px; }
@media (min-width: 760px) and (max-width: 1023px) { .topnav { margin-left: 4px; gap: 2px; } .topnav a { padding: 6px 7px; font-size: 13px; } .topbar.authed .brand-sub { display: none; } }
html:lang(en) .topnav a, html:lang(th) .topnav a { white-space: nowrap; }

.account .acc-val { text-align: right; min-width: 0; }
html:lang(en) .account .row, html:lang(th) .account .row { flex-wrap: wrap; }
@media (max-width: 400px) { html:lang(en) .tabs.msg-tabs button, html:lang(th) .tabs.msg-tabs button { font-size: 12.5px; padding-left: 2px; padding-right: 2px; } }

/* ---------- v1.8.0 ---------- */
/* 藍勾勾 */
.vbadge { display: inline-flex; width: 18px; height: 18px; flex: none; vertical-align: -3px; margin-left: 4px; }
.vbadge svg { width: 100%; height: 100%; display: block; }
.vbadge .vb-bg { fill: var(--verified); } .vbadge .vb-ck { stroke: var(--verified-ink); }
.vbadge.sm { width: 15px; height: 15px; vertical-align: -2px; margin-left: 3px; }
.vbadge.lg { width: 24px; height: 24px; vertical-align: -3px; margin-left: 6px; }
.name .vbadge { margin-left: -2px; }
.check-row .vbadge { margin-left: 2px; }
/* 長選項清單的「更多」 */
.pick .pick-more { border-style: dashed; background: transparent; color: var(--primary); }
/* 好友評價 */
.tm-chip-row { display: grid; gap: 6px; }
.tm-chip { cursor: pointer; border: 1px solid var(--line); background: var(--pro-soft); color: var(--pro); font-weight: 700; justify-self: start; }
.tm-chip[aria-expanded="true"] .tm-caret, .tm-toggle[aria-expanded="true"] .tm-caret { transform: rotate(180deg); }
.tm-caret { display: inline-block; margin-left: 4px; transition: transform .15s; }
.tm-inline { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; max-height: 320px; overflow: auto; }
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-item { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.tm-item .grow { min-width: 0; }
.tm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; min-width: 0; }
.tm-meta .who { display: inline-flex; align-items: center; gap: 6px; color: var(--text); min-width: 0; }
.tm-name { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.chip.tm-tag { font-size: 11.5px; padding: 1px 8px; }
.tm-body { font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
.tm-rep { margin-left: auto; text-decoration: none; }
.tm-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 12px; cursor: pointer; text-align: left; }
.tm-toggle:disabled { cursor: default; opacity: .75; }
.tm-sec { margin-top: 14px; }
.tm-mine { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; }
.tm-write { border-top: 1px dashed var(--line); padding-top: 10px; }
.tm-card .tm-fold { margin-top: 10px; }
.tm-card-row.is-pending { border-color: color-mix(in srgb, var(--badge-red) 45%, var(--line)); }
.tm-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 12px; border-radius: 14px; background: var(--pro-soft); color: var(--text); font-weight: 650; }
.tm-banner:hover { text-decoration: none; filter: brightness(.98); }
.tm-modal .pick { margin-top: 4px; }
.counter.warn { color: var(--danger); }
/* 電子名片「跟他合作」 */
.bcard-collab { margin: 14px auto 0; max-width: 420px; display: grid; gap: 6px; }
.collab-btn { font-size: 17px; }
/* 業務夥伴 */
.partner-top { padding: 6px 8px; }
.partner-top svg { width: 18px; height: 18px; }
@media (max-width: 430px) { .partner-top { display: none; } }
.partner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .partner-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pt-brk { display: grid; gap: 0; margin-top: 4px; color: var(--muted); }
.pcode .code, .pcode-row .code { font-size: 17px; font-weight: 800; letter-spacing: .02em; overflow-wrap: anywhere; }
.pcode.is-off, .pcode-row.is-off { opacity: .65; }
.pcode-body { display: flex; gap: 16px; align-items: flex-start; }
.pcode-body > .grow { min-width: 0; }
.pcode-qr { display: grid; gap: 8px; justify-items: center; flex: none; width: 150px; }
.pcode-qr .qr { width: 150px; height: 150px; border-radius: 10px; }
@media (max-width: 600px) { .pcode-body { flex-direction: column; } .pcode-qr { width: 100%; } }
.pcode-kv { grid-template-columns: 110px 1fr; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.card.table-wrap { padding: 0; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th, .ptable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.ptable th { font-size: 12px; color: var(--muted); font-weight: 700; }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable tr:last-child td { border-bottom: 0; }
.partner-terms-list { padding-left: 20px; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.partner-rules { margin: 0 0 8px; }
.pstat { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.pstat b.hl { color: var(--ok); }
.pcode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.admin-verify { margin-top: 12px; }
@media (max-width: 480px) { .ptable { font-size: 12.5px; } .ptable th, .ptable td { padding: 7px 6px; } }
.pcode, .pcode-body, .pcode-body > .grow { min-width: 0; max-width: 100%; }
.pcode .stack > *, .pcode-body > .grow > * { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .pcode-body > .grow { width: 100%; } }
@media (max-width: 759px) { .partner-stats > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* v1.8.0：語言選單裡的「複製這個語言的網址」 */
.lang-menu .lang-copy { justify-content: flex-start; gap: 8px; white-space: normal; max-width: 230px; font-size: 13.5px; color: var(--primary); font-weight: 650; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.lang-menu .lang-copy svg { width: 16px; height: 16px; flex: none; }

/* ---------- v1.9.1：GM 在人物卡 / 個人頁直接操作（只有 GM 帳號看得到） ---------- */
.btn.xs { padding: 4px 9px; font-size: 12px; border-radius: 8px; gap: 4px; }
.gm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.chip.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.modal.wide { max-width: 640px; }
.gm-detail .gm-sec { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.gm-detail .gm-h { font-weight: 800; font-size: 13px; color: var(--muted); }
.gm-detail .kv > div:nth-child(even) { min-width: 0; overflow-wrap: anywhere; }
.gm-detail .kv .pre { white-space: pre-wrap; }
.gm-grant { flex-wrap: wrap; gap: 6px; }
.gm-grant select { flex: 1 1 180px; min-width: 0; max-width: 100%; width: auto; }
.gm-detail, .gm-detail .gm-sec, .gm-detail .row { min-width: 0; max-width: 100%; }
.gm-trial { gap: 8px; flex-wrap: wrap; }
.gm-inline { border: 1px dashed var(--text); }
@media (max-width: 480px) { .gm-detail .kv { grid-template-columns: 88px 1fr; } }

/* ---------- v1.9.3：跑馬燈、全站訊息 ---------- */
#marquee[hidden] { display: none; }
.mq { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: #fff; background: var(--mq-bg, #4f46e5); }
.mq-indigo { --mq-bg: #4f46e5; } .mq-orange { --mq-bg: #ea580c; } .mq-green { --mq-bg: #15803d; } .mq-red { --mq-bg: #dc2626; } .mq-dark { --mq-bg: #17172b; }
.mq-view { flex: 1; min-width: 0; overflow: hidden; padding: 7px 0; }
.mq-track { display: inline-flex; white-space: nowrap; animation: mq-run var(--mq-dur, 28s) linear infinite; will-change: transform; }
.mq-slow { --mq-dur: 42s; } .mq-normal { --mq-dur: 28s; } .mq-fast { --mq-dur: 16s; }
.mq-item { padding-right: 64px; padding-left: 16px; }
.mq a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; white-space: normal; } .mq-item[aria-hidden] { display: none; } }
.mq-x { flex: none; border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 26px; height: 26px; border-radius: 999px; margin-right: 8px; cursor: pointer; font-size: 12px; }
.mq-x:hover { background: rgba(255, 255, 255, .3); }
.mq-preview { border-radius: 10px; overflow: hidden; }
.ann + .ann { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.ann-body { margin: 6px 0 4px; }
.ann-body a { font-weight: 700; }
.partner-new { display: block; text-decoration: none; font-weight: 700; margin-bottom: 12px; }

/* ---------- v1.9.4：通知中心（🔔） ---------- */
.notif-wrap { position: relative; display: inline-flex; flex: none; }
.btn.notif-btn { padding: 6px 8px; color: var(--muted); position: relative; }
.notif-btn svg { width: 19px; height: 19px; }
.notif-btn .notif-dot { top: -3px; left: auto; right: -3px; }
.notif-panel { position: absolute; top: calc(100% + 6px); right: -60px; z-index: 41; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.18); overflow: hidden; }
.notif-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.notif-list { overflow: auto; padding: 6px; display: grid; gap: 2px; }
.notif-list .pad { padding: 14px; }
.notif-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; position: relative; }
.notif-item:hover, .notif-item:focus-visible { background: var(--surface-2, var(--primary-soft)); outline: none; }
.notif-item.unread { background: var(--primary-soft); }
.notif-ic { font-size: 20px; line-height: 1.2; flex: none; width: 26px; text-align: center; }
.notif-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; display: grid; gap: 2px; }
.notif-sub { color: var(--muted); font-size: 13px; }
.notif-time { color: var(--muted); font-size: 12px; }
.notif-new { width: 8px; height: 8px; border-radius: 50%; background: var(--badge-red); flex: none; margin-top: 7px; }
.notif-item.gm { background: linear-gradient(120deg, #fff7d6, #fde9a8); }
:root[data-theme="dark"] .notif-item.gm { background: linear-gradient(120deg, #3a2f10, #4a3a12); }
@media (max-width: 520px) { .notif-panel { position: fixed; top: 58px; right: 12px; left: 12px; width: auto; } }

/* ---------- v1.9.4：GM 寫的評價＝CocoFun 官方推薦（金色、皇冠、光澤） ---------- */
.tm-item.tm-gm { flex-wrap: wrap; position: relative; padding: 14px 14px 14px; border-radius: 16px; border: 1.5px solid #d4a017;
  background: linear-gradient(135deg, #fffaf0 0%, #fff3cf 45%, #fde68a 100%); box-shadow: 0 6px 22px rgba(212, 160, 23, .28), inset 0 1px 0 rgba(255,255,255,.7); color: #3b2a05; }
.tm-item.tm-gm .tm-body { font-size: 15px; font-weight: 550; }
.tm-item.tm-gm .tm-name { color: #7a5200; font-weight: 800; }
.tm-item.tm-gm .muted { color: #8a6a1f; }
.tm-gm-top { flex-basis: 100%; }
.tm-gm-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; position: relative; overflow: hidden;
  padding: 4px 12px 4px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: #fff;
  background: linear-gradient(90deg, #b8860b, #e6b422 50%, #b8860b); box-shadow: 0 2px 8px rgba(184, 134, 11, .45); text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.tm-crown { font-size: 15px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.tm-gm-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); transform: translateX(-100%); animation: tm-shine 3.2s ease-in-out infinite; }
@keyframes tm-shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .tm-gm-shine { animation: none; display: none; } }
:root[data-theme="dark"] .tm-item.tm-gm { background: linear-gradient(135deg, #2b210a 0%, #3d2e0b 55%, #5a4310 100%); border-color: #e6b422; color: #fdf3d0; box-shadow: 0 6px 22px rgba(230, 180, 34, .22); }
:root[data-theme="dark"] .tm-item.tm-gm .tm-name { color: #ffd772; }
:root[data-theme="dark"] .tm-item.tm-gm .muted { color: #d9bd74; }
.tm-gm-hint { margin-top: 10px; background: #fff7d6; color: #6b4b00; border-color: #e6b422; }
:root[data-theme="dark"] .tm-gm-hint { background: #3a2f10; color: #ffd772; }

/* ---------- v1.9.4：GM 推廣按鈕 ---------- */
.gm-promo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mcard .gm-promo-row { margin-top: 6px; }
.btn.gm-promo { border-color: #d4a017; color: #8a5a00; background: #fff7d6; }
:root[data-theme="dark"] .btn.gm-promo { background: #3a2f10; color: #ffd772; }
.pr-prev { background: var(--surface-2, var(--bg)); }

/* v1.9.4：多了 🔔 之後，窄螢幕的工具列比較擠：縮小按鈕間距、語言按鈕只留地球 */
@media (max-width: 420px) {
  .btn.notif-btn, .btn.lang-btn { padding: 6px 5px; }
  .lang-btn .lang-code { display: none; }
}
/* 登入後窄螢幕：上方的「安裝 App」先收起來（我的檔案裡還有安裝入口），留空間給 🔔 和網站名稱 */
@media (max-width: 400px) { .notif-wrap ~ .install-top { display: none; } }

/* ---------- v1.10.0：真人認證、業務夥伴計畫、收款帳戶、待審核 ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.shot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface-2, var(--bg)); cursor: pointer; overflow: hidden; text-align: center; padding: 8px; }
.shot:hover { border-color: var(--primary); }
.shot.has { border-style: solid; border-color: var(--ok, #16a34a); padding: 0; }
.shot img { width: 100%; height: 100%; max-height: 180px; object-fit: contain; display: block; }
.shot-ph { display: grid; gap: 2px; font-size: 13px; }
.shot-ph > span:first-child { font-size: 22px; }
.kyc-doc { display: grid; gap: 6px; }
.kyc-why { margin: 0 0 14px; }
.kyc-entry .ce-ic .vbadge svg { width: 22px; height: 22px; }
.pp-hero { text-align: center; padding: 28px 20px; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); display: grid; gap: 10px; justify-items: center; }
.pp-hero h1 { margin: 0; }
.pp-hero p { margin: 0; max-width: 560px; color: var(--muted); }
.pp-hero-ic { font-size: 40px; }
.pp-hero-rate { display: flex; align-items: baseline; gap: 8px; }
.pp-hero-rate b { font-size: 44px; line-height: 1; color: var(--primary); }
.pp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.pp-b { display: grid; gap: 4px; }
.pp-example { margin-top: 10px; }
.pp-steps { display: grid; gap: 8px; padding-left: 1.3em; }
.pp-rules { margin: 0; }
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; display: grid; gap: 2px; background: var(--surface); }
.tier-card.on { border: 2px solid var(--primary); box-shadow: 0 4px 16px rgba(79, 70, 229, .18); }
.tier-ic { font-size: 22px; }
.tier-rate { font-size: 24px; font-weight: 800; color: var(--primary); }
.tier-diamond .tier-rate { background: linear-gradient(90deg, #4f46e5, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-tier .bar { margin: 4px 0 6px; }
.pick-multi .chip.pickable { cursor: pointer; border: 1px solid var(--line); background: var(--surface); }
.pick-multi .chip.pickable.on { background: var(--primary); color: var(--primary-ink, #fff); border-color: var(--primary); }
.wd-needs { margin: 4px 0 0; padding-left: 1.2em; }
.q-item { border-left: 4px solid var(--primary); }
.q-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.q-img { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); margin-top: 6px; }
.q-plan { background: var(--surface-2, var(--bg)); padding: 8px 10px; border-radius: 10px; }
.q-bank { grid-template-columns: 120px 1fr; }
.shot img[hidden], .shot-ph[hidden] { display: none; }
.pii-notice { border: 1px solid var(--line); background: var(--surface-2, var(--bg)); border-radius: 14px; padding: 12px 14px; line-height: 1.7; }

/* v1.10.1：配對聊天列表：有未讀時更明顯（紅色數字放大、時間變紅、左邊紅條） */
.match-row.unread { box-shadow: inset 4px 0 0 var(--badge-red); }
.match-row.unread .match-meta .muted { color: var(--badge-red); font-weight: 700; }
.match-row .unread-badge { min-width: 24px; height: 24px; line-height: 24px; font-size: 13px; }
.match-row .grow { min-width: 0; }

/* ---------- v1.11.0：💡 點子（集思廣益大廳、官方題目、升級成 Side Project） ---------- */
.ideas-tabs { margin-top: 4px; }
.idea-start { display: grid; gap: 10px; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); border-color: transparent; }
.idea-start-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-start-btns .btn { flex: 1 1 160px; justify-content: flex-start; background: var(--surface); }
.topic-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.topic-row > * { scroll-snap-align: start; }
.topic-card { display: grid; gap: 8px; align-content: start; border: 1px solid color-mix(in srgb, var(--pro) 45%, var(--line)); background: linear-gradient(160deg, var(--pro-soft), var(--surface) 70%); }
.topic-card h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.chip.official { background: linear-gradient(135deg, #f6d365, #e0a526); color: #3b2600; border-color: transparent; font-weight: 700; }
.idea-filters { flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; align-items: center; }
.idea-filters .pick button { padding: 5px 11px; font-size: 13px; }
.idea-card { display: grid; gap: 8px; }
.idea-card .idea-title { margin: 0; font-size: 16.5px; line-height: 1.4; }
.idea-top { gap: 6px; flex-wrap: wrap; }
.idea-kind { background: var(--surface-2); font-weight: 650; }
.kind-problem .idea-kind { background: #eef4ff; color: #1e4fbf; }
.kind-wish .idea-kind { background: #fff3e6; color: #a1460b; }
.kind-need .idea-kind { background: #e9f8ef; color: #12753a; }
:root[data-theme="dark"] .kind-problem .idea-kind { background: #1c2a4a; color: #9dbbff; }
:root[data-theme="dark"] .kind-wish .idea-kind { background: #3a2716; color: #ffc08a; }
:root[data-theme="dark"] .kind-need .idea-kind { background: #173322; color: #86e0a8; }
.idea-card.is-official, .idea-full.is-official { border-color: color-mix(in srgb, var(--pro) 40%, var(--line)); }
.idea-foot { gap: 8px; flex-wrap: wrap; }
.idea-author { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 600; min-width: 0; }
.idea-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.react-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.react { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.react b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.react:hover:not(:disabled) { border-color: var(--primary); }
.react.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.react.on b { color: var(--primary); }
.react:disabled { opacity: .55; cursor: default; }
.react.cmt { margin-left: auto; }
.react-bar.big .react { padding: 9px 14px; font-size: 14.5px; }
.react-bar.big .react.cmt { display: none; }
@media (max-width: 420px) { .idea-card .react .rl { display: none; } .idea-card .react { padding: 5px 9px; } }
.kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.kind-opt { display: grid; gap: 2px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.kind-opt > span:first-child { font-size: 20px; }
.kind-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.idea-full { gap: 12px; }
.idea-h1 { margin: 0; font-size: 22px; line-height: 1.35; }
.idea-body { font-size: 15.5px; line-height: 1.7; }
.idea-tools { flex-wrap: wrap; gap: 6px; }
.upgrade-box { border: 1.5px dashed color-mix(in srgb, var(--primary) 55%, var(--line)); }
.upgrade-box .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.upgrade-box .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; }
.idea-comments { gap: 14px; }
.idea-cmt { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.idea-cmt:last-child { border-bottom: 0; padding-bottom: 0; }
.idea-cmt .row { gap: 8px; flex-wrap: wrap; }
.chip.idea-kind { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
.idea-full ~ section.card, .idea-full ~ .upgrade-box { margin-top: 14px; }
.idea-filters .pick { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.idea-filters .pick button { white-space: nowrap; flex: none; }

/* ---------- v1.12.0：新手友善 / UI UX ---------- */
:root { color-scheme: light; }
.land-code-box[hidden] { display: none; }
/* 形象首頁（沒登入）：白底＋淡紫漸層，永遠淺色 */
body.public-site { --bg: #ffffff; }
.hero-v2 { position: relative; padding: 36px 24px 28px; margin-top: 4px; border-radius: 28px; background: radial-gradient(120% 90% at 0% 0%, #efeaff 0%, rgba(239, 234, 255, 0) 60%), radial-gradient(90% 80% at 100% 100%, #f6f1ff 0%, rgba(246, 241, 255, 0) 70%), #ffffff; border: 1px solid #ece8fb; }
.hero-v2 .hero-samples { background: linear-gradient(160deg, #f3efff, #faf8ff); box-shadow: 0 10px 40px rgba(79, 70, 229, .08); }
.hero-v2 h1 { color: #17172b; }
.hero-cta { display: grid; gap: 8px; justify-items: start; margin-bottom: 16px; }
.btn.g-btn { gap: 10px; padding-left: 20px; padding-right: 24px; box-shadow: 0 6px 18px rgba(79, 70, 229, .25); }
.btn.g-btn .g-ic { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.hero-30s { font-weight: 600; }
.hero-samples .idea-card.sample { cursor: default; }
.sample-up { margin-left: auto; font-weight: 700; color: var(--ok); }
@media (max-width: 520px) { .hero-v2 { padding: 24px 16px 20px; border-radius: 22px; } .hero-cta, .hero-cta .g-btn { width: 100%; } .hero-cta { justify-items: stretch; } .hero-30s { text-align: center; } }
/* 條款：一個勾選＋可收合的摘要 */
.consent-sum { margin-top: 12px; }
.consent-sum > summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--primary); min-height: 44px; display: flex; align-items: center; }
.consent-sum .consent-box { margin-top: 4px; }
/* 還沒建檔：上方提示列 */
.onb-strip { background: var(--primary-soft); border-bottom: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.onb-strip-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 650; color: var(--primary); }
.onb-strip-in span { flex: 1; min-width: 0; }
.gate-card { max-width: 520px; margin: 24px auto; padding: 28px 20px; }
.gate-card h1 { font-size: 22px; margin: 0; }
.gate-ic, .tour-ic { font-size: 44px; line-height: 1; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.browse-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* 2 步驟建檔 */
.wiz.qs { max-width: 640px; }
.wiz.qs .wiz-prog .bar { margin: 6px 0 0; }
.pick.big-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick.big-pick button { min-height: 52px; padding: 10px 12px; border-radius: 14px; font-size: 15px; white-space: normal; line-height: 1.3; }
.qs-name { margin-top: 12px; }
.field-err { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }
/* 首頁「下一步」：最重要的一件事＋一顆主按鈕 */
.next-top { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--primary-soft); margin: 6px 0 8px; font-weight: 650; }
.next-top.hot { background: var(--accent-soft); }
.next-top .ns-t { flex: 1; min-width: 0; }
.next-top .btn { flex: none; }
@media (max-width: 420px) { .next-top { flex-wrap: wrap; } .next-top .btn { width: 100%; } }
/* 新手導覽 */
.modal.tour { text-align: center; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--primary); width: 22px; border-radius: 99px; }
.modal.tour .modal-actions { justify-content: space-between; }
/* toast 一律在底部選單上方 */
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
body.has-tabbar .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { body.has-tabbar .toast { bottom: 28px; } }
/* 手機：toast 顯示在畫面上方，不會擋到底部選單或「下一步 / 儲存」按鈕 */
@media (max-width: 759px) { .toast, body.has-tabbar .toast { top: calc(74px + env(safe-area-inset-top)); bottom: auto; } }
/* 手機：可以點的東西至少 44px 高 */
@media (max-width: 759px), (pointer: coarse) {
  .btn, .btn.sm { min-height: 44px; }
  .pick button, .tabs button, .react, .link-btn, .mode-opt, .check-row, .consent-check, .chip.pickable, .kind-opt { min-height: 44px; }
  .pick button, .tabs button, .react, .chip.pickable { display: inline-flex; align-items: center; justify-content: center; }
  .tabbar a { min-height: 52px; justify-content: center; }
  .link-btn { display: inline-flex; align-items: center; }
}
.input.input-invalid, .input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }

/* =====================================================================
   v1.13.0：設計更新（高質感、簡潔、清爽；參考 YC Co-Founder Matching 的克制風格）
   - 背景極淡暖灰、卡片白底＋1px 淡邊框、只留極淡陰影
   - 主色只留靛紫；綠色只給配對度；淡橘只給「正在找」；其他標籤統一淺灰外框
   - 標題更粗更大、說明文字中灰、卡片內距 20–24px、區塊間距加大、圓角統一
   ===================================================================== */
:root {
  --bg: #FAFAF9; --surface: #FFFFFF; --surface-2: #F5F5F4; --text: #1C1917; --muted: #6B6966; --line: #E9E7E4;
  --primary: #4F46E5; --primary-ink: #FFFFFF; --primary-soft: #EEF0FE; --primary-hover: #4338CA;
  --accent: #4F46E5; --accent-soft: #EEF0FE;
  --want-bg: #FFF4EC; --want-ink: #B45309;
  --tag-line: #E4E2DF; --tag-ink: #44403C;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04); --shadow-hover: 0 2px 10px rgba(28, 25, 23, .06);
  --radius: 16px; --radius-sm: 12px;
  --pad: 20px; --gap: 16px; --sec: 36px;
}
:root[data-theme="dark"] {
  --accent: #8b84ff; --accent-soft: #26244a; --primary-hover: #a39dff;
  --want-bg: #3a2a1c; --want-ink: #fdba74; --tag-line: #34343f; --tag-ink: #d6d6e0;
}
body.public-site { --bg: #FFFFFF; }
body { font-size: 15px; line-height: 1.65; letter-spacing: .005em; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 6px 0 14px; }
h2 { font-size: 20px; font-weight: 750; letter-spacing: -.01em; margin: var(--sec) 0 14px; }
h3 { font-weight: 700; }
@media (min-width: 760px) { h1 { font-size: 32px; } }
.page-head { margin-bottom: 18px; } .page-head .muted { margin-top: -6px; }
.muted, .headline, .small.muted, .sec-desc { color: var(--muted); }
.app { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .app { padding: 28px 24px 56px; } }

/* 卡片 */
.card { padding: var(--pad); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 760px) { :root { --pad: 24px; } }
.card.link:hover, a.card:hover { border-color: #D6D3D1; box-shadow: var(--shadow-hover); transform: none; }
:root[data-theme="dark"] .card.link:hover, :root[data-theme="dark"] a.card:hover { border-color: #3a3a48; }
.grid { gap: var(--gap); }
.stack > * + * { margin-top: 14px; }
.modal { border-radius: 20px; }

/* 按鈕：主色靛紫，其他中性 */
.btn { border-radius: var(--radius-sm); font-weight: 650; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.accent { background: var(--surface); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.btn.accent:hover { background: var(--primary-soft); }
.btn.liked { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); }
.pick.accent button.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* 標籤：統一淺灰外框；「正在找」淡橘；配對度綠色 */
.chip, .chip.role, .chip.ok, .chip.warn, .chip.trial, .chip.official, .chip.pro { background: transparent; color: var(--tag-ink); border: 1px solid var(--tag-line); font-weight: 600; }
.chip.want, .pcard-want .chip.want { background: var(--want-bg); color: var(--want-ink); border-color: transparent; }
.chip.pro { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.chip.gm { background: var(--text); color: var(--bg); border-color: transparent; }
.chip.idea-kind { background: transparent; color: var(--tag-ink); }
.kind-problem .idea-kind, .kind-wish .idea-kind, .kind-need .idea-kind { background: transparent !important; color: var(--tag-ink) !important; }
.score { color: #15803D; background: #ECFDF3; }
:root[data-theme="dark"] .score { color: #4ade80; background: #173023; }
.pcard-want { background: none; padding: 0; border-radius: 0; align-items: center; }
.pcard-lbl { color: var(--want-ink); font-weight: 700; padding-top: 0; }
.pcard-why { color: var(--muted); font-weight: 500; }
.pcard { gap: 12px; }
.pcard .name { font-size: 16.5px; }
.pcard-bottom { padding-top: 2px; }
.pcard-bottom:empty { display: none; }
.tabs button.on { background: var(--primary); color: var(--primary-ink); }
.next-list li.hot a { background: var(--primary-soft); color: var(--primary); }
.next-top.hot { background: var(--primary-soft); }
.unread-note, .likes-count { color: var(--primary); }
.hero .x { color: var(--primary); }
.comp .bar i, .wiz-prog .bar i, .upgrade-box .bar i { background: var(--primary); }
.idea-start { background: var(--surface); border: 1px solid var(--line); }
.topic-card { background: var(--surface); border-color: var(--line); }

/* icon：3D 插圖與細線 icon */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i3d { width: 1.35em; height: 1.35em; object-fit: contain; flex: none; vertical-align: -.3em; }
.i3d.lg { width: 64px; height: 64px; }
.i3d.xl { width: 112px; height: 112px; }
.ic-row { display: inline-flex; align-items: center; gap: 6px; }
div.ic-row, h3.ic-row, b.ic-row { display: flex; }
.ic-h1 { display: flex; align-items: center; gap: 10px; }
.ic-h1 .i3d { width: 40px; height: 40px; vertical-align: middle; }
.ns-ic { width: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.ns-ic .i3d { width: 24px; height: 24px; } .ns-ic .ico { width: 20px; height: 20px; }
.ce-ic { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.ce-ic .i3d { width: 32px; height: 32px; } .ce-ic .ico { width: 20px; height: 20px; }
.reward-ic { display: flex; justify-content: flex-start; color: var(--primary); }
.reward-ic .ico { width: 36px; height: 36px; }
.modal.tour .reward-ic, .modal.tour .tour-ic { justify-content: center; display: flex; }
.notif-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.notif-ic .i3d { width: 24px; height: 24px; } .notif-ic .ico { width: 18px; height: 18px; }
.tpl-ic .i3d { width: 28px; height: 28px; } .tpl-ic .ico { width: 22px; height: 22px; color: var(--primary); }
.tier-ic .ico { width: 24px; height: 24px; color: var(--primary); }
.pp-hero-ic .ico { width: 44px; height: 44px; color: var(--primary); }
.scam-ic .ico { color: var(--warn); }
.shot-ph .ico { width: 24px; height: 24px; color: var(--muted); }
.rc-ic .i3d, .ref-ic .i3d { width: 24px; height: 24px; }
.tm-crown .ico { width: 15px; height: 15px; }
.react .i3d { width: 18px; height: 18px; } .react .ico { width: 16px; height: 16px; }
.gate-ic .i3d.xl { width: 96px; height: 96px; }
.footer-lang .ico { margin-right: 2px; }

/* 空狀態 */
.empty-state { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-state .es-text { color: var(--muted); max-width: 420px; font-size: 14.5px; }
.empty-state .es-act { margin-top: 2px; }

/* 首頁：精簡 */
.home-top { gap: var(--gap); }
.comp-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.comp-line .ico { color: #15803D; }
.comp-line a { margin-left: auto; }
.home-code { margin-top: 16px; }
.code-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.code-toggle:hover { color: var(--primary); }
#hc-box { margin-top: 10px; }
.stat-grid { gap: 12px; margin-top: var(--gap); }
.stat .label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.stat .price { font-size: 26px; font-weight: 800; }
.section-head { margin-top: var(--sec); }
.section-head h2 { margin: 0; }

/* 人物卡：GM「⋯」選單 */
.pcard { position: relative; }
.pcard:has(.gm-more) .pcard-top { padding-right: 34px; }
.gm-tools.gm-more { position: absolute; top: 12px; right: 10px; padding: 0; border: 0; display: block; }
.gm-more-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; background: transparent; border-radius: 10px; color: var(--muted); cursor: pointer; }
.gm-more-btn:hover, .gm-more-btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.gm-menu { position: absolute; right: 0; top: 36px; z-index: 15; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(28, 25, 23, .12); padding: 6px; display: grid; }
.gm-menu[hidden] { display: none; }
.gm-menu-h { padding: 6px 10px 4px; }
.gm-menu button { text-align: left; border: 0; background: none; padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); min-height: 40px; }
.gm-menu button:hover { background: var(--surface-2); }

/* 頂部列與頭像選單 */
.topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); padding-top: env(safe-area-inset-top); }
.topbar-in { min-height: 60px; }
.me-wrap { position: relative; display: inline-flex; }
button.me-link { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; }
button.me-link:hover .avatar, button.me-link[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--primary-soft); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 280px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(28, 25, 23, .14); padding: 8px; display: grid; }
.mm-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mm-who { display: grid; min-width: 0; } .mm-who .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-item { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 44px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14.5px; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.mm-item:hover, .mm-item:focus-visible { background: var(--surface-2); outline: none; }
.mm-item .ico { color: var(--muted); width: 18px; height: 18px; }
.mm-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.mm-label { display: flex; align-items: center; gap: 8px; padding: 6px 10px 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mm-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px 6px 6px; }
.mm-langs button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; min-height: 40px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--text); }
.mm-langs button.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.tb-x { display: contents; }
@media (max-width: 759px) {
  .tb-x { display: none; }
  .topbar-in { gap: 6px; padding: 8px 12px; }
  .brand-sub { display: none; }
  .topbar .bell-btn, .topbar .notif-btn { min-width: 44px; min-height: 44px; }
}

/* 底部導覽列：五格、細線 icon、safe-area */
.tabbar { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.tabbar a { min-height: 56px; gap: 3px; font-size: 11px; font-weight: 600; }
.tabbar svg { width: 23px; height: 23px; stroke-width: 1.6; }
.tabbar a.on svg { stroke-width: 2; }

/* 手機：卡片單欄滿版 */
@media (max-width: 759px) {
  .grid, .mgrid, .mstrip { grid-template-columns: minmax(0, 1fr) !important; }
  :root { --pad: 18px; --sec: 28px; }
  h1 { font-size: 26px; }
}
.toast { border-radius: 12px; box-shadow: 0 10px 30px rgba(28, 25, 23, .18); }
.stat { padding: 16px 20px; }
.stat .price { font-size: 24px; line-height: 1.2; }
/* v1.14.0 起，新版「高級工具感」樣式在 theme-v14.css（GM 後台可以切回上一版 v1.13，切回時不載入那個檔） */
/* v1.14.1：切回 v1.13 樣式時，線條圖示用原本的 1.75 線寬 */
.ui-v13 .ico { stroke-width: 1.75; }
/* v1.15.0：終身買斷卡、早鳥 */
.plans.plans-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan .price s.was { font-size: .55em; font-weight: 500; color: var(--muted); margin-right: 4px; }
.plan .plan-tag { vertical-align: 2px; margin-left: 4px; }
.plan .plan-tag.best { color: var(--primary); border-color: currentColor; }
.early-meta { display: grid; gap: 6px; margin: 4px 0 8px; }
.early-meta .bar.thin { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.early-meta .bar.thin i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.chip.pro.lifetime { letter-spacing: .02em; }
@media (max-width: 759px) { .plans { display: flex; flex-direction: column; } .plans .plan.lifetime { order: -1; } }
.gm-plan .chip.off { color: var(--muted); }

/* ================= v1.16.0：電子名片範本 =================
   每個範本＝配色（CSS 變數 --cc-*，由程式依 src/cards.js 的 COLOR_PRESETS 帶入）＋排版（.lay-<layout>）。
   新增範本：在 src/cards.js 加一筆，然後在這裡加 .lay-<新排版> 的幾行規則即可。 */
.cc { --cc-r: 24px; position: relative; isolation: isolate; width: 100%; max-width: 440px; margin: 0 auto; background: var(--cc-bg); color: var(--cc-fg); border: 1px solid var(--cc-line); border-radius: var(--cc-r); overflow: hidden; text-align: center; font-family: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12); }
.cc.f-serif { font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif; }
.cc.f-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans TC", monospace; }
.cc .ico { width: 18px; height: 18px; flex: none; }
.cc-cover { height: 104px; background: var(--cc-cover); }
.cc-head { padding: 0 24px; display: grid; justify-items: center; gap: 10px; }
.cc-av { width: 104px; height: 104px; border-radius: 50%; background: var(--cc-surface); color: var(--cc-accent); display: grid; place-items: center; overflow: hidden; font-size: 40px; font-weight: 700; box-shadow: 0 0 0 4px var(--cc-bg); margin-top: 24px; }
.cov-solid .cc-av { margin-top: -52px; }
.av-rounded .cc-av { border-radius: 24%; }
.cc-av img { width: 100%; height: 100%; object-fit: cover; }
.cc-id { display: grid; gap: 4px; justify-items: inherit; min-width: 0; }
.cc-name { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: inherit; color: var(--cc-fg); }
.cc-job { color: var(--cc-muted); font-size: 15px; overflow-wrap: anywhere; }
.cc-lt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--cc-accent); background: color-mix(in srgb, var(--cc-accent) 12%, transparent); justify-self: inherit; width: max-content; }
.cc-lt .ico { width: 14px; height: 14px; }
.cc-body { padding: 16px 24px 8px; display: grid; gap: 14px; text-align: inherit; }
.cc-tagline { margin: 0; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.cc-meta { display: inline-flex; gap: 6px; align-items: center; justify-content: center; color: var(--cc-muted); font-size: 14px; }
.cc-looking { font-size: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: baseline; }
.cc-lbl { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-muted); }
.cc-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.cc-ct { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-surface); color: var(--cc-fg); text-decoration: none; width: 100%; font: inherit; cursor: pointer; text-align: left; transition: border-color .15s ease, transform .15s ease; }
a.cc-ct:hover, button.cc-ct:hover { border-color: var(--cc-accent); }
span.cc-ct { cursor: default; }
.cc-ct-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--cc-bg); color: var(--cc-accent); flex: none; }
.cc-ct-t { display: grid; min-width: 0; line-height: 1.3; }
.cc-ct-t small { font-size: 11.5px; color: var(--cc-muted); }
.cc-ct-t b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-more { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--cc-muted); flex-wrap: wrap; }
.cc-more a { color: var(--cc-accent); }
.cc-more .ico { width: 14px; height: 14px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cc-line); background: var(--cc-bg); color: var(--cc-fg); font: inherit; font-size: 14.5px; font-weight: 650; text-decoration: none; cursor: pointer; }
.cc-btn.pri { background: var(--cc-fg); color: var(--cc-bg); border-color: var(--cc-fg); }
.cc-btn:only-child { grid-column: 1 / -1; }
.cc-btn[disabled] { opacity: .6; }
.cc-sec { display: grid; gap: 8px; text-align: left; padding-top: 14px; border-top: 1px solid var(--cc-line); }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { padding: 4px 11px; border-radius: 999px; background: var(--cc-surface); border: 1px solid var(--cc-line); font-size: 13px; font-weight: 600; }
.cc-p { margin: 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.cc-items { display: grid; gap: 8px; }
.cc-it { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--cc-surface); border: 1px solid var(--cc-line); color: var(--cc-fg); text-decoration: none; min-height: 44px; margin: 0; }
.cc-it b { font-size: 14.5px; overflow-wrap: anywhere; }
.cc-it-k, .cc-it-s { font-size: 12px; color: var(--cc-muted); }
.cc-quote blockquote { margin: 0; font-size: 14px; line-height: 1.6; }
.cc-quote figcaption { font-size: 12.5px; color: var(--cc-muted); }
.cc-qr { display: flex; align-items: center; gap: 14px; margin: 8px 24px 0; padding: 14px 0; border-top: 1px solid var(--cc-line); text-align: left; }
.cc-qr .qr { width: 104px; height: 104px; flex: none; border-radius: 10px; background: #fff; padding: 4px; }
.cc-qr-t { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.cc-qr-t span { color: var(--cc-muted); font-size: 11.5px; overflow-wrap: anywhere; }
.cc-foot { display: block; padding: 10px 0 16px; font-size: 11.5px; color: var(--cc-muted); text-decoration: none; letter-spacing: .02em; }
.cc-foot b { color: var(--cc-fg); font-weight: 650; }
.cc .vbadge { flex: none; }
.cc a:focus-visible, .cc button:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

/* 左對齊的排版 */
.cc.lay-magazine, .cc.lay-airy, .cc.lay-tech, .cc.lay-landscape { text-align: left; }
.cc.lay-magazine .cc-head, .cc.lay-airy .cc-head, .cc.lay-tech .cc-head { justify-items: start; }
.cc.lay-magazine .cc-meta, .cc.lay-airy .cc-meta, .cc.lay-tech .cc-meta, .cc.lay-landscape .cc-meta, .cc.lay-magazine .cc-looking, .cc.lay-airy .cc-looking, .cc.lay-tech .cc-looking, .cc.lay-landscape .cc-looking, .cc.lay-magazine .cc-more, .cc.lay-airy .cc-more, .cc.lay-tech .cc-more, .cc.lay-landscape .cc-more { justify-content: flex-start; }
/* 雜誌風：粗線、大字、明體 */
.cc.lay-magazine { --cc-r: 6px; border-top: 0; }
.cc.lay-magazine .cc-cover { height: 10px; }
.cc.lay-magazine .cc-av, .cc.lay-magazine.cov-solid .cc-av { margin-top: 28px; width: 84px; height: 84px; box-shadow: none; }
.cc.lay-magazine .cc-name { font-size: 34px; letter-spacing: -0.02em; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--cc-fg); width: 100%; }
.cc.lay-magazine .cc-lbl { letter-spacing: .2em; color: var(--cc-accent); }
.cc.lay-magazine .cc-sec { border-top: 1px solid var(--cc-fg); }
.cc.lay-magazine .cc-ct, .cc.lay-magazine .cc-it { border-radius: 4px; background: transparent; }
.cc.lay-magazine .cc-chip { border-radius: 2px; background: transparent; border-color: var(--cc-fg); }
.cc.lay-magazine .cc-tagline { font-size: 17px; font-style: italic; }
/* 日系留白：小頭像、細字、大量空白 */
.cc.lay-airy { --cc-r: 14px; }
.cc.lay-airy .cc-cover { height: 4px; }
.cc.lay-airy .cc-av, .cc.lay-airy.cov-solid .cc-av { margin-top: 40px; width: 64px; height: 64px; font-size: 26px; box-shadow: none; }
.cc.lay-airy .cc-head { padding: 0 36px; gap: 14px; }
.cc.lay-airy .cc-body { padding: 24px 36px 12px; gap: 22px; }
.cc.lay-airy .cc-name { font-size: 24px; font-weight: 500; letter-spacing: .04em; }
.cc.lay-airy .cc-ct, .cc.lay-airy .cc-it { background: transparent; border-width: 0 0 1px; border-radius: 0; padding-left: 0; }
.cc.lay-airy .cc-ct-ic { background: transparent; }
.cc.lay-airy .cc-chip { background: transparent; }
.cc.lay-airy .cc-qr { margin: 8px 36px 0; }
.cc.lay-airy .cc-btn.pri { background: transparent; color: var(--cc-fg); }
/* 深色科技：格線背景、等寬字 */
.cc.lay-tech { --cc-r: 12px; background-image: linear-gradient(var(--cc-line) 1px, transparent 1px), linear-gradient(90deg, var(--cc-line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.cc.lay-tech .cc-cover { height: 6px; background: linear-gradient(90deg, var(--cc-accent), transparent); }
.cc.lay-tech .cc-av, .cc.lay-tech.cov-solid .cc-av { margin-top: 28px; box-shadow: 0 0 0 1px var(--cc-accent); }
.cc.lay-tech .cc-lbl::before { content: "// "; color: var(--cc-accent); }
.cc.lay-tech .cc-name { font-weight: 600; }
.cc.lay-tech .cc-job { color: var(--cc-accent); }
.cc.lay-tech .cc-ct, .cc.lay-tech .cc-it, .cc.lay-tech .cc-chip { border-radius: 6px; background: color-mix(in srgb, var(--cc-surface) 88%, transparent); }
.cc.lay-tech .cc-btn { border-radius: 8px; }
.cc.lay-tech .cc-btn.pri { background: var(--cc-accent); border-color: var(--cc-accent); color: var(--cc-bg); }
/* 照片滿版：大頭貼當封面 */
.cc.lay-photo .cc-cover { height: 300px; background: var(--cc-cover); position: relative; }
.cc.lay-photo.has-photo .cc-cover { background: var(--cc-photo) center / cover no-repeat; }
.cc.lay-photo .cc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--cc-bg)); }
.cc.lay-photo .cc-head { margin-top: -72px; position: relative; }
.cc.lay-photo:not(.has-photo) .cc-av { margin-top: -40px; }
.cc.lay-photo .cc-name { font-size: 30px; }
/* 橫式商務卡：左邊頭像＋資訊，右邊聯絡方式（窄螢幕自動變直的） */
.cc.lay-landscape { max-width: 560px; --cc-r: 16px; }
.cc.lay-landscape .cc-cover { height: 8px; }
.cc.lay-landscape .cc-head { grid-template-columns: auto 1fr; justify-items: start; align-items: center; padding: 24px 24px 0; gap: 16px; }
.cc.lay-landscape .cc-av, .cc.lay-landscape.cov-solid .cc-av { margin-top: 0; width: 80px; height: 80px; font-size: 30px; box-shadow: none; }
.cc.lay-landscape.v-mini .cc-body { grid-template-columns: 1fr; }
@container (min-width: 520px) {
  .cc.lay-landscape.v-mini { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "cover cover" "head head" "body qr" "foot foot"; }
  .cc.lay-landscape.v-mini .cc-cover { grid-area: cover; } .cc.lay-landscape.v-mini .cc-head { grid-area: head; }
  .cc.lay-landscape.v-mini .cc-body { grid-area: body; padding-right: 8px; } .cc.lay-landscape.v-mini .cc-foot { grid-area: foot; text-align: center; }
  .cc.lay-landscape.v-mini .cc-qr { grid-area: qr; flex-direction: column; border-top: 0; border-left: 1px solid var(--cc-line); margin: 16px 24px 8px 0; padding: 0 0 0 16px; text-align: center; justify-content: center; }
}
.cc.lay-landscape .cc-foot { text-align: center; }
/* 柔和漸層 */
.cc.lay-gradient { background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--cc-accent) 22%, transparent), transparent 60%), radial-gradient(90% 60% at 100% 10%, var(--cc-cover), transparent 70%), var(--cc-bg); border-color: color-mix(in srgb, var(--cc-accent) 18%, var(--cc-line)); }
.cc.lay-gradient .cc-cover { background: transparent; }
.cc.lay-gradient .cc-ct, .cc.lay-gradient .cc-it, .cc.lay-gradient .cc-chip { background: color-mix(in srgb, var(--cc-bg) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: color-mix(in srgb, var(--cc-accent) 16%, transparent); }
.cc.lay-gradient .cc-btn.pri { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
/* 黑金燙金（終身） */
.cc.lay-blackgold { --gold: linear-gradient(100deg, #b8892d 0%, #f6e27a 35%, #c99b3b 55%, #fff2b0 72%, #a87a22 100%); border-color: #3a2f18; }
.cc.lay-blackgold::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(212,175,55,.45); border-radius: calc(var(--cc-r) - 8px); pointer-events: none; z-index: -1; }
.cc.lay-blackgold .cc-cover { background: transparent; height: 64px; }
.cc.lay-blackgold .cc-av { box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3px #d4af37; }
.cc.lay-blackgold .cc-name { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; letter-spacing: .02em; }
.cc.lay-blackgold .cc-name .vbadge { -webkit-text-fill-color: initial; }
.cc.lay-blackgold .cc-lbl { color: #d4af37; letter-spacing: .24em; }
.cc.lay-blackgold .cc-ct, .cc.lay-blackgold .cc-it, .cc.lay-blackgold .cc-chip { background: transparent; border-color: rgba(212,175,55,.35); }
.cc.lay-blackgold .cc-ct-ic { color: #d4af37; background: transparent; }
.cc.lay-blackgold .cc-btn.pri { background: var(--gold); color: #1a1408; border-color: #d4af37; }
.cc.lay-blackgold .cc-btn { border-color: rgba(212,175,55,.45); }
.cc.lay-blackgold .cc-sec, .cc.lay-blackgold .cc-qr { border-color: rgba(212,175,55,.25); }
/* 金屬質感（終身） */
.cc.lay-metal { background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 3px), linear-gradient(135deg, #F3F5F7 0%, #C9D0D6 45%, #EEF1F4 62%, #B7BFC7 100%); border-color: #aeb6bf; }
.cc.lay-metal.tpl-metal[style*="--cc-bg:#0B0F14"] { background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), linear-gradient(135deg, #2B3138 0%, #11161D 50%, #3A424B 70%, #0B0F14 100%); border-color: #2b3138; }
.cc.lay-metal .cc-cover { background: transparent; height: 56px; }
.cc.lay-metal .cc-name { text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.25); letter-spacing: .03em; }
.cc.lay-metal .cc-ct, .cc.lay-metal .cc-it, .cc.lay-metal .cc-chip { background: color-mix(in srgb, var(--cc-bg) 55%, transparent); }
.cc.lay-metal .cc-av { box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 6px 16px rgba(0,0,0,.2); }

/* 公開頁 */
.cc-page { gap: 14px; }
.cc-switch { text-align: center; }
.cc-switch .btn { min-height: 44px; }

/* 範本縮圖（編輯器、GM） */
.cc-thumb { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--cc-bg); border: 1px solid var(--cc-line); overflow: hidden; }
.cc-thumb i { position: absolute; display: block; border-radius: 3px; background: var(--cc-fg); opacity: .85; }
.cc-thumb .t-c { inset: 0 0 auto 0; height: 26%; background: var(--cc-cover); border-radius: 0; opacity: 1; }
.cc-thumb .t-a { width: 28%; aspect-ratio: 1; left: 36%; top: 14%; border-radius: 50%; background: var(--cc-accent); opacity: 1; box-shadow: 0 0 0 2px var(--cc-bg); }
.cc-thumb .t-1 { height: 6%; width: 52%; left: 24%; top: 50%; }
.cc-thumb .t-2 { height: 4%; width: 36%; left: 32%; top: 61%; opacity: .45; }
.cc-thumb .t-3 { height: 9%; width: 64%; left: 18%; top: 74%; opacity: .14; border-radius: 6px; }
.cc-thumb.lay-magazine .t-c, .cc-thumb.lay-airy .t-c, .cc-thumb.lay-tech .t-c, .cc-thumb.lay-landscape .t-c { height: 4%; }
.cc-thumb.lay-magazine .t-a, .cc-thumb.lay-airy .t-a, .cc-thumb.lay-tech .t-a { left: 12%; width: 22%; border-radius: 4px; }
.cc-thumb.lay-magazine .t-1, .cc-thumb.lay-airy .t-1, .cc-thumb.lay-tech .t-1 { left: 12%; width: 70%; } .cc-thumb.lay-magazine .t-2, .cc-thumb.lay-airy .t-2, .cc-thumb.lay-tech .t-2, .cc-thumb.lay-magazine .t-3, .cc-thumb.lay-airy .t-3, .cc-thumb.lay-tech .t-3 { left: 12%; }
.cc-thumb.lay-magazine .t-1 { height: 9%; }
.cc-thumb.lay-tech { background-image: linear-gradient(var(--cc-line) 1px, transparent 1px), linear-gradient(90deg, var(--cc-line) 1px, transparent 1px); background-size: 8px 8px; }
.cc-thumb.lay-photo .t-c { height: 48%; background: linear-gradient(160deg, var(--cc-accent), var(--cc-cover)); }
.cc-thumb.lay-photo .t-a { display: none; }
.cc-thumb.lay-landscape { aspect-ratio: 3 / 4; }
.cc-thumb.lay-landscape .t-a { left: 10%; top: 18%; width: 22%; } .cc-thumb.lay-landscape .t-1 { left: 38%; top: 22%; width: 48%; } .cc-thumb.lay-landscape .t-2 { left: 38%; top: 32%; }
.cc-thumb.lay-gradient { background: radial-gradient(90% 60% at 0 0, var(--cc-accent), transparent 70%), radial-gradient(80% 60% at 100% 10%, var(--cc-cover), transparent 70%), var(--cc-bg); }
.cc-thumb.lay-gradient .t-c { opacity: 0; }
.cc-thumb.lay-blackgold { background: #0a0a0a; box-shadow: inset 0 0 0 4px #0a0a0a, inset 0 0 0 5px #d4af37; }
.cc-thumb.lay-blackgold .t-c { opacity: 0; } .cc-thumb.lay-blackgold i { background: linear-gradient(100deg, #b8892d, #f6e27a 40%, #a87a22); }
.cc-thumb.lay-metal { background: linear-gradient(135deg, #F3F5F7, #C9D0D6 45%, #EEF1F4 62%, #B7BFC7); }
.cc-thumb.lay-metal .t-c { opacity: 0; }

/* 編輯器 */
.cc-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.cc-cards { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 100%; padding-bottom: 2px; scrollbar-width: none; }
.cc-cardtab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.cc-cardtab.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.cc-cardtab small { font-size: 11px; opacity: .7; font-weight: 500; }
.cc-cardtab.add { border-style: dashed; color: var(--muted); }
.cc-cardtab .ico { width: 16px; height: 16px; }
.cc-top .seg .seg-b, .cc-ed .seg .seg-b { min-height: 40px; padding: 6px 16px; }
.cc-tabs { display: inline-flex; margin-left: auto; }
.cc-ed { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.cc-ed .cc-ed-prev { display: none; }
.cc-ed.show-prev .cc-ed-prev { display: block; }
.cc-ed.show-prev .cc-ed-set { display: none; }
@media (min-width: 960px) {
  .cc-tabs { display: none; }
  .cc-ed { grid-template-columns: minmax(0, 1fr) 460px; align-items: start; }
  .cc-ed .cc-ed-prev, .cc-ed.show-prev .cc-ed-prev { display: block; position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; padding: 2px 2px 12px; }
  .cc-ed.show-prev .cc-ed-set { display: grid; }
}
.cc-ed-set { display: grid; gap: 14px; }
.cc-ed-sec .sec-title { display: flex; align-items: center; gap: 8px; }
.cc-2col { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cc-2col { grid-template-columns: 1fr 1fr; } }
.cc-slug { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-slug .input { flex: 1 1 160px; min-width: 0; }
.cc-sort { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-sort li { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: box-shadow .15s ease; }
.cc-sort li.dragging { box-shadow: 0 10px 30px rgba(0,0,0,.14); position: relative; z-index: 2; }
.ce-grip { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--faint, #9CA3AF); cursor: grab; touch-action: none; border-radius: 10px; }
.ce-grip:active { cursor: grabbing; }
.ce-grip:focus-visible { outline: 2px solid var(--primary, #4F46E5); }
.ce-ct { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr) 116px; grid-template-areas: "g i n t" "v v v s" "m m m m"; align-items: center; gap: 0 8px; padding: 2px 12px 10px 2px; }
.ce-ct .ce-grip { grid-area: g; } .ce-ct .ce-ct-ic { grid-area: i; display: grid; place-items: center; color: var(--muted); } .ce-ct .ce-ct-n { grid-area: n; font-weight: 650; font-size: 14px; } .ce-ct .pub-toggle { grid-area: t; min-height: 44px; }
.ce-ct .pub-toggle { justify-self: end; }
.ce-ct .ce-ct-v { grid-area: v; margin-left: 12px; min-width: 0; } .ce-ct .ce-ct-vis { grid-area: s; margin: 0; width: 100%; min-height: 44px; padding-left: 10px; padding-right: 4px; font-size: 13px; }
.ce-ct .ce-ct-msg { grid-area: m; margin: 6px 0 0 12px; }
@media (min-width: 600px) { .ce-ct { grid-template-columns: 44px 28px 110px minmax(0, 1fr) 130px auto; grid-template-areas: "g i n v s t" "m m m m m m"; padding: 4px 12px 4px 2px; } .ce-ct .ce-ct-v, .ce-ct .ce-ct-vis { margin: 0; } .ce-ct .ce-ct-vis { width: 100%; } .ce-ct .ce-ct-msg { margin: 0 0 6px 80px; } }
.ce-ct:not(.on) .ce-ct-ic, .ce-ct:not(.on) .ce-ct-n { opacity: .55; }
.ce-blk { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 2px; min-height: 52px; }
.ce-blk .pub-toggle { min-height: 44px; }
.ce-blk:not(.on) label.grow { color: var(--muted); }
.warn-t { color: #B45309; } .ok-t { color: #047857; }
[data-theme="dark"] .warn-t { color: #FBBF24; } [data-theme="dark"] .ok-t { color: #34D399; }
.cc-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.cc-tpl { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.cc-tpl.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.cc-tpl-n { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; }
.cc-tpl-tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 18px; }
.cc-tier { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; background: var(--text); color: var(--bg); line-height: 16px; }
.cc-tier.lifetime { background: linear-gradient(100deg, #b8892d, #f6e27a 45%, #a87a22); color: #1a1408; }
.cc-new { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--primary, #4F46E5); color: #fff; line-height: 16px; }
.cc-off { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); line-height: 14px; }
.cc-lockic { display: inline-grid; color: var(--muted); } .cc-lockic .ico { width: 14px; height: 14px; }
.cc-sw { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-swb { display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--text); font: inherit; min-width: 56px; }
.cc-swb > span { position: relative; width: 52px; height: 52px; border-radius: 14px; border: 1px solid; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.cc-swb > span i { position: absolute; right: 6px; bottom: 6px; width: 10px; height: 10px; border-radius: 50%; }
.cc-swb.on > span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.cc-swb small { font-size: 11.5px; color: var(--muted); }
.cc-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-dot { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; position: relative; display: inline-block; flex: none; }
.cc-dot::before { content: ""; position: absolute; inset: -6px; } /* 點擊範圍 44px */
.cc-dot.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.cc-hex { width: 110px; min-height: 40px; }
.seg-b.f-serif { font-family: "Noto Serif TC", Georgia, serif; } .seg-b.f-mono { font-family: ui-monospace, Menlo, monospace; }
.cc-logo { gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.cc-logo-img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.cc-lockbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; font-size: 13px; flex-wrap: wrap; }
.cc-lockbar span { flex: 1 1 160px; }
.cc-savebar { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.cc-savebar .btn { min-width: 160px; }
.cc-links .share-url { display: flex; align-items: center; gap: 8px; }
.cc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cc-kpi { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.cc-kpi b { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cc-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 10px; }
.cc-bars i { flex: 1; min-height: 2px; background: var(--text); opacity: .8; border-radius: 2px 2px 0 0; }
@media (max-width: 420px) { .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-head, .cc-body { padding-left: 18px; padding-right: 18px; } .cc-qr { margin-left: 18px; margin-right: 18px; } }
@media (prefers-reduced-motion: reduce) { .cc-ct, .cc-sort li { transition: none; } }
/* v1.16.0：編輯器的點擊範圍至少 44px */
.cc-ed .pub-toggle, .cc-ed-set .pub-toggle { min-height: 44px; min-width: 44px; justify-content: center; }
.cc-top .seg .seg-b, .cc-ed .seg .seg-b { min-height: 44px; }
.cc-dot { width: 36px; height: 36px; } .cc-dot::before { inset: -4px; }
.cc-ed-set { grid-template-columns: minmax(0, 1fr); } .cc-ed-set > * { min-width: 0; }
.cc-ed .seg, .cc-top .seg { flex-wrap: wrap; max-width: 100%; }
.cc-slug > span { overflow-wrap: anywhere; min-width: 0; }
@media (min-width: 960px) { .cc-savebar { margin-right: 478px; } }
.cc-actions { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cc-dot { width: 44px; height: 44px; } .cc-dot::before { display: none; }

/* ===== v1.16.1：預覽上方的「分享」「下載圖片」、下載選單、分享面板 ===== */
.cc-wrap { container-type: inline-size; width: 100%; }
.cc-prevbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0 10px; background: var(--bg); }
.cc-prevbar > .label { flex: 1 1 160px; margin: 0; }
.cc-pb-btns { display: flex; gap: 8px; position: relative; }
.cc-pb { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 0 18px; white-space: nowrap; }
.cc-pb .ico { width: 18px; height: 18px; }
.btn.cc-pb:not(.primary) { background: var(--surface); border: 1px solid var(--line-strong, var(--line)); color: var(--text); }
.cc-dlwrap { position: relative; display: inline-flex; }
.cc-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; display: grid; gap: 2px; }
.cc-menu button { display: grid; gap: 1px; text-align: left; min-height: 48px; padding: 8px 12px; border: 0; background: none; border-radius: 10px; color: var(--text); font: inherit; cursor: pointer; }
.cc-menu button:hover, .cc-menu button:focus-visible { background: var(--surface-2); outline: none; }
.cc-menu b { font-size: 14px; } .cc-menu small { font-size: 12px; color: var(--muted); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: cc-spin .7s linear infinite; flex: none; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
.btn.busy { opacity: .85; cursor: progress; }
.cc-pubbar { justify-content: flex-end; top: 57px; z-index: 6; }
.cc-pubbar .cc-pb-btns.one { width: auto; }
/* 手機：預覽分頁最上面，兩顆各一半 */
@media (max-width: 959px) {
  .cc-ed .cc-prevbar { top: 57px; z-index: 6; }
  .cc-prevbar .cc-pb-btns { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cc-prevbar .cc-pb-btns.one { grid-template-columns: 1fr; }
  .cc-prevbar .cc-dlwrap, .cc-prevbar .cc-pb { width: 100%; }
  .cc-menu { left: 0; right: auto; min-width: 0; width: max(100%, 240px); }
  .cc-pubbar .cc-menu { left: auto; right: 0; }
}
/* 分享面板 */
.cc-sheet { max-width: 520px; }
.cc-sh-top { display: flex; gap: 14px; align-items: flex-start; }
.cc-sh-thumb { width: 84px; aspect-ratio: 9 / 16; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; flex: none; color: var(--muted); }
.cc-sh-thumb:empty { display: none; }
.cc-sh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-sh-top textarea { resize: vertical; min-height: 84px; }
.cc-sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.cc-sh-b { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; min-height: 76px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; text-decoration: none; cursor: pointer; text-align: center; }
.cc-sh-b:hover { border-color: var(--text); }
.cc-sh-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.cc-sh-ic .ico { width: 18px; height: 18px; }
#sh-native { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cc-dl-img { max-width: 100%; height: auto; display: block; margin: 8px auto; border-radius: 8px; }
@media (min-width: 760px) { .cc-pubbar, .cc-ed .cc-prevbar { top: 65px; } }
@media (min-width: 960px) { .cc-ed .cc-prevbar { top: 0; } }
.cc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-foot { padding: 10px 24px 16px; }

/* ===== v1.17.0：個人頁改版（左窄欄 300px sticky＋右主欄；手機單欄、主按鈕固定在底部） ===== */
.pp { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); max-width: 1120px; margin: 0 auto; }
.pp-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pp-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 900px) {
  .pp { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
  .pp-side { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
}
.pp-id { display: grid; gap: 12px; }
.pp-av.avatar { width: 96px; height: 96px; font-size: 38px; }
.pp-idtxt { display: grid; gap: 4px; min-width: 0; }
.pp-name { margin: 0; font-size: 24px; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pp-score { justify-self: start; font-size: 12.5px; font-weight: 700; color: var(--primary, #4F46E5); background: color-mix(in srgb, var(--primary, #4F46E5) 10%, transparent); padding: 2px 10px; border-radius: 999px; }
.pp-job { font-size: 15px; font-weight: 600; }
.pp-headline { margin: 2px 0 0; font-size: 15px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.pp-meta { line-height: 1.5; }
.pp-why { font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.pp-why summary { cursor: pointer; list-style: none; display: grid; gap: 2px; min-height: 28px; }
.pp-why summary::-webkit-details-marker { display: none; }
.pp-why summary > span:first-child { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--faint, #9CA3AF); }
.pp-why1 { color: var(--text); }
.pp-why > div { margin-top: 4px; }
.pp-cta .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pp-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn.lg { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.icon-btn.lg:hover { border-color: var(--line-strong, var(--line)); }
.icon-btn.lg.on, .icon-btn.lg[aria-pressed="true"] { color: #E11D48; border-color: color-mix(in srgb, #E11D48 35%, var(--line)); }
#follow[aria-pressed="true"] { color: var(--primary, #4F46E5); border-color: color-mix(in srgb, var(--primary, #4F46E5) 35%, var(--line)); }
.icon-btn .ico { width: 20px; height: 20px; }
.pp-more-wrap { position: relative; display: inline-flex; }
.pp-menu { left: 0; right: auto; min-width: 200px; }
.pp-menu .danger-t b { color: var(--danger, #DC2626); }
.pp-lock { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.pp-lock .ico { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.pp-pub summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.pp-socials { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-socials .icon-btn { width: 44px; height: 44px; border-radius: 12px; color: var(--muted); }
.pp-socials .icon-btn:hover { color: var(--text); background: var(--surface-2); }
.pp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; }
.pp-stat { display: grid; gap: 2px; padding: 10px 4px; text-align: center; min-width: 0; }
.pp-stat + .pp-stat { border-left: 1px solid var(--line); }
.pp-stat b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-stat span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 6px; } .pp-badges:empty { display: none; }
.pp-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.pp-badge .ico { width: 14px; height: 14px; }
.pp-heatbox { display: grid; gap: 6px; }
.heat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; max-width: 280px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.heat i.lv1 { background: color-mix(in srgb, var(--text) 25%, transparent); border-color: transparent; }
.heat i.lv2 { background: color-mix(in srgb, var(--text) 55%, transparent); border-color: transparent; }
.heat i.lv3 { background: var(--text); border-color: transparent; }
.pp-teams { display: grid; gap: 6px; }
.pp-team { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; min-height: 44px; }
.pp-team .ico { width: 16px; height: 16px; flex: none; }
.pp-cond { display: grid; gap: 10px; padding: 16px 20px; }
.pp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.pp-k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pp-v { min-width: 0; font-size: 14px; }
.chips.sm .chip { font-size: 12.5px; padding: 2px 10px; }
.pp-tabs { margin: 4px 0 0; position: sticky; top: 64px; z-index: 3; background: var(--bg); padding: 6px 0; }
.pp-panel { min-height: 160px; }
.pp-logbar { gap: 10px; margin-bottom: 12px; }
.pp-gm summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.pp-feat-empty { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pp-feat-empty .ill { width: 96px; height: auto; }
.pp-feat-empty > div { flex: 1 1 200px; }
/* 精選卡片 */
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feat-grid .fcard.big { grid-column: 1 / -1; }
.feat-grid .fcard.big.has-cover { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); display: grid; }
.feat-grid .fcard.big.has-cover .fc-cover { aspect-ratio: auto; min-height: 180px; height: 100%; }
.fcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; min-width: 0; transition: border-color .15s ease; }
.fcard:hover { border-color: var(--line-strong, #D4D4D4); }
.fc-cover { position: relative; display: block; aspect-ratio: 1.91 / 1; background: var(--surface-2); overflow: hidden; }
.fc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.fc-play .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(0,0,0,.55); fill: #fff; }
.fc-body { display: grid; gap: 6px; padding: 12px 14px 14px; align-content: start; }
.fc-kind { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); letter-spacing: .02em; }
.fc-kind .ico { width: 14px; height: 14px; }
.fc-status { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.fc-status.st-live { color: #047857; border-color: color-mix(in srgb, #047857 35%, var(--line)); }
.fc-status.st-building { color: #B45309; border-color: color-mix(in srgb, #B45309 35%, var(--line)); }
.fc-vis { margin-left: auto; display: inline-flex; } .fc-vis .ico { width: 13px; height: 13px; }
.fc-title { font-size: 15px; line-height: 1.35; }
.fc-sub { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.fc-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.fc-role { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); }
.fc-tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.fc-site { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint, #9CA3AF); min-width: 0; }
.fc-site img { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.fc-clicks { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; } .fc-clicks .ico { width: 13px; height: 13px; }
.feat-grid.list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 899px) {
  .pp { gap: 16px; }
  .pp-id { grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 14px; }
  .pp-av.avatar { width: 72px; height: 72px; font-size: 28px; }
  .pp-name { font-size: 21px; }
  /* 主按鈕固定在底部（底部選單上面） */
  .pp-cta { position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 15; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .pp { padding-bottom: 76px; }
  .pp-side { display: contents; }
  .pp-id { order: 1; } .pp-why { order: 2; } .pp-icons { order: 3; } .pp-side > .lock-box { order: 4; } .pp-lock, .pp-pub, .pp-side > .contact-fold { order: 5; } .pp-socials { order: 6; } .pp-stats { order: 7; } .pp-badges { order: 8; } .pp-heatbox { order: 9; } .pp-teams { order: 10; } .pp-fol { order: 11; }
  .pp-main { order: 20; }
  .pp { display: flex; flex-direction: column; }
  /* 精選：橫向滑動 */
  .pp-feat .feat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .pp-feat .fcard, .pp-feat .feat-grid .fcard.big.has-cover { flex: 0 0 78%; scroll-snap-align: start; display: flex; }
  .pp-feat .feat-grid .fcard.big.has-cover .fc-cover { aspect-ratio: 1.91 / 1; min-height: 0; height: auto; }
  .pp-tabs { top: 56px; }
  .pp-row { grid-template-columns: 80px minmax(0, 1fr); }
}
/* Build log */
.blog { display: grid; gap: 10px; padding: 16px 18px; }
.blog-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.blog-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-item .ico { width: 13px; height: 13px; flex: none; }
.blog-body { font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.blog-imgs { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-imgs.n1 { grid-template-columns: minmax(0, 1fr); }
.blog-imgs img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.blog-links { display: grid; gap: 4px; }
.blog-links a { display: flex; gap: 6px; align-items: center; font-size: 13px; min-width: 0; min-height: 32px; }
.blog-links .ico { width: 14px; height: 14px; flex: none; }
.blog-foot { display: flex; gap: 4px; }
.blog-act { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; background: none; border-radius: 10px; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.blog-act:hover { background: var(--surface-2); } .blog-act.on { color: #E11D48; }
.blog-act .ico { width: 18px; height: 18px; }
.blog-cms { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.blog-cm { font-size: 13.5px; line-height: 1.5; }
.blog-cm-form { display: flex; gap: 8px; } .blog-cm-form .input { flex: 1; min-width: 0; }
.bl-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .bl-imgs:empty { display: none; }
.bl-thumb { position: relative; } .bl-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.bl-thumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.right { text-align: right; }
/* 首頁：每週精選、完整度 */
.comp-mini { display: grid; gap: 8px; margin-top: 16px; padding: 14px 18px; }
.comp-next { display: flex; flex-wrap: wrap; gap: 6px; }
.comp-next a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; }
.comp-next .ico { width: 14px; height: 14px; }
.picks { margin-top: 24px; }
.picks .section-head h2 { display: flex; align-items: center; gap: 6px; }
.picks-sub { margin: -6px 0 10px; }
.picks-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.pick-card { flex: 0 0 260px; scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pick-card.acted { opacity: .62; }
.pick-top { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; min-width: 0; }
.pick-top .grow { display: grid; min-width: 0; }
.pick-score { font-weight: 700; color: var(--primary, #4F46E5); font-size: 14px; }
.pick-hl { color: var(--muted); }
.pick-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: auto; }
.pick-acts .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pick-acts .small { grid-column: 1 / -1; text-align: center; padding: 12px 0; }
/* 誰看過我 */
.vw-stats { margin-bottom: 16px; }
.vw-lock { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 20px; }
.vw-blur { display: flex; gap: 8px; align-items: center; }
.avatar.blur { filter: blur(5px); }
.vw-more { font-weight: 700; color: var(--muted); }
/* 精選管理 */
.ft-row { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 2px; min-height: 56px; }
.ft-ic { display: grid; place-items: center; width: 32px; color: var(--muted); }
.ft-t { display: grid; min-width: 0; }
.ft-t small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .ft-t small .ico { width: 12px; height: 12px; }
.ft-row .icon-btn { width: 44px; height: 44px; }
.empty-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; } .empty-mini .ill { width: 72px; height: auto; }
.ft-kinds { display: flex; flex-wrap: wrap; margin-bottom: 6px; }
.ft-kinds .seg-b { min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.ft-kinds .seg-b .ico { width: 15px; height: 15px; }
.ft-cover { gap: 10px; align-items: center; flex-wrap: wrap; } .ft-cover img { width: 96px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ft-modal { max-width: 560px; }
.ft-st { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cc-bars.sm { height: 36px; margin-top: 0; }
.soc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.soc-in { display: flex; align-items: center; gap: 8px; }
.soc-ic { width: 36px; height: 44px; display: grid; place-items: center; color: var(--muted); flex: none; }
.soc-in .input { flex: 1; min-width: 0; }
.soc-custom { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 480px) { .soc-custom { grid-template-columns: minmax(0, 1fr); } }
/* 試合作 Sprint（聊天室） */
.sp-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 10px 0; }
.sp-card > summary, .sp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; min-height: 48px; cursor: pointer; list-style: none; }
.sp-card > summary::-webkit-details-marker { display: none; }
.sp-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); } .sp-ic .ico { width: 16px; height: 16px; }
.sp-in { display: grid; gap: 12px; padding: 0 16px 16px; }
.sp-goal { display: flex; gap: 6px; align-items: center; font-weight: 650; } .sp-goal .ico { width: 16px; height: 16px; }
.sp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .sp-split { grid-template-columns: 1fr; } }
.sp-bar { height: 6px; }
.sp-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sp-items li { display: flex; align-items: center; gap: 4px; }
.sp-items .check-row { flex: 1; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.sp-items .done { text-decoration: line-through; color: var(--muted); }
.sp-items .chip.sm { font-size: 11px; padding: 0 8px; }
.sp-add { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 6px; }
@media (max-width: 480px) { .sp-add { grid-template-columns: minmax(0, 1fr) 100px; } .sp-add .btn { grid-column: 1 / -1; } }
.sp-ck, .sp-dec { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.sp-dbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-dbtns .btn { min-height: 44px; } .sp-dbtns .btn.on { box-shadow: 0 0 0 2px var(--text); }
.sp-hist { display: grid; gap: 2px; color: var(--muted); }
/* GM 成長指標 */
.gm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gm-kpi { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gm-kpi b { font-size: 22px; font-variant-numeric: tabular-nums; } .gm-kpi span { font-size: 13px; font-weight: 600; } .gm-kpi small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.pp-tabs button { min-height: 44px; display: inline-flex; align-items: center; }
.blog-cms[hidden], .pp [hidden] { display: none !important; }
.pp-feat .section-head { margin-top: 0; }

/* =====================================================================
   v1.18.0：品牌 Logo、加到主畫面提示列、首頁精簡、卡片溢出、配對度說明、新配對頭像列、聚會範本
   ===================================================================== */
:root { --logo-brand: #4F46E5; --logo-ink: #0A0A0A; --logo-sub: #6B7280; }
:root[data-theme="dark"] { --logo-brand: #818CF8; --logo-ink: #FFFFFF; --logo-sub: #A1A1AA; }
.lg { display: block; height: auto; flex: none; }
.brand { gap: 8px; min-height: 44px; }
.brand .lg-h { height: 26px; width: auto; }
.brand .lg-m { height: 26px; width: auto; }
.brand .lg-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 759px) { .brand .lg-h { height: 22px; } .brand .lg-m { height: 22px; } }
@media (max-width: 340px) { .brand .lg-h { height: 19px; } }
.footer-logo { display: inline-flex; margin: 0 auto 10px; } .footer-logo .lg-h { height: 22px; width: auto; }
.footer .footer-logo + br { display: none; }
.hero-logo { margin-bottom: 20px; } .hero-logo .lg-h { height: 40px; width: auto; }
.hero-slogan { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 759px) { .hero-logo .lg-h { height: 32px; } }
.consent-logo { margin-bottom: 14px; } .consent-logo .lg-h { height: 26px; width: auto; }
.lg-loader { display: flex; justify-content: center; padding: 20px 0; }
.lg-spin { width: 64px; height: auto; animation: lgSway 1.6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes lgSway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .lg-spin { animation: none; } }
.cc-foot { display: inline-flex; align-items: center; gap: 6px; }
.cc-foot .cc-foot-lg { height: 13px; width: auto; --logo-ink: var(--cc-fg, #0A0A0A); }
.bcard-brand .brand-logo { width: auto; height: 24px; border-radius: 0; box-shadow: none; background: #fff; padding: 3px 4px; border-radius: 8px; box-sizing: content-box; }

/* B：加到主畫面提示列（首頁內容流、一行、≤48px） */
.install-strip { display: flex; align-items: center; gap: 10px; min-height: 48px; max-height: 48px; padding: 0 4px 0 10px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.install-strip img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.install-strip .is-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-strip .btn { flex: none; min-height: 36px; }
.is-x { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.is-x .ico { width: 18px; height: 18px; }

/* C：首頁 */
.greet-sub { margin-top: 4px; }
.next-card .nc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.next-card .nc-label { margin: 0; }
.next-card .nc-pct { margin-left: auto; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.next-card .nc-bar { margin-bottom: 14px; }
.next-card .nc-hint { margin-top: 10px; }
.nc-ic { display: inline-flex; color: var(--muted); } .nc-ic .ico { width: 20px; height: 20px; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2, #F5F5F5); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary, #4F46E5); border-radius: inherit; }
.picks-left { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .picks-left .ico { width: 14px; height: 14px; }
.picks .section-head { flex-wrap: wrap; }
.recs-more { display: flex; justify-content: center; margin-top: 16px; }
.recs-empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--surface-2, #F5F5F5); }
.recs-empty .small { flex: 1; min-width: 160px; }
.hstats.hstats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 759px) {
  .hstats.hstats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hstats.hstats4 .hstat { border-left: 0; padding: 12px 0; }
  .hstats.hstats4 .hstat:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 16px; }
  .hstats.hstats4 .hstat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.hstat { min-width: 0; } .hs-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-hint { display: flex; align-items: center; gap: 10px; padding: 10px 4px 10px 14px; border-radius: 12px; background: var(--surface-2, #F5F5F5); }
.meet-hint .mh-ic { display: inline-flex; color: var(--muted); } .meet-hint .btn { flex: none; min-height: 40px; }

/* D：人物卡：文字不溢出、「正在找」最多 2 行、標籤列保證「+N」完整、同列卡片等高 */
.grid { align-items: stretch; }
.pcard { min-width: 0; overflow: hidden; }
.pcard .pcard-top, .pcard .pcard-id, .pcard .name { min-width: 0; }
.pcard .headline.one-line, .pcard-meta.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-want.clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.chips.pcard-tags { display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden; min-width: 0; mask-image: none; -webkit-mask-image: none; }
.chips.pcard-tags .chip { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips.pcard-tags .chip.more { flex: none; overflow: visible; }
button.score { cursor: pointer; font: inherit; font-weight: 700; min-height: 32px; min-width: 44px; padding: 0 6px; margin: -6px -6px 0 0; border-radius: 8px; background: none; border: 0; color: var(--primary); flex: none; }
button.score:hover, button.score:focus-visible { background: color-mix(in srgb, var(--primary, #4F46E5) 8%, transparent) !important; }
button.pp-score { cursor: pointer; border: 0; font: inherit; font-weight: 700; min-height: 28px; }
.pick-card { min-width: 0; } .pick-card b, .pick-card .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* E：為什麼推薦（手機 bottom sheet） */
.why-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.why-head h2 { margin: 0; font-size: 20px; }
.why-score { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.why-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.why-row { display: grid; gap: 6px; }
.why-top { display: flex; align-items: baseline; gap: 8px; } .why-k { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; }
.why-pts { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; } .why-pts small { color: var(--muted); font-weight: 500; }
.why-bar { height: 6px; border-radius: 999px; background: var(--surface-2, #F5F5F5); overflow: hidden; } .why-bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.why-d { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.why-foot { margin: 16px 0 14px; font-size: 12.5px; line-height: 1.55; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.why-pen { margin-top: 10px; }
.pp-why .why-list { margin-top: 10px; gap: 10px; } .pp-why .link-btn { margin-top: 8px; padding: 0; min-height: 32px; }
.sheet-grab { display: none; }
@media (max-width: 759px) {
  .modal-bg:has(.modal.sheet) { align-items: flex-end; padding: 0; }
  .modal.sheet { width: 100%; max-width: none; margin: 0; border-radius: 20px 20px 0 0; max-height: 88vh; overflow: auto; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .2s ease-out; }
  .modal.sheet .sheet-grab { display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: -6px auto 12px; }
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* G：訊息 → 新配對頭像列 */
.new-matches { margin-bottom: 16px; }
.nm-h { display: flex; gap: 6px; align-items: baseline; margin-bottom: 8px; }
.nm-row { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.nm-row::-webkit-scrollbar { display: none; }
.nm-item { flex: 0 0 auto; width: 64px; display: grid; justify-items: center; gap: 4px; color: var(--text); text-decoration: none; scroll-snap-align: start; min-height: 44px; }
.nm-item .avatar { width: 56px; height: 56px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.nm-name { font-size: 12px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-tip { padding: 8px 0; }
.tpl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .tpl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inv-usage .row { gap: 10px; } .inv-usage .iu-ic { display: inline-flex; color: var(--muted); } .inv-usage .iu-n { font-weight: 700; font-variant-numeric: tabular-nums; } .inv-usage .bar { margin: 10px 0 6px; }
button.pp-score { justify-self: start; min-height: 44px; padding: 0; margin: -8px 0; background: none !important; color: inherit; display: inline-flex; align-items: center; }
button.pp-score .pps-in { font-size: 12.5px; font-weight: 700; color: var(--primary, #4F46E5); background: color-mix(in srgb, var(--primary, #4F46E5) 10%, transparent); padding: 3px 10px; border-radius: 999px; }
.pp-why .link-btn { min-height: 44px; }

/* =====================================================================
   v1.18.1：品牌文案（定位標籤 brand.positioning／副標 brand.tagline／首頁大標 brand.hero）
   ===================================================================== */
.brand { --lgh: 26px; min-width: 0; flex: 0 1 auto; }
.brand .lg-h { height: var(--lgh); }
.bl { display: grid; min-width: 0; }
.brand .bl-row { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.brand .bl-pos { display: inline-flex; align-items: center; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--text-2, #6B7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .bl-pos::before { content: ""; flex: none; width: 1px; height: 16px; background: var(--border, #EAEAEA); margin: 0 12px; }
.brand .bl-tag { display: block; font-size: 11.5px; line-height: 1.2; font-weight: 500; color: var(--text-2, #6B7280); margin: 2px 0 0 calc(var(--lgh) * 1.5006); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1023px) { .brand .bl-tag { display: none; } }
@media (max-width: 767px) { .brand .bl-pos, .brand .bl-tag { display: none; } .brand { --lgh: 22px; } }
.topbar.bl-no-tag .bl-tag, .topbar.bl-no-pos .bl-tag, .topbar.bl-no-pos .bl-pos { display: none; }
.topnav { flex: none; flex-wrap: nowrap; white-space: nowrap; }
/* 首頁（手機）招呼語上方一行定位標籤 */
.greet-pos { font-size: 13px; line-height: 1.4; color: var(--text-2, #6B7280); margin: 0 0 6px; }
@media (min-width: 768px) { .greet-pos { display: none; } }
/* 未登入首頁：Logo＋定位、H1 大標、副標 */
.hero-logo { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-bottom: 20px; }
.hero-pos { display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--text-2, #6B7280); }
.hero-pos::before { content: ""; width: 1px; height: 18px; background: var(--border, #EAEAEA); margin: 0 12px; }
.hero-v2 h1.hero-h1, h1.hero-h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
:lang(th) h1.hero-h1 { line-height: 1.35; letter-spacing: 0; }
.hero-slogan { margin: 0 0 18px; font-size: 18px; line-height: 1.5; color: var(--text-2, #6B7280); }
@media (max-width: 767px) { .hero-logo .lg-h { height: 30px; } .hero-pos { font-size: 13px; } .hero-slogan { font-size: 16px; } }
/* 註冊同意視窗、頁尾、個人選單 */
.consent-logo { --lgh: 26px; } .consent-logo .lg-h { height: var(--lgh); }
.consent-tag { margin: 6px 0 0 calc(var(--lgh) * 1.5006); font-size: 12px; line-height: 1.2; color: var(--text-2, #6B7280); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-brand .footer-logo { margin: 0; }
.fb-txt { display: grid; gap: 2px; text-align: left; font-size: 13px; line-height: 1.3; color: var(--text-2, #6B7280); }
.fb-txt b { color: var(--text, #0A0A0A); font-weight: 600; }
.footer .footer-brand + br { display: none; }
.mm-foot { padding: 8px 14px 6px; font-size: 12px; line-height: 1.3; color: var(--text-2, #6B7280); }
/* 泰文 / 韓文字型 fallback（Google Fonts 的 Noto Sans Thai / Noto Sans KR，載不到時用系統字） */
:lang(th) body, :lang(th) .btn, :lang(th) input, :lang(th) textarea { font-family: "Inter", "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Tahoma", sans-serif; }
:lang(ko) body, :lang(ko) .btn, :lang(ko) input, :lang(ko) textarea { font-family: "Inter", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) .hero-slogan, :lang(ko) .bl-pos, :lang(ko) .greet-pos { word-break: keep-all; }
@media (min-width: 768px) { .brand .bl-pos { display: block; line-height: 20px; } .brand .bl-pos::before { display: inline-block; vertical-align: -3px; } .topbar.bl-no-pos .bl-pos { display: none; } }
:lang(zh-Hant) h1.hero-h1 { word-break: keep-all; }
/* 未登入首頁：導覽列已有 Logo＋定位（桌機），手機在大標上方補一行定位標籤 */
.hero-pos-m { font-size: 13px; color: var(--text-2, #6B7280); margin-bottom: 10px; }
@media (min-width: 768px) { .hero-pos-m { display: none; } }

/* v1.18.2：姓名安全顯示 */
.avatar.av-ring { background: var(--group, #F5F5F5); display: inline-flex; align-items: center; justify-content: center; }
.avatar.av-ring svg { width: 64%; height: auto; }
.name-fix-hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 16px; border-radius: 12px; background: var(--group, #F5F5F5); font-size: 14px; }
.name-fix-hint .btn { flex: none; min-height: 40px; }
.tbl-wrap { overflow-x: auto; margin: 10px 0; }
table.tbl { border-collapse: collapse; width: 100%; } table.tbl th, table.tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, #EAEAEA); vertical-align: top; }
.nf-old code { font-size: 12px; word-break: break-all; }
.chip.warn { background: #FEF3C7; color: #92400E; }

/* v1.19.0 區塊放在 styles.css（GM 切回 v1.13 外觀時 theme-v14.css 會停用，新功能仍要有樣式）；這幾個變數在 theme-v14 會被覆蓋 */
:root { --text-2: #6B6966; --group: #F5F5F4; --border: #E9E7E4; --brand: #4F46E5; --r-1: 8px; --r-2: 12px; }
:root[data-theme="dark"] { --text-2: #9a9ab3; --group: #22222f; --border: #2c2c3c; --brand: #8b84ff; }
/* =====================================================================
   v1.19.0：我來這裡想要（目的）、產品櫥窗、幫賣、成交、我的收益、階段任務 L1–L5
   規範同 Design System v1：主要按鈕黑底、--brand 只用在分潤 %、徽章、目前分頁；點擊區 ≥44px；320px 不溢出
   ===================================================================== */
.m-only { display: none; } @media (max-width: 759px) { .m-only { display: flex; } }
.warn-txt { color: #B45309; } :root[data-theme="dark"] .warn-txt { color: #FBBF24; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid3 .field, .grid2 .field { min-width: 0; }

/* 目的標籤 */
.chip.intent { background: var(--group); border-color: transparent; color: var(--text); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intent-chips, .pp-intents { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pp-intents { margin-top: 8px; }
.pp-lvl { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); white-space: nowrap; }

/* 產品櫥窗：說明三步 */
.mk-head { align-items: flex-start; gap: 8px; }
.mk-head .btn { min-height: 40px; }
.mk-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--r-2); background: var(--group); }
.mk-how-i { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.mk-how-i b { font-size: 14px; }
.mk-how-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
@media (max-width: 759px) { .mk-how { grid-template-columns: 1fr; gap: 10px; padding: 12px 14px; } }
.mk-kinds { scrollbar-width: none; margin-bottom: 10px; } .mk-kinds::-webkit-scrollbar { display: none; }
.mk-kinds button { min-height: 36px; }
.mk-kinds button.on { background: var(--text); color: var(--bg); }
.mk-bar { flex-wrap: wrap; gap: 8px 10px; }
.mk-sel { display: inline-flex; align-items: center; gap: 6px; }
.mk-sel select { min-height: 36px; padding: 4px 28px 4px 10px; width: auto; }
.mk-bar .seg button { min-height: 32px; }
.mk-note { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-1); background: var(--group); color: var(--text-2); line-height: 1.45; }
.mk-note .ico { flex: none; margin-top: 2px; }
.mk-quota { margin-bottom: 12px; }

/* 產品卡 */
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 559px) { .prod-grid { grid-template-columns: 1fr; } }
.card.prod-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pc-cover { position: relative; aspect-ratio: 16 / 9; background: var(--group); overflow: hidden; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.pc-ph .ico { width: 36px; height: 36px; }
.pc-feat { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; }
.pc-share-badge { position: absolute; right: 10px; top: 10px; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pc-kind { font-size: 12px; font-weight: 600; color: var(--text-2); }
.pc-feat-i { color: var(--brand); }
.pc-name { font-size: 16.5px; font-weight: 750; margin: 0; }
.pc-tag { font-size: 14px; color: var(--text-2); line-height: 1.45; min-height: 2.9em; }
.pc-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
.pc-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-stats { font-size: 12.5px; color: var(--text-2); }
.pc-status { margin-top: 4px; }
.pc-todo { padding: 8px 14px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--brand); }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-feat-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 14px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scroll-snap-type: x mandatory; }
.mk-feat-row > * { scroll-snap-align: start; }
@media (max-width: 559px) { .mk-feat-row { grid-auto-columns: 82%; } }

/* 上架表單 */
.mk-form .sec-title { font-size: 17px; margin: 18px 0 2px; }
.mk-form .sec-title:first-child { margin-top: 0; }
.mk-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mk-img, .mk-img-add { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-1); overflow: hidden; background: var(--group); }
.mk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-img-cover { position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; }
.mk-img-x { position: absolute; right: 2px; top: 2px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(10,10,10,.6); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mk-img-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--border); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: center; padding: 4px; }
.mk-terms { border: 1px solid var(--border); border-radius: var(--r-1); padding: 8px 12px; }
.mk-terms summary { cursor: pointer; font-weight: 650; font-size: 14px; min-height: 28px; display: flex; align-items: center; }
.mk-terms ol { margin: 6px 0 2px; padding-left: 20px; } .mk-terms li + li { margin-top: 4px; }
.mk-terms-ok { min-height: 44px; font-weight: 600; }

/* 產品詳情 */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 899px) { .pd { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.pd-main, .pd-side { min-width: 0; }
.pd-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
@media (max-width: 899px) { .pd-side { position: static; } }
.pd-hero { aspect-ratio: 16 / 9; border-radius: var(--r-2); overflow: hidden; background: var(--group); }
.pd-hero img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--group); }
.pd-hero.pd-ph { display: flex; align-items: center; justify-content: center; color: var(--text-2); } .pd-ph .ico { width: 48px; height: 48px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: var(--r-1); overflow: hidden; cursor: pointer; background: var(--group); }
.pd-thumbs button.on { border-color: var(--text); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-id { margin-top: 16px; }
.pd-name { margin: 2px 0 4px; }
.pd-tag { margin: 0; font-size: 16px; color: var(--text-2); }
.pd-sec { margin-top: 26px; }
.pd-sec h2 { font-size: 18px; margin: 0 0 10px; }
.pd-ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-2); background: var(--group); }
.pd-ba-arrow { font-size: 20px; color: var(--text-2); }
.pd-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.pd-nums > div { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-2); min-width: 0; }
.pd-nums b { font-size: 22px; font-variant-numeric: tabular-nums; }
.pd-rimgs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-rimgs img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-1); display: block; }
.pd-facts { display: grid; gap: 12px; } .pd-facts:empty { display: none; }
.pd-facts a { word-break: break-all; }
.pd-buy { display: flex; flex-direction: column; gap: 10px; }
.pd-price { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-share { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r-1); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.pd-share b { font-size: 24px; color: var(--brand); font-variant-numeric: tabular-nums; }
.pd-actions { display: flex; flex-direction: column; gap: 8px; }
.pd-actions .btn, .pd-buy > .btn { min-height: 44px; width: 100%; }
.pd-mine { display: flex; flex-direction: column; gap: 8px; }
.pd-link { display: flex; gap: 6px; } .pd-link .input { min-width: 0; flex: 1; font-size: 13px; }
.pd-mstats { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); } .pd-mstats b { color: var(--text); font-size: 16px; }
.pd-dev { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pd-ownerbar .tabs { margin-top: 4px; }
.pd-ownerbar .tabs button.on, #et button.on { background: var(--text); color: var(--bg); }
.pd-mtools { margin-bottom: 4px; }
.pd-manage .pd-sec h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.seller-list, .deal-list, .gm-plist { list-style: none; margin: 0; padding: 0; }
.seller-row, .deal-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.seller-row:last-child, .deal-row:last-child { border-bottom: 0; }
.sr-main, .dr-main { flex: 1; min-width: 0; }
.sr-acts, .dr-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; flex: none; max-width: 50%; }
.sr-acts .btn, .dr-acts .btn { min-height: 36px; }
.dr-top { display: flex; align-items: center; gap: 8px; min-width: 0; } .dr-top b { min-width: 0; }
@media (max-width: 559px) { .seller-row, .deal-row { flex-wrap: wrap; } .sr-acts, .dr-acts { max-width: none; width: 100%; justify-content: flex-start; } .sr-acts .btn, .dr-acts .btn { min-height: 40px; } }
.chip.ds-received { color: #15803D; border-color: #BBF7D0; }
.chip.ds-confirmed, .chip.ds-paid { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.chip.ds-rejected { color: var(--text-2); }

/* 我的收益 */
.etiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.etiles.small3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 759px) { .etiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.etile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); min-width: 0; }
.et-l { font-size: 13px; font-weight: 600; color: var(--text-2); }
.et-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etiles.small3 .et-v { font-size: 18px; }
.earn-chart { margin: 8px 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); }
.earn-chart svg { width: 100%; height: 120px; display: block; }
.ec-bar { fill: color-mix(in srgb, var(--text) 18%, transparent); }
.ec-line { stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ec-k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.ec-k.bar { background: color-mix(in srgb, var(--text) 18%, transparent); } .ec-k.line { background: var(--brand); height: 3px; vertical-align: 2px; }
.earn-cf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ec-ic { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.ec-ic svg { width: 32px; height: auto; }
.etbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.etbl th, .etbl td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.etbl th { font-size: 12.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.etbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.etbl td .link-btn { margin-left: 8px; }
.earn-line { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 14px; padding: 8px 12px; border-radius: var(--r-2); background: var(--group); font-size: 14px; font-weight: 600; color: var(--text); }
.earn-line .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-line > .ico:first-child { color: var(--brand); }

/* 階段任務 L1–L5 */
.ms-lv { font-size: 12px; font-weight: 700; color: var(--brand); padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); }
.ms-card #ms-all { min-height: 32px; }
.ms-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 14px; }
.ms-steps i { height: 6px; border-radius: 999px; background: var(--group); }
.ms-steps i.on { background: var(--text); }
.ms-steps i.cur { background: color-mix(in srgb, var(--brand) 45%, var(--group)); }
.ms-card .nc-main { display: flex; gap: 12px; align-items: flex-start; }
.ms-card .nc-main > .btn { flex: none; min-height: 40px; }
.ms-t { flex: 1; min-width: 0; } .ms-t > b { font-size: 16px; }
.ms-t .nc-bar { margin: 8px 0 0; }
@media (max-width: 479px) { .ms-card .nc-main { flex-wrap: wrap; } .ms-card .nc-main > .btn { width: 100%; min-height: 44px; } }
.ms-hot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; min-height: 44px; border-radius: var(--r-1); background: var(--group); color: var(--text); font-size: 14px; }
.ms-hot .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border); }
.ms-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ms-list li:last-child { border-bottom: 0; }
.ms-dot { flex: none; width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--group); color: var(--text-2); }
.ms-list li.done .ms-dot { background: var(--text); color: var(--bg); }
.ms-list li.revoked { opacity: .7; }
.ms-pop { text-align: center; }
.ms-pop-lv { width: 72px; height: 72px; margin: 4px auto 10px; border-radius: 22px; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.ms-got { list-style: none; padding: 0; margin: 14px 0; text-align: left; display: grid; gap: 8px; }
.ms-got li { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-1); background: var(--group); font-weight: 600; font-size: 14px; }
.ms-got .ico { flex: none; color: var(--brand); margin-top: 2px; }

/* GM */
.gm-funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.gm-funnel > div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: var(--r-1); background: var(--group); }
.gm-funnel b { font-size: 18px; font-variant-numeric: tabular-nums; }
.gm-prow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.gm-kpi-wide { grid-column: 1 / -1; }
.etbl { min-width: 560px; } .etbl .chip { white-space: nowrap; } .etbl td:first-child { min-width: 140px; }
.etbl td .link-btn { display: inline-block; margin: 0 0 0 8px; }
/* 手機：價格 / 幫賣按鈕緊接在產品名稱下面（不要等到頁面最底） */
@media (max-width: 899px) {
  .pd { display: flex; flex-direction: column; gap: 0; }
  .pd-main { display: contents; }
  .pd-gallery { order: 1; } .pd-id { order: 2; } .pd-side { order: 3; margin-top: 16px; } .pd-main > .pd-sec { order: 4; }
}
@media (max-width: 759px) { .mk-how { gap: 6px; padding: 10px 12px; } .mk-how-i .small { display: none; } .mk-how-ic { width: 26px; height: 26px; } .mk-how-i b { font-size: 13.5px; line-height: 26px; } .mk-head { flex-wrap: wrap; } }

/* v1.19.1：GM「版本與功能開關」、預覽橫幅 */
.ff-strip { background: #1C1917; } .ff-strip .gm-strip-in { color: #fff; } .ff-strip button { min-height: 32px; }
.ff-ver { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); }
.ff-ver.v120 { color: #0F766E; border-color: #99F6E4; }
.ff-ver.v119 { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); } .ff-ver.custom { color: #B45309; border-color: #FCD34D; }
.ff-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ff-presets .btn { flex-direction: column; align-items: flex-start; white-space: normal; text-align: left; gap: 2px; min-height: 72px; }
.ff-presets .btn .small { font-weight: 500; opacity: .8; }
@media (max-width: 559px) { .ff-presets { grid-template-columns: 1fr; } }
.ff-prev { padding: 10px 12px; border-radius: var(--r-1); background: var(--group); }
.ff-list { list-style: none; margin: 10px 0; padding: 0; }
.ff-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ff-main { flex: 1; min-width: 0; } .ff-main code { font-size: 12px; }
.ff-scope { margin-top: 8px; gap: 8px; } .ff-scope select { width: auto; } .ff-scope textarea { flex-basis: 100%; min-height: 56px; }
.ff-sw { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; cursor: pointer; font-weight: 700; }
.ff-sw input { width: 20px; height: 20px; accent-color: var(--text); }
.es-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 20px; background: var(--surface); color: var(--text-2); margin-bottom: 8px; }
.es-ic .ico { width: 30px; height: 30px; }

/* =====================================================================
   v1.20.0：顧問接案專區（ff_consult）— 主要按鈕黑底；--brand 只用在徽章 / 目前分頁；個人頁用顧問自選主色 --pc
   ===================================================================== */
.cs-bar { margin-bottom: 12px; }
.cs-search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 360px; }
.cs-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 18px; height: 18px; }
.cs-search .input { padding-left: 38px; min-height: 40px; width: 100%; }
.cs-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 599px) { .cs-grid { grid-template-columns: 1fr; } .cs-search { max-width: none; flex-basis: 100%; } }
.card.cs-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; min-width: 0; }
.cs-card:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.cs-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cs-id { min-width: 0; flex: 1; } .cs-name { font-weight: 750; font-size: 16px; } .cs-title { font-size: 14px; color: var(--text-2); line-height: 1.4; }
.cs-chips, .pro-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cs-chips .chip, .pro-chips .chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.cs-chips .chip .ico, .pro-chips .chip .ico { width: 14px; height: 14px; }
.chip.cs-lic { color: #15803D; border-color: #BBF7D0; background: #F0FDF4; }
:root[data-theme="dark"] .chip.cs-lic { background: transparent; color: #4ADE80; border-color: #166534; }
.chip.cs-seek { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.cs-tag { font-size: 14px; line-height: 1.45; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--text-2); }
.cs-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); min-width: 0; }
.cs-price { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.cs-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; }
.chip.cs-badge .ico { width: 13px; height: 13px; }
.cs-pp { margin-top: 8px; }
.cs-psy { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border-radius: var(--r-2); background: #FFF7ED; border: 1px solid #FED7AA; color: #7C2D12; line-height: 1.5; }
:root[data-theme="dark"] .cs-psy { background: #2a1a0e; border-color: #7c2d12; color: #fed7aa; }
.cs-psy > .ico { flex: none; margin-top: 2px; } .cs-psy a { color: inherit; font-weight: 600; } .cs-psy-links { margin-top: 4px; }

/* 個人官方頁：三套模板（minimal / dark / warm）＋主色 --pc */
.pro-page { --pc: #4F46E5; --pbg: #FFFFFF; --pfg: #111111; --pmuted: #6B6966; --pline: #ECEAE6; --pcard: #FFFFFF; max-width: 960px; margin: 0 auto; background: var(--pbg); color: var(--pfg); border-radius: 20px; overflow: hidden; border: 1px solid var(--pline); }
.pro-page.tpl-dark { --pbg: #0E0F13; --pfg: #F4F4F5; --pmuted: #A1A1AA; --pline: #26272D; --pcard: #17181D; }
.pro-page.tpl-warm { --pbg: #FBF6EF; --pfg: #2B211A; --pmuted: #7A6A5C; --pline: #EADFD2; --pcard: #FFFDF9; }
.pro-page .muted, .pro-page .small.muted { color: var(--pmuted); }
.pro-ownbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: color-mix(in srgb, var(--pc) 10%, var(--pbg)); font-size: 13.5px; border-bottom: 1px solid var(--pline); }
.pro-cover { height: 200px; background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 55%, #F9A8D4)); }
.pro-page.tpl-dark .pro-cover { background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 70%, #000), #0E0F13); }
.pro-page.tpl-warm .pro-cover { background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 45%, #FDE7C8), #FBF6EF); }
.pro-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: end; padding: 0 28px 22px; margin-top: -52px; }
.pro-av .avatar { border: 4px solid var(--pbg); box-shadow: 0 6px 18px rgba(0,0,0,.15); background: var(--pcard); }
.pro-who { min-width: 0; padding-top: 58px; }
.pro-who h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.pro-title { font-size: 16.5px; font-weight: 650; margin-top: 4px; }
.pro-tagline { color: var(--pmuted); margin: 6px 0 10px; font-size: 15px; line-height: 1.5; }
.pro-page .chip { background: var(--pcard); border-color: var(--pline); color: var(--pfg); }
.pro-page .chip.cs-lic { color: #15803D; }
.pro-acts { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.pro-acts .btn { min-height: 44px; justify-content: center; }
.pro-page .btn:not(.primary):not(.ghost):not(.danger):not(.liked):not(.on):not(.accent.on) { background: var(--pcard); color: var(--pfg); border-color: color-mix(in srgb, var(--pfg) 35%, var(--pline)); }
.pro-page .btn.primary.pro-main-btn, .pro-page .btn.primary.pro-cta-svc { background: var(--pc); border-color: var(--pc); color: #fff; }
.pro-page .btn.primary.pro-main-btn:hover, .pro-page .btn.primary.pro-cta-svc:hover { background: color-mix(in srgb, var(--pc) 85%, #000); }
.pro-page .faq details { background: var(--pbg); border-color: var(--pline); color: var(--pfg); } .pro-page .faq summary { color: var(--pfg); } .pro-page .faq details > div { color: var(--pmuted); }
/* v1.20.0：顧問分頁開啟時手機底部有 6 格 → 平均分配，不換行 */
.tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.pro-page.tpl-dark .btn.pro-main-btn { box-shadow: 0 6px 20px color-mix(in srgb, var(--pc) 40%, transparent); }
.pro-body { padding: 4px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.pro-sec { padding: 20px; border-radius: 16px; background: var(--pcard); border: 1px solid var(--pline); }
.pro-page.tpl-warm .pro-sec { border-radius: 22px; box-shadow: 0 2px 10px rgba(120, 80, 40, .06); }
.pro-page.tpl-minimal .pro-sec { border-left: 3px solid var(--pc); }
.pro-sec h2 { font-size: 18px; margin: 0 0 12px; } .pro-sec h3 { font-size: 15px; margin: 14px 0 6px; }
.pro-text { white-space: pre-wrap; line-height: 1.7; }
.pro-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pro-svc { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--pline); background: var(--pbg); }
.ps-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .ps-price { color: var(--pc); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pro-page.tpl-dark .ps-price { color: color-mix(in srgb, var(--pc) 60%, #fff); }
.ps-desc { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.pro-svc .btn { margin-top: auto; align-self: flex-start; min-height: 40px; }
.pro-port { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pro-pi { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--pline); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pro-pi a { color: var(--pc); font-weight: 600; }
.pro-lic { display: flex; gap: 10px; align-items: flex-start; } .pro-lic > .ico { color: #15803D; width: 24px; height: 24px; flex: none; }
.pro-social { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-page .faq details { border-color: var(--pline); }
.pro-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pro-note { text-align: center; }
.pro-mark { display: block; text-align: center; padding: 14px; font-size: 12.5px; color: var(--pmuted); border-top: 1px solid var(--pline); text-decoration: none; }
.pro-page .cs-psy { margin: 0; }
@media (max-width: 699px) {
  .pro-page { border-radius: 0; border-left: 0; border-right: 0; margin: -16px -16px 0; }
  .pro-cover { height: 140px; }
  .pro-head { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 16px 16px; margin-top: -48px; text-align: left; }
  .pro-who { padding-top: 0; } .pro-who h1 { font-size: 24px; }
  .pro-av .avatar.xl { width: 92px; height: 92px; }
  .pro-acts { flex-direction: row; min-width: 0; } .pro-acts .btn { flex: 1; }
  .pro-body { padding: 0 12px 20px; gap: 12px; } .pro-sec { padding: 16px; }
  .pro-svcs, .pro-port { grid-template-columns: 1fr; }
}

/* 顧問後台 */
.cs-tabs { margin-bottom: 14px; }
.cs-tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--text-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cs-tabs a.on { background: var(--text); color: var(--bg); }
.chip.cs-st.active { color: #15803D; border-color: #BBF7D0; } .chip.cs-st.pending, .chip.cs-st.paused { color: #B45309; border-color: #FCD34D; } .chip.cs-st.removed { color: #B91C1C; border-color: #FECACA; }
.card.cs-url { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .cs-url .grow { min-width: 0; flex: 1 1 200px; }
.cs-todo li.done .grow { color: var(--text-2); text-decoration: line-through; }
.cs-slug { display: flex; align-items: center; gap: 4px; min-width: 0; } .cs-slug .input { min-width: 0; flex: 1; }
@media (max-width: 479px) { .cs-slug { flex-wrap: wrap; } }
.cs-cover-ed { aspect-ratio: 4 / 1; border-radius: var(--r-2); background: var(--group); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cs-cover-ed img { width: 100%; height: 100%; object-fit: cover; }
.chip.cs-lst.approved { color: #15803D; border-color: #BBF7D0; } .chip.cs-lst.pending { color: #B45309; border-color: #FCD34D; } .chip.cs-lst.rejected { color: #B91C1C; border-color: #FECACA; }
.cs-save { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.cs-svl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card.cs-svr { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .cs-svr .grow { min-width: 0; flex: 1 1 220px; }
.cs-svr.hidden, .cs-svr.removed { opacity: .75; }
.cs-sva { display: flex; gap: 6px; flex-wrap: wrap; } .cs-sva .btn { min-height: 36px; }
.icon-btn { min-width: 36px; justify-content: center; }
.cs-pick-svc { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--r-1); background: var(--group); margin: 10px 0; }
.cs-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cs-tpl { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-2); border: 2px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; color: var(--text); min-height: 44px; }
.cs-tpl.on { border-color: var(--text); }
.cs-tpl-pv { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 8px; aspect-ratio: 4 / 3; }
.cs-tpl-pv i { display: block; border-radius: 4px; } .cs-tpl-pv i:nth-child(1) { height: 34%; background: var(--pc); } .cs-tpl-pv i:nth-child(2) { height: 16%; width: 60%; } .cs-tpl-pv i:nth-child(3) { flex: 1; }
.tpl-minimal .cs-tpl-pv { background: #fff; border: 1px solid #eee; } .tpl-minimal .cs-tpl-pv i:nth-child(n+2) { background: #EEECE8; }
.tpl-dark .cs-tpl-pv { background: #0E0F13; } .tpl-dark .cs-tpl-pv i:nth-child(n+2) { background: #26272D; }
.tpl-warm .cs-tpl-pv { background: #FBF6EF; } .tpl-warm .cs-tpl-pv i:nth-child(n+2) { background: #EADFD2; }
.cs-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.cs-color { width: 40px; height: 40px; border-radius: 999px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.cs-color.on { box-shadow: 0 0 0 2px var(--text); }
.cs-secs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r-2); }
.cs-secr { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
.cs-secr:last-child { border-bottom: 0; } .cs-secr.dragging { opacity: .5; }
.cs-grip { cursor: grab; color: var(--text-2); letter-spacing: -2px; padding: 0 4px; user-select: none; }
@media (max-width: 759px) { .cs-grip { display: none; } }
.cs-rep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cs-rep textarea { grid-column: 1 / 3; }
#cs-faq .cs-rep { grid-template-columns: minmax(0, 1fr) auto; } #cs-faq .cs-rep textarea { grid-column: 1 / 2; }
@media (max-width: 559px) { .cs-rep, #cs-faq .cs-rep { grid-template-columns: 1fr; } .cs-rep textarea, #cs-faq .cs-rep textarea { grid-column: auto; } }
.cs-pro > .btn { align-self: flex-start; }
.cs-pro { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-1); background: var(--group); }
.chip.pro-chip { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); font-size: 11px; vertical-align: 2px; }
.gm-lic { max-width: 220px; max-height: 160px; border-radius: 8px; margin-top: 6px; border: 1px solid var(--border); display: block; }

/* 登出首頁：找夥伴＋接案＋個人官網 */
.lp-3in1 { margin: 8px 0 12px; }
.lp3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
@media (max-width: 759px) { .lp3-grid { grid-template-columns: 1fr; } }
.lp3 h3 { margin: 8px 0 4px; } .lp3-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--group); display: inline-flex; align-items: center; justify-content: center; }

/* ======== v1.20.2：官方特聘合作夥伴、官網 / 作品集連結、線上預約・評價・接案收入 ======== */
/* 顧問卡片：整張卡可點（.cs-main），連結按鈕放在卡片下方（不能把 <a> 包在 <a> 裡） */
.card.cs-card { gap: 0; padding: 0; }
.cs-main { display: flex; flex-direction: column; gap: 8px; padding: var(--pad, 18px); color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.cs-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--pad, 18px) 14px; }
.cs-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; }
.cs-link > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-link .ico:last-child { width: 13px; height: 13px; opacity: .6; }
.cs-links .cs-link { flex: 1 1 0; justify-content: center; min-width: 0; }
.cs-bookable { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 600; }
.cs-bookable .ico { width: 13px; height: 13px; }
.card.cs-card.is-off { border-color: #C9A227; }
/* 官方特聘合作夥伴徽章：深海軍藍＋金色（不用 --brand，跟藍勾勾區分） */
.chip.cs-off { display: inline-flex; align-items: center; gap: 5px; background: #1F2A37; color: #F5E6B3; border: 1px solid #C9A227; font-weight: 650; font-size: 12px; white-space: nowrap; max-width: 100%; }
.chip.cs-off span { overflow: hidden; text-overflow: ellipsis; }
.chip.cs-off.lg { font-size: 13px; padding: 4px 10px; }
.pro-page .chip.cs-off { background: #1F2A37; color: #F5E6B3; border-color: #C9A227; }
.off-shield { flex: none; display: inline-block; vertical-align: -3px; }
/* 顧問專區最上方：官方特聘合作夥伴置頂區塊（封面大圖） */
.off-sec { margin: 4px 0 20px; padding: 16px; border-radius: var(--r-3, 16px); background: #F1F5F9; border: 1px solid #E2E8F0; }
:root[data-theme="dark"] .off-sec { background: #111827; border-color: #1F2A37; }
.off-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.off-head h2 { margin: 0; font-size: 18px; }
.off-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 599px) { .off-grid { grid-template-columns: 1fr; } .off-sec { padding: 12px; margin-left: -4px; margin-right: -4px; } }
.off-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid #C9A227; border-radius: var(--r-2, 12px); overflow: hidden; min-width: 0; }
.off-cover { display: block; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #1F2A37, #334155); color: #F5E6B3; text-decoration: none; }
.off-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.off-cover-ph { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; letter-spacing: .02em; padding: 0 12px; text-align: center; }
.off-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; min-width: 0; }
.off-body .cs-name { color: var(--text); text-decoration: none; display: block; }
.off-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.off-acts .btn { min-height: 44px; }
/* 個人官方頁：海軍藍模板（HireUp 風格：深海軍藍 #1F2A37＋淺灰藍背景、專業留白） */
.pro-page.tpl-navy { --pbg: #F1F5F9; --pfg: #1F2A37; --pmuted: #5B6472; --pline: #DCE3EC; --pcard: #FFFFFF; }
.pro-page.tpl-navy .pro-cover { background: linear-gradient(135deg, #1F2A37, #3B4B61); height: 240px; }
.pro-page.tpl-navy .pro-sec { border-radius: 14px; padding: 24px; }
.pro-page.tpl-navy .pro-sec h2 { letter-spacing: .01em; }
.pro-page.tpl-navy .btn.primary.pro-main-btn, .pro-page.tpl-navy .btn.primary.pro-cta-svc { background: #1F2A37; border-color: #1F2A37; }
.tpl-navy .cs-tpl-pv { background: #F1F5F9; } .tpl-navy .cs-tpl-pv i:nth-child(1) { background: #1F2A37; } .tpl-navy .cs-tpl-pv i:nth-child(n+2) { background: #DCE3EC; }
@media (min-width: 760px) { .cs-tpls { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 759px) { .cs-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pro-page.tpl-navy .pro-cover { height: 150px; } .pro-page.tpl-navy .pro-sec { padding: 16px; } }
.pro-acts .cs-link { justify-content: center; }
@media (max-width: 759px) { .pro-acts { flex-wrap: wrap; } .pro-acts .btn { flex: 1 1 140px; } }
/* 主理人介紹 */
.pro-host-in { display: flex; gap: 16px; align-items: flex-start; }
.pro-host-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--pbg, #fff); box-shadow: 0 0 0 1px var(--pline, #e5e7eb); }
.pro-host-img.ph { display: inline-flex; align-items: center; justify-content: center; background: #1F2A37; color: #F5E6B3; font-size: 32px; font-weight: 800; }
.pro-host-name { font-size: 18px; display: block; }
.pro-host .pro-text { margin-top: 8px; }
@media (max-width: 459px) { .pro-host-in { flex-direction: column; } }
.cs-host-ed { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cs-host-ed img, .cs-host-ed .pro-host-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.cs-acting { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #1F2A37; color: #F5E6B3; border-color: #C9A227; }
.cs-acting .btn { background: #fff; color: #1F2A37; }
.badge-n { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--badge-red, #e5484d); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; vertical-align: 1px; }
/* 星等 */
.stars { display: inline-flex; gap: 1px; color: #D1D5DB; font-size: 16px; line-height: 1; vertical-align: -2px; }
.stars i { font-style: normal; } .stars i.on { color: #C9A227; }
.stars.sm { font-size: 13px; }
.pro-rv-sum { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .pro-rv-sum b { font-size: 20px; }
.pro-rv-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pro-rv-list li { padding-bottom: 12px; border-bottom: 1px solid var(--pline, var(--border)); overflow-wrap: anywhere; }
.pro-rv-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pro-rv-reply { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--pfg, #111) 5%, transparent); }
.rv-pick { display: flex; gap: 4px; margin: 12px 0; }
.rv-star { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 24px; color: #D1D5DB; cursor: pointer; }
.rv-star.on { color: #C9A227; border-color: #C9A227; }
/* 預約視窗：日期橫滑＋時段格子 */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin: 8px 0 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.bk-day { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; min-height: 52px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 13px; }
.bk-day small { color: var(--text-2); font-size: 11px; }
.bk-day.on { border-color: var(--brand); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.bk-slot { min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; cursor: pointer; }
.bk-slot.on { background: var(--text); color: var(--surface); border-color: var(--text); }
/* 預約卡 */
.bk-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.card.bk-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bk-when { display: flex; flex-direction: column; min-width: 0; } .bk-when b { font-variant-numeric: tabular-nums; }
.bk-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.bk-note { padding: 8px 10px; border-radius: 8px; background: var(--group); overflow-wrap: anywhere; }
.bk-disp { padding: 8px 10px; border-radius: 8px; background: #FFF7ED; color: #7C2D12; overflow-wrap: anywhere; }
:root[data-theme="dark"] .bk-disp { background: #2a1a0e; color: #fed7aa; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bk-acts .btn, .bk-meet { min-height: 44px; }
.bk-meet { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; }
.bk-rv { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; border-top: 1px dashed var(--border); }
.bk-reply { padding-left: 10px; border-left: 2px solid var(--border); }
.chip.bk-st { white-space: nowrap; flex: none; }
.chip.bk-st.confirmed { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.chip.bk-st.requested, .chip.bk-st.pending_pay, .chip.bk-st.disputed { color: #B45309; border-color: #FCD34D; }
.chip.bk-st.canceled, .chip.bk-st.declined, .chip.bk-st.expired, .chip.bk-st.refunded { color: var(--text-2); }
.card.bk-card.canceled, .card.bk-card.declined, .card.bk-card.expired { opacity: .8; }
/* 可預約時段設定 */
.av-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r-2, 12px); }
.av-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.av-row:last-child { border-bottom: 0; }
.av-ranges { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.av-rg { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 10px; background: var(--group); max-width: 100%; }
.av-rg .input { width: 104px; min-height: 40px; padding: 4px 6px; }
.av-row [data-add] { min-height: 44px; }
@media (max-width: 559px) { .av-row { grid-template-columns: minmax(0, 1fr) auto; } .av-ranges { grid-column: 1 / -1; grid-row: 2; } .av-rg .input { width: 92px; } }
/* 接案收入 */
.inc-po { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.inc-po li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
a.etile.link { text-decoration: none; color: inherit; }
.gm-money-cfg .field > span { font-size: 13px; color: var(--text-2); }
@media (max-width: 759px) { .page-head .btn, .mk-head .btn { min-height: 44px; } }
/* 只有一位官方特聘合作夥伴時：桌機改成橫式大卡（封面在左） */
@media (min-width: 760px) {
  .off-grid:has(> .off-card:only-child) { grid-template-columns: 1fr; }
  .off-card:only-child { flex-direction: row; }
  .off-card:only-child .off-cover { flex: 0 0 52%; aspect-ratio: auto; min-height: 240px; }
  .off-card:only-child .off-body { flex: 1; justify-content: center; padding: 22px 24px; }
}
/* v1.20.3：網站搬到 cocofun.app 的一句說明（沒辦法自動帶入登入狀態時） */
.moved-note { position: relative; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #0A0A0A; color: #fff; font-size: 14px; line-height: 1.45; }
.moved-note span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.moved-note .btn.sm, .moved-note .btn { flex: none; min-width: 44px; min-height: 44px; background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
