/* Xbrook Mail skin 2.3.0: inbox restyle overrides (webmail only).
 *
 * Purpose: every 2.3.0 rule override lives in this file, including overrides of
 * the shared fields.css and of the Xbrook Pro plugin CSS. fields.css and fields.js
 * are shared with the hosting panel and stay untouched; the panel never loads
 * this file. panel-theme.css only received the 2.3.0 design tokens.
 *
 * Load order (templates/includes/layout.html): Elastic styles.min.css, xbrook.css,
 * workspace.css, panel-theme.css, mobile.css, fields.css, then refresh.css as the
 * LAST skin stylesheet.
 *
 * Plugin CSS (organizer.css, the plugin workspace.css, xbrook-pro.css) is injected
 * by Roundcube core AFTER this file (rcmail_output_html.php:2090-2146). A rule here
 * that targets plugin markup must therefore be MORE specific than the plugin rule
 * (prefix body or body.xb-mail-workspace); equal specificity loses.
 *
 * Conventions: colours, sizes and type come from the tokens in panel-theme.css, so
 * dark mode (html.dark-mode) follows automatically; literal colours appear only on
 * the navy rail (identical in both modes) and in dark-mode blocks. Desktop-only
 * rules sit inside @media (min-width: 1025px) and are scoped to body.xb-shell or
 * body.xb-mail-workspace. Each rule names its finding (restyle-work/findings.md,
 * restyle-work/PLAN.md) and, where it matters, the file:line it overrides.
 * Skin and plugin file:line references are to the 2.3.0 files (panel-theme.css
 * includes the 2.3.0 token lines); Elastic references (menu.less, layout.less,
 * lists.less, common.less) are to the Roundcube 1.6.19 sources.
 */

/* ==========================================================================
   1. Bridges
   ========================================================================== */

/* 2.3.0: finding #13 #12, webmail fields get >=3:1 borders and the AA accent (overrides fields.css:3-13 --xf-border/--xf-brand; the panel never loads this file).
   2.3.0: finding #16 #4 #17, colours used only by 2.3.0 rules are kept as local tokens so dark mode follows. */
:root {
  --xf-border: var(--xb-border-strong);
  --xf-brand: var(--xb-accent-strong);
  --xb-menu-shadow: 0 8px 24px rgba(16, 35, 58, 0.16);
  --xb-pill-shadow: 0 1px 2px rgba(16, 35, 58, 0.12);
  --xb-danger-text: #b42318;
}
/* 2.3.0: finding #16 #4 #17, dark values of the local tokens above (#fca5a5 is 9:1 on #0f172a) */
html.dark-mode {
  --xb-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --xb-pill-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --xb-danger-text: #fca5a5;
}

/* ==========================================================================
   2. Focus
   ========================================================================== */

/* Migration review: workspace dialogs populate asynchronously after Elastic
   measures an empty popup. Let the content grow instead of keeping that initial
   110px scroll area; bound the finished dialog to the viewport. Phone dialogs
   already use the full-screen treatment in mobile.css. */
@media (min-width: 481px) {
  body .ui-dialog:has(.xbw-dialog) {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
  }
  body .ui-dialog:has(.xbw-dialog) > .ui-dialog-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 100px) !important;
    overflow: auto;
  }
}

/* 2.3.0: finding #13, one 2px AA focus ring with a 2px offset (overrides xbrook.css:67-70, 3px #0288d1) */
:focus-visible {
  outline: 2px solid var(--xb-accent-strong) !important;
  outline-offset: 2px;
}
/* 2.3.0: finding #13 #21, on the navy rail the ring uses the mint nav token (#0b6cb8 on navy is 2.2:1; mint is 7:1 or more) */
body #layout-menu :focus-visible {
  outline-color: var(--xb-nav-active) !important;
}

/* Roundcube restores list focus on load even without a selection. Suppress only
   that automatic/pointer row outline; keep all form-control focus and keyboard
   list navigation visible. Inset rings stay inside scrollable list boundaries. */
body:not(.xb-keyboard-navigation) :is(.listing, .treelist) :is(tr, td, li, a):focus {
  outline: none !important;
}
body.xb-keyboard-navigation :is(.listing, .treelist) :is(tr, td, li, a):focus {
  outline: 2px solid var(--xb-accent-strong) !important;
  outline-offset: -2px;
}
/* Elastic also paints a separate blue left border for its focused row. The
   inset keyboard ring replaces that duplicate cue without changing cell size. */
body .listing.focus tbody tr.focused > td:first-child,
body .listing.focus:not(.withselection) tbody tr.focused > td.selection + td,
body .listing li > a:focus {
  border-left-color: transparent !important;
}
body:not(.xb-keyboard-navigation) #messagelist tr.focused:not(.selected):not(:hover) {
  background: var(--xb-soft) !important;
}
body:not(.xb-keyboard-navigation) #messagelist tr.focused.unread:not(.selected):not(:hover) {
  background: var(--xb-surface) !important;
}

/* Inherited Settings templates hide these native titles on desktop, leaving
   empty bars in the card layout. Keep their original, translated headings. */
@media (min-width: 1025px) {
  body.xb-shell.task-settings :is(#layout-list, #layout-content) > .header > .header-title {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    text-align: left;
    color: var(--xb-text);
    font-size: 14px;
    font-weight: 600;
  }
}

/* fields.js supplies the visible label; move the input's old standalone margin
   to the complete field so label and search align at every viewport width. */
body .xf-field-label:has(> .xbo-schedule-search) {
  margin: 16px 20px;
  gap: 8px;
}
body .xf-field-label > .xbo-schedule-search {
  margin: 0;
  width: 100%;
}

/* ==========================================================================
   3. Screen-reader-only labels
   ========================================================================== */

/* 2.3.0: finding #2, clip-based visually-hidden utility (Elastic's .voice is display:none !important, common.less:16-18, so it hides from screen readers too) */
.xb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* 2.3.0: finding #2, drop the label gap so header controls share one centre line (beats fields.css:274-277 24px and :323-325 30px, both !important) */
body .xf-search-labelled,
body .searchbar.xf-search-labelled {
  margin-top: 0 !important;
}
/* 2.3.0: finding #2, "Search terms" is screen-reader-only again; <label for> is kept and display:block keeps it in the accessibility tree (beats fields.css:278-291 !important) */
body .xf-search-labelled .xf-search-label {
  position: absolute !important;
  display: block !important;
  top: 0;
  left: 0;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* 2.3.0: finding #2, the wrapper fields.js builds around the label filter becomes a row (fields.css:174-180 is a 6px-gap column) */
body .xbo-organize .xf-field-label {
  flex-direction: row;
  align-items: center;
  gap: 0;
}
/* 2.3.0: finding #2, "Filter messages by label" is screen-reader-only; the label keeps for= and the select keeps its aria-label */
body .xbo-organize .xf-field-label > .xf-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 480px) {
  /* 2.3.0: finding #2, phones keep the 14px search margin of mobile.css:95-102, which the removed 30px label rule used to replace */
  body.xbm-phone #layout-list > .searchbar.xf-search-labelled {
    margin-top: 14px !important;
  }
}

/* ==========================================================================
   4. Header (desktop)
   ========================================================================== */

