#l9-mailboxes {
  border-bottom: 1px solid #d9d9d9;
  background: #f4f6f8;
  max-height: 48vh;
  overflow: auto;
}

#l9-mailboxes .l9-search {
  display: block;
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12.5px;
  background: #fff;
  color: #111827;
}

#l9-mailboxes .l9-search:focus {
  outline: none;
  border-color: #4f46e5;
}

#l9-blocked-panel {
  border-bottom: 1px solid #d9d9d9;
  background: #991b1b;
}

#l9-blocked-panel .l9-blocked-link {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

#l9-blocked-panel .l9-blocked-link:hover {
  background: #7f1d1d;
}

#l9-mailboxes .l9-title,
#l9-blocked-panel .l9-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 10px 12px 4px;
}

#l9-blocked-panel .l9-blocked-title {
  color: #991b1b;
  background: #fee2e2;
  padding: 8px 12px;
  position: sticky;
  top: 0;
}

#l9-mailboxes .l9-row,
#l9-blocked-panel .l9-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

#l9-mailboxes .l9-addr,
#l9-blocked-panel .l9-addr {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 5px 12px;
  font-size: 12.5px;
  color: #1f2937;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#l9-mailboxes .l9-row:hover,
#l9-blocked-panel .l9-row:hover {
  background: #e8edf3;
}

#l9-blocked-panel .l9-row:hover {
  background: #fecaca;
}

#l9-mailboxes .l9-row.current {
  background: #4f46e5;
}

#l9-mailboxes .l9-row.current .l9-addr {
  color: #fff;
  font-weight: 600;
}

#l9-blocked-panel .l9-empty {
  padding: 6px 12px 10px;
  font-size: 12px;
  color: #7f1d1d;
}

#l9-blocked-panel .l9-unblock {
  flex: 0 0 auto;
  margin-right: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  white-space: nowrap;
}

#l9-blocked-panel .l9-unblock:hover {
  text-decoration: underline;
}

html.dark-mode #l9-mailboxes {
  background: #1a1d24;
  border-bottom-color: #2a2f3a;
}

html.dark-mode #l9-mailboxes .l9-search {
  background: #111827;
  border-color: #374151;
  color: #e5e7eb;
}

html.dark-mode #l9-blocked-panel {
  background: #2a1212;
  border-bottom-color: #2a2f3a;
}

html.dark-mode #l9-mailboxes .l9-title {
  color: #9aa3b2;
}

html.dark-mode #l9-blocked-panel .l9-blocked-title {
  color: #fecaca;
  background: #450a0a;
}

html.dark-mode #l9-mailboxes .l9-addr,
html.dark-mode #l9-blocked-panel .l9-addr {
  color: #e5e7eb;
}

html.dark-mode #l9-mailboxes .l9-row:hover {
  background: #2a3140;
}

html.dark-mode #l9-blocked-panel .l9-row:hover {
  background: #3f1d1d;
}

html.dark-mode #l9-mailboxes .l9-row.current {
  background: #4f46e5;
}

html.dark-mode #l9-blocked-panel .l9-empty {
  color: #fecaca;
}

html.dark-mode #l9-blocked-panel .l9-unblock {
  color: #93c5fd;
}

#mailtoolbar a.button.l9block,
#layout-content .header a.button.l9block {
  display: none !important;
}

#messagelist-header .toolbar.menu {
  align-items: center;
}

#messagelist-header a.button.l9block {
  order: -1;
  align-self: center;
  margin-top: 8px;
  margin-right: 8px;
  min-width: 96px !important;
  width: auto !important;
  height: auto !important;
  padding: 4px 12px !important;
  background: #b91c1c !important;
  border-radius: 6px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

#messagelist-header a.button.l9block:before {
  content: none !important;
  display: none !important;
}

#messagelist-header a.button.l9block .inner {
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  text-indent: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: .03em;
}

#messagelist-header a.button.l9block:hover {
  background: #991b1b !important;
}

#l9-email-tip {
  position: fixed;
  z-index: 100000;
  display: none;
  left: 0;
  top: 0;
  max-width: min(90vw, 420px);
  padding: 7px 11px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  word-break: break-all;
  white-space: pre-line;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .35);
  pointer-events: none;
}

#l9-email-tip.is-on {
  display: block;
}

html.dark-mode #l9-email-tip {
  background: #0b1220;
  color: #f9fafb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}
