/* KRIS YAO | ARTECH — 2026 KYA 關懷社會贊助推薦投票
   配色照「KYA CARE ACTION 2026」愛心圖；字型跟聖誕派對邀請系統一樣：中文思源宋體（Noto Serif TC）、英文 Marcellus */
:root {
  --cream: #F8F0E3;
  --cream-2: #FCF7EF;
  --paper: #FFFDF9;
  --peach: #F2D3BF;
  --peach-2: #F4E1D2;
  --peach-3: #FBEDE3;
  --terra: #D35C46;
  --terra-btn: #C4503A;
  --terra-btn-2: #AE4330;
  --terra-ink: #AE4330;
  --mustard: #E3B256;
  --mustard-tint: #FAEFD7;
  --sage: #95A78F;
  --sage-ink: #566C51;
  --sage-tint: #E8EEE4;
  --ink: #3B302A;
  --ink-2: #66584E;
  --muted: #8F8076;
  --line: #E9DDCC;
  --line-2: #DCCBB6;
  --danger: #B3261E;
  --zh: 'KYA Serif TC', 'Noto Serif TC', 'Noto Serif CJK TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
  --en: 'Marcellus', 'KYA Serif TC', Georgia, serif;
  --shadow-sm: 0 6px 18px rgba(59, 48, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--zh); font-weight: 300; font-size: 16px; line-height: 1.75; letter-spacing: .03em;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; font-synthesis: none;
}
b, strong, h1, h2, h3, th { font-weight: 500; }
a { color: var(--terra-ink); }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -.16em; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(211, 92, 70, .55); outline-offset: 2px; }

/* 截止前／截止後顯示的內容 */
body.phase-open .show-closed { display: none !important; }
body.phase-closed .show-open { display: none !important; }