/* 2.3.0: finding #10, the "/" key badge exists only inside the desktop search field */
.xb-search-kbd {
  display: none;
}
@media (min-width: 1025px) {
  /* 2.3.0: finding #2 #16 #22, 64px header from one token; the search starts at the list pane edge (beats fields.css:314-317 88px, workspace.css:123-127, panel-theme.css:147-150 and :322-326) */
  body.xb-shell .xb-topbar {
    height: var(--xb-header-h);
    min-height: var(--xb-header-h);
    padding: 0 20px 0 calc(var(--xb-nav-width) + var(--xb-gutter));
    gap: 16px;
    background: var(--xb-surface);
    border-bottom-color: var(--xb-border);
  }
  /* 2.3.0: finding #22, the brand block matches the header height (panel-theme.css:340-351 was 72px) */
  body.xb-shell .xb-brand {
    height: var(--xb-header-h);
  }
  /* 2.3.0: finding #8 #16 #21, the folder toggle moves into the navy rail as a 36px target (beats workspace.css:194-205) */
  body.xb-shell .xb-topbar > .xb-sidebar-toggle {
    position: absolute;
    z-index: 1;
    top: calc((var(--xb-header-h) - 36px) / 2);
    left: calc(var(--xb-nav-width) - 48px);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--xb-nav-ink);
  }
  /* 2.3.0: finding #21, rail hover background for the folder toggle (beats workspace.css:206-208) */
  body.xb-shell .xb-topbar > .xb-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  /* 2.3.0: finding #16, dark repeat of the rail colour (beats panel-theme.css:327-330, which is !important) */
  html.dark-mode body.xb-shell .xb-topbar .xb-sidebar-toggle {
    color: var(--xb-nav-ink) !important;
  }
  /* 2.3.0: finding #21, dark repeat of the rail hover (panel-theme.css:327-330 forces a transparent background with !important) */
  html.dark-mode body.xb-shell .xb-topbar .xb-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08) !important;
  }
  /* 2.3.0: finding #16, the 74px collapsed rail is too narrow for the brand and the toggle */
  body.xb-shell.xb-nav-collapsed .xb-topbar > .xb-brand {
    display: none;
  }
  /* 2.3.0: finding #16, centre the toggle in the collapsed rail */
  body.xb-shell.xb-nav-collapsed .xb-topbar > .xb-sidebar-toggle {
    left: calc((var(--xb-nav-width) - 36px) / 2);
  }
  /* 2.3.0: finding #13 #21, the brand and the toggle sit on the navy rail, so their ring uses the mint nav token too */
  body.xb-shell .xb-topbar > .xb-sidebar-toggle:focus-visible,
  body.xb-shell .xb-topbar > .xb-brand:focus-visible {
    outline-color: var(--xb-nav-active) !important;
  }
  /* 2.3.0: finding #16, search left edge = list pane edge, at most 760px (beats workspace.css:155-161) */
  body.xb-shell #xb-desktop-search {
    flex: 1 1 420px;
    min-width: 240px;
    max-width: 760px;
    margin-right: auto;
  }
  /* 2.3.0: finding #15 #21, 40px search field without the label gap (beats fields.css:274-277 and :292-296 !important, workspace.css:165-173, panel-theme.css:599-604) */
  body.xb-shell #xb-desktop-search .searchbar {
    height: var(--xb-control-lg) !important;
    min-height: var(--xb-control-lg) !important;
    margin: 0 !important;
    padding: 0 4px 0 8px;
    gap: 8px;
    background: var(--xb-surface);
  }
  /* 2.3.0: finding #14, search text 14px (beats fields.css:51 16px !important) */
  body.xb-shell #xb-desktop-search .searchbar input.xf-control {
    font-size: var(--xb-fs-body) !important;
  }
  /* 2.3.0: finding #21, in-field icon buttons get a 32px box (Elastic menu.less:751-759 drew a 2rem glyph only) */
  body.xb-shell #xb-desktop-search .searchbar a.button {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--xb-control-sm);
    height: var(--xb-control-sm);
    border-radius: var(--xb-radius-control);
  }
  /* 2.3.0: finding #21, show the scope caret, and the reset button only while a search is active; a.search stays hidden (Elastic menu.less:774-777) */
  body.xb-shell #xb-desktop-search .searchbar a.button.options,
  body.xb-shell #xb-desktop-search .searchbar.active a.button.reset {
    display: inline-flex;
  }
  /* 2.3.0: finding #21, centre the glyph inside the 32px box (Elastic menu.less:754-758 width 2rem, height 36px) */
  body.xb-shell #xb-desktop-search .searchbar a.button:before {
    width: auto;
    height: auto;
    line-height: 1;
  }
  /* 2.3.0: finding #21, visible hover background on in-field buttons */
  body.xb-shell #xb-desktop-search .searchbar a.button:hover {
    background: var(--xb-hover-ink);
  }
  /* 2.3.0: finding #8, the "Show unread" envelope duplicates the Unread tab */
  body.xb-shell #xb-desktop-search .searchbar a.unread {
    display: none;
  }
  /* 2.3.0: finding #8 #14 #15, plugin Filters button: 32px, 13px/500, >=3:1 border (beats plugin workspace.css:119-140, which loads later) */
  body.xb-shell #xb-desktop-search .searchbar .xbw-search-filters {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: center;
    align-items: center;
    gap: 6px;
    height: var(--xb-control-sm);
    padding: 0 10px;
    margin: 0;
    border: 1px solid var(--xb-border-strong);
    border-radius: var(--xb-radius-control);
    background: var(--xb-surface);
    color: var(--xb-text);
    font: 500 var(--xb-fs-control)/1 var(--xb-font);
  }
  /* 2.3.0: finding #8, funnel icon on the Filters button (\f0b0, in Elastic's fa-solid-900); the sliders glyph \f1de stays with the list Options button only (Elastic .menu a.options:before) */
  body.xb-shell #xb-desktop-search .searchbar .xbw-search-filters:before {
    content: '\f0b0';
    font: 900 12px/1 Icons;
  }
  /* 2.3.0: finding #21 #13, keyboard focus on the in-field buttons is a 2px ring, not only a tint (beats fields.css:132-137 (0,2,2) outline:none !important, so !important is needed; fields.css stays untouched) */
  body.xb-shell #xb-desktop-search .searchbar :is(a.button, .xbw-search-filters):focus-visible {
    outline: 2px solid var(--xb-accent-strong) !important;
    outline-offset: 0;
  }
  /* 2.3.0: finding #10, "/" key badge at the right end of the search field: order 1 puts it after the input, the scope caret, the reset button and the plugin's Filters button (all order 0; workspace-shell.js inserts it right after the form) */
  body.xb-shell #xb-desktop-search .xb-search-kbd {
    order: 1;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font: 500 var(--xb-fs-caption)/1 var(--xb-font);
    color: var(--xb-text-2);
    background: transparent;
    border: 1px solid var(--xb-border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    box-shadow: none;
  }
  /* 2.3.0: finding #10, the badge steps aside while typing or while a search is active */
  body.xb-shell #xb-desktop-search .searchbar:focus-within .xb-search-kbd,
  body.xb-shell #xb-desktop-search .searchbar.active .xb-search-kbd {
    display: none;
  }
}

/* ==========================================================================
   5. Account menu (tablet and desktop)
   ========================================================================== */

/* 2.3.0: finding #16, closed menu and unavailable items stay hidden (the display rules below would otherwise override [hidden]; the item rule is id-scoped, so this guard is too) */
.xb-account-menu[hidden],
#xb-account-menu .xb-account-item[hidden] {
  display: none;
}
@media (min-width: 481px) {
  /* 2.3.0: finding #16, anchor for the account menu */
  .xb-account {
    position: relative;
  }
  /* 2.3.0: finding #16 #15, the account becomes a 40px button.
     The id selector is deliberate: Elastic's bootstrap_style() adds "btn btn-secondary" to every
     <button> (ui.js:844), and html.dark-mode .btn-secondary (0,2,1), its :hover:not(:disabled) (0,4,1)
     and Bootstrap's :not(:disabled):not(.disabled):active (0,4,0) would paint a grey fill */
  #xb-account-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: var(--xb-control-lg);
    padding: 0 8px 0 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--xb-text);
    font: 500 var(--xb-fs-control)/1.2 var(--xb-font);
    box-shadow: none;
    cursor: pointer;
  }
  /* 2.3.0: finding #16 #21, hover, pressed and open background on the account button (id-scoped for the reason above) */
  #xb-account-button:is(:hover, :active, [aria-expanded='true']) {
    background: var(--xb-hover-ink);
    color: var(--xb-text);
  }
  /* 2.3.0: finding #13 #16, AA avatar fill (beats xbrook.css:170-183 and workspace.css:188-193) */
  .xb-account-button .xb-avatar {
    width: 32px;
    height: 32px;
    border: 0;
    font: 600 var(--xb-fs-caption)/1 var(--xb-font);
    background: var(--xb-accent-strong);
    color: var(--xb-on-accent-strong);
  }
  /* 2.3.0: finding #16, "Signed in as" stays in the accessible name at 481-768px (xbrook.css:1055-1058 sets .xb-account-label display:none) */
  .xb-account .xb-account-label.xb-sr-only {
    display: block;
  }
  /* 2.3.0: finding #16 #14, address in 13px/500 (beats xbrook.css:162-169 and :1062-1065 10px) */
  .xb-account-address {
    max-width: 220px;
    font-size: var(--xb-fs-control);
    font-weight: 500;
  }
  /* 2.3.0: finding #16, chevron that marks the button as a menu */
  .xb-account-chevron:before {
    content: '\f107';
    font: 900 10px/1 Icons;
  }
  /* 2.3.0: finding #16, account menu panel */
  .xb-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1100;
    min-width: 220px;
    padding: 6px;
    background: var(--xb-surface);
    color: var(--xb-text);
    text-align: left;
    border: 1px solid var(--xb-border);
    border-radius: 10px;
    box-shadow: var(--xb-menu-shadow);
  }
  /* 2.3.0: finding #16 #15, 36px menu items (id-scoped: the items are <button>s and get Elastic's btn-secondary fill, see #xb-account-button) */
  #xb-account-menu .xb-account-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--xb-control);
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--xb-text);
    font: 500 var(--xb-fs-control)/1 var(--xb-font);
    text-align: left;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
  }
  /* 2.3.0: finding #16, hover, keyboard and pressed highlight of menu items (beats the dark btn-secondary hover (0,4,1)) */
  #xb-account-menu .xb-account-item:is(:hover, :focus-visible, :active) {
    background: var(--xb-hover-ink);
    color: var(--xb-text);
  }
  /* 2.3.0: finding #17, Sign out is neutral with a red hover only (after the state rule above, same specificity) */
  #xb-account-menu .xb-account-logout:hover {
    color: var(--xb-danger-text);
  }
  /* 2.3.0: finding #16, divider before Sign out */
  .xb-account-separator {
    height: 1px;
    margin: 6px 4px;
    background: var(--xb-border);
  }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  /* 2.3.0: finding #16, the address stays visually hidden at 1025-1199px as before (workspace.css:185-187) but no longer display:none, so it still names the button */
  body.xb-shell .xb-account-copy {
    display: flex;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}
