/* =========================================================
   ui05.html「Wireframe ＼ UI Flow ＼ Prototype」專用樣式  v1
   全新案例「拾器」：設計系學生二手工具交換 App，貫穿全部九個前置流程關卡，
   每一關「先講定義、再動手操作、立刻看到結果」。
   主色：Tiffany Blue。沿用全站 main.css 字型慣例，只在 .ui05-page 之下擴充。
   ========================================================= */
.ui05-page {
	--u-ink: #1B1F22;
	--u-ink-2: #4B5563;
	--u-ink-3: #8A9199;
	--u-paper: #ffffff;
	--u-bg: #F2FBFA;
	--u-line: #D8EEEC;
	--u-brand: #0ABAB5;       /* Tiffany Blue：結構性主色 */
	--u-brand-strong: #067A76;
	--u-brand-soft: #DFF6F4;
	--u-agent: #6350C4;       /* Figma Agent 識別色 */
	--u-agent-soft: #EDE9FB;
	--u-figjam: #EE4A85;      /* FigJam AI 識別色（桃紅，與主色區隔） */
	--u-figjam-soft: #FDF2F6;
	--u-warn: #E4572E;
	--u-good: #1E9E6B;
	--u-dot: #D3EFEC;
	--u-select: var(--u-brand);
	--u-select-soft: rgba(10,186,181,.1);
	--u-font-display: "Chiron GoRound TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
	--u-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--r: 20px;
	background-color: var(--u-bg);
	background-image: radial-gradient(var(--u-dot) 1px, transparent 1.2px);
	background-size: 22px 22px;
	color: var(--u-ink);
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	padding-bottom: 100px;
	overflow-x: clip;
	--hdr: 84px;
}
.ui05-page h2, .ui05-page h3, .ui05-page h4 { font-family: var(--u-font-display); }
.ui05-page *, .ui05-page *::before, .ui05-page *::after { box-sizing: border-box; }
.ui05-page img { max-width: 100%; display: block; }
.ui05-page a { text-decoration: none; }
.ui05-page p { font-size: 16px; line-height: 1.8; color: var(--u-ink-2); }
.ui05-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ui05-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; font-size: 12px; font-weight: 700; }

/* ---------- 頁內選單 ---------- */
.ui05-subnav { position: sticky; top: var(--hdr); z-index: 90; background: rgba(242,251,250,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--u-line); }
.ui05-subnav .ui05-wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; padding-bottom: 2px; }
.ui05-subnav .ui05-wrap::-webkit-scrollbar { display: none; }
.ui05-subnav a { position: relative; flex: 0 0 auto; display: flex; align-items: baseline; gap: 7px; padding: 14px 14px 12px; color: var(--u-ink-3); white-space: nowrap; font-size: 13.5px; font-weight: 700; transition: color .2s; }
.ui05-subnav a .no { font: 900 12px/1 "JetBrains Mono", ui-monospace, Menlo, monospace; opacity: .55; }
.ui05-subnav a::after { content:""; position:absolute; left:14px; right:14px; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:var(--u-brand); transform:scaleX(0); transform-origin:left; transition:transform .3s cubic-bezier(.2,.8,.2,1); }
.ui05-subnav a:hover { color: var(--u-ink); }
.ui05-subnav a.is-on { color: var(--u-ink); }
.ui05-subnav a.is-on .no { opacity: 1; color: var(--u-brand-strong); }
.ui05-subnav a.is-on::after { transform: scaleX(1); }
.ui05-page section[id] { scroll-margin-top: calc(var(--hdr) + 64px); }

