.adbmain{display:flex;flex-direction:column;gap:16px;padding-bottom:40px}
.adbcard h2{margin:0;font-size:16px}
.adbcard .note{margin:0}
.adbline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.adbline input[type=text],.adbline input[type=search],.adbline select{font:12.5px "IBM Plex Mono",ui-monospace,Menlo,monospace;padding:6px 8px;border:1px solid var(--line2);border-radius:7px;background:var(--surface);color:var(--ink);min-width:0;flex:1}
.adbline select{flex:0 0 auto;font-family:"IBM Plex Sans",system-ui,sans-serif}
.adbline label{display:flex;gap:5px;align-items:center;white-space:nowrap}
.adbhead{display:flex;gap:10px;align-items:center}
.adbhead .sp{flex:1}
.adbline .sp{flex:1}
.adbpill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600}
.adbpill.off{background:var(--surface2);color:var(--muted)}
.adbpill.on{background:var(--accent-bg);color:var(--accent-ink)}
.adbpill.dev{background:var(--accent);color:#fff}
.adbdev{display:flex;gap:12px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:8px;flex-wrap:wrap}
.adbdev .nm{font-weight:600}
.adbdev .sub{color:var(--muted);font-size:12.5px;font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace}
.adbdev .sp{flex:1}
.adbdevs{display:flex;flex-direction:column;gap:8px}
.adbtabs{display:flex;gap:4px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.adbtabs button{background:none;border:0;border-bottom:2px solid transparent;padding:7px 12px;font:600 13.5px "IBM Plex Sans",system-ui,sans-serif;color:var(--muted);cursor:pointer}
.adbtabs button.on{color:var(--ink);border-bottom-color:var(--accent)}
.adbpane{display:flex;flex-direction:column;gap:10px;min-width:0}
.adblist{border:1px solid var(--line);border-radius:8px;max-height:560px;overflow:auto}
.adbrow{display:flex;gap:10px;align-items:center;padding:6px 10px;border-bottom:1px solid var(--line);font-size:13px;min-width:0}
.adbrow:last-child{border-bottom:0}
.adbrow .nm{font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;font-size:12.5px;overflow-wrap:anywhere;min-width:0}
.adbrow .nm.go{cursor:pointer;color:var(--accent-ink)}
.adbrow .nm.go:hover{text-decoration:underline}
.adbrow .meta{color:var(--muted);font-size:12px;white-space:nowrap}
.adbrow .sp{flex:1}
.adbrow .btn{padding:3px 9px;font-size:12px}
.adbrow.sel{background:var(--surface2)}
.adbdetail{padding:8px 10px 10px 22px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px;background:var(--surface2);font-size:12.5px}
.adbdetail .apk{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.adbdetail .apk .nm{font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;overflow-wrap:anywhere}
.adbempty{padding:14px;color:var(--muted);font-size:13px;text-align:center}
.adbterm{margin:0;font:12.5px/1.45 "IBM Plex Mono",ui-monospace,Menlo,monospace;background:var(--surface2);border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-height:280px;max-height:520px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.adbterm.small{min-height:80px}
.adbterm.log{min-height:420px}
.adbterm .lvE,.adbterm .lvF{color:var(--crash)}
.adbterm .lvW{color:var(--warn)}
.adbterm .lvD,.adbterm .lvV{color:var(--muted)}
.prompt{font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;color:var(--muted)}
.adbshot{display:flex;justify-content:center}
.adbshot img{max-width:100%;max-height:75vh;border:1px solid var(--line);border-radius:10px}
.adbmain [hidden]{display:none !important}
.adbkey{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line)}
.adbkey:last-child{border-bottom:0}
.adbkey.active{background:var(--accent-bg)}
.adbkey .nmin{font:600 13px "IBM Plex Mono",ui-monospace,Menlo,monospace;padding:3px 6px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ink);min-width:0;width:100%}
.adbkey .nmin:hover{border-color:var(--line2)}
.adbkey .nmin:focus{border-color:var(--accent);outline:none;background:var(--surface)}
.adbkey .fp{grid-column:2;font:11.5px "IBM Plex Mono",ui-monospace,Menlo,monospace;color:var(--muted);overflow-wrap:anywhere}
.adbkey .acts{grid-row:1/span 2;grid-column:3;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.adbkey .acts .btn{padding:3px 9px;font-size:12px}
.adbkey .devs{grid-column:2/-1;font-size:12.5px;display:flex;flex-direction:column;gap:2px}
.adbkey .devs .d{display:flex;gap:8px;align-items:center}
.adbkey .devs .x{background:none;border:0;color:var(--muted);cursor:pointer;padding:0 4px;border-radius:4px}
.adbkey .devs .x:hover{color:var(--crash)}
.adbkey .tag{font-size:11px;font-weight:600;padding:1px 6px;border-radius:4px;background:var(--surface2);color:var(--muted)}
.dlbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:1px solid var(--line2);background:var(--surface);color:var(--muted);border-radius:5px;cursor:pointer}
.dlbtn svg{width:12px;height:12px}
.dlbtn:hover:not(:disabled){border-color:var(--accent);background:var(--accent-bg);color:var(--accent-ink)}
.dlbtn:disabled{opacity:.4;cursor:default}
.dlbtn.big{width:30px;height:30px;border-radius:7px}
.dlbtn.big svg{width:15px;height:15px}
.dlgap{flex:none;width:20px}
.adbas{font:600 12.5px "IBM Plex Mono",ui-monospace,Menlo,monospace;background:var(--accent-bg);color:var(--accent-ink);padding:4px 10px;border-radius:999px}
/* the ADB page in the application layout (tabs): each tool's list, terminal or screenshot fills its tab and scrolls inside */
html.apptabs .adbpanel > :is(.adblist,.adbterm){flex:1 1 0;max-height:none;min-height:160px}
html.apptabs .adbpanel > .adbshot{flex:1 1 0;min-height:160px;align-items:center}
html.apptabs .adbpanel > .adbshot img{max-height:100%;object-fit:contain}
html.apptabs #sec-device{gap:16px}
/* tunnels */
.tunform input[type=number]{width:86px;font:12.5px "IBM Plex Mono",ui-monospace,Menlo,monospace;padding:6px 8px;border:1px solid var(--line2);border-radius:7px;background:var(--surface);color:var(--ink);flex:none}
.tunform input[type=text]{flex:0 1 180px}
.tunform label{gap:6px}
.tunlist{min-height:48px;max-height:none}
.tunrow{flex-wrap:wrap}
.tunrow .tunerr{color:var(--crash);white-space:normal;max-width:40ch}
html.apptabs .adbpanel.adbtun > .tunlist{flex:none;min-height:48px}