@media (min-width: 1200px) {
  /* 2.3.0: finding #16, show the signed-in address from 1200px (beats workspace.css:185-187) */
  body.xb-shell .xb-account-copy {
    display: flex;
  }
}

/* ==========================================================================
   6. Layout: gutters and pane cards (desktop)
   ========================================================================== */

@media (min-width: 1025px) {
  /* 2.3.0: finding #22, the layout height uses the same header token, with a 16px gutter on all four sides (beats workspace.css:128-132 and panel-theme.css:371-376) */
  body.xb-shell .xb-topbar + #layout {
    height: calc(100vh - var(--xb-header-h));
    padding: var(--xb-gutter) var(--xb-gutter) var(--xb-gutter) 0;
    gap: var(--xb-gutter);
  }
  /* 2.3.0: finding #22, the rail bleeds over the gutter exactly (panel-theme.css:380-387 was -18px/-20px) */
  body.xb-shell #layout-menu {
    margin: calc(-1 * var(--xb-gutter)) 0;
  }
  /* Migration review: Elastic hides its native sidebar below 1200px. Once the
     desktop shell moves folders into our navigation rail (1025px+), keep them
     available there. Preserve the collapsed rail and native phone/tablet drawers. */
  body.xb-shell:not(.xb-nav-collapsed) #layout-menu > #layout-sidebar.hidden {
    display: flex !important;
  }
  /* 2.3.0: finding #19 #22, two separate cards 16px apart (beats panel-theme.css:377-379 gap:0 and workspace.css:455-461) */
  body.xb-shell.xb-mail-workspace #layout {
    column-gap: var(--xb-gutter);
    row-gap: var(--xb-gutter);
  }
  /* 2.3.0: finding #19, the grid gap replaces the 18px left margins (panel-theme.css:619-637) */
  body.xb-mail-workspace #layout-list,
  body.xb-mail-workspace #layout-content,
  body.xb-mail-workspace.xb-pane-bottom #layout-content,
  body.xb-mail-workspace.xb-pane-off #layout-list,
  body.xb-mail-workspace.xb-pane-off #layout-content {
    margin-left: 0;
  }
  /* 2.3.0: finding #19, one card per pane: 1px decorative border, 12px radius, no 3px blue strip (beats panel-theme.css:609-618 and :619-638, workspace.css:437-444 and :466-479, xbrook.css:356-366) */
  body.xb-shell #layout-list,
  body.xb-shell #layout-content,
  body.xb-shell.task-mail.action-compose #layout-content {
    border: 1px solid var(--xb-border) !important;
    border-radius: var(--xb-radius-pane) !important;
    box-shadow: none;
  }
  /* 2.3.0: finding #19 #22, the shell applies on every desktop page, so the Compose options pane is the same card (beats workspace.css:437-444 (3,1,0) 13px radius and shadow, and xbrook.css:720-724 17px radius and --xb-line border, which is !important).
     Settings and Contacts are left alone: their #layout-sidebar has no frame at all (xbrook.css:246-250, border:0 and background:transparent, both !important), so it reads as a nav column, not a mismatched card */
  body.xb-shell.task-mail.action-compose #layout-sidebar:not(#layout-menu #layout-sidebar) {
    border: 1px solid var(--xb-border) !important;
    border-radius: var(--xb-radius-pane);
    box-shadow: none;
  }
  /* 2.3.0: finding #22, Compose keeps the 16px right gutter of the layout (xbrook.css:715-719 adds 15px at 1201px and up) */
  body.xb-shell.task-mail.action-compose #layout-content {
    margin-right: 0;
  }
  /* 2.3.0: finding #19, no band backgrounds or title gradient inside the cards (beats panel-theme.css:639-648) */
  body.xb-shell #layout-list > .header,
  body.xb-shell #layout-content > .header,
  body.xb-shell .xb-inbox-heading,
  body.xb-shell .xb-inbox-tabs {
    background: transparent;
  }
  /* 2.3.0: finding #19, the list table loses its own top line (xbrook.css:459-461) */
  body.xb-mail-workspace #messagelist {
    border-top: 0;
  }
  /* 2.3.0: finding #19, the single divider between the chrome and the list */
  body.xb-mail-workspace #messagelist-content {
    border-top: 1px solid var(--xb-border);
  }
  /* 2.3.0: finding #7, the list pane is a size container so toolbar labels can collapse to icons when narrow (old browsers keep wrapping) */
  body.xb-mail-workspace #layout-list {
    container-type: inline-size;
    container-name: xb-list;
  }
  /* 2.3.0: finding #7, the reading pane is a size container for the message toolbar labels */
  body.xb-mail-workspace #layout-content {
    container-type: inline-size;
    container-name: xb-read;
  }
}
@media (max-width: 1024px) {
  /* 2.3.0: finding #19, remove the tablet 3px strip (panel-theme.css:681-683) */
  body .xb-inbox-heading {
    border-top: 0;
  }
}

/* ==========================================================================
   7. List pane: heading, tabs and list toolbar (desktop)
   ========================================================================== */

