/* Desktop install walkthrough: step list, a scaled 960x560 "Windows desktop" stage, and an explanation panel.
   Scenes switch with .on; each scene's beats add classes (set by install.js) that the rules below react to. */

.iw{width:min(1160px,calc(100vw - 32px));margin:96px 0 0;padding-top:64px;border-top:1px solid var(--rule);text-align:center}
.iw h2{margin:0;font-size:clamp(26px,3.4vw,36px);line-height:1.1;letter-spacing:-.035em;font-weight:760;color:var(--ink)}
.iw-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;margin-top:36px;text-align:left;align-items:start}

/* Step list */
.iw-steps{list-style:none;margin:0;padding:0;display:grid;gap:6px;position:sticky;top:100px}
.iw-step{position:relative;display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer;overflow:hidden;transition:background-color .2s,border-color .2s}
.iw-step:hover{background:var(--mint-soft)}
.iw-step .n{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;border:1px solid var(--rule);font-size:14px;font-weight:700;color:var(--pencil);transition:background-color .25s,color .25s,border-color .25s}
.iw-step .t{display:flex;flex-direction:column;gap:2px;min-width:0}
.iw-step b{font-size:15px;line-height:1.25}
.iw-step small{font-size:13px;color:var(--pencil);line-height:1.3}
.iw-step[aria-selected="true"]{background:var(--card,#fff);border-color:var(--rule);box-shadow:0 10px 26px -18px rgba(15,40,28,.45)}
.iw-step[aria-selected="true"] .n,.iw-step.done .n{background:var(--mint);border-color:var(--mint);color:#04140B}
.iw-step .bar{position:absolute;left:14px;right:14px;bottom:0;height:3px;border-radius:3px;overflow:hidden}
.iw-step .bar i{display:block;height:100%;width:0;background:var(--mint)}
.iw-step:focus-visible,.iw-btn:focus-visible{outline:2px solid var(--mint-ink);outline-offset:2px}

/* Stage */
.iw-main{min-width:0}
.iw-fit{position:relative;width:100%;border-radius:18px;overflow:hidden;box-shadow:0 30px 70px -40px rgba(15,40,28,.7),0 0 0 1px var(--rule)}
.iw-screen{position:absolute;left:0;top:0;width:960px;height:560px;transform-origin:0 0;overflow:hidden;
  background:radial-gradient(120% 90% at 20% 10%,#1C6B55 0%,#0F3A33 45%,#0A1F22 100%);
  font-family:"Segoe UI Variable","Segoe UI",system-ui,var(--sans);color:#1B1B1B;text-align:left;-webkit-user-select:none;user-select:none}
.iw-screen img{display:block}
.iw-screen::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 50% at 85% 85%,rgba(41,213,139,.25),transparent 70%)}
.sc{position:absolute;left:0;top:0;right:0;bottom:48px;opacity:0;visibility:hidden;transition:opacity .35s,visibility 0s .35s}
.sc.on{opacity:1;visibility:visible;transition:opacity .35s}

/* Shared window bits */
.w-ctl{margin-left:auto;display:flex;gap:16px;padding-right:4px}
.w-ctl i{width:10px;height:10px;border:1.5px solid #8A8A8A;border-radius:1px}
.w-ctl i:first-child{height:0;border-width:1.5px 0 0;margin-top:5px}
.w-ctl i:last-child{border:0;position:relative}
.w-ctl i:last-child::before,.w-ctl i:last-child::after{content:"";position:absolute;left:-1px;top:4px;width:13px;height:1.5px;background:#8A8A8A;transform:rotate(45deg)}
.w-ctl i:last-child::after{transform:rotate(-45deg)}
.w-nav{width:14px;height:14px;border-radius:50%;background:#C9CED0}
.w-nav.r{border-radius:3px}
.w-omni{flex:1;height:28px;display:flex;align-items:center;padding:0 14px;border-radius:999px;background:#EEF1F2;font-size:12.5px;color:#4A5257}

/* 1. Browser + download bubble */
.w-br{position:absolute;left:70px;top:28px;width:820px;height:440px;border-radius:10px;background:#fff;box-shadow:0 30px 60px -25px rgba(0,0,0,.6);overflow:hidden}
.w-br-tabs{display:flex;align-items:center;height:36px;padding:0 10px;background:#DFE3E6}
.w-tab{display:flex;align-items:center;gap:8px;height:28px;margin-top:8px;padding:0 14px;border-radius:9px 9px 0 0;background:#fff;font-size:12px;color:#2A2F33}
.w-tab img{width:15px;height:15px;border-radius:4px}
.w-br-tool{display:flex;align-items:center;gap:12px;height:44px;padding:0 14px;border-bottom:1px solid #E5E8EA}
.w-dlico{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#4A5257;transition:background-color .3s,color .3s}
.w-dlico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.w-br-page{display:flex;flex-direction:column;align-items:center;padding-top:46px;gap:10px}
.w-pg-icon{width:76px;height:76px;border-radius:18px;box-shadow:0 12px 26px -14px rgba(0,0,0,.4)}
.w-pg-h{margin-top:10px;font-size:28px;letter-spacing:-.02em;font-weight:750}
.w-pg-s{font-size:14px;color:#5F676B}
.w-pg-btn{display:flex;align-items:center;gap:10px;margin-top:18px;padding:13px 22px;border-radius:11px;background:#0F1512;color:#fff;font-size:14.5px;font-weight:650;transition:transform .15s}
.w-pg-btn svg{width:15px;height:15px;fill:currentColor}
.w-bub{position:absolute;right:12px;top:78px;width:330px;padding:14px 16px 12px;border-radius:12px;background:#fff;box-shadow:0 16px 40px -12px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.06);opacity:0;transform:translateY(-8px) scale(.97);transform-origin:top right;transition:opacity .3s,transform .35s cubic-bezier(.22,.8,.24,1)}
.w-bub>b{font-size:13px}
.w-bub-row{display:flex;gap:12px;margin-top:12px;align-items:center}
.w-file{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#EEF6F2;color:#0B7A4A}
.w-file svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.w-bub-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.w-bub-t b{font-size:12.5px;font-weight:600}
.w-bub-p{height:4px;border-radius:3px;background:#E3E8E5;overflow:hidden}
.w-bub-p i{display:block;height:100%;width:0;background:#1A73E8}
.w-bub-ok{display:none;font-size:11.5px;color:#5F676B}
.w-bub-open{display:inline-block;margin:10px 0 0 46px;padding:6px 12px;border-radius:999px;font-size:12.5px;font-weight:600;color:#0B57D0;opacity:.35;transition:opacity .2s,background-color .2s}
.sc-dl.dling .w-dlico{background:#E8F0FE;color:#0B57D0}
.sc-dl.dling .w-bub{opacity:1;transform:none}
.sc-dl.dling .w-bub-p i{width:100%;transition:width 1.6s cubic-bezier(.4,.1,.3,1)}
.sc-dl.done .w-bub-p{display:none}
.sc-dl.done .w-bub-ok{display:block}
.sc-dl.done .w-bub-open{opacity:1;background:#E8F0FE}
.sc-dl.opening .w-bub{opacity:0;transform:translateY(-6px)}

/* 2. SmartScreen */
.w-ss{position:absolute;left:50%;top:50%;width:520px;margin:-180px 0 0 -260px;padding:28px 30px 24px;background:#0B5CAD;color:#fff;box-shadow:0 30px 60px -20px rgba(0,0,0,.6);opacity:0;transform:scale(.96);transition:opacity .3s,transform .35s cubic-bezier(.22,.8,.24,1)}
.w-ss-x{position:absolute;right:16px;top:12px;font-size:14px;opacity:.85}
.w-ss-h{display:block;font-size:28px;font-weight:300;letter-spacing:-.01em}
.w-ss p{margin:16px 0 10px;font-size:13.5px;line-height:1.5;max-width:440px}
.w-ss-more{font-size:13.5px;text-decoration:underline;text-underline-offset:3px}
.w-ss-det{display:none;margin:14px 0 0;font-size:13.5px}
.w-ss-det div{display:flex;gap:10px;margin-top:4px}
.w-ss-det dt{width:76px}.w-ss-det dd{margin:0;font-weight:600}
.w-ss-btns{display:flex;justify-content:flex-end;gap:10px;margin-top:34px}
.w-ss-btns span{min-width:110px;padding:8px 14px;border:2px solid rgba(255,255,255,.85);text-align:center;font-size:13.5px}
.w-ss-run{display:none}
.sc-ss.show .w-ss{opacity:1;transform:none}
.sc-ss.more .w-ss-more{display:none}
.sc-ss.more .w-ss-det{display:block}
.sc-ss.more .w-ss-run{display:block}
.sc-ss.gone .w-ss{opacity:0;transform:scale(.97)}

/* 3-4. NSIS setup window (Tauri's installer: welcome, folder, Start menu, install, finish) */
.w-nsis{position:absolute;left:50%;top:50%;width:540px;margin:-215px 0 0 -270px;background:#F0F0F0;border:1px solid #8C8C8C;box-shadow:0 30px 60px -20px rgba(0,0,0,.6);font-size:12.5px;opacity:0;transform:scale(.96);transition:opacity .3s,transform .35s cubic-bezier(.22,.8,.24,1)}
.w-ns-title{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;background:#fff;font-size:12px}
.w-ns-title img{width:16px;height:16px;border-radius:4px}
.w-ns-body{position:relative;height:336px;background:#fff;border-bottom:1px solid #D9D9D9}
.w-ns-pg{position:absolute;inset:0;display:none}
.pg-welcome,.pg-ins{display:flex}
.pg-welcome,.pg-fin{flex-direction:row}
.w-ns-side{width:164px;height:336px;object-fit:cover;flex:none}
.w-ns-wtext{padding:18px 20px}
.w-ns-wtext b{display:block;font-size:17px;font-weight:700;line-height:1.3;margin-bottom:14px}
.w-ns-wtext p{margin:0 0 12px;line-height:1.45}
.pg-dir,.pg-sm,.pg-ins{flex-direction:column;background:#F0F0F0}
.w-ns-head{display:flex;align-items:center;justify-content:space-between;height:58px;padding:0 0 0 18px;background:#fff;border-bottom:1px solid #D9D9D9}
.w-ns-head b{display:block;font-size:13px}
.w-ns-head small{display:block;margin:3px 0 0 14px;font-size:12px;color:#444}
.w-ns-head img{width:150px;height:57px;object-fit:cover}
.w-ns-in{padding:20px 26px}
.w-ns-in p{margin:0 0 18px;line-height:1.45}
.w-ns-lbl{display:block;margin-bottom:6px;color:#444}
.w-ns-path{display:flex;align-items:center;gap:10px;padding:6px 8px;background:#fff;border:1px solid #7A7A7A;font-size:12px}
.w-ns-browse{margin-left:auto;padding:3px 10px;border:1px solid #ADADAD;background:#E1E1E1}
.w-ns-list{list-style:none;margin:8px 0 0;padding:4px 0;height:112px;background:#fff;border:1px solid #7A7A7A}
.w-ns-list li{padding:3px 8px}
.w-ns-list li.on{background:#0078D7;color:#fff}
.w-ns-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 14px}
.w-ns-foot span{position:relative;min-width:76px;padding:5px 10px;border:1px solid #ADADAD;background:#E1E1E1;text-align:center;font-size:12px}
.w-ns-foot span:first-child{color:#8C8C8C}
.w-ns-next{border-color:#0078D7 !important;box-shadow:inset 0 0 0 1px #0078D7}
.w-ns-next i{font-style:normal}
.lb-inst,.lb-fin{display:none}
.sc-wiz.show .w-nsis,.sc-ins.show .w-nsis{opacity:1;transform:none}
.sc-wiz.p-dir .pg-welcome{display:none}
.sc-wiz.p-dir:not(.p-sm) .pg-dir{display:flex}
.sc-wiz.p-sm .pg-sm{display:flex}
.sc-wiz.p-sm .lb-next{display:none}
.sc-wiz.p-sm .lb-inst{display:inline}
.sc-wiz.p-dir .w-ns-foot span:first-child{color:inherit}
.sc-wiz.gone .w-nsis{opacity:0}
.w-ns-line{position:relative;display:block;height:18px;margin-bottom:10px}
.w-ns-line i{position:absolute;left:0;top:0;font-style:normal;opacity:0;transition:opacity .2s}
.w-ns-prog{display:block;height:18px;border:1px solid #BCBCBC;background:#E6E6E6;overflow:hidden}
.w-ns-prog i{display:block;height:100%;width:0;background:#06B025}
.h-done{display:none !important}
.sc-ins.show .w-ns-prog i{width:100%;transition:width 2.4s linear}
.sc-ins.l1 .l1,.sc-ins.l2:not(.l3) .l2,.sc-ins.l3:not(.done) .l3,.sc-ins.done .l4{opacity:1}
.sc-ins.l2 .l1,.sc-ins.l3 .l2,.sc-ins.done .l3{opacity:0}
.sc-ins.done .h-ing{display:none}
.sc-ins.done .h-done{display:block !important}
.sc-ins.fin .pg-ins{display:none}
.sc-ins.fin .pg-fin{display:flex}
.sc-ins.fin .lb-next{display:none}
.sc-ins.fin .lb-fin{display:inline}
.w-ns-cb{display:flex;align-items:center;gap:8px;margin-top:20px}
.w-ns-cb i{display:grid;place-items:center;width:14px;height:14px;border:1px solid #333;font-style:normal;font-size:11px;line-height:1}
.sc-ins.gone .w-nsis{opacity:0;transform:scale(.97)}

/* 5. GrindMate Desktop app window (toolbar + start page + GrindMate panel) */
.w-app{position:absolute;left:40px;top:20px;width:880px;height:470px;border-radius:10px;background:#FAFAF9;box-shadow:0 30px 60px -25px rgba(0,0,0,.6);overflow:hidden;opacity:0;transform:scale(.97);transition:opacity .35s,transform .4s cubic-bezier(.22,.8,.24,1)}
.w-app-title{display:flex;align-items:center;gap:8px;height:30px;padding:0 10px;background:#fff;font-size:12px;border-bottom:1px solid #EEE}
.w-app-title img{width:16px;height:16px;border-radius:4px}
.w-app-tool{display:flex;align-items:center;gap:12px;height:44px;padding:0 12px;background:#FAFBF9;border-bottom:1px solid #DCE2DC}
.w-app-tool .w-omni{background:#fff;border:1px solid #E3E3E1}
.w-ver{position:relative;font-size:11.5px;color:#6B7570;white-space:nowrap}
.w-ver i{font-style:normal}
.w-gm{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;transition:background-color .2s}
.w-gm img{width:20px;height:20px;border-radius:5px}
.w-pz{display:grid;place-items:center;width:30px;height:30px;color:#4A5257}
.w-pz svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.w-app-body{position:relative;height:396px;overflow:hidden;background-color:#FAFBF9;background-image:radial-gradient(circle,#80918a55 .9px,transparent 1px);background-size:20px 20px}
.w-start{display:flex;flex-direction:column;align-items:center;padding-top:30px;color:#151917}
.w-start>img{width:66px;height:66px;border-radius:16px;box-shadow:0 4px 12px rgba(0,0,0,.16),0 1px 3px rgba(0,0,0,.12),0 0 0 1px rgba(0,0,0,.05)}
.w-start>b{margin-top:9px;font-size:26px;font-weight:700;letter-spacing:-.3px}
.w-start-q{display:flex;align-items:center;justify-content:space-between;width:460px;margin-top:16px;padding:7px 7px 7px 18px;border-radius:999px;background:#fff;border:1px solid #DCE2DC;box-shadow:0 2px 12px rgba(20,40,30,.08);font-size:12px;color:#626B66}
.w-start-q i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#1FB877;color:#fff;font-style:normal;font-size:13px}
.w-start-l{display:flex;justify-content:space-between;width:760px;margin-top:22px;font-size:12px}
.w-start-l b{font-weight:600}.w-start-l small{color:#626B66}
.w-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:760px;margin-top:10px}
.w-tiles i{display:flex;align-items:center;gap:8px;height:38px;padding:0 9px;border-radius:10px;background:#fff;border:1px solid #DCE2DC;font-style:normal;font-size:11.5px;color:#151917;white-space:nowrap;overflow:hidden}
.w-ico{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#F4F5F4;overflow:hidden;font-size:11px;font-weight:700;color:#151917}
.w-ico img{width:15px;height:15px}
.w-gpop{position:absolute;left:50%;top:40px;width:330px;margin-left:-215px;padding:16px 22px 22px;border-radius:10px;background:#fff;box-shadow:0 24px 60px -16px rgba(0,0,0,.45),0 0 0 1px rgba(0,0,0,.06);opacity:0;transform:translateY(10px);transition:opacity .3s,transform .35s cubic-bezier(.22,.8,.24,1)}
.w-g-url{display:block;padding:5px 10px;border-radius:999px;background:#F1F3F4;font-size:11px;color:#5F6368}
.w-g-brand{display:flex;align-items:center;gap:8px;margin:14px 0 12px;font-size:12px;color:#3C4043}
.w-g-brand img{width:16px;height:16px}
.w-gpop>b{display:block;font-size:20px;font-weight:400}
.w-gpop>small{display:block;margin-top:4px;font-size:12px;color:#5F6368}
.w-g-acct{display:flex;align-items:center;gap:12px;margin-top:16px;padding:10px 6px;border-top:1px solid #E8EAED;border-bottom:1px solid #E8EAED;transition:background-color .2s}
.w-g-acct>i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#7B61FF;color:#fff;font-style:normal;font-weight:600}
.w-g-acct b{display:block;font-size:12.5px}.w-g-acct small{font-size:11.5px;color:#5F6368}
.w-toast{position:absolute;left:50%;bottom:22px;display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:#0F1512;color:#fff;font-size:12.5px;font-weight:600;white-space:nowrap;opacity:0;transform:translate(-50%,12px);transition:opacity .3s,transform .35s cubic-bezier(.22,.8,.24,1)}
.w-toast svg{width:15px;height:15px;fill:none;stroke:#29D58B;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sc-app .w-toast{left:310px}
.sc-app.show .w-app{opacity:1;transform:none}
.sc-app.panel .w-gm{background:#E6F8EF}
.sc-app.gpop .w-gpop{opacity:1;transform:none}
.sc-app.signed .w-gpop{opacity:0;transform:translateY(10px)}
.sc-app.toast .w-toast{opacity:1;transform:translate(-50%,0)}


/* Taskbar */
.w-taskbar{position:absolute;left:0;right:0;bottom:0;height:48px;display:flex;align-items:center;justify-content:center;gap:10px;background:rgba(236,241,239,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,.4)}
.w-taskbar>span{display:grid;place-items:center;height:36px;border-radius:7px}
.tb-start{width:36px}.tb-start svg{width:20px;height:20px;fill:#0078D4}
.tb-search{width:150px;display:flex !important;align-items:center;padding:0 14px;border-radius:999px !important;background:#fff;font-size:12px;color:#6B7570}
.tb-app{width:40px;position:relative}
.tb-app::after{content:"";position:absolute;bottom:2px;left:50%;width:6px;height:3px;margin-left:-3px;border-radius:2px;background:#8A9096;transition:width .3s,margin .3s,background-color .3s}
.tb-br svg{width:21px;height:21px;fill:none;stroke:#1A73E8;stroke-width:1.7}
.tb-gm img{width:22px;height:22px;border-radius:5px}
.tb-gm{opacity:.35;transition:opacity .3s}
.tb-tray{position:absolute;right:16px;display:flex !important;flex-direction:column;align-items:flex-end;gap:1px;font-size:11px;color:#1B1B1B}
.tb-tray b{font-weight:500}
.iw-screen.app-on .tb-gm{opacity:1}
.iw-screen.app-on .tb-gm::after{width:16px;margin-left:-8px;background:#0078D4}
.iw-screen:not(.app-on) .tb-br::after{width:16px;margin-left:-8px;background:#0078D4}

/* Cursor */
.iw-cur{position:absolute;left:480px;top:400px;width:26px;height:26px;z-index:20;pointer-events:none;transition:left .75s cubic-bezier(.45,.05,.25,1),top .75s cubic-bezier(.45,.05,.25,1)}
.iw-cur svg{position:relative;z-index:1;width:26px;height:26px;fill:#fff;stroke:#111;stroke-width:1.6;stroke-linejoin:round;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));transition:transform .12s}
.iw-cur i{position:absolute;left:-14px;top:-14px;width:30px;height:30px;border-radius:50%;background:rgba(41,213,139,.55);opacity:0;transform:scale(.3)}
.iw-cur.press svg{transform:scale(.86)}
.iw-cur.press i{animation:iw-click .5s ease-out}
@keyframes iw-click{0%{opacity:.9;transform:scale(.3)}100%{opacity:0;transform:scale(1.6)}}
.iw-screen .hot{filter:brightness(.94)}

/* Explanation panel */
.iw-explain{margin-top:18px;padding:22px 24px 18px;border:1px solid var(--rule);border-radius:18px;background:var(--card,transparent);min-height:208px;display:flex;flex-direction:column}
.iw-text small{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mint-ink)}
.iw-text h3{margin:6px 0 8px;font-size:22px;line-height:1.2;letter-spacing:-.02em;font-weight:740;color:var(--ink)}
.iw-text p{margin:0;font-size:15.5px;line-height:1.6;color:var(--pencil)}
.iw-text p b{color:var(--ink);font-weight:650}
.iw-text code{padding:1px 6px;border-radius:6px;background:var(--mint-soft);color:var(--ink);font-size:13.5px}
.iw-text kbd{display:inline-block;padding:0 6px;border-radius:6px;border:1px solid var(--rule);border-bottom-width:2px;font:600 12.5px/1.6 var(--sans);color:var(--ink)}
.iw-text .iw-tip{margin-top:10px;padding-left:12px;border-left:3px solid var(--mint);font-size:14px}
.iw-text:not([hidden]){animation:iw-in .35s var(--ease,ease)}
@keyframes iw-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.iw-ctl{display:flex;gap:8px;margin-top:auto;padding-top:16px}
.iw-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:0;border-radius:999px;background:var(--ink);color:var(--bg);font:600 13.5px/1 var(--sans);cursor:pointer}
.iw-btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--rule)}
.iw-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.iw-btn .i-play{display:none;fill:currentColor;stroke:none}
.iw-btn.paused .i-pause{display:none}
.iw-btn.paused .i-play{display:block}

@media (max-width:900px){
  .iw-grid{grid-template-columns:1fr;gap:16px}
  .iw-steps{position:relative;top:auto;display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .iw-steps::-webkit-scrollbar{display:none}
  .iw-step{width:auto;white-space:nowrap;padding:10px 12px}
  .iw-step small{display:none}
}
@media (max-width:700px){
  .iw{margin-top:64px;padding-top:48px}
  .iw-explain{padding:18px}
  .iw-text h3{font-size:19px}
  .iw-text p{font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .iw-cur{display:none}
  .sc,.w-bub,.w-ss,.w-nsis,.w-app,.w-panel,.w-gpop,.w-toast{transition:none !important}
  .iw-text:not([hidden]){animation:none}
}

/* Floating "Need help?" button: jumps to the walkthrough; hidden while the walkthrough is on screen. */
.iw-help{position:fixed;right:24px;bottom:24px;z-index:50;display:inline-flex;align-items:center;gap:9px;padding:13px 20px 13px 16px;border-radius:999px;
  background:var(--mint);color:#04140B;font:700 15px/1 var(--sans);text-decoration:none;
  box-shadow:0 14px 34px -12px rgba(11,122,74,.65),0 0 0 1px rgba(4,20,11,.06);
  transition:opacity .3s,transform .35s var(--ease,ease),background-color .15s}
.iw-help svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.iw-help:hover{background:var(--mint-hover,#3BE39C);transform:translateY(-2px)}
.iw-help:focus-visible{outline:2px solid var(--mint-ink);outline-offset:3px}
.iw-help.away{opacity:0;transform:translateY(12px);pointer-events:none}
@media (prefers-reduced-motion:no-preference){
  .iw-help:not(.away){animation:iw-float 3.2s ease-in-out infinite}
  .iw-help:hover{animation:none}
}
@keyframes iw-float{0%,100%{translate:0 0}50%{translate:0 -5px}}
@media (max-width:700px){ .iw-help{right:16px;bottom:16px;padding:12px 18px 12px 14px;font-size:14px} }

/* GrindMate panel: the extension popup at its real 360x582 layout (same as the tutorial), scaled into a 256px side panel. */
@font-face{font-family:"GMUI";src:url("/tutorial/assets/dm-sans-latin.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Geist";src:url("/tutorial/assets/geist-latin.woff2") format("woff2");font-weight:100 900;font-display:swap}
.w-panel{--g-bg:#FFFFFF;--g-ink:#080E0D;--g-pencil:#52625B;--g-line:#D3DCD7;--g-soft:#F5F7F6;--g-green:#145439;--g-link:#145439;
  --g-grid:rgba(8,14,13,.06);--g-chip:#E5FAF1;--g-chip-ink:#145439;--g-sub:rgba(11,35,26,.76);--g-track:#CBD1D3;--g-cb-ink:#FFFFFF;
  position:absolute;right:0;top:0;bottom:0;width:256px;background:#F3F4F3;border-left:1px solid #DCE2DC;box-shadow:-20px 0 40px -30px rgba(0,0,0,.4);
  transform:translateX(102%);transition:transform .45s cubic-bezier(.22,.8,.24,1);color:var(--g-ink)}
.sc-app.panel .w-panel{transform:none}
.sp-head{display:flex;align-items:center;gap:7px;height:26px;padding:0 8px 0 10px;font-size:11px;font-weight:600}
.sp-head img{width:14px;height:14px;border-radius:4px}
.sp-head span{flex:1}
.sp-head svg{width:13px;height:13px;fill:none;stroke:#6B7570;stroke-width:2;stroke-linecap:round}
.w-panel .gm{position:absolute;left:4px;top:26px;width:360px;height:582px;transform:scale(.6667);transform-origin:0 0;overflow:hidden;border-radius:12px;
  background-color:var(--g-bg);background-image:linear-gradient(var(--g-grid) 1px,transparent 1px),linear-gradient(90deg,var(--g-grid) 1px,transparent 1px);background-size:40px 40px;
  color:var(--g-ink);font:400 14px/1.2 "GMUI",system-ui,sans-serif}
.w-panel .gm *{box-sizing:border-box}
.gm-pane{position:absolute;inset:0;transition:opacity .35s}
.gm-dash{opacity:0}
.sc-app.signed .gm-welcome{opacity:0}
.sc-app.signed .gm-dash{opacity:1}
.gm-welcome{font-family:"Geist",system-ui,sans-serif}
.gm-chip{position:absolute;height:26.4px;padding:4px 10px;border-radius:99px;background:var(--g-chip);border:.8px solid rgba(41,213,139,.4);color:var(--g-chip-ink);font-size:12px;font-weight:650;line-height:17px;white-space:nowrap}
.gm-tile{position:absolute;left:130px;top:84px;width:100px;height:100px;filter:drop-shadow(0 2px 8px rgba(8,14,13,.12))}
.gm-title{position:absolute;left:24px;top:192px;width:312px;text-align:center;font:700 30px/35px "GMUI",system-ui,sans-serif;letter-spacing:-.3px}
.gm-sub{position:absolute;left:24px;top:231px;width:312px;text-align:center;font-size:15px;line-height:22px;color:var(--g-sub)}
.gm-btn{position:absolute;left:24px;width:312px;height:48px;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 18px;border-radius:11px;background:var(--g-bg);border:.8px solid #D3DCD7;box-shadow:0 4px 16px rgba(0,0,0,.016);color:var(--g-ink);font-size:14px;font-weight:650;transition:transform .2s,box-shadow .2s}
.gm-google{top:281px}.gm-email{top:339px}
.gm-google img{width:19px;height:19px}
.gm-btn.hot{transform:scale(.98);box-shadow:0 6px 18px rgba(8,14,13,.08)}
.gm-consent{position:absolute;left:75px;top:405px;height:30px;display:flex;align-items:center;gap:9px;font-size:13px;color:var(--g-ink);white-space:nowrap}
.gm-cb{display:grid;place-items:center;width:18px;height:18px;border-radius:3px;border:1.5px solid #767676;background:var(--g-bg)}
.gm-cb svg{width:14px;height:14px;fill:none;stroke:var(--g-cb-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.gm-info{width:18px;height:18px;margin-left:12px;fill:none;stroke:var(--g-pencil);stroke-width:1.6;stroke-linecap:round}
.gm-guest{position:absolute;left:87px;top:439px;width:186px;height:32px;display:grid;place-items:center;font-size:13px;font-weight:600;color:var(--g-pencil)}
.gm-legal{position:absolute;left:0;right:0;top:473px;text-align:center;font-size:12.5px;line-height:17px;color:var(--g-link)}
.gm-legal a{color:var(--g-link)}
.gm-hero{position:absolute;left:0;right:0;top:0;height:57px;background:var(--g-bg)}
.gm-plan{position:absolute;left:18px;top:14px;height:28.5px;padding:5px 12px;border-radius:99px;background:var(--g-soft);border:.8px solid var(--g-line);font-size:13px;font-weight:650;line-height:16.9px}
.gm-moon{position:absolute;left:261px;top:19px;width:19px;height:19px;fill:none;stroke:var(--g-pencil);stroke-width:1.8;stroke-linejoin:round}
.gm-track{position:absolute;left:294px;top:14px;width:48px;height:28px;border-radius:99px;background:var(--g-track)}
.gm-track::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.gm-site{position:absolute;left:142px;top:79px;width:76px;height:76px;display:grid;place-items:center;border-radius:22px;background:var(--g-soft);border:.8px solid var(--g-line)}
.gm-site img{width:44px;height:44px;border-radius:10px}
.gm-host{position:absolute;left:0;right:0;top:169px;text-align:center;font-size:21px;font-weight:700;line-height:26px}
.gm-status{position:absolute;left:0;right:0;top:201px;display:flex;justify-content:center;align-items:center;gap:7px;font-size:14px;font-weight:500;line-height:18px;color:var(--g-pencil)}
.gm-status i{width:10px;height:10px;border-radius:50%;background:#29D58B;box-shadow:0 0 0 3px rgba(41,213,139,.22)}
.gm-pause{position:absolute;left:103px;top:231px;width:153px;height:32px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:99px;background:var(--g-bg);border:.8px solid var(--g-line);font-size:12.5px;font-weight:600;color:var(--g-pencil)}
.gm-pause svg{width:12px;height:12px;fill:var(--g-pencil)}
.gm-sc-head{position:absolute;left:18px;right:18px;top:287px;display:flex;justify-content:space-between;align-items:center}
.gm-sc-head span{font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--g-pencil)}
.gm-sc-head a{font-size:12px;font-weight:600;color:var(--g-green)}
.gm-sc{position:absolute;left:18px;right:18px;top:312px;margin:0}
.gm-sc div{display:flex;justify-content:space-between;align-items:center;height:47px;padding:11px 0;border-bottom:.8px solid var(--g-line)}
.gm-sc dt{font-size:13.5px}.gm-sc dd{margin:0}
.gm-sc kbd{display:inline-block;min-width:30px;height:24px;padding:0 8px;border-radius:6px;background:var(--g-soft);border:.8px solid var(--g-line);font:600 12px/23px system-ui,sans-serif;color:var(--g-ink);text-align:center}
.gm-allow{position:absolute;left:18px;right:18px;top:473px;height:22px;display:flex;justify-content:center;align-items:center;gap:14px;font-size:13.5px;color:var(--g-pencil)}
.gm-allow strong{margin-right:4px;font-size:16px;font-weight:700;color:var(--g-ink)}
.gm-allow i{width:1px;height:16px;background:var(--g-line)}
.gm-hint{position:absolute;left:0;right:0;top:506px;text-align:center;font-size:12px;color:var(--g-pencil)}

/* On-screen comments (as in the tutorial): a card with the GrindMate logo and a dashed line to what it explains.
   Drawn in stage coordinates so they scale with it; on small stages the text shows in a strip under the stage instead. */
.iw-notes{position:absolute;inset:0;z-index:15;pointer-events:none}
.iw-note{position:absolute;display:flex;align-items:flex-start;gap:9px;width:220px;padding:11px 13px;border-radius:14px 14px 14px 4px;background:#fff;color:#0F1512;
  font:600 13.5px/1.4 var(--sans);box-shadow:0 18px 40px -16px rgba(4,30,18,.55),0 0 0 1px rgba(15,26,20,.08);opacity:0;transform:translateY(8px) scale(.97);transition:opacity .3s,transform .45s cubic-bezier(.22,.8,.24,1)}
.iw-note.left{border-radius:14px 14px 4px 14px}
.iw-note img{width:22px;height:22px;border-radius:7px;flex:none}
.iw-note.on{opacity:1;transform:none}
.iw-note.gone,.iw-nline.gone{opacity:0;transition-duration:.25s}
.iw-nline{position:absolute;inset:0;width:100%;height:100%;overflow:visible;opacity:0;transition:opacity .35s .1s}
.iw-nline.on{opacity:1}
.iw-nline path{fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:6 5;opacity:.9;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.iw-nline circle{fill:#29D58B;stroke:#fff;stroke-width:2.5}
.iw-strip{min-height:42px;margin:12px 0 0;padding:10px 14px;border-radius:12px;background:var(--card,#fff);border:1px solid var(--rule);color:var(--ink);
  font:600 14px/1.4 var(--sans);text-align:center;display:none;opacity:0;transition:opacity .3s}
.iw-strip.on{opacity:1}
.iw.small .iw-strip{display:block}
.iw.small .iw-notes{display:none}
@media (prefers-reduced-motion:reduce){ .iw-notes{display:none} }
