/* ICAM animated course (investigation-list.html → i button). Scenes are pure HTML/CSS mock-ups. */
#icamCourse{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.62);backdrop-filter:blur(4px);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#1e293b;}
#icamCourse.show{display:flex;}
#icamCourse *{box-sizing:border-box;}
.icc-dialog{width:min(1180px,100%);height:min(920px,100%);background:#fff;border-radius:0;box-shadow:0 24px 60px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden;animation:iccPop .25s ease-out;}
@keyframes iccPop{from{opacity:0;transform:translateY(12px) scale(.98);}to{opacity:1;transform:none;}}
.icc-head{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #e5e7eb;background:#fff;}
.icc-head .icc-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1rem;box-shadow:0 4px 10px rgba(234,88,12,.35);flex-shrink:0;}
.icc-head h2{margin:0;font-size:1.02rem;font-weight:800;color:#1e293b;}
.icc-head p{margin:1px 0 0;font-size:.74rem;color:#64748b;}
.icc-head .icc-count{margin-left:auto;font-size:.74rem;font-weight:600;color:#475569;background:#f1f5f9;border-radius:999px;padding:5px 11px;white-space:nowrap;}
.icc-icon-btn{background:none;border:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:1.25rem;cursor:pointer;transition:all .2s;flex-shrink:0;}
.icc-icon-btn:hover{background:#f1f5f9;color:#1e293b;}
.icc-icon-btn:focus-visible,.icc-btn:focus-visible,.icc-rail button:focus-visible,.icc-dot:focus-visible{outline:3px solid #38bdf8;outline-offset:2px;}
.icc-progress{height:4px;background:#f1f5f9;flex-shrink:0;}
.icc-progress > span{display:block;height:100%;width:0;background:linear-gradient(90deg,#f97316,#3b82f6);transition:width .45s ease;}
.icc-body{flex:1;min-height:0;display:flex;}
.icc-rail{width:250px;flex-shrink:0;border-right:1px solid #e5e7eb;background:#f8fafc;overflow-y:auto;padding:10px 8px;}
.icc-rail ol{list-style:none;margin:0;padding:0;}
.icc-rail button{width:100%;display:flex;align-items:center;gap:10px;border:none;background:none;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer;font:inherit;font-size:.78rem;color:#475569;transition:background .15s;}
.icc-rail button:hover{background:#eef2f7;}
.icc-rail button[aria-current="step"]{background:#fff;color:#1e293b;font-weight:700;box-shadow:0 1px 4px rgba(15,23,42,.08);}
.icc-rail .icc-n{width:24px;height:24px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:700;background:#e2e8f0;color:#475569;}
.icc-rail button[aria-current="step"] .icc-n{background:#f97316;color:#fff;}
.icc-rail button.done .icc-n{background:#16a34a;color:#fff;}
.icc-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow-y:auto;}
.icc-stage{position:relative;margin:16px 20px 0;height:470px;flex-shrink:0;border-radius:12px;background:linear-gradient(160deg,#f1f5f9,#e2e8f0);border:1px solid #e2e8f0;overflow:hidden;}
.icc-replay{position:absolute;right:8px;bottom:8px;z-index:5;background:rgba(255,255,255,.92);border:1px solid #e2e8f0;border-radius:999px;font:inherit;font-size:.7rem;font-weight:600;color:#475569;padding:5px 10px;cursor:pointer;display:inline-flex;gap:6px;align-items:center;}
.icc-replay:hover{color:#1e293b;}
.icc-text{padding:14px 22px 18px;}
.icc-text .icc-path{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;}
.icc-text .icc-path span{font-size:.66rem;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:#ea580c;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:3px 9px;}
.icc-text h3{margin:0 0 6px;font-size:1.12rem;font-weight:800;color:#1e293b;}
.icc-text .icc-lead{margin:0 0 10px;font-size:.84rem;color:#475569;line-height:1.55;}
.icc-steps{margin:0 0 10px;padding:0;list-style:none;counter-reset:icc;display:grid;gap:6px;}
.icc-steps li{counter-increment:icc;display:flex;gap:10px;font-size:.82rem;color:#334155;line-height:1.45;opacity:0;animation:iccIn .4s ease-out forwards;}
.icc-steps li::before{content:counter(icc);flex-shrink:0;width:22px;height:22px;border-radius:50%;background:#eff6ff;color:#2563eb;font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:-1px;}
.icc-steps li:nth-child(1){animation-delay:.15s}.icc-steps li:nth-child(2){animation-delay:.3s}.icc-steps li:nth-child(3){animation-delay:.45s}.icc-steps li:nth-child(4){animation-delay:.6s}.icc-steps li:nth-child(5){animation-delay:.75s}.icc-steps li:nth-child(6){animation-delay:.9s}
@keyframes iccIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
.icc-note{display:flex;gap:10px;align-items:flex-start;border-radius:10px;padding:9px 12px;font-size:.78rem;line-height:1.45;margin-top:6px;}
.icc-note i{margin-top:2px;}
.icc-note.tip{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;}
.icc-note.eg{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;}
.icc-foot{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid #e5e7eb;background:#fff;flex-shrink:0;}
.icc-dots{display:flex;gap:6px;margin:0 auto;flex-wrap:wrap;justify-content:center;}
.icc-dot{width:9px;height:9px;border-radius:50%;border:none;padding:0;background:#cbd5e1;cursor:pointer;transition:all .2s;}
.icc-dot.on{background:#f97316;width:22px;border-radius:999px;}
.icc-btn{border:none;border-radius:8px;padding:9px 16px;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:filter .15s,transform .15s;}
.icc-btn:hover{filter:brightness(.95);}
.icc-btn.ghost{background:#f1f5f9;color:#334155;}
.icc-btn.primary{background:#2c3e50;color:#fff;}
.icc-btn.finish{background:#16a34a;color:#fff;}
.icc-btn[disabled]{opacity:.4;cursor:default;}
.icc-done{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;background:rgba(255,255,255,.96);z-index:6;}
.icc-done i{font-size:2.4rem;color:#16a34a;animation:iccBounce .6s ease-out;}
.icc-done h4{margin:0;font-size:1.1rem;color:#1e293b;}
.icc-done p{margin:0;font-size:.82rem;color:#475569;max-width:420px;}
@keyframes iccBounce{0%{transform:scale(.3);opacity:0}60%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}

/* ---------- Shared mock UI ---------- */
.icc-stage .w{position:absolute;background:#fff;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.14);overflow:hidden;font-size:11px;color:#334155;}
.icc-stage .bar{display:flex;align-items:center;gap:5px;height:24px;padding:0 10px;background:#f8fafc;border-bottom:1px solid #e5e7eb;font-weight:700;color:#1e293b;}
.icc-stage .bar i.o{color:#f97316;}
.icc-stage .tabs{display:flex;gap:2px;padding:0 8px;border-bottom:1px solid #e5e7eb;background:#f8fafc;}
.icc-stage .tabs span{padding:6px 8px;font-size:10px;color:#64748b;border-bottom:2px solid transparent;}
.icc-stage .tabs span.a{color:#1e293b;font-weight:700;border-bottom-color:#3b82f6;background:#fff;}
.icc-stage .fld{border:1px solid #dfe3e8;border-radius:6px;height:22px;padding:0 7px;display:flex;align-items:center;background:#fff;overflow:hidden;white-space:nowrap;font-size:10.5px;color:#1e293b;}
.icc-stage .lbl{font-size:9px;font-weight:700;color:#475569;margin:6px 0 3px;}
.icc-stage .ty{display:inline-block;overflow:hidden;white-space:nowrap;width:0;animation:iccType 1.1s steps(28,end) forwards;}
@keyframes iccType{to{width:100%;}}
.icc-stage .pop{opacity:0;transform:scale(.6);animation:iccPopIn .35s cubic-bezier(.34,1.56,.64,1) forwards;}
@keyframes iccPopIn{to{opacity:1;transform:none;}}
.icc-stage .fade{opacity:0;animation:iccFade .4s ease-out forwards;}
@keyframes iccFade{to{opacity:1;}}
.icc-stage .slide{opacity:0;transform:translateX(-14px);animation:iccSlide .45s ease-out forwards;}
@keyframes iccSlide{to{opacity:1;transform:none;}}
.icc-stage .rise{opacity:0;transform:translateY(16px);animation:iccRise .45s ease-out forwards;}
@keyframes iccRise{to{opacity:1;transform:none;}}
.icc-stage .cur{position:absolute;z-index:4;width:18px;height:18px;color:#0f172a;font-size:17px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3));pointer-events:none;}
.icc-stage .cur::after{content:'';position:absolute;left:-6px;top:-6px;width:16px;height:16px;border-radius:50%;background:rgba(249,115,22,.45);transform:scale(0);animation:iccClick .5s ease-out var(--click,1.6s) both;}
@keyframes iccClick{0%{transform:scale(0);opacity:1}100%{transform:scale(2.4);opacity:0}}
.icc-stage .pulse{animation:iccPulse 1.2s ease-in-out infinite;}
@keyframes iccPulse{0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.5)}50%{box-shadow:0 0 0 7px rgba(249,115,22,0)}}
.icc-stage .tag{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 8px;font-size:9.5px;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;margin:2px;}
.icc-stage .tag.red{animation:iccRed .5s ease-out var(--red,2.4s) forwards;}
.icc-stage .tag.pop.red{opacity:0;transform:scale(.6);animation:iccPopIn .35s cubic-bezier(.34,1.56,.64,1) forwards,iccRed .5s ease-out forwards;}
@keyframes iccRed{to{background:#fee2e2;color:#b91c1c;border-color:#fca5a5;}}
.icc-stage .chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:9.5px;font-weight:700;}

/* 1. ICAM layers */
.icc-s-layers{position:absolute;inset:18px 28px;display:flex;flex-direction:column;justify-content:center;gap:7px;}
.icc-s-layers .row{display:flex;align-items:center;gap:10px;height:34px;border-radius:9px;padding:0 14px;color:#fff;font-weight:700;font-size:12px;box-shadow:0 6px 16px rgba(15,23,42,.12);}
.icc-s-layers .row i{width:16px;text-align:center;}
.icc-s-layers .row small{margin-left:auto;font-weight:600;opacity:.85;font-size:10px;}
.icc-s-layers .r1{background:#334155;width:100%;}
.icc-s-layers .r2{background:#7c3aed;width:88%;}
.icc-s-layers .r3{background:#2563eb;width:76%;}
.icc-s-layers .r4{background:#0d9488;width:64%;}
.icc-s-layers .r5{background:#dc2626;width:52%;}
.icc-s-layers .r5 i{animation:iccShake .5s ease-in-out 2.6s 2;}
@keyframes iccShake{25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}

/* 2. Open (register + editor opening on the Progress tab) */
.icc-s-open .reg{left:24px;top:22px;width:360px;height:220px;}
.icc-s-open .reg .tabs{justify-content:space-between;align-items:center;}
.icc-s-open .reg .acts{display:flex;gap:8px;color:#6b7280;padding-right:4px;}
.icc-s-open .reg .acts b{width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6b7280;}
.icc-s-open .reg .row{height:20px;margin:7px 10px 0;border-radius:4px;background:#f1f5f9;}
.icc-s-open .reg .row:nth-child(odd){width:85%;}
.icc-s-open .em{opacity:0;transform-origin:42% 8%;animation:iccEd .5s cubic-bezier(.34,1.56,.64,1) 1.9s forwards;}
@keyframes iccEd{from{opacity:0;transform:scale(.35) translate(-120px,-40px);}to{opacity:1;transform:none;}}
.icc-s-open .cur{animation:iccCurOpen 1.7s ease-in-out .2s both;}
@keyframes iccCurOpen{from{left:62%;top:88%;}to{left:338px;top:58px;}}

/* ===== Editor mock-up: mirrors the sections and fields of investigation-create.html ===== */
.icc-s-em{position:absolute;inset:0;}
.em{position:absolute;inset:10px 14px;background:#fff;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.16);display:flex;flex-direction:column;overflow:hidden;font-size:10px;color:#334155;}
.em-top{display:flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-bottom:1px solid #e5e7eb;font-weight:800;color:#1e293b;font-size:10.5px;flex:0 0 auto;}
.em-top .ex{margin-left:auto;color:#6b7280;font-weight:400;}
.em-tabs{display:flex;align-items:center;padding:0 8px;border-bottom:2px solid #e5e7eb;flex:0 0 auto;}
.em-tabs > span{padding:5px 10px;font-size:10px;color:#6b7280;position:relative;white-space:nowrap;}
.em-tabs > span.a{color:#2c3e50;font-weight:700;}
.em-tabs > span.a::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;background:#2c3e50;}
.em-tabs .plus{margin-left:auto;font-size:12px;border-radius:50%;padding:3px 7px;}
.em-body{flex:1;min-height:0;overflow:hidden;position:relative;background:#f8fafc;}
.em-pane{padding:8px 10px;display:flex;flex-direction:column;gap:7px;}
.em-pane.scr{animation:emScroll var(--sd,5s) ease-in-out var(--ss,1.2s) forwards;}
@keyframes emScroll{to{transform:translateY(var(--sc,0));}}
.em-foot{display:flex;gap:6px;justify-content:flex-end;align-items:center;padding:5px 10px;border-top:1px solid #e5e7eb;flex:0 0 auto;background:#fff;position:relative;}
.em-foot .ft{width:24px;height:22px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:10px;}
.em-foot .ft.c{background:#3498db;color:#fff;}
.em-foot .ft.s{background:#2c3e50;color:#fff;}
.em-foot .ft.k{background:#efefef;color:#333;}
.em-foot .toast{position:absolute;left:10px;top:50%;margin-top:-10px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:6px;padding:3px 9px;font-size:9.5px;font-weight:700;}
.icc-stage .rv{opacity:0;transform:translateY(8px);animation:emRv .4s ease-out var(--d,0s) forwards;}
@keyframes emRv{to{opacity:1;transform:none;}}
.icc-stage .ty{animation-delay:var(--d,0s);}
.em .sec{background:#fff;border:1px solid #e5e7eb;border-radius:8px;}
.em .sec > h5{margin:0;padding:5px 9px;font-size:10.5px;font-weight:700;color:#1e293b;border-bottom:1px solid #eef0f3;display:flex;align-items:center;gap:6px;}
.em .sec > h5 > i{color:#f97316;}
.em .sec > h5 .r{margin-left:auto;display:flex;gap:5px;}
.em .sc{padding:7px 9px;display:flex;flex-direction:column;gap:6px;}
.em h6{margin:0;font-size:9.5px;font-weight:700;color:#374151;}
.em .g{display:grid;gap:5px 8px;align-items:end;}
.em .f{min-width:0;position:relative;}
.em .f .l{font-size:8.5px;font-weight:700;color:#475569;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.em .f .b{position:relative;border:1px solid #dfe3e8;border-radius:5px;min-height:19px;padding:2px 6px;background:#fff;display:flex;align-items:center;gap:4px;overflow:hidden;white-space:nowrap;font-size:9.5px;color:#1e293b;}
.em .f .b.area{min-height:32px;align-items:flex-start;white-space:normal;line-height:1.3;}
.em .f .b.ro{background:#eef2f7;color:#475569;}
.em .f .b .lock{color:#94a3b8;font-size:8px;}
.em .f .b .cr{position:absolute;right:6px;top:50%;margin-top:-4px;font-size:7px;color:#9ca3af;}
.em .f .ph{color:#9ca3af;}
.em .f .fi{position:absolute;left:6px;right:16px;top:0;bottom:0;display:flex;align-items:center;background:#fff;opacity:0;animation:emFade .3s ease-out var(--d,0s) forwards;}
.em .f .fi2{opacity:0;animation:emFade .35s ease-out var(--d,0s) forwards;}
@keyframes emFade{to{opacity:1;}}
@keyframes emOut{to{opacity:0;visibility:hidden;}}
.em .f .dd{position:absolute;left:0;top:100%;min-width:140px;background:#fff;border:1px solid #ced4da;border-top:none;border-radius:0 0 6px 6px;box-shadow:0 8px 18px rgba(15,23,42,.14);z-index:7;opacity:0;animation:emFade .25s ease-out var(--d,0s) forwards,emOut .2s ease-in var(--o,3s) forwards;}
.em .f .dd div{padding:5px 8px;font-size:9px;border-bottom:1px solid #f0f0f0;color:#666;}
.em .f .dd div b{display:block;color:#1e293b;font-size:9.5px;}
.em .bt{display:inline-flex;align-items:center;gap:5px;background:#2c3e50;color:#fff;border-radius:5px;padding:3px 8px;font-size:9.5px;font-weight:600;white-space:nowrap;}
.em .bt.gh{background:#f1f5f9;color:#334155;border:1px solid #e2e8f0;}
.em .bt.ic{padding:3px 6px;}
.em .bt.red{background:#fee2e2;color:#dc2626;}
.em .bt.grn{background:#dcfce7;color:#059669;}
.em .bt.amb{background:#fef3c7;color:#b45309;}
.em .bt.main{background:#f59e0b;color:#fff;}
.em .card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:6px 8px;display:flex;flex-direction:column;gap:5px;}
.em .card.amber{background:#fefce8;border-color:#fde68a;}
.em .card.main{background:linear-gradient(135deg,#fef3c7,#fde68a);border:2px solid #f59e0b;}
.em .card > .dash{border-top:1px dashed #cbd5e1;padding-top:5px;}
.em .badge{position:relative;display:flex;align-items:center;justify-content:center;border-radius:5px;padding:3px 6px;font-weight:700;font-size:9.5px;min-height:19px;border:1px solid #d1d5db;background:#f3f4f6;color:#6b7280;overflow:hidden;}
.em .badge .n{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;animation:emFade .3s ease-out var(--d,0s) forwards;}
.em .f.big .b{min-height:84px;}
.em .ckb{display:inline-flex;align-items:center;gap:4px;font-weight:600;font-size:9.5px;color:#334155;}
.em .ckb i{width:12px;height:12px;border:1.5px solid #94a3b8;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-size:7px;color:transparent;}
.em .ckb i.on{background:#2563eb;border-color:#2563eb;color:#fff;animation:emTick .25s ease-out var(--d,0s) both;}
@keyframes emTick{from{transform:scale(.3);opacity:0;}to{transform:none;opacity:1;}}
.em .tg{display:inline-flex;align-items:center;gap:3px;border-radius:999px;padding:1px 7px;font-size:8.5px;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;margin:1px;}
.em .tg.red{opacity:0;animation:emFade .3s ease-out var(--d,0s) forwards,iccRed .45s ease-out var(--red,2.4s) forwards;}
.em .tg.plain{opacity:0;animation:emFade .3s ease-out var(--d,0s) forwards;}
.em .pm{position:absolute;left:0;top:100%;z-index:8;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 8px 18px rgba(15,23,42,.18);font-size:9px;opacity:0;animation:emFade .2s ease-out var(--d,0s) forwards,emOut .2s ease-in var(--o,3s) forwards;}
.em .pm div{padding:5px 9px;white-space:nowrap;}
.em .pm div.on{background:#fee2e2;color:#b91c1c;font-weight:700;}
.em .tb{border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;background:#fff;}
/* PEEPO exactly as the editor: stacked fields, tag chips with a classification dot, simple + at the right, banner with Autofill */
.em .banner{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:5px 9px;background:linear-gradient(90deg,#eef2ff,#f0fdf4);border:1px solid #c7d2fe;border-radius:6px;}
.em .banner .ckb{font-weight:500;font-size:8.5px;color:#475569;}
.em .bt.blue{background:#3b82f6;}
.em .pf{display:flex;flex-direction:column;gap:2px;}
.em .pf .tags{display:flex;flex-wrap:wrap;gap:4px;min-height:17px;}
.em .pf .pr{align-self:flex-end;color:#6b7280;font-size:9px;line-height:1;padding:0 6px;}
.em .pw{position:relative;display:inline-block;}
.em .tg.pc{opacity:0;padding:1px 8px;margin:0;animation:emFade .3s ease-out var(--d,0s) forwards;}
.em .tg.pc .dot{display:inline-block;width:0;height:6px;border-radius:50%;margin-right:0;}
.em .tg.pc.c{animation:emFade .3s ease-out var(--d,0s) forwards,pcRed .35s ease-out var(--c,2s) forwards;}
.em .tg.pc.c .dot{animation:pcDotC .35s ease-out var(--c,2s) forwards;}
.em .tg.pc.n{animation:emFade .3s ease-out var(--d,0s) forwards,pcYel .35s ease-out var(--c,2s) forwards;}
.em .tg.pc.n .dot{animation:pcDotN .35s ease-out var(--c,2s) forwards;}
@keyframes pcRed{to{background:#fee2e2;color:#991b1b;border-color:#fca5a5;}}
@keyframes pcYel{to{background:#fef3c7;color:#92400e;border-color:#fcd34d;}}
@keyframes pcDotC{to{width:6px;margin-right:4px;background:#dc2626;}}
@keyframes pcDotN{to{width:6px;margin-right:4px;background:#f59e0b;}}
.em .cp{position:absolute;left:0;top:100%;margin-top:3px;z-index:9;min-width:128px;background:#fff;border-radius:6px;box-shadow:0 4px 20px rgba(0,0,0,.22);overflow:hidden;font-size:8.5px;opacity:0;animation:emFade .2s ease-out var(--d,0s) forwards,emOut .2s ease-in var(--o,3s) forwards;}
.em .cp .ch{padding:4px 8px;background:#f8fafc;border-bottom:1px solid #e5e7eb;font-weight:600;color:#64748b;font-size:8px;}
.em .cp .co{display:flex;align-items:center;gap:6px;padding:4px 8px;white-space:nowrap;color:#1e293b;}
.em .cp .co i{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.em .cp .co.c i{background:#dc2626;} .em .cp .co.n i{background:#f59e0b;} .em .cp .co.x i{background:#3b82f6;border:1.5px solid #93c5fd;} .em .cp .co.e i{background:#8b5cf6;}
.em .cp .co.hi{animation:cpHi .2s ease-out var(--h,1s) forwards;}
@keyframes cpHi{to{background:#e2e8f0;font-weight:700;}}
.em .cp .cd{border-top:1px solid #e5e7eb;}
.em .ab{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;padding:2px 5px;margin-right:3px;font-size:9px;}
.em .ab.ev{border:1px solid #e5e7eb;background:#fff;}
.em .ab.ws.e{background:#dcfce7;color:#059669;}
.em .ab.ws.d{background:#fee2e2;color:#dc2626;margin-right:0;}
.em .tb .tr{display:grid;gap:6px;padding:4px 7px;align-items:center;border-bottom:1px solid #eef0f3;font-size:9px;}
.em .tb .tr.h{background:#f1f5f9;font-weight:700;color:#334155;font-size:8.8px;}
.em .tb .tr:last-child{border-bottom:none;}
.em .tb .tr > *{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.em .tb .empty{padding:7px;text-align:center;color:#94a3b8;font-size:9px;}
.em .pill{display:inline-block;border-radius:999px;padding:1px 7px;font-size:8.5px;font-weight:700;}
.em .ov{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:6px;}
.em .ov .oh{display:flex;align-items:center;font-weight:800;font-size:10.5px;color:#1e293b;gap:6px;}
.em .ov .oh i{color:#3b82f6;}
.em .ov .oh .pc{margin-left:auto;font-size:14px;color:#2563eb;}
.em .ov .ob{height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden;}
.em .ov .ob span{display:block;height:100%;width:var(--to,0%);background:linear-gradient(90deg,#3b82f6,#22c55e);transition:none;animation:emBar 1.6s ease-out var(--d,.6s) both;}
@keyframes emBar{from{width:0;}to{width:var(--to,0%);}}
.em .ov .os{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center;}
.em .ov .os b{display:block;font-size:13px;color:#1e293b;}
.em .ov .os small{font-size:8.3px;color:#64748b;}
.em .mapx{position:relative;height:62px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#dbeafe,#e0f2fe 45%,#dcfce7);border:1px solid #cbd5e1;}
.em .mapx::before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 14px,rgba(148,163,184,.25) 14px 15px),repeating-linear-gradient(90deg,transparent 0 18px,rgba(148,163,184,.25) 18px 19px);}
.em .mapx .pin{position:absolute;left:46%;top:14px;color:#dc2626;font-size:20px;opacity:0;animation:emPin .5s cubic-bezier(.34,1.56,.64,1) var(--d,0s) forwards;}
@keyframes emPin{from{opacity:0;transform:translateY(-24px);}to{opacity:1;transform:none;}}
.em .viz{position:relative;height:42px;margin:2px 6px 0;}
.em .viz::before{content:'';position:absolute;left:0;right:0;top:20px;height:3px;background:linear-gradient(90deg,#3b82f6,#8b5cf6);border-radius:2px;}
.em .viz span{position:absolute;top:12px;width:18px;margin-left:-9px;text-align:center;}
.em .viz span::before{content:'';display:block;width:11px;height:11px;margin:0 auto;border-radius:50%;background:#fff;border:3px solid #3b82f6;}
.em .viz span.main::before{border-color:#f59e0b;background:#fef3c7;}
.em .viz span small{position:absolute;top:-12px;left:50%;transform:translateX(-50%);font-size:8px;color:#475569;white-space:nowrap;}
.em .mo{position:absolute;inset:0;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;z-index:9;opacity:0;animation:emFade .3s ease-out var(--d,0s) forwards,emOut .3s ease-in var(--o,9s) forwards;}
.em .mo .mb{width:min(78%,480px);max-height:94%;overflow:hidden;background:linear-gradient(to bottom right,#fff,#f8f9fa);box-shadow:0 10px 30px rgba(0,0,0,.25);display:flex;flex-direction:column;}
.em .mo .mh{padding:7px 12px;border-bottom:1px solid rgba(0,0,0,.08);font-weight:700;font-size:10.5px;color:#1a1a1a;display:flex;align-items:center;position:relative;}
.em .mo .mh::after{content:'';position:absolute;left:12px;bottom:0;width:34px;height:2px;background:#3b82f6;}
.em .mo .mh .x{margin-left:auto;color:#666;font-size:13px;}
.em .mo .mbd{padding:6px 12px;display:flex;flex-direction:column;gap:4px;}
.em .mo .mf{padding:6px 12px;border-top:1px solid rgba(0,0,0,.08);display:flex;gap:6px;justify-content:flex-end;}
.em .fileb{display:flex;align-items:center;gap:5px;color:#64748b;}
.em .fileb u{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:4px;padding:1px 6px;text-decoration:none;font-size:8.5px;color:#334155;}
.em .row2{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.em .ents{display:flex;flex-direction:column;gap:4px;}
.em .ent{display:grid;grid-template-columns:170px 1fr auto;gap:6px;align-items:center;}
.em .ent .code{font-weight:700;color:#1e293b;font-size:9px;background:#f1f5f9;border-radius:4px;padding:3px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.em .ent .b{border:1px solid #dfe3e8;border-radius:5px;min-height:19px;padding:2px 6px;background:#fff;font-size:9px;color:#1e293b;display:flex;align-items:center;overflow:hidden;white-space:nowrap;}
.em .pick{display:flex;gap:5px;align-items:center;}
.em .pick .f{flex:1;}
.em .note{font-size:9px;color:#64748b;}

/* 12. Approve */
.icc-s-apr .flow{position:absolute;left:24px;right:24px;top:30px;display:flex;align-items:center;gap:10px;}
.icc-s-apr .st{flex:1;background:#fff;border-radius:10px;padding:10px;box-shadow:0 6px 16px rgba(15,23,42,.08);text-align:center;font-size:10.5px;}
.icc-s-apr .st .ic{width:34px;height:34px;border-radius:50%;margin:0 auto 6px;display:flex;align-items:center;justify-content:center;color:#fff;background:#94a3b8;animation:iccOk .4s ease-out forwards;}
@keyframes iccOk{to{background:#16a34a;}}
.icc-s-apr .st svg{display:block;margin:6px auto 0;width:90px;height:24px;}
.icc-s-apr .st path{fill:none;stroke:#1e3a8a;stroke-width:2;stroke-dasharray:160;stroke-dashoffset:160;animation:iccSign 1s ease-out forwards;}
@keyframes iccSign{to{stroke-dashoffset:0;}}
.icc-s-apr .sep{color:#94a3b8;}
.icc-s-apr .status{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);display:flex;gap:8px;align-items:center;font-size:11px;font-weight:700;}
.icc-s-apr .status .chip{opacity:.35;}
.icc-s-apr .status .chip.go{animation:iccOn .3s ease-out forwards;}
@keyframes iccOn{to{opacity:1;transform:scale(1.08);}}

@media (max-width: 860px){
    .icc-rail{display:none;}
    .icc-stage{height:250px;margin:12px 12px 0;}
    .icc-text{padding:12px 14px 16px;}
    .icc-stage .w, .icc-stage > div{zoom:.82;}
    .icc-head .icc-count{display:none;}
}
@media (prefers-reduced-motion: reduce){
    #icamCourse *, #icamCourse *::before, #icamCourse *::after{animation-duration:.001s !important;animation-delay:0s !important;animation-iteration-count:1 !important;transition-duration:.001s !important;}
}