/* ---------- 開場 ---------- */
.ui05-intro { padding: 56px 0 36px; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: 44px; align-items: end; }
.ui05-intro .ui05-mono { color: var(--u-brand-strong); display:flex; align-items:center; gap:10px; }
.ui05-intro .ui05-mono::before { content:""; width:26px; height:2px; background:currentColor; }
.ui05-intro h2 { font-size: clamp(28px,4vw,46px); line-height:1.16; font-weight:900; margin:16px 0 0; letter-spacing:-.01em; color:var(--u-ink); }
.ui05-intro h2 em { font-style:normal; background: linear-gradient(transparent 62%, var(--u-brand-soft) 62%); padding:0 .06em; color: var(--u-brand-strong); }
.ui05-strap { margin:34px 0 0; font-size:16.5px; font-weight:800; color:var(--u-ink); display:flex; flex-wrap:wrap; align-items:center; gap:0; }
.ui05-strap .s1 { color:var(--u-brand-strong); }
.ui05-strap .s2 { color:var(--u-agent); }
.ui05-intro p.lead { font-size:16.5px; line-height:1.85; color:var(--u-ink-2); margin:18px 0 0; max-width:44em; }
.ui05-stats { display:grid; grid-template-columns:repeat(3,1fr); border-top:2px solid var(--u-ink); }
.ui05-stats div { padding:14px 10px 0 0; }
.ui05-stats .stat-number { display:block; font-size:clamp(30px,3.6vw,42px); font-weight:900; line-height:1; font-variant-numeric:tabular-nums; color:var(--u-ink); }
.ui05-stats span.lbl { display:block; margin-top:6px; font-size:12.5px; color:var(--u-ink-2); line-height:1.5; }
.ui05-page .ui05-updated { margin-top:18px; font-size:10.5px; color:var(--u-ink-3); }
.ui05-cta-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.ui05-cta { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; padding:8px 14px; border-radius:8px; border:1.5px solid var(--u-ink); color:var(--u-ink); }
.ui05-cta:hover { background:var(--u-ink); color:#fff; }
.ui05-cta.primary { background:var(--u-brand); border-color:var(--u-brand); color:#fff; }
.ui05-cta.primary:hover { background:var(--u-brand-strong); border-color:var(--u-brand-strong); }

/* ---------- 案例名片 ---------- */
.case-chip { display:flex; align-items:center; gap:14px; background:var(--u-paper); border:1.5px solid var(--u-brand); border-radius:16px; padding:16px 20px; box-shadow:0 14px 30px -20px rgba(10,186,181,.5); }
.case-chip .mark { width:48px; height:48px; border-radius:12px; background:var(--u-brand); color:#fff; display:grid; place-items:center; font-size:20px; font-weight:900; flex:none; }
.case-chip b { display:block; font-size:15px; }
.case-chip span { display:block; font-size:12px; color:var(--u-ink-3); margin-top:2px; }

/* ---------- 跑馬燈 ---------- */
.ui05-marquee { border-block:2px solid var(--u-ink); background:var(--u-ink); color:#fff; overflow:hidden; white-space:nowrap; margin:20px 0 48px; }
.ui05-marquee-track { display:inline-flex; animation: ui05Marquee 34s linear infinite; padding:12px 0; }
.ui05-marquee span { font-size:clamp(17px,2.2vw,24px); font-weight:900; padding:0 24px; display:inline-flex; align-items:center; gap:24px; }
.ui05-marquee span::after { content:"✦"; font-size:.6em; color:var(--u-brand); }
.ui05-marquee span.o { color:transparent; -webkit-text-stroke:1.1px #fff; }
@keyframes ui05Marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ui05-marquee-track { animation:none; } }

.ui05-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:0 0 26px; padding-bottom:14px; border-bottom:1px solid var(--u-line); }
.ui05-section-head h3 { margin:0; font-size:clamp(22px,2.8vw,32px); font-weight:900; color:var(--u-ink); }
.ui05-section-head p { margin:0; color:var(--u-ink-2); font-size:14.5px; }
.ui05-section { padding-top:60px; }

/* ---------- 徽章 ---------- */
.ui05-badge { display:inline-flex; align-items:center; gap:5px; font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:20px; white-space:nowrap; }
.ui05-badge.agent { background:var(--u-agent-soft); color:var(--u-agent); }
.ui05-badge.figjam { background:var(--u-figjam-soft); color:var(--u-figjam); }
.ui05-badge.manual { background:#eef0f1; color:var(--u-ink-2); }
.ui05-badge.you { background:var(--u-brand-soft); color:var(--u-brand-strong); }
.ui05-badge.end { background:var(--u-ink); color:#fff; }

/* ---------- 流程總覽膠囊列 ---------- */
.stage-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.stage-pills a { display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; padding:8px 14px; border-radius:999px; background:var(--u-paper); border:1.5px solid var(--u-line); color:var(--u-ink-2); }
.stage-pills a b { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; color:var(--u-brand-strong); font-weight:900; }
.stage-pills a:hover { border-color:var(--u-brand); color:var(--u-ink); }

/* ---------- 雙鑽石流程圖（示意圖） ---------- */
.dd-diagram { margin-bottom:20px; }
.dd-diagram svg { width:100%; height:auto; display:block; overflow:visible; }
.dd-space { font:800 12.5px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:var(--u-ink-3); letter-spacing:.03em; }
.dd-divider { stroke:var(--u-line); stroke-width:2; stroke-dasharray:4 5; }
.dd-tri { stroke-width:2; stroke-linejoin:round; }
.dd-tri.discover { fill:var(--u-brand-soft); stroke:var(--u-brand); }
.dd-tri.define { fill:var(--u-brand); fill-opacity:.88; stroke:var(--u-brand-strong); }
.dd-tri.develop { fill:var(--u-agent-soft); stroke:var(--u-agent); }
.dd-tri.deliver { fill:var(--u-agent); fill-opacity:.88; stroke:var(--u-agent); }
.dd-dot { fill:var(--u-ink); }
.dd-label { font:800 13px/1 "Noto Sans TC","PingFang TC",sans-serif; }
.dd-label.left { fill:var(--u-brand-strong); }
.dd-label.right { fill:var(--u-agent); }
.dd-insight { font:600 11px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:var(--u-ink-3); }

/* ---------- 詞彙心智圖（示意圖） ---------- */
.mindmap-diagram svg { width:100%; height:auto; display:block; }
.mm-line { stroke:var(--u-line); stroke-width:2; }
.mm-core { fill:var(--u-brand); }
.mm-core-label { font:800 14px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:#fff; }
.mm-node circle { fill:var(--u-brand-soft); stroke:var(--u-brand); stroke-width:1.5; }
.mm-node text { font:700 12px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:var(--u-ink); }

/* ---------- 參考案例快照（示意圖） ---------- */
.case-snap-diagram svg { width:100%; height:auto; display:block; }
.cs-win rect:first-child { fill:var(--u-paper); stroke:var(--u-line); stroke-width:1.5; }
.cs-dot { fill:var(--u-line); }
.cs-block { fill:var(--u-brand-soft); }
.cs-line { fill:var(--u-line); }
.cs-cap { font:700 11.5px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:var(--u-ink-2); }

/* ---------- 主題句匯聚圖（示意圖） ---------- */
.merge-diagram svg { width:100%; height:auto; display:block; }
.mg-box { fill:var(--u-brand-soft); stroke:var(--u-brand); stroke-width:1.5; }
.mg-box-label { font:700 12px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:var(--u-brand-strong); }
.mg-arrow { fill:none; stroke:var(--u-line); stroke-width:2; }
.mg-result { fill:var(--u-ink); }
.mg-result-label { font:900 18px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:#fff; }
.mg-result-sub { font:700 11px/1 "JetBrains Mono",ui-monospace,Menlo,monospace; fill:var(--u-brand); }
.mg-result-sub2 { font:500 11px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:rgba(255,255,255,.65); }

/* ---------- 便利貼分類圖（示意圖） ---------- */
.affinity-diagram svg { width:100%; height:auto; display:block; }
.aff-label { font:800 12.5px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:var(--u-ink); }
.aff-count { font:600 10.5px/1 "JetBrains Mono",ui-monospace,Menlo,monospace; fill:var(--u-ink-3); }
.aff-back { fill:var(--u-paper); stroke:var(--u-line); stroke-width:1.5; }
.aff-front.c0 { fill:var(--u-brand-soft); stroke:var(--u-brand); stroke-width:1.5; }
.aff-front.c1 { fill:var(--u-agent-soft); stroke:var(--u-agent); stroke-width:1.5; }

/* ---------- 資訊架構樹狀圖（示意圖） ---------- */
.tree-diagram svg { width:100%; height:auto; display:block; }
.tree-line { stroke:var(--u-line); stroke-width:2; }
.tree-root { fill:var(--u-ink); }
.tree-root-label { font:800 13px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:#fff; }
.tree-child { fill:var(--u-brand-soft); stroke:var(--u-brand); stroke-width:1.5; }
.tree-child-label { font:700 12px/1 "Noto Sans TC","PingFang TC",sans-serif; fill:var(--u-ink); }

/* ---------- 同理心地圖示意圖 ---------- */
.empathy-diagram svg { width:100%; height:auto; display:block; }
.eq-quad { fill:var(--u-bg); stroke:var(--u-line); stroke-width:1.5; }
.eq-quad.says, .eq-quad.does { fill:var(--u-brand-soft); }
.eq-quad.thinks, .eq-quad.feels { fill:var(--u-agent-soft); }
.eq-diagram-label { font:800 12px/1 "JetBrains Mono",ui-monospace,Menlo,monospace; fill:var(--u-ink-2); }
.eq-face { fill:var(--u-ink); }
.eq-eye { fill:#fff; }
.eq-smile { fill:none; stroke:#fff; stroke-width:2.5; stroke-linecap:round; }

/* ---------- 示意圖 × 下方練習聯動：點圖示直接跳到／展開對應的練習內容 ---------- */
.mm-node, .cs-win, .dd-tri, .mg-box, .aff-group, .tree-node, .eq-node {
	cursor: pointer;
	transition: opacity .18s, transform .18s, filter .18s;
	transform-box: fill-box;
	transform-origin: center;
}
.mm-node:hover, .tree-node:hover, .eq-node:hover { transform: scale(1.04); }
.mm-node:hover circle, .tree-node:hover rect, .eq-node:hover rect { filter: brightness(1.06); }
.cs-win:hover { opacity: .82; }
.dd-tri:hover { filter: brightness(1.12); }
.mg-box:hover { filter: brightness(1.08); }
.mg-box-label { pointer-events: none; }
.aff-group:hover { transform: translateY(-2px); }
.mm-node:focus-visible circle, .tree-node:focus-visible rect, .eq-node:focus-visible rect,
.cs-win:focus-visible rect:first-child, .dd-tri:focus-visible, .mg-box:focus-visible {
	outline: none; stroke: #fff !important; stroke-width: 3 !important;
}
/* 目標元素被點擊連動時，短暫亮一下邊框，提示「這就是剛剛點的那個」 */
@keyframes diagramFlash {
	0% { box-shadow: 0 0 0 0 rgba(10,186,181,.55); }
	60% { box-shadow: 0 0 0 8px rgba(10,186,181,0); }
	100% { box-shadow: 0 0 0 0 rgba(10,186,181,0); }
}
.diagram-flash { animation: diagramFlash 1s ease-out; }

/* ---------- 故事地圖分層示意圖 ---------- */
.sm-diagram svg { width:100%; height:auto; display:block; }
.sm-d-row.backbone { fill:var(--u-ink); }
.sm-d-row.mvp { fill:var(--u-brand-soft); stroke:var(--u-brand); stroke-width:1.5; }
.sm-d-row.later { fill:#eef0f1; stroke:var(--u-line); stroke-width:1.5; }
.sm-d-rowlabel { font:700 11px/1 "JetBrains Mono",ui-monospace,Menlo,monospace; fill:var(--u-ink-3); }
.sm-d-rowlabel.mvp { fill:var(--u-brand-strong); }

/* ---------- 低保真 Wireframe 示意圖 ---------- */
.wf-diagram { max-width:220px; margin:0 auto 4px; }
.wf-diagram svg { width:100%; height:auto; display:block; }
.wf-frame { fill:var(--u-paper); stroke:var(--u-ink); stroke-width:2.5; }
.wf-block { fill:#e7e9ea; }
.wf-image { fill:var(--u-bg); stroke:var(--u-line); stroke-width:1.5; }
.wf-x { stroke:var(--u-line); stroke-width:1.5; }
.wf-line { fill:#e7e9ea; }
.wf-btn { fill:var(--u-brand); }
.wf-circle { fill:var(--u-brand-soft); stroke:var(--u-brand); stroke-width:2; }
.wf-dot { fill:var(--u-line); }
.wf-dot.on { fill:var(--u-brand); }
.wf-navicon { fill:#e7e9ea; }

/* ---------- Wireframe 畫面集合（進入頁～功能頁） ---------- */
.quote-wall.wf-gallery { grid-template-columns:repeat(3,1fr); gap:12px; }
.wf-screen-card { text-align:center; padding:14px 10px 12px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.wf-screen-card .wf-diagram { max-width:110px; margin:0; }
.wf-screen-name { font-size:12px; font-weight:700; color:var(--u-ink-2); }
.wf-screen-name .en { display:block; font:400 10px/1.3 "JetBrains Mono",ui-monospace,Menlo,monospace; color:var(--u-ink-3); margin-top:2px; }
@media (max-width:600px) { .quote-wall.wf-gallery { grid-template-columns:repeat(2,1fr); } }

/* ---------- 通用示意圖小標籤 ---------- */
.si-diagram-label { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10.5px; color:var(--u-ink-3); text-transform:uppercase; letter-spacing:.06em; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
.si-diagram-label::before { content:"▦"; color:var(--u-agent); }

/* ---------- 每一關：兩欄式「講定義 / 動手做」 ---------- */
.stage { padding:56px 0; border-bottom:1px solid var(--u-line); background-color:transparent; }
.stage:last-child { border-bottom:none; }
.stage-grid { display:grid; grid-template-columns:minmax(0,.42fr) minmax(0,.58fr); gap:36px; align-items:start; }
.stage-num { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:13px; font-weight:900; color:var(--u-brand-strong); background:var(--u-brand-soft); display:inline-flex; padding:4px 11px; border-radius:20px; }
.stage-intro h3 { margin:12px 0 0; font-size:clamp(21px,2.4vw,27px); font-weight:900; color:var(--u-ink); line-height:1.3; }
.stage-intro .stage-def { margin-top:12px; font-size:16px; line-height:1.85; color:var(--u-ink-2); }
.stage-intro .stage-def b { color:var(--u-ink); font-weight:900; }
.stage-intro .stage-tag { margin-top:14px; }
.stage-intro .stage-tip { margin-top:16px; font-size:13.5px; background:var(--u-figjam-soft); border-left:3px solid var(--u-figjam); border-radius:0 8px 8px 0; padding:11px 14px; color:var(--u-ink-2); }
.stage-intro .stage-tip b { display:block; font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--u-figjam); margin-bottom:3px; }
.stage-interactive { background:var(--u-paper); border:1.5px solid var(--u-line); border-radius:18px; padding:clamp(18px,3vw,28px); box-shadow:0 1px 0 var(--u-line), 0 26px 50px -38px rgba(10,20,20,.35); }
.stage-interactive .si-label { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10.5px; color:var(--u-ink-3); text-transform:uppercase; letter-spacing:.06em; display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.stage-interactive .si-label::before { content:"◆"; color:var(--u-brand); }
@media (max-width:991px) { .stage-grid { grid-template-columns:1fr; gap:20px; } }

/* ---------- Chip 多選 ---------- */
.chip-select { display:flex; flex-wrap:wrap; gap:8px; }
.chip-select button { appearance:none; border:1.5px solid var(--u-line); background:#fff; color:var(--u-ink-2); border-radius:999px; padding:9px 15px; font:600 13.5px/1.3 inherit; font-family:inherit; cursor:pointer; text-align:left; transition:all .18s; }
.chip-select button:hover { border-color:var(--u-brand); }
.chip-select button[aria-pressed="true"] { background:var(--u-brand); border-color:var(--u-brand); color:#fff; font-weight:700; }

/* ---------- 即時產出結果卡 ---------- */
.builder-output { margin-top:18px; background:var(--u-brand-soft); border:1.5px dashed var(--u-brand); border-radius:14px; padding:16px 18px; min-height:64px; }
.builder-output .bo-tag { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10.5px; font-weight:700; color:var(--u-brand-strong); text-transform:uppercase; letter-spacing:.05em; display:flex; align-items:center; gap:6px; }
.builder-output .bo-tag::before { content:"✓"; width:16px; height:16px; border-radius:50%; background:var(--u-brand); color:#fff; font-size:10px; display:grid; place-items:center; }
.builder-output .bo-text { margin-top:8px; font-size:15.5px; line-height:1.75; color:var(--u-ink); font-weight:600; }
.builder-output .bo-empty { color:var(--u-ink-3); font-weight:400; font-style:normal; }

/* ---------- 對話卡（Figma Agent / FigJam AI） ---------- */
.chat-row { display:flex; gap:14px; flex-wrap:wrap; margin-top:18px; }
.chat-card { flex:1 1 300px; min-width:260px; border-radius:14px; overflow:hidden; background:var(--u-paper); border:1px solid var(--u-line); }
.chat-card .cbar { display:flex; align-items:center; gap:8px; padding:10px 14px; font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:11px; color:#fff; }
.chat-card .cbar .dot { width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.85; }
.chat-card.agent .cbar { background:var(--u-agent); }
.chat-card.figjam .cbar { background:var(--u-figjam); }
.chat-card .cbody { padding:14px 16px; display:flex; flex-direction:column; gap:9px; }
.chat-card .bubble { max-width:94%; font-size:13.5px; line-height:1.65; padding:9px 12px; border-radius:10px; }
.chat-card .bubble.user { align-self:flex-end; background:var(--u-ink); color:#fff; border-bottom-right-radius:3px; }
.chat-card .bubble.reply { align-self:flex-start; background:#f1f0f6; color:var(--u-ink); border-bottom-left-radius:3px; }
.chat-card.figjam .bubble.reply { background:var(--u-figjam-soft); }
.chat-card .ccap { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10.5px; color:var(--u-ink-3); padding:0 16px 14px; }

/* ---------- 提醒卡 ---------- */
.ui05-alert { font-size:14px; background:#fdece5; border-left:3px solid var(--u-warn); border-radius:0 10px 10px 0; padding:13px 16px; margin-top:18px; color:var(--u-ink-2); }
.ui05-alert b { color:var(--u-warn); font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10px; text-transform:uppercase; letter-spacing:.05em; display:block; margin-bottom:4px; }
.ui05-notes-grid { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:701px) { .ui05-notes-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; } }
.ui05-note { font-size:14px; background:var(--u-brand-soft); border-radius:10px; padding:13px 16px; margin-top:16px; color:var(--u-ink-2); }
.ui05-notes-grid .ui05-note { margin-top:0; height:100%; }
.ui05-note b { color:var(--u-brand-strong); font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10px; text-transform:uppercase; letter-spacing:.05em; display:block; margin-bottom:4px; }

/* ---------- 案例蒐集：外部資源連結 ---------- */
.stage-links { margin-top:16px; display:grid; gap:8px; }
.stage-links .sl-label { font-size:11px; font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; text-transform:uppercase; letter-spacing:.05em; color:var(--u-ink-3); margin-bottom:2px; }
.stage-links .sl-item { display:flex; align-items:center; gap:10px; padding:10px 13px; border-radius:10px; background:var(--u-paper); border:1px solid var(--u-line); color:var(--u-ink) !important; font-size:13px; line-height:1.5; transition:border-color .18s, transform .18s; }
.stage-links .sl-item:hover { border-color:var(--u-brand-strong); transform:translateX(2px); }
.stage-links .sl-item i:first-child { flex:none; width:20px; text-align:center; color:var(--u-brand-strong); font-size:15px; }
.stage-links .sl-item span { flex:1; }
.stage-links .sl-item i:last-child { flex:none; font-size:12px; color:var(--u-ink-3); }

/* ---------- 分頁切換 ---------- */
.ui05-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.ui05-tabs button { appearance:none; border:1.5px solid var(--u-line); background:#fff; color:var(--u-ink-2); border-radius:12px; padding:10px 15px; font:700 13.5px/1.3 inherit; font-family:inherit; cursor:pointer; text-align:left; flex:1 1 150px; }
.ui05-tabs button small { display:block; font-weight:500; font-size:11px; opacity:.65; margin-top:2px; }
.ui05-tabs button[aria-selected="true"] { background:var(--u-ink); color:#fff; border-color:var(--u-ink); }
.ui05-tabpanel[hidden] { display:none; }
.ui05-tabpanel { margin-top:16px; }

/* ---------- 使用者卡片（設定使用者） ---------- */
.user-card { border:1.5px solid var(--u-line); border-radius:14px; padding:18px 20px; background:#fbfffe; }
.user-card .uc-top { display:flex; align-items:center; gap:12px; }
.user-card .uc-avatar { width:46px; height:46px; border-radius:50%; background:var(--u-brand); color:#fff; display:grid; place-items:center; font-weight:900; font-size:16px; flex:none; }
.user-card .uc-avatar svg { width:26px; height:26px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.user-card .uc-avatar.buyer { background:var(--u-agent); }
.user-card b { font-size:16px; }
.user-card .uc-role { font-size:12px; color:var(--u-ink-3); }
.user-card dl { margin:14px 0 0; display:grid; gap:8px; }
.user-card dl div { display:grid; grid-template-columns:76px 1fr; gap:10px; font-size:13.5px; }
.user-card dt { color:var(--u-ink-3); font-weight:700; }
.user-card dd { margin:0; color:var(--u-ink); }

/* ---------- 詞彙地圖：可展開的詞彙卡片＋全部展開／收合 ---------- */
.term-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.term-toolbar .si-label { margin-bottom:0 !important; }
.wall-toggle-all { appearance:none; border:1.5px solid var(--u-brand); background:#fff; color:var(--u-brand-strong); border-radius:999px; padding:6px 14px; font:700 12px/1 inherit; font-family:inherit; cursor:pointer; white-space:nowrap; }
.wall-toggle-all:hover { background:var(--u-brand-soft); }
.quote-wall details.quote-card { padding:0; cursor:default; }
.quote-wall details.quote-card summary { cursor:pointer; list-style:none; padding:12px 14px; }
.quote-wall details.quote-card summary::-webkit-details-marker { display:none; }
.term-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.term-head cite { font-style:normal; font-size:10.5px; color:var(--u-ink-3); flex:none; }
.term-short { margin:5px 0 0; font-size:12.5px; line-height:1.6; color:var(--u-ink-2); font-weight:400; }
.term-more { display:inline-block; margin-top:9px; font-size:11px; font-weight:700; color:var(--u-brand-strong); font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; }
.term-more::before { content:"＋ 更多說明"; }
.quote-wall details.quote-card[open] .term-more::before { content:"− 收起說明"; }
.term-body { padding:0 14px 14px; font-size:12.5px; line-height:1.75; color:var(--u-ink-2); border-top:1px dashed var(--u-line); margin-top:10px; padding-top:11px; }

/* ---------- 痛點分析：可篩選語錄牆 ---------- */
.quote-filter { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.quote-filter button { appearance:none; border:1.5px solid var(--u-line); background:#fff; border-radius:999px; padding:7px 13px; font:700 12.5px/1 inherit; font-family:inherit; color:var(--u-ink-2); cursor:pointer; display:flex; align-items:center; gap:6px; }
.quote-filter button .n { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; background:var(--u-bg); border-radius:10px; padding:1px 6px; font-size:11px; }
.quote-filter button[aria-pressed="true"] { background:var(--u-ink); border-color:var(--u-ink); color:#fff; }
.quote-filter button[aria-pressed="true"] .n { background:rgba(255,255,255,.2); color:#fff; }
.quote-wall { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.quote-card { border:1px solid var(--u-line); border-radius:12px; padding:12px 14px; font-size:13px; line-height:1.6; background:#fbfffe; transition:opacity .2s; }
.quote-card cite { display:block; margin-top:7px; font-style:normal; font-size:11px; color:var(--u-ink-3); }
.quote-card[hidden] { display:none; }
@media (max-width:600px) { .quote-wall { grid-template-columns:1fr; } }

/* ---------- MVP 優先矩陣 ---------- */
.matrix-wrap { display:grid; grid-template-columns:32px 1fr; gap:8px; }
.matrix-yaxis { display:flex; align-items:center; justify-content:center; writing-mode:vertical-rl; transform:rotate(180deg); font-size:11.5px; color:var(--u-ink-3); font-weight:700; }
.matrix { position:relative; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:8px; aspect-ratio:1.5/1; background:var(--u-bg); border-radius:14px; padding:8px; }
.matrix-quad { border-radius:10px; background:rgba(255,255,255,.6); border:1px dashed var(--u-line); position:relative; padding:6px 8px; }
.matrix-quad .ql { position:absolute; top:6px; left:8px; font-size:10px; color:var(--u-ink-3); font-weight:700; }
.matrix-quad.q-p0 { background:var(--u-brand-soft); }
.matrix-xaxis { display:flex; justify-content:space-between; font-size:11.5px; color:var(--u-ink-3); font-weight:700; padding:0 4px; margin-top:4px; grid-column:2; }
.feature-chip { position:relative; display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; background:#fff; border:1.5px solid var(--u-line); border-radius:999px; padding:5px 10px 5px 8px; cursor:pointer; margin:20px 4px 0; }
.feature-chip input { margin:0; accent-color:var(--u-brand); }
.feature-chip[data-on="true"] { border-color:var(--u-brand); background:var(--u-brand-soft); }
.mvp-list { margin-top:16px; display:grid; gap:8px; }
.mvp-list .mi { display:flex; align-items:center; gap:10px; font-size:13.5px; background:#fbfffe; border:1px solid var(--u-line); border-radius:10px; padding:9px 12px; }
.mvp-list .mi .pb { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10px; font-weight:900; padding:2px 7px; border-radius:6px; flex:none; }
.mvp-list .mi .pb.p0 { background:var(--u-brand); color:#fff; }
.mvp-list .mi .pb.p1 { background:#eef0f1; color:var(--u-ink-2); }
.mvp-empty { font-size:13px; color:var(--u-ink-3); }

/* ---------- 資訊架構樹 ---------- */
.ia-tree { display:grid; gap:8px; }
.ia-tree details { border:1px solid var(--u-line); border-radius:12px; background:#fbfffe; overflow:hidden; }
.ia-tree summary { cursor:pointer; list-style:none; padding:12px 14px; display:flex; align-items:center; gap:10px; font-weight:700; font-size:14px; }
.ia-tree summary::-webkit-details-marker { display:none; }
.ia-tree summary::before { content:"+"; width:22px; height:22px; border-radius:50%; background:var(--u-brand-soft); color:var(--u-brand-strong); display:grid; place-items:center; font-size:14px; flex:none; transition:transform .2s; }
.ia-tree details[open] summary::before { transform:rotate(45deg); }
.ia-tree .ia-body { padding:0 14px 14px 46px; display:grid; gap:6px; }
.ia-tree .ia-body .ia-child { font-size:13px; color:var(--u-ink-2); background:var(--u-bg); border-radius:8px; padding:8px 11px; }
.ia-tree .ia-root > summary { background:var(--u-ink); color:#fff; }
.ia-tree .ia-root > summary::before { background:rgba(255,255,255,.2); color:#fff; }

/* ---------- 同理心地圖 2x2 ---------- */
.empathy-quad { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.empathy-quad details { border:1.5px solid var(--u-line); border-radius:12px; overflow:hidden; background:#fbfffe; }
.empathy-quad summary { cursor:pointer; list-style:none; padding:12px 13px; font-weight:900; font-size:13.5px; display:flex; align-items:center; justify-content:space-between; color:var(--u-brand-strong); }
.empathy-quad summary::-webkit-details-marker { display:none; }
.empathy-quad summary::after { content:"點看內容"; font-size:10.5px; font-weight:500; color:var(--u-ink-3); font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; }
.empathy-quad details[open] summary::after { content:"收起"; }
.empathy-quad .eq-body { padding:0 13px 13px; font-size:12.5px; line-height:1.65; color:var(--u-ink-2); }
@media (max-width:520px) { .empathy-quad { grid-template-columns:1fr; } }

/* ---------- 故事地圖 backbone ---------- */
.storymap-tabs { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(96px,1fr); gap:6px; overflow-x:auto; }
.storymap-tabs button { appearance:none; border:1.5px solid var(--u-line); background:#fff; border-radius:10px; padding:10px 8px; font:700 12px/1.3 inherit; font-family:inherit; color:var(--u-ink-2); cursor:pointer; text-align:center; }
.storymap-tabs button[aria-selected="true"] { background:var(--u-brand); border-color:var(--u-brand); color:#fff; }
.storymap-rows { margin-top:16px; display:grid; gap:10px; }
.sm-row { display:grid; grid-template-columns:92px 1fr; gap:10px; align-items:start; }
.sm-row .sm-label { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10.5px; font-weight:700; padding-top:10px; color:var(--u-ink-3); }
.sm-row.mvp .sm-label { color:var(--u-brand-strong); }
.sm-cards { display:flex; flex-wrap:wrap; gap:8px; }
.sm-card { font-size:12.5px; border-radius:10px; padding:9px 12px; background:#eef0f1; color:var(--u-ink-2); border:1px solid var(--u-line); }
.sm-row.mvp .sm-card { background:var(--u-brand-soft); color:var(--u-ink); border-color:var(--u-brand); font-weight:700; }

/* ---------- 旅程圖：stepper + 情緒曲線 ---------- */
.journey-curve { width:100%; height:120px; margin-bottom:6px; }
.journey-curve .jc-line { fill:none; stroke:var(--u-line); stroke-width:3; }
.journey-curve .jc-dot { fill:var(--u-ink-3); transition:all .3s; }
.journey-curve .jc-dot.on { fill:var(--u-brand); r:7; }
.stepper { margin-top:6px; }
.stepper-dots { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
.stepper-dots button { width:30px; height:30px; border-radius:50%; border:1.5px solid var(--u-line); background:#fff; color:var(--u-ink-3); font:700 12px/1 "JetBrains Mono",ui-monospace,monospace; cursor:pointer; display:grid; place-items:center; }
.stepper-dots button[aria-pressed="true"] { background:var(--u-brand); border-color:var(--u-brand); color:#fff; }
.stepper-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.stepper-panel .sp-col .k { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:10.5px; color:var(--u-ink-3); text-transform:uppercase; letter-spacing:.05em; }
.stepper-panel .sp-col .v { margin-top:6px; font-size:14px; color:var(--u-ink); font-weight:700; line-height:1.5; }
.stepper-nav { display:flex; justify-content:space-between; margin-top:18px; }
.stepper-nav button { border:1.5px solid var(--u-ink); background:#fff; color:var(--u-ink); border-radius:8px; padding:8px 16px; font:700 13px/1 inherit; font-family:inherit; cursor:pointer; }
.stepper-nav button:disabled { opacity:.3; cursor:default; }

/* ---------- 流程圖建構器 ---------- */
.flowbuild-nodes { display:flex; flex-direction:column; gap:0; }
.fb-node { display:flex; align-items:center; gap:12px; opacity:0; max-height:0; overflow:hidden; transition:opacity .35s, max-height .35s; }
.fb-node.shown { opacity:1; max-height:200px; margin-bottom:6px; }
.fb-node .fb-shape { flex:none; min-width:150px; text-align:center; padding:10px 14px; border-radius:10px; font-size:13px; font-weight:700; background:#fff; border:1.5px solid var(--u-ink); }
.fb-node .fb-shape.decision { border-radius:8px; background:var(--u-figjam-soft); border-color:var(--u-figjam); }
.fb-node .fb-shape.end { border-radius:999px; background:var(--u-ink); color:#fff; border-color:var(--u-ink); }
.fb-node .fb-desc { font-size:12.5px; color:var(--u-ink-3); }
.fb-arrow { height:22px; margin-left:74px; color:var(--u-line); font-size:16px; opacity:0; transition:opacity .3s; }
.fb-arrow.shown { opacity:1; color:var(--u-brand); }
.flowbuild-ctrl { display:flex; gap:10px; margin-top:14px; align-items:center; }
.flowbuild-ctrl button { border:1.5px solid var(--u-ink); background:var(--u-ink); color:#fff; border-radius:8px; padding:9px 18px; font:700 13.5px/1 inherit; font-family:inherit; cursor:pointer; }
.flowbuild-ctrl button:disabled { opacity:.35; cursor:default; }
.flowbuild-ctrl button.ghost { background:#fff; color:var(--u-ink); }
.flowbuild-ctrl .fb-progress { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:12px; color:var(--u-ink-3); }

/* ---------- 期中作業檢核清單 ---------- */
.checklist-band { background:var(--u-ink); color:#fff; border-radius:22px; padding:clamp(24px,4vw,40px); margin-top:22px; }
.checklist-progress { display:flex; align-items:center; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.checklist-progress .bar { flex:1 1 220px; height:10px; border-radius:999px; background:rgba(255,255,255,.15); overflow:hidden; }
.checklist-progress .bar > span { display:block; height:100%; width:0%; background:var(--u-brand); border-radius:999px; transition:width .4s cubic-bezier(.2,.8,.2,1); }
.checklist-progress .pct { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:14px; font-weight:700; color:var(--u-brand); white-space:nowrap; }
.checklist-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.check-item { display:flex; align-items:flex-start; gap:12px; background:rgba(255,255,255,.06); border-radius:12px; padding:13px 15px; cursor:pointer; transition:background .2s; }
.check-item:hover { background:rgba(255,255,255,.1); }
.check-item input { margin-top:3px; width:18px; height:18px; accent-color:var(--u-brand); flex:none; }
.check-item .ct { font-size:14px; line-height:1.5; }
.check-item .ct b { display:block; font-size:14.5px; }
.check-item .ct span { display:block; font-size:12px; color:rgba(255,255,255,.6); margin-top:2px; }
.check-item.done .ct b { text-decoration:line-through; opacity:.55; }
.checklist-reset { margin-top:16px; background:transparent; border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:8px; padding:7px 14px; font-size:12.5px; cursor:pointer; }

/* ---------- 下載／銜接連結卡 ---------- */
.dl-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:22px; }
.dl { display:grid; grid-template-columns:46px 1fr auto; gap:14px; align-items:center; padding:16px 18px; border-radius:14px; background:var(--u-paper); color:var(--u-ink) !important; box-shadow:0 1px 0 var(--u-line), 0 16px 30px -22px rgba(18,19,22,.3); transition:transform .22s; }
.dl:hover { transform:translateY(-3px); }
.dl .ic { width:44px; height:44px; border-radius:10px; background:var(--u-bg); display:grid; place-items:center; font-size:18px; color:var(--u-brand-strong); }
.dl b { font-size:14.5px; line-height:1.4; }
.dl small { display:block; font-size:12px; color:var(--u-ink-3); font-weight:400; margin-top:2px; }
.dl .go { font-size:17px; color:var(--u-ink-3); }

/* ---------- 互動細節：selection-box 標註（呼應 Figma 選取框） ---------- */
.sel { position:relative; display:inline-block; padding:0 .08em; outline:2px solid var(--u-select); outline-offset:3px; background:var(--u-select-soft); border-radius:2px; }
.sel i { position:absolute; width:8px; height:8px; background:var(--u-paper); border:2px solid var(--u-select); }
.sel i:nth-child(1) { left:-7px; top:-7px; }
.sel i:nth-child(2) { right:-7px; top:-7px; }
.sel i:nth-child(3) { left:-7px; bottom:-7px; }
.sel i:nth-child(4) { right:-7px; bottom:-7px; }
.sel .dim { position:absolute; left:50%; bottom:-28px; transform:translateX(-50%); background:var(--u-select); color:#fff; font:600 11px var(--u-font-mono); padding:2px 7px; border-radius:4px; white-space:nowrap; letter-spacing:0; }
@media (max-width:680px) { .sel .dim { display:none; } }

/* ---------- 卡片 hover-glow：滑鼠移入時亮邊框，呼應 Figma 選取物件的視覺回饋 ---------- */
.ui05-note, .case-chip, .dl, .stage-pills a, .quote-card, .chat-card, .term-body, .sm-card, .user-card, .wf-screen-card, .stage-links .sl-item {
	transition: outline-color .2s, box-shadow .2s, transform .2s;
	outline: 1.5px solid transparent;
	outline-offset: -1.5px;
}
.ui05-note:hover { outline-color: var(--u-select); }
.ui05-note.agent:hover { outline-color: var(--u-agent); }
.case-chip:hover { box-shadow: 0 18px 36px -18px rgba(10,186,181,.55); transform: translateY(-2px); }
.dl:hover { outline-color: var(--u-select); }
.quote-card:hover, .chat-card:hover, .term-body:hover, .sm-card:hover, .user-card:hover, .wf-screen-card:hover { outline-color: var(--u-select); }
.stage-links .sl-item:hover { outline-color: var(--u-select); }

/* ---------- Frame 標籤：頁內小節前綴一個 eyebrow 式的迷你標記 ---------- */
.ui05-eyebrow { display:inline-flex; align-items:center; gap:6px; font-family: var(--u-font-mono); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--u-select); }
.ui05-eyebrow::before { content:""; width:6px; height:6px; border-radius:1px; background: var(--u-select); }

/* ---------- 課後作業卡 ---------- */
.hw-card { background: var(--u-ink); color: #fff; border-radius: 22px; padding: clamp(24px,4vw,40px); margin-top: 8px; }
.hw-card h4 { font-size: 19px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.hw-card ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.hw-card li { font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,.88); }
.hw-card li::marker { color: var(--u-brand); font-weight: 900; }
.hw-card a { color: var(--u-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hw-card a:hover { color: #fff; }

/* =========================================================
   Wireframe 手機畫面模擬器：純 HTML/CSS 灰階線框元件
   同一套 .wfx-* 元件，會被「一頁一頁的畫面走讀」與「Prototype 模擬器」共用
   （Prototype 那邊用 JS 把這裡的畫面 clone 過去，加上可點的熱點）
   ========================================================= */
:root {
	--wf-ink: #33383E;
	--wf-ink-2: #7A8087;
	--wf-line: #C2C7CD;
	--wf-mid: #DEE1E5;
	--wf-fill: #EFF1F3;
	--wf-dark: #22262B;
}
.wf-phone-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; }
.wf-phone { width:100%; max-width:250px; background:#101214; border-radius:32px; padding:9px; box-shadow:0 24px 48px -22px rgba(10,20,20,.45); }
.wf-phone-inner { background:#fff; border-radius:24px; overflow:hidden; position:relative; aspect-ratio:9/19; display:flex; flex-direction:column; }
.wf-statusbar { flex:none; height:26px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; font:700 9.5px/1 "JetBrains Mono",ui-monospace,Menlo,monospace; color:var(--wf-ink); }
.wf-statusbar .wf-sb-dots { display:flex; gap:3px; }
.wf-statusbar .wf-sb-dots span { width:3px; height:3px; border-radius:50%; background:var(--wf-ink); display:block; }
.wf-screen { flex:1; min-height:0; position:relative; background:#fff; overflow:hidden; }
.wf-screen-pad { height:100%; overflow-y:auto; padding:12px 12px 10px; display:flex; flex-direction:column; gap:9px; box-sizing:border-box; }
.wf-screen-pad::-webkit-scrollbar { display:none; }

.wfx-topbar { flex:none; display:flex; align-items:center; gap:8px; padding-bottom:8px; border-bottom:1px solid var(--wf-mid); }
.wfx-back { width:20px; height:20px; border:1.4px solid var(--wf-line); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; color:var(--wf-ink-2); flex:none; background:#fff; }
.wfx-title { font:700 12px/1.2 "Noto Sans TC","PingFang TC",sans-serif; color:var(--wf-ink); flex:1; }
.wfx-icon { width:18px; height:18px; border-radius:5px; background:var(--wf-fill); border:1.4px solid var(--wf-line); flex:none; }
.wfx-line { height:7px; background:var(--wf-mid); border-radius:3px; }
.wfx-line.w20 { width:20%; } .wfx-line.w30 { width:30%; } .wfx-line.w40 { width:40%; }
.wfx-line.w50 { width:50%; } .wfx-line.w60 { width:60%; } .wfx-line.w70 { width:70%; }
.wfx-line.w80 { width:80%; } .wfx-line.w100 { width:100%; }
.wfx-line.h11 { height:11px; }
.wfx-search { flex:none; height:28px; border:1.4px solid var(--wf-line); border-radius:8px; background:var(--wf-fill); display:flex; align-items:center; padding:0 9px; gap:6px; color:var(--wf-ink-2); font-size:11px; }
.wfx-chips { flex:none; display:flex; gap:6px; overflow:hidden; }
.wfx-chip { flex:none; padding:4px 9px; border-radius:999px; border:1.4px solid var(--wf-line); font:700 9px/1.3 "Noto Sans TC","PingFang TC",sans-serif; color:var(--wf-ink-2); background:#fff; }
.wfx-chip.on { background:var(--wf-dark); border-color:var(--wf-dark); color:#fff; }
.wfx-grid2 { flex:none; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.wfx-card { border:1.4px solid var(--wf-line); border-radius:8px; overflow:hidden; background:#fff; }
.wfx-img { aspect-ratio:1/1; background:var(--wf-fill); position:relative; overflow:hidden; }
.wfx-img::before, .wfx-img::after { content:""; position:absolute; top:50%; left:50%; width:70%; height:0; border-top:1.4px solid var(--wf-line); }
.wfx-img::before { transform:translate(-50%,-50%) rotate(35deg); }
.wfx-img::after { transform:translate(-50%,-50%) rotate(-35deg); }
.wfx-card .wfx-card-body { padding:6px 7px 8px; display:flex; flex-direction:column; gap:5px; }
.wfx-btn { flex:none; height:36px; border-radius:9px; display:flex; align-items:center; justify-content:center; gap:6px; font:700 12px/1 "Noto Sans TC","PingFang TC",sans-serif; }
.wfx-btn.primary { background:var(--wf-dark); color:#fff; }
.wfx-btn.ghost { border:1.4px solid var(--wf-line); color:var(--wf-ink-2); background:#fff; }
.wfx-nav { flex:none; margin-top:auto; display:flex; border-top:1px solid var(--wf-mid); padding:7px 4px 2px; gap:2px; }
.wfx-nav-item { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; }
.wfx-nav-icon { width:16px; height:16px; border-radius:5px; background:var(--wf-fill); }
.wfx-nav-item.on .wfx-nav-icon { background:var(--wf-dark); }
.wfx-nav-item .wfx-line { width:18px; height:4px; }
.wfx-fab { position:absolute; right:12px; bottom:64px; width:40px; height:40px; border-radius:50%; background:var(--wf-dark); color:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:300; box-shadow:0 8px 16px -6px rgba(0,0,0,.4); z-index:2; }
.wfx-photo-grid { flex:none; display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.wfx-photo-slot { aspect-ratio:1/1; border:1.4px dashed var(--wf-line); border-radius:7px; display:flex; align-items:center; justify-content:center; color:var(--wf-ink-2); font-size:16px; background:#fff; }
.wfx-photo-slot.filled { border-style:solid; background:var(--wf-fill); }
.wfx-dots { flex:none; display:flex; gap:5px; justify-content:center; }
.wfx-dot { width:5px; height:5px; border-radius:50%; background:var(--wf-mid); }
.wfx-dot.on { background:var(--wf-dark); width:14px; border-radius:3px; }
.wfx-field { flex:none; display:flex; flex-direction:column; gap:4px; }
.wfx-field label { font:700 8.5px/1 "JetBrains Mono",ui-monospace,Menlo,monospace; color:var(--wf-ink-2); text-transform:uppercase; letter-spacing:.04em; }
.wfx-input { height:32px; border:1.4px solid var(--wf-line); border-radius:8px; background:#fff; padding:0 9px; display:flex; align-items:center; }
.wfx-textarea { min-height:50px; border:1.4px solid var(--wf-line); border-radius:8px; background:#fff; padding:7px 9px; display:flex; flex-direction:column; gap:5px; }
.wfx-select { height:32px; border:1.4px solid var(--wf-line); border-radius:8px; padding:0 9px; display:flex; align-items:center; justify-content:space-between; color:var(--wf-ink-2); font-size:10px; }
.wfx-badge { flex:none; display:inline-flex; align-self:flex-start; padding:3px 8px; border-radius:6px; background:var(--wf-fill); border:1px solid var(--wf-line); font:700 9.5px/1 "Noto Sans TC","PingFang TC",sans-serif; color:var(--wf-ink-2); }
.wfx-preview-card { flex:none; border:1.4px solid var(--wf-line); border-radius:10px; padding:9px; display:flex; gap:9px; }
.wfx-preview-card .wfx-img { width:56px; flex:none; border-radius:6px; }
.wfx-preview-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.wfx-center { text-align:center; }
.wfx-spacer { flex:1; }
.wfx-check-circle { flex:none; width:52px; height:52px; border-radius:50%; background:var(--wf-dark); display:flex; align-items:center; justify-content:center; margin:10px auto 0; }
.wfx-check-circle svg { width:26px; height:26px; stroke:#fff; stroke-width:2.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.wfx-h1 { flex:none; font:800 14px/1.35 "Noto Sans TC","PingFang TC",sans-serif; color:var(--wf-ink); text-align:center; }
.wfx-p { flex:none; font:500 10.5px/1.5 "Noto Sans TC","PingFang TC",sans-serif; color:var(--wf-ink-2); text-align:center; }

/* 走讀展示區：畫面旁邊列出「這一頁加了什麼」 */
.wf-walk { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:22px; align-items:start; }
.wf-walk-steps { display:grid; gap:10px; align-content:start; }
.wf-walk-step { display:flex; gap:10px; padding:11px 13px; border:1.4px solid var(--u-line); border-radius:11px; background:var(--u-paper); }
.wf-walk-step .n { flex:none; width:22px; height:22px; border-radius:50%; background:var(--u-ink); color:#fff; font:900 11px/22px "JetBrains Mono",ui-monospace,Menlo,monospace; text-align:center; }
.wf-walk-step .t { font-size:13px; line-height:1.65; color:var(--u-ink-2); }
.wf-walk-step .t b { color:var(--u-ink); font-weight:700; }
@media (max-width:900px) { .wf-walk { grid-template-columns:1fr; } .wf-phone-wrap { max-width:220px; margin:0 auto; } }

/* ---------- UI Flow 節點可點擊：跳回對應的畫面走讀 ---------- */
.fb-node { cursor:pointer; transition:transform .18s; }
.fb-node:hover { transform:translateX(3px); }
.fb-node .fb-shape { transition:outline-color .18s, box-shadow .18s; outline:1.5px solid transparent; outline-offset:-1.5px; }
.fb-node:hover .fb-shape, .fb-node:focus-visible .fb-shape { outline-color:var(--u-select); box-shadow:0 10px 22px -14px rgba(10,186,181,.5); }
.fb-node:focus-visible { outline:none; }
.fb-branch-back { margin:2px 0 2px 74px; display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--u-figjam); }
.fb-branch-back svg { flex:none; }

/* ---------- Prototype 模擬器 ---------- */
.proto-sim { display:flex; flex-direction:column; align-items:center; gap:14px; }
.proto-toolbar { width:100%; max-width:250px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.proto-current { font-family:"JetBrains Mono",ui-monospace,Menlo,monospace; font-size:11px; color:var(--u-ink-3); }
.proto-current b { color:var(--u-brand-strong); }
.proto-btns { display:flex; gap:6px; }
.proto-btns button { border:1.4px solid var(--u-line); background:#fff; color:var(--u-ink-2); border-radius:7px; padding:6px 10px; font:700 11px/1 inherit; font-family:inherit; cursor:pointer; transition:border-color .18s, color .18s; }
.proto-btns button:hover { border-color:var(--u-brand); color:var(--u-brand-strong); }
.proto-btns button.is-on { background:var(--u-ink); border-color:var(--u-ink); color:#fff; }
.proto-sim.show-hotspots #protoScreen .hotspot { outline:2px dashed #2F8FEA; outline-offset:2px; background:rgba(47,143,234,.07); border-radius:6px; }
#protoScreen .hotspot { cursor:pointer; }
.proto-hint { max-width:420px; text-align:center; font-size:12.5px; line-height:1.7; color:var(--u-ink-3); }
.proto-hint b { color:var(--u-brand-strong); }
.proto-kbd-overlay { position:absolute; left:0; right:0; bottom:0; background:#e4e7ea; border-top:1px solid var(--wf-line); padding:8px; display:grid; grid-template-columns:repeat(9,1fr); gap:4px; transform:translateY(100%); transition:transform .3s cubic-bezier(.2,.8,.2,1); z-index:5; }
.proto-kbd-overlay.is-open { transform:translateY(0); }
.proto-kbd-overlay .k { background:#fff; border-radius:4px; height:26px; box-shadow:0 1px 0 rgba(0,0,0,.08); }
.proto-kbd-overlay .k.wide { grid-column:span 3; }
.proto-kbd-done { position:absolute; right:8px; top:-28px; font:700 10px/1 "Noto Sans TC",sans-serif; color:var(--u-brand-strong); background:#fff; border:1px solid var(--u-line); border-radius:6px; padding:5px 8px; cursor:pointer; opacity:0; pointer-events:none; transition:opacity .2s; }
.proto-kbd-overlay.is-open .proto-kbd-done { opacity:1; pointer-events:auto; }
.wf-screen.kbd-open .wf-screen-pad { padding-bottom:120px; }

/* ---------- 響應式 ---------- */
@media (max-width:991px) {
	.ui05-intro { grid-template-columns:1fr; gap:26px; padding-top:36px; }
	.checklist-grid { grid-template-columns:1fr; }
	.dl-grid { grid-template-columns:1fr; }
	.matrix { aspect-ratio:1.2/1; }
}
@media (max-width:680px) {
	.ui05-wrap { padding:0 16px; }
	.ui05-stats .stat-number { font-size:28px; }
	.ui05-subnav a { padding:12px 11px 10px; font-size:12.5px; }
	.stepper-panel { grid-template-columns:1fr; }
	.fb-node .fb-shape { min-width:120px; font-size:12px; }
	.fb-arrow { margin-left:56px; }
}
@media (prefers-reduced-motion: reduce) {
	.ui05-marquee-track { animation:none; }
}
