:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f4f7fb;font-family:SF Pro Text,Segoe UI,Roboto,Helvetica,Arial,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,select,input{font:inherit}button,.firmware-download-button{color:#18233a;cursor:pointer;background:#e8eef8;border:0;border-radius:8px;justify-content:center;align-items:center;gap:.5rem;padding:.75rem .95rem;font-weight:650;text-decoration:none;transition:opacity .12s;display:inline-flex}button:hover:not(:disabled),.firmware-download-button:hover{opacity:.93}button:focus-visible,.firmware-download-button:focus-visible,select:focus-visible,.drop-zone:focus-within{outline-offset:3px;outline:3px solid #2257e559}button:disabled{cursor:not-allowed;opacity:.5}button.primary{color:#fff;background:linear-gradient(135deg,#2257e5,#1b3fb4)}button.secondary,.firmware-download-button.secondary{color:#fff;background:#14274e}button.success{color:#fff;background:#16733b}button.danger{color:#fff;background:#b92e42}.shell{width:min(1040px,100vw - 32px);margin:0 auto;padding:18px 0 28px}.hero{grid-template-columns:minmax(0,1fr) 280px;align-items:stretch;gap:18px;margin-bottom:12px;display:grid}.eyebrow{color:#40619f;letter-spacing:.12em;text-transform:uppercase;margin:0 0 8px;font-size:.78rem;font-weight:900}h1,h2,p{margin-top:0}h1{letter-spacing:0;margin-bottom:8px;font-size:clamp(1.75rem,3.4vw,2.9rem);line-height:.98}h2{margin-bottom:.25rem;font-size:1.05rem}.lede{color:#50617e;max-width:760px;margin-bottom:0;font-size:.98rem;line-height:1.6}.hero-card,.card,.progress-card,.notice{background:#ffffffeb;border:1px solid #a0b0cd6b;box-shadow:0 12px 32px #23385f14}.hero-card{border-radius:8px;align-items:center;gap:18px;padding:18px;display:flex}.hero-card svg{color:#2257e5}.hero-card strong,.hero-card span{display:block}.hero-card strong{margin-bottom:5px;font-size:1.15rem}.hero-card span{color:#63728e;overflow-wrap:anywhere}.notice{border-radius:8px;align-items:flex-start;gap:14px;margin-bottom:18px;padding:18px;display:flex}.notice p{color:#5e6b7e;margin-bottom:0}.notice-error{color:#9e2636;background:#fff5f7;border-color:#b92e4240}.progress-card{border-radius:8px;margin-bottom:14px;padding:14px 16px}.progress-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;display:flex}.progress-head>div{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.pill{text-transform:uppercase;letter-spacing:.08em;color:#345078;background:#e8eef8;border-radius:999px;justify-content:center;align-items:center;min-width:92px;padding:.38rem .65rem;font-size:.72rem;font-weight:900;display:inline-flex}.pill-done{color:#16733b;background:#e8f9ee}.pill-error{color:#b92e42;background:#fff0f2}.pill-writing,.pill-verifying,.pill-syncing,.pill-resetting,.pill-opening,.pill-checking,.pill-rebooting{color:#1b55d6;background:#eef4ff}.bar{background:#e5ebf5;border-radius:999px;height:12px;overflow:hidden}.bar>div{border-radius:inherit;background:linear-gradient(90deg,#2257e5,#30a3ff);height:100%;transition:width .18s}.error-box{color:#9d2939;background:#fff2f4;border-radius:8px;align-items:flex-start;gap:10px;margin-top:14px;padding:12px 14px;display:flex}.error-box strong,.error-box span{display:block}.error-box span{color:#7e3942;margin-top:3px}.progress-head strong,.error-box strong,.inline-error,.info-panel strong,.summary-grid strong{overflow-wrap:anywhere}.grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;display:grid}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-12{grid-column:span 12}.card{border-radius:8px;padding:14px}.card-title{align-items:flex-start;gap:12px;margin-bottom:10px;display:flex}.card-title.compact{margin-bottom:10px}.card-title p{color:#65728a;margin-bottom:0}.circle{color:#2257e5;background:#eef4ff;border-radius:8px;flex:none;justify-content:center;align-items:center;width:30px;height:30px;font-weight:950;display:inline-flex}.field{gap:8px;display:grid}.field span{color:#52617b;font-size:.9rem;font-weight:800}select{color:#172033;background:#fff;border:1px solid #cbd6e8;border-radius:8px;width:100%;padding:.75rem .9rem}.checklist{gap:7px;margin:0;padding-left:1.35rem;display:grid}.usb-row,.firmware-row{align-items:start;gap:14px;display:grid}.usb-row{grid-template-columns:minmax(280px,.85fr) minmax(320px,1.15fr)}.usb-primary{gap:10px;display:grid}.usb-primary .button-row button{flex:180px}.firmware-row{grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr)}.step{color:#61718c;padding-left:4px}.step-active{color:#1b55d6;font-weight:900}.step-done{color:#16733b;text-decoration:line-through}.rescue-panel{background:#f7faff;border:1px solid #e0e8f7;border-radius:8px;margin-top:10px;padding:10px}.usb-row .rescue-panel{margin-top:0}.rescue-panel p{color:#5f6f8a;margin:.45rem 0 0;line-height:1.45}.rescue-panel summary{cursor:pointer;color:#1f3760;font-weight:900}.midi-rescue-controls{grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:10px;margin-top:10px;display:grid}.button-row{flex-wrap:wrap;gap:10px;display:flex}.info-panel{background:#f7faff;border-radius:8px;gap:4px;margin-top:10px;padding:12px;display:grid}.info-panel span,.summary-grid span{color:#61708a;font-size:.83rem;font-weight:800}.info-panel strong,.summary-grid strong{color:#172033}.profile-note{color:#30405c;background:#f7faff;border:1px solid #e0e8f7;border-radius:8px;margin-top:10px;padding:10px 12px}.profile-note summary{cursor:pointer;color:#172033;justify-content:space-between;align-items:center;gap:12px;font-weight:900;list-style:none;display:flex}.profile-note summary::-webkit-details-marker{display:none}.profile-note summary:after{content:"";border:2px solid #52617b;border-width:0 2px 2px 0;flex:none;width:8px;height:8px;transition:transform .12s;transform:rotate(-45deg)}.profile-note[open] summary:after{transform:rotate(45deg)}.profile-note ul{gap:4px;margin:8px 0 0;padding-left:1.1rem;display:grid}.profile-note li{line-height:1.35}.drop-zone{color:#31537e;cursor:pointer;text-align:center;background:#f8fbff;border:2px dashed #c6d3e8;border-radius:8px;place-items:center;gap:10px;min-height:104px;padding:20px;font-weight:900;display:grid}.drop-zone-active{color:#1b55d6;background:#eef4ff;border-color:#2257e5}.drop-zone span{overflow-wrap:anywhere;max-width:100%}.drop-zone input{display:none}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;display:grid}.summary-grid>div{background:#f7faff;border-radius:8px;gap:4px;padding:10px;display:grid}.remote-firmware{gap:10px;margin-top:12px;display:grid}.firmware-row .remote-firmware{margin-top:0}.firmware-row .drop-zone{min-height:132px}.remote-firmware-head{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.remote-firmware-head strong{color:#172033}.remote-firmware-head span{color:#61708a;font-size:.9rem;line-height:1.45}.remote-firmware-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.remote-firmware-row{background:#f9fbff;border:1px solid #e0e8f7;border-radius:8px;grid-template-columns:minmax(0,1fr) minmax(86px,auto);align-items:center;gap:10px;min-width:0;padding:10px;display:grid}.remote-firmware-row+.remote-firmware-row{border-top:1px solid #e0e8f7}.remote-firmware-row>div{gap:3px;display:grid}.remote-firmware-row strong{color:#172033}.remote-firmware-row span,.remote-firmware-row em{color:#61708a;font-size:.82rem;font-style:normal;line-height:1.35}.remote-firmware-row a{color:#2257e5;font-size:.82rem;font-weight:850;text-decoration:none}.remote-firmware-row a:hover{text-decoration:underline}.remote-firmware-row button,.remote-firmware-row .firmware-download-button{padding-inline:.8rem}.inline-error{color:#a72b3c;background:#fff2f4;border-radius:8px;margin-top:10px;padding:10px;font-weight:700}.inline-success{color:#16733b;background:#e8f9ee;border-radius:8px;margin-top:10px;padding:10px;font-weight:700}.action-card{justify-content:space-between;align-items:center;gap:20px;display:flex}.action-card p{color:#65728a;margin-bottom:12px}.checkbox{color:#30405c;align-items:center;gap:10px;font-weight:850;display:inline-flex}.checkbox input{width:18px;height:18px}.verify-note{color:#65728a;margin:8px 0 0;line-height:1.45}.action-buttons{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.log-card{margin-top:14px;padding:0;overflow:hidden}.log-summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.log-summary span{align-items:center;gap:10px;display:inline-flex}.log-summary em{color:#65728a;font-style:normal;font-weight:800}.log-window{color:#e7edf7;background:#111827;border-radius:8px;min-height:150px;max-height:240px;margin:0 14px 14px;padding:14px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.86rem;overflow:auto}.log-line{grid-template-columns:96px 70px minmax(0,1fr);gap:10px;padding:3px 0;line-height:1.5;display:grid}.log-line span{color:#93a4bd}.log-line strong{font-style:normal}.log-line em{color:#d7e1ef;word-break:break-word;font-style:normal}.log-success strong{color:#7ee2a8}.log-warn strong{color:#ffd166}.log-error strong{color:#ff7b93}.log-debug strong{color:#96b7ff}.log-info strong{color:#8dd7ff}.muted{color:#8e9bb0}@media (width<=900px){.hero,.grid{grid-template-columns:1fr}.span-5,.span-6,.span-7,.span-12{grid-column:span 1}.action-card{flex-direction:column;align-items:stretch}.action-buttons{justify-content:stretch}.action-buttons button{flex:180px}.usb-row,.firmware-row,.midi-rescue-controls{grid-template-columns:1fr}}@media (width<=560px){.shell{width:min(100vw - 20px,1180px);padding-top:18px}.card,.progress-card,.hero-card{border-radius:20px;padding:16px}.summary-grid,.remote-firmware-list,.log-line{grid-template-columns:1fr}.remote-firmware-head{align-items:flex-start}.remote-firmware-head span{text-align:right}.remote-firmware-row{grid-template-columns:1fr;align-content:start}.remote-firmware-row button,.remote-firmware-row .firmware-download-button{gap:.35rem;width:100%;padding-inline:.55rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
