.tm-prov-slot:empty{display:none}
.tm-prov-wrap{position:relative;display:inline-block}
.tm-prov-btn{box-sizing:border-box;min-height:32px;white-space:nowrap;font-family:inherit}
.hbtn.tm-prov-btn{min-width:9.5rem;justify-content:flex-start}
.tm-prov-pre{color:var(--text2)}
.tm-prov-name{color:var(--text);font-weight:600}
.tm-prov-chev{margin-left:auto;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);flex-shrink:0}
.tm-prov-btn[aria-expanded="true"] .tm-prov-chev{transform:rotate(-135deg) translate(-2px,-2px)}
.tm-prov-btn:focus-visible,.tm-prov-item:focus-visible,.tm-prov-dlg-f:focus-visible{outline:2px solid var(--accent2);outline-offset:2px}
.tm-prov-pop{position:absolute;top:calc(100% + 8px);right:0;z-index:600;width:20rem;max-width:calc(100vw - 16px);max-height:70vh;overflow-y:auto;box-sizing:border-box;padding:12px;border-radius:10px;border:1px solid var(--border2);background:var(--bg2);box-shadow:0 10px 30px rgba(0,0,0,0.45);font-size:12px;text-align:left}
.tm-prov-h{font-size:11px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.tm-prov-d{margin:0 0 8px;color:var(--text2);line-height:1.5;font-size:12px}
.tm-prov-menu{display:flex;flex-direction:column;gap:2px}
.tm-prov-item{display:block;width:100%;text-align:left;background:none;border:1px solid transparent;padding:8px;border-radius:6px;cursor:pointer;font-family:'DM Sans',sans-serif;color:var(--text)}
.tm-prov-item:hover{background:var(--surface)}
.tm-prov-top{display:flex;align-items:baseline;gap:8px;font-size:13px}
.tm-prov-nm{font-weight:600}
.tm-prov-st{font-size:11px;color:var(--text2)}
.tm-prov-ck{margin-left:auto;color:var(--accent2);font-weight:700}
.tm-prov-scope{display:block;font-size:11px;color:var(--text2);line-height:1.4;margin-top:2px}
.tm-prov-blocked{opacity:.65;cursor:default}
.tm-prov-note{margin:-2px 0 8px;font-size:12px;line-height:1.5;color:var(--text)}
.tm-prov-note:empty{display:none}
.tm-prov-msg{margin-top:8px;font-size:12px;line-height:1.5;color:var(--text)}
.tm-prov-msg:empty{display:none}
.tm-prov-onnav{display:block}
.tm-prov-btn.mob-nav-item{background:none;border:0;cursor:pointer;min-width:44px;min-height:44px;font-family:inherit;justify-content:center}
.mob-nav-item.tm-prov-btn span:first-child{font-size:inherit}
.tm-prov-mob .tm-prov-chev{display:none}
.tm-prov-onnav .tm-prov-pop{position:fixed;left:8px;right:8px;top:auto;bottom:72px;width:auto;max-width:none}
/* Pages other than chat (Packet Analysis, Scheduler): the trigger matches that page's own header buttons (chat uses .hbtn). */
.tm-prov-btn.tm-prov-std{display:inline-flex;align-items:center;gap:5px;min-width:9.5rem;justify-content:flex-start;padding:0 12px;font-size:12px;font-weight:500;line-height:1;color:var(--text2);background:transparent;border:1px solid var(--border2);border-radius:8px;cursor:pointer;transition:all .2s}
.tm-prov-btn.tm-prov-std:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:600px){
  .tm-prov-btn.tm-prov-std{min-width:0;min-height:40px;padding:0 8px}
  .tm-prov-btn.tm-prov-std .tm-prov-pre{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
.tm-hdr .tm-prov-btn.tm-prov-std{min-height:36px}
/* UX2 fixes. B1: the Packet top bar is its own stacking context (z 10) below the capture bar (z 20), so an open menu would sit under it; lift the bar while the menu is open. */
.topbar:has(.tm-prov-btn[aria-expanded="true"]){z-index:30}
/* B2: narrow phones, non-chat pages: compact trigger (name capped with an ellipsis; the full name stays in the aria-label). */
@media(max-width:400px){
  .tm-prov-btn.tm-prov-std{padding:0 6px;gap:2px;min-width:0}
  .tm-prov-btn.tm-prov-std .tm-prov-name{display:inline-block;max-width:4.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tm-prov-btn.tm-prov-std .tm-prov-chev{display:none}
}
/* E: the first-time notice dialog on pages without chat's .btn-save/.btn-cancel styles. */
body:not([data-tm-page="chat"]) #tmProvDlg .btn-save,body:not([data-tm-page="chat"]) #tmProvDlg .btn-cancel{min-height:40px;padding:10px 18px;border-radius:8px;font:inherit;font-size:13px;cursor:pointer}
body:not([data-tm-page="chat"]) #tmProvDlg .btn-save{background:linear-gradient(135deg,var(--accent),var(--accent2));border:0;color:var(--btntext,#000);font-weight:700}
body:not([data-tm-page="chat"]) #tmProvDlg .btn-cancel{background:transparent;border:1px solid var(--border2);color:var(--text2)}
body:not([data-tm-page="chat"]) #tmProvDlg .btn-cancel:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:340px){.tm-prov-btn.tm-prov-std .tm-prov-name{max-width:3.2em}}