@media (min-width: 1025px) {
  /* 2.3.0: finding #4, one heading row ("Inbox" + segmented tabs) above the toolbar (beats workspace.css:494-497, xbrook.css:397-403) */
  body.xb-mail-workspace #layout-list > .xb-inbox-heading {
    order: -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px 6px 16px;
    border: 0;
  }
  /* 2.3.0: finding #4 #14, 22px/600 title, no negative tracking (beats workspace.css:498-501 and panel-theme.css:219-224) */
  body.xb-mail-workspace #layout-list > .xb-inbox-heading h2 {
    flex: 1 1 120px;
    min-width: 0;
    font: 600 var(--xb-fs-title)/1.3 var(--xb-font);
    letter-spacing: 0;
  }
  /* 2.3.0: finding #4 #19, segmented control on the heading row, wrapping under the title when narrow (beats workspace.css:502-508) */
  body.xb-mail-workspace .xb-inbox-heading > .xb-inbox-tabs {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 4px;
    padding: 4px;
    min-height: 0;
    border: 0;
    border-radius: 10px;
    background: var(--xb-soft);
  }
  /* 2.3.0: finding #4 #13 #14, 32px segments in 13px/500 (beats workspace.css:509-522 and panel-theme.css:649-652) */
  body.xb-mail-workspace .xb-inbox-tabs button {
    flex: 0 0 auto;
    height: var(--xb-control-sm);
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--xb-text-2);
    font: 500 var(--xb-fs-control)/1 var(--xb-font);
    cursor: pointer;
  }
  /* 2.3.0: finding #4, segment hover and press. The segments are <button>s, so Elastic's bootstrap_style() makes them .btn-secondary (ui.js:844);
     without the #layout-list id its grey fills would cover the track: html.dark-mode .btn-secondary:hover:not(:disabled) (0,4,1) and Bootstrap's :not(:disabled):not(.disabled):active (0,4,0) */
  body.xb-mail-workspace #layout-list .xb-inbox-tabs button:is(:hover, :focus, :active) {
    background: transparent;
    color: var(--xb-text);
    box-shadow: none;
  }
  /* 2.3.0: finding #13, the active tab is a neutral pill instead of #0288d1 text (beats workspace.css:523-526).
     The inset 1px --xb-border-strong edge is the >=3:1 state indicator (3.1:1 on the light track, 4.2:1 dark);
     the target design's white pill alone is 1.1:1 against the track */
  body.xb-mail-workspace .xb-inbox-tabs button[aria-pressed='true'],
  body.xb-mail-workspace #layout-list .xb-inbox-tabs button[aria-pressed='true']:is(:hover, :focus, :active) {
    background: var(--xb-segment-active);
    color: var(--xb-text);
    font-weight: 600;
    box-shadow:
      var(--xb-pill-shadow),
      inset 0 0 0 1px var(--xb-border-strong);
  }
  /* 2.3.0: finding #20, the tab icons are removed */
  body.xb-mail-workspace .xb-inbox-tabs span[aria-hidden] {
    display: none;
  }
  /* 2.3.0: finding #4 #7, 48px list toolbar row, items left-aligned on one centre line (beats workspace.css:445-454 (1,2,0), xbrook.css:367-374, Elastic layout.less:61-75) */
  body.xb-mail-workspace #layout-list > #messagelist-header {
    height: auto;
    min-height: 48px;
    padding: 0 12px;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
    line-height: normal;
    flex-wrap: wrap;
    border-bottom: 0;
  }
  /* 2.3.0: finding #7, no 58px li box and no .listing seam (Elastic menu.less:40-43, lists.less:14-21); overflow visible keeps the focus ring */
  body.xb-mail-workspace #messagelist-header .toolbar li,
  body.xb-mail-workspace .xb-mailtoolbar li {
    height: auto;
    border: 0 !important;
    display: inline-flex;
    align-items: center;
    overflow: visible;
  }
  /* 2.3.0: finding #7 #14 #15, every toolbar item is a 36px inline-flex button (the :is() with IDs beats xbrook.css:380-384 (1,1,1) !important; also beats workspace.css:542-554 and Elastic menu.less:45-58, incl. its 6rem max-width) */
  body.xb-mail-workspace #messagelist-header a,
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--xb-control);
    min-width: var(--xb-control);
    max-width: none;
    padding: 0 10px !important;
    border-radius: var(--xb-radius-control);
    line-height: 1;
    color: var(--xb-text) !important;
  }
  /* 2.3.0: finding #7, inline 16px icons (beats Elastic menu.less:60-65 height 1.75rem !important and workspace.css:555-561) */
  body.xb-mail-workspace #messagelist-header a:before,
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a:before {
    font-size: 16px;
    line-height: 1 !important;
    height: auto !important;
  }
  /* 2.3.0: finding #7, the refresh icon matches the others (beats workspace.css:555-561 (1,4,1) 15px and xbrook.css:1339-1341 19px) */
  body.xb-shell.xb-mail-workspace #messagelist-header > a.button.icon:before {
    font-size: 16px;
  }
  /* 2.3.0: finding #7 #14, toolbar labels 13px/500 (beats workspace.css:562-571 11px) */
  body.xb-mail-workspace #messagelist-header a .inner,
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a .inner {
    font: 500 var(--xb-fs-control)/1 var(--xb-font);
    position: static;
  }
  /* 2.3.0: finding #7 #21, hover background (beats xbrook.css:385-390 !important) */
  body.xb-mail-workspace #messagelist-header a:not(.disabled):hover,
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a:not(.disabled):hover {
    background: var(--xb-hover-ink) !important;
  }
  /* 2.3.0: finding #5, disabled items read as disabled, not missing (beats workspace.css:579-581 .35 and xbrook.css:391-393 .36; core already sets aria-disabled) */
  body.xb-mail-workspace #messagelist-header a.disabled,
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a.disabled {
    opacity: 1 !important;
    color: var(--xb-text-disabled) !important;
    cursor: not-allowed;
  }
  /* 2.3.0: finding #5, no hover background on disabled items (xbrook.css:385-390 paints one with !important) */
  body.xb-mail-workspace #messagelist-header a.disabled:hover,
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a.disabled:hover {
    background: transparent !important;
  }
  /* 2.3.0: finding #7 #8, the redundant list kebab is hidden on desktop (beats workspace.css:542-554 (1,1,1) and the inline-flex link rule above (1,1,2) by specificity; no competing rule is !important) */
  body.xb-mail-workspace #messagelist-header > a.toolbar-list-button {
    display: none;
  }
  /* 2.3.0: finding #7, Refresh is an icon button; its title and screen-reader text are kept */
  body.xb-mail-workspace #messagelist-header > a.refresh .inner {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  /* 2.3.0: finding #7 #8, plugin View button: borderless, layout icon and chevron, 36px (beats plugin workspace.css:119-143, which loads later) */
  body.xb-mail-workspace #messagelist-header > .xbw-view-button {
    margin-left: auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--xb-control);
    padding: 0 10px;
    border: 0;
    border-radius: var(--xb-radius-control);
    background: transparent;
    color: var(--xb-text);
    font: 500 var(--xb-fs-control)/1 var(--xb-font);
    cursor: pointer;
  }
  /* 2.3.0: finding #7, layout icon before "View" */
  body.xb-mail-workspace #messagelist-header > .xbw-view-button:before {
    content: '\f0db';
    font: 900 14px/1 Icons;
  }
  /* 2.3.0: finding #7, chevron after "View" */
  body.xb-mail-workspace #messagelist-header > .xbw-view-button:after {
    content: '\f107';
    font: 900 10px/1 Icons;
  }
  /* 2.3.0: finding #7 #21, View hover */
  body.xb-mail-workspace #messagelist-header > .xbw-view-button:hover {
    background: var(--xb-hover-ink);
  }
  /* 2.3.0: finding #7, dark repeat (beats workspace.css:841-846, which is !important) */
  html.dark-mode body.xb-mail-workspace #messagelist-header > .xbw-view-button {
    background: transparent !important;
    color: var(--xb-text) !important;
  }
  /* 2.3.0: finding #7 #21, dark hover (workspace.css:841-846 forces the background with !important) */
  html.dark-mode body.xb-mail-workspace #messagelist-header > .xbw-view-button:hover {
    background: var(--xb-hover-ink) !important;
  }
  /* 2.3.0: finding #5, Select and Threads are hidden while the list is empty */
  body.xb-mail-workspace.xb-list-empty #messagelist-header .toolbar li:has(> a.select, > a.threads) {
    display: none;
  }
  @container xb-list (max-width: 479px) {
    /* 2.3.0: finding #7, narrow list pane: toolbar labels collapse to icons (titles and screen-reader text kept) */
    body.xb-mail-workspace #messagelist-header .toolbar a .inner {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }
  }
}

/* ==========================================================================
   8. Message toolbar (desktop)
   ========================================================================== */

@media (min-width: 1025px) {
  /* 2.3.0: finding #5 #7, 48px toolbar row, left-aligned with the reading pane text (beats Elastic layout.less:73-74 centring (1,1,1), workspace.css:445-454, xbrook.css:367-374 by specificity) */
  body.xb-mail-workspace #layout-content > .header {
    height: auto;
    min-height: 48px;
    padding: 0 16px 0 24px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    line-height: normal;
    border-bottom: 1px solid var(--xb-border);
  }
  /* 2.3.0: finding #5, the toolbar itself starts at the left (Elastic menu.less:16 text-align:center; workspace.css:527-538) */
  body.xb-mail-workspace .xb-mailtoolbar,
  body.xb-mail-workspace .xb-mailtoolbar ul {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    gap: 2px;
  }
  /* 2.3.0: finding #5, with nothing selected only More is shown (both the converted ul and the unconverted div shapes; IDs beat the link rule above).
     !important is required: markasjunk.js shows its Junk / Not junk <li> with jQuery .show(), an inline display:list-item that no stylesheet rule can otherwise beat */
  body.xb-mail-workspace.xb-no-selection :is(#layout-content, #messagelist-header) .xb-mailtoolbar > li:not(:has(a.more)),
  body.xb-mail-workspace.xb-no-selection :is(#layout-content, #messagelist-header) .xb-mailtoolbar > :is(a, span.dropbutton, span.spacer):not(.more) {
    display: none !important;
  }
  /* 2.3.0: finding #6, each split button is one inline-flex unit (beats Elastic menu.less:100-101 inline-block and the dark :hover of dark.less, (0,6,1)) */
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: transparent;
  }
  /* 2.3.0: finding #6, one shared hover for both halves of an enabled split button */
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton:hover:not(:has(> a.disabled:first-child)) {
    background: var(--xb-hover-ink);
  }
  /* 2.3.0: finding #6, the halves never paint their own hover (xbrook.css:385-390 and the link hover above are !important) */
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton > a,
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton > a:hover {
    background: transparent !important;
  }
  /* 2.3.0: finding #6, main half of the split button */
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton > a:first-child {
    padding-right: 8px !important;
    border-radius: 8px 0 0 8px;
  }
  /* 2.3.0: finding #6 #21, 32x36 chevron segment with a 1px divider (beats workspace.css:572-575 !important and Elastic menu.less:81-91; border-left beats Elastic menu.less:49 border:0 !important) */
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton > a.dropdown {
    width: var(--xb-control-sm);
    min-width: var(--xb-control-sm);
    height: var(--xb-control);
    padding: 0 !important;
    justify-content: center;
    border-left: 1px solid var(--xb-border) !important;
    border-radius: 0 8px 8px 0;
  }
  /* 2.3.0: finding #6, small caret on the toolbar's centre line (Elastic menu.less:84-86 line-height 58px) */
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton > a.dropdown:before {
    font-size: 10px;
    line-height: 1 !important;
  }
  /* 2.3.0: finding #6, the chevron is disabled together with its main button */
  body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar .dropbutton:has(> a.disabled:first-child) > a.dropdown {
    color: var(--xb-text-disabled) !important;
    pointer-events: none;
  }
  @container xb-read (max-width: 799px) {
    /* 2.3.0: finding #7, medium reading pane: secondary actions become icons (titles and screen-reader text kept) */
    body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a:is(.delete, .archive, .junk, .markmessage, .more) .inner {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }
  }
  @container xb-read (max-width: 559px) {
    /* 2.3.0: finding #7, narrow reading pane: every action becomes an icon (same specificity as the label rule in section 7, wins by order) */
    body.xb-mail-workspace :is(#layout-content, #messagelist-header) .xb-mailtoolbar a .inner {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }
  }
}

