@font-face{font-family:"Nunito Sans";src:url("assets/nunito-sans-latin.woff2") format("woff2");font-style:normal;font-weight:400 900;font-display:swap}
:root{color-scheme:light;--red:#E8291C;--red-dark:#BF2014;--ink:#211F1D;--muted:#68625D;--paper:#F9F8F6;--line:#E4DDD5}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:16px;background:#EEE9E3;color:var(--ink);font:18px/1.5 "Nunito Sans",Arial,sans-serif;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 0 #D8D2CA;overflow-x:hidden}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus,a:focus,pre:focus{outline:3px solid var(--red-dark);outline-offset:5px}
.header{display:flex;align-items:center;gap:24px;min-height:90px;padding:12px 28px;background:var(--paper);border-bottom:1px solid var(--line);border-radius:22px 22px 0 0}
.logo{width:92px;height:55px;object-fit:contain}.header-label{display:flex;flex-direction:column;gap:2px;font-size:23px}.header-label strong{font-weight:800}.header-label span{font-size:12px;color:var(--muted)}.device{margin-left:auto;font-size:14px;color:var(--muted);font-weight:700}
.main{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 192px);padding:28px;background:white}.setup{width:620px;max-width:100%;text-align:center}.activation-mark{width:184px;height:150px;margin:0 auto 24px;display:flex;align-items:center;justify-content:center;position:relative}.activation-mark img{object-fit:contain}.activation-mark:after{content:"";position:absolute;inset:0;border:2px solid var(--line);border-radius:28px}
body[data-phase=working] .activation-mark:after{border-top:3px solid var(--red);animation:prepare 1.6s linear infinite;border-radius:50%}body[data-phase=ready] .activation-mark:after{border-color:#36794F}body[data-phase=failed] .activation-mark:after{border-color:var(--red-dark)}
@keyframes prepare{to{transform:rotate(360deg)}}h2{font-size:32px;line-height:1.25;letter-spacing:-.5px;margin:0 0 14px;font-weight:900}.status-description{font-size:19px;color:var(--muted);margin:0 0 24px;min-height:58px}#start{border:0;border-radius:12px;background:var(--red);color:white;min-height:52px;padding:12px 32px;font-weight:800;font-size:19px}#start:hover:enabled{background:var(--red-dark)}#start:disabled{background:#ECE7E0;color:var(--muted);cursor:default}.hint{font-size:14px;color:var(--muted);margin:18px 0 0}.notice{margin:18px 0 0;padding:14px 18px;border:1px solid #D2B99B;background:#FFF5E8;color:#654521;border-radius:12px;font-size:15px}
.footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 28px;background:white;border-top:1px solid var(--line);border-radius:0 0 22px 22px}.footer p{font-size:12px;margin:0}.footer p span{margin-left:16px;color:var(--muted)}.details-button{font-size:12px;border:0;background:transparent;color:var(--muted);padding:4px 0;text-decoration:underline;text-underline-offset:4px}.details{padding:24px 28px;background:white;border-top:1px solid var(--line);border-radius:0 0 22px 22px}.details h2{font-size:22px}.details p{font-size:14px;color:var(--muted)}.details a{color:var(--red-dark)}.engine-state{font-size:14px;overflow-wrap:anywhere}pre{padding:18px;background:var(--paper);border-radius:10px;max-height:340px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 ui-monospace,SFMono-Regular,monospace}.bad{color:#9C201C}.warn{color:#76510F}.ok{color:#24613B}.engine-signal{display:none}
@media(max-width:640px){body{margin:8px;border-radius:18px}.header{padding:12px 18px;gap:15px;flex-wrap:wrap}.logo{width:65px;height:39px}.header-label{font-size:19px}.device{font-size:12px;width:100%;margin:0}.main{padding:28px 20px;min-height:calc(100vh - 230px)}h2{font-size:27px}.status-description{font-size:17px}.activation-mark{width:156px;height:132px;margin-bottom:22px}.activation-mark img{width:112px;height:67px}.footer{padding:12px 18px}.footer p span{display:none}.details{padding:22px 18px}}
@media(prefers-reduced-motion:reduce){body[data-phase=working] .activation-mark:after{animation:none}}
.cache-status{font-size:14px;color:var(--muted);margin:0 0 16px}.cache-progress{display:block;width:280px;max-width:100%;height:6px;margin:0 auto 20px;border:0;border-radius:3px;accent-color:var(--red);background:var(--line)}.cache-progress::-webkit-progress-bar{background:var(--line);border-radius:3px}.cache-progress::-webkit-progress-value{background:var(--red);border-radius:3px}
