:root{--blue:#0066FF;--mid:#00053D;--mist:#F5F5F5;--celeste:#00DEEF;--mint:#00EF9D;--salmon:#FB327E;--iris:#9A67FB;--ink:#14141F;--grey:#5A5A66;--line:#E4E6EC;
--n-blue:#CCE0FF;--n-mint:#C7FBE6;--n-celeste:#C4F6FB;--n-salmon:#FFD3E3;--n-iris:#E4D8FE;--n-grey:#ECECEF}
*{box-sizing:border-box}
html,body{margin:0;height:100%;font-family:Poppins,"Segoe UI",sans-serif;color:var(--ink);background:#fff;-webkit-tap-highlight-color:transparent}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:15px}
.hidden{display:none!important}
/* landing / join */
.join{display:flex;min-height:100vh}
.jl{flex:1;background:var(--mid);color:#fff;padding:64px;position:relative;overflow:hidden}
.jl img{height:30px;filter:brightness(0) invert(1)}
.jl h1{font-weight:500;font-size:44px;line-height:1.15;margin:110px 0 16px;position:relative;z-index:1}
.jl p{font-weight:300;font-size:18px;opacity:.85;max-width:520px;position:relative;z-index:1}
.jl svg{position:absolute;right:-180px;bottom:-200px;opacity:.55}
.jr{flex:1;padding:96px 96px;display:flex;flex-direction:column;justify-content:center;max-width:720px}
.jr h2{font-weight:500;font-size:30px;margin:0 0 6px}
.jr .sub{color:var(--grey);font-weight:300;margin:0 0 30px}
.f{margin-bottom:18px}
.f label{display:block;font-size:13px;font-weight:500;margin-bottom:6px}
.f input,.f select{width:100%;border:1.5px solid #D5D8E0;border-radius:10px;height:50px;padding:0 14px;background:#fff;color:var(--ink)}
.f input:focus,.f select:focus,textarea:focus{outline:none;border-color:var(--blue)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 28px;border-radius:999px;background:var(--blue);color:#fff;font-weight:500;font-size:15px;border:0}
.btn.ghost{background:var(--mist);color:var(--ink)}
.btn.small{height:36px;padding:0 16px;font-size:13px}
.btn:disabled{opacity:.5;cursor:default}
.err{color:var(--salmon);font-size:13px;min-height:18px;margin-top:6px}
@media (max-width:820px){.join{flex-direction:column}.jl{padding:28px 24px 36px}.jl h1{margin:40px 0 10px;font-size:30px}.jl p{font-size:15px}.jr{padding:28px 24px;max-width:none}.jl svg{display:none}}
/* app shell */
.app{display:flex;flex-direction:column;height:100vh;overflow:hidden}
.top{height:60px;flex:none;display:flex;align-items:center;gap:16px;padding:0 18px;border-bottom:1px solid var(--line);background:#fff;z-index:20}
.top img{height:24px}
.sess{font-weight:500;font-size:14px;white-space:nowrap}
.sess small{display:block;font-weight:300;color:var(--grey);font-size:11px}
.tabs{display:flex;gap:6px;margin-left:12px;overflow-x:auto}
.tab{font-size:13px;padding:7px 14px;border-radius:999px;background:var(--mist);color:var(--ink);border:0;white-space:nowrap}
.tab.on{background:var(--blue);color:#fff}
.tab.peek{outline:2px dashed var(--blue)}
.tr{margin-left:auto;display:flex;align-items:center;gap:12px}
.timer{font-weight:600;font-size:17px;color:var(--mid);background:var(--mist);padding:5px 12px;border-radius:8px;min-width:76px;text-align:center}
.timer.low{color:#fff;background:var(--salmon)}
.ppl{display:flex;align-items:center}
.av{width:28px;height:28px;border-radius:50%;background:var(--mid);color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;margin-left:-7px;font-weight:500}
.av.neu{background:var(--blue)}
.count{font-size:12px;color:var(--grey);white-space:nowrap}
.menu{position:relative}
.menu > button{background:var(--mist);border:0;border-radius:8px;height:34px;padding:0 12px;font-size:13px}
.menu .dd{position:absolute;right:0;top:40px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.1);padding:6px;min-width:220px;z-index:50}
.menu .dd button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:8px;font-size:14px}
.menu .dd button:hover{background:var(--mist)}
.menu .dd .who{padding:10px 12px;font-size:12px;color:var(--grey);border-bottom:1px solid var(--line);margin-bottom:4px}
.body{flex:1;display:flex;min-height:0}
.rail{width:78px;flex:none;border-right:1px solid var(--line);padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;z-index:10}
.rail .lab{font-size:10px;color:var(--grey);text-align:center;line-height:1.2}
.pad{width:44px;height:44px;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.18);border:2px solid transparent}
.pad.on{border-color:var(--mid)}
.add{width:52px;height:52px;border-radius:50%;background:var(--blue);color:#fff;font-size:28px;border:0;line-height:1;margin-bottom:6px}
.main{flex:1;display:flex;flex-direction:column;min-width:0;background:#FAFAFB}
.banner{flex:none;padding:10px 20px;font-size:14px;color:var(--grey);font-weight:300;display:flex;align-items:center;gap:12px;min-height:46px}
.banner b{color:var(--ink);font-weight:500}
.banner .chip{background:var(--blue);color:#fff;font-size:12px;font-weight:500;padding:3px 10px;border-radius:999px;white-space:nowrap}
.banner .chip.ex{background:var(--mid)}
.banner.focus{background:#EAF2FF;color:var(--ink)}
.stage{flex:1;position:relative;overflow:hidden;touch-action:none}
.board{position:absolute;left:0;top:0;width:1600px;height:860px;transform-origin:0 0}
.board svg.poster{position:absolute;left:0;top:0}
.lanehead{color:#fff;font-weight:500;font-size:15px;height:60px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 8px;line-height:1.2;font-family:Poppins,"Segoe UI",sans-serif}
.zone{position:absolute;border:2px dashed rgba(0,102,255,.35);border-radius:14px;transition:opacity .2s,box-shadow .2s,background .2s}
.zone .zl{position:absolute;top:-14px;left:14px;background:var(--blue);color:#fff;font-size:12px;font-weight:500;padding:3px 10px;border-radius:999px;white-space:nowrap;border:0}
.zone .zl.mid{background:var(--mid)}.zone .zl.sal{background:var(--salmon)}
.zone .zd{position:absolute;left:14px;right:14px;top:16px;font-size:12px;line-height:1.4;color:var(--mid);background:rgba(255,255,255,.92);border-radius:8px;padding:8px 10px;font-weight:300;pointer-events:none}
.zone.dim{opacity:.22}
.zone.on{border:3px solid var(--blue);background:rgba(0,102,255,.05);box-shadow:0 0 0 6px rgba(0,102,255,.12)}
.zone.fac .zl{cursor:pointer}
.addlane{position:absolute;top:40px;height:60px;border:2px dashed var(--blue);border-radius:10px;background:#fff;color:var(--blue);font-weight:500;font-size:14px}
.note{position:absolute;width:150px;min-height:96px;padding:9px 10px 22px;font-size:13px;line-height:1.35;box-shadow:0 2px 6px rgba(0,0,0,.14);border-radius:3px;cursor:grab;user-select:none;word-wrap:break-word;transition:opacity .2s}
.note .by{position:absolute;left:10px;bottom:5px;right:10px;font-size:10px;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.note .x{position:absolute;right:2px;top:0;border:0;background:none;color:var(--grey);font-size:14px;display:none;padding:2px 5px}
.note:hover .x{display:block}
.note.mine{outline:1.5px solid rgba(0,5,61,.25)}
.note.drag{transform:rotate(-2.5deg);box-shadow:0 12px 26px rgba(0,0,0,.25);z-index:30;cursor:grabbing}
.note.remote{transition:left .08s linear,top .08s linear}
.note.dim{opacity:.25}
.note.ex{border:1.5px dashed rgba(0,5,61,.35);cursor:default}
.note.ex .tag{position:absolute;right:8px;bottom:5px;font-size:9px;color:var(--grey);text-transform:none}
.mover{position:absolute;font-size:11px;background:var(--iris);color:#fff;padding:2px 8px;border-radius:999px;white-space:nowrap;pointer-events:none;z-index:31}
.img{position:absolute;z-index:1}
.img img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}
.img.fac{cursor:move;outline:1px dashed transparent}
.img.fac:hover{outline-color:var(--blue)}
.img .rz{position:absolute;right:-6px;bottom:-6px;width:14px;height:14px;background:var(--blue);border-radius:3px;cursor:nwse-resize;display:none}
.img .del{position:absolute;right:-10px;top:-10px;width:22px;height:22px;border-radius:50%;border:0;background:var(--salmon);color:#fff;font-size:12px;display:none}
.img.fac:hover .rz,.img.fac:hover .del{display:block}
/* facilitator bar */
.fbar{background:var(--mid);color:#fff;padding:7px 14px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:none}
.fbar .t{font-size:11px;opacity:.7;padding:0 6px}
.fbar button{background:rgba(255,255,255,.1);color:#fff;border:0;border-radius:10px;height:34px;padding:0 12px;font-size:12.5px}
.fbar button.on{background:var(--blue)}
.fbar select{height:34px;border-radius:10px;border:0;padding:0 8px;font-size:12.5px;max-width:220px}
.fbar .sep{width:1px;height:22px;background:rgba(255,255,255,.2);margin:0 4px}
.hidchip{position:absolute;right:16px;top:12px;background:var(--mid);color:#fff;font-size:12px;padding:6px 12px;border-radius:999px;z-index:15}
/* modal */
.modal{position:fixed;inset:0;background:rgba(0,5,61,.35);display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}
.sheet{background:#fff;border-radius:16px;padding:22px;width:100%;max-width:440px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.sheet h3{margin:0 0 4px;font-weight:500;font-size:18px}
.sheet .zinfo{font-size:13px;color:var(--grey);font-weight:300;margin:0 0 14px;line-height:1.45}
.sheet textarea{width:100%;min-height:120px;border:1.5px solid #D5D8E0;border-radius:10px;padding:12px;resize:vertical;font-size:16px}
.sheet .row{display:flex;align-items:center;gap:8px;margin-top:14px}
.sheet .row .sp{flex:1}
.sw{width:30px;height:30px;border-radius:6px;border:2px solid transparent;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.sw.on{border-color:var(--mid)}
.sheet select{width:100%;height:44px;border:1.5px solid #D5D8E0;border-radius:10px;padding:0 10px;margin-top:10px}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-size:13px;z-index:200}
/* phone */
.phone{flex:1;overflow:auto;padding:16px;background:#FAFAFB}
.pcard{background:#fff;border-radius:14px;padding:16px;margin-bottom:14px;border:1px solid var(--line)}
.pcard .zl{display:inline-block;background:var(--blue);color:#fff;font-size:12px;font-weight:500;padding:3px 10px;border-radius:999px;margin-bottom:8px}
.pcard p{margin:0;font-size:14px;font-weight:300;line-height:1.5;color:var(--grey)}
.pnote{border-radius:6px;padding:12px;margin-bottom:10px;font-size:14px;position:relative}
.pnote .by{font-size:11px;color:var(--grey);margin-top:6px}
.pnote .acts{display:flex;gap:6px;margin-top:8px;justify-content:flex-end}
.pnote .acts button{border:0;background:rgba(255,255,255,.7);border-radius:6px;font-size:12px;padding:4px 8px}
.pzones{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:10px}
.pzones button{white-space:nowrap;border:0;background:var(--mist);border-radius:999px;padding:8px 14px;font-size:13px}
.pzones button.on{background:var(--blue);color:#fff}
.bigadd{width:100%;height:54px;border-radius:999px;background:var(--blue);color:#fff;border:0;font-size:16px;font-weight:500;margin:6px 0 16px}
@media (max-width:820px){.top{height:56px;padding:0 12px;gap:10px}.tabs,.ppl,.count{display:none}.rail{display:none}.sess small{display:none}}
/* playback */
.pb{max-width:1100px;margin:0 auto;padding:40px 32px 80px}
.pb header{display:flex;align-items:center;gap:16px;margin-bottom:30px}
.pb header img{height:26px}
.pb h1{font-weight:500;font-size:34px;margin:0}
.pb .meta{color:var(--grey);font-weight:300;margin:4px 0 0}
.pb h2{font-weight:500;color:var(--blue);font-size:24px;margin:40px 0 10px;border-bottom:2px solid var(--blue);padding-bottom:6px}
.pb h3{font-weight:600;font-size:16px;margin:22px 0 10px}
.pb .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.pb .card{border-radius:6px;padding:12px 14px;font-size:14px;line-height:1.4;break-inside:avoid}
.pb .card .by{font-size:11px;color:var(--grey);margin-top:8px}
.pb .none{color:var(--grey);font-size:13px;font-weight:300}
.pb .acts{margin-left:auto;display:flex;gap:8px}
@media print{.pb .acts{display:none}.pb{padding:0}.pb h2{break-before:page}.pb h2:first-of-type{break-before:auto}}
/* ---- v2: theme, colour and motion ---- */
:root{--accent:#0066FF}
.jl.themed{background:var(--accent)}
.jl .plogo{height:44px;filter:brightness(0) invert(1)}
.jl .jsub{position:relative;z-index:1;font-size:17px;font-weight:500;margin:-6px 0 18px;opacity:.95}
.jl h1{margin-top:90px}
.jl .powered{position:absolute;left:64px;bottom:40px;font-size:13px;font-weight:300;display:flex;align-items:center;gap:10px;z-index:1}
.jl .powered img{height:20px;filter:brightness(0) invert(1)}
@media (max-width:820px){.jl .powered{position:static;margin-top:18px}.jl .plogo{height:32px}.jl h1{margin-top:30px}}
.btn.accent{background:var(--accent)}
.top{border-bottom:3px solid var(--accent)}
.top .plogo{height:22px}
.top .lsep{width:1px;height:26px;background:var(--line)}
.top .nlogo{height:18px}
.main{background:linear-gradient(180deg,#FFF9F4 0,#FAFAFB 160px)}
.banner .sp{flex:1}
.banner{flex-wrap:wrap}
.banner.exmode{background:#F1EAFE}
.exbtn{background:#fff;color:var(--mid);border:1.5px solid var(--accent);height:34px;padding:0 14px;font-size:13px}
.exbtn .ic{color:var(--accent)}
.zl{display:inline-flex;align-items:center;gap:6px}
.zl .ic{flex:none}
.zone.c-blue{background:rgba(204,224,255,.18)}.zone.c-mint{background:rgba(199,251,230,.22)}.zone.c-celeste{background:rgba(196,246,251,.22)}
.zone.c-salmon{background:rgba(255,211,227,.22)}.zone.c-iris{background:rgba(228,216,254,.25)}.zone.c-grey{background:rgba(236,236,239,.25)}
.zone .zl{font-size:13px;padding:4px 12px;top:-15px;box-shadow:0 2px 6px rgba(0,5,61,.15)}
.zone.c-mint .zl:not(.mid):not(.sal){background:#00A06A}.zone.c-celeste .zl:not(.mid):not(.sal){background:#0093A3}.zone.c-iris .zl:not(.mid):not(.sal){background:#7A4FE0}
.zedit{position:absolute;right:10px;top:-14px;display:flex;gap:4px}
.zedit button,.laneedit button{width:26px;height:26px;border-radius:50%;border:0;background:#fff;color:var(--mid);box-shadow:0 2px 6px rgba(0,0,0,.2);font-size:12px}
.laneedit{position:absolute;display:flex;gap:4px;z-index:5}
.note .by{display:flex;align-items:center;gap:5px}
.note .by i,.pnote .by i{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}
.pnote .by{display:flex;align-items:center;gap:6px}
@keyframes pop{0%{transform:scale(.4) rotate(-6deg);opacity:0}70%{transform:scale(1.06) rotate(1deg);opacity:1}100%{transform:scale(1) rotate(0)}}
@keyframes reveal{0%{transform:translateY(-30px) scale(.6) rotate(-8deg);opacity:0}100%{transform:none;opacity:1}}
.note.pop,.pnote.pop{animation:pop .45s ease-out both}
.note.reveal{animation:reveal .5s cubic-bezier(.2,.9,.3,1.2) both}
.ptitle{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--grey);margin-bottom:8px}
.pcard .zl{display:inline-flex;align-items:center;gap:6px;background:var(--accent)}
.bigadd{background:var(--accent)}
.add{background:var(--accent)}
/* QR wall */
.qrwall{position:fixed;inset:0;background:#fff;z-index:150;display:flex;align-items:center;justify-content:center;padding:30px;border-top:8px solid var(--accent)}
.qrin{width:100%;max-width:1100px}
.qrl{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.qrl .plogo{height:40px}.qrl .nlogo{height:26px}.qrl .lsep{width:1px;height:36px;background:var(--line)}
.qrin h2{font-weight:500;font-size:44px;margin:0 0 6px}
.qsub{font-size:20px;font-weight:300;color:var(--grey);margin:0 0 28px}
.qsub b{color:var(--accent);font-weight:600}
.qrrow{display:flex;gap:40px;align-items:flex-start;margin-bottom:28px}
.qside{flex:1}
.qcount{font-size:56px;font-weight:600;color:var(--mid);margin-bottom:14px}
.qppl{display:flex;flex-wrap:wrap;gap:10px;max-height:300px;overflow:auto}
.qp{display:flex;align-items:center;gap:8px;background:var(--mist);border-radius:999px;padding:4px 14px 4px 4px;font-size:15px;animation:pop .4s ease-out both}
.qp .av{margin:0;width:30px;height:30px;font-size:11px}

.tab.on{background:var(--accent)}
.menu > button{white-space:nowrap}
.tabs .tab{padding:7px 12px}