/* ==========================================================================
   9. Organizer row (plugin markup; desktop unless noted)
   ========================================================================== */

/* 2.3.0: finding #12 #20, tags icon on Labels (all widths; plugin organizer.css loads later, so the selector carries an ID).
   \f02c (tags), not \f02b (tag): Elastic's Mark button uses \f02b (.menu a.markmessage:before) and both show while a message is selected */
body .xbo-organize #xbo-labels:before {
  content: '\f02c';
  font: 900 12px/1 Icons;
}
/* 2.3.0: finding #12 #20, pin icon on Pin/Unpin (all widths) */
body .xbo-organize #xbo-pin:before {
  content: '\f08d';
  font: 900 12px/1 Icons;
}
/* 2.3.0: finding #14, no organizer text under 12px at any width (plugin organizer.css:168-181 uses 11px) */
body .xbo-organize :is(.xbo-selection, .xbo-manage) {
  font-size: var(--xb-fs-caption);
}
@media (max-width: 1024px) {
  /* 2.3.0: finding #12, icon spacing where the buttons are not flex (desktop uses gap) */
  body .xbo-organize :is(#xbo-labels, #xbo-pin):before {
    margin-right: 6px;
  }
}
@media (min-width: 481px) {
  /* 2.3.0: finding #3 #14 #15, 36px label filter, 13px, room for "All labels" with an ellipsis; phones keep 16px against iOS zoom (beats fields.css:44-56 !important and organizer.css:173-177) */
  body #xbo-label-filter.xf-control {
    height: var(--xb-control) !important;
    min-height: var(--xb-control) !important;
    min-width: 180px;
    max-width: 240px;
    padding: 0 28px 0 10px !important;
    font-size: var(--xb-fs-control) !important;
    line-height: 34px;
    /* Firefox only: Chromium and WebKit ignore text-overflow on <select>, so a label name longer than about 30 characters is cut at 240px without an ellipsis (accepted, see RELEASE-NOTES-2.3.0.md) */
    text-overflow: ellipsis;
  }
}
@media (min-width: 1025px) {
  /* 2.3.0: finding #4 #12 #19, one compact 44px row with a 16px inset on both sides and no band (beats organizer.css:158-167).
     nowrap: the row must keep one height, or selecting a message (caption, Labels and Pin appear) pushes the list down; the label filter shrinks and the container queries below compact the row instead */
  body.xb-mail-workspace .xbo-organize {
    min-height: 44px;
    padding: 4px 16px;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    background: transparent;
    border-bottom: 0;
  }
  /* 2.3.0: finding #12 #14, selection caption 12px/500 in secondary text; the controls group after it (organizer.css:168-172 pushed them right); it may shrink with an ellipsis */
  body.xb-mail-workspace .xbo-organize .xbo-selection {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 500 var(--xb-fs-caption)/1.5 var(--xb-font);
    color: var(--xb-text-2);
  }
  /* 2.3.0: finding #3 #12, the label filter (the fields.js wrapper, or the bare select) is the one item that shrinks: 180px preferred, 120px minimum, which still shows "All labels" in full */
  body.xb-mail-workspace .xbo-organize > .xf-field-label,
  body.xb-mail-workspace .xbo-organize > #xbo-label-filter {
    flex: 0 1 180px;
    min-width: 120px;
    max-width: 240px;
  }
  /* 2.3.0: finding #3 #12, inside the wrapper the select fills it (beats the 180px minimum of the min-width:481px rule above, (1,1,1)) */
  body.xb-mail-workspace .xbo-organize .xf-field-label > #xbo-label-filter.xf-control {
    width: 100%;
    min-width: 0;
  }
  /* 2.3.0: finding #12, the caption is screen-reader-only while nothing is selected */
  body.xb-mail-workspace.xb-no-selection .xbo-organize .xbo-selection {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  /* 2.3.0: finding #12 #15, 36px buttons with secondary text and >=3:1 borders, full opacity (beats organizer.css:11-19 and :30-33) */
  body.xb-mail-workspace .xbo-organize .xbo-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--xb-control);
    padding: 0 12px;
    border: 1px solid var(--xb-border-strong);
    border-radius: var(--xb-radius-control);
    background: transparent;
    color: var(--xb-text-2);
    font: 500 var(--xb-fs-control)/1 var(--xb-font);
    white-space: nowrap;
    flex: 0 0 auto;
    opacity: 1;
  }
  /* 2.3.0: finding #12 #21, hover background (the transparent base above beats organizer.css:20-22) */
  body.xb-mail-workspace .xbo-organize .xbo-button:not(:disabled):hover {
    background: var(--xb-hover-ink);
  }
  /* 2.3.0: finding #12, the plugin's phone-only Select button stays hidden (organizer.css:484-486; the inline-flex rule above would show it) */
  body.xb-mail-workspace .xbo-organize .xbo-mobile-select {
    display: none;
  }
  /* 2.3.0: finding #12, Labels and Pin are shown only while messages are selected */
  body.xb-mail-workspace.xb-no-selection .xbo-organize :is(#xbo-labels, #xbo-pin) {
    display: none;
  }
  /* 2.3.0: finding #12, "Manage labels" reads as a 13px accent link (organizer.css:178-181) */
  body.xb-mail-workspace .xbo-organize .xbo-manage {
    margin-left: auto;
    border: 0;
    background: none;
    padding: 0 4px;
    color: var(--xb-accent-strong);
    font: 500 var(--xb-fs-control)/1 var(--xb-font);
  }
  /* 2.3.0: finding #12, link hover */
  body.xb-mail-workspace .xbo-organize .xbo-manage:hover {
    background: none;
    text-decoration: underline;
  }
  @container xb-list (max-width: 559px) {
    /* 2.3.0: finding #12 #4, list pane under 560px (1440px and smaller windows): the "N selected" caption is screen-reader-only, so selecting a message never wraps the row (the selected rows themselves show the selection) */
    body.xb-mail-workspace .xbo-organize .xbo-selection {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }
  }
  @container xb-list (max-width: 439px) {
    /* 2.3.0: finding #12 #21, list pane under 440px (about 1300px windows and smaller): "Manage labels" becomes a 32px gear button; its text stays in the DOM as the accessible name and the plugin's title gives the tooltip */
    body.xb-mail-workspace .xbo-organize .xbo-manage {
      justify-content: center;
      width: var(--xb-control-sm);
      height: var(--xb-control-sm);
      padding: 0;
      gap: 0;
      border-radius: var(--xb-radius-control);
      color: var(--xb-text-2);
      font-size: 0;
    }
    /* 2.3.0: finding #12 #20, gear glyph (\f013, in Elastic's fa-solid-900) */
    body.xb-mail-workspace .xbo-organize .xbo-manage:before {
      content: '\f013';
      font: 900 14px/1 Icons;
    }
    /* 2.3.0: finding #12 #21, icon-button hover instead of the link underline */
    body.xb-mail-workspace .xbo-organize .xbo-manage:hover {
      background: var(--xb-hover-ink);
      text-decoration: none;
    }
  }
  @container xb-list (max-width: 379px) {
    /* 2.3.0: finding #12 #21, very narrow list pane (1025-1199px windows): Labels and Pin become 36px icon buttons; their text stays the accessible name and the title the tooltip */
    body.xb-mail-workspace .xbo-organize :is(#xbo-labels, #xbo-pin) {
      justify-content: center;
      width: var(--xb-control);
      padding: 0;
      gap: 0;
      font-size: 0;
    }
  }
}

/* ==========================================================================
   10. Empty states (all widths)
   ========================================================================== */