/* ------------------------------------------------------------------ 共用：按鈕、標籤 */
.label { font-family: var(--en); font-weight: 400; font-size: 12px; line-height: 1; letter-spacing: .24em; color: var(--ink); }
.pill { display: inline-block; padding: 6px 13px 6px 15px; border-radius: 99px; background: var(--ink); color: var(--cream); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .16em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 14px; font-weight: 500; font-size: 16px; letter-spacing: .12em; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s, opacity .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: default; opacity: .65; }
.btn-primary { background: var(--terra-btn); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--terra-btn-2); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover:not(:disabled) { background: #2A221D; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn .ic { width: 1.05em; height: 1.05em; }
.link-btn { padding: 4px 2px; border: 0; background: none; color: var(--terra-ink); font-weight: 300; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-ghost .spinner { border-color: rgba(59, 48, 42, .25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ------------------------------------------------------------------ 頁尾 */
.foot { display: grid; justify-items: center; gap: 12px; padding: 22px 16px max(36px, env(safe-area-inset-bottom)); color: var(--ink-2); font-size: 14px; text-align: center; letter-spacing: .08em; }
.foot p { margin: 0; }
.foot img { opacity: .9; }
.admin-entry { font-size: 13px; color: var(--muted); }

/* ================================================================== 首頁（簡潔海報） */
.home { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.poster { flex: 1 0 auto; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(22px, env(safe-area-inset-top)) 22px 0; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 22px 26px; text-align: center; }
/* 手機：愛心圖依螢幕高度縮放，讓「開始投票」按鈕不用捲動就看得到 */
.hero-art { width: min(250px, 70vw); width: clamp(170px, calc(100svh - 440px), min(300px, 76vw)); margin: 8px auto 4px; }
.hero-art .art { display: block; width: 100%; height: auto; overflow: visible; }
.hero-copy { width: 100%; }
.kicker { margin: 0 0 10px; color: var(--terra-btn); font-weight: 500; font-size: 13px; letter-spacing: .2em; }
.hero h1 { margin: 0 0 12px; font-size: clamp(26px, 7.7vw, 34px); line-height: 1.38; font-weight: 500; letter-spacing: .08em; }
.lead { margin: 0 0 18px; font-size: 15px; line-height: 1.8; letter-spacing: .04em; color: var(--ink-2); }
.strip { display: grid; grid-template-columns: 1fr 1fr 1.5fr; width: 100%; max-width: 420px; margin: 0 auto 20px; padding: 12px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li { display: grid; align-content: center; gap: 2px; border-right: 1px solid var(--line); }
.strip li:last-child { border-right: 0; }
.strip b { font-weight: 300; font-size: 25px; line-height: 1.15; letter-spacing: .04em; }
.strip span { font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--ink-2); }
.ctas { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 420px; margin: 0 auto; }
.btn-lg { width: 100%; min-height: 56px; padding: 0 28px; border-radius: 999px; font-size: 17px; letter-spacing: .22em; box-shadow: 0 12px 28px rgba(196, 80, 58, .28); }
.btn-lg:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(196, 80, 58, .34); }
.link { font-size: 14px; letter-spacing: .08em; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link:hover { color: var(--ink); border-color: var(--ink-2); }

/* 愛心輕輕跳、小圓點慢慢飄（減少動態效果的設定下不會動） */
.art .heart-wrap { transform-box: fill-box; transform-origin: 50% 55%; animation: beat 3.2s ease-in-out infinite; }
.art .dot { transform-box: fill-box; transform-origin: center; animation: float 8s ease-in-out infinite; }
.art .d2, .art .d6, .art .d9 { animation-duration: 9.5s; animation-delay: -2s; }
.art .d3, .art .d7 { animation-duration: 7s; animation-delay: -4s; }
.art .d4, .art .d8 { animation-duration: 10s; animation-delay: -6s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.045); } 20% { transform: scale(1); } 30% { transform: scale(1.03); } 42% { transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -7px); } }

/* 投票結果（公開時才顯示） */
.results { width: min(720px, calc(100% - 32px)); margin: 8px auto 20px; padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-sm); scroll-margin-top: 16px; }
.results h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: .1em; }
.results-sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.rank { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rank li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.rank .r { grid-row: span 2; font-weight: 500; font-size: 21px; color: var(--terra); text-align: center; }
.rank .n { font-weight: 500; font-size: 15px; letter-spacing: .05em; }
.rank .v { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank .bar { grid-column: 2 / 4; height: 10px; padding: 0; border-radius: 99px; background: var(--peach-2); overflow: hidden; }
.rank .bar i { display: block; height: 100%; border-radius: 99px; background: var(--sage); transition: width .6s ease; }
.rank li.top .bar i { background: var(--terra); }
.rank li:not(.top) .r { color: var(--ink-2); }

/* ================================================================== 投票頁 */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 64px;
  padding: 0 max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
  background: rgba(252, 247, 239, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}
.back { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; margin-left: -8px; border-radius: 10px; color: var(--ink-2); }
.back:hover { background: var(--peach-3); color: var(--ink); }
.back .ic { width: 20px; height: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand .mark { flex: 0 0 auto; width: 22px; height: 20px; }
.brand b { overflow: hidden; font-size: 16px; letter-spacing: .1em; white-space: nowrap; text-overflow: ellipsis; }
.t-short, .dl-short { display: none; }
.topbar .dl { margin-left: auto; padding-left: 10px; font-size: 14px; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }

.box { max-width: 720px; margin: 0 auto; padding: 34px 0 40px; }
.intro h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.4; letter-spacing: .1em; }
.intro .sub { margin: 0 0 22px; font-size: 15px; letter-spacing: .04em; color: var(--ink-2); }
.card { margin: 0 0 16px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; scroll-margin-top: 84px; }
.k { display: block; margin: 0 0 10px; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: .1em; color: var(--muted); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; scroll-margin-top: 84px; }
.card-head .k { margin: 0; }
.cnt { padding: 4px 12px; border-radius: 99px; background: var(--peach-3); color: var(--terra-ink); font-weight: 500; font-size: 13px; letter-spacing: .06em; white-space: nowrap; transition: background .2s, color .2s; }
.vote-full .cnt { background: var(--terra-btn); color: #fff; }
.hint { margin: 8px 0 0; font-size: 13.5px; letter-spacing: .04em; color: var(--muted); }
.hint.center { margin: 12px 0 0; text-align: center; font-size: 13px; }

/* ① 員工編號 */
.lookup-row { display: flex; gap: 10px; }
.input { flex: 1; min-width: 0; min-height: 50px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font-size: 18px; font-weight: 500; letter-spacing: .1em; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: #B5A799; font-weight: 300; }
.input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(211, 92, 70, .14); }
.who-form.invalid .input { border-color: var(--danger); }
.lookup-row .btn { min-height: 50px; padding: 0 22px; }
.field-error { margin: 8px 0 0; font-size: 14.5px; font-weight: 500; color: var(--danger); }
.field-error:empty { display: none; }
.who { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--sage-ink); color: #fff; font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.who-text { display: grid; flex: 1; min-width: 0; line-height: 1.45; }
.who-text b { font-size: 17px; letter-spacing: .08em; }
.who-text small { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.note-box { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--mustard-tint); border: 1px solid #F0D9A6; font-size: 14px; line-height: 1.7; }
.admin-shortcut { display: grid; gap: 1px; margin: 12px 0 0; padding: 10px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--ink); text-decoration: none; }
.admin-shortcut b { font-size: 14.5px; }
.admin-shortcut span { font-size: 13.5px; font-weight: 500; color: var(--terra-ink); }
.admin-shortcut:hover { border-color: var(--terra); }

/* ② 推薦單位（整列可以點選） */
.orgs { display: grid; gap: 10px; }
.org {
  position: relative; display: flex; align-items: center; gap: 10px; padding-right: 14px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.org:hover { border-color: var(--line-2); }
.org.is-picked { border-color: var(--terra); background: var(--peach-3); }
.org-pick { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; padding: 12px 0 12px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.org-pick input { position: absolute; top: 50%; left: 18px; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ck { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid #CDBBA6; border-radius: 50%; background: #fff; color: #fff; transition: background .15s, border-color .15s; }
.ck .ic { width: 15px; height: 15px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s; }
.org.is-picked .ck { background: var(--terra-btn); border-color: var(--terra-btn); }
.org.is-picked .ck .ic { opacity: 1; transform: none; }
.org-pick input:focus-visible ~ .ck { outline: 3px solid rgba(211, 92, 70, .55); outline-offset: 2px; }
.vote-full .org:not(.is-picked) .ck { border-style: dashed; opacity: .55; }
.org.shake { animation: shake .35s ease-in-out; }
.th { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--cream-2); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.th-icon { display: grid; place-items: center; color: var(--terra); }
.tx { display: grid; flex: 1; gap: 1px; min-width: 0; }
.nm { font-size: 16.5px; line-height: 1.5; letter-spacing: .06em; }
.nm .no { margin-right: 10px; font-style: normal; font-weight: 500; font-size: 15px; color: var(--terra); }
.bf { font-size: 13.5px; line-height: 1.6; letter-spacing: .04em; color: var(--ink-2); }
.more {
  display: inline-flex; align-items: center; flex: 0 0 auto; gap: 1px; min-height: 34px; padding: 0 6px 0 11px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream-2); color: var(--ink-2);
  font-size: 14px; letter-spacing: .06em; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.more .ic { width: 15px; height: 15px; }
.more:hover { border-color: var(--ink-2); color: var(--ink); background: #fff; }
body.phase-closed .ck { display: none; }
body.phase-closed .org-pick { cursor: default; }

/* 送出：電腦上是一個大按鈕；手機上是固定在畫面下方的深色列 */
.submit-bar { margin-top: 18px; }
.picked { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#submitBtn { width: 100%; min-height: 58px; border-radius: 16px; font-size: 18px; letter-spacing: .16em; box-shadow: 0 12px 28px rgba(196, 80, 58, .25); }
.submit-error { margin: 10px 0 0; padding: 9px 14px; border-radius: 12px; background: #FDE7E3; color: var(--danger); font-weight: 500; font-size: 14.5px; }

/* ③ 完成 */
.done { padding: 34px 22px 28px; text-align: center; }
.done:focus { outline: none; }
.done-heart { width: 64px; height: 64px; margin: 0 auto 8px; color: var(--terra); animation: pop .6s ease-out; }
.done-heart svg { width: 100%; height: 100%; }
.done h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: .12em; }
.done-sub { margin: 0 0 14px; color: var(--ink-2); }
.done-list { display: grid; gap: 10px; max-width: 460px; margin: 0 auto 16px; padding: 0; list-style: none; text-align: left; }
.done-list li { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--peach); border-radius: 16px; background: var(--peach-3); font-weight: 500; letter-spacing: .05em; line-height: 1.5; }
.done-list img { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.done-list .ic { color: var(--terra); }
.done-hint { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ------------------------------------------------------------------ 「介紹」視窗 */
dialog.viewer { width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(30, 22, 18, .4); overflow: hidden; }
dialog.viewer[open] { display: flex; flex-direction: column; }
dialog.viewer::backdrop { background: rgba(40, 30, 25, .62); }
.viewer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--line); }
.viewer-head h2 { margin: 0; font-size: 20px; line-height: 1.45; letter-spacing: .06em; }
.viewer-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.viewer-meta .no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--terra); color: #fff; font-weight: 500; font-size: 12.5px; letter-spacing: 0; }
.close-x { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); cursor: pointer; }
.close-x .ic { width: 20px; height: 20px; }
.viewer-body { flex: 1; overflow: auto; padding: 16px 22px; overscroll-behavior: contain; }
.viewer-sum { margin: 0 0 12px; color: var(--ink-2); }
.viewer-pages { display: grid; gap: 12px; }
.viewer-pages a { display: block; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; cursor: zoom-in; }
.viewer-pages img { display: block; width: 100%; height: auto; }
.viewer-tip { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 18px max(14px, env(safe-area-inset-bottom)) 22px; border-top: 1px solid var(--line); background: var(--cream-2); }
.viewer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.org-link { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink-2); font-weight: 300; font-size: 14.5px; letter-spacing: .08em; text-decoration: none; cursor: pointer; }
.org-link:hover { border-color: var(--ink-2); color: var(--ink); }
#viewerPick.is-picked { background: var(--ink); }

/* 提示訊息 */
.toast-host { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14.5px; letter-spacing: .05em; text-align: center; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); animation: toast-in .2s ease-out; }
.toast.error { background: var(--danger); }
.toast.ok { background: #4F6E49; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 錯誤頁 */
.error-page { max-width: 520px; margin: 12vh auto; padding: 0 20px; text-align: center; }
.error-page h1 { font-size: 24px; letter-spacing: .08em; }

/* ------------------------------------------------------------------ 平板 */
@media (min-width: 600px) {
  .hero-art { width: min(320px, 56vw); width: clamp(200px, calc(100svh - 470px), min(360px, 56vw)); }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .strip, .ctas { max-width: 480px; }
}

/* ------------------------------------------------------------------ 電腦：左邊愛心圖、右邊文字 */
@media (min-width: 960px) {
  .bar { justify-content: flex-start; width: 100%; max-width: 1280px; margin: 0 auto; padding: 30px clamp(36px, 6vw, 88px) 0; }
  .hero {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-content: center;
    column-gap: clamp(40px, 5vw, 72px); width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px clamp(36px, 6vw, 88px) 40px; text-align: left;
  }
  .hero-art { width: min(40vw, 520px); width: min(40vw, 520px, calc(100svh - 210px)); min-width: 300px; margin: 0; }
  .hero-copy { max-width: 560px; }
  .kicker { margin: 0 0 16px; font-size: 15px; letter-spacing: .3em; }
  .hero h1 { margin: 0 0 20px; font-size: clamp(40px, 4.2vw, 54px); line-height: 1.32; }
  .lead { margin: 0 0 28px; font-size: 17px; line-height: 1.9; letter-spacing: .05em; }
  .strip { max-width: 440px; margin: 0 0 32px; }
  .strip li { padding: 0 16px; }
  .strip li:first-child { padding-left: 0; }
  .strip b { font-size: 30px; }
  .strip span { font-size: 13px; }
  .ctas { flex-direction: row; gap: 26px; max-width: none; margin: 0; }
  .btn-lg { width: auto; min-height: 60px; padding: 0 38px; font-size: 18px; }
  .link { font-size: 15px; }
  .home .foot { grid-auto-flow: column; justify-content: center; align-items: center; gap: 28px; padding: 18px 24px 22px; border-top: 1px solid var(--line); }
}
@media (min-width: 1200px) {
  .kicker { margin-bottom: 18px; font-size: 16px; letter-spacing: .32em; }
  .hero h1 { margin-bottom: 22px; }
  .lead { margin-bottom: 30px; font-size: 18px; letter-spacing: .06em; }
  .strip { display: flex; max-width: none; margin: 0 0 34px; padding: 0; }
  .strip li { display: flex; align-items: baseline; gap: 8px; margin-right: 26px; padding: 16px 26px 16px 0; }
  .strip li:last-child { margin-right: 0; padding-right: 0; }
  .strip b { font-size: 34px; line-height: 1; }
  .strip span { font-size: 14px; }
  .btn-lg { min-height: 62px; padding: 0 40px; font-size: 19px; }
}

/* ------------------------------------------------------------------ 手機 */
@media (max-width: 639px) {
  .topbar { gap: 6px; height: 56px; padding: 0 14px; }
  .back { margin-left: -6px; }
  .brand { gap: 8px; }
  .brand b { font-size: 15px; letter-spacing: .08em; }
  .t-long, .dl-long { display: none; }
  .t-short, .dl-short { display: inline; }
  .topbar .dl { font-size: 13px; }
  .box { padding: 20px 10px 28px; }
  .intro { padding: 0 4px; }
  .intro h1 { font-size: 23px; }
  .intro .sub { margin-bottom: 14px; font-size: 13.5px; }
  .card { padding: 14px 10px 16px; border-radius: 18px; scroll-margin-top: 70px; }
  #stepWho { padding-left: 14px; padding-right: 14px; }
  .card-head { scroll-margin-top: 70px; }
  .k { font-size: 13.5px; }
  .lookup-row .btn { padding: 0 18px; }
  .org { gap: 4px; padding-right: 8px; border-radius: 14px; }
  .org-pick { gap: 9px; padding: 10px 0 10px 10px; }
  .ck { width: 22px; height: 22px; }
  .ck .ic { width: 13px; height: 13px; }
  .th { width: 38px; height: 38px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
  .nm { font-size: 15px; line-height: 1.45; letter-spacing: .04em; }
  .nm .no { margin-right: 6px; font-size: 13.5px; }
  .bf { font-size: 12.5px; line-height: 1.55; letter-spacing: .02em; }
  .more { min-height: 32px; padding: 0 2px 0 8px; border-color: transparent; font-size: 12.5px; letter-spacing: .04em; }
  .more .ic { width: 13px; height: 13px; }
  .submit-bar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; margin: 16px -2px 0; }
  .submit-inner { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 18px; background: rgba(59, 48, 42, .97); color: var(--cream); box-shadow: 0 16px 40px rgba(59, 48, 42, .3); }
  .picked { position: static; display: flex; align-items: center; flex: 1; gap: 10px; width: auto; height: auto; min-width: 0; overflow: visible; clip: auto; white-space: normal; }
  .picked-count { flex: 0 0 auto; font-size: 15px; white-space: nowrap; }
  .picked-count b { font-weight: 500; font-size: 25px; color: var(--mustard); }
  .picked-names { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.4; color: rgba(248, 240, 227, .86); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  #submitBtn { flex: 0 0 auto; width: auto; min-height: 48px; padding: 0 18px; border-radius: 14px; font-size: 15px; letter-spacing: .1em; box-shadow: none; }
  .submit-error { margin: 8px 2px 0; box-shadow: 0 6px 18px rgba(59, 48, 42, .12); }
  dialog.viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .viewer-body { padding: 14px; }
  .viewer-foot { padding-left: 14px; padding-right: 14px; }
  .viewer-foot .btn { flex: 1 1 100%; }
  .viewer-links { width: 100%; }
  .viewer-links .org-link { flex: 1; justify-content: center; }
}
@media (max-width: 360px) {
  .picked-names { display: none; }
  .kicker { font-size: 12px; letter-spacing: .14em; }
  .hero h1 { font-size: 25px; }
  .lead { font-size: 13.5px; letter-spacing: 0; }
  .strip b { font-size: 21px; }
  .strip span { font-size: 11.5px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .submit-bar, .topbar, .foot .admin-entry, .ck, .more { display: none !important; }
  body { background: #fff; }
}
