/* SPDX-License-Identifier: GPL-3.0-only */
.ws-dialog{color-scheme:light;--ws-border:#ddd;color:#333;background:#fff;border:1px solid #aaa;border-radius:5px;padding:0;width:min(1220px,96vw);max-width:96vw;height:min(850px,94dvh);max-height:94dvh;box-shadow:0 20px 100px #0008;font:14px/1.5 Arial,Helvetica,sans-serif;overflow:hidden}
.ws-dialog::backdrop{background:#0c131acf;backdrop-filter:blur(3px)}.ws-dialog.ws-expanded{width:98vw;height:98dvh;max-width:98vw;max-height:98dvh}.ws-shell{height:100%;display:flex;flex-direction:column;min-width:0}.ws-dialog *{box-sizing:border-box}.ws-dialog button,.ws-dialog input,.ws-dialog select{font:inherit}.ws-dialog button{cursor:pointer}.ws-dialog button:focus-visible,.ws-dialog input:focus-visible,.ws-dialog select:focus-visible{outline:2px solid #1686c7;outline-offset:2px}.ws-dialog button:disabled{opacity:.5;cursor:default}.ws-toolbar{display:flex;align-items:center;gap:10px;padding:9px 16px;background:#eaf1f6;border-bottom:1px solid #cbd5df;font-size:12px}.ws-toolbar>span{color:#536270;margin-right:auto}.ws-toolbar button,.ws-controls>button{background:linear-gradient(#fff,#eee);border:1px solid #c6c6c6;border-radius:4px;padding:5px 10px;color:#333}.ws-toolbar #ws-close{font-weight:bold}.ws-top{display:flex;align-items:center;background:linear-gradient(#fff,#f1f1f1);border-bottom:1px solid #d4d4d4;min-height:51px;padding:0 27px;gap:25px;box-shadow:0 1px 4px #0001}.ws-brand{font-size:22px;letter-spacing:-.6px;font-weight:500;color:#666;text-shadow:0 1px #fff}.ws-nav{display:flex;gap:0;flex:1}.ws-nav button{border:0;border-radius:0;background:transparent;padding:16px 14px;color:#555}.ws-nav button[aria-pressed=true]{background:#e6e6e6;box-shadow:inset 0 2px 6px #0001;color:#222}.ws-frozen{font:bold 10px Arial,sans-serif;border-radius:3px;background:#777;color:white;padding:4px 7px;white-space:nowrap}.ws-main{flex:1;overflow:auto;min-width:0;padding:24px 28px;background:white}.ws-heading h2{font-size:27px;margin:0 0 4px;font-weight:400;letter-spacing:0;color:#333}.ws-heading p{font-size:12px;color:#777;margin:0 0 21px}.ws-tabs{display:flex;gap:3px;border-bottom:1px solid #ddd;margin-bottom:18px;overflow:auto}.ws-tabs button{padding:9px 15px;background:transparent;border:1px solid transparent;border-radius:4px 4px 0 0;color:#08c;white-space:nowrap}.ws-tabs button[aria-selected=true]{background:#fff;border-color:#ddd;border-bottom-color:#fff;color:#555}.ws-content{outline:none;min-width:0}.ws-content h3{font-size:17px;font-weight:400;margin:0 0 13px;color:#333}.ws-panel{border:0;border-top:1px solid #ddd;border-radius:0;padding:17px 0;margin:15px 0}.ws-scroll{max-width:100%;overflow:auto}.ws-scroll table{width:100%;border-collapse:collapse;border:0;font-size:12px;line-height:1.4;color:#333}.ws-scroll th,.ws-scroll td{border:1px solid #ddd;padding:9px 10px;text-align:left;vertical-align:top;max-width:380px;overflow-wrap:anywhere}.ws-scroll th{font-weight:bold;background:#fafafa;color:#444;white-space:nowrap}.ws-scroll tbody tr:nth-child(odd){background:#f5f5f5}.ws-scroll tbody tr:hover{background:#eaf5fb}.ws-note{font-size:12px;line-height:1.6;color:#707070;margin:7px 0 14px;overflow-wrap:anywhere}.ws-note.ws-source{font-family:Consolas,monospace;font-size:11px;color:#53768b}.ws-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:15px 0}.ws-select{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0;max-width:100%}.ws-select select{max-width:100%;width:400px;background:#fff;color:#555;border:1px solid #ccc;border-radius:4px;padding:7px}.ws-select input[type=range]{min-width:200px;accent-color:#1686c7}.ws-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px 28px}.ws-field{display:grid;grid-template-columns:minmax(105px,40%) minmax(0,1fr);align-items:start;gap:3px 12px;min-width:0}.ws-field>span{padding-top:6px;font-size:12px;overflow-wrap:anywhere}.ws-field input{width:100%;min-width:0;color:#555;border:1px solid #ccc;background:#f4f4f4;border-radius:4px;padding:6px 8px;box-shadow:inset 0 1px 2px #0001;cursor:text}.ws-field small{grid-column:2;color:#698296;font:10px/1.5 Consolas,monospace;overflow-wrap:anywhere}.ws-hide-sources .ws-source{display:none}.ws-content details{margin:16px 0;border:1px solid #ddd;border-radius:4px;padding:14px}.ws-content summary{cursor:pointer;font-size:13px;color:#08c}.ws-footer{font-size:10px;color:#999;text-align:center;padding:10px;border-top:1px solid #eee;background:#fafafa}.ws-log{color:#333;background:#f5f5f5;border:1px solid #ddd;border-radius:4px;padding:12px;max-width:100%;max-height:470px;overflow:auto;font:11px/1.6 Consolas,monospace;white-space:pre}.ws-controls span{font-size:12px;color:#666}
@media(max-width:800px){.ws-fields{grid-template-columns:1fr}.ws-toolbar{flex-wrap:wrap;gap:7px}.ws-toolbar>span{flex-basis:calc(100% - 190px)}.ws-top{padding:0 16px;gap:12px;flex-wrap:wrap}.ws-brand{font-size:20px}.ws-nav button{padding:12px 8px;font-size:12px}.ws-frozen{display:none}.ws-main{padding:18px 16px}.ws-controls{gap:12px}.ws-heading h2{font-size:23px}}
@media(max-width:450px){.ws-dialog{width:98vw;max-width:98vw;height:96dvh;max-height:96dvh}.ws-toolbar>span{flex-basis:100%;order:2}.ws-toolbar>b{margin-right:auto}.ws-toolbar button{font-size:10px;padding:4px 6px}.ws-top{gap:4px;justify-content:space-between}.ws-nav{flex:none}.ws-brand{font-size:18px}.ws-nav button{font-size:11px;padding:12px 7px}.ws-main{padding:15px 12px}.ws-field{grid-template-columns:43% minmax(0,1fr)}.ws-tabs button{padding:8px 11px;font-size:12px}.ws-select select{width:100%}}

/* Shared window controls follow the Vnish frame; vendor content stays scoped. */
.ws-dialog{margin:auto;width:calc(100vw - 40px);max-width:1800px;height:calc(100dvh - 40px);max-height:1200px}.ws-shell{height:calc(100% - 36px)}.ws-dialog.ws-expanded{width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0}.ws-dialog .sim-toolbar{min-height:55px}.ws-dialog .sim-toolbar-title{font-weight:600}.ws-dialog .ws-toolbar{display:none}
@media(max-width:800px){.ws-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}}@media(max-width:550px){.ws-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0}.ws-shell{height:calc(100% - 32px)}.ws-dialog .sim-toolbar{min-height:44px}}
/* Classic LuCI layout in the official MicroBT M30S operation guide, pp. 14–19. */
.ws-top{background:linear-gradient(#333,#171717);border-color:#050505;min-height:40px;gap:20px;padding:0 28px;box-shadow:0 1px 3px #0004}.ws-brand{font-size:19px;color:#eee;text-shadow:0 -1px #000}.ws-nav button{color:#bbb;padding:10px 12px;font-size:12px}.ws-nav button:hover,.ws-nav button[aria-pressed=true]{background:#222;color:white;box-shadow:none}.ws-menu{position:relative}.ws-dropdown{position:absolute;z-index:25;top:100%;left:0;min-width:170px;background:#333;border:1px solid #111;box-shadow:0 4px 8px #0005;border-radius:0 0 4px 4px;padding:5px 0}.ws-dropdown button{display:block;text-align:left;width:100%;padding:6px 14px;white-space:nowrap}.ws-dropdown button:hover{background:#08c}.ws-main{padding:25px 45px;position:relative}.ws-heading h2{font-size:24px;font-weight:600;margin:0 0 3px}.ws-heading p{margin-bottom:18px}.ws-panel{border:0;padding:8px 0 15px;margin:14px 0}.ws-content h3{font-size:18px;margin-bottom:14px}.ws-scroll th,.ws-scroll td{border:0;border-top:1px solid #ddd;padding:8px;white-space:nowrap;font-weight:400}.ws-scroll th{background:#f6f6f6}.ws-scroll tbody tr:last-child td{border-bottom:1px solid #ddd}.ws-pool-config .ws-fields{grid-template-columns:1fr;max-width:620px;gap:15px;margin-bottom:24px}.ws-pool-config .ws-field{grid-template-columns:180px 300px}.ws-pool-config .ws-field>span{text-align:right}.ws-pool-config input{background:#fff}.ws-frozen{background:#777;font-size:9px;padding:2px 4px}.ws-footer{flex:none}.ws-top .ws-dropdown[hidden],.ws-tabs[hidden]{display:none!important}
@media(max-width:800px){.ws-main{padding:20px}.ws-top{padding:0 15px;gap:8px}.ws-nav button{padding:10px 7px}.ws-pool-config .ws-field{grid-template-columns:130px minmax(0,1fr)}}
@media(max-width:550px){.ws-top{padding:0 10px;gap:0}.ws-brand{font-size:16px;margin-right:5px}.ws-nav{flex:1;justify-content:flex-end}.ws-nav button{font-size:10px;padding:10px 6px}.ws-nav .ws-dropdown button{font-size:12px;padding:7px 10px}.ws-menu:last-child .ws-dropdown{right:0;left:auto}.ws-main{padding:18px 12px}.ws-pool-config .ws-field{grid-template-columns:110px minmax(0,1fr)}.ws-pool-config .ws-fields{max-width:100%}.ws-top .ws-dropdown{min-width:150px}}