/* 2.3.0: finding #1, only one empty text: Elastic's "The list is empty." (.listing-info, inserted after the table) hides while the hero is shown (Elastic toggles its .hidden class, never an inline style, and no other rule sets its display, so specificity is enough) */
#xb-empty-inbox:not([hidden]) ~ .listing-info {
  display: none;
}
/* 2.3.0: finding #10, one quiet hero ([hidden] still wins: workspace.css:30-32 is (1,1,0); Bootstrap also forces [hidden]) */
body #xb-empty-inbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 32px;
  color: var(--xb-text-2);
}
/* 2.3.0: finding #10, 72px tile with a 32px icon (beats workspace.css:46-60 and panel-theme.css:228-231) */
body #xb-empty-inbox .xb-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--xb-border);
  background: color-mix(in srgb, var(--xb-accent) 10%, var(--xb-surface));
}
/* 2.3.0: finding #10, icon size and decorative accent colour */
body #xb-empty-inbox .xb-empty-icon:before {
  font-size: 32px;
  color: var(--xb-accent);
}
/* 2.3.0: finding #10 #14, 18px/600 headline, no negative tracking (beats panel-theme.css:219-224 and workspace.css:33-39) */
body #xb-empty-inbox h3 {
  margin: 6px 0 0;
  font: 600 var(--xb-fs-heading)/1.4 var(--xb-font);
  letter-spacing: 0;
  color: var(--xb-text);
}
/* 2.3.0: finding #10 #14, one 14px line (beats workspace.css:40-45) */
body #xb-empty-inbox p {
  margin: 0;
  max-width: 300px;
  font-size: var(--xb-fs-body);
  line-height: 1.5;
}
/* 2.3.0: finding #10 #13, "Write a message" is a secondary button with AA accent text (beats Elastic .btn-secondary and its dark variant) */
body #xb-empty-inbox .xb-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  height: var(--xb-control);
  padding: 0 16px;
  border: 1px solid var(--xb-border-strong);
  border-radius: var(--xb-radius-control);
  background: transparent;
  color: var(--xb-accent-strong);
  font: 600 var(--xb-fs-control)/1 var(--xb-font);
  box-shadow: none;
}
/* 2.3.0: finding #10, hover of the secondary button */
body #xb-empty-inbox .xb-empty-action:hover {
  background: var(--xb-hover-ink);
  color: var(--xb-accent-strong);
}

/* ==========================================================================
   11. Pager
   ========================================================================== */

/* 2.3.0: finding #9, no pager for an empty list (all widths) */
body.xb-list-empty #layout-list > .pagenav {
  display: none !important;
}
@media (min-width: 1025px) {
  /* 2.3.0: finding #9 #14, 44px pager with the count on the left and the controls grouped right (beats workspace.css:726-731, Elastic layout.less:109-113 and menu.less:121-126 padding !important) */
  body.xb-mail-workspace #layout-list > .pagenav.footer {
    height: 44px;
    min-height: 44px;
    padding: 6px 12px !important;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    line-height: normal;
    font-size: var(--xb-fs-control);
    background: transparent;
    border-top: 1px solid var(--xb-border);
  }
  /* 2.3.0: finding #9 #14, readable 13px count text (Elastic menu.less:143-148 was 80% of 10px) */
  body.xb-mail-workspace #layout-list > .pagenav.footer .pagenav-text {
    order: 0;
    flex: 1 1 auto;
    text-align: left;
    font: 400 var(--xb-fs-control)/1.4 var(--xb-font);
    color: var(--xb-text-2);
  }
  /* 2.3.0: finding #9, first/last page buttons are dropped */
  body.xb-mail-workspace #layout-list > .pagenav.footer a.firstpage,
  body.xb-mail-workspace #layout-list > .pagenav.footer a.lastpage {
    display: none;
  }
  /* 2.3.0: finding #9 #21, 32x32 arrow buttons (beats Elastic menu.less:128-133 min-width 2rem !important) */
  body.xb-mail-workspace #layout-list > .pagenav.footer a.prevpage,
  body.xb-mail-workspace #layout-list > .pagenav.footer a.nextpage {
    flex: 0 0 var(--xb-control-sm);
    width: var(--xb-control-sm);
    height: var(--xb-control-sm);
    min-width: var(--xb-control-sm) !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--xb-radius-control);
    color: var(--xb-text-2);
  }
  /* 2.3.0: finding #9, order: previous arrow, page box, next arrow */
  body.xb-mail-workspace #layout-list > .pagenav.footer a.prevpage {
    order: 1;
  }
  /* 2.3.0: finding #9, the page box sits between the arrows */
  body.xb-mail-workspace #layout-list > .pagenav.footer input {
    order: 2;
  }
  /* 2.3.0: finding #9, next arrow last */
  body.xb-mail-workspace #layout-list > .pagenav.footer a.nextpage {
    order: 3;
  }
  /* 2.3.0: finding #9, centre the arrow glyphs (Elastic menu.less:135-140 line-height 35px) */
  body.xb-mail-workspace #layout-list > .pagenav.footer a:before {
    line-height: 1;
  }
  /* 2.3.0: finding #9 #21, arrow hover */
  body.xb-mail-workspace #layout-list > .pagenav.footer a:not(.disabled):hover {
    background: var(--xb-hover-ink);
  }
  /* 2.3.0: finding #9, disabled arrows in the disabled token at full opacity (Elastic a.disabled:not(.btn) opacity .5) */
  body.xb-mail-workspace #layout-list > .pagenav.footer a.disabled {
    color: var(--xb-text-disabled);
    opacity: 1;
  }
  /* 2.3.0: finding #9 #15, 28px page box at 13px/500 (beats fields.css:44-53 !important and Elastic menu.less:150-156 max-height 1.6rem) */
  body.xb-mail-workspace #layout-list > .pagenav input.xf-control {
    height: 28px !important;
    min-height: 28px !important;
    max-height: none;
    width: 40px;
    padding: 0 4px !important;
    margin: 0;
    font-size: var(--xb-fs-control) !important;
    font-weight: 500;
    text-align: center;
  }
}

/* ==========================================================================
   12. Message rows and type scale
   ========================================================================== */

@media (min-width: 1025px) {
  /* 2.3.0: finding #14, sender 14px/500 (beats workspace.css:676-692 12px and panel-theme.css:656-658) */
  body.xb-mail-workspace #messagelist .fromto {
    left: 60px;
    font-size: var(--xb-fs-body);
    font-weight: 500;
  }
  /* 2.3.0: finding #14, unread sender 600, not 800 (beats workspace.css:712-715 and panel-theme.css:659-662) */
  body.xb-mail-workspace #messagelist tr.unread .fromto {
    font-weight: 600;
  }
  /* 2.3.0: finding #14, subject 13px/400 (beats workspace.css:704-711 and xbrook.css:541-547) */
  body.xb-mail-workspace #messagelist span.subject {
    font-size: var(--xb-fs-control);
    font-weight: 400;
  }
  /* 2.3.0: finding #14, unread subject 600 */
  body.xb-mail-workspace #messagelist tr.unread span.subject {
    font-weight: 600;
  }
  /* 2.3.0: finding #14, preview 12px (workspace.css:716-725 was 11px) */
  body.xb-mail-workspace #messagelist .xb-message-preview {
    font-size: var(--xb-fs-caption);
  }
  /* 2.3.0: finding #14, date 12px (workspace.css:693-700 was 10px) */
  body.xb-mail-workspace #messagelist .date {
    font-size: var(--xb-fs-caption);
  }
  /* 2.3.0: finding #14, round 36px avatar with 12px/600 initials (beats workspace.css:647-663 33px, 800 11px) */
  body.xb-mail-workspace #messagelist td.subject:before {
    left: 12px;
    top: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font: 600 var(--xb-fs-caption)/1 var(--xb-font);
  }
  /* 2.3.0: finding #14, text starts after the larger avatar (beats workspace.css:639-646 !important) */
  body.xb-mail-workspace #messagelist td.subject {
    padding-left: 60px !important;
  }
  /* 2.3.0: finding #14, single-line rows (reading pane below or off) keep the subject column after the 170px sender (fromto 60-230px; beats workspace.css:767-771 !important) */
  body.xb-mail-workspace:is(.xb-pane-bottom, .xb-pane-off) #messagelist td.subject {
    padding-left: 248px !important;
  }
  /* 2.3.0: finding #14, centre the 36px avatar in the 57px single-line rows (workspace.css:780-783) */
  body.xb-mail-workspace:is(.xb-pane-bottom, .xb-pane-off) #messagelist td.subject:before {
    top: 10px;
  }
  /* 2.3.0: finding #14, compact single-line rows (41px) get a 28px round avatar (beats workspace.css:800-806) */
  html.xb-compact body.xb-mail-workspace:is(.xb-pane-bottom, .xb-pane-off) #messagelist td.subject:before {
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }
  /* 2.3.0: finding #14, unread counts 12px/600, no 800 (beats workspace.css:409-418 and xbrook.css:333-342); scoped to the navy rail so the Settings > Folders list (#subscription-table.folderlist) is not touched */
  body.xb-shell #layout-menu .folderlist .unreadcount {
    font-size: var(--xb-fs-caption);
    font-weight: 600;
  }
}
/* 2.3.0: finding #14, plugin text in the inbox at 12px or more at every width (organizer.css:86-99 label chips 10px, :182-190 "Clear filter" banner 11px, :207-249 pinned rail 11px). Plugin CSS loads after this file, so each selector carries body */
body .xbo-label,
body .xbo-filter,
body .xbo-pin-heading,
body .xbo-pin-heading .xbo-button,
body .xbo-pin-card :is(strong, span) {
  font-size: var(--xb-fs-caption);
}
@media (min-width: 481px) and (max-width: 1024px) {
  /* 2.3.0: finding #14, tablet Filters and View buttons at 12px (plugin workspace.css:119-140 11px, :263-266 10px at 600px and below); phones are covered in the max-width:480px block below, desktop in sections 4 and 7 */
  body .xbw-search-filters,
  body .xbw-view-button {
    font-size: var(--xb-fs-caption);
  }
}
@media (max-width: 480px) {
  /* 2.3.0: finding #14, phone list chrome raised to 12px (mobile.css:120-130, :177-183, :208-214 and :232-246 were 11/10/10/10px) */
  .xbm-phone .xb-inbox-tabs button,
  .xbm-phone #messagelist .date,
  .xbm-phone #layout-list > .footer,
  body.xbm-phone .xbm-navigation button {
    font-size: var(--xb-fs-caption);
  }
  /* 2.3.0: finding #14, the rest of the phone list chrome under 12px: pager count (Elastic 80%), avatar initials (mobile.css:153-161 11px), Filters (mobile.css:106-112 11px) */
  .xbm-phone #layout-list > .footer .pagenav-text,
  .xbm-phone #messagelist td.subject:before,
  .xbm-phone .searchbar .xbw-search-filters {
    font-size: var(--xb-fs-caption);
  }
}

