/* Pojers — 介面沿用 Polar（app.polar.afold.me）的設計系統：
   深灰黑底 + 單一主色（珊瑚橘）。所有顏色都從這裡的變數來，不另外用綠、藍、紫。
   賺／賠用「主色 vs. 暖灰」加上 +／− 號區分；比賽進行中用珊瑚紅脈動點。 */
:root {
  color-scheme: dark;
  --bg: #1a1a19;
  --bg-2: #1e1e1d;
  --card: #242423;
  --card-2: #2b2b29;
  --line: #2f2e2c;
  --line-2: #3a3936;
  --ink: #eceae6;
  --ink-2: #c2bfb8;
  --muted: #8d8a83;
  --faint: #67645f;
  --accent: #d97757;
  --accent-2: #e3906f;
  --accent-3: #efb08e;
  --accent-deep: #b55d3f;
  --accent-soft: rgba(217, 119, 87, .12);
  --accent-line: rgba(217, 119, 87, .45);
  --danger: #e0715a;
  --live: #ef6a4c;
  --good: var(--accent-2);   /* 賺錢 */
  --bad: #a59b88;            /* 賠錢（暖灰，一定搭配 − 號） */
  --warn: #dcb36a;           /* 待審核／未驗證 */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  --navw: 260px;
  --topbar: 72px;
  --tabbar: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, rgba(255, 255, 255, .025), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.6 var(--font);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: default; opacity: .5; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: #3a3936 transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; fill: currentColor; flex: none; display: block; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.xs { width: 13px; height: 13px; }
svg.i.lg { width: 26px; height: 26px; }

/* ---------- 外框：上方列、側欄（桌機）、底部分頁列（手機） ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: calc(var(--topbar) + var(--safe-t)); padding-top: var(--safe-t); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; background: rgba(26, 26, 25, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tb-left, .tb-right { display: grid; place-items: center; }
.corner-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); transition: background .15s; }
.corner-mark:hover { background: var(--card); }
.corner-mark svg { width: 30px; height: 30px; }
.logo { justify-self: center; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-text { font-size: 17px; font-weight: 500; letter-spacing: .14em; color: var(--ink-2); }
.logo-sub { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--accent); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--ink); border-color: #4a4844; }
.icon-btn .avatar { width: 100%; height: 100%; border: 0; font-size: 16px; }

.layout { display: grid; grid-template-columns: var(--navw) minmax(0, 1fr); }
.sidenav { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 8px 14px 40px; border-right: 1px solid rgba(236, 234, 230, .08); }
.nav { display: grid; gap: 2px; }
.nav a, .nav button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; text-align: left; transition: background .12s, color .12s; }
.nav a svg, .nav button svg { color: var(--muted); }
.nav a:hover, .nav button:hover { background: var(--card); color: var(--ink); }
.nav a.active { background: var(--card-2); color: var(--ink); }
.nav a.active svg { color: var(--accent); }
.nav-t { flex: 1; min-width: 0; }
.nav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #1b1310; background: var(--accent); font-variant-numeric: tabular-nums; }
.nav-sep { height: 1px; background: var(--line); margin: 12px 10px; }
.nav-label { font-size: 11px; letter-spacing: .12em; color: var(--faint); padding: 16px 12px 6px; }
.nav-me { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.nav-me .who { min-width: 0; flex: 1; }
.nav-me .nm { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-me .em { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-live { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.nav-live:hover { background: var(--card); color: var(--ink); }
.nav-live .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; overflow-x: clip; }
.page { max-width: 1120px; margin: 0 auto; padding: 18px 36px 100px; }
.page.narrow { max-width: 720px; }
.page.mid { max-width: 880px; }

.tabbar { display: none; }

/* ---------- 字、常用元件 ---------- */
.overline { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.overline.orange { color: var(--accent); }
.h1 { font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: .02em; color: var(--ink); }
.h2 { font-size: 19px; font-weight: 500; letter-spacing: .02em; }
.h3 { font-size: 16px; font-weight: 500; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.pre { white-space: pre-line; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.card-head .h2 { font-size: 17px; }
.card-body { padding: 0 20px 18px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 24px; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.back-link:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 14px; border: 1px solid var(--line-2); color: var(--ink); background: var(--card); white-space: nowrap; transition: border-color .15s, background .15s, color .15s, transform .1s; }
.btn:hover { border-color: #4a4844; background: var(--card-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1b1310; font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.soft { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.btn.soft:hover { background: rgba(217, 119, 87, .2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--card); color: var(--ink); }
.btn.danger { color: var(--danger); border-color: rgba(224, 113, 90, .4); background: transparent; }
.btn.danger:hover { background: rgba(224, 113, 90, .1); border-color: var(--danger); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; gap: 6px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; font-size: 11.5px; font-weight: 500; padding: 0 9px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink-2); }
.pill svg { width: 12px; height: 12px; }
.pill.on { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.pill.dim { color: var(--muted); }
.pill.warn { border-color: rgba(220, 179, 106, .4); color: var(--warn); }
.pill.live { border-color: rgba(239, 106, 76, .55); color: #ffd9cc; background: rgba(239, 106, 76, .16); font-weight: 600; }
.pill.live .dot { width: 7px; height: 7px; }
.pill.solid { background: var(--accent); border-color: var(--accent); color: #1b1310; font-weight: 600; }

/* 比賽進行中：脈動紅點 */
.dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--live); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }

.progress { height: 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, var(--accent-3)); transform-origin: left; animation: grow .9s var(--ease) both; }
.progress.big { height: 12px; }
@keyframes grow { from { transform: scaleX(0); } }

/* 股份結構條：已售／自留／剩餘可賣 */
.split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.split i { display: block; height: 100%; animation: grow .9s var(--ease) both; }
.split .s-sold { background: var(--accent); }
.split .s-left { background: repeating-linear-gradient(135deg, rgba(217, 119, 87, .35) 0 4px, rgba(217, 119, 87, .12) 4px 8px); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.lgd { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.lgd .k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.lgd .k i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.lgd .v { font-size: 16px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* 數字格 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.stat .l { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.stat .v { font-size: 21px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 12px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* 平台 logo */
.platform { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px 0 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.platform .pf-logo { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; flex: none; }
.platform .pf-logo img { width: 100%; height: 100%; object-fit: cover; }
.platform .pf-mono { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.platform.lg { height: 36px; font-size: 13.5px; padding-left: 5px; }
.platform.lg .pf-logo, .platform.lg .pf-mono { width: 26px; height: 26px; }

/* ---------- 提示 ---------- */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); animation: rise .4s var(--ease) both; }
.flash svg { flex: none; }
.flash.ok { border-color: var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--card); }
.flash.ok svg { color: var(--accent); }
.flash.err { border-color: rgba(224, 113, 90, .45); color: #f1c3b6; }
.flash.err svg { color: var(--danger); }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--card); }
.banner .bn-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--accent); flex: none; }
.banner .t { font-weight: 500; }
.banner .s { font-size: 13px; color: var(--muted); }
.banner a.t:hover { color: var(--accent); }

/* 比賽進行中的橫幅 */
.live-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(239, 106, 76, .5); background: linear-gradient(110deg, rgba(239, 106, 76, .2), rgba(239, 106, 76, .04) 60%), var(--card); }
.live-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.live-banner .dot { width: 12px; height: 12px; margin: 0 4px; }
.live-banner .t { font-weight: 600; font-size: 16px; color: #ffe2d8; }
.live-banner .s { font-size: 13px; color: var(--ink-2); }

.empty { padding: 36px 20px; color: var(--muted); text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty .em-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--accent); }
.empty .em-t { color: var(--ink); font-size: 16px; font-weight: 500; }
.empty .em-s { font-size: 14px; max-width: 420px; }
.locked { margin: 0 20px 18px; padding: 22px 18px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--bg-2); text-align: center; color: var(--muted); font-size: 14px; display: grid; justify-items: center; gap: 8px; }
.locked svg { color: var(--accent); }

/* ---------- 表單 ---------- */
.field { display: grid; gap: 7px; }
.field + .field, .grid2 + .field, .field + .grid2, .grid2 + .grid2, .grid3 + .field, .field + .grid3 { margin-top: 16px; }
.field > label { font-size: 13px; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--faint); line-height: 1.55; }
.hint.calc { color: var(--accent); font-weight: 500; font-size: 13.5px; min-height: 20px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink);
  font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238d8a83'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
input[type=datetime-local] { min-width: 0; }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.7); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }

