:root{
  --bg:#141414; --surf:#1c1c1c; --border:#2c2c2c; --text:#f2f2f2; --muted:#a8a8a8; --dim:#9a9a9a;
  --soft:#d6d6d6; --green:#5ccf8a; --green-hi:#8fe3b0; --on-green:#0b1a10; --orange:#ffa266; --track:#333;
  --display:'Montserrat',system-ui,sans-serif; --body:'Roboto Condensed',Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
a{color:var(--green)} a:hover{color:var(--green-hi)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.wrap{max-width:640px;margin:0 auto;padding:48px 24px 56px;display:flex;flex-direction:column;gap:28px}
.title{display:flex;flex-direction:column;gap:8px}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--green)}
h1{margin:0;font-family:var(--display);font-weight:800;font-size:40px;line-height:1.1}
h2{margin:0;font-family:var(--display);font-weight:700;font-size:24px;line-height:1.2}
h2.big{font-size:28px}

.stepper{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stepper li{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--dim)}
.stepper .bar{height:4px;border-radius:2px;background:var(--track)}
.stepper li.done .bar,.stepper li.active .bar{background:var(--green)}
.stepper li.error .bar{background:var(--orange)}
.stepper li.done{color:var(--muted)} .stepper li.done .lbl::after{content:" ✓"}
.stepper li.active,.stepper li.error{color:var(--text);font-weight:700}