/* ==========================================================================
   13. Sidebar
   ========================================================================== */

/* 2.3.0: finding #17, one neutral icon colour for every nav item (replaces the four accents at panel-theme.css:236-249) */
body #taskmenu a,
body #taskmenu #xbp-tools,
body #taskmenu a.contacts,
body #taskmenu a.settings,
body #taskmenu .special-buttons a {
  --xb-nav-colour: var(--xb-nav-icon);
}
/* 2.3.0: finding #17, mint only for the active item */
body #taskmenu a.selected {
  --xb-nav-colour: var(--xb-nav-active);
}
/* 2.3.0: finding #17, Logout stays neutral with a red hover (tablet rail and phone drawer; beats panel-theme.css:262-267 and xbrook.css:1267-1270, both !important) */
body #taskmenu a.logout:hover,
body #taskmenu a.logout:hover:before {
  color: #fca5a5 !important;
}
/* 2.3.0: finding #17 #20, Scheduled gets a solid clock (li id is base64 of "Scheduled"; Elastic lists.less:519-523 draws an outline folder) */
body .folderlist li#rcmliU2NoZWR1bGVk > a:before {
  content: '\f017';
  font-weight: 900;
}
/* 2.3.0: finding #20, Spam uses the shield icon instead of the flame (Elastic lists.less:540-541, menu.less:585-586, workspace.css:106-108); \f3ed is in Elastic's fa-solid-900 */
body .folderlist li.junk > a:before,
body .xb-mailtoolbar a.junk:before,
body .popupmenu a.junk:before,
.xb-folder-shortcuts a.xb-folder-spam:before {
  content: '\f3ed';
  font-weight: 900;
}
@media (min-width: 1025px) {
  /* 2.3.0: finding #17, one 36px row spec for folders: icon box at 10-30px, label at 40px, 13px/500 (beats workspace.css:382-394 and xbrook.css:308-316).
     The folder rules in this section are scoped to the navy rail (#layout-menu): Settings > Folders (#subscription-table.folderlist) sits on a light surface */
  body.xb-shell #layout-menu .folderlist li a,
  body.xb-shell #layout-menu .xb-folder-shortcuts a {
    height: 36px;
    min-height: 36px;
    margin: 1px 0;
    padding: 8px 36px 8px 40px !important;
    font: 500 var(--xb-fs-control)/20px var(--xb-font);
  }
  /* Shortcut links on Compose, Settings and Contacts use the same row geometry
     as the native Inbox tree. Keep their native destinations and labels. */
  body.xb-shell #layout-menu .xb-folder-shortcuts {
    display: flex;
    flex-direction: column;
  }
  body.xb-shell #layout-menu .xb-folder-shortcuts > * {
    flex: 0 0 auto;
  }
  body.xb-shell #layout-menu .xb-folder-shortcuts a {
    display: block;
    position: relative;
    border: 1px solid transparent;
    border-radius: 8px;
  }
  body.xb-shell #layout-menu .xb-folder-shortcuts a:before {
    position: absolute;
    margin: 0 !important;
  }
  /* 2.3.0: finding #17, 20px neutral icon box (beats workspace.css:395-403 and panel-theme.css:580-583 !important) */
  body.xb-shell #layout-menu .folderlist li a:before,
  body.xb-shell #layout-menu .xb-folder-shortcuts a:before {
    left: 10px;
    top: 8px;
    width: 20px;
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    color: var(--xb-nav-icon) !important;
  }
  /* 2.3.0: finding #17, icons turn white on hover */
  body.xb-shell #layout-menu .folderlist li a:hover:before,
  body.xb-shell #layout-menu .xb-folder-shortcuts a:hover:before {
    color: #fff !important;
  }
  /* 2.3.0: finding #17, mint icon only on the active folder */
  body.xb-shell #layout-menu .folderlist li.selected > a:before {
    color: var(--xb-nav-active) !important;
  }
  /* 2.3.0: finding #17 #14, active folder weight 600 (workspace.css:404-408 was 800) */
  body.xb-shell #layout-menu .folderlist li.selected > a {
    font-weight: 600;
  }
  /* 2.3.0: finding #17, the same row spec for workspace items (beats workspace.css:248-274 and panel-theme.css:538-546) */
  body.xb-shell #taskmenu a,
  body.xb-shell #taskmenu #xbp-tools {
    min-height: 36px;
    padding: 8px 10px !important;
    gap: 10px;
    border: 0 !important;
    border-radius: 8px;
    font: 500 var(--xb-fs-control)/20px var(--xb-font);
  }
  /* 2.3.0: finding #17, fixed 20x20px icon box (beats workspace.css:275-283 17px and Elastic menu.less:60-65 width:auto and height:1.75rem, both !important, since #taskmenu is a .menu.toolbar; the 24.5px height made Contacts and Settings 41px rows) */
  body.xb-shell #taskmenu a:before,
  body.xb-shell #taskmenu #xbp-tools:before {
    width: 20px !important;
    min-width: 20px;
    height: 20px !important;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
  }
  /* 2.3.0: finding #17 #14, the Contacts, Settings and Scheduled labels use the row font, 13px/500 like folders and Mail tools (beats workspace.css:284-293 (1,2,2) 12px and Elastic's .menu span.inner; the collapsed rail still hides them, workspace.css:822-827) */
  body.xb-shell #taskmenu a span.inner {
    font: inherit;
    line-height: 20px;
  }
  /* 2.3.0: finding #17, the collapsed rail still hides the launcher text (the font rule above would undo panel-theme.css:547-549) */
  body.xb-shell.xb-nav-collapsed #taskmenu #xbp-tools {
    font-size: 0;
  }
  /* 2.3.0: finding #14 #17, FOLDERS and WORKSPACE labels: 12px uppercase, one colour (were 9px mint and lilac, panel-theme.css:481-489 and :569-574, workspace.css:372-377) */
  body.xb-shell #layout-menu .xb-section-label,
  body.xb-shell #layout-menu .xb-folder-shortcuts h2,
  body.xb-shell #taskmenu > .xb-apps-heading {
    font: 600 var(--xb-fs-caption)/18px var(--xb-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--xb-nav-section);
  }
  /* 2.3.0: finding #13 #15, 40px Compose on the AA accent (beats panel-theme.css:398-414 and :554-561, incl. the dark variant) */
  body.xb-shell .xb-compose-slot a.compose,
  body.xb-shell #taskmenu a.compose,
  html.dark-mode body.xb-shell #taskmenu a.compose {
    min-height: var(--xb-control-lg);
    height: var(--xb-control-lg);
    padding: 0 12px;
    justify-content: center;
    gap: 10px;
    background: var(--xb-accent-strong) !important;
    border-color: var(--xb-accent-strong) !important;
    color: var(--xb-on-accent-strong) !important;
    font: 600 var(--xb-fs-body)/20px var(--xb-font);
    box-shadow: none;
  }
  /* 2.3.0: finding #14, Compose label 14px (panel-theme.css:425-432 was 12px) */
  body.xb-shell .xb-compose-slot a.compose .inner,
  body.xb-shell #taskmenu a.compose .inner {
    font-size: var(--xb-fs-body);
  }
  /* 2.3.0: finding #13, Compose hover on the darker accent instead of a brightness filter */
  body.xb-shell .xb-compose-slot a.compose:hover,
  body.xb-shell #taskmenu a.compose:hover,
  html.dark-mode body.xb-shell #taskmenu a.compose:hover {
    background: var(--xb-accent-strong-hover) !important;
    filter: none;
  }
  /* 2.3.0: finding #16, Dark mode / About / Logout move to the account menu; the native links stay in the DOM as proxy targets (beats workspace.css:322-330 (1,2,0) by specificity; neither it nor Elastic is !important) */
  body.xb-shell #taskmenu .special-buttons {
    display: none;
  }
  /* 2.3.0: finding #18 #21, FOLDERS kebab header sized for a 32px target (beats workspace.css:354-360 31px and panel-theme.css:439-446) */
  body.xb-shell #layout-menu #layout-sidebar > .header {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
  /* 2.3.0: finding #18 #21, 32x32 kebab with a rail hover (beats workspace.css:366-371 28px) */
  body.xb-shell #layout-menu #layout-sidebar > .header .sidebar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 8px;
  }
  /* 2.3.0: finding #21, rail hover for the kebab (beats Elastic .header a.button.icon hover, incl. dark) */
  body.xb-shell #layout-menu #layout-sidebar > .header .sidebar-menu:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  /* 2.3.0: finding #21, 36px "Back to message list" target (beats workspace.css:194-205) */
  body.xb-shell .xb-inbox-back {
    width: 36px;
    height: 36px;
  }
  /* 2.3.0: finding #21, the back arrow glyph needs the icon font (the \f060 content in xbrook.css had no font-family) */
  body.xb-shell .xb-inbox-back span:before {
    font: 900 16px/1 Icons;
  }
}

