/* demos.css — 五個示範場景的擬真畫面 */
:where(section.aj) .demo-win { position: absolute; left: 110px; right: 110px; top: 212px; height: 786px; }
:where(section.aj) .demo-win > .win { height: 100%; }
.reveal .slides section:where(.aj).demo .caption { bottom: 22px; font-size: 34px; }
.reveal .slides section:where(.aj).demo .hdr h2 { font-size: 62px; }
.reveal .slides section:where(.aj).demo .hdr { margin-bottom: 0; }

/* ===================== 5.1 OCR ===================== */
:where(section.aj) .ocr { display: flex; height: 100%; }
:where(section.aj) .ocr .viewer { width: 600px; flex: none; background: #374151; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
:where(section.aj) .ocr .imgwrap { position: relative; height: 96%; }
:where(section.aj) .ocr .imgwrap img { height: 100%; width: auto; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
:where(section.aj) .ocr .beam { position: absolute; left: -10px; right: -10px; top: 0; height: 8px; background: linear-gradient(90deg, transparent, #22D3EE, transparent); box-shadow: 0 0 24px 6px rgba(34,211,238,.55); opacity: 0; }
:where(section.aj) .ocr .imgwrap.scanning .beam { opacity: 1; animation: beam 1.6s ease-in-out 1 forwards; }
@keyframes beam { from { top: 0; } to { top: 100%; } }
:where(section.aj) .ocr .imgwrap.scanning::after { content: ''; position: absolute; inset: 0; background: rgba(34,211,238,.08); }
:where(section.aj) .ocr .hl { position: absolute; border: 3px solid #F59E0B; border-radius: 4px; box-shadow: 0 0 0 3px rgba(245,158,11,.25); opacity: 0; transform: scale(1.15); transition: all .35s ease; }
:where(section.aj) .ocr .hl.on { opacity: 1; transform: none; }
:where(section.aj) .ocr .side { flex: 1; display: flex; flex-direction: column; min-width: 0; }
:where(section.aj) .ocr .top { padding: 18px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
:where(section.aj) .ocr .top .fn { font-weight: 600; color: #374151; display: flex; gap: 8px; align-items: center; }
:where(section.aj) .ocr .top .st { margin-left: auto; color: var(--muted); font-size: 24px; }
:where(section.aj) .ocr .top .st.ok { color: var(--ok); font-weight: 700; }
:where(section.aj) .ocr .btn-ocr { background: #0EA5E9; color: #fff; }
:where(section.aj) .ocr .empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 29px; }
:where(section.aj) .ocr .empty .ic { color: #CBD5E1; }
:where(section.aj) .ocr .fields { flex: 1; overflow: hidden; padding: 6px 26px; display: none; }
:where(section.aj) .ocr.result .empty { display: none; }
:where(section.aj) .ocr.result .fields { display: block; }
:where(section.aj) .ocr .fields table { width: 100%; border-collapse: collapse; font-size: 22px; }
:where(section.aj) .ocr .fields th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); font-size: 21px; }
:where(section.aj) .ocr .fields td { padding: 3px 10px; border-bottom: 1px solid #F1F5F9; }
:where(section.aj) .ocr .fields td.k { color: #374151; width: 240px; }
:where(section.aj) .ocr .fields td.v { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
:where(section.aj) .ocr .fields td.cf { width: 90px; text-align: right; color: var(--ok); font-size: 20px; }
:where(section.aj) .ocr .fields tr { opacity: .25; transition: opacity .3s ease; }
:where(section.aj) .ocr .fields tr.on { opacity: 1; }
:where(section.aj) .ocr .foot { padding: 14px 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; opacity: 0; transition: opacity .4s ease; }
:where(section.aj) .ocr .foot.on { opacity: 1; }
:where(section.aj) .ocr .foot .sum { margin-right: auto; color: var(--ok); font-weight: 700; font-size: 26px; }

/* ===================== 5.2 銀行函證清洗（照真工具） ===================== */
:where(section.aj) .bcc { height: 100%; overflow: hidden; background: #f0f2f5; color: #333; display: flex; flex-direction: column; }
:where(section.aj) .bcc h1 { text-align: center; margin: 14px 0 8px; font-size: 32px; color: #1a365d; font-weight: 700; }
:where(section.aj) .bcc .container { padding: 0 22px 14px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; }
:where(section.aj) .bcc .upload-section { background: #fff; border-radius: 12px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: all .5s ease; flex: none; }
:where(section.aj) .bcc.compact .upload-section { padding: 12px 24px; }
:where(section.aj) .bcc .drop-zone { border: 2px dashed #a0aec0; border-radius: 8px; padding: 30px; text-align: center; background: #fafbfc; transition: all .4s ease; }
:where(section.aj) .bcc .drop-zone.drag-over { border-color: #3182ce; background: #ebf8ff; }
:where(section.aj) .bcc .drop-zone p { font-size: 20px; color: #718096; margin: 0 0 6px; }
:where(section.aj) .bcc .drop-zone .hint { font-size: 16px; color: #a0aec0; }
:where(section.aj) .bcc.compact .drop-zone { padding: 6px; }
:where(section.aj) .bcc.compact .drop-zone .hint { display: none; }
:where(section.aj) .bcc .file-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
:where(section.aj) .bcc .file-tag { display: inline-flex; align-items: center; gap: 6px; background: #edf2f7; border-radius: 6px; padding: 5px 12px; font-size: 17px; animation: tagIn .45s ease both; }
:where(section.aj) .bcc .file-tag .remove { color: #e53e3e; font-weight: bold; }
@keyframes tagIn { from { opacity: 0; transform: translateY(-40px) scale(.8); } to { opacity: 1; transform: none; } }
:where(section.aj) .bcc .actions { display: flex; gap: 12px; margin-top: 12px; align-items: center; }
:where(section.aj) .bcc .b { padding: 9px 26px; border: none; border-radius: 8px; font-size: 18px; font-weight: 600; color: #fff; display: inline-block; }
:where(section.aj) .bcc .b-primary { background: #3182ce; }
:where(section.aj) .bcc .b-primary.dis { background: #a0aec0; }
:where(section.aj) .bcc .b-success { background: #38a169; }
:where(section.aj) .bcc .b-danger { background: #e53e3e; }
:where(section.aj) .bcc .status { font-size: 17px; color: #4a5568; margin-left: 6px; }
:where(section.aj) .bcc .status.success { color: #38a169; font-weight: 600; }
:where(section.aj) .bcc .preview-section { background: #fff; border-radius: 12px; padding: 14px 22px; box-shadow: 0 2px 8px rgba(0,0,0,.08); flex: 1; min-height: 0; overflow: hidden; display: none; flex-direction: column; }
:where(section.aj) .bcc.compact .preview-section { display: flex; }
:where(section.aj) .bcc .tabs { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 12px; flex: none; }
:where(section.aj) .bcc .tab { padding: 8px 22px; font-size: 18px; font-weight: 600; color: #718096; border-bottom: 3px solid transparent; margin-bottom: -2px; }
:where(section.aj) .bcc .tab.active { color: #3182ce; border-bottom-color: #3182ce; }
:where(section.aj) .bcc .tab-content { display: none; }
:where(section.aj) .bcc .tab-content.active { display: block; }
:where(section.aj) .bcc table { width: 100%; border-collapse: collapse; font-size: 16px; }
:where(section.aj) .bcc th { background: #2d3748; color: #fff; padding: 6px 6px; text-align: center; white-space: nowrap; border: 1px solid #4a5568; font-weight: 600; }
:where(section.aj) .bcc th.sub { background: #4A5568; }
:where(section.aj) .bcc td { padding: 5px 8px; border: 1px solid #e2e8f0; white-space: nowrap; }
:where(section.aj) .bcc tr:nth-child(even) td { background: #f7fafc; }
:where(section.aj) .bcc td.num { text-align: right; font-variant-numeric: tabular-nums; }
:where(section.aj) .bcc td.center { text-align: center; }
:where(section.aj) .bcc tr.total-row td { font-weight: bold; background: #edf2f7 !important; border-top: 2px solid #2d3748; }
:where(section.aj) .bcc tbody tr { opacity: 0; transform: translateY(-6px); transition: all .35s ease; }
:where(section.aj) .bcc tbody tr.on { opacity: 1; transform: none; }
:where(section.aj) .bcc .note { font-size: 15px; color: #718096; margin-top: 8px; }

/* ===================== 5.3 財簽檢查（照真 webapp） ===================== */
:where(section.aj) .fck { height: 100%; background: #eef1f6; color: #1f2a37; font-size: 22px; display: flex; flex-direction: column; overflow: hidden; }
:where(section.aj) .fck header { background: linear-gradient(180deg,#1e293b,#27405e); color: #fff; padding: 12px 22px; display: flex; align-items: center; gap: 12px; flex: none; }
:where(section.aj) .fck header h1 { font-size: 26px; margin: 0; font-weight: 600; letter-spacing: .5px; color: #fff; }
:where(section.aj) .fck header .sub { color: #aebbce; font-size: 18px; }
:where(section.aj) .fck .wrap { padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
:where(section.aj) .fck .card { background: #fff; border: 1px solid #e1e6ef; border-radius: 12px; padding: 10px 18px; transition: all .5s ease; flex: none; }
:where(section.aj) .fck .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(section.aj) .fck.compact .grid { grid-template-columns: repeat(4, 1fr); }
:where(section.aj) .fck .field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 21px; }
:where(section.aj) .fck .field label .req { color: #d23f3f; }
:where(section.aj) .fck .field label .opt { color: #6b7280; font-weight: 400; font-size: 17px; }
:where(section.aj) .fck .field .fi { border: 1px dashed #b9c2d0; border-radius: 8px; padding: 8px 12px; background: #fbfcfe; font-size: 20px; color: #6b7280; min-height: 46px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; transition: all .3s ease; }
:where(section.aj) .fck .field .fi.has { color: #1f2a37; border-style: solid; border-color: #93c5fd; background: #eff6ff; font-weight: 600; }
:where(section.aj) .fck .field .hint { font-size: 17px; color: #6b7280; margin-top: 3px; }
:where(section.aj) .fck.compact .field .hint { display: none; }
:where(section.aj) .fck .actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
:where(section.aj) .fck .btn2 { background: #2563eb; color: #fff; border-radius: 8px; padding: 9px 20px; font-size: 22px; font-weight: 600; display: inline-block; }
:where(section.aj) .fck .btn2.ghost { background: #eef1f5; color: #1f2a37; }
:where(section.aj) .fck .fstatus { font-size: 21px; color: #6b7280; }
:where(section.aj) .fck .fstatus.ok { color: #0f9d58; font-weight: 700; }
:where(section.aj) .fck .result { display: none; flex: 1; min-height: 0; flex-direction: column; }
:where(section.aj) .fck.compact .result { display: flex; }
:where(section.aj) .fck .tabs { display: flex; gap: 6px; border-bottom: 2px solid #e1e6ef; }
:where(section.aj) .fck .tab { padding: 8px 16px; border: 1px solid #e1e6ef; border-bottom: none; border-radius: 9px 9px 0 0; background: #f3f6fa; font-size: 21px; font-weight: 600; color: #6b7280; position: relative; top: 2px; }
:where(section.aj) .fck .tab.active { background: #fff; color: #1d3a5f; }
:where(section.aj) .fck .tab .badge { display: inline-block; margin-left: 7px; font-size: 17px; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
:where(section.aj) .fck .tab .badge.ok { background: #e8f6ee; color: #0f9d58; }
:where(section.aj) .fck .tab .badge.bad { background: #fdecec; color: #d23f3f; }
:where(section.aj) .fck .framebox { background: #fff; border: 1px solid #e1e6ef; border-radius: 0 12px 12px 12px; flex: 1; min-height: 0; overflow: hidden; padding: 8px 18px; }
:where(section.aj) .fck .pane { display: none; }
:where(section.aj) .fck .pane.active { display: block; }
:where(section.aj) .fck .finding { display: flex; gap: 14px; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: #fdf6e3; border: 1px solid #f0e0b0; color: #7a5b00; font-size: 21px; opacity: 0; transform: translateY(-6px); transition: all .35s ease; }
:where(section.aj) .fck .finding.on { opacity: 1; transform: none; }
:where(section.aj) .fck .finding.err { background: #fdecec; border-color: #f5c2c2; color: #a12727; }
:where(section.aj) .fck .finding .loc { font-weight: 700; white-space: nowrap; }
:where(section.aj) .fck table { width: 100%; border-collapse: collapse; font-size: 20px; }
:where(section.aj) .fck th { background: #f3f6fa; padding: 8px; text-align: left; border-bottom: 2px solid #e1e6ef; }
:where(section.aj) .fck th.num { text-align: right; }
:where(section.aj) .fck td { padding: 3px 8px; border-bottom: 1px solid #eef1f6; }
:where(section.aj) .fck td.num { text-align: right; font-variant-numeric: tabular-nums; }
:where(section.aj) .fck tr.bad td { background: #fdecec; color: #a12727; font-weight: 600; }
:where(section.aj) .fck .ok-line { color: #0f9d58; font-weight: 700; margin: 2px 0 6px; font-size: 22px; }

/* ===================== 5.4a 發票精靈（桌面軟體） ===================== */
:where(section.aj) .inv { height: 100%; display: flex; flex-direction: column; background: #F0F0F0; font-size: 24px; color: #222; position: relative; }
:where(section.aj) .inv .menubar { background: #fff; border-bottom: 1px solid #ccc; padding: 6px 14px; display: flex; gap: 28px; font-size: 22px; color: #333; }
:where(section.aj) .inv .body { flex: 1; display: flex; min-height: 0; padding: 12px; gap: 12px; }
:where(section.aj) .inv .panel { background: #fff; border: 1px solid #c8c8c8; display: flex; flex-direction: column; min-height: 0; position: relative; }
:where(section.aj) .inv .panel .ph { background: #E8EEF7; border-bottom: 1px solid #c8c8c8; padding: 6px 12px; font-weight: 700; font-size: 23px; }
:where(section.aj) .inv .left { width: 500px; flex: none; }
:where(section.aj) .inv .co { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #eee; font-size: 23px; }
:where(section.aj) .inv .co .cb { width: 24px; height: 24px; border: 1px solid #666; border-radius: 3px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex: none; }
:where(section.aj) .inv .co.checked .cb { background: #1976D2; border-color: #1976D2; }
:where(section.aj) .inv .co.checked .cb::after { content: '✓'; }
:where(section.aj) .inv .co .st { margin-left: auto; font-size: 20px; color: #888; }
:where(section.aj) .inv .co .st.ok { color: #2E7D32; font-weight: 700; }
:where(section.aj) .inv .co .st.run { color: #1976D2; font-weight: 700; }
:where(section.aj) .inv .right { flex: 1; }
:where(section.aj) .inv .log { flex: 1; overflow: hidden; font-family: var(--mono); font-size: 21px; padding: 8px 12px; color: #222; display: flex; flex-direction: column; justify-content: flex-end; }
:where(section.aj) .inv .log div { white-space: nowrap; line-height: 1.55; }
:where(section.aj) .inv .log .ok { color: #2E7D32; }
:where(section.aj) .inv .log .ai { color: #6A1B9A; }
:where(section.aj) .inv .log .t { color: #888; margin-right: 8px; }
:where(section.aj) .inv .bottom { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: #fff; border-top: 1px solid #c8c8c8; }
:where(section.aj) .inv .bottom .pb { flex: 1; height: 16px; border: 1px solid #999; background: #fff; }
:where(section.aj) .inv .bottom .pb i { display: block; height: 100%; width: 0; background: #4CAF50; transition: width .6s linear; }
:where(section.aj) .inv .bottom .pt { font-size: 21px; color: #444; min-width: 150px; }
:where(section.aj) .inv .wbtn { border: 1px solid #888; background: linear-gradient(#fff,#e6e6e6); padding: 6px 18px; font-size: 23px; border-radius: 3px; display: inline-block; }
:where(section.aj) .inv .wbtn.primary { border-color: #1565C0; background: linear-gradient(#64B5F6,#1E88E5); color: #fff; font-weight: 700; }
:where(section.aj) .inv .browser { position: absolute; right: 24px; top: 60px; width: 460px; height: 290px; border: 1px solid #bbb; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; transition: opacity .4s ease; font-size: 18px; }
:where(section.aj) .inv .browser.on { opacity: 1; }
:where(section.aj) .inv .browser .bb { background: #eee; border-bottom: 1px solid #ccc; padding: 5px 8px; font-size: 18px; color: #555; display: flex; gap: 8px; align-items: center; }
:where(section.aj) .inv .browser .bb .u { flex: 1; background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 2px 8px; white-space: nowrap; overflow: hidden; }
:where(section.aj) .inv .browser .pg { padding: 12px; }
:where(section.aj) .inv .browser .pg .ln { height: 11px; background: #e5e7eb; border-radius: 4px; margin: 8px 0; }
:where(section.aj) .inv .browser .pg .ln.w { width: 60%; }
:where(section.aj) .inv .browser .pg .ln.b { background: #93c5fd; width: 40%; }
:where(section.aj) .inv .browser .pg .ln.g { background: #86efac; width: 75%; }
:where(section.aj) .inv .browser .dot { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; animation: blink 1s infinite; }
:where(section.aj) .inv .browser .tag { position: absolute; left: 8px; bottom: 8px; font-size: 17px; background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: 4px; }
:where(section.aj) .inv .files { flex: 1; overflow: hidden; padding: 8px 12px; display: none; }
:where(section.aj) .inv.done .log { display: none; }
:where(section.aj) .inv.done .files { display: block; }
:where(section.aj) .inv .files .f { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-bottom: 1px solid #eee; font-size: 23px; opacity: 0; transform: translateX(-10px); transition: all .3s ease; }
:where(section.aj) .inv .files .f.on { opacity: 1; transform: none; }
:where(section.aj) .inv .files .f .ic { color: #1D6F42; }
:where(section.aj) .inv .files .f .sz { margin-left: auto; color: #888; font-size: 20px; }
:where(section.aj) .inv .judge { position: absolute; left: 40px; right: 40px; top: 40px; bottom: 40px; background: #fff; border: 1px solid #bbb; box-shadow: 0 20px 60px rgba(0,0,0,.3); opacity: 0; transform: translateY(20px); transition: all .4s ease; display: flex; flex-direction: column; z-index: 5; }
:where(section.aj) .inv .judge.on { opacity: 1; transform: none; }
:where(section.aj) .inv .judge .jh { background: #E8EEF7; border-bottom: 1px solid #c8c8c8; padding: 8px 14px; font-weight: 700; font-size: 24px; display: flex; align-items: center; }
:where(section.aj) .inv .judge .jh .x { margin-left: auto; color: #666; }
:where(section.aj) .inv .judge table { width: 100%; border-collapse: collapse; font-size: 23px; }
:where(section.aj) .inv .judge th { background: #F5F7FA; padding: 10px 10px; border-bottom: 2px solid #d0d7e2; text-align: left; }
:where(section.aj) .inv .judge td { padding: 9px 10px; border-bottom: 1px solid #e5e7eb; }
:where(section.aj) .inv .judge td.num { text-align: right; font-variant-numeric: tabular-nums; }
:where(section.aj) .inv .judge tr { opacity: 0; transition: opacity .3s ease; }
:where(section.aj) .inv .judge tr.on { opacity: 1; }
:where(section.aj) .inv .judge .yes { color: #2E7D32; font-weight: 700; }
:where(section.aj) .inv .judge .no { color: #C62828; font-weight: 700; }
:where(section.aj) .inv .judge .why { color: #555; font-size: 20px; }
:where(section.aj) .inv .judge .sum { padding: 12px 14px; display: flex; gap: 30px; font-size: 24px; border-top: 1px solid #ddd; margin-top: auto; background: #FAFAFA; }
:where(section.aj) .inv .judge .sum b { font-size: 28px; }

/* ===================== 5.4b 薪資發放小幫手 ===================== */
:where(section.aj) .pay { display: flex; gap: 90px; align-items: center; height: 100%; padding: 0 80px; box-sizing: border-box; }
:where(section.aj) .pay .behind { flex: 1; }
:where(section.aj) .pay .behind h3 { font-size: 36px; margin-bottom: 14px; }
:where(section.aj) .pay .behind .sub { color: var(--muted); font-size: 27px; margin-bottom: 18px; }
:where(section.aj) .pay .step { display: flex; align-items: center; gap: 16px; padding: 13px 0; font-size: 30px; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s ease; }
:where(section.aj) .pay .step .n { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex: none; transition: all .3s ease; }
:where(section.aj) .pay .step.run { color: var(--ink); }
:where(section.aj) .pay .step.run .n { border-color: var(--accent); color: var(--accent); animation: pulse 1.2s infinite; }
:where(section.aj) .pay .step.ok { color: var(--ink); }
:where(section.aj) .pay .step.ok .n { background: var(--ok); border-color: var(--ok); color: #fff; }
:where(section.aj) .pay .step.ok .n span { display: none; }
:where(section.aj) .pay .step.ok .n::before { content: '✓'; }
:where(section.aj) .pay .step small { color: var(--muted); font-size: 24px; margin-left: auto; }
:where(section.aj) .pay .clock { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 6px 18px; margin-top: 22px; opacity: 0; transition: opacity .4s ease; }
:where(section.aj) .pay .clock.on { opacity: 1; }
:where(section.aj) .pay .clock b { font-variant-numeric: tabular-nums; }

/* ===================== 5.5 EIP ===================== */
:where(section.aj) .eip { display: flex; height: 100%; font-size: 18px; color: #1F2937; background: #F5F5F5; position: relative; overflow: hidden; }
:where(section.aj) .eip .side { width: 250px; flex: none; background: #fff; border-right: 1px solid #E5E7EB; display: flex; flex-direction: column; }
:where(section.aj) .eip .logo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; height: 70px; box-sizing: border-box; }
:where(section.aj) .eip .logo .qm { font-family: 'Brush Script MT', 'Segoe Script', 'Comic Sans MS', cursive; font-size: 40px; color: #F5821F; font-weight: 700; line-height: 1; font-style: italic; }
:where(section.aj) .eip .logo .fn { font-size: 17px; font-weight: 700; color: #333; line-height: 1.1; }
:where(section.aj) .eip .logo .fn small { display: block; font-size: 11px; color: #666; font-weight: 400; }
:where(section.aj) .eip .logo .eipt { margin-left: auto; color: #555; font-size: 18px; }
:where(section.aj) .eip .ws { margin: 4px 12px 8px; border: 1px solid #CBD5E1; border-radius: 6px; padding: 7px 12px; font-size: 17px; display: flex; justify-content: space-between; }
:where(section.aj) .eip .nav { flex: 1; overflow: hidden; }
:where(section.aj) .eip .nav .it { display: flex; align-items: center; gap: 12px; padding: 7px 20px; font-size: 17px; color: #333; position: relative; transition: background .3s ease; }
:where(section.aj) .eip .nav .it .ic { color: #555; }
:where(section.aj) .eip .nav .it .cv { margin-left: auto; color: #888; font-size: 15px; }
:where(section.aj) .eip .nav .it.sub { padding-left: 58px; font-size: 16px; }
:where(section.aj) .eip .nav .it.on { color: #E8610F; font-weight: 700; }
:where(section.aj) .eip .nav .it.on .ic { color: #E8610F; }
:where(section.aj) .eip .nav .it.hi { background: #FFF3E8; box-shadow: inset 4px 0 0 #F5821F; }
:where(section.aj) .eip .nav .it .tagnew { font-size: 12px; background: #FEF3C7; color: #B45309; border-radius: 4px; padding: 1px 5px; }
:where(section.aj) .eip .user { border-top: 1px solid #E5E7EB; padding: 10px 16px; display: flex; align-items: center; gap: 12px; font-size: 16px; }
:where(section.aj) .eip .user .av { width: 34px; height: 34px; border-radius: 50%; background: #3B82F6; flex: none; }
:where(section.aj) .eip .user small { display: block; color: #888; font-size: 14px; }
:where(section.aj) .eip .main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
:where(section.aj) .eip .top { height: 56px; flex: none; background: #fff; display: flex; align-items: center; gap: 16px; padding: 0 22px; }
:where(section.aj) .eip .top .ham { font-size: 26px; color: #333; }
:where(section.aj) .eip .top .ttl { font-size: 23px; font-weight: 700; color: #222; }
:where(section.aj) .eip .top .spacer { margin-left: auto; }
:where(section.aj) .eip .sel { position: relative; border: 1px solid #CBD5E1; border-radius: 6px; padding: 8px 32px 8px 14px; font-size: 16px; background: #fff; margin-left: 12px; white-space: nowrap; }
:where(section.aj) .eip .sel::before { content: attr(data-l); position: absolute; top: -9px; left: 10px; background: #fff; font-size: 13px; color: #666; padding: 0 4px; }
:where(section.aj) .eip .sel::after { content: '▾'; position: absolute; right: 10px; top: 7px; color: #666; }
:where(section.aj) .eip .bell { position: relative; margin-left: 16px; color: #333; }
:where(section.aj) .eip .bell .bd { position: absolute; top: -8px; right: -10px; background: #DC2626; color: #fff; font-size: 14px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
:where(section.aj) .eip .bell .bd.bump { animation: bump .5s ease; }
@keyframes bump { 50% { transform: scale(1.6); } }
:where(section.aj) .eip .crumb { height: 36px; background: #F3F4F6; display: flex; align-items: center; gap: 10px; padding: 0 22px; font-size: 16px; color: #444; flex: none; }
:where(section.aj) .eip .crumb .cur { color: #E8610F; }
:where(section.aj) .eip .content { flex: 1; min-height: 0; overflow: hidden; position: relative; }
:where(section.aj) .eip .view { position: absolute; inset: 10px 22px; display: none; flex-direction: column; }
:where(section.aj) .eip .view.on { display: flex; }
:where(section.aj) .eip h1 { font-size: 34px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 14px; }
:where(section.aj) .eip .mini { font-size: 15px; background: #F3F4F6; border-radius: 6px; padding: 5px 10px; color: #444; font-weight: 600; }
:where(section.aj) .eip .hrow { display: flex; align-items: center; gap: 12px; }
:where(section.aj) .eip .hrow .sp { margin-left: auto; }
:where(section.aj) .eip .ob { background: #F5821F; color: #fff; border-radius: 6px; padding: 9px 18px; font-size: 17px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
:where(section.aj) .eip .lb { background: #E0F2FE; color: #0369A1; border-radius: 6px; padding: 9px 18px; font-size: 17px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
:where(section.aj) .eip .desc { color: #666; font-size: 17px; margin: 8px 0 10px; }
:where(section.aj) .eip .tabs { display: flex; gap: 4px; border: 1px solid #E5E7EB; border-radius: 8px 8px 0 0; background: #fff; padding: 0 8px; }
:where(section.aj) .eip .tabs .t { padding: 7px 18px; font-size: 17px; color: #444; border-bottom: 2px solid transparent; white-space: nowrap; }
:where(section.aj) .eip .tabs .t.on { color: #E8610F; border-bottom-color: #E8610F; font-weight: 700; }
:where(section.aj) .eip .panel { background: #fff; border: 1px solid #E5E7EB; border-top: none; border-radius: 0 0 8px 8px; padding: 8px 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
:where(section.aj) .eip .filters { display: flex; gap: 12px; margin-bottom: 10px; align-items: center; }
:where(section.aj) .eip .filters .sel { margin: 0; padding: 9px 32px 9px 14px; }
:where(section.aj) .eip .filters .srch { flex: 1; border: 1px solid #CBD5E1; border-radius: 6px; padding: 9px 14px; color: #9CA3AF; font-size: 16px; display: flex; gap: 8px; align-items: center; }
:where(section.aj) .eip table.grid { width: 100%; border-collapse: collapse; font-size: 16.5px; }
:where(section.aj) .eip table.grid th { text-align: left; padding: 9px 8px; border-bottom: 2px solid #E5E7EB; color: #222; font-weight: 700; white-space: nowrap; }
:where(section.aj) .eip table.grid td { padding: 8px 8px; border-bottom: 1px solid #F3F4F6; white-space: nowrap; }
:where(section.aj) .eip table.grid tr.vrow { opacity: 0; transform: translateY(-6px); transition: all .35s ease; }
:where(section.aj) .eip table.grid tr.vrow.on { opacity: 1; transform: none; }
:where(section.aj) .eip table.grid tr.vrow .nm { color: #1D4ED8; font-weight: 600; }
:where(section.aj) .eip .pbar { display: flex; align-items: center; gap: 8px; }
:where(section.aj) .eip .pbar .bar { width: 100px; height: 7px; background: #E5E7EB; border-radius: 4px; overflow: hidden; }
:where(section.aj) .eip .pbar .bar i { display: block; height: 100%; background: #22A447; width: 0; transition: width .6s ease; }
:where(section.aj) .eip .g { color: #22A447; font-weight: 600; }
:where(section.aj) .eip .gy { color: #777; }
:where(section.aj) .eip .ok2 { color: #22A447; font-weight: 700; }
:where(section.aj) .eip td.flash { animation: cellFlash 1.2s ease; }
@keyframes cellFlash { 0% { background: #BBF7D0; } 100% { background: transparent; } }
:where(section.aj) .eip .empty { flex: 1; display: flex; align-items: center; justify-content: center; color: #9CA3AF; font-size: 20px; }
:where(section.aj) .eip .foot { display: flex; justify-content: flex-end; gap: 22px; color: #444; font-size: 15px; padding-top: 8px; margin-top: auto; }
:where(section.aj) .eip .dlg { position: absolute; inset: 0; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 20; }
:where(section.aj) .eip .dlg.on { opacity: 1; pointer-events: auto; }
:where(section.aj) .eip .dlg .box { background: #fff; border-radius: 12px; width: 560px; padding: 22px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
:where(section.aj) .eip .dlg h3 { font-size: 24px; margin: 0 0 14px; }
:where(section.aj) .eip .dlg .f { margin-bottom: 12px; }
:where(section.aj) .eip .dlg .f label { display: block; font-size: 15px; color: #666; margin-bottom: 4px; }
:where(section.aj) .eip .dlg .f .v { border: 1px solid #CBD5E1; border-radius: 6px; padding: 9px 12px; font-size: 17px; }
:where(section.aj) .eip .dlg .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
:where(section.aj) .eip .dh { display: flex; align-items: center; gap: 12px; }
:where(section.aj) .eip .dh .back { font-size: 26px; color: #444; }
:where(section.aj) .eip .dh .nm { font-size: 34px; font-weight: 700; }
:where(section.aj) .eip .chip2 { font-size: 14px; border-radius: 999px; padding: 2px 10px; font-weight: 600; }
:where(section.aj) .eip .chip2.o { background: #FFF1E6; color: #E8610F; }
:where(section.aj) .eip .chip2.ob2 { border: 1px solid #F5821F; color: #E8610F; }
:where(section.aj) .eip .chip2.g { background: #DCFCE7; color: #15803D; }
:where(section.aj) .eip .meta { color: #555; font-size: 16px; margin: 6px 0 10px; display: flex; gap: 20px; }
:where(section.aj) .eip .sec { border: 1px solid #E5E7EB; border-radius: 8px; margin-bottom: 10px; overflow: hidden; background: #fff; }
:where(section.aj) .eip .sec .sh { background: #F3F4F6; padding: 8px 14px; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
:where(section.aj) .eip .sec .sh .r { margin-left: auto; font-size: 15px; color: #888; font-weight: 400; }
:where(section.aj) .eip .sec .sb { padding: 10px 14px; }
:where(section.aj) .eip .fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; }
:where(section.aj) .eip .fgrid .f label { display: block; font-size: 14.5px; color: #333; font-weight: 700; margin-bottom: 3px; }
:where(section.aj) .eip .fgrid .f .v { border: 1px solid #CBD5E1; border-radius: 6px; padding: 7px 10px; font-size: 16px; min-height: 34px; box-sizing: border-box; background: #fff; transition: all .3s ease; }
:where(section.aj) .eip .fgrid .f .v.ro { background: #F3F4F6; }
:where(section.aj) .eip .fgrid .f .v.new { background: #ECFDF5; border-color: #86EFAC; font-weight: 600; }
:where(section.aj) .eip .tasks table { width: 100%; border-collapse: collapse; font-size: 16px; }
:where(section.aj) .eip .tasks th { text-align: left; padding: 7px 8px; border-bottom: 2px solid #E5E7EB; }
:where(section.aj) .eip .tasks td { padding: 6px 8px; border-bottom: 1px solid #F3F4F6; }
:where(section.aj) .eip .tasks .prog { height: 8px; background: #E5E7EB; border-radius: 4px; overflow: hidden; margin: 4px 0 8px; }
:where(section.aj) .eip .tasks .prog i { display: block; height: 100%; background: #22A447; width: 0; transition: width .45s ease; }
:where(section.aj) .eip .cbx { width: 18px; height: 18px; border: 1px solid #9CA3AF; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; vertical-align: middle; transition: all .2s ease; }
:where(section.aj) .eip .cbx.on { background: #22A447; border-color: #22A447; }
:where(section.aj) .eip .cbx.on::after { content: '✓'; }
:where(section.aj) .eip .stchip { font-size: 14px; border-radius: 999px; padding: 2px 10px; background: #F3F4F6; color: #666; }
:where(section.aj) .eip .stchip.ok { background: #DCFCE7; color: #15803D; }
:where(section.aj) .eip .frow { display: flex; gap: 14px; align-items: center; padding: 9px 8px; border-bottom: 1px solid #F3F4F6; font-size: 16px; opacity: 0; transform: translateY(-8px); transition: all .35s ease; }
:where(section.aj) .eip .frow.on { opacity: 1; transform: none; }
:where(section.aj) .eip .frow .lnk { color: #1D4ED8; font-weight: 600; }
:where(section.aj) .eip .frow .sm { color: #666; font-size: 14px; display: block; }
:where(section.aj) .eip .frow .pdf { color: #DC2626; margin-left: auto; }
:where(section.aj) .eip .frow .w { width: 90px; color: #444; }
:where(section.aj) .eip .lform .f { margin-bottom: 9px; }
:where(section.aj) .eip .lform label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
:where(section.aj) .eip .lform .v { border: 1px solid #CBD5E1; border-radius: 6px; padding: 8px 10px; font-size: 16px; min-height: 36px; box-sizing: border-box; }
:where(section.aj) .eip .lform .v.ta { min-height: 64px; }
:where(section.aj) .eip .lform .row3 { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 12px; }
:where(section.aj) .eip .lform .att { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 4px 0; }
:where(section.aj) .eip .lform .note { font-size: 14px; color: #666; }
:where(section.aj) .eip .lform .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; align-items: center; }
:where(section.aj) .eip .lform .acts .note { margin-right: auto; }
:where(section.aj) .eip .toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -30px); background: #1F2937; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 17px; opacity: 0; transition: all .35s ease; z-index: 30; white-space: nowrap; }
:where(section.aj) .eip .toast.on { opacity: 1; transform: translate(-50%, 0); }
:where(section.aj) .eip .toast.green { background: #15803D; }
:where(section.aj) .eip .drawer { position: absolute; top: 0; bottom: 0; right: 0; width: 520px; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .5s ease; z-index: 25; padding: 20px 26px; box-sizing: border-box; }
:where(section.aj) .eip .drawer.on { transform: none; }
:where(section.aj) .eip .drawer h3 { font-size: 24px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
:where(section.aj) .eip .drawer .sub { color: #666; font-size: 16px; margin-bottom: 14px; }
:where(section.aj) .eip .drawer table { width: 100%; border-collapse: collapse; font-size: 17px; }
:where(section.aj) .eip .drawer th { text-align: left; background: #F3F4F6; padding: 8px; }
:where(section.aj) .eip .drawer td { padding: 8px; border-bottom: 1px solid #F3F4F6; }
:where(section.aj) .eip .drawer td.num { text-align: right; }
:where(section.aj) .eip .drawer tr.tot td { font-weight: 700; border-top: 2px solid #999; }
:where(section.aj) .eip .drawer .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
:where(section.aj) .eip .notif { position: absolute; right: 22px; top: 66px; width: 440px; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.2); opacity: 0; transform: translateY(-10px); transition: all .35s ease; z-index: 30; }
:where(section.aj) .eip .notif.on { opacity: 1; transform: none; }
:where(section.aj) .eip .notif .nh { padding: 10px 14px; font-weight: 700; border-bottom: 1px solid #E5E7EB; font-size: 17px; }
:where(section.aj) .eip .notif .ni { padding: 11px 14px; font-size: 16px; display: flex; gap: 12px; border-bottom: 1px solid #F3F4F6; align-items: flex-start; }
:where(section.aj) .eip .notif .ni.new { background: #ECFDF5; }
:where(section.aj) .eip .notif .ni .ic { color: #15803D; flex: none; }
:where(section.aj) .eip .notif .ni small { display: block; color: #888; font-size: 14px; }
:where(section.aj) .eip .taxw .trow { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 2.2fr; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #F3F4F6; font-size: 17px; align-items: center; }
:where(section.aj) .eip .taxw .trow.h { font-weight: 700; border-bottom: 2px solid #E5E7EB; }
:where(section.aj) .eip .taxw .trow .st { color: #666; }
:where(section.aj) .eip .taxw .trow .st.run { color: #0369A1; font-weight: 700; }
:where(section.aj) .eip .taxw .trow .st.ok { color: #15803D; font-weight: 700; }
:where(section.aj) .eip .taxw .num { text-align: right; font-variant-numeric: tabular-nums; }
:where(section.aj) .eip-phone { position: absolute; right: -30px; top: 236px; transform: translateX(560px); transition: transform .6s cubic-bezier(.3,.8,.3,1); z-index: 40; }
:where(section.aj) .eip-phone.on { transform: none; }
:where(section.aj) .eip-phone .phone { width: 400px; height: 720px; }
:where(section.aj) .eip-phone .flex-card { width: 320px; font-size: 18px; }
:where(section.aj) .eip-phone .fc-hd.orange { background: #F5821F; }
:where(section.aj) .eip-phone .msg .bub { font-size: 19px; }
/* KPI 首頁 */
:where(section.aj) .eip .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
:where(section.aj) .eip .kpi { background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 14px 18px; }
:where(section.aj) .eip .kpi .l { color: #666; font-size: 15px; }
:where(section.aj) .eip .kpi .v { font-size: 32px; font-weight: 700; margin: 4px 0; }
:where(section.aj) .eip .kpi .v small { font-size: 16px; color: #666; font-weight: 400; margin-left: 6px; }
:where(section.aj) .eip .kpi .bar { height: 6px; }
:where(section.aj) .eip .kpi .bar > i { transition: none; }
:where(section.aj) .eip .board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; flex: 1; min-height: 0; }
:where(section.aj) .eip .col { background: #F3F4F6; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
:where(section.aj) .eip .col .ct { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; }
:where(section.aj) .eip .col .ct .n { margin-left: auto; background: #fff; border-radius: 999px; padding: 0 8px; font-size: 14px; color: #666; }
:where(section.aj) .eip .kcard { background: #fff; border-radius: 8px; padding: 9px 12px; font-size: 15.5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); opacity: 0; transform: translateY(8px); transition: all .35s ease; }
:where(section.aj) .eip .kcard.on { opacity: 1; transform: none; }
:where(section.aj) .eip .kcard b { display: block; font-size: 16.5px; }
:where(section.aj) .eip .kcard .kl { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
:where(section.aj) .eip .kcard .kl span { font-size: 13px; background: #F3F4F6; border-radius: 4px; padding: 1px 6px; color: #555; }
:where(section.aj) .eip .kcard .kl span.g { background: #DCFCE7; color: #15803D; }
:where(section.aj) .eip .kcard .kl span.o { background: #FFF1E6; color: #E8610F; }
:where(section.aj) .eip .kcard .kl span.r { background: #FEE2E2; color: #B91C1C; }
/* CRM */
:where(section.aj) .crm { display: flex; height: 100%; background: #fff; }
:where(section.aj) .crm .lst { width: 300px; flex: none; border-right: 1px solid #E5E7EB; overflow: hidden; transition: width .6s ease, opacity .5s ease; }
:where(section.aj) .crm.shift .lst { width: 0; opacity: 0; border: none; }
:where(section.aj) .crm .lst .lh { padding: 12px 16px; font-weight: 700; font-size: 18px; border-bottom: 1px solid #E5E7EB; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
:where(section.aj) .crm .lst .li { display: flex; gap: 12px; padding: 11px 16px; align-items: center; font-size: 16.5px; border-bottom: 1px solid #F3F4F6; white-space: nowrap; }
:where(section.aj) .crm .lst .li.on { background: #FFF3E8; }
:where(section.aj) .crm .lst .li .av { width: 40px; height: 40px; border-radius: 50%; background: #94A3B8; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
:where(section.aj) .crm .lst .li .pv { color: #888; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
:where(section.aj) .crm .lst .li .bd { margin-left: auto; background: #F5821F; color: #fff; border-radius: 999px; font-size: 14px; padding: 1px 7px; }
:where(section.aj) .crm .chat { flex: 1; display: flex; flex-direction: column; background: #8CB1DA; min-width: 0; transition: flex .6s ease; }
:where(section.aj) .crm.shift .chat { flex: 0 0 540px; }
:where(section.aj) .crm .chat .ch { background: #fff; padding: 12px 18px; font-weight: 700; border-bottom: 1px solid #E5E7EB; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
:where(section.aj) .crm .chat .cb { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; overflow: hidden; }
:where(section.aj) .crm .chat .cf { background: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
:where(section.aj) .crm .chat .cf .inp { flex: 1; background: #F3F4F6; border-radius: 16px; padding: 9px 14px; min-height: 40px; box-sizing: border-box; font-size: 16.5px; white-space: pre-wrap; }
:where(section.aj) .crm .chat .cf .inp:empty::before { content: '輸入訊息'; color: #9CA3AF; }
:where(section.aj) .crm .chat .msg .bub { font-size: 18px; max-width: 420px; }
:where(section.aj) .crm .right { width: 0; opacity: 0; overflow: hidden; display: flex; flex-direction: column; transition: width .6s ease, opacity .5s ease .25s; border-left: 1px solid #E5E7EB; flex: none; }
:where(section.aj) .crm.shift .right { width: auto; flex: 1; opacity: 1; }
/* 客戶資訊面板（依講者原始構想：基本資料 → 分頁 → 注意事項＋待辦事項） */
:where(section.aj) .crm .cinfo { padding: 6px 18px 6px; border-bottom: 1px solid #E5E7EB; white-space: nowrap; }
:where(section.aj) .crm .cinfo .ci-h { font-size: 13px; color: #888; letter-spacing: .12em; }
:where(section.aj) .crm .cinfo .ci-name { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
:where(section.aj) .crm .cinfo .more { margin-left: auto; font-size: 14px; color: #666; font-weight: 400; }
:where(section.aj) .crm .ci-kv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 1px 20px; font-size: 15px; color: #444; }
:where(section.aj) .crm .ci-kv li::before { content: '•'; color: #F5821F; margin-right: 8px; }
:where(section.aj) .crm .ci-kv b { color: #222; font-weight: 600; }
:where(section.aj) .crm .ci-tabs { display: flex; gap: 4px; margin: 6px 0 6px; border-bottom: 2px solid #E5E7EB; }
:where(section.aj) .crm .ci-tabs span { padding: 4px 12px; font-size: 14.5px; color: #555; border: 1px solid #E5E7EB; border-bottom: none; border-radius: 8px 8px 0 0; background: #F3F4F6; }
:where(section.aj) .crm .ci-tabs span.on { background: #fff; color: #E8610F; font-weight: 700; margin-bottom: -2px; border-bottom: 2px solid #fff; }
:where(section.aj) .crm .ci-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
:where(section.aj) .crm .ci-notes { background: #FEF7E0; border: 1px solid #F3E2A8; border-radius: 8px; padding: 5px 12px; font-size: 14.5px; color: #7A5B00; line-height: 1.5; }
:where(section.aj) .crm .ci-notes div::before { content: '•'; margin-right: 6px; }
:where(section.aj) .crm .ci-todo .ci-th { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 2px; }
:where(section.aj) .crm .ci-todo .td { display: flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 3px 0; border-bottom: 1px solid #F3F4F6; color: #333; }
:where(section.aj) .crm .ci-todo .td .due { margin-left: auto; color: #DC2626; font-weight: 700; font-variant-numeric: tabular-nums; }
:where(section.aj) .crm .ci-todo .td .who { color: #666; width: 96px; text-align: right; }
:where(section.aj) .crm .ci-todo .more { text-align: right; font-size: 14px; color: #666; margin-top: 3px; }
/* 專注模式：側欄與頂欄收起 */
:where(section.aj) .eip .side { overflow: hidden; white-space: nowrap; transition: width .6s ease, opacity .4s ease; }
:where(section.aj) .eip .top { overflow: hidden; transition: height .5s ease, opacity .35s ease; }
:where(section.aj) .eip.focus .side { width: 0; opacity: 0; border-right: 0; }
:where(section.aj) .eip.focus .top { height: 0; opacity: 0; }
:where(section.aj) .crm .rec { padding: 4px 18px; border-bottom: 1px solid #E5E7EB; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
:where(section.aj) .crm .rec h5 { grid-column: 1 / -1; }
:where(section.aj) .crm .rec h5 { margin: 0 0 6px; font-size: 16px; color: #666; font-weight: 700; }
:where(section.aj) .crm .rec .ri { display: flex; gap: 10px; font-size: 16px; padding: 5px 8px; color: #333; margin: 0 -8px; border-radius: 6px; transition: background .3s ease; white-space: nowrap; }
:where(section.aj) .crm .rec .ri .d { color: #888; white-space: nowrap; }
:where(section.aj) .crm .rec .ri.hit { background: #FFF7ED; }
:where(section.aj) .crm .ai { flex: 1; padding: 6px 18px; display: flex; flex-direction: column; min-height: 0; background: #FAFAFA; }
:where(section.aj) .crm .ai h5 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 8px; color: #6D28D9; white-space: nowrap; }
:where(section.aj) .crm .ai h5 .think { margin-left: auto; color: #888; font-size: 15px; font-weight: 400; }
:where(section.aj) .crm .ai .draft { flex: 1; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 14px; font-size: 16px; line-height: 1.5; min-height: 120px; white-space: pre-wrap; overflow: hidden; }
:where(section.aj) .crm .ai .cites { display: flex; gap: 8px; flex-wrap: wrap; margin: 5px 0; min-height: 24px; }
:where(section.aj) .crm .ai .cites span { font-size: 14px; background: #EDE9FE; color: #5B21B6; border-radius: 999px; padding: 2px 10px; opacity: 0; transition: opacity .3s ease; white-space: nowrap; }
:where(section.aj) .crm .ai .cites span.on { opacity: 1; }
:where(section.aj) .crm .ai .acts { display: flex; gap: 8px; justify-content: flex-end; }

/* density tweaks for the EIP mock (sidebar and detail panes must fit 736px) */
:where(section.aj) .eip .nav .it { padding: 6px 20px; font-size: 16.5px; }
:where(section.aj) .eip .nav .it.sub { padding-left: 56px; font-size: 15.5px; }
:where(section.aj) .eip .sec { margin-bottom: 6px; }
:where(section.aj) .eip .sec .sb { padding: 6px 12px; }
:where(section.aj) .eip .sec .sh { padding: 6px 12px; font-size: 17px; }
:where(section.aj) .eip .tasks td, :where(section.aj) .eip .tasks th { padding: 3px 8px; font-size: 15px; }
:where(section.aj) .eip .tasks .prog { margin: 2px 0 6px; }
:where(section.aj) .eip .fgrid .f .v { min-height: 30px; padding: 4px 10px; font-size: 15.5px; }
:where(section.aj) .eip .dh .nm { font-size: 28px; }
:where(section.aj) .eip .meta { margin: 4px 0 8px; }
:where(section.aj) .eip .kcard { font-size: 15px; }

/* salary phone must fit the 790px demo window */
:where(section.aj) .pay .phone { width: 400px; height: 770px; border-radius: 48px; }
/* 發放明細卡片：撐滿聊天區寬度，數字才不會被手機邊框裁掉 */
:where(section.aj) .pay .msg.has-card { max-width: 100%; }
:where(section.aj) .pay .flex-card { width: 286px; font-size: 20px; }
:where(section.aj) .pay .flex-card .fc-row { font-size: 19px; }
:where(section.aj) .pay .flex-card .fc-hd { font-size: 23px; padding: 12px 16px; }
:where(section.aj) .pay .flex-card .fc-bd { padding: 12px 16px; gap: 6px; }
:where(section.aj) .pay .phone .screen { border-radius: 36px; }

/* when the LINE phone slides in, the EIP window narrows and the sidebar collapses so the status columns stay visible */
:where(section.aj) .demo-win { transition: right .6s cubic-bezier(.3,.8,.3,1); }
:where(section.aj) .demo-win.with-phone { right: 470px; }
:where(section.aj) .eip .side { transition: width .6s ease, opacity .4s ease; overflow: hidden; white-space: nowrap; }
:where(section.aj) .eip.with-phone .side { width: 0; opacity: 0; border-right: none; }

/* EIP 營業稅流程字幕：正在執行的步驟放大變紅 */
:where(section.aj) .caption .st { display: inline-block; transition: color .3s ease, font-size .3s ease; }
:where(section.aj) .caption .st.on { color: #DC2626; font-weight: 800; font-size: 1.3em; }

/* ---------- 簽證系統（第 23 頁）：流水線示意＋真實畫面＋交叉索引 ---------- */
:where(section.aj) .aud { gap: 12px; }
:where(section.aj) .aud-flow { position: relative; height: 116px; flex: none; }
:where(section.aj) .aud-back { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
:where(section.aj) #aud-ret { fill: none; stroke: #1F7A8C; stroke-width: 2.5; transition: stroke-dashoffset .9s ease; }
:where(section.aj) #aud-ah2 { fill: #1F7A8C; opacity: 0; transition: opacity .25s ease; }
:where(section.aj) #aud-ah2.on { opacity: 1; }
:where(section.aj) .aud-retlbl { position: absolute; top: -6px; transform: translateX(-50%); font-size: 14px; color: #145A68; background: #F5F5F5; padding: 0 8px; opacity: 0; transition: opacity .4s ease; white-space: nowrap; }
:where(section.aj) .aud-flow.on .aud-retlbl { opacity: 1; }
:where(section.aj) .aud-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 24px 0; }
:where(section.aj) .aud-arr { font-size: 22px; color: #94A3B8; margin-top: 9px; }
:where(section.aj) .aud-stn { width: 224px; text-align: center; opacity: .45; transition: opacity .35s ease, transform .35s ease; }
:where(section.aj) .aud-stn .ic { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #CBD5E1; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; color: #64748B; background: #fff; transition: all .35s ease; }
:where(section.aj) .aud-stn b { display: block; font-size: 18px; color: #132F48; line-height: 1.2; }
:where(section.aj) .aud-stn small { display: block; font-size: 14px; color: #64748B; line-height: 1.3; margin-top: 2px; }
:where(section.aj) .aud-stn.on { opacity: 1; }
:where(section.aj) .aud-stn.on .ic { border-color: #1F7A8C; color: #1F7A8C; background: #E6F1F4; }
:where(section.aj) .aud-stn.pulse .ic { animation: pulse 1s ease; }
:where(section.aj) .aud-doc { position: absolute; top: 49px; left: 0; width: 34px; height: 34px; margin: -17px; border-radius: 8px; background: #fff; border: 2px solid #1F7A8C; color: #1F7A8C; display: flex; align-items: center; justify-content: center; opacity: 0; transition: left .4s ease, opacity .25s ease; box-shadow: 0 6px 14px rgba(19,47,72,.22); z-index: 2; }
:where(section.aj) .aud-doc.on { opacity: 1; }
:where(section.aj) .aud-shot { position: relative; height: 430px; flex: none; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; }
:where(section.aj) .aud-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #94A3B8; font-size: 22px; letter-spacing: .08em; transition: opacity .3s ease; }
:where(section.aj) .aud-shot.has .aud-empty { opacity: 0; }
:where(section.aj) .aud-fig { position: absolute; left: 12px; top: 12px; height: 406px; opacity: 0; transition: opacity .5s ease; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
:where(section.aj) .aud-fig[data-f="wp"] { width: 934px; }
:where(section.aj) .aud-fig[data-f="rpt"] { width: 667px; }
:where(section.aj) .aud-fig.on { opacity: 1; }
:where(section.aj) .aud-fig img { width: 100%; height: 100%; display: block; }
:where(section.aj) .aud-fig .hl { position: absolute; border: 3px solid #DC2626; border-radius: 6px; box-shadow: 0 0 0 4px rgba(220,38,38,.15); opacity: 0; transform: scale(1.06); transition: opacity .35s ease, transform .35s ease; }
:where(section.aj) .aud-fig .hl.on { opacity: 1; transform: none; }
:where(section.aj) .aud-call { position: absolute; top: 26px; right: 26px; width: 590px; opacity: 0; transition: opacity .4s ease; }
:where(section.aj) .aud-shot[data-f="rpt"] .aud-call { width: 860px; }
:where(section.aj) .aud-call.on { opacity: 1; }
:where(section.aj) .aud-call h4 { font-size: 26px; margin: 0 0 12px; color: #132F48; }
:where(section.aj) .aud-call ul { list-style: none; margin: 0; padding: 0; }
:where(section.aj) .aud-call li { position: relative; font-size: 20px; line-height: 1.5; color: #1F2937; padding-left: 28px; margin: 8px 0; }
:where(section.aj) .aud-call li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: #1F7A8C; }
:where(section.aj) .aud-index { position: relative; height: 110px; flex: none; opacity: .55; transition: opacity .4s ease; }
:where(section.aj) .aud-index.on { opacity: 1; }
:where(section.aj) .aud-index .lb { position: absolute; left: 0; top: 4px; font-size: 14px; color: #94A3B8; letter-spacing: .15em; }
:where(section.aj) .aud-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
:where(section.aj) .aud-lines .base { stroke: #CBD5E1; stroke-width: 2; }
:where(section.aj) .aud-lines .link { fill: none; stroke: #DC2626; stroke-width: 2.5; stroke-dasharray: 8 6; opacity: 0; transition: opacity .4s ease; }
:where(section.aj) .aud-lines .link.on { opacity: 1; animation: audDash 1.2s linear infinite; }
@keyframes audDash { to { stroke-dashoffset: -28; } }
:where(section.aj) .aud-nodes { position: absolute; left: 60px; right: 60px; bottom: 8px; display: flex; justify-content: space-between; }
:where(section.aj) .aud-node { position: relative; }
:where(section.aj) .aud-chip { display: inline-block; padding: 8px 22px; border-radius: 999px; border: 2px solid #CBD5E1; background: #fff; font-size: 17px; color: #64748B; transition: all .3s ease; position: relative; }
:where(section.aj) .aud-chip.on { border-color: #1F7A8C; color: #132F48; background: #E6F1F4; }
:where(section.aj) .aud-bd { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 8px) scale(.85); opacity: 0; background: #FEF2F2; border: 2px solid #DC2626; color: #B91C1C; font-weight: 700; font-size: 15px; padding: 3px 10px; border-radius: 8px; white-space: nowrap; transition: all .35s ease; font-variant-numeric: tabular-nums; }
:where(section.aj) .aud-bd.on { opacity: 1; transform: translate(-50%, 0); }

/* AI 客服中心：當年度財務情形面板（取代待辦事項） */
:where(section.aj) .crm .ci-fin .ci-th { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 4px; display: flex; align-items: baseline; gap: 8px; }
:where(section.aj) .crm .ci-fin .ci-th small { font-size: 12.5px; font-weight: 400; color: #777; }
:where(section.aj) .crm .fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
:where(section.aj) .crm .fin-grid .fr { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; padding: 4px 0; border-bottom: 1px solid #F3F4F6; color: #333; }
:where(section.aj) .crm .fin-grid .fr b { font-variant-numeric: tabular-nums; color: #111; }
:where(section.aj) .crm .fin-grid .fr.pct b { color: #15803D; }
:where(section.aj) .crm .ci-fin .more { text-align: right; font-size: 14px; color: #666; margin-top: 3px; }
