.rbh-device-tools[hidden],.rbh-device-tools [hidden]{display:none!important}
.rbh-device-tools{position:fixed;z-index:900;top:84px;left:208px;right:0;bottom:0;overflow:auto;padding:24px 28px;background:#10191f;color:#eef4f3;font:14px/1.6 'Noto Sans SC','Microsoft YaHei',sans-serif}.rbh-device-tools *{box-sizing:border-box}
.rbh-device-tools h2{font-size:21px;margin:0}.rbh-device-tools h3{font-size:16px;font-weight:600;margin:0 0 10px}.rbh-device-tools p{margin:4px 0 12px}
.dt-top{display:flex;align-items:center;gap:12px;margin-bottom:20px}.dt-top>div{flex:1}.dt-top p,.dt-hint{color:#afc0c5;max-width:75ch}
.dt-top{position:sticky;top:0;z-index:10;background:#10191f;padding:10px 0}.dt-doc-link{color:#b1f0dd;padding:8px 4px}
.rbh-device-tools button,.rbh-device-tools input,.rbh-device-tools select,.rbh-device-tools textarea{font:inherit;color:#eef4f3;background:#152128;border:1px solid #43575e;border-radius:5px;min-height:38px;padding:7px 12px}
.rbh-device-tools button{cursor:pointer;background:#233b42;white-space:nowrap}.rbh-device-tools button:hover{background:#305058}.rbh-device-tools button:disabled{cursor:not-allowed;opacity:.5}.rbh-device-tools .dt-primary{background:#79d4bf;color:#102923;border-color:#79d4bf}.rbh-device-tools .dt-danger{background:#4a2c36;color:#f3b0b6;border-color:#78535d}
.rbh-device-tools :is(button,input,select,textarea):focus-visible{outline:2px solid #79d4bf;outline-offset:3px}
.dt-tabs{display:flex;gap:0;border-bottom:1px solid #34454c;margin:0 0 16px;flex-wrap:wrap}.dt-tabs button{border:0;background:transparent;border-radius:0;padding:10px 20px;color:#afc0c5;border-bottom:2px solid transparent}.dt-tabs button[aria-selected=true]{color:#b1f0dd;border-bottom-color:#79d4bf;background:#20463f}
.dt-connection,.dt-row,.dt-profile{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.dt-connection{padding:0 0 16px;border-bottom:1px solid #34454c}.dt-field{display:flex;flex-direction:column;gap:5px;min-width:130px}.dt-field span{font-size:12px;color:#afc0c5}.dt-field input{width:160px}.dt-field input[aria-label^='屏幕 UUID']{width:235px}.dt-field input[aria-label='输入文字（ASCII）']{width:280px}.dt-field textarea{width:100%;resize:vertical;min-height:105px;font-family:Consolas,monospace}
.dt-live{margin-top:12px;color:#e5c27b}.dt-connected{color:#8cd6a9}.dt-feedback{min-height:23px;overflow-wrap:anywhere;color:#afc0c5}.dt-error{color:#ffa1a8}
.dt-profile{margin:20px 0 22px;align-items:center}.dt-profile>span{font-weight:600}.dt-profile input[type=file]{max-width:250px}.dt-profile input:not([type=file]){max-width:180px}
.dt-section{padding:20px 0 24px;border-bottom:1px solid #34454c}.dt-section:first-child{padding-top:4px}.dt-section:last-child{border-bottom:0}.dt-row{margin:12px 0}.dt-section:has(textarea)>.dt-field{width:100%}
.dt-section canvas[data-trajectory],.dt-section canvas[data-physical-trace]{display:block;width:100%;max-width:700px;margin-top:12px;border:1px solid #34454c;border-radius:5px}.dt-lcd{display:block;width:256px;max-width:100%;height:auto;image-rendering:pixelated;background:#152128;margin-top:16px;border:1px solid #43575e}
.dt-event-view,.dt-facts{white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:280px;background:#152128;padding:14px;font:12px/1.8 Consolas,'Microsoft YaHei',monospace;border:1px solid #34454c;border-radius:5px}.dt-capabilities{display:flex;flex-wrap:wrap;gap:8px}.dt-capabilities span{padding:4px 10px;background:#20463f;color:#b1f0dd;border-radius:5px}
.rbh-device-tools-open .rbh-workbench-header{z-index:950}.rbh-device-tools-open .nav-inner{z-index:950}
@media(max-width:1280px){.rbh-device-tools{left:184px}}
@media(max-width:960px){.rbh-device-tools{left:168px;padding:20px}.dt-top{align-items:start;flex-wrap:wrap}.dt-top>div{flex-basis:100%}}
@media(max-width:700px){.rbh-device-tools{left:0;top:0;padding:16px;z-index:1200}.dt-field{flex:1;min-width:0}.dt-connection .dt-field{flex:1 1 100%}.dt-field input,.dt-field input[aria-label^='屏幕 UUID']{width:100%;min-width:0;max-width:100%}.dt-tabs button{padding:10px 14px}.dt-top button{flex:1}.dt-profile input[type=file]{max-width:100%}}