/* ==========================================================================
   14. Storage meter
   ========================================================================== */

/* 2.3.0: finding #11, the caption wraps onto its own line above the bar (all widths) */
#quotadisplay:has(.xb-quota-caption) {
  flex-wrap: wrap;
  row-gap: 6px;
}
/* 2.3.0: finding #11, the caption replaces the misleading "0%" count (all widths) */
#quotadisplay:has(.xb-quota-caption) .count {
  display: none;
}
/* 2.3.0: finding #11, "Storage" + "12 MB of 2 GB" caption in 12px (all widths) */
.xb-quota-caption {
  flex: 1 0 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 400 var(--xb-fs-caption)/18px var(--xb-font);
  color: var(--xb-text-2);
}
/* 2.3.0: finding #11, the amount in primary text */
.xb-quota-caption .xb-quota-amount {
  color: var(--xb-text);
}
/* 2.3.0: finding #11, no bar when the server reports no total (all widths) */
#quotadisplay.xb-quota-unknown .bar {
  display: none;
}
/* 2.3.0: finding #11, xbrook.js adds the caption only on the mail screen's folder pane (#layout-sidebar), so the :has(.xb-quota-caption) rules never reach Settings > Folders */
@media (max-width: 1024px) {
  /* 2.3.0: finding #11, tablet and phone folder pane: Elastic's 35px overflow:hidden footer (layout.less:61-75, 109-113, (1,2,1)) grows to hold the caption and the bar */
  body #layout > #layout-sidebar > .footer:has(.xb-quota-caption) {
    height: auto;
    min-height: 35px;
    line-height: normal;
    padding: 8px 12px;
  }
  /* 2.3.0: finding #11, the full-width meter under the caption, without the drive icon, as on desktop */
  body #layout-sidebar #quotadisplay:has(.xb-quota-caption) {
    max-width: none;
    padding: 0;
  }
  /* 2.3.0: finding #11, the drive icon is removed (Elastic common.less:281-285) */
  body #layout-sidebar #quotadisplay:has(.xb-quota-caption):before {
    display: none;
  }
  /* 2.3.0: finding #11, the bar takes the second line at full width (Elastic common.less:292-300 flex:1 with 1rem side margins) */
  body #layout-sidebar #quotadisplay:has(.xb-quota-caption) .bar {
    flex: 1 0 100%;
    margin: 0;
  }
}
@media (min-width: 1025px) {
  /* 2.3.0: finding #11, the meter sits under the folders with one divider, 12px text (beats workspace.css:422-427 and xbrook.css:343-349 border-color !important) */
  body.xb-shell #layout-menu #layout-sidebar > .footer {
    height: auto;
    min-height: 0;
    line-height: normal;
    padding: 12px 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: var(--xb-fs-caption);
  }
  /* 2.3.0: finding #11, full-width meter, caption above the bar (Elastic common.less:273-312) */
  body.xb-shell #layout-menu #quotadisplay {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    max-width: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.75);
  }
  /* 2.3.0: finding #11, the drive icon is removed */
  body.xb-shell #layout-menu #quotadisplay:before {
    display: none;
  }
  /* 2.3.0: finding #11, caption colours on the navy rail (8.9:1) */
  body.xb-shell #layout-menu #quotadisplay .xb-quota-caption {
    color: rgba(255, 255, 255, 0.75);
  }
  /* 2.3.0: finding #11, the amount in white */
  body.xb-shell #layout-menu #quotadisplay .xb-quota-amount {
    color: #fff;
  }
  /* 2.3.0: finding #11, 6px translucent track instead of a solid white bar (beats Elastic common.less track #fff and its dark variant) */
  body.xb-shell #layout-menu #quotadisplay .bar {
    flex: 1 0 100%;
    height: 6px;
    margin: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
  }
  /* 2.3.0: finding #11, mint fill at full opacity; Elastic's 90% warning colour is replaced by the thresholds below */
  body.xb-shell #layout-menu #quotadisplay .value,
  body.xb-shell #layout-menu #quotadisplay .value.warning {
    height: 100%;
    border-radius: 3px;
    opacity: 1;
    background: var(--xb-nav-active);
  }
  /* 2.3.0: finding #11, amber from 80% */
  body.xb-shell #layout-menu #quotadisplay.xb-quota-warn .value {
    background: #f59e0b;
  }
  /* 2.3.0: finding #11, red from 95% */
  body.xb-shell #layout-menu #quotadisplay.xb-quota-full .value {
    background: #ef4444;
  }
}

/* ==========================================================================
   15. Accent fills (all widths)
   ========================================================================== */

/* 2.3.0: finding #13, primary buttons on the AA accent: white on #0b6cb8 is 5.45:1 (beats panel-theme.css:174-184, same selectors, later) */
body .btn-primary,
html.dark-mode body .btn-primary,
body button.xbw-primary,
html.dark-mode body button.xbw-primary {
  background: var(--xb-accent-strong) !important;
  border-color: var(--xb-accent-strong) !important;
  color: var(--xb-on-accent-strong) !important;
}
/* 2.3.0: finding #13, hover on the darker accent instead of a brightness filter (beats panel-theme.css:185-188 and xbrook.css:666-668 !important) */
body .btn-primary:hover,
html.dark-mode body .btn-primary:hover,
body button.xbw-primary:hover,
html.dark-mode body button.xbw-primary:hover {
  background: var(--xb-accent-strong-hover) !important;
  filter: none;
}
/* 2.3.0: finding #13, plugin primary buttons (organizer.css:34-38 loads later, so the body prefix is required) */
body .xbo-primary {
  background: var(--xb-accent-strong);
  border-color: var(--xb-accent-strong);
  color: var(--xb-on-accent-strong);
}
/* 2.3.0: finding #13, plugin primary hover on the darker accent (beats organizer.css:39-42 brightness filter) */
body .xbo-primary:hover {
  background: var(--xb-accent-strong-hover);
  border-color: var(--xb-accent-strong-hover);
  color: var(--xb-on-accent-strong);
  filter: none;
}
/* 2.3.0: finding #13, avatar fill behind white text (panel-theme.css:170-173 used #0288d1) */
.xb-avatar {
  background: var(--xb-accent-strong);
  color: var(--xb-on-accent-strong);
}