.card{background:var(--surf);border:1px solid var(--border);border-radius:16px;padding:32px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.card.center{align-items:center;text-align:center;padding:40px 32px;gap:20px}
.card.errcard{border-color:#5a3a22;gap:20px}
.card > *{max-width:100%}

.ic{width:22px;height:22px;flex:none;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ic.warn{stroke:var(--orange)}
.big-ic{width:44px;height:44px;stroke-width:1.8}

.checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;font-size:17px;line-height:1.4}
.checklist li{display:flex;gap:12px;align-items:flex-start}
.checklist .ic{margin-top:1px}
.hint{margin:0;font-size:15px;line-height:1.45;color:var(--muted)} .hint strong{color:var(--text)}
.body{margin:0;font-size:17px;line-height:1.5;color:var(--soft)} .body strong{color:var(--text)}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 32px;border-radius:999px;border:1px solid transparent;
  font-family:var(--body);font-weight:700;font-size:17px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;cursor:pointer}
.btn.primary{background:var(--green);color:var(--on-green)} .btn.primary:hover{background:var(--green-hi);color:var(--on-green)}
.btn.secondary{background:none;border-color:#3a3a3a;color:var(--text)} .btn.secondary:hover{border-color:#5a5a5a}
.btn:disabled{opacity:.5;cursor:default}
.btn:focus-visible,.link:focus-visible,.icon-btn:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.link{background:none;border:0;padding:0;min-height:44px;font-family:var(--body);font-size:15px;color:var(--green);text-decoration:underline;cursor:pointer}
.link.muted,.muted{color:var(--muted)}

.ok-line{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700;color:var(--green)}
.ok-line .ic{width:20px;height:20px;stroke-width:2.4}
.versions{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-radius:12px;background:var(--bg);border:1px solid var(--border)}
.ver{display:flex;flex-direction:column;gap:4px}
.ver-lbl{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)} .ver-lbl.new{color:var(--green)}
.ver-num{font-size:26px;font-weight:700}
.warn-line{margin:0;display:flex;gap:10px;align-items:flex-start;font-size:16px;line-height:1.45;color:var(--soft)}
.warn-line .ic{width:20px;height:20px;margin-top:1px}
.notice{margin:0;align-self:stretch;padding:12px 16px;border-radius:10px;background:#2a1f17;border:1px solid #5a3a22;color:#f2e4d9;font-size:15px;line-height:1.45}
.notice.info{background:#17241c;border-color:#24543a;color:#d9f2e3}

.row-between{align-self:stretch;display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.pct{font-size:28px;font-weight:700;color:var(--green)}
.progress{align-self:stretch;height:10px;border-radius:5px;background:#2e2e2e;overflow:hidden}
.progress > div{height:100%;width:0;border-radius:5px;background:var(--green);transition:width .4s ease}
.phases{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:16px}
.phases li{display:flex;gap:12px;align-items:center;color:var(--dim)}
.phases .dot{width:20px;height:20px;flex:none;border-radius:50%;border:2px solid #555;position:relative}
.phases li.done{color:var(--muted)}
.phases li.done .dot{border:0;background:no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ccf8a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.phases li.active{color:var(--text);font-weight:700}
.phases li.active .dot{border-color:rgba(92,207,138,.25);border-top-color:var(--green);animation:spin 1s linear infinite}
.phases .sub{font-style:normal;font-weight:400;color:var(--muted)}
.phases li:not(.active) .sub{display:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.phases li.active .dot{animation:none}.progress>div{transition:none}}
.callout{align-self:stretch;display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border-radius:12px;background:#2a1f17;border:1px solid #5a3a22;font-size:16px;line-height:1.45;color:#f2e4d9}

.badge{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.badge.ok{background:#1f3a2a} .badge.ok .ic{width:40px;height:40px;stroke-width:2.6}
.errcard .badge{width:56px;height:56px}
.badge.err{background:#3a2617} .badge.err .ic{width:30px;height:30px;stroke:var(--orange);stroke-width:2.2}
.bullets{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:16px;line-height:1.45;color:var(--muted)}
.bullets.light{color:var(--soft);font-size:17px;gap:10px}
.support-row{align-self:stretch;display:flex;flex-wrap:wrap;align-items:center;gap:4px 24px;padding-top:16px;border-top:1px solid var(--border);font-size:15px}
.support-line{margin:0;font-size:15px;color:var(--muted)} .support-line a{text-decoration:none}

.modal{width:min(480px,calc(100vw - 32px));padding:28px 28px 24px;border-radius:16px;border:1px solid #333;background:var(--surf);color:var(--text);box-shadow:0 24px 60px rgba(0,0,0,.5)}
.modal::backdrop{background:rgba(0,0,0,.72)}
.modal[open]{display:flex;flex-direction:column;gap:18px}
.modal-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.modal-top > div{display:flex;flex-direction:column;gap:4px}
.icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn .ic{stroke:var(--muted)} .icon-btn:hover{background:#262626}
.modal-actions{display:flex;justify-content:flex-end}

@media (max-width:560px){
  .wrap{padding:32px 16px 40px;gap:24px}
  h1{font-size:30px} h2{font-size:22px} h2.big{font-size:24px}
  .card{padding:24px;gap:18px}
  .card .btn{align-self:stretch}
  .versions{padding:16px}
}

.debug{border:1px dashed #555;border-radius:12px;padding:16px;font:12px/1.5 ui-monospace,Consolas,monospace;color:#cfcfcf;background:#101010}
.debug-head{font-weight:700;color:var(--orange);margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.debug-copy{display:inline-flex;align-items:center;gap:6px;background:none;border:1px solid #444;border-radius:8px;color:#cfcfcf;font:inherit;font-weight:400;padding:4px 10px;cursor:pointer}
.debug-copy:hover{border-color:var(--green);color:var(--green)}
.debug-copy svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.debug pre{margin:0 0 10px;white-space:pre-wrap;word-break:break-all;max-height:320px;overflow:auto}
.ver-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.ver-num.dim{color:var(--muted)}
.ic.arrow{width:28px;height:28px;stroke:var(--muted)}

.support-banner{margin:0;padding:12px 16px;border-radius:10px;background:#2a1f17;border:1px solid #ffa266;color:#f2e4d9;font-size:15px;line-height:1.45}
.support-banner strong{color:var(--orange)}
.filebox{align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:20px 24px;border-radius:12px;background:var(--bg);border:1px dashed #3a3a3a}
.file-installed{margin:0;font-size:15px;color:var(--muted)} .file-installed strong{color:var(--text)}
.file-meta{margin:0;font-size:15px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.file-meta.ok{color:var(--green)} .file-meta.err{color:var(--orange)}

.home-title{gap:12px}
.lede{margin:4px 0 0;font-size:18px;line-height:1.45;max-width:38em}
.picks{display:flex;flex-direction:column;gap:12px}
.pick{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;grid-template-areas:"icon name ver chev" "icon sub ver chev";align-items:center;column-gap:14px;row-gap:3px;padding:18px 16px;background:var(--surf);border:1px solid #3a3a3a;border-radius:16px;color:inherit;text-decoration:none}
.pick:hover{border-color:#5a5a5a}
.pick-ic{grid-area:icon;width:36px;height:36px;display:flex;align-items:center;justify-content:center}
.pick-ic .ic{width:26px;height:26px}
.pick-copy{display:contents}
.pick-name{grid-area:name;font-weight:700;font-size:18px;line-height:1.2}
.pick-sub{grid-area:sub;color:var(--muted);font-size:14px;line-height:1.35}
.pick-ver{grid-area:ver;justify-self:end;color:var(--muted);font-size:15px;white-space:nowrap}
.pick-chev{grid-area:chev;width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pick:hover .pick-chev{stroke:var(--text)}
.find{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.find p{margin:0;font-size:17px;line-height:1.45}
.find .notice{align-self:stretch}
.btn.outline{background:none;border:2px solid #f2f2f2;color:var(--text)}
.btn.outline:hover{border-color:var(--green);color:var(--green);background:none}
.back{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;min-height:32px;color:var(--muted);text-decoration:none;font-size:15px;font-weight:700}
.back:hover{color:var(--text)}
.back .ic{width:16px;height:16px;stroke:currentColor}
@media (max-width:560px){
  .lede{font-size:16px}
  .pick{grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"icon name chev" "icon sub chev" "icon ver chev";align-items:start}
  .pick-ic{align-self:start;margin-top:1px}
  .pick-chev{align-self:center}
  .pick-ver{justify-self:start;margin-top:6px}
  .find .btn{align-self:stretch}
}
