:root{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#252d3a;background:#f0f4f9}*{box-sizing:border-box}body{margin:0;padding:26px 22px}.shell{max-width:1080px;background:white;border:1px solid #e1e6ee;border-radius:15px;margin:auto;padding:34px;box-shadow:0 4px 20px #1c2b4810}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.brand{display:flex;gap:23px;align-items:center}h1{font-size:21px;line-height:1.3;margin:0;font-weight:650;letter-spacing:-.4px}.brand p{margin:4px 0 0;color:#788394;font-size:12px}.language-switch{display:flex;align-items:center;gap:8px;font-size:12px}select{font:inherit;background:#fff;border:1px solid #d5dce6;border-radius:5px;min-height:36px;padding:6px 10px;color:#40516a}.language-switch select{max-width:130px}.toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}button{font:inherit;font-size:13px;border:1px solid #d7dee8;background:white;color:#40516a;border-radius:5px;padding:8px 12px;min-height:37px;cursor:pointer;white-space:nowrap}button:hover:enabled{background:#f2f6fc;border-color:#9ab6df}button:disabled{color:#9aa7b7;background:#f7f9fb;border-color:#e9edf2;cursor:not-allowed}.primary{background:#3279e8;border-color:#3279e8;color:#fff}.primary:hover:enabled{background:#2464cf;border-color:#2464cf}.primary:disabled{background:#dce9fb;color:#8faedb}.danger{color:#be4352;border-color:#edc9d0;background:#fff6f7}.separator{height:25px;width:1px;background:#e3e8ef;margin:0 3px}.device-menu{position:relative;flex-shrink:0}#device-menu{position:absolute;z-index:5;top:44px;right:0;width:220px;padding:6px;background:#fff;border:1px solid #dce3ed;box-shadow:0 6px 20px #21304422;border-radius:8px}#device-menu button{display:block;width:100%;border:0;text-align:left;background:white;padding:10px 12px}#device-menu button:hover:enabled{background:#f0f5fc}.location{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:15px 0}nav{display:flex;flex-wrap:wrap;gap:5px}nav button{font-size:12px;min-height:28px;padding:3px 9px;background:#f7f9fc}nav button+button:before{content:'/ ';color:#a3acb7}.view-options{display:flex;gap:12px;align-items:center;font-size:12px;color:#778393}.view-options label{display:flex;gap:5px;align-items:center}.view-options select{font-size:12px;min-height:29px;padding:3px 7px}input[type=checkbox]{accent-color:#3279e8;width:15px;height:15px;margin:0;flex-shrink:0}.file-area{border:1px solid #e1e6ed;border-radius:9px;overflow:hidden}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;table-layout:fixed}thead{background:#f7f9fc;color:#536175;font-size:12px}th{height:48px;font-weight:600}td,th{padding:10px 12px;border-bottom:1px solid #edf0f5}th.select-cell{width:42px}th:nth-child(2){width:37%}th:nth-child(3){width:20%}th:nth-child(4){width:14%}td{overflow-wrap:anywhere;color:#607086;font-size:13px}td .text-button{border:0;background:none;text-align:left;padding:3px 0;white-space:normal;overflow-wrap:anywhere;color:#2b69b6}.empty{padding:45px 16px;text-align:center;color:#909aaa;font-size:13px;min-height:140px}.device-status{display:flex;gap:8px;align-items:center;font-size:12px;color:#6c7c90;margin-top:17px}.status-dot{width:7px;height:7px;background:#9aa9bc;border-radius:100%}.instruction{border:1px solid #dce8fa;color:#3a659d;background:#f4f8ff;text-align:center;border-radius:6px;padding:10px;margin:14px 0 9px;font-size:13px}.notice{color:#9e4d36;background:#fff7ef;border:1px solid #f1dbc7;padding:10px;border-radius:6px;font-size:12px}.message{font-size:13px;color:#62718a;margin:8px 0;overflow-wrap:anywhere}.operation-footer{display:flex;align-items:center;gap:9px}.subtle{font-size:12px;border:0;background:transparent;padding:5px 0;min-height:30px}.preview-label{margin-left:auto;color:#9b7b49;font-size:11px;background:#fcf7ed;padding:3px 8px;border-radius:12px}.compatibility{font-size:12px;color:#7c8797;margin:12px 0}summary{cursor:pointer}.compatibility p{max-width:850px}footer{text-align:center;font-size:12px;color:#abb4c1;margin-top:22px}footer a{color:#3f76bc;text-decoration:none;margin:0 8px}footer p{font-size:11px;margin:12px 0 0}.queue{list-style:none;margin:5px 0;padding:0;font-size:12px}.queue:empty{display:none}progress{width:100%;height:9px;accent-color:#3279e8}[data-progress]{margin-top:14px}[data-progress-text]{font-size:12px}dialog{width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:0;border:1px solid #dce3ec;border-radius:12px;box-shadow:0 15px 60px #1b2c4733;color:#303b4e}dialog::backdrop{background:#1e2b4666}.modal-title{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid #e5eaf0;position:sticky;top:0;background:#fff;z-index:2}.modal-title h2{font-size:17px;margin:0}.modal-title button{border:0;font-size:23px;min-height:32px;padding:0 6px;color:#8995a4}dialog main{padding:8px 22px 18px}dialog section{padding:16px 0;border-bottom:1px solid #e9edf2}dialog .step{display:flex;align-items:center;gap:9px;margin-bottom:11px}dialog .step>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e7f1ff;color:#3679d9;font-size:12px}dialog h2{font-size:14px;margin:0}dialog p{font-size:12px;line-height:1.6;color:#6e7d91}dialog label{font-size:12px}dialog select#release{display:block;width:100%;margin-top:6px;min-height:40px}dialog .check{display:flex;gap:8px;align-items:flex-start;margin:12px 0;line-height:1.5}dialog .check input{margin-top:2px}dialog .row{display:flex;flex-wrap:wrap;gap:8px}dialog details{font-size:12px;margin-top:15px}dialog .error{color:#b54a43}.modal-footer{padding:12px 22px;border-top:1px solid #e5eaf0;display:flex;justify-content:flex-end}dialog input:not([type=checkbox]){padding:9px;font:inherit;border:1px solid #cbd5e1;border-radius:5px;width:100%}dialog form{padding:20px}dialog menu{padding:0;display:flex;justify-content:flex-end;gap:9px}[hidden]{display:none!important}:focus-visible{outline:3px solid #9bc1fc;outline-offset:2px}@media(max-width:650px){body{padding:12px}.shell{padding:19px 16px;border-radius:11px}header{gap:10px;align-items:flex-start;margin-bottom:20px}.brand{gap:9px;align-items:flex-start;flex-direction:column}.brand img{width:87px}h1{font-size:16px}.brand p{font-size:10px}.language-switch span{display:none}.language-switch select{max-width:118px;font-size:12px;min-height:38px}.toolbar{flex-direction:column-reverse;gap:9px}.device-menu{align-self:flex-end;margin-top:-4px}.actions{gap:5px;width:100%}.actions button{flex:1 0 auto;min-height:42px;padding:7px 10px;font-size:12px}.separator{display:none}.location{flex-wrap:wrap;margin:12px 0}.view-options{margin-left:auto}th,td{padding:8px}th.select-cell{width:30px}th:nth-child(2){width:34%}th:nth-child(3){width:24%}th:nth-child(4){width:17%}th:last-child,td:last-child{display:none}.empty{padding:35px 8px;min-height:130px}.instruction{text-align:left}.operation-footer{gap:10px;flex-wrap:wrap}.subtle{min-height:36px}.preview-label{margin-left:0}dialog main{padding:4px 16px 16px}.modal-title{padding:13px 16px}dialog button{min-height:42px}dialog p{font-size:13px}}
.connection-tools{margin-left:auto;flex-shrink:0}[data-connected-tools]{display:flex;align-items:center;gap:5px}.connected-badge{background:#64b938;color:white;border-radius:5px;padding:9px 12px;font-size:12px;white-space:nowrap}#open-firmware-connected{background:#8b929d;color:white;border-color:#8b929d}[data-connected-tools] [data-disconnect]{color:#4a8d30;background:#f2faed;border-color:#cde5bf}.row-action-cell{width:38px;padding-left:4px;padding-right:6px}.row-menu{position:relative}.row-menu>summary{list-style:none;text-align:center;font-size:20px;min-height:32px;cursor:pointer}.row-menu>summary::-webkit-details-marker{display:none}.row-menu>div{position:absolute;right:0;top:30px;background:white;padding:5px;border:1px solid #dce4ed;border-radius:6px;box-shadow:0 5px 15px #24375020;z-index:3;min-width:115px}.row-menu button{display:block;width:100%;text-align:left;border:0}.selected{background:#f2f7ff}.file-icon{display:inline-block;width:13px;height:15px;border:1.5px solid #8292a5;border-radius:2px;margin-right:7px;vertical-align:middle}.folder-icon{height:11px;width:16px;position:relative}.folder-icon:before{content:'';position:absolute;width:7px;height:3px;top:-4px;left:-1.5px;border:1.5px solid #8292a5;border-bottom:0;border-radius:2px 2px 0 0}.drive-icon{height:13px;width:15px}.document-icon{background:repeating-linear-gradient(0deg,transparent 0 3px,#c9d3df 3px 4px) center/7px 8px no-repeat}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}th:nth-child(2){width:35%}th:nth-child(3){width:21%}th:nth-child(4){width:12%}.table-wrap{padding-bottom:80px;margin-bottom:-80px}.file-area{overflow:visible}.empty{background:#fff;position:relative;border-radius:0 0 9px 9px}@media(max-width:650px){.connection-tools{max-width:100%;width:100%}.connection-tools>.device-menu{display:flex;justify-content:flex-end}[data-connected-tools]{flex-wrap:wrap;justify-content:flex-end}.connected-badge{white-space:normal;font-size:11px;margin-right:auto;padding:8px}.row-action-cell{width:28px;display:table-cell!important}th:nth-child(5),td:nth-child(5){display:none}th:nth-child(2){width:36%}th:nth-child(3){width:25%}th:nth-child(4){width:15%}.row-menu>summary{min-height:42px;line-height:42px}.row-menu>div{top:38px}.row-menu button{min-height:42px}}

/* Shared chevron geometry: 14px from the right edge, reserved text space. */
select,#device-menu-button{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236d819c' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px!important}
#device-menu-button{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E")}
.language-switch select,#device-menu-button{width:140px;max-width:140px;min-height:38px}.ui-icon{width:17px;height:17px;flex:none;vertical-align:-3px;margin-right:7px}#device-menu button{display:flex;align-items:center;gap:0}#device-menu-button{display:flex;align-items:center}.language-switch{margin-left:auto}#transfer-mode{display:block;width:100%;margin:6px 0 12px}#timing-panel{background:#f5f8fc;padding:12px;border-radius:6px;margin-top:12px}#timing-panel h3{font-size:13px;margin:0}#timings{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px}#timings dd{margin:0;font-variant-numeric:tabular-nums} @media(max-width:650px){.language-switch select,#device-menu-button{width:126px;max-width:126px}header{gap:5px}}

/* Narrow fixes on historical v3 layout: status, logs and completion. */
.step small{margin-left:auto;color:#6e7d91;font-size:12px}#direct-dfu{margin-top:10px;white-space:normal}#test-options select{display:block;width:100%;margin-top:8px}#test-options label{display:block;margin-top:12px}#timings{display:grid;grid-template-columns:1fr auto;gap:6px}#timings dd{margin:0}.modal-footer{gap:10px;justify-content:space-between;flex-wrap:wrap}.log-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#log-scope{max-width:145px}#session-status,#error-detail,#build-detail{overflow-wrap:anywhere}#build-label{overflow-wrap:anywhere}#cache-status{font-size:12px}#success-dialog main{padding:18px 22px}#success-version{font-size:18px;color:#24364c}#device-status:empty{display:none}@media(max-width:480px){dialog button{white-space:normal}.step small{max-width:100px}.modal-footer{padding:12px 16px}}

.upload-complete{padding:24px;width:min(380px,calc(100vw - 32px));text-align:center}.upload-complete p{font-size:16px;margin:0 0 16px}

/* Only the requested direct shortcuts and text-only connection guide. */
#device-menu{position:static;display:flex;gap:12px;width:auto;padding:0;border:0;box-shadow:none;background:transparent}#device-menu button{width:auto;border:1px solid #d7dee8;padding:8px 12px;white-space:normal}#device-menu [data-connect]{background:#3279e8;color:white;border-color:#3279e8}#device-menu [data-connect]:disabled{background:#dce9fb;color:#8faedb}.connection-guide{padding:30px 20px 34px;text-align:center;min-height:180px;color:#607086}.connection-guide h2{font-size:17px;color:#40516a;margin:0 0 14px}.connection-guide p{margin:6px auto;text-align:left;max-width:360px;font-size:14px}.connection-guide[hidden]{display:none}@media(max-width:650px){#device-menu{flex-wrap:wrap;justify-content:flex-end;gap:12px}.connection-guide{padding:24px 16px}.connection-guide p{line-height:1.6}}

/* Approved simple UI refinements. */
#device-menu [data-connect]:hover:enabled{background:#215dc3;border-color:#215dc3;color:#fff}
.connection-guide p{text-align:center;max-width:100%;line-height:1.8;margin:8px auto}
.status-dot.connected{background:#39a45a;box-shadow:0 0 0 3px #e5f5e9}
.instruction{background:#edf8ed;border-color:#b9dcbc;color:#346943}
[data-connected-tools]{gap:12px}
.action-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}
.table-wrap{max-height:420px;overflow:auto;padding-bottom:0;margin-bottom:0;border-radius:9px}
.table-wrap thead{position:sticky;top:0;z-index:2;background:#f7f9fc}
.row-menu>div{position:static;min-width:100px;box-shadow:none}.row-menu[open]{min-width:108px}
.language-switch select{width:var(--language-width,110px);max-width:190px;padding-left:10px;background-position:right 12px center;padding-right:32px!important}
#progress-label{font-weight:600;color:#2b69b6;font-variant-numeric:tabular-nums}
@media(max-width:650px){.table-wrap{max-height:min(420px,50dvh)}.language-switch select{width:var(--language-width,110px);max-width:155px}.instruction{text-align:center}.connection-guide p{font-size:13px}.toolbar{gap:14px}}

/* v11: single-row file tools and adjustable viewport. */
.toolbar{flex-wrap:wrap;align-items:center}.actions{flex:1 1 570px;min-width:0;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:3px 1px 9px;scrollbar-width:thin}.actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:1 0 auto;padding:7px 8px;min-height:64px;font-size:12px;white-space:nowrap}.actions .action-icon{width:23px;height:23px}.actions .separator{flex:none;height:36px}.connection-tools{margin-left:auto}.path-summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}[data-capacity]{font-size:12px;color:#607086;font-variant-numeric:tabular-nums}.table-wrap{max-height:var(--list-height,420px)}.height-tools{display:flex;justify-content:flex-end;margin:5px 0 0;color:#607086;font-size:12px}.height-tools summary{text-align:right;padding:5px;min-height:30px}.height-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0}.height-options label{display:flex;align-items:center;gap:8px}.height-options input{max-width:160px;accent-color:#3279e8}.height-options output{min-width:45px}dialog .row{gap:12px;align-items:center}#start-update,#cancel{margin:0}.folder-size{display:block;font-size:11px!important;color:#607086!important;margin-top:4px}.connection-guide{padding-top:24px;padding-bottom:24px}
@media(max-width:650px){.toolbar{flex-direction:column-reverse;align-items:stretch}.actions{flex:0 0 auto;max-width:100%;width:100%;gap:4px}.actions button{flex:0 0 auto;min-width:64px;padding:7px 9px}.table-wrap{max-height:var(--list-height,min(420px,50dvh))}.height-options{justify-content:flex-end}.location{align-items:flex-start}.path-summary{width:100%;gap:6px}[data-capacity]{font-size:11px}.height-options input{max-width:135px}}
/* v12: compact horizontal tools; right-side control dimensions unchanged. */
.actions{padding:0 1px;align-items:center;flex-basis:570px;gap:4px}.actions button{flex-direction:row;gap:5px;min-height:37px;height:37px;min-width:0;padding:7px 8px;flex:0 0 auto;font-size:12px}.actions .action-icon{width:17px;height:17px;flex:none}.actions .separator{height:24px}.height-tools{position:relative;margin:-29px 2px 0;min-height:29px;pointer-events:none;align-items:center;gap:6px;z-index:3}.height-tools button{pointer-events:auto;background:#fff}.height-tools [data-height-reset]{font-size:11px;min-height:25px;padding:2px 5px}.height-tools [data-height-handle]{padding:3px;min-height:28px;width:28px;height:28px;cursor:ns-resize;touch-action:none;border:0;border-radius:0 0 7px 0}.height-tools svg{width:22px;height:22px;fill:none;stroke:#607086;stroke-width:2;stroke-linecap:round}.table-wrap{padding-bottom:28px;box-sizing:border-box}
@media(max-width:650px){.actions{flex-basis:auto;padding:0 1px 5px}.actions button{height:42px;min-height:42px;padding:8px;min-width:0}.height-tools [data-height-handle]{width:32px;height:32px}.height-tools{margin-top:-33px;min-height:33px}.table-wrap{padding-bottom:32px}}
@media(max-width:650px){.actions button{height:37.5px;min-height:37.5px;padding:7px 8px}}
/* v13: fill the toolbar without an inner horizontal scroller. */
.toolbar{display:flex;flex-direction:row;flex-wrap:nowrap;gap:10px;align-items:center}.actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 1px repeat(3,minmax(0,1fr));flex:1 1 0;overflow:visible;padding:0;gap:4px;width:auto;max-width:none}.actions button{width:100%;padding:7px 4px;gap:4px;font-size:12px;height:37.5px;min-height:37.5px}.actions button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.actions .separator{margin:0;width:1px}.actions .action-icon{width:15px;height:15px}.connection-tools{flex:0 0 auto;margin-left:0}.connection-tools button,#device-menu button{padding:7px 8px;font-size:12px;min-height:37.5px;height:37.5px}#device-menu,[data-connected-tools]{gap:8px}.connection-tools .ui-icon{width:16px;height:16px}
@media(max-width:800px){.toolbar{flex-wrap:wrap;gap:10px}.connection-tools{order:-1;margin-left:auto}.actions{flex:1 0 100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.actions .separator{display:none}.actions button{padding:7px 6px}.actions button span{overflow:visible;text-overflow:clip}}
/* Allocate toolbar space to actual translated labels rather than equal columns. */
@media(min-width:801px){.actions{grid-template-columns:repeat(6,auto) 1px repeat(3,auto)}.actions button span{overflow:visible;text-overflow:clip}.actions button{font-size:12px;white-space:nowrap}}
@media(max-width:800px){.actions button{min-width:0}.actions button span{white-space:normal;line-height:1.1;font-size:11px}}
@media(min-width:1101px){.shell{max-width:1280px;padding:30px 24px}}
@media(min-width:801px) and (max-width:1100px){.toolbar{flex-wrap:wrap}.connection-tools{order:-1;margin-left:auto}.actions{flex:1 0 100%}}
/* v14: content-sized desktop tools, distinct device controls. */
@media(min-width:801px){
 .toolbar{column-gap:24px}
 .actions{display:flex;flex:0 1 auto;width:max-content;gap:4px;justify-content:flex-start}
 .actions button{width:auto;flex:0 0 auto;padding-inline:7px}
 .actions .separator{flex:0 0 1px;margin-inline:3px}
 .connection-tools{margin-left:auto}
 #device-menu,[data-connected-tools]{gap:10px}
}
@media(min-width:801px) and (max-width:1100px){.actions{flex:0 1 auto}}
@media(min-width:801px){
 :lang(de) .actions,:lang(ru) .actions{gap:2px}
 :lang(de) .actions button,:lang(ru) .actions button{padding-inline:3px;gap:3px}
}
@media(min-width:801px){:lang(ja) .actions button,:lang(es) .actions button{padding-inline:5px}}
/* v15: release notes only; retain the existing modal dimensions. */
#release-status{font-size:13px;color:#59677c;line-height:1.6}
@media(min-width:801px){:lang(de) .actions button{padding-inline:2px}}
#dfu-connection-state{display:flex;align-items:center;gap:7px;font-size:13px;color:#59677c}#dfu-bluetooth-icon{color:#3279e8;width:17px;height:17px;flex:none}#dfu-state-dot{width:8px;height:8px;border-radius:50%;background:#98a5b5;flex:none}#dfu-state-dot.connected{background:#2fa35b;box-shadow:0 0 0 3px #e5f5e9}#dfu-connection-state [hidden]{display:none}
/* v18: one connection status in the step heading. */
.step #dfu-connection-state{margin:0 0 0 auto;max-width:55%;min-width:0;justify-content:flex-end;text-align:right;line-height:1.35;font-size:12px}.step #dfu-connection-text{overflow-wrap:anywhere}.step:has(#dfu-connection-state) h2{flex-shrink:0}

/* Keep the SVG status icon visible independently of HTML hidden properties. */
#dfu-bluetooth-icon:not([hidden]){display:block;min-width:17px;margin:0;color:#3279e8}