/* 上傳：點一下選圖，選好顯示縮圖 */
.drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg-2); color: var(--muted); font-size: 13.5px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent-line); background: var(--accent-soft); }
.drop svg { color: var(--accent); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .dt { color: var(--ink-2); font-weight: 500; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }

/* 分段選擇（狀態切換、截圖種類） */
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg label { flex: none; padding: 6px 16px; border-radius: 999px; font-size: 13.5px; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.seg button.on, .seg input:checked + span { color: var(--accent); }
.seg button.on, .seg label:has(input:checked) { background: var(--card-2); color: var(--accent); box-shadow: 0 0 0 1px var(--line-2) inset; }
.seg label input { display: none; }
.seg.full { display: flex; }
.seg.full button, .seg.full label { flex: 1; text-align: center; }

/* ---------- 對話框（桌機置中，手機從下面滑上來，跟 Polar 的 sheet 一樣） ---------- */
dialog.sheet { width: min(520px, calc(100vw - 32px)); max-height: min(86vh, 820px); padding: 0; border-radius: 22px; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheetIn .28s var(--ease); }
dialog.sheet::backdrop { background: rgba(10, 10, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
dialog.sheet > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
dialog.sheet .sheet-head, dialog.sheet .sheet-foot { flex: none; }
dialog.sheet .sheet-body { flex: 1 1 auto; min-height: 0; }
@keyframes sheetIn { from { transform: translateY(10px) scale(.98); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-grab { display: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.sheet-head .st { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; }
.sheet-head .ss { font-size: 13px; color: var(--muted); }
.sheet-head .x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sheet-head .x:hover { background: var(--card-2); color: var(--ink); }
.sheet-body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 22px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg-2); }

/* ---------- 首頁：活動卡片 ---------- */
.home-hero { display: grid; justify-items: start; gap: 6px; padding: 18px 0 26px; }
.home-hero .hero-mark { color: var(--accent); width: 44px; height: 44px; margin-bottom: 10px; }
.home-hero .greet { font-size: 30px; font-weight: 400; color: var(--ink); letter-spacing: .04em; }
.home-hero .greet b { font-weight: 500; color: var(--accent); }
.home-hero .sub { color: var(--muted); max-width: 560px; }
.home-hero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ccard { position: relative; display: grid; gap: 12px; padding: 18px 20px 16px; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; animation: rise .5s var(--ease) both; }
.ccard:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.ccard.is-live { border-color: rgba(239, 106, 76, .45); background: linear-gradient(160deg, rgba(239, 106, 76, .1), transparent 45%), var(--card); }
.ccard .cc-t { font-size: 17px; font-weight: 500; line-height: 1.4; }
.ccard .cc-m { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ccard .cc-prog { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.ccard .cc-prog b { font-size: 15px; color: var(--ink); font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kv > div { padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.kv span { display: block; font-size: 11.5px; color: var(--faint); }
.kv b { font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.cards > :nth-child(2) { animation-delay: .04s; } .cards > :nth-child(3) { animation-delay: .08s; } .cards > :nth-child(4) { animation-delay: .12s; } .cards > :nth-child(n+5) { animation-delay: .16s; }

/* ---------- 列表列（Polar 的 vrow 樣式） ---------- */
.list { display: grid; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); transition: background .12s; }
.list > .lrow:first-child { border-top: 0; }
a.lrow:hover { background: var(--card-2); }
.lrow .t { font-weight: 500; line-height: 1.4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lrow .m { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.lrow .r { text-align: right; flex: none; }
.lrow .r b { font-weight: 500; font-variant-numeric: tabular-nums; }
.lrow .r .tiny { font-variant-numeric: tabular-nums; }
.lrow.stacked { flex-wrap: wrap; }

/* 股東調整（展開） */
details.adj { width: 100%; }
details.adj > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 2px 0; }
details.adj > summary::-webkit-details-marker { display: none; }
details.adj > summary:hover { color: var(--accent); }
details.adj[open] > summary svg { transform: rotate(90deg); }
details.adj > summary svg { transition: transform .15s; }
.adj-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.adj-form .field > label { font-size: 12px; }
.adj-form input:not([type=checkbox]) { min-height: 40px; padding: 8px 12px; }
.adj-form .full { grid-column: 1 / -1; }

/* 入股申請 */
.req { padding: 14px 20px; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req .note { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border-left: 2px solid var(--accent-line); font-size: 13.5px; color: var(--ink-2); }

/* ---------- 比賽紀錄表 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; color: var(--faint); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table tr.click { cursor: pointer; transition: background .12s; }
.table tr.click:hover td { background: var(--card-2); }
.table tr.running td { background: rgba(239, 106, 76, .06); }
.table .g-t { font-weight: 500; line-height: 1.4; }
.table .g-s { font-size: 12px; color: var(--faint); margin-top: 1px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gnum { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.vf { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.vf.ok { color: var(--accent); }
.vf.no { color: var(--warn); }

/* ---------- 比賽控制台 ---------- */
.console { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 50%), var(--card); }
.run-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid rgba(239, 106, 76, .35); }
.run-row + .run-row { margin-top: 8px; }
.run-row .t { font-weight: 500; }
.run-row .m { font-size: 12.5px; color: var(--muted); }

/* ---------- 活動頁 ---------- */
.c-hero { padding: 22px 24px; }
.c-hero .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.c-hero .h1 { margin-top: 14px; }
.c-hero .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.c-hero .meta b { color: var(--ink); font-weight: 500; }
.c-hero .desc { margin-top: 12px; color: var(--ink-2); white-space: pre-line; max-width: 720px; }
.challenge { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; }
.challenge .big { grid-row: span 2; font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.challenge .big small { font-size: 20px; color: var(--muted); font-weight: 400; }
.challenge .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.c-hero .stats { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.two-col .side { position: sticky; top: calc(var(--topbar) + 12px); }

/* 稽核紀錄 */
.timeline { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0 9px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.timeline li + li { border-top: 1px dashed var(--line); }
.timeline time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline .act { color: var(--accent); }
.timeline .det { color: var(--muted); overflow-wrap: anywhere; }

/* ---------- 比賽頁：截圖牆 ---------- */
.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 0 20px 18px; }
.proof { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.proof img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.proof:hover img { transform: scale(1.04); }
.proof .cap { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; color: var(--ink); background: rgba(20, 20, 19, .78); backdrop-filter: blur(6px); }
.proof .cap b { font-weight: 600; color: var(--accent-3); }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 8, .9); animation: fade .2s ease; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- 登入／註冊 ---------- */
.auth { min-height: calc(100vh - var(--topbar) - 120px); display: grid; place-items: center; padding: 20px 0; }
.auth .card { width: min(420px, 100%); padding: 30px 28px 24px; animation: rise .5s var(--ease) both; }
.auth .a-mark { width: 44px; height: 44px; color: var(--accent); margin-bottom: 16px; }
.auth .h1 { font-size: 26px; }
.auth .sub { color: var(--muted); margin: 6px 0 22px; font-size: 14px; }
.auth form .btn.block { margin-top: 22px; }
.auth .alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); text-align: center; }
.auth.center .card { text-align: center; }
.auth.center .a-mark { margin: 0 auto 16px; }
.wait-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.wait-ic svg { width: 30px; height: 30px; animation: tilt 2.4s ease-in-out infinite; }
@keyframes tilt { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }

/* ---------- 站長後台 ---------- */
.admin-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.u-row .acts { display: flex; gap: 6px; flex: none; }

/* 危險區 */
.danger-zone { border-color: rgba(224, 113, 90, .35); }
.danger-zone .h2 { color: var(--danger); }

/* ---------- 響應式 ---------- */
.show-sm { display: none !important; }
@media (max-width: 1100px) {
  .two-col { grid-template-columns: minmax(0, 1fr) 340px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --topbar: 60px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidenav { display: none; }
  .topbar { grid-template-columns: 60px 1fr 60px; }
  .icon-btn { width: 40px; height: 40px; }
  .page { padding: 10px 16px calc(var(--tabbar) + 40px + var(--safe-b)); }
  .h1, .home-hero .greet { font-size: 24px; }
  .hide-sm { display: none !important; }
  .show-sm { display: initial !important; }

  /* 手機：App 風格的底部分頁列 */
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + var(--safe-b)); padding: 0 6px var(--safe-b); background: rgba(30, 30, 29, .9); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; color: var(--muted); transition: color .15s; }
  .tabbar a svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.on svg { transform: translateY(-1px) scale(1.06); }
  .tabbar a:active svg { transform: scale(.9); }
  .tabbar a .tb-new { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; font-size: 10px; font-weight: 700; display: grid; place-items: center; color: #1b1310; background: var(--accent); }
  .tabbar a.make svg { width: 40px; height: 30px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #1b1310; }
  .tabbar a.make.on { color: var(--accent); }

  /* 手機：股份結構和股東排在比賽紀錄前面 */
  .two-col { display: flex; flex-direction: column; gap: 16px; }
  .two-col > * { width: 100%; }
  .two-col .side { position: static; order: -1; }

  .c-hero { padding: 18px; }
  .challenge .big { font-size: 36px; }
  .stats { gap: 8px; }
  .stat { padding: 12px 13px; }
  .stat .v { font-size: 18px; }
  .card-head { padding: 14px 16px 10px; }
  .card-body { padding: 0 16px 16px; }
  .card-foot { padding: 12px 16px; }
  .lrow { padding: 12px 16px; }
  .req { padding: 14px 16px; }
  .timeline { padding: 0 16px 14px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proofs { padding: 0 16px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table th:first-child, .table td:first-child { padding-left: 16px; }
  .table th:last-child, .table td:last-child { padding-right: 16px; }
  .table td { padding: 11px 8px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sum { gap: 8px; }
  .flash { margin-bottom: 14px; }

  dialog.sheet { width: 100vw; max-width: 100vw; max-height: calc(100dvh - 40px); margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  dialog.sheet[open] { animation: sheetUp .32s var(--ease); }
  .sheet-grab { display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 8px auto 0; flex: none; }
  .sheet-head { padding: 8px 10px 10px 18px; }
  .sheet-body { padding: 16px 18px; }
  .sheet-foot { padding: 12px 18px calc(12px + var(--safe-b)); }
  .sheet-foot .btn { flex: 1; }
  input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px; }
  .auth { min-height: 0; padding-top: 12px; }
  .auth .card { padding: 26px 20px 20px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (max-width: 420px) {
  .grid2:not(.keep) { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .kv { gap: 6px; }
  .kv > div { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* 橫式字標（例如 Natural8） */
.platform.wm { padding: 0 12px; }
.platform.wm img { height: 15px; width: auto; }
.platform.wm.lg img { height: 18px; }
@media (max-width: 600px) {
  .u-row { flex-wrap: wrap; }
  .u-row .acts { width: 100%; padding-left: 46px; }
}
.grid2 > .field + .field, .grid3 > .field + .field { margin-top: 0; }
details.more > summary { list-style: none; cursor: pointer; padding: 10px 0 2px; font-size: 13px; color: var(--accent); }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { display: none; }
.grid2 + .grid3, .grid3 + .grid2, .grid3 + .grid3 { margin-top: 16px; }
.field > .seg { justify-self: start; }

/* ---------- Polar Stake：預訂、賣家、個人頁 ---------- */
.accent { color: var(--accent); }
.split .s-res { background: var(--warn); opacity: .85; }
.cd { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--warn); }
.reserve-card { border-color: rgba(220, 179, 106, .45); background: linear-gradient(160deg, rgba(220, 179, 106, .08), transparent 55%), var(--card); }
.reserve-card .overline.orange { color: var(--warn); }
.payinfo { display: grid; gap: 8px; }
.pi-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.pi-row .k { color: var(--muted); flex: none; }
.pi-row .v { font-weight: 500; text-align: right; overflow-wrap: anywhere; user-select: all; }
.pi-note { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; }
.payinfo.compact .pi-row { padding: 8px 10px; font-size: 13.5px; }
.seller-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; transition: background .12s; border-radius: var(--radius) var(--radius) 0 0; }
.seller-card:hover { background: var(--card-2); }
.seller-card .t { font-weight: 600; font-size: 16px; margin: 1px 0 2px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero { display: flex; align-items: center; gap: 22px; padding: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-hero .grow { min-width: 220px; }
.profile-hero .desc { white-space: pre-wrap; color: var(--ink-2); max-width: 62ch; }
.avatar.pf-av { width: 96px; height: 96px; font-size: 38px; border-width: 2px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery .proof .cap { justify-content: flex-start; }
.proof .ph-del { position: absolute; top: 6px; right: 6px; }
.proof .ph-del button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 20, 19, .8); color: var(--ink); }
.proof .ph-del button:hover { color: var(--danger); }
.steps { display: grid; gap: 14px; }
.step-i { display: flex; gap: 14px; align-items: flex-start; }
.step-i .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 14px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.step-i b { font-weight: 500; }
.badge-new { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--bg); background: var(--accent); }
input.code { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.seg a { flex: none; padding: 6px 16px; border-radius: 999px; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: color .15s, background .15s; }
.seg a.on { background: var(--card-2); color: var(--accent); box-shadow: 0 0 0 1px var(--line-2) inset; }
label.btn { cursor: pointer; }
@media (max-width: 600px) {
  .profile-hero { padding: 18px; gap: 14px; }
  .avatar.pf-av { width: 72px; height: 72px; font-size: 28px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gallery .proof { aspect-ratio: 3 / 4; }
.gallery .proof img { object-position: top; }
@media (max-width: 600px) {
  .table.results thead { display: none; }
  .table.results tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-top: 1px solid var(--line); }
  .table.results tbody tr:first-child { border-top: 0; }
  .table.results td { padding: 0 !important; border: 0 !important; }
  .table.results td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .table.results td:nth-child(1) { grid-row: 2; }
  .table.results td:nth-child(3) { grid-row: 2; color: var(--muted); font-size: 13px; }
  .table.results td:nth-child(4) { grid-row: 2; }
}

/* 換頁進度條：點連結馬上出現，慢慢跑到 92%，新頁面載入後自然消失 */
.loadbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1000; background: var(--accent); box-shadow: 0 0 8px rgba(217,119,87,.6); opacity: 0; pointer-events: none; }
.loadbar.go { opacity: 1; animation: loadbar 8s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes loadbar { 0% { width: 0; } 10% { width: 45%; } 100% { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .loadbar.go { animation-duration: .01s; width: 92%; } }

/* 股份條：活動頁標題下面，一眼看到開放／已賣／剩餘 */
.stake-strip { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.ss-cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ss-c { padding: 4px 10px; min-width: 0; border-left: 1px solid var(--line); }
.ss-c:first-child { border-left: 0; }
.ss-c .l { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.ss-c .v { font-size: 26px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-c .v.accent { color: var(--accent); }
.ss-c .v.faint { color: var(--faint); font-size: 20px; }
.ss-c .s { font-size: 11.5px; color: var(--faint); margin-top: 1px; white-space: nowrap; }
.ss-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ss-bar .split { flex: 1; height: 8px; }
.ss-bar .btn { flex: none; }

/* 大廳：一排一個活動，點開看誰買了 */
.lobby { overflow: hidden; }
.lobby .table td { padding-top: 14px; padding-bottom: 14px; }
.lobby .lb-who { gap: 12px; align-items: center; flex-wrap: nowrap; }
.lobby .g-s { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lobby .lb-left { color: var(--accent); font-size: 16px; }
.lobby .lb-sub { display: none; font-size: 11px; color: var(--faint); margin-top: 2px; white-space: nowrap; }
.lobby .num { font-variant-numeric: tabular-nums; }
.lobby .dot { width: 8px; height: 8px; margin-left: 4px; vertical-align: middle; }
b.accent, .st-sum b.accent { color: var(--accent); }

/* 誰買了 對話框 */
.st-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.st-sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.st-table td, .st-table th { padding-left: 4px !important; padding-right: 4px !important; }

@media (max-width: 900px) {
  .ss-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .ss-c:nth-child(4) { border-left: 0; }
  .ss-c:nth-child(5) { grid-column: span 2; }
  .lobby .lb-sub { display: block; }
  .ss-c .v { font-size: 21px; }
  .lobby .g-s { max-width: 46vw; }
}

/* 付款方式、幣別 */
.pay-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.pay-chips .pill { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.pi-row .v .pay-chips { justify-content: flex-end; user-select: none; }
.ss-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ss-foot b { color: var(--ink); font-weight: 500; }
.ss-foot .faint { font-size: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks .check { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); }
.checks .check:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.checks .check input { accent-color: var(--accent); }

/* 到期規則 */
.end-rule { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.end-rule svg { flex: none; margin-top: 3px; color: var(--accent); }
.end-rule b { color: var(--ink); font-weight: 600; }
