.tnx-dashboard-count-anchor { position: relative; overflow: visible; }
.tnx-dashboard-count { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #000; border-radius: 50%; background: #ff4545; color: #000; font: bold 11px/1 sans-serif; pointer-events: none; }
.tnx-dashboard-count.is-table { background: #b8b8b8; }

.tnx-mailbox-list { display: grid; gap: 12px; width: 100%; }
.tnx-mailbox-toolbar-separator { opacity: .5; }
.tnx-mailbox-selector > a { text-decoration: none; white-space: nowrap; }
.tnx-mailbox-selector { display: inline-flex; position: relative; }
.tnx-mailbox-selector-panel { position: fixed; z-index: 110000; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 16px); max-height: min(60vh, 360px); box-sizing: border-box; overflow: auto; padding: 10px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-color); color: var(--text-color); box-shadow: 0 4px 12px var(--shadow-color, #0002); font-size: .78rem; }
.tnx-mailbox-selector-panel[hidden] { display: none; }
.tnx-mailbox-selector-panel label { display: flex; align-items: center; gap: 7px; cursor: var(--tnx-cursor-pointer, pointer); min-width: 0; }
.tnx-mailbox-selector-panel label span { overflow-wrap: anywhere; }
.tnx-mailbox-selector-panel input { flex: 0 0 auto; margin: 0; }
.tnx-mailbox-section { min-width: 0; }
.tnx-mailbox-section.is-muted .tnx-mailbox-name { opacity: .3; }
.tnx-mailbox-section.is-muted .tnx-mailbox-states { opacity: .2; }
.tnx-mailbox-heading { text-align: center; margin-bottom: 6px; }
.tnx-mailbox-name { display: inline; font-size: .78rem; font-weight: 700; color: var(--link-color); text-decoration: none; overflow-wrap: anywhere; }
.tnx-mailbox-states { display: flex; flex-wrap: wrap; gap: 5px; }
[data-tooltip-layer-depth] .tnx-mailbox-states { justify-content: center; }
.tnx-mailbox-states .tnx-dashboard-mail-pill { opacity: 1; flex: 0 0 auto; white-space: nowrap; text-decoration: none; font-size: .65rem; }
.tnx-mailbox-states a.tnx-dashboard-mail-pill.is-empty { opacity: .3; }
.tnx-mailbox-states a.tnx-dashboard-mail-pill.is-empty:hover { opacity: .24; }
.tnx-dashboard-mail-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.tnx-dashboard-mail-choices label { display: flex; align-items: center; gap: 5px; cursor: var(--tnx-cursor-pointer, pointer); }
