/* Sygna Phase 17B — live app demos (Home page) and the Small/Big panel demo (My account → Preferences).
   Everything is drawn with HTML: no videos, so it loads fast and stays sharp. */
.sy-demo{min-width:0;width:100%;box-sizing:border-box;--d-blue:#0758a6;--d-ink:#123b5c;--d-muted:#577080;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--d-ink);margin:26px auto 0;max-width:760px}
/* the video player: same size and look for every demo, like a familiar online video */
.dm-player{position:relative;border-radius:14px;overflow:hidden;background:#0f0f0f;box-shadow:0 18px 44px #0a427030;outline:none;user-select:none;-webkit-user-select:none}
.dm-player:focus-visible{box-shadow:0 0 0 3px #a7df38,0 18px 44px #0a427030}
.dm-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;cursor:pointer;background:radial-gradient(ellipse at 50% 40%,#22394d 0,#101820 70%)}
.dm-player:fullscreen{border-radius:0;display:flex;flex-direction:column;justify-content:center}
.dm-player:fullscreen .dm-stage{aspect-ratio:auto;height:100%}
.dm-scale{position:absolute;left:0;top:0;width:640px;height:430px;transform-origin:0 0;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 10px 40px #0008;pointer-events:none}
.dm-shade{position:absolute;left:0;right:0;top:0;padding:12px 16px 30px;background:linear-gradient(#000a,transparent);color:#fff;font-weight:700;font-size:15px;opacity:0;transition:opacity .25s;pointer-events:none}
.dm-sub{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:center;padding:0 16px;pointer-events:none;transition:bottom .25s}
.dm-sub span{background:#000000c4;color:#fff;border-radius:6px;padding:6px 12px;font-size:clamp(13px,2vw,17px);font-weight:600;line-height:1.35;text-align:center;max-width:92%;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.dm-sub span:empty{display:none}
.dm-big{position:absolute;left:50%;top:50%;width:68px;height:48px;margin:-24px 0 0 -34px;border:0;border-radius:14px;background:#ff0000e6;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px #0006;transition:transform .15s,background .15s}
.dm-big:hover{transform:scale(1.06);background:#ff0000}.dm-big svg{width:30px;height:30px}.dm-big[hidden]{display:none}
.dm-flash{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;background:#0009;color:#fff;display:grid;place-items:center;opacity:0;pointer-events:none}
.dm-flash svg{width:30px;height:30px}.dm-flash.go{animation:dmFlash .6s ease-out}
@keyframes dmFlash{from{opacity:1;transform:scale(.8)}to{opacity:0;transform:scale(1.5)}}
.dm-ctrls{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 6px;background:linear-gradient(transparent,#000c);color:#fff;opacity:0;transition:opacity .25s}
.dm-player.show .dm-ctrls,.dm-player.paused .dm-ctrls,.dm-player.show .dm-shade,.dm-player.paused .dm-shade{opacity:1}
.dm-player.show .dm-sub,.dm-player.paused .dm-sub{bottom:66px}
.dm-prog{position:relative;display:flex;gap:3px;height:16px;align-items:center;cursor:pointer;outline:none}
.dm-seg{position:relative;height:4px;background:#ffffff4d;border-radius:2px;overflow:hidden;transition:height .12s}
.dm-seg i{position:absolute;left:0;top:0;bottom:0;width:0;background:#ff0000}
.dm-prog:hover .dm-seg{height:6px}
.dm-tip{position:absolute;bottom:20px;left:0;transform:translateX(-50%);background:#000d;color:#fff;font-size:12px;font-weight:600;border-radius:6px;padding:4px 8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.dm-row{display:flex;align-items:center;gap:4px;height:36px}
.dm-b{width:36px;height:36px;border:0;background:none;color:#fff;display:grid;place-items:center;cursor:pointer;border-radius:8px;padding:0}
.dm-b:hover,.dm-b:focus-visible{background:#ffffff26;outline:none}.dm-b svg{width:24px;height:24px}.dm-b[hidden]{display:none}
.dm-time{font-size:13px;font-variant-numeric:tabular-nums;margin-left:6px;white-space:nowrap}
.dm-chap{font-size:13px;color:#ddd;margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dm-sp{flex:1}
.dm-menu{position:absolute;right:10px;bottom:62px;width:230px;max-height:70%;overflow:auto;background:#1c1c1ceb;border-radius:12px;padding:6px;color:#fff;z-index:5}
.dm-menu[hidden]{display:none}
.dm-mh{font-size:12px;font-weight:700;color:#bbb;padding:6px 10px}
.dm-menu button,.dm-steps-list button{display:flex;gap:10px;align-items:center;width:100%;border:0;background:none;color:inherit;text-align:left;cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;padding:8px 10px;border-radius:8px}
.dm-menu button:hover,.dm-menu button.on{background:#ffffff1f}
.dm-menu .t,.dm-steps-list .t{font-variant-numeric:tabular-nums;color:#3ea6ff;font-size:12px;font-weight:700;min-width:30px}
.dm-info{margin-top:12px}.dm-info h3{margin:0;font-size:19px;letter-spacing:-.3px}.dm-info p{margin:2px 0 0;color:var(--d-muted);font-size:14px}
.dm-steps-list{display:flex;gap:6px;overflow-x:auto;margin-top:10px;padding-bottom:4px;scrollbar-width:thin}
.dm-steps-list button{flex:none;width:auto;background:#fff;border:1px solid #dfeef0;color:var(--d-ink);border-radius:10px}
.dm-steps-list .t{color:#065fd4}
.dm-steps-list button.on{border-color:var(--d-blue);box-shadow:0 0 0 2px #0758a622}
:root[data-theme=navy] .sy-demo .dm-info h3{color:inherit}
@media(max-width:600px){.dm-row{height:32px}.dm-b{width:32px;height:32px}.dm-chap{display:none}.dm-player.show .dm-sub,.dm-player.paused .dm-sub{bottom:58px}.dm-big{width:58px;height:42px;margin:-21px 0 0 -29px}}
.dm-bar{height:30px;background:#eef3f6;display:flex;align-items:center;gap:6px;padding:0 10px;border-bottom:1px solid #e1eaef}
.dm-bar i{width:9px;height:9px;border-radius:50%;background:#cfdbe2}
.dm-url{margin-left:10px;flex:1;height:20px;border-radius:99px;background:#fff;font-size:11px;color:#577080;display:flex;align-items:center;padding:0 10px;gap:6px}
.dm-url b{color:#31b985;font-size:10px}
.dm-ext{width:22px;height:22px;border-radius:6px;display:grid;place-items:center}
.dm-ext svg{width:20px;height:20px}
.dm-view{position:absolute;left:0;top:30px;width:640px;height:400px;overflow:hidden;background:#f6fafc;font-size:13px}
.dm-view .dm-screen{position:absolute;inset:0;animation:dmIn .22s ease-out}
@keyframes dmIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.dm-cursor{position:absolute;left:600px;top:380px;width:18px;height:18px;z-index:50;pointer-events:none;transition:left var(--mv,.52s) cubic-bezier(.4,.1,.2,1),top var(--mv,.52s) cubic-bezier(.4,.1,.2,1)}
.dm-cursor.fast{transition-duration:.25s}
.dm-ripple{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:#0758a640;z-index:49;pointer-events:none;animation:dmRip .4s ease-out forwards}
@keyframes dmRip{from{transform:scale(.3);opacity:1}to{transform:scale(1.6);opacity:0}}
/* building blocks inside the mock app */
.dm-top{position:absolute;left:0;right:0;top:0;height:40px;background:#fff;border-bottom:1px solid #e4eff0;display:flex;align-items:center;padding:0 14px;gap:8px;font-weight:850;color:#0758a6;font-size:15px}
.dm-top .mk{width:24px;height:24px;border-radius:7px;background:#0758a6;display:grid;place-items:center}
.dm-top .mk svg{width:24px;height:24px}
.dm-top .nav{margin-left:auto;display:flex;gap:12px;font-size:11px;font-weight:600;color:#577080}
.dm-abs{position:absolute}
.dm-btn{position:absolute;background:#0758a6;color:#fff;border-radius:99px;padding:8px 15px;font-weight:700;font-size:12.5px;white-space:nowrap;transition:transform .12s,background .2s}
.dm-btn.alt{background:#fff;color:#0758a6;border:1px solid #bcd9e4}
.dm-btn.lime{background:#a7df38;color:#123b5c}
.dm-btn.press{transform:scale(.94)}
.dm-in{position:absolute;background:#fff;border:1px solid #cfe0e8;border-radius:9px;height:32px;padding:0 10px;display:flex;align-items:center;font-size:12.5px;color:#123b5c;overflow:hidden;white-space:nowrap}
.dm-in.focus{border-color:#0758a6;box-shadow:0 0 0 3px #0758a622}
.dm-in .ph{color:#9db0bb}
.dm-card{position:absolute;background:#fff;border:1px solid #dfeef0;border-radius:14px;box-shadow:0 10px 28px #0a42701a;padding:14px}
.dm-card h4{margin:0 0 8px;font-size:15px}
.dm-lbl{font-size:10.5px;font-weight:700;color:#577080;margin:6px 0 3px}
.dm-page{position:absolute;background:#fff;border-radius:4px;box-shadow:0 6px 18px #0a42701c;padding:16px 18px;overflow:hidden}
.dm-page .l{height:6px;border-radius:3px;background:#e3edf2;margin:8px 0}
.dm-page .l.s{width:55%}.dm-page .l.m{width:75%}
.dm-page .h{height:10px;width:45%;border-radius:3px;background:#c9dbe5;margin:2px 0 12px}
.dm-page .sl{position:absolute;height:1px;background:#9fb4c0}
.dm-sig{position:absolute;font-family:"Sygna Calligraphy","Palatino Linotype",serif;font-style:italic;color:#173b5e;font-size:26px;line-height:1;white-space:nowrap;animation:dmPop .3s ease-out}
.dm-sig.ini{font-size:18px}
@keyframes dmPop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
.dm-stamp{position:absolute;font:600 8.5px/1.2 Inter,system-ui,sans-serif;color:#577080;white-space:nowrap;animation:dmPop .3s ease-out}
.dm-box{position:absolute;border:1.6px dashed #31b985;border-radius:6px;background:#31b98512;color:#177e62;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;animation:dmPop .3s ease-out}
.dm-box.other{border-color:#e08a00;background:#fff4dd;color:#8a5f00}
.dm-toast{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);background:#123b5c;color:#fff;border-radius:99px;padding:9px 16px;font-weight:700;font-size:12.5px;white-space:nowrap;z-index:40;animation:dmUp .3s ease-out}
.dm-toast b{color:#a7df38}
@keyframes dmUp{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
.dm-steps{position:absolute;left:14px;top:54px;width:190px}
.dm-st{background:#fff;border:1px solid #dfeef0;border-radius:12px;padding:9px 10px;margin-bottom:7px;display:flex;gap:9px;align-items:center;font-weight:700;font-size:12.5px;color:#8aa0ad;transition:all .25s}
.dm-st .n{width:22px;height:22px;border-radius:7px;background:#e7f5fa;color:#0758a6;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}
.dm-st.cur{border-color:#8ecbd6;color:#123b5c;box-shadow:0 6px 16px #0a427014}
.dm-st.ok{color:#123b5c}.dm-st.ok .n{background:#a7df38;color:#123b5c}
.dm-st small{display:block;font-weight:500;color:#577080;font-size:10.5px}
.dm-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #dfeef0;border-radius:10px;padding:6px 9px;font-size:11.5px;font-weight:700}
.dm-tabs{display:flex;gap:4px;background:#eef4f8;border-radius:99px;padding:3px;width:max-content}
.dm-tabs span{padding:5px 12px;border-radius:99px;font-size:11.5px;font-weight:700;color:#577080;transition:all .2s}
.dm-tabs span.on{background:#fff;color:#0758a6;box-shadow:0 2px 6px #0a427018}
.dm-pad{position:absolute;background:#fff;border:1.5px dashed #bcd2dc;border-radius:12px}
.dm-pad svg{width:100%;height:100%}
.dm-pad path{fill:none;stroke:#173b5e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.dm-tg{display:inline-block;width:34px;height:20px;border-radius:99px;background:#c9d6de;position:relative;transition:background .2s;vertical-align:middle}
.dm-tg::after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .2s}
.dm-tg.on{background:#31b985}.dm-tg.on::after{left:17px}
.dm-pen{position:absolute;width:46px;height:46px;border-radius:50%;background:#0758a6;display:grid;place-items:center;box-shadow:0 8px 20px #0a427040;transition:left .45s,top .45s,background .3s,box-shadow .3s;animation:dmPop .35s ease-out;z-index:30}
.dm-pen svg{width:26px;height:26px}
.dm-pen.min{background:#fff;box-shadow:0 0 0 2px #0758a6,0 6px 14px #0a427030}
.dm-pen.min .pk{fill:#0758a6}
.dm-ok{color:#177e62;font-weight:800}.dm-bad{color:#c2412d;font-weight:800}
.dm-hash{font:600 11px/1.5 ui-monospace,Consolas,monospace;word-break:break-all;color:#123b5c;background:#f2f7fa;border-radius:8px;padding:8px 10px}
.dm-hash.bad{color:#c2412d;background:#fdeceb}
.dm-fade{transition:opacity .3s,transform .3s}
.dm-hide{opacity:0;transform:scale(.95)}
@media(max-width:760px){.sy-demo .dm-cap{font-size:14px}.sy-demo .dm-head h3{font-size:19px}}

/* ---- My account → Preferences: Small panel vs Big panel ---- */
.sy-panels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:6px 0 4px}
.sy-panels label{position:relative;display:block;border:2px solid #dfeef0;border-radius:16px;padding:10px;cursor:pointer;background:#fff;color:#123b5c;transition:border-color .2s,box-shadow .2s}
.sy-panels label:has(input:checked){border-color:#0758a6;box-shadow:0 0 0 3px #0758a61f}
.sy-panels input{position:absolute;opacity:0;pointer-events:none}
.sy-panels .t{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:14px;margin-bottom:6px}
.sy-panels .t i{font-style:normal;font-size:11px;font-weight:700;color:#fff;background:#0758a6;border-radius:99px;padding:2px 8px;visibility:hidden}
.sy-panels label:has(input:checked) .t i{visibility:visible}
.sy-panels p{margin:6px 0 0;font-size:12.5px;color:#577080;line-height:1.45}
.pp{position:relative;height:150px;border-radius:10px;background:#f6fafc;border:1px solid #e4eef2;overflow:hidden}
.pp .pl{position:absolute;left:12px;right:60px;height:5px;border-radius:3px;background:#e1ebf0}
.pp .pen{position:absolute;right:10px;bottom:10px;width:26px;height:26px;border-radius:50%;background:#0758a6;display:grid;place-items:center;animation:ppPen 6s infinite}
.pp .pen svg{width:16px;height:16px}
.pp .card{position:absolute;right:42px;bottom:12px;width:96px;background:#fff;border-radius:9px;box-shadow:0 6px 16px #0a427026;padding:7px;font-size:8px;font-weight:700;transform-origin:100% 100%;animation:ppCard 6s infinite}
.pp .card .sig{font-family:"Sygna Calligraphy","Palatino Linotype",serif;font-style:italic;font-size:13px;color:#173b5e;margin:3px 0 5px;font-weight:400}
.pp .card .b{display:inline-block;background:#0758a6;color:#fff;border-radius:99px;padding:2px 6px;font-size:7px;margin-right:3px}
.pp .drawer{position:absolute;top:0;right:0;bottom:0;width:46%;background:#fff;box-shadow:-6px 0 16px #0a427022;padding:8px;font-size:8px;font-weight:700;animation:ppDrawer 6s infinite}
.pp .drawer .s{display:flex;gap:5px;align-items:center;border:1px solid #e1ebf0;border-radius:6px;padding:4px 5px;margin-bottom:4px;color:#577080}
.pp .drawer .s b{width:12px;height:12px;border-radius:4px;background:#e7f5fa;color:#0758a6;display:grid;place-items:center;font-size:7px}
.pp .drawer .s.on{border-color:#8ecbd6;color:#123b5c}
.pp .drawer .sig{font-family:"Sygna Calligraphy","Palatino Linotype",serif;font-style:italic;font-size:12px;color:#173b5e;font-weight:400;margin:2px 0 0 17px}
.pp .placed{position:absolute;left:16px;top:96px;font-family:"Sygna Calligraphy","Palatino Linotype",serif;font-style:italic;font-size:15px;color:#173b5e;animation:ppSig 6s infinite}
@keyframes ppPen{0%,8%{transform:scale(1)}12%{transform:scale(.85)}16%,100%{transform:scale(1)}}
@keyframes ppCard{0%,12%{opacity:0;transform:scale(.6)}20%,88%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ppDrawer{0%,12%{transform:translateX(105%)}22%,88%{transform:none}96%,100%{transform:translateX(105%)}}
@keyframes ppSig{0%,45%{opacity:0;transform:scale(.7)}52%,90%{opacity:1;transform:none}96%,100%{opacity:0}}
.pp.min .pen{background:#fff;box-shadow:0 0 0 1.5px #0758a6}.pp.min .pen .pk{fill:#0758a6}
@media (prefers-reduced-motion:reduce){.pp *{animation:none!important}.pp .card,.pp .placed{opacity:1}}
@media(max-width:520px){.sy-panels{grid-template-columns:1fr}}

/* ---- "The floating pencil for Chrome" card ---- */
.sy-chrome{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:linear-gradient(135deg,#e8f3fc,#effbf3);border:1px solid #d3e7ef;border-radius:18px;padding:14px 16px;color:#123b5c}
.sy-chrome .pi{width:48px;height:48px;border-radius:50%;background:#0758a6;display:grid;place-items:center;flex:none;box-shadow:0 8px 18px #0758a640}
.sy-chrome .pi svg{width:28px;height:28px}
.sy-chrome .tx{flex:1 1 220px}
.sy-chrome .tx b{display:block;font-size:15px}
.sy-chrome .tx span{font-size:13px;color:#577080}
.sy-chrome .go{background:#0758a6;color:#fff;border:0;border-radius:99px;padding:11px 16px;font-family:inherit;font-size:14px;font-weight:800;line-height:1;text-decoration:none;white-space:nowrap;display:inline-block}
.sy-chrome .cp-soon{background:#fff;color:#577080;border:1px dashed #9fb4c0;border-radius:99px;padding:9px 14px;font-size:13px;font-weight:700;white-space:nowrap}
.sy-chrome .yes{color:#177e62;font-weight:800;font-size:14px;white-space:nowrap}
:root[data-theme=navy] .sy-chrome{background:#ffffff14;border-color:#ffffff2a;color:inherit}
:root[data-theme=navy] .sy-chrome .tx span{color:#cfe5ef}
:root[data-theme=navy] .sy-chrome .pi{background:#fff}:root[data-theme=navy] .sy-chrome .pi .pk{fill:#0758a6}
.dm-ext[hidden]{display:none}
.dm-big{z-index:3}
