/* =====================================================================
   HODA · LINE OA 專屬樣式（index.html 展示頁 + liff-*.html）
   依賴 ../assets/hoda.css 的 token；不覆寫共用元件。
   ===================================================================== */

/* ---------- A. Rich Menu（2500×1686 · 2×3），流式：所有尺寸以 cqw 表示，
   與 line.js 的 canvas 匯出共用同一組比例（1cqw = 25px @2500） ---------- */
.rm{
  position:relative;aspect-ratio:2500/1686;width:100%;container-type:inline-size;
  display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);
  gap:1px;background:#2A2521;border:1px solid var(--line);
  --rm-bone:#EAE2D4; --rm-bone-2:#B9AE9C; --rm-bone-3:#7E756A; --rm-brass:#A98B5E; --rm-brass-2:#D3BA8E;
}
.rm-cell{
  position:relative;display:block;text-align:left;background:#0A0908;color:var(--rm-bone);overflow:hidden;
  padding:5.5cqw;transition:background var(--t-base) var(--ease);
}
.rm-cell::after{content:"";position:absolute;left:5.5cqw;right:5.5cqw;bottom:0;height:1px;background:var(--rm-brass);transform:scaleX(0);transform-origin:left;transition:transform .9s var(--ease)}
.rm-cell:hover,.rm-cell:focus-visible{background:#141110}
.rm-cell:hover::after{transform:scaleX(1)}
.rm-cell.is-switch{background:#120F0D;background-image:linear-gradient(135deg,rgba(169,139,94,.14),rgba(169,139,94,0) 60%)}
.rm-cell.is-switch .rm-zh{color:var(--rm-brass-2)}
.rm-cell.is-flash{background:#1C1816}
.rm-idx{position:absolute;right:5.5cqw;top:5.2cqw;font-family:var(--serif-l);font-size:1.6cqw;letter-spacing:.3em;color:var(--rm-brass-2)}
.rm-ico{position:absolute;left:5.5cqw;top:5.5cqw;width:7cqw;height:7cqw;fill:none;stroke:var(--rm-brass-2);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.rm-zh{position:absolute;left:5.5cqw;bottom:9.6cqw;font-family:var(--serif);font-weight:300;font-size:4cqw;letter-spacing:.12em;line-height:1;white-space:nowrap}
.rm-en{position:absolute;left:5.5cqw;bottom:5.6cqw;font-family:var(--serif-l);font-size:1.7cqw;letter-spacing:.3em;text-transform:uppercase;color:var(--rm-bone-3);white-space:nowrap;line-height:1}
/* 動作類型標註（只在展示版顯示；手機內與匯出圖不含） */
.rm-type{position:absolute;right:5.5cqw;top:9.6cqw;font-family:var(--sans);font-weight:400;font-size:1.5cqw;letter-spacing:.24em;text-indent:.24em;text-transform:uppercase;padding:.6cqw 1.2cqw;border:1px solid currentColor;line-height:1;opacity:.9}
.rm-type[data-type="liff"]{color:#4FD47F}
.rm-type[data-type="uri"]{color:var(--rm-bone-2)}
.rm-type[data-type="message"]{color:var(--rm-brass-2)}
.rm-type[data-type="postback"]{color:#8A9BAE}
.rm.compact .rm-type{display:none}

/* 展示舞台：左兩張選單、右手機（sticky） */
.rm-stage{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,5vw,80px);align-items:start}
.rm-stack{display:grid;gap:clamp(40px,5vw,64px)}
.rm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.rm-head .h4{letter-spacing:.14em}
.rm-head .h4 small{margin-left:12px}
.rm-legend{display:flex;flex-wrap:wrap;gap:8px 20px;font-family:var(--sans);font-size:11px;letter-spacing:.2em;color:var(--fg-3);margin-top:16px}
.rm-legend span{display:inline-flex;align-items:center;gap:8px}
.rm-legend i{width:8px;height:8px;border:1px solid currentColor}
.rm-legend .l-liff{color:#4FD47F}.rm-legend .l-uri{color:var(--fg-2)}.rm-legend .l-msg{color:var(--accent-2)}.rm-legend .l-pb{color:#8A9BAE}
.rm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.phone-col{position:sticky;top:calc(var(--bar-h) + 16px);display:grid;justify-items:center;gap:18px}
.phone-hint{font-family:var(--sans);font-size:11px;letter-spacing:.24em;color:var(--fg-3);text-align:center;max-width:30em;line-height:2}
@media (max-width:1024px){.rm-stage{grid-template-columns:minmax(0,1fr)}.rm-stack > div{min-width:0}.phone-col{position:static}}

/* ---------- B. 手機（390×844，用 --s 等比縮放） ---------- */
.phone-wrap{--s:1;width:calc(390px * var(--s));height:calc(844px * var(--s));position:relative}
.phone{position:absolute;left:0;top:0;width:390px;height:844px;transform:scale(var(--s));transform-origin:0 0;
  border-radius:54px;background:#050505;padding:10px;border:1px solid rgba(234,226,212,.22);box-shadow:var(--shadow-2),inset 0 0 0 1px rgba(0,0,0,.9)}
.phone::before{content:"";position:absolute;left:50%;top:21px;transform:translateX(-50%);width:120px;height:35px;border-radius:20px;background:#000;z-index:5}
.screen{position:relative;width:100%;height:100%;border-radius:44px;overflow:hidden;background:#161618;color:#F2F2F2;display:flex;flex-direction:column;font-family:var(--sans);font-weight:400;letter-spacing:0;isolation:isolate}
.sbar{flex:none;height:54px;display:flex;align-items:flex-end;justify-content:space-between;padding:0 30px 6px;font:600 15px/1 -apple-system,system-ui,sans-serif;color:#fff}
.sbar svg{height:12px;width:auto;fill:#fff}
.sbar .r{display:flex;align-items:center;gap:6px}
.sbar .batt{width:25px;height:12px;border:1px solid rgba(255,255,255,.5);border-radius:4px;position:relative;padding:2px}
.sbar .batt::after{content:"";position:absolute;right:-3px;top:4px;width:2px;height:4px;background:rgba(255,255,255,.5);border-radius:0 2px 2px 0}
.sbar .batt i{display:block;height:100%;width:80%;background:#fff;border-radius:2px}
/* LINE 聊天頂欄 */
.ln-head{flex:none;height:44px;display:flex;align-items:center;gap:10px;padding:0 10px 0 6px;border-bottom:1px solid rgba(255,255,255,.08);background:#161618}
.ln-head svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ln-head .name{flex:1;display:flex;align-items:center;gap:6px;font-size:16px;font-weight:600;letter-spacing:.02em;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ln-head .name .oa{flex:none;width:16px;height:16px;border-radius:4px;background:#06C755;display:grid;place-items:center}
.ln-head .name .oa svg{width:10px;height:10px;stroke:#fff;stroke-width:2.4}
.ln-head .ico{display:flex;gap:14px}
/* 訊息區 */
.ln-chat{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px 10px;display:flex;flex-direction:column;gap:10px;scrollbar-width:none;background:#1A1A1C}
.ln-chat::-webkit-scrollbar{display:none}
.ln-date{align-self:center;font-size:11px;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.6)}
.ln-sys{align-self:center;font-size:11px;color:rgba(255,255,255,.45);text-align:center;max-width:80%;line-height:1.6}
.msg{display:flex;align-items:flex-end;gap:6px;max-width:86%;animation:msgIn .5s var(--ease) both}
.msg.me{align-self:flex-end;flex-direction:row-reverse}
.msg .av{flex:none;width:32px;height:32px;border-radius:50%;background:#0A0908;border:1px solid rgba(234,226,212,.25);display:grid;place-items:center;font-family:var(--serif);font-size:11px;letter-spacing:.1em;color:#D3BA8E;align-self:flex-start}
.msg .body{display:grid;gap:4px;min-width:0}
.msg .who{font-size:11px;color:rgba(255,255,255,.55);padding-left:2px}
.bub{position:relative;padding:9px 12px;border-radius:18px;font-size:14px;line-height:1.55;background:#2C2C2E;color:#F2F2F2;white-space:pre-line;word-break:break-word}
.msg.bot .bub{border-top-left-radius:4px}
.msg.me .bub{background:#06C755;color:#06240F;border-top-right-radius:4px}
.msg .time{font-size:10px;color:rgba(255,255,255,.4);align-self:flex-end;padding-bottom:2px;white-space:nowrap}
.msg.me .time{text-align:right}
.typing{display:inline-flex;gap:4px;padding:12px 14px}
.typing i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5);animation:typing 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes typing{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}
@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.qr{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0 0 2px}
.qr button{font-size:12px;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.28);color:#fff;background:transparent;font-family:inherit}
.qr button:hover{background:rgba(255,255,255,.08)}
/* 輸入列 + Rich Menu 區 */
.ln-input{flex:none;height:48px;display:flex;align-items:center;gap:10px;padding:0 10px;background:#161618;border-top:1px solid rgba(255,255,255,.08)}
.ln-input svg{width:22px;height:22px;fill:none;stroke:rgba(255,255,255,.75);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ln-input button{display:grid;place-items:center;width:28px;height:28px}
.ln-input .field{flex:1;display:flex;align-items:center;height:32px;border-radius:16px;background:#2C2C2E;padding:0 12px;min-width:0}
.ln-input input{flex:1;background:none;border:0;outline:0;color:#fff;font:400 14px/1 var(--sans);min-width:0}
.ln-input input::placeholder{color:rgba(255,255,255,.35)}
.ln-rm{flex:none;position:relative;background:#0A0908;transition:height .6s var(--ease)}
.ln-rm .rm{border:0}
.ln-rm.is-collapsed{height:0!important;overflow:hidden}
.ln-rm-toggle{position:absolute;left:50%;top:-1px;transform:translate(-50%,-100%);height:16px;padding:0 14px;border-radius:8px 8px 0 0;background:#161618;color:rgba(255,255,255,.5);display:grid;place-items:center;z-index:2}
.ln-rm-toggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .5s var(--ease)}
.ln-rm.is-collapsed .ln-rm-toggle{transform:translate(-50%,-100%);display:none}
.home{flex:none;height:20px;display:grid;place-items:center;background:#0A0908}
.home i{width:134px;height:5px;border-radius:3px;background:rgba(255,255,255,.85)}
.ln-rm + .home{background:#0A0908}
/* 升起的 webview（LIFF／內建瀏覽器） */
.sheet{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;background:#0A0908;transform:translateY(100%);transition:transform .8s var(--ease-io);visibility:hidden}
.sheet.is-open{transform:none;visibility:visible}
.sheet-head{flex:none;height:44px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;background:#161618;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.sheet-head .t{text-align:center;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-head button{display:grid;place-items:center;width:44px;height:44px}
.sheet-head svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round}
.sheet-head .url{justify-self:center;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 14px;border-radius:15px;background:#2C2C2E;font-size:12px;color:rgba(255,255,255,.8);max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sheet-head .url svg{width:11px;height:11px;stroke-width:2}
.sheet.liff .sheet-head{padding-top:54px;height:98px}
.sheet iframe{flex:1;width:100%;border:0;background:#0A0908}
.sheet-foot{flex:none;height:44px;display:flex;justify-content:space-around;align-items:center;background:#161618;border-top:1px solid rgba(255,255,255,.08)}
.sheet-foot svg{width:20px;height:20px;fill:none;stroke:rgba(255,255,255,.7);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sheet-foot a{display:grid;place-items:center;width:40px;height:40px}
.sheet .loading{position:absolute;left:0;right:0;top:98px;height:1px;background:#06C755;transform-origin:left;transform:scaleX(0);transition:transform 1.4s var(--ease-io)}
.sheet.is-open .loading{transform:scaleX(1)}

/* ---------- C. Flex Message 卡（LINE 氣泡內的品牌卡） ---------- */
.flex{width:min(100%,260px);border-radius:16px;overflow:hidden;background:#0F0D0C;color:#EAE2D4;border:1px solid rgba(234,226,212,.16);font-family:var(--sans);font-weight:300;letter-spacing:.02em;text-align:left}
.flex .hero{position:relative;aspect-ratio:16/9;overflow:hidden;background:#1C1816}
.flex .hero img{width:100%;height:100%;object-fit:cover;filter:saturate(.8) brightness(.85) contrast(1.03)}
.flex .hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,9,8,.75),rgba(10,9,8,0) 55%)}
.flex .hero .tag{position:absolute;left:12px;top:12px;z-index:1}
.flex .body{padding:14px 16px 10px;display:grid;gap:8px}
.flex .eyebrow{font-size:9px;letter-spacing:.34em;gap:10px}
.flex .eyebrow::before{width:18px}
.flex .title{font-family:var(--serif);font-weight:300;font-size:17px;letter-spacing:.08em;line-height:1.4;color:#EAE2D4}
.flex .price{font-family:var(--serif-l);font-size:22px;letter-spacing:.02em;color:#EAE2D4;display:flex;align-items:baseline;gap:5px}
.flex .price small{font-size:10px;letter-spacing:.2em;color:#7E756A;font-family:var(--sans)}
.flex .kv{display:grid;grid-template-columns:auto 1fr;gap:5px 14px;font-size:12px;line-height:1.6}
.flex .kv dt{color:#7E756A;letter-spacing:.14em;font-size:10px;padding-top:2px}
.flex .kv dd{color:#EAE2D4}
.flex .kv dd.num{font-family:var(--serif-l);letter-spacing:.04em}
.flex .status{display:flex;gap:0;margin-top:2px}
.flex .status span{flex:1;display:grid;gap:7px;font-size:9px;letter-spacing:.14em;color:#7E756A;text-align:center}
.flex .status span::before{content:"";height:1px;background:rgba(234,226,212,.14)}
.flex .status span.done::before{background:#D3BA8E}
.flex .status span.done{color:#B9AE9C}
.flex .status span.now::before{background:#D3BA8E;box-shadow:0 0 10px rgba(211,186,142,.6)}
.flex .status span.now{color:#D3BA8E}
.flex .acts{display:grid;border-top:1px solid rgba(234,226,212,.12)}
.flex .acts button,.flex .acts a{display:block;width:100%;padding:12px;text-align:center;font-family:var(--sans);font-size:13px;letter-spacing:.2em;text-indent:.2em;color:#D3BA8E;transition:background .4s}
.flex .acts button + button,.flex .acts a + button,.flex .acts button + a{border-top:1px solid rgba(234,226,212,.08)}
.flex .acts button:hover{background:rgba(234,226,212,.05)}
.flex .acts .ghost{color:#7E756A}
.flex .big{font-family:var(--serif-l);font-size:30px;line-height:1;letter-spacing:.02em;color:#EAE2D4}
.flex .big small{font-size:12px;letter-spacing:.18em;color:#7E756A;font-family:var(--sans);margin-left:6px}
.flex .due{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#B9AE9C;padding-top:6px;border-top:1px solid rgba(234,226,212,.1)}
.flex .due b{font-weight:400;color:#C9A24E}
.flex .rule{width:24px;height:1px;background:#A98B5E}
.flex .text{font-size:13px;line-height:1.7;color:#B9AE9C}
.flex.plain{width:min(100%,250px)}
/* 展示區的 Flex 範例列 */
.flex-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,40px);align-items:start}
.flex-row > div{display:grid;gap:18px;justify-items:start}
.flex-row .flex{width:100%;max-width:300px}
.flex-row .cap{display:grid;gap:8px;font-family:var(--sans);font-size:12px;letter-spacing:.14em;color:var(--fg-2);line-height:1.9}
.flex-row .cap b{font-weight:400;color:var(--fg);font-family:var(--serif);letter-spacing:.1em;font-size:15px}
@media (max-width:900px){.flex-row{grid-template-columns:1fr}}

/* ---------- D. 說明頁其他 ---------- */
.ln-code{font:12px/1.8 ui-monospace,Menlo,monospace;letter-spacing:0;color:var(--fg-2);background:var(--bg-2);border:1px solid var(--line);padding:18px 22px;overflow:auto;white-space:pre;max-width:100%}
.ln-code b{color:var(--accent-2);font-weight:400}
.mech{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.mech > div{background:var(--bg);padding:clamp(22px,2.6vw,36px);display:grid;gap:14px;align-content:start}
.mech .idx{font-family:var(--serif-l);font-size:12px;letter-spacing:.34em;color:var(--accent-2)}
.mech h3{font-weight:300;font-size:var(--fs-h4);letter-spacing:.12em;line-height:1.5}
.mech p{font-size:14px;line-height:1.9;letter-spacing:.04em;color:var(--fg-2)}
.mech code{font:12px ui-monospace,Menlo,monospace;color:var(--accent-2);letter-spacing:0}
@media (max-width:900px){.mech{grid-template-columns:1fr}}
.kw-table td:first-child{font-family:var(--serif);letter-spacing:.1em;color:var(--fg)}
.kw-table .btn-sm{padding:8px 14px;font-size:11px}
.welcome-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:start}
@media (max-width:900px){.welcome-wrap{grid-template-columns:1fr}}
.liff-list{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.liff-list > div{position:relative;display:grid;gap:10px;align-content:start;background:var(--bg);padding:clamp(20px,2.4vw,30px);min-height:190px;transition:background var(--t-base) var(--ease)}
.liff-list > div:hover{background:var(--bg-2)}
.liff-list > div > svg{width:22px;height:22px;fill:none;stroke:var(--accent-2);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.liff-list .t{font-size:var(--fs-lg);font-weight:300;letter-spacing:.1em;margin-top:6px}
.liff-list .d{font-family:var(--sans);font-size:12px;line-height:1.8;letter-spacing:.06em;color:var(--fg-2)}
.liff-list .f{display:flex;flex-wrap:wrap;gap:6px 18px;font-family:var(--serif-l);font-size:10px;letter-spacing:.24em;color:var(--fg-3);margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.liff-list .f a:hover{color:var(--fg)}
.liff-list .f button{font:inherit;letter-spacing:inherit;color:var(--accent-2);padding:0}
.liff-list .f button:hover{color:var(--fg)}
@media (max-width:900px){.liff-list{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.liff-list{grid-template-columns:1fr}}

/* ---------- E. LIFF 頁面（html.liff） ---------- */
html.liff .cur,html.liff .fab,html.liff .vignette-page{display:none!important}
html.liff.has-cursor body,html.liff.has-cursor :is(a,button,label,input,select,textarea,summary){cursor:auto}
html.liff body{background:var(--bg-2)}
.liff-app{position:relative;max-width:480px;margin:0 auto;min-height:100svh;background:var(--bg);display:flex;flex-direction:column}
@media (min-width:481px){.liff-app{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
.liff-bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;height:52px;padding:0 20px;
  background:rgba(10,9,8,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.liff-brand{display:flex;align-items:baseline;gap:8px;font-size:12px;font-weight:400;letter-spacing:.3em;color:var(--fg-2);white-space:nowrap}
.liff-brand small{font-family:var(--serif-l);font-size:9px;letter-spacing:.3em;color:var(--fg-3)}
.liff-title{font-size:14px;font-weight:300;letter-spacing:.2em;text-indent:.2em;color:var(--fg);white-space:nowrap}
.liff-body{flex:1;padding:24px 20px calc(120px + env(safe-area-inset-bottom));display:grid;gap:28px;align-content:start}
.liff-body > section{display:grid;gap:18px}
.liff-h{display:grid;gap:10px}
.liff-h .h3{font-size:clamp(22px,6vw,26px);letter-spacing:.08em;line-height:1.35}
.liff-h p{font-family:var(--sans);font-size:13px;line-height:1.9;letter-spacing:.06em;color:var(--fg-2)}
.liff-foot{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:480px;z-index:10;display:grid;gap:10px;padding:14px 20px calc(14px + env(safe-area-inset-bottom));
  background:linear-gradient(to top,rgba(10,9,8,.98) 70%,rgba(10,9,8,0));}
.liff-foot .row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:stretch}
.liff-foot .row.one,.liff-foot .row:has(> [hidden]:first-child){grid-template-columns:1fr}
.liff-foot .btn{padding:16px 20px;letter-spacing:.24em;text-indent:.24em;font-size:13px;white-space:nowrap}
.liff-foot .btn.ghost{color:var(--fg-2);border-color:var(--line-2)}
/* 步驟 */
.liff-steps{display:flex;align-items:center;gap:10px;font-family:var(--serif-l);font-size:11px;letter-spacing:.24em;color:var(--fg-3)}
.liff-steps i{flex:1;height:1px;background:var(--line);position:relative;overflow:hidden}
.liff-steps i::after{content:"";position:absolute;inset:0;background:var(--accent-2);transform-origin:left;transform:scaleX(var(--p,0));transition:transform 1s var(--ease-io)}
.liff-steps b{font-weight:400;color:var(--accent-2)}
.liff-body > .step:not(.is-active){display:none}
.step.is-active{display:grid;gap:26px;animation:fadeUp .8s var(--ease) both}
/* 選項卡（radio／checkbox 卡） */
.opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.opts.col{grid-template-columns:1fr}
.opts.three{grid-template-columns:repeat(3,1fr)}
.opt{position:relative;display:grid;gap:8px;padding:16px 16px 14px;border:1px solid var(--line);background:var(--bg-2);cursor:pointer;transition:border-color var(--t-fast),background var(--t-fast);min-height:72px;align-content:start}
.opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.opt svg{width:22px;height:22px;fill:none;stroke:var(--fg-2);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;transition:stroke var(--t-fast)}
.opt .t{font-size:15px;letter-spacing:.1em;font-weight:300}
.opt .s{font-family:var(--sans);font-size:11px;letter-spacing:.08em;color:var(--fg-3);line-height:1.6}
.opt .s.num{font-family:var(--serif-l);letter-spacing:.04em;color:var(--fg-2)}
.opt:has(input:checked){border-color:var(--accent-2);background:var(--accent-soft)}
.opt:has(input:checked) svg{stroke:var(--accent-2)}
.opt:has(input:checked) .t{color:var(--accent-2)}
.opt:has(input:focus-visible){outline:1px solid var(--accent-2);outline-offset:3px}
.opt.row{grid-template-columns:auto 1fr;align-items:center;gap:14px}
.opt.row .t{display:block}
.opt .thumb{width:56px;height:56px;object-fit:cover;filter:var(--img-filter)}
/* 列表物件卡（預約看房、報修選物件） */
.pick{display:grid;gap:10px}
.pick .opt{grid-template-columns:64px 1fr;align-items:center;gap:14px;padding:12px}
.pick .opt .fig{width:64px;height:64px}
.pick .opt .meta{display:grid;gap:4px;min-width:0}
.pick .opt .meta .t{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick .opt .meta .s{display:flex;gap:10px;flex-wrap:wrap}
/* 照片 */
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.photos .ph{position:relative;aspect-ratio:1;overflow:hidden;background:var(--bg-2);border:1px solid var(--line)}
.photos .ph img{width:100%;height:100%;object-fit:cover;filter:var(--img-filter)}
.photos .ph button{position:absolute;right:4px;top:4px;width:24px;height:24px;display:grid;place-items:center;background:rgba(10,9,8,.8);color:var(--fg);font-family:var(--serif-l);font-size:14px;line-height:1}
.photos .add{aspect-ratio:1;display:grid;place-items:center;align-content:center;gap:8px;border:1px dashed var(--line-2);color:var(--fg-3);font-family:var(--sans);font-size:11px;letter-spacing:.2em;cursor:pointer;transition:border-color var(--t-fast),color var(--t-fast)}
.photos .add:hover{border-color:var(--accent-2);color:var(--accent-2)}
.photos .add svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round}
.photos .add input{display:none}
/* 時段 chip 群 */
.slots{display:flex;flex-wrap:wrap;gap:8px}
.slots label{position:relative}
.slots input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.slots span{display:inline-flex;align-items:center;padding:9px 16px;border:1px solid var(--line);border-radius:var(--r-pill);font-family:var(--sans);font-size:12px;letter-spacing:.14em;color:var(--fg-2);transition:border-color var(--t-fast),color var(--t-fast),background var(--t-fast)}
.slots input:checked + span{border-color:var(--accent-2);color:var(--accent-2);background:var(--accent-soft)}
.slots input:focus-visible + span{outline:1px solid var(--accent-2);outline-offset:3px}
/* 完成卡 */
.done{display:grid;gap:22px;justify-items:center;text-align:center;padding:12px 0 0}
.done .mark{width:72px;height:72px;border-radius:50%;border:1px solid var(--accent);display:grid;place-items:center}
.done .mark svg{width:28px;height:28px;fill:none;stroke:var(--accent-2);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:draw 1.2s var(--ease) .3s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.done .no{font-family:var(--serif-l);font-size:clamp(28px,8vw,36px);letter-spacing:.06em;line-height:1}
.done .lbl{font-family:var(--sans);font-size:11px;letter-spacing:.3em;color:var(--fg-3)}
.done .dl{width:100%;text-align:left}
.done .note{text-align:left;width:100%}
/* 時間軸（工單進度） */
.tl{display:grid;gap:0;width:100%;text-align:left}
.tl div{display:grid;grid-template-columns:18px 1fr auto;gap:0 14px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line);font-family:var(--sans);font-size:13px;letter-spacing:.06em;color:var(--fg-2)}
.tl div::before{content:"";width:8px;height:8px;border-radius:50%;border:1px solid var(--line-2);margin:6px 0 0 5px}
.tl div.done::before{background:var(--accent-2);border-color:var(--accent-2)}
.tl div.now::before{border-color:var(--accent-2);box-shadow:0 0 0 3px var(--accent-soft)}
.tl div.now{color:var(--fg)}
.tl small{font-family:var(--serif-l);font-size:11px;letter-spacing:.14em;color:var(--fg-3)}
/* 帳單大數 */
.bill{display:grid;gap:14px;padding:24px 22px;border:1px solid var(--line);background:var(--bg-2);position:relative;overflow:hidden}
.bill::after{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:var(--accent)}
.bill .amt{font-family:var(--serif-l);font-size:clamp(34px,10vw,44px);letter-spacing:.02em;line-height:1;display:flex;align-items:baseline;gap:8px}
.bill .amt small{font-family:var(--sans);font-size:11px;letter-spacing:.2em;color:var(--fg-3)}
.bill .meta{display:flex;justify-content:space-between;gap:12px;font-family:var(--sans);font-size:12px;letter-spacing:.1em;color:var(--fg-2);flex-wrap:wrap}
/* 繳費方式面板 */
.pay{display:grid;gap:16px;padding:20px;border:1px solid var(--line);background:var(--bg-2)}
.pay .code{font-family:var(--serif-l);font-size:clamp(22px,6.4vw,28px);letter-spacing:.14em;color:var(--fg);text-align:center;padding:10px 0}
.pay .barcode{height:56px;background:repeating-linear-gradient(90deg,var(--fg) 0 2px,transparent 2px 4px,var(--fg) 4px 5px,transparent 5px 8px,var(--fg) 8px 11px,transparent 11px 13px);opacity:.85}
.pay .hint{font-family:var(--sans);font-size:11px;line-height:1.8;letter-spacing:.08em;color:var(--fg-3)}
/* 紀錄列表 */
.rows{display:grid}
.rows div{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:14px 0;border-bottom:1px solid var(--line);font-family:var(--sans);font-size:13px;letter-spacing:.06em}
.rows div span:nth-child(2){font-family:var(--serif-l);letter-spacing:.04em;text-align:right}
.rows div small{grid-column:1/-1;font-size:11px;color:var(--fg-3);display:flex;gap:12px;align-items:center}
/* PDF 預覽 */
.pdf{position:relative;aspect-ratio:1/1.2;background:#F2EDE4;color:#1A1614;padding:9% 8%;display:grid;gap:3%;align-content:start;overflow:hidden;box-shadow:var(--shadow-1);border:1px solid var(--line)}
.pdf::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(242,237,228,.0),rgba(242,237,228,0) 70%)}
.pdf h5{font-family:var(--serif);font-weight:400;font-size:clamp(12px,3.4vw,16px);letter-spacing:.3em;text-align:center}
.pdf .l{height:1px;background:rgba(26,22,20,.5)}
.pdf .l.short{width:40%}.pdf .l.mid{width:70%}
.pdf .l.thin{background:rgba(26,22,20,.22)}
.pdf .pg{position:absolute;right:8%;bottom:6%;font-family:var(--serif-l);font-size:10px;letter-spacing:.3em;color:rgba(26,22,20,.5)}
.pdf-nav{display:flex;justify-content:space-between;align-items:center;font-family:var(--serif-l);font-size:12px;letter-spacing:.2em;color:var(--fg-3)}
/* OTP */
.otp{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.otp input{width:100%;aspect-ratio:3/4;text-align:center;font-family:var(--serif-l);font-size:24px;background:var(--bg-2);border:1px solid var(--line);color:var(--fg);outline:0;border-radius:0;appearance:none;-webkit-appearance:none}
.otp input:focus{border-color:var(--accent-2)}
.countdown{font-family:var(--serif-l);font-size:12px;letter-spacing:.2em;color:var(--fg-3)}
.who{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);background:var(--bg-2)}
.who .av{width:44px;height:44px;border-radius:50%;background:var(--bg-4);display:grid;place-items:center;font-family:var(--serif);color:var(--accent-2);letter-spacing:.1em;font-size:14px}
.who .n{display:grid;gap:2px}
.who .n b{font-weight:400;letter-spacing:.1em}
.who .n small{font-family:var(--sans);font-size:11px;letter-spacing:.1em;color:var(--fg-3)}
.liff-body .dl{font-size:14px}
.liff-body .dl dt,.liff-body .dl dd{padding:11px 0}
.liff-body .field > label{font-size:var(--fs-2xs)}
.liff-body .input,.liff-body .select,.liff-body .textarea{font-size:16px}
.liff-body .note{font-size:12px}
.liff-body .tabs .tab{padding:12px 16px 14px;font-size:12px}
.liff-body .tab-panel{padding-top:18px}
.liff-body .badge{font-size:var(--fs-2xs)}
.liff-body .table th,.liff-body .table td{padding:12px 10px;font-size:13px}
.liff-body .table th:first-child,.liff-body .table td:first-child{padding-left:0}
.liff-body .table th:last-child,.liff-body .table td:last-child{padding-right:0}
.liff-body .btn{white-space:normal}
.liff-only-standalone{display:none}
html.liff-standalone .liff-only-standalone{display:inline-flex}

/* hidden 屬性要贏過 .btn／.row 的 display */
[hidden]{display:none!important}
