:root {
  /* Iconițe Lucide (licență ISC) — https://lucide.dev
     Folosite ca mask-image ca să moștenească currentColor. */
  --am-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --am-icon-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='21' x2='14' y1='4' y2='4'/%3E%3Cline x1='10' x2='3' y1='4' y2='4'/%3E%3Cline x1='21' x2='12' y1='12' y2='12'/%3E%3Cline x1='8' x2='3' y1='12' y2='12'/%3E%3Cline x1='21' x2='16' y1='20' y2='20'/%3E%3Cline x1='12' x2='3' y1='20' y2='20'/%3E%3Cline x1='14' x2='14' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='10' y2='14'/%3E%3Cline x1='16' x2='16' y1='18' y2='22'/%3E%3C/svg%3E");
  --am-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6a73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ============================================================
   ArpyMail — strat Yahoo consolidat (1.5.5)
   Se încarcă DUPĂ arpymail.css și preia complet zona de mail:
   rail stânga, căutare, header listă, rânduri.

   Fiecare proprietate atinsă aici este setată explicit, ca să nu
   mai depindă de ce a rămas din blocurile 1.5.0 → 1.5.4.
   Login, setări, profil și toast rămân ale fișierului original.
   ============================================================ */

/* ------------------------------------------------------------
   FONT
   arpymail.css cere "Yahoo Product Sans VF". yahoo-font-face.css
   conține doar un comentariu, fonts/ e gol -> totul cade pe Arial.
   Arial are doar 400 și 700, deci weight-urile 450/650 din CSS
   rotunjesc și dispare gradația. Vezi fonts/README-INSTALARE.txt.
   ------------------------------------------------------------ */
:root {
  --am-font: "Yahoo Product Sans VF", "Yahoo Sans", Inter, "Helvetica Neue", Arial, sans-serif;
}

@media screen and (min-width: 769px) {

/* ============================================================
   1. RAIL STÂNGA — „Primite" acoperit de butonul de compose
   ------------------------------------------------------------
   arpymail.css declară #arpymail-compose-shortcut de trei ori:
   L239 static, L1371 absolute/top:8px, L1738 fixed/top:84px.
   Câștigă ultima. FAB-ul ocupă 84→138px, iar #folderlist-content
   are position:absolute; top:72px, adică 64+72 = 136px pe ecran.
   Se suprapun, iar FAB-ul are z-index:1500.

   Aici nu mai există nimic poziționat absolut în rail: coloană
   flex simplă, deci suprapunerea e imposibilă indiferent de
   înălțimea headerului sau de numărul de foldere.
   ============================================================ */
html[data-arpymail-mail-layout="yahoo"] body.task-mail[class]:not(.action-show):not(.action-compose) #layout-sidebar,
body.task-mail.action-show[class] #layout-sidebar {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
}

#arpymail-compose-shortcut {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  flex: 0 0 auto !important;
  width: 54px !important;
  height: 54px !important;
  margin: 10px auto !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 4px 12px rgba(var(--am-accent-rgb), .16) !important;
}

html[data-arpymail-mail-layout="yahoo"] body.task-mail[class]:not(.action-show):not(.action-compose) #folderlist-content,
body.task-mail.action-show[class] #folderlist-content {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 6px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#arpymail-sidebar-shortcuts {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
  margin: 4px 7px 8px !important;
}
.arpymail-sidebar-more-menu {
  bottom: 64px !important;
}

/* Un singur offset pentru #layout. Înainte: 64px în listă (L1828,
   L1981) dar 76px în vizualizarea mesajului (L1714). */
body.task-mail:not(.action-compose) #layout {
  top: 64px !important;
  height: calc(100% - 64px) !important;
  padding-top: 0 !important;
}


/* ============================================================
   2. CĂUTARE — iconițele rămase în afara pilulei
   ------------------------------------------------------------
   În Elastic (widgets/menu.less L714+) structura e:

     <div class="searchbar menu">
       <form id="mailsearchform"> … </form>
       <a class="unread">   <- iconița plic (filtru necitite)
       <a class="options">  <- chevronul (căutare avansată)
       <a class="reset">
     </div>

   a.unread și a.options sunt FRAȚI ai formularului, nu copii.
   Toate regulile din arpymail.css L1401-1465 folosesc
   `#mailsearchform .options`, deci nu se potrivesc niciodată —
   de aia plicul și chevronul stau goale lângă bara de căutare.
   Selectorii corecți pornesc de la .searchbar.
   ============================================================ */
#arpymail-chrome > .arpymail-global-search-shell {
  position: relative !important;
  inset: auto !important;
  order: 2 !important;
  flex: 0 1 690px !important;
  width: min(690px, 48vw) !important;
  max-width: 690px !important;
  height: 42px !important;
  min-height: 42px !important;
  line-height: normal !important;
  margin: 0 10px 0 4px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid transparent !important;
  border-radius: 22px !important;
  background: #ececee !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
html.dark-mode #arpymail-chrome > .arpymail-global-search-shell {
  background: #25252c !important;
}
#arpymail-chrome > .arpymail-global-search-shell:hover,
#arpymail-chrome > .arpymail-global-search-shell:focus-within {
  background: var(--am-surface) !important;
  border-color: rgba(var(--am-accent-rgb), .24) !important;
  box-shadow: 0 2px 10px rgba(20, 18, 26, .08) !important;
}

/* Formularul umple pilula; shell-ul poartă fundalul. */
#arpymail-chrome > .arpymail-global-search-shell > form,
#arpymail-chrome > .arpymail-global-search-shell #mailsearchform {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 42px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#arpymail-chrome > .arpymail-global-search-shell form:before {
  height: 42px !important;
  line-height: 42px !important;
  margin: 0 2px 0 16px !important;
  color: var(--am-muted) !important;
}
#arpymail-chrome > .arpymail-global-search-shell input {
  height: 40px !important;
  padding: 0 8px !important;
  background: transparent !important;
  color: var(--am-text) !important;
  font-family: var(--am-font) !important;
  font-size: 14px !important;
}

/* Butoanele native, acum aduse ÎN pilulă. */
#arpymail-chrome > .arpymail-global-search-shell > a {
  flex: 0 0 auto !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 2px 0 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 17px !important;
  color: var(--am-muted) !important;
  text-decoration: none !important;
}
#arpymail-chrome > .arpymail-global-search-shell > a:before {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 15px !important;
}
#arpymail-chrome > .arpymail-global-search-shell > a:hover {
  background: var(--am-hover) !important;
  color: var(--am-text) !important;
}
#arpymail-chrome > .arpymail-global-search-shell > a.selected {
  color: var(--am-accent) !important;
}
/* Ultimul buton capătă rotunjimea Yahoo la hover pe pilulă. */
#arpymail-chrome > .arpymail-global-search-shell:hover > a.options,
#arpymail-chrome > .arpymail-global-search-shell:focus-within > a.options {
  background: var(--am-accent) !important;
  color: #fff !important;
}

body.task-mail #searchmenu.searchoptions {
  position: fixed !important;
  z-index: 1700 !important;
  top: 60px !important;
  left: 60px !important;
  width: min(690px, calc(100vw - 120px)) !important;
  max-height: min(560px, calc(100vh - 90px)) !important;
  padding: 10px !important;
  border: 1px solid var(--am-border) !important;
  border-radius: 16px !important;
  background: var(--am-surface) !important;
  color: var(--am-text) !important;
  box-shadow: 0 18px 42px rgba(20, 20, 28, .18) !important;
}


/* ============================================================
   3. HEADERUL LISTEI — rândul de sus, ca la Yahoo
   ------------------------------------------------------------
   #messagelist-header există în Elastic (mail.html L30) și conține
   a.select (checkbox + meniu), listmenulink (.options) și refresh.
   Elastic nu îi dă niciun stil propriu — e doar un `.header` generic.
   ============================================================ */
html[data-arpymail-mail-layout="yahoo"] body.task-mail[class]:not(.action-show):not(.action-compose) #layout-list {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 8px 10px 8px 0 !important;
  height: calc(100% - 16px) !important;
  border: 1px solid var(--am-border) !important;
  border-radius: 16px !important;
  background: var(--am-surface) !important;
  box-shadow: var(--am-shadow) !important;
  overflow: hidden !important;
}

body.task-mail:not(.action-show):not(.action-compose) #messagelist-header {
  position: relative !important;
  z-index: 12 !important;
  inset: auto !important;
  flex: 0 0 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 0 14px 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-bottom: 1px solid var(--am-border) !important;
  background: var(--am-surface) !important;
  overflow: visible !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .header-title {
  display: none !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header > .toolbar.menu {
  flex: 1 1 auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}
/* select-all: pătrat + chevron, ca la Yahoo */
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .toolbar.menu > a.select {
  min-width: 46px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  color: var(--am-muted) !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .toolbar.menu > a.select:hover {
  background: var(--am-hover) !important;
  color: var(--am-text) !important;
}
/* .options (filtru/sortare) se lipește la dreapta */
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .toolbar.menu > a.options {
  margin-left: auto !important;
  min-width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 18px !important;
  color: var(--am-muted) !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .toolbar.menu > a.options:hover,
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header > a.refresh:hover {
  background: var(--am-hover) !important;
  color: var(--am-text) !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header > a.refresh {
  flex: 0 0 auto !important;
  min-width: 36px !important;
  height: 36px !important;
  margin-left: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 18px !important;
  color: var(--am-muted) !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .inner {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}
/* Wrapperul gol de searchbar rămas în listă după mutarea căutării. */
#layout-list > .searchbar:empty,
#layout-list .arpymail-search-orphan {
  display: none !important;
}


/* ============================================================
   4. RÂNDURILE — ellipsis inconsistent
   ------------------------------------------------------------
   Cauza de fond, invizibilă fără sursele Elastic:
   lists.less L633 dă `td.subject { display:flex; flex-wrap: wrap }`,
   pentru că Elastic afișează rândul pe DOUĂ linii (expeditor+dată
   sus, subiect jos, cu span.subject { width:100% }).
   arpymail.css forțează o singură linie prin `order`, dar nu anulează
   niciodată flex-wrap. Rândurile se rearanjează diferit în funcție de
   conținut -> tăierea cade altundeva pe fiecare rând.

   În plus: .arpymail-subject-text avea max-width:52% (punct de tăiere
   variabil) și padding-right:160px aplicat doar la hover (margine
   dreaptă diferită între rândul hover-uit și restul).
   ============================================================ */
body.task-mail:not(.action-show):not(.action-compose) #messagelist td {
  vertical-align: middle !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject {
  flex-wrap: nowrap !important;
  align-items: center !important;
  padding-right: 148px !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist .arpymail-subject-text {
  flex: 0 1 auto !important;
  min-width: 3em !important;
  max-width: 50% !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist .arpymail-preview-snippet {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}
/* Data are lățime fixă, altfel marginea dreaptă tot oscilează. */
body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > span.date {
  flex: 0 0 84px !important;
  min-width: 84px !important;
  width: 84px !important;
  text-align: right !important;
}
/* Steaua nativă Roundcube dispare — o înlocuiește tray-ul Yahoo. */
body.task-mail:not(.action-show):not(.action-compose) #messagelist td.flags,
body.task-mail:not(.action-show):not(.action-compose) #messagelist td.threads {
  display: none !important;
}


/* ============================================================
   5. TRAY-UL DE ACȚIUNI pe primul rând, fără hover
   ------------------------------------------------------------
   Cauza: selectorul `tr.message:focus-within`. rcube_list_widget dă
   focus unei celule din primul rând la inițializarea listei, deci
   se aprinde singur. Ordinea contează: întâi stingem focus-within.
   ============================================================ */
#messagelist tr.message:focus-within .arpymail-row-actions {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#messagelist tr.message:focus-within td.subject > span.date {
  opacity: 1 !important;
}
#messagelist tr.message:focus-within td.subject > span.subject {
  padding-right: 0 !important;
}
#messagelist tr.message:hover .arpymail-row-actions {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#messagelist tr.message:hover td.subject > span.date {
  opacity: 0 !important;
}
#messagelist tr.message:hover td.subject > span.subject {
  padding-right: 0 !important;
}


/* ============================================================
   6. TIPOGRAFIE
   Arial nu are 450/500/600/650. Normalizat la 400/500/700.
   ============================================================ */
body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > span.fromto {
  font-weight: 500 !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist .arpymail-subject-text,
body.task-mail:not(.action-show):not(.action-compose) #messagelist .arpymail-preview-snippet {
  font-weight: 400 !important;
}
body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.unread td.subject > span.fromto,
body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.unread .arpymail-subject-text {
  font-weight: 700 !important;
}

} /* /min-width: 769px */

/* ============================================================
   7. HEADER PROPRIU DE LISTĂ (vezi scripts/arpymail-header.js)
   Elastic ui.js șterge .toolbar.menu din #messagelist-header și o
   reconstruiește ca popupmenu, iar a.toolbar-list-button e ascuns
   la >=1201px. Headerul nativ rămâne practic gol pe desktop, deci
   îl ascundem și folosim unul propriu.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail:not(.action-show):not(.action-compose) #messagelist-header {
    display: none !important;
  }

  #arpymail-list-header {
    flex: 0 0 52px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 12px 0 18px;
    border-bottom: 1px solid var(--am-border);
    background: var(--am-surface);
    font-family: var(--am-font);
  }
  #arpymail-list-header .am-spacer { flex: 1 1 auto; }
  #arpymail-list-header .am-selectall {
    display: inline-flex;
    align-items: center;
    margin: 0 2px 0 0;
    cursor: pointer;
  }
  #arpymail-list-header input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid #7c7a82;
    border-radius: 2px;
    background: var(--am-surface);
    cursor: pointer;
  }
  #arpymail-list-header input[type="checkbox"]:checked,
  #arpymail-list-header input[type="checkbox"]:indeterminate {
    border-color: var(--am-accent);
    background-color: var(--am-accent);
  }
  #arpymail-list-header input[type="checkbox"]:checked {
    background-image: linear-gradient(135deg, transparent 43%, #fff 43% 52%, transparent 52%),
                      linear-gradient(45deg, transparent 32%, #fff 32% 42%, transparent 42%);
  }
  #arpymail-list-header input[type="checkbox"]:indeterminate {
    background-image: linear-gradient(#fff, #fff);
    background-size: 8px 2px;
    background-position: center;
    background-repeat: no-repeat;
  }
  #arpymail-list-header .am-hdr-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: var(--am-muted);
    cursor: pointer;
  }
  #arpymail-list-header .am-hdr-btn:hover {
    background: var(--am-hover);
    color: var(--am-text);
  }
  #arpymail-list-header .am-hdr-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  #arpymail-list-header .am-caret { width: 22px; }
  #arpymail-list-header .am-caret svg { width: 15px; height: 15px; }
  #arpymail-list-header .am-count {
    margin-left: 8px;
    color: var(--am-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  #arpymail-list-header .am-select-menu {
    position: absolute;
    z-index: 1650;
    top: 46px;
    left: 14px;
    min-width: 186px;
    padding: 6px;
    border: 1px solid var(--am-border);
    border-radius: 12px;
    background: var(--am-surface);
    box-shadow: 0 12px 30px rgba(20, 20, 28, .16);
  }
  #arpymail-list-header .am-select-menu[hidden] { display: none; }
  #arpymail-list-header .am-select-menu button {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--am-text);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
  }
  #arpymail-list-header .am-select-menu button:hover { background: var(--am-hover); }

  /* Bara de căutare: ascundem reset-ul gol, ca la Yahoo. */
  #arpymail-chrome > .arpymail-global-search-shell > a.reset { display: none !important; }
  #arpymail-chrome > .arpymail-global-search-shell.active > a.reset { display: inline-flex !important; }
}

/* ============================================================
   8. CAUZA REALĂ: #layout NU E POZIȚIONAT
   ------------------------------------------------------------
   Elastic (styles.min.css):
       #layout { overflow:hidden; display:flex; height:100%; width:100% }
   `position` rămâne `static`, deci `top` este IGNORAT de browser.

   arpymail.css scrie `top: 64px !important` pe #layout în cinci locuri
   (L188, L584, L929, L1714, L1828, L1981) — niciunul nu a avut vreodată
   efect. #layout începe la y=0, iar #arpymail-chrome e `position: fixed`
   cu înălțime 64px peste el.

   Consecințe măsurate în captură:
     - butonul de compose stă la y=10..64 → complet sub bara de căutare
       (lista de foldere începe la y=74 = 10 marginea + 54 butonul + 10)
     - #arpymail-list-header stă la y=8..60 → tot sub bara de căutare
       (de aia „headerul listei e sub search")

   margin-top funcționează pe un element static, spre deosebire de top.
   ============================================================ */
@media screen and (min-width: 769px) {
  html:not(.iframe) body.task-mail:not(.task-login) #layout,
  html:not(.iframe) body.task-settings #layout,
  html:not(.iframe) body.task-addressbook #layout {
    position: static !important;
    top: auto !important;
    margin-top: 64px !important;
    height: calc(100% - 64px) !important;
  }
  /* Paginile din iframe (preferințe) nu au chrome propriu. */
  html.iframe body #layout {
    margin-top: 0 !important;
    height: 100% !important;
  }

  /* ----------------------------------------------------------
     9. MENIUL HOVER NATIV ROUNDCUBE peste tray-ul nostru
     Elastic injectează <div class="menu listing-hover-menu"> cu
     flag/delete și îl poziționează absolut pe rândul hover-uit.
     Se suprapune peste .arpymail-row-actions.
     ---------------------------------------------------------- */
  body.task-mail:not(.action-show):not(.action-compose) .listing-hover-menu {
    display: none !important;
  }

  /* ----------------------------------------------------------
     10. RÂND SELECTAT + CHECKBOX
     ---------------------------------------------------------- */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.selected {
    background: var(--am-accent-soft) !important;
    box-shadow: inset 3px 0 0 var(--am-accent) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.selected:hover {
    background: var(--am-accent-soft) !important;
    filter: brightness(.98);
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.selected .arpymail-subject-text,
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.selected td.subject > span.fromto {
    color: var(--am-text) !important;
  }
  /* Rândul focus-at fără selecție nu primește fundal — doar tastatura îl vede. */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.focused:not(.selected) {
    background: var(--am-surface) !important;
    box-shadow: none !important;
  }

  /* Checkbox identic cu cel din header, vizibil doar la hover/selecție. */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.selection input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border: 1.5px solid #b9b7bf !important;
    border-radius: 3px !important;
    background: var(--am-surface) !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: border-color .12s ease, background-color .12s ease;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr:hover td.selection input[type="checkbox"] {
    border-color: #7c7a82 !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.selection input[type="checkbox"]:checked {
    border-color: var(--am-accent) !important;
    background-color: var(--am-accent) !important;
    background-image:
      linear-gradient(135deg, transparent 43%, #fff 43% 52%, transparent 52%),
      linear-gradient(45deg, transparent 32%, #fff 32% 42%, transparent 42%) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.selection {
    cursor: default !important;
  }
}

/* ============================================================
   8. CURĂȚENIE ȘI CHECKBOX-URI
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- Bulina mov din dreapta-sus a folderului -------------
     arpymail.css L299: #mailboxlist .unreadcount e un badge
     absolut cu transform: translate(22px, -15px). Inbox avea
     1 necitit, deci badge-ul ieșea peste colțul butonului.
     Yahoo nu pune contor în rail. Specificitate (1,5,0) ca să
     bată originalul (1,4,0). */
  html[data-arpymail-mail-layout="yahoo"] body.task-mail[class]:not(.action-show):not(.action-compose) #mailboxlist .unreadcount,
  body.task-mail.action-show[class] #mailboxlist .unreadcount {
    display: none !important;
  }

  /* --- Meniul nativ de hover al Roundcube -----------------
     Elastic: .listing-hover-menu{position:absolute;right:5px;
     background-color:#fff;border:1px solid #ddd;...}
     Era netratat în skin: apărea peste tray-ul nostru și îi
     tăia fundalul gri al rândului pe partea dreaptă. */
  .listing-hover-menu,
  #messagelist-fixedcopy,
  table.fixedcopy {
    display: none !important;
  }

  /* Fundalul de hover acoperă tot rândul, inclusiv primul. */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.message:hover > td {
    background-color: var(--am-hover) !important;
  }

  /* --- Checkbox stil Yahoo -------------------------------
     Originalul desena bifa din două linear-gradient-uri, ceea
     ce dă un X, nu o bifă. Înlocuit cu SVG. */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.selection input[type="checkbox"],
  #arpymail-list-header input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #adaab4 !important;
    border-radius: 3px !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: border-color .12s ease, background-color .12s ease !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.selection input[type="checkbox"]:hover,
  #arpymail-list-header input[type="checkbox"]:hover {
    border-color: var(--am-accent) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.selection input[type="checkbox"]:checked,
  #arpymail-list-header input[type="checkbox"]:checked {
    border-color: var(--am-accent) !important;
    background-color: var(--am-accent) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4.2 9.2l3.1 3.1 6.5-6.6'/%3E%3C/svg%3E") !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }
  #arpymail-list-header input[type="checkbox"]:indeterminate {
    border-color: var(--am-accent) !important;
    background-color: var(--am-accent) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-width='2.4' stroke-linecap='round' d='M4.6 9h8.8'/%3E%3C/svg%3E") !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
  }

  /* Rândul selectat: fundal albastru deschis ca la Yahoo. */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.message.selected > td {
    background-color: rgba(var(--am-accent-rgb), .07) !important;
  }

  /* --- Bara de acțiuni din header la selecție ------------- */
  #arpymail-list-header .am-actions {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--am-border);
  }
  #arpymail-list-header.has-selection .am-actions { display: inline-flex; }
  #arpymail-list-header.has-selection .am-count { margin-right: 0; }
}

/* ============================================================
   9. CITIREA UNUI MESAJ (body.task-mail.action-show)
   ------------------------------------------------------------
   Elastic ascunde butonul Înapoi pe ecrane mari:
     @media (min-width:1201px){ ... a.back-list-button{display:none} }
   De aia nu se vedea. Îl readucem cu etichetă, ca la Yahoo, iar
   restul toolbar-ului devine icon-only.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail.action-show #layout-content {
    margin: 8px 10px 8px 0 !important;
    height: calc(100% - 16px) !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 16px !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }
  body.task-mail.action-show #layout-content > .header {
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
    overflow: visible !important;
  }
  body.task-mail.action-show #layout-content > .header > .header-title {
    display: none !important;
  }

  /* Butonul Înapoi, cu etichetă */
  body.task-mail.action-show a.back-list-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
    padding: 0 14px 0 10px !important;
    margin: 0 10px 0 0 !important;
    border-radius: 19px !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }
  body.task-mail.action-show a.back-list-button:hover {
    background: var(--am-hover) !important;
  }
  body.task-mail.action-show a.back-list-button .inner {
    display: inline !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
    font-size: 14px !important;
  }

  /* Toolbar-ul: doar iconițe, rotunjite, centrate */
  body.task-mail.action-show #layout-content > .header > a.toolbar-menu-button {
    display: none !important;
  }

  /* Antetul mesajului: subiect mare, expeditor sub el */
  body.task-mail.action-show #message-header {
    padding: 22px 30px 16px !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.task-mail.action-show #message-header h2.subject {
    margin: 0 0 18px !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
  body.task-mail.action-show #message-header > .header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
  body.task-mail.action-show #message-header .contactphoto {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }
  body.task-mail.action-show #message-header .header-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-family: var(--am-font) !important;
    font-size: 13px !important;
  }
  body.task-mail.action-show #message-header .header-summary {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--am-text) !important;
  }
  body.task-mail.action-show #message-content {
    padding: 0 30px 24px !important;
  }
}

/* ============================================================
   10. TOOLBAR MESAJ — ordine și aspect Yahoo
   Marcarea data-am-btn vine din scripts/arpymail-message.js.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Doar butonul Înapoi din headerul mesajului, nu și cele din
     sidebar / listă (de aia apărea un ‹ răzleț sub pilulă). */
  body.task-mail.action-show #layout-sidebar a.back-list-button,
  body.task-mail.action-show #layout-list a.back-list-button,
  body.task-mail.action-show #layout-content > .header ~ a.back-list-button {
    display: none !important;
  }

  /* Navigarea se lipește la dreapta, ca la Yahoo. */

  /* Yahoo nu are compose sau print în toolbar-ul mesajului. */

  /* Săgețile mici de dropdown erau desprinse de butoane; le scoatem,
     aceleași acțiuni există în meniul „Mai multe". */

  /* Chips-urile cu mesajele deschise (#arpymail-message-tabs) */
  body.task-mail.action-show #arpymail-message-tabs {
    padding: 10px 16px 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
}

/* ============================================================
   11. MENIURI DROPDOWN — stil Yahoo
   .popupmenu era complet netratat în skin, deci rămânea pe
   aspectul implicit Elastic.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail .popupmenu,
  body.task-mail #message-menu,
  body.task-mail #markmessage-menu,
  body.task-mail #listselect-menu {
    min-width: 268px !important;
    padding: 8px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 14px !important;
    background: var(--am-surface) !important;
    box-shadow: 0 14px 38px rgba(20, 20, 28, .18) !important;
    font-family: var(--am-font) !important;
  }
  body.task-mail .popupmenu ul.menu,
  body.task-mail .popupmenu ul.listing {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
  }
  body.task-mail .popupmenu ul.menu > li {
    margin: 0 !important;
    border: 0 !important;
  }
  body.task-mail .popupmenu ul.menu > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: var(--am-text) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  body.task-mail .popupmenu ul.menu > li > a:before {
    flex: 0 0 20px !important;
    width: 20px !important;
    margin: 0 !important;
    color: var(--am-text) !important;
    font-size: 16px !important;
    text-align: center !important;
  }
  body.task-mail .popupmenu ul.menu > li > a:hover {
    background: var(--am-hover) !important;
  }
  body.task-mail .popupmenu ul.menu > li > a.disabled {
    opacity: .38 !important;
  }
  /* Separator sub primul grup, ca în meniul Yahoo. */
  body.task-mail #message-menu ul.menu > li:nth-child(3) {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid var(--am-border) !important;
  }
}

/* ============================================================
   12. ACȚIUNI PE EXPEDITOR (scripts/arpymail-sender.js)
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail #message-menu li.arpymail-sender-first {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--am-border) !important;
  }
  body.task-mail #message-menu a.arpymail-sender-action:before {
    flex: 0 0 20px !important;
    width: 20px !important;
    font-size: 15px !important;
    text-align: center !important;
  }
  body.task-mail #message-menu a.am-star:before        { content: "\2606"; }
  body.task-mail #message-menu a.am-block:before       { content: "\1F6C7"; }
  body.task-mail #message-menu a.am-purge:before,
  body.task-mail #message-menu a.am-purge-all:before   { content: "\1F5D1"; }
  body.task-mail #message-menu a.am-unsubscribe:before { content: "\2715"; }
  body.task-mail #message-menu a.arpymail-sender-action {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
  }
}

/* ============================================================
   13. CORECTURI 1.5.10
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- Iconițele din toolbar-ul mesajului ------------------
     Elastic (styles.min.css) le dă:
       a.button.icon:before{display:block;float:left;width:1.18em;
                            height:1em;font-family:Icons}
     `float: left` + lățime în em se bat cap în cap cu centrarea flex
     a butonului, de aia ieșeau descentrate și de mărimi diferite.  */

  /* --- Butonul Înapoi propriu -------------------------------
     Cel nativ rămâne ascuns: e legat de show_list(), care doar
     comută clase de layout, inutil pe o pagină separată. */
  body.task-mail.action-show a.back-list-button,
  body.task-mail.action-show a.back-sidebar-button {
    display: none !important;
  }
  #arpymail-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin: 0 14px 0 4px;
    padding: 0 16px 0 11px;
    border: 0;
    border-radius: 19px;
    background: transparent;
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  #arpymail-back:hover { background: var(--am-hover); }
  #arpymail-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* --- Dropdownul propriu din headerul listei --------------- */
  #arpymail-list-header { position: relative; }
  #arpymail-list-header .am-more-menu {
    position: absolute;
    z-index: 1650;
    top: 46px;
    left: 0;
    min-width: 286px;
    padding: 6px;
    border: 1px solid var(--am-border);
    border-radius: 14px;
    background: var(--am-surface);
    box-shadow: 0 14px 38px rgba(20, 20, 28, .18);
  }
  #arpymail-list-header .am-more-menu[hidden] { display: none; }
  #arpymail-list-header .am-more-menu button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--am-text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }
  #arpymail-list-header .am-more-menu button:hover { background: var(--am-hover); }
  #arpymail-list-header .am-more-menu button:before {
    flex: 0 0 20px;
    width: 20px;
    font-size: 15px;
    text-align: center;
  }
  #arpymail-list-header .am-more-menu .am-star:before        { content: "\2606"; }
  #arpymail-list-header .am-more-menu .am-block:before       { content: "\1F6C7"; }
  #arpymail-list-header .am-more-menu .am-purge:before,
  #arpymail-list-header .am-more-menu .am-purge-all:before   { content: "\1F5D1"; }
  #arpymail-list-header .am-more-menu .am-unsubscribe:before { content: "\2715"; }
}

/* ============================================================
   14. TOOLBAR PROPRIU LA CITIREA MESAJULUI
   Elastic-ul nativ e scos din DOM de arpymail-message.js.
   ============================================================ */
@media screen and (min-width: 769px) {

  #arpymail-msg-toolbar {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .am-msg-group { display: flex; align-items: center; gap: 2px; }
  .am-msg-main  { margin: 0 auto; }
  .am-msg-nav   { margin-left: auto; padding-left: 14px; }

  .am-msg-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 19px;
    background: transparent;
    color: var(--am-muted);
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
  }
  .am-msg-btn:hover { background: var(--am-hover); color: var(--am-text); }
  .am-msg-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #arpymail-msg-more {
    position: absolute;
    z-index: 1650;
    top: 46px;
    left: 0;
    min-width: 292px;
    padding: 6px;
    border: 1px solid var(--am-border);
    border-radius: 14px;
    background: var(--am-surface);
    box-shadow: 0 14px 38px rgba(20, 20, 28, .18);
  }
  #arpymail-msg-more[hidden] { display: none; }
  #arpymail-msg-more button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--am-text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }
  #arpymail-msg-more button:hover { background: var(--am-hover); }
  #arpymail-msg-more button:before {
    flex: 0 0 20px; width: 20px; font-size: 15px; text-align: center;
  }
  #arpymail-msg-more .am-star:before        { content: "\2606"; }
  #arpymail-msg-more .am-block:before       { content: "\1F6C7"; }
  #arpymail-msg-more .am-purge:before,
  #arpymail-msg-more .am-purge-all:before   { content: "\1F5D1"; }
  #arpymail-msg-more .am-unsubscribe:before { content: "\2715"; }
  #arpymail-msg-more .am-print:before       { content: "\1F5A8"; }
  #arpymail-msg-more .am-source:before      { content: "\1F5CE"; }
}

/* ============================================================
   15. COMPUNERE MESAJ (body.action-compose)
   Până acum toate regulile skinului conțineau :not(.action-compose),
   deci ecranul de compunere rămăsese pe Elastic curat.
   ============================================================ */
@media screen and (min-width: 769px) {
  /* Rail-ul întunecat Elastic nu are ce căuta lângă chrome-ul nostru. */
  body.task-mail.action-compose #layout-menu { display: none !important; }
  body.task-mail.action-compose #layout {
    top: 64px !important;
    left: 0 !important;
    height: calc(100% - 64px) !important;
    background: var(--am-bg) !important;
  }

  body.task-mail.action-compose #layout-content {
    margin: 8px 10px 8px 12px !important;
    height: calc(100% - 16px) !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 16px !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }
  body.task-mail.action-compose #layout-content > .header {
    flex: 0 0 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 14px 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-mail.action-compose #layout-content > .header > .header-title {
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: left !important;
  }
  /* Toolbarul de sus devine icon-only, aliniat la dreapta. */
  body.task-mail.action-compose #messagetoolbar,
  body.task-mail.action-compose #layout-content > .header #toolbar-menu {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.task-mail.action-compose #layout-content > .header a.button {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 19px !important;
    color: var(--am-muted) !important;
  }
  body.task-mail.action-compose #layout-content > .header a.button:hover {
    background: var(--am-hover) !important;
    color: var(--am-text) !important;
  }
  body.task-mail.action-compose #layout-content > .header a.button:before {
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 17px !important;
  }
  body.task-mail.action-compose #layout-content > .header a.button .inner {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
  }

  /* Câmpurile: linie simplă sub fiecare, ca la Yahoo. */
  body.task-mail.action-compose #compose-content {
    padding: 6px 24px 0 !important;
  }
  body.task-mail.action-compose #compose-headers .form-group.row {
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
  }
  body.task-mail.action-compose #compose-headers .col-form-label {
    flex: 0 0 96px !important;
    max-width: 96px !important;
    padding: 0 !important;
    color: var(--am-muted) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: left !important;
  }
  body.task-mail.action-compose #compose-headers .form-control,
  body.task-mail.action-compose #compose-headers .custom-select,
  body.task-mail.action-compose #compose-headers input,
  body.task-mail.action-compose #compose-headers .recipient-input {
    height: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
  }
  body.task-mail.action-compose #composebodycontainer {
    padding-top: 10px !important;
  }
  body.task-mail.action-compose #composebody,
  body.task-mail.action-compose .mce-content-body {
    border: 0 !important;
    box-shadow: none !important;
    font-family: var(--am-font) !important;
  }
  body.task-mail.action-compose div.tox.tox-tinymce {
    border: 0 !important;
    border-radius: 0 !important;
  }

  /* Bara de jos: pilula mov de trimitere. */
  body.task-mail.action-compose .formbuttons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 24px 18px !important;
    border-top: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-mail.action-compose .formbuttons .btn.send {
    min-width: 118px !important;
    height: 42px !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 21px !important;
    background: var(--am-accent) !important;
    color: #fff !important;
    font-family: var(--am-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }
  body.task-mail.action-compose .formbuttons .btn.send:hover {
    filter: brightness(1.08) !important;
  }
  body.task-mail.action-compose .formbuttons .float-right {
    margin-left: auto !important;
    float: none !important;
  }

  /* Panoul din dreapta (opțiuni și atașamente) ca un card. */
  body.task-mail.action-compose #layout-sidebar.sidebar-right {
    flex: 0 0 336px !important;
    width: 336px !important;
    margin: 8px 12px 8px 0 !important;
    height: calc(100% - 16px) !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 16px !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }
  body.task-mail.action-compose #layout-sidebar.sidebar-right > .header {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    border: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
    font-family: var(--am-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }
}

/* ============================================================
   16. Toolbar-ul nativ Elastic din vizualizarea mesajului
   Regula de ascundere din 1.5.11 avea (1 ID, 3 clase), iar blocul
   de stilizare din 1.5.7 avea (2 ID-uri, 3 clase) — deci `display:
   flex !important` o bătea și cele două toolbaruri se afișau unul
   lângă altul. Blocul vechi e șters acum (butoanele noastre îl
   înlocuiesc), iar ascunderea are specificitate suficientă.
   arpymail-message.js pune în plus display:none inline !important,
   care nu poate fi întrecut de nicio foaie de stil.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail.action-show #layout-content > .header #toolbar-menu,
  body.task-mail.action-show #layout-content #toolbar-menu.arpymail-hidden-toolbar,
  body.task-mail.action-show #layout-content > .header > a.toolbar-menu-button,
  body.task-mail.action-show #layout-content > .header > a.toolbar-list-button {
    display: none !important;
  }
}

/* ============================================================
   17. SHELL PERSISTENT — taburi + rail pe toate paginile
   Vezi scripts/arpymail-shell.js.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- Bara de taburi, sub topbar, pe orice pagină --------- */
  #arpymail-tabs {
    position: fixed;
    z-index: 1190;
    top: 64px;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px 0 116px;
    background: var(--am-bg);
    overflow: visible;
  }
  #arpymail-tabs:empty { display: none; }


  .am-tab {
    display: inline-flex;
    align-items: center;
    max-width: 232px;
    height: 32px;
    padding: 0 4px 0 14px;
    border: 1px solid var(--am-border);
    border-radius: 17px;
    background: var(--am-surface);
    transition: border-color .12s ease, box-shadow .12s ease;
  }
  .am-tab:hover { box-shadow: 0 2px 8px rgba(20, 18, 26, .08); }
  .am-tab.active {
    border-color: var(--am-accent);
    box-shadow: inset 0 0 0 1px var(--am-accent);
  }
  .am-tab > a {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .am-tab.active > a { color: var(--am-accent); }
  .am-tab-icon {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .am-tab-close {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--am-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
  }
  .am-tab-close:hover { background: var(--am-hover); color: var(--am-text); }

  /* --- Dropdownul cu filele deschise ---------------------- */
  .am-tabs-menu-wrap { position: relative; flex: 0 0 auto; }
  .am-tabs-toggle {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--am-border);
    border-radius: 16px;
    background: var(--am-surface);
    color: var(--am-muted);
    cursor: pointer;
  }
  .am-tabs-toggle:hover { color: var(--am-text); }
  .am-tabs-toggle svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .15s ease;
  }
  .am-tabs-toggle.open svg { transform: rotate(180deg); }

  .am-tabs-menu {
    position: absolute;
    z-index: 1700;
    top: 38px;
    left: 0;
    min-width: 296px;
    padding: 6px;
    border: 1px solid var(--am-border);
    border-radius: 14px;
    background: var(--am-surface);
    box-shadow: 0 14px 38px rgba(20, 20, 28, .18);
  }
  .am-tabs-menu[hidden] { display: none; }
  .am-tabs-menu-row {
    display: flex;
    align-items: center;
    border-radius: 9px;
  }
  .am-tabs-menu-row:hover { background: var(--am-hover); }
  .am-tabs-menu-row > a {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 6px 0 12px;
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .am-tabs-menu-row.active > a { color: var(--am-accent); font-weight: 600; }
  .am-tabs-menu-row > button {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    margin-right: 6px;
    display: grid; place-items: center;
    padding: 0; border: 0; border-radius: 13px;
    background: transparent;
    color: var(--am-muted);
    font-size: 17px; line-height: 1;
    cursor: pointer;
  }
  .am-tabs-menu-row > button:hover { background: var(--am-border); color: var(--am-text); }
  .am-tabs-close-all {
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    padding: 0 12px;
    display: flex; align-items: center;
    border: 0;
    border-top: 1px solid var(--am-border);
    border-radius: 0 0 9px 9px;
    background: transparent;
    color: var(--am-text);
    font: inherit; font-size: 14px;
    text-align: left;
    cursor: pointer;
  }
  .am-tabs-close-all:hover { background: var(--am-hover); }

  /* --- Rail propriu acolo unde Roundcube nu randează unul --- */
  #arpymail-rail {
    position: relative;
    z-index: 5;
    flex: 0 0 96px;
    width: 96px;
    display: flex;
    flex-direction: column;
    padding: 0 6px;
    background: var(--am-bg);
  }
  /* Iconițele folderelor reutilizează fontul Elastic. */

  /* Compunerea își pierde marginea stângă când railul e prezent. */
  html.arpymail-own-rail body.task-mail.action-compose #layout-content {
    margin-left: 0 !important;
  }
}

@media screen and (min-width: 769px) {
  /* Când desenăm noi rail-ul, rail-ul întunecat Elastic dispare. */
  html.arpymail-own-rail #layout-menu { display: none !important; }
  html.arpymail-own-rail body.task-mail.action-compose #layout,
  html.arpymail-own-rail body.task-addressbook #layout,
  html.arpymail-own-rail body.task-settings #layout {
    left: 0 !important;
  }
  /* Bara veche de taburi din #layout-content nu mai e folosită. */
  #arpymail-message-tabs { display: none !important; }
}

/* ============================================================
   18. TOPBAR IDENTIC ÎN LISTĂ ȘI ÎN MESAJ
   În listă, searchbar-ul nativ Elastic randează patru butoane
   (reset, unread, options, search). Proxy-ul din vizualizarea
   mesajului nu le are pe toate, de aia arăta diferit.
   Păstrăm peste tot aceeași pereche — filtru + căutare — ca la
   Yahoo; restul se ascund.
   ============================================================ */
@media screen and (min-width: 769px) {
  #arpymail-chrome > .arpymail-global-search-shell > a.unread,
  #arpymail-chrome > .arpymail-global-search-shell > a.reset {
    display: none !important;
  }
  #arpymail-chrome > .arpymail-global-search-shell.active > a.reset {
    display: inline-flex !important;
  }
  /* Butonul de căutare capătă forma rotundă Yahoo. */
  #arpymail-chrome > .arpymail-global-search-shell > a.search {
    width: 34px !important;
    height: 34px !important;
    margin-right: 4px !important;
    border-radius: 17px !important;
  }
  #arpymail-chrome > .arpymail-global-search-shell:hover > a.search,
  #arpymail-chrome > .arpymail-global-search-shell:focus-within > a.search {
    background: var(--am-accent) !important;
    color: #fff !important;
  }
  /* Contur uniform pentru toate iconițele proprii. */
  .am-msg-btn svg,
  #arpymail-list-header .am-hdr-btn svg {
    stroke-width: 1.6 !important;
  }

  /* Bara de taburi nu trebuie să acopere rail-ul. */
  #arpymail-tabs { padding-left: 116px; }
}

/* ============================================================
   19. MENIUL DE CĂUTARE AVANSATĂ
   ------------------------------------------------------------
   Două cauze, ambele în afara skinului:

   1. Switch-urile erau albastre pentru că vin direct din Bootstrap:
        .custom-control-input:checked~.custom-control-label::before
          { border-color:#007bff; background-color:#007bff }
      iar arpymail.css nu atinge deloc `custom-switch` (zero apariții),
      deci nu urmăreau culoarea de accent aleasă în setări.

   2. Select-urile se deschideau „în spate" pentru că Elastic le
      convertește în popover Bootstrap (ui.js, pretty_select →
      template '<div class="popover select-menu">'), iar
        .popover { z-index: 1300 }
      e sub #searchmenu, care are z-index 1700.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- popover-ul select-ului, peste meniul de căutare ----- */
  .popover.select-menu {
    z-index: 1760 !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 14px !important;
    background: var(--am-surface) !important;
    box-shadow: 0 14px 38px rgba(20, 20, 28, .18) !important;
    overflow: hidden !important;
  }
  .popover.select-menu .popover-body { padding: 6px !important; }
  .popover.select-menu .listing li > a {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
  }
  .popover.select-menu .listing li > a:hover { background: var(--am-hover) !important; }
  .popover.select-menu .listing li.selected > a,
  .popover.select-menu .listing li > a.selected {
    background: rgba(var(--am-accent-rgb), .10) !important;
    color: var(--am-accent) !important;
    font-weight: 600 !important;
  }

  /* --- switch-uri în stilul ArpyMail, legate de accent ----- */
  body.task-mail #searchmenu .custom-switch { padding-left: 50px !important; }
  body.task-mail #searchmenu .custom-switch .custom-control-label {
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    line-height: 22px !important;
    cursor: pointer !important;
  }
  body.task-mail #searchmenu .custom-switch .custom-control-label::before {
    left: -50px !important;
    top: 0 !important;
    width: 38px !important;
    height: 22px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background-color: #cdcbd4 !important;
    transition: background-color .15s ease !important;
  }
  body.task-mail #searchmenu .custom-switch .custom-control-label::after {
    left: -48px !important;
    top: 2px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 9px !important;
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(20, 20, 28, .28) !important;
    transition: transform .15s ease !important;
  }
  body.task-mail #searchmenu .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--am-accent) !important;
    border-color: var(--am-accent) !important;
  }
  body.task-mail #searchmenu .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(16px) !important;
    background-color: #fff !important;
  }
  body.task-mail #searchmenu .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(var(--am-accent-rgb), .20) !important;
  }

  /* --- cardul în sine ------------------------------------- */
  body.task-mail #searchmenu.searchoptions {
    padding: 18px 20px 16px !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 46px rgba(20, 20, 28, .20) !important;
  }
  body.task-mail #searchmenu .formcontent { padding: 0 !important; }
  body.task-mail #searchmenu ul.proplist {
    margin: 0 0 14px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid var(--am-border) !important;
    list-style: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px 24px !important;
  }
  body.task-mail #searchmenu ul.proplist ul.proplist {
    grid-column: 1 / -1 !important;
    margin: 2px 0 2px 18px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.task-mail #searchmenu ul.proplist > li {
    display: flex !important;
    align-items: center !important;
    min-height: 34px !important;
    border: 0 !important;
  }
  body.task-mail #searchmenu a.button.icon.dropdown {
    margin-left: auto !important;
    color: var(--am-muted) !important;
  }

  /* --- rândurile cu select -------------------------------- */
  body.task-mail #searchmenu .input-group {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 10px !important;
  }
  body.task-mail #searchmenu .input-group-prepend { margin: 0 !important; }
  body.task-mail #searchmenu .input-group-text {
    flex: 0 0 96px !important;
    width: 96px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--am-muted) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
  }
  body.task-mail #searchmenu select.custom-select {
    flex: 1 1 auto !important;
    height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 20px !important;
    background-color: var(--am-surface) !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    box-shadow: none !important;
  }
  body.task-mail #searchmenu select.custom-select:hover { border-color: var(--am-accent) !important; }

  /* --- butoanele de jos ----------------------------------- */
  body.task-mail #searchmenu .formbuttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.task-mail #searchmenu .formbuttons .btn {
    min-width: 108px !important;
    height: 40px !important;
    padding: 0 22px !important;
    border-radius: 20px !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }
  body.task-mail #searchmenu .formbuttons .btn-primary {
    border: 0 !important;
    background: var(--am-accent) !important;
    color: #fff !important;
  }
  body.task-mail #searchmenu .formbuttons .btn-primary:hover { filter: brightness(1.08) !important; }
  body.task-mail #searchmenu .formbuttons .btn-primary:before { display: none !important; }
  body.task-mail #searchmenu .formbuttons .arpymail-search-reset {
    border: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
    color: var(--am-text) !important;
    cursor: pointer !important;
  }
  body.task-mail #searchmenu .formbuttons .arpymail-search-reset:hover {
    background: var(--am-hover) !important;
  }
}

/* ============================================================
   20. CÂMPURI DE CĂUTARE STIL YAHOO
   Vezi scripts/arpymail-search.js — criteriile IMAP se compun în
   opțiunea proprie din #searchfilter, care ajunge pe server ca
   parametrul _filter.
   ============================================================ */
@media screen and (min-width: 769px) {
  #arpymail-search-fields { margin-bottom: 4px; }

  .am-sf-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
  }
  .am-sf-row > label {
    flex: 0 0 88px;
    width: 88px;
    margin: 0;
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 14px;
    font-weight: 500;
  }
  .am-sf-row > input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid var(--am-border);
    border-radius: 0;
    background: transparent;
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 14px;
    outline: none;
    transition: border-color .12s ease;
  }
  .am-sf-row > input::placeholder { color: var(--am-muted); }
  .am-sf-row > input:focus { border-bottom-color: var(--am-accent); }

  .am-sf-chips { min-height: 52px; }
  .am-sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px 0 13px;
    border: 1px solid var(--am-border);
    border-radius: 18px;
    background: var(--am-surface);
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease, color .12s ease;
  }
  .am-sf-chip svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .am-sf-chip:hover { border-color: var(--am-accent); }
  .am-sf-chip.on {
    border-color: var(--am-accent);
    background: rgba(var(--am-accent-rgb), .10);
    color: var(--am-accent);
    font-weight: 600;
  }

  /* Comutatoarele native de antete și rândul „Tip" sunt înlocuite de
     câmpuri; #searchfilter rămâne în DOM pentru că îl folosim ca vehicul. */
  html.arpymail-search-fields body.task-mail #searchmenu ul.proplist,
  html.arpymail-search-fields body.task-mail #searchmenu .input-group.arpymail-hidden-row {
    display: none !important;
  }
  html.arpymail-search-fields body.task-mail #searchmenu #searchfilter {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ============================================================
   21. BARA DE CĂUTARE — redesign Yahoo, iconițe Lucide
   Iconițele sunt path-uri Lucide (licență ISC) folosite ca mask,
   ca să moștenească currentColor și tema de accent.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Lupa din stânga dispare — Yahoo nu o are. */
  #arpymail-chrome > .arpymail-global-search-shell form:before {
    display: none !important;
  }
  #arpymail-chrome > .arpymail-global-search-shell input {
    padding: 0 6px 0 20px !important;
  }

  /* Butonul „Avansat": lucide/sliders-horizontal */
  #arpymail-chrome > .arpymail-global-search-shell > a.options {
    width: 32px !important;
    height: 32px !important;
    margin: 0 6px 0 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--am-text) !important;
  }
  #arpymail-chrome > .arpymail-global-search-shell > a.options:hover {
    background: transparent !important;
    opacity: .65 !important;
  }
  #arpymail-chrome > .arpymail-global-search-shell > a.options:before {
    content: "" !important;
    width: 19px !important;
    height: 19px !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: var(--am-icon-sliders);
    mask-image: var(--am-icon-sliders);
  }

  /* Butonul de căutare: pastilă albă, devine accent la hover/focus. */
  #arpymail-chrome > .arpymail-global-search-shell > a.search {
    flex: 0 0 auto !important;
    width: 62px !important;
    height: 34px !important;
    margin: 0 4px 0 0 !important;
    border-radius: 17px !important;
    background: var(--am-surface) !important;
    color: var(--am-text) !important;
    transition: background .14s ease, color .14s ease !important;
  }
  #arpymail-chrome > .arpymail-global-search-shell > a.search:before {
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: var(--am-icon-search);
    mask-image: var(--am-icon-search);
  }
  #arpymail-chrome > .arpymail-global-search-shell:hover > a.search,
  #arpymail-chrome > .arpymail-global-search-shell:focus-within > a.search,
  html.arpymail-search-open #arpymail-chrome > .arpymail-global-search-shell > a.search {
    background: var(--am-accent) !important;
    color: #fff !important;
  }

  /* Bara albă cât timp panoul e deschis, deasupra cardului. */
  html.arpymail-search-open #arpymail-chrome > .arpymail-global-search-shell {
    z-index: 1780 !important;
    background: var(--am-surface) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  /* --- cardul ancorat pe bară ----------------------------- */
  body.task-mail #searchmenu.searchoptions {
    padding: 18px 22px 16px !important;
    border-radius: 16px !important;
  }
  body.task-mail #searchmenu .formcontent { padding: 0 !important; }

  /* Rândurile devin mai compacte, ca la Yahoo. */
  .am-sf-row { min-height: 42px; gap: 18px; }
  .am-sf-row > label { flex-basis: 76px; width: 76px; font-weight: 400; }
  .am-sf-row > input { height: 34px; }
  .am-sf-chips { min-height: 48px; }

  body.task-mail #searchmenu .input-group { margin-bottom: 6px !important; }
  body.task-mail #searchmenu .input-group-text {
    flex: 0 0 76px !important;
    width: 76px !important;
    font-weight: 400 !important;
  }
  body.task-mail #searchmenu select.custom-select {
    max-width: 260px !important;
    height: 38px !important;
    border-radius: 19px !important;
    background-image: var(--am-icon-chevron) !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 17px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  /* Butoanele: mici, jos-dreapta. Elastic le dă lățime plină. */
  body.task-mail #searchmenu .formbuttons {
    margin-top: 14px !important;
    gap: 8px !important;
  }
  body.task-mail #searchmenu .formbuttons .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    padding: 0 20px !important;
    border-radius: 18px !important;
    font-size: 13px !important;
  }

  /* Chip-ul de atașament folosește tot lucide/paperclip (deja inline). */
  .am-sf-chip { height: 34px; }
}

/* ============================================================
   22. CORECTURI 1.5.19
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- panoul acoperea bara de căutare ---------------------
     Pusesem z-index 1780 pe bară, dar ea trăiește în
     #arpymail-chrome, care e position:fixed cu z-index propriu.
     Un z-index pe copil nu poate ieși din contextul de stivuire
     al părintelui, deci bara rămânea sub card (1700) și nu mai
     putea fi apăsată. Ridicăm containerul, nu copilul.        */
  html.arpymail-search-open #arpymail-chrome {
    z-index: 1790 !important;
  }

  /* --- butonul „Avansat" se colora la hover pe bară --------
     Regula din secțiunea 2 (`shell:hover > a.options`) are
     1 id + 4 clase și o bate pe cea din secțiunea 21. Yahoo ține
     iconița simplă; doar butonul de căutare devine mov.        */
  #arpymail-chrome > .arpymail-global-search-shell:hover > a.options,
  #arpymail-chrome > .arpymail-global-search-shell:focus-within > a.options,
  html.arpymail-search-open #arpymail-chrome > .arpymail-global-search-shell > a.options {
    background: transparent !important;
    color: var(--am-text) !important;
    border-radius: 0 !important;
  }

  /* Bara păstrează același alb în hover, focus și deschis —
     nu mai pendulează între gri și alb. */
  #arpymail-chrome > .arpymail-global-search-shell:hover,
  #arpymail-chrome > .arpymail-global-search-shell:focus-within,
  html.arpymail-search-open #arpymail-chrome > .arpymail-global-search-shell {
    background: var(--am-surface) !important;
    border-color: var(--am-border) !important;
  }
  html.arpymail-search-open #arpymail-chrome > .arpymail-global-search-shell {
    border-color: transparent !important;
    box-shadow: none !important;
  }

  /* Iconițele Lucide sunt desenate pentru stroke 2; la 1.6 se
     subțiază prea mult la 18px. */
  .am-msg-btn svg,
  #arpymail-list-header .am-hdr-btn svg {
    stroke-width: 1.8 !important;
  }
}

/* Elementul-momeală pentru options.next() din Elastic — vezi
   scripts/arpymail-search.js. Nu ocupă spațiu în niciun caz. */
#arpymail-search-sink {
  flex: 0 0 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* ============================================================
   23. PANOU DE CĂUTARE ÎN VIZUALIZAREA MESAJULUI
   templates/message.html din Elastic nu randează obiectul
   searchform, deci nici #searchmenu. Construim unul propriu
   (scripts/arpymail-search.js) care arată identic.
   ============================================================ */
@media screen and (min-width: 769px) {
  #arpymail-search-panel {
    position: fixed;
    z-index: 1700;
    padding: 18px 22px 16px;
    border: 1px solid var(--am-border);
    border-radius: 16px;
    background: var(--am-surface);
    color: var(--am-text);
    box-shadow: 0 18px 46px rgba(20, 20, 28, .20);
    font-family: var(--am-font);
  }
  #arpymail-search-panel[hidden] { display: none; }
  #arpymail-search-panel .formcontent { padding: 0; }
  #arpymail-search-panel .formbuttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
  }
  #arpymail-search-panel .btn {
    height: 36px;
    padding: 0 20px;
    border-radius: 18px;
    font-family: var(--am-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  #arpymail-search-panel .btn-primary {
    border: 0;
    background: var(--am-accent);
    color: #fff;
  }
  #arpymail-search-panel .btn-primary:hover { filter: brightness(1.08); }
  #arpymail-search-panel .arpymail-search-reset {
    border: 1px solid var(--am-border);
    background: var(--am-surface);
    color: var(--am-text);
  }
  #arpymail-search-panel .arpymail-search-reset:hover { background: var(--am-hover); }
}

/* ============================================================
   24. LISTA — indicator de necitit și aliniere pe coloane
   Yahoo pune un disc plin în culoarea de accent între checkbox
   și avatar. Roundcube marchează necititul printr-un bullet gri
   în interiorul subiectului (span.msgicon.status), aproape
   invizibil. Îl ascundem și desenăm discul pe avatar, ca să nu
   fie nevoie de modificări în DOM.
   ============================================================ */
@media screen and (min-width: 769px) {

  body.task-mail:not(.action-show):not(.action-compose) #messagelist .msgicon.status:not(.replied):not(.forwarded) {
    display: none !important;
  }

  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > .arpymail-sender-avatar {
    position: relative !important;
    margin-left: 20px !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.message.unread td.subject > .arpymail-sender-avatar:before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
    border-radius: 50%;
    background: var(--am-accent);
  }

  /* Coloană fixă pentru expeditor, ca subiectele să înceapă aliniat. */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > span.fromto {
    flex: 0 0 196px !important;
    width: 196px !important;
    min-width: 196px !important;
    margin-right: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Citit = gri discret, necitit = negru bold. */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.message:not(.unread) td.subject > span.fromto,
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.message:not(.unread) .arpymail-subject-text {
    color: var(--am-muted) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.message.unread td.subject > span.fromto,
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.message.unread .arpymail-subject-text {
    color: var(--am-text) !important;
  }
}

/* ============================================================
   25. CITIREA MESAJULUI — antet compact și acțiuni jos
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Butonul Înapoi, pastilă gri ca la Yahoo. */
  #arpymail-back {
    background: var(--am-hover);
    padding: 0 18px 0 12px;
  }
  #arpymail-back:hover { background: var(--am-border); }

  /* Iconița „deschide în fereastră nouă" de lângă subiect, discretă. */
  body.task-mail.action-show #message-header h2.subject a.extwin {
    margin-left: 10px !important;
    color: var(--am-muted) !important;
    font-size: 14px !important;
  }
  body.task-mail.action-show #message-header h2.subject a.extwin:hover {
    color: var(--am-accent) !important;
  }

  body.task-mail.action-show #message-header .contactphoto {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: var(--am-hover) !important;
  }

  .am-msg-from {
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
  }
  .am-msg-meta {
    margin-top: 2px;
    color: var(--am-muted);
    font-family: var(--am-font);
    font-size: 13px;
    line-height: 1.35;
  }

  body.task-mail.action-show #message-header .header-links {
    margin-top: 6px !important;
    display: flex !important;
    gap: 14px !important;
  }
  body.task-mail.action-show #message-header .header-links a {
    color: var(--am-muted) !important;
    font-size: 12px !important;
    text-decoration: none !important;
  }
  body.task-mail.action-show #message-header .header-links a:hover {
    color: var(--am-accent) !important;
  }

  /* Acțiunile de la finalul mesajului. */
  #arpymail-msg-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 28px 0 40px;
  }
  .am-foot-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--am-border);
    border-radius: 20px;
    background: var(--am-surface);
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
  }
  .am-foot-btn:hover {
    border-color: var(--am-accent);
    background: var(--am-hover);
  }
  .am-foot-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* ============================================================
   26. CITIREA MESAJULUI — aliniere, chip de dosar, antet lipit
   ------------------------------------------------------------
   Indentarea uriașă a subiectului venea din arpymail.css L517 și
   L531: #message-header și #message-content aveau
       max-width: 1120px; margin: 0 auto;
   Într-un card de ~1800px asta lasă ~340px liberi în stânga.
   Yahoo aliniază la marginea cardului.
   ============================================================ */
@media screen and (min-width: 769px) {

  body.task-mail.action-show #message-header,
  body.task-mail.action-show #message-content {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.task-mail.action-show #message-header { margin-bottom: 14px !important; }

  body.task-mail.action-show #message-header h2.subject {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin: 0 0 16px !important;
    font-size: 26px !important;
  }

  /* Chip cu dosarul curent. */
  .am-folder-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    padding: 0 11px;
    border-radius: 7px;
    background: var(--am-hover);
    color: var(--am-muted);
    font-family: var(--am-font);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .am-folder-chip svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Rândul cu expeditorul rămâne lipit sus la derulare. */
  body.task-mail.action-show .am-sender-sticky {
    position: sticky !important;
    top: 0 !important;
    z-index: 6 !important;
    margin: 0 -26px 18px !important;
    padding: 12px 26px !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-mail.action-show .am-sender-sticky .contactphoto {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
  }
  body.task-mail.action-show .am-sender-sticky .header-links {
    display: none !important;
  }
  body.task-mail.action-show .am-sender-sticky:hover .header-links,
  body.task-mail.action-show .am-sender-sticky:focus-within .header-links {
    display: flex !important;
  }
}

/* ============================================================
   27. CORECTURI ȘI ICONIȚE LUCIDE PESTE TOT (1.5.25)
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- 1. fără „deschide în filă nouă" lângă subiect -------- */
  body.task-mail.action-show #message-header h2.subject a.extwin {
    display: none !important;
  }

  /* --- 2. spațiul urât la derulare ------------------------
     Elastic ascunde tabelul de antete cu
         #message-header .header-headers { display: none }
     Mutând rândul cu expeditorul afară din #message-header ca
     să funcționeze `sticky`, selectorul a încetat să se aplice
     și tabelul a devenit vizibil, împingând conținutul. */
  .am-sender-sticky .header-headers { display: none !important; }
  .am-sender-sticky .header-content.details-view .header-headers {
    display: table !important;
  }

  /* --- avatar cu inițiale în antet ------------------------- */
  .am-msg-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--am-avatar, var(--am-accent));
    color: #fff;
    font-family: var(--am-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
  }

  /* --- iconițe Lucide: contur, nu umplere ------------------ */
  #messagelist .arpymail-row-actions svg.am-lucide,
  /* Nu mai folosim fontul Elastic pentru rail. */
}

/* ============================================================
   28. RAIL-UL NATIV — iconițe Lucide
   Rail-ul propriu (#arpymail-rail) exista doar unde Roundcube nu
   randeaza lista de dosare: settings, addressbook, compose. In mail
   si la citirea mesajului se foloseste #mailboxlist, care isi ia
   iconitele din fontul Elastic — de aia s-au schimbat doar in setari.
   ============================================================ */
@media screen and (min-width: 769px) {
  #mailboxlist li.mailbox > a:before {
    content: "" !important;
    width: 22px !important;
    height: 22px !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
  #mailboxlist li.mailbox.inbox > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12' /%3E %3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12' /%3E %3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z' /%3E%3C/svg%3E"); }
  #mailboxlist li.mailbox.drafts > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E %3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E %3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E"); }
  #mailboxlist li.mailbox.sent > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/svg%3E"); }
  #mailboxlist li.mailbox.junk > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m14.5 9.5-5 5'/%3E%3Cpath d='m9.5 9.5 5 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m14.5 9.5-5 5'/%3E%3Cpath d='m9.5 9.5 5 5'/%3E%3C/svg%3E"); }
  #mailboxlist li.mailbox.trash > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  #mailboxlist li.mailbox.archive > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); }
  #mailboxlist li.mailbox:not(.inbox):not(.drafts):not(.sent):not(.junk):not(.trash):not(.archive) > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); }
  #arpymail-compose-shortcut > span { display: none !important; }
  #arpymail-compose-shortcut:before {
    content: ""; width: 23px; height: 23px; background-color: #fff;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z' /%3E %3Cpath d='m15 5 4 4' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z' /%3E %3Cpath d='m15 5 4 4' /%3E%3C/svg%3E");
  }
  .arpymail-side-shortcut.contacts > .icon { font-size: 0 !important; }
  .arpymail-side-shortcut.contacts > .icon:before {
    content: ""; display: block; width: 21px; height: 21px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 2v2' /%3E %3Cpath d='M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2' /%3E %3Cpath d='M8 2v2' /%3E %3Ccircle cx='12' cy='10' r='3' /%3E %3Crect x='3' y='3' width='18' height='18' rx='2' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 2v2' /%3E %3Cpath d='M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2' /%3E %3Cpath d='M8 2v2' /%3E %3Ccircle cx='12' cy='10' r='3' /%3E %3Crect x='3' y='3' width='18' height='18' rx='2' /%3E%3C/svg%3E");
  }
  .arpymail-side-shortcut.settings > .icon { font-size: 0 !important; }
  .arpymail-side-shortcut.settings > .icon:before {
    content: ""; display: block; width: 21px; height: 21px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915' /%3E %3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915' /%3E %3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E");
  }
  .arpymail-side-shortcut.more > .icon { font-size: 0 !important; }
  .arpymail-side-shortcut.more > .icon:before {
    content: ""; display: block; width: 21px; height: 21px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1' /%3E %3Ccircle cx='19' cy='12' r='1' /%3E %3Ccircle cx='5' cy='12' r='1' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1' /%3E %3Ccircle cx='19' cy='12' r='1' /%3E %3Ccircle cx='5' cy='12' r='1' /%3E%3C/svg%3E");
  }
}

/* ============================================================
   29. ANTETUL MESAJULUI — aliniere, bandă la derulare, dropdown
   ------------------------------------------------------------
   Din nou efectul mutării pentru `sticky`: arpymail.css L527 face
   rândul flex prin `#message-header > .header`, iar rândul nu mai
   e copilul lui #message-header. De aia avatarul a ajuns deasupra
   numelui în loc de lângă el.
   ============================================================ */
@media screen and (min-width: 769px) {

  body.task-mail.action-show .am-sender-sticky {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    border-top: 0 !important;
    background: var(--am-surface) !important;
  }
  body.task-mail.action-show .am-sender-sticky > .header-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* Banda de conținut vizibilă deasupra antetului lipit venea din
     padding-ul de sus al containerului care derulează (arpymail.css
     L511: padding 22px 26px 40px). Conținutul derulează prin acea
     zonă, care rămâne peste elementul sticky. Mutăm spațiul pe
     primul copil. */
  body.task-mail.action-show #layout-content .content.frame-content {
    padding-top: 0 !important;
  }
  body.task-mail.action-show #message-header {
    padding-top: 22px !important;
  }

  /* --- dropdownul cu Detalii / Antete / Text simplu --------- */
  .am-meta-menu-wrap { position: relative; display: inline-flex; margin-left: 8px; }
  .am-meta-toggle {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--am-muted);
    cursor: pointer;
    vertical-align: middle;
  }
  .am-meta-toggle:hover { background: var(--am-hover); color: var(--am-text); }
  .am-meta-toggle svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .15s ease;
  }
  .am-meta-toggle.open svg { transform: rotate(180deg); }

  .am-meta-menu {
    position: absolute;
    z-index: 30;
    top: 28px;
    left: -8px;
    min-width: 214px;
    padding: 6px;
    border: 1px solid var(--am-border);
    border-radius: 12px;
    background: var(--am-surface);
    box-shadow: 0 12px 32px rgba(20, 20, 28, .16);
  }
  .am-meta-menu[hidden] { display: none; }
  .am-meta-menu .header-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
  }
  .am-meta-menu .header-links a {
    display: flex !important;
    align-items: center !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    color: var(--am-text) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  .am-meta-menu .header-links a:hover {
    background: var(--am-hover) !important;
    color: var(--am-text) !important;
  }
  /* Nu mai apar la hover pe bară. */
  body.task-mail.action-show .am-sender-sticky:hover .header-links,
  body.task-mail.action-show .am-sender-sticky:focus-within .header-links {
    display: flex !important;
  }
  body.task-mail.action-show .am-sender-sticky > .header-content > .header-links {
    display: none !important;
  }
}

/* ============================================================
   30. CURSOR ȘI HOVER PE TOATE BUTOANELE
   Elastic randează majoritatea butoanelor ca <a> fără href, iar
   un <a> fără href nu primește `cursor: pointer` de la browser —
   de aici săgeata în loc de mânuță.
   ============================================================ */
@media screen and (min-width: 769px) {
  #arpymail-chrome a,
  #arpymail-chrome button,
  #mailboxlist a,
  #arpymail-rail a,
  #arpymail-compose-shortcut,
  .arpymail-side-shortcut,
  .am-msg-btn,
  .am-hdr-btn,
  .am-foot-btn,
  .am-tab > a,
  .am-tab-close,
  .am-tabs-toggle,
  .am-meta-toggle,
  .am-sf-chip,
  #messagelist .arpymail-row-actions button,
  .popupmenu a,
  .popupmenu button,
  body.task-settings #layout-sidebar a,
  body.task-settings #layout-list a,
  body.task-settings .listing a {
    cursor: pointer !important;
  }

  /* Hover uniform peste tot unde nu era. */
  #arpymail-chrome .arpymail-chrome-icon:hover,
  #arpymail-chrome .arpymail-account-button:hover {
    background: var(--am-hover) !important;
  }
  #mailboxlist li.mailbox > a { transition: background .12s ease, color .12s ease; }
  #mailboxlist li.mailbox > a:hover {
    background: var(--am-hover) !important;
    color: var(--am-text) !important;
  }
  .arpymail-side-shortcut { transition: background .12s ease; }
  .arpymail-side-shortcut:hover { background: var(--am-hover) !important; }
}

/* ============================================================
   31. TABURI — aspect Yahoo
   ============================================================ */
@media screen and (min-width: 769px) {
  .am-tab {
    height: 34px;
    padding: 0 6px 0 16px;
    border: 1px solid transparent;
    border-radius: 17px;
    background: #ededf0;
    box-shadow: none;
    transition: background .12s ease, border-color .12s ease;
  }
  html.dark-mode .am-tab { background: #26262e; }
  .am-tab:hover { background: #e3e2e8; box-shadow: none; }
  html.dark-mode .am-tab:hover { background: #2f2f39; }
  .am-tab.active {
    background: var(--am-surface);
    border-color: var(--am-accent);
    box-shadow: none;
  }
  .am-tab > a { font-size: 13px; font-weight: 500; }
  .am-tab-close { opacity: 0; transition: opacity .12s ease; }
  .am-tab:hover .am-tab-close,
  .am-tab.active .am-tab-close { opacity: 1; }
  .am-tabs-toggle {
    border-color: transparent;
    background: #ededf0;
  }
  html.dark-mode .am-tabs-toggle { background: #26262e; }
  .am-tabs-toggle:hover { background: #e3e2e8; }
}

/* ============================================================
   32. LĂȚIME UNICĂ PENTRU RAIL
   Sidebar-ul nativ primește lățime inline de la redimensionatorul
   Elastic (style="width: 100px"), de unde diferența față de
   rail-ul propriu din setări.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail #layout-sidebar,
  html.arpymail-own-rail #arpymail-rail {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }
  body.task-mail #layout-sidebar .column-resizer { display: none !important; }
}

/* ============================================================
   33. SETĂRI — aspect Yahoo
   ------------------------------------------------------------
   Elastic desenează formularele cu .propform, un grid cu etichetă
   pe 4 coloane și control pe 8, centrat într-un container îngust.
   De aici spațiul mare nefolosit în dreapta și senzația că totul
   plutește. Trecem pe listă verticală, aliniată la stânga, cu
   secțiuni în carduri.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- cele trei coloane, ca niște carduri ----------------- */
  body.task-settings #layout-sidebar,
  body.task-settings #layout-list,
  body.task-settings #layout-content {
    margin: 8px 10px 8px 0 !important;
    height: calc(100% - 16px) !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 16px !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }
  body.task-settings #layout-list { flex: 0 0 286px !important; max-width: 286px !important; }
  body.task-settings #layout-content { flex: 1 1 auto !important; }

  body.task-settings #layout > div > .header {
    flex: 0 0 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  /* --- listele de secțiuni --------------------------------- */
  body.task-settings .listing li > a,
  body.task-settings .listing tr > td {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 16px !important;
    border: 0 !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
  }
  body.task-settings .listing li,
  body.task-settings .listing tr { border: 0 !important; }
  body.task-settings .listing li > a:hover,
  body.task-settings .listing tr:hover > td {
    background: var(--am-hover) !important;
  }
  body.task-settings .listing li.selected > a,
  body.task-settings .listing tr.selected > td,
  body.task-settings .listing tr.focused > td {
    background: rgba(var(--am-accent-rgb), .10) !important;
    color: var(--am-accent) !important;
    font-weight: 600 !important;
    box-shadow: inset 3px 0 0 var(--am-accent) !important;
  }
  body.task-settings .listing li > a:before,
  body.task-settings .listing tr > td:before {
    color: inherit !important;
    font-size: 16px !important;
  }

  /* --- formularele ----------------------------------------- */
  body.task-settings #preferences-frame,
  body.task-settings .formcontainer,
  body.task-settings .frame-content {
    padding: 0 !important;
  }
  body.task-settings .formcontent,
  body.task-settings #sections-table + *,
  body.task-settings .propform {
    max-width: none !important;
    margin: 0 !important;
  }
  body.task-settings fieldset,
  body.task-settings .propform > fieldset {
    max-width: 780px !important;
    margin: 0 0 18px !important;
    padding: 18px 22px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 14px !important;
    background: var(--am-surface) !important;
  }
  body.task-settings legend,
  body.task-settings .boxtitle,
  body.task-settings h2.boxtitle,
  body.task-settings .propform > h3 {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  /* Rând: etichetă la stânga, control la dreapta, fără centrare. */
  body.task-settings .propform .form-group.row,
  body.task-settings .propform .row {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
  }
  body.task-settings .propform .form-group.row:last-child { border-bottom: 0 !important; }
  body.task-settings .propform .col-form-label,
  body.task-settings .propform label.col-sm-4 {
    flex: 0 0 240px !important;
    max-width: 240px !important;
    width: 240px !important;
    padding: 0 !important;
    color: var(--am-muted) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: left !important;
  }
  body.task-settings .propform .col-sm-8,
  body.task-settings .propform .form-group.row > div:last-child {
    flex: 1 1 auto !important;
    max-width: 380px !important;
    padding: 0 !important;
  }
  body.task-settings .form-control,
  body.task-settings .custom-select,
  body.task-settings input[type="text"],
  body.task-settings input[type="password"],
  body.task-settings select,
  body.task-settings textarea {
    height: 38px !important;
    padding: 0 12px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 10px !important;
    background-color: var(--am-surface) !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    box-shadow: none !important;
  }
  body.task-settings textarea { height: auto !important; padding: 10px 12px !important; }
  body.task-settings .form-control:focus,
  body.task-settings .custom-select:focus {
    border-color: var(--am-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--am-accent-rgb), .16) !important;
  }

  /* Comutatoarele urmează accentul, ca în meniul de căutare. */
  body.task-settings .custom-switch .custom-control-label::before {
    width: 38px !important;
    height: 22px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background-color: #cdcbd4 !important;
  }
  body.task-settings .custom-switch .custom-control-label::after {
    width: 18px !important;
    height: 18px !important;
    border-radius: 9px !important;
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(20, 20, 28, .28) !important;
  }
  body.task-settings .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--am-accent) !important;
  }
  body.task-settings .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(16px) !important;
  }

  /* --- butoanele de salvare -------------------------------- */
  body.task-settings .formbuttons {
    padding: 16px 22px !important;
    border-top: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-settings .formbuttons .btn,
  body.task-settings .btn-primary {
    min-width: 118px !important;
    height: 40px !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: var(--am-accent) !important;
    color: #fff !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.task-settings .formbuttons .btn:hover { filter: brightness(1.08) !important; }
  body.task-settings .btn-secondary {
    background: var(--am-surface) !important;
    color: var(--am-text) !important;
    border: 1px solid var(--am-border) !important;
  }

  /* --- pagina de profil ------------------------------------ */
  body.task-settings .arpymail-profile-grid,
  body.task-settings #arpymail-profile {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    max-width: 780px !important;
  }
  body.task-settings .arpymail-profile-card {
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 14px !important;
    background: var(--am-surface) !important;
    box-shadow: none !important;
  }
  body.task-settings .arpymail-profile-actions .btn,
  body.task-settings .arpymail-profile-actions button {
    border-radius: 20px !important;
    cursor: pointer !important;
  }
}

/* ============================================================
   34. UN SINGUR RAIL
   Markupul construit de arpymail-shell.js e identic cu cel din
   poștă (#mailboxlist, .mailbox, #arpymail-sidebar-shortcuts),
   deci aici doar egalăm containerul. Restul stilurilor vin din
   regulile deja scrise pentru rail-ul nativ.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail #layout-sidebar,
  #arpymail-rail {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 0 !important;
    background: var(--am-bg) !important;
    overflow: visible !important;
  }
  body.task-mail #layout-sidebar .column-resizer,
  #arpymail-rail .column-resizer { display: none !important; }

  #arpymail-rail > #folderlist-content {
    position: static !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 0 6px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  #arpymail-rail > #arpymail-sidebar-shortcuts {
    position: static !important;
    flex: 0 0 auto !important;
    margin: 4px 7px 8px !important;
  }
  /* FAB-ul e <a> aici și <button> în poștă; același aspect. */
  a#arpymail-compose-shortcut {
    position: static !important;
    flex: 0 0 auto !important;
    width: 54px !important;
    height: 54px !important;
    margin: 10px auto !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 27px !important;
    background: var(--am-accent) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(var(--am-accent-rgb), .16) !important;
  }
  /* Setările au propriul #layout-sidebar (lista de secțiuni) — el rămâne
     card normal, nu rail. */
  body.task-settings #layout-sidebar,
  body.task-addressbook #layout-sidebar {
    flex: 0 0 246px !important;
    width: 246px !important;
    min-width: 246px !important;
    max-width: 246px !important;
  }
}

/* ============================================================
   35. RAIL-UL ÎN AFARA POȘTEI — aceleași reguli de așezare
   ------------------------------------------------------------
   Toate regulile de rail din arpymail.css sunt ancorate în
   `body.task-mail` (L267-L300). Pe settings și addressbook nu se
   aplică niciuna, deci lista de dosare cădea pe stilul simplu
   Elastic: fără coloană, fără iconițe. Le repetăm aici fără
   condiția de task, doar pentru #arpymail-rail.
   ============================================================ */
@media screen and (min-width: 769px) {
  #arpymail-rail #mailboxlist {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  #arpymail-rail #mailboxlist li {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
  }
  #arpymail-rail #mailboxlist a {
    min-height: 56px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 5px 3px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--am-muted) !important;
    font-family: var(--am-font) !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
  }
  #arpymail-rail #mailboxlist li.selected > a,
  #arpymail-rail #mailboxlist a:hover {
    background: var(--am-selected, var(--am-hover)) !important;
    color: var(--am-text) !important;
  }
  #arpymail-rail #mailboxlist a:before {
    content: "" !important;
    display: block !important;
    float: none !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
}

/* ============================================================
   36. SETĂRILE NU MAI ATING BARA DE CĂUTARE
   Regulile de formular din secțiunea 33 prindeau și inputul din
   #arpymail-chrome, fiindcă e tot `input[type="text"]`.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-settings #arpymail-chrome input[type="text"],
  body.task-settings #arpymail-chrome .form-control,
  body.task-settings #arpymail-chrome input {
    height: 40px !important;
    padding: 0 6px 0 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.task-settings #arpymail-chrome input:focus {
    border: 0 !important;
    box-shadow: none !important;
  }
  body.task-settings #arpymail-chrome .arpymail-global-search-shell {
    height: 42px !important;
    border-radius: 22px !important;
    background: #ececee !important;
  }
  html.dark-mode body.task-settings #arpymail-chrome .arpymail-global-search-shell {
    background: #25252c !important;
  }
  body.task-settings #arpymail-chrome .arpymail-global-search-shell:hover,
  body.task-settings #arpymail-chrome .arpymail-global-search-shell:focus-within {
    background: var(--am-surface) !important;
  }
  /* La fel pentru panoul propriu de căutare avansată. */
  body.task-settings #arpymail-search-panel input[type="text"] {
    height: 34px !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
}

@media screen and (min-width: 769px) {
  #arpymail-rail #mailboxlist li.inbox > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12' /%3E %3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12' /%3E %3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z' /%3E%3C/svg%3E"); }
  #arpymail-rail #mailboxlist li.drafts > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E %3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E %3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E"); }
  #arpymail-rail #mailboxlist li.sent > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/svg%3E"); }
  #arpymail-rail #mailboxlist li.junk > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m14.5 9.5-5 5'/%3E%3Cpath d='m9.5 9.5 5 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m14.5 9.5-5 5'/%3E%3Cpath d='m9.5 9.5 5 5'/%3E%3C/svg%3E"); }
  #arpymail-rail #mailboxlist li.trash > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  #arpymail-rail #mailboxlist li.archive > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); }
  #arpymail-rail #mailboxlist li:not(.inbox):not(.drafts):not(.sent):not(.junk):not(.trash):not(.archive) > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); }
}

/* ============================================================
   37. LOGO TEXT
   ============================================================ */
#arpymail-chrome .arpymail-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 4px !important;
  font-family: var(--am-font) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
#arpymail-chrome .arpymail-brand img { display: none !important; }
#arpymail-chrome .arpymail-brand .am-brand-a { color: var(--am-accent) !important; }
#arpymail-chrome .arpymail-brand .am-brand-b { color: var(--am-text) !important; }
html.dark-mode #arpymail-chrome .arpymail-brand .am-brand-b { color: #f2f2f5 !important; }

/* ============================================================
   38. BRAND — lățime proprie, aliniat cu rail-ul
   ------------------------------------------------------------
   arpymail.css L1719 fixează `.arpymail-brand { width: 146px;
   flex-basis: 146px }`, dimensiune gândită pentru logo-ul imagine.
   Textul „Roundcube" e mai lat și, cu conținutul centrat, ieșea
   pe ambele capete — de aici „oundcub". Îl lăsăm să-și ia
   lățimea din conținut, iar flex-ul împinge singur căutarea.
   Marginea stângă cade pe padding-ul chrome-ului (26px), adică
   exact la marginea butoanelor din rail.
   ============================================================ */
@media screen and (min-width: 769px) {
  #arpymail-chrome > .arpymail-brand {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 16px 0 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    letter-spacing: -.01em !important;
    font-size: 23px !important;
  }
  #arpymail-chrome > .arpymail-brand .am-brand-a,
  #arpymail-chrome > .arpymail-brand .am-brand-b {
    font-style: normal !important;
    padding: 0 !important;
  }
  /* Bara de căutare nu mai are lățime impusă, ca să nu se suprapună. */
  #arpymail-chrome > .arpymail-global-search-shell {
    flex: 0 1 690px !important;
    min-width: 0 !important;
    margin: 0 10px 0 0 !important;
  }
}

/* ============================================================
   39. #layout FĂRĂ PADDING ÎN SETĂRI ȘI CONTACTE
   ------------------------------------------------------------
   arpymail.css L928:
     html:not(.iframe) body.task-settings #layout {
       padding: 8px 14px 12px !important;
       gap: 10px;
     }
   În poștă nu există regula asta, deci rail-ul pornea de la 0,
   iar în setări era împins cu 14px la dreapta și primea 10px de
   gap între coloane. De aici marginile diferite.

   Aliniem setările după poștă: fără padding lateral, fără gap.
   Distanțele dintre carduri rămân date de marginile lor proprii
   (margin: 8px 10px 8px 0), exact ca la lista de mesaje.

   Specificitatea originalului e (1,2,2); adăugăm [class] pe body
   ca să urcăm la (1,3,2) fără clase inventate.
   ============================================================ */
@media screen and (min-width: 769px) {
  html:not(.iframe) body.task-settings[class] #layout,
  html:not(.iframe) body.task-addressbook[class] #layout,
  html:not(.iframe) body.task-mail[class].action-compose #layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  /* padding-top îl pune arpymail-shell.js inline când există taburi;
     fără taburi trebuie să fie tot 0, ca în poștă. */
  html:not(.iframe) body.task-settings[class] #layout:not([style*="padding-top"]),
  html:not(.iframe) body.task-addressbook[class] #layout:not([style*="padding-top"]) {
    padding-top: 0 !important;
  }

  /* Rail-ul lipit de margine, ca în poștă; cardurile își poartă marginile. */
  html.arpymail-own-rail #arpymail-rail { margin: 0 !important; }
  body.task-addressbook #layout-sidebar,
  body.task-addressbook #layout-list,
  body.task-addressbook #layout-content {
    margin: 8px 10px 8px 0 !important;
    height: calc(100% - 16px) !important;
  }
}

/* ============================================================
   40. MOBIL — plasă de siguranță
   ------------------------------------------------------------
   Scripturile nu mai construiesc nimic sub 769px, dar dacă
   fereastra e redimensionată de la desktop la telefon elementele
   deja injectate rămân în DOM. Aici le ascundem, ca interfața
   mobilă a Elastic să rămână curată și funcțională.
   ============================================================ */
@media screen and (max-width: 768px) {
  #arpymail-chrome,
  #arpymail-tabs,
  #arpymail-rail,
  #arpymail-list-header,
  #arpymail-msg-toolbar,
  #arpymail-msg-footer,
  #arpymail-back,
  #arpymail-search-panel,
  #arpymail-search-proxy,
  #arpymail-sidebar-shortcuts,
  #arpymail-compose-shortcut,
  #arpymail-message-tabs,
  #messagelist .arpymail-row-actions,
  #messagelist .arpymail-sender-avatar,
  #messagelist .arpymail-preview-snippet,
  .am-sender-sticky .am-meta-menu-wrap,
  .am-msg-avatar {
    display: none !important;
  }

  /* Elementele native pe care le ascundeam pe desktop revin. */
  #messagelist-header,
  #layout-content > .header #toolbar-menu,
  #layout-content > .header a.back-list-button,
  #layout-content > .header a.toolbar-menu-button,
  .listing-hover-menu,
  #mailboxlist .unreadcount,
  #messagelist td.flags,
  #messagelist td.threads {
    display: revert !important;
  }

  /* Subiectul și previzualizarea revin la aranjarea Elastic. */
  #messagelist td.subject {
    flex-wrap: wrap !important;
    padding-right: 0 !important;
  }
  #messagelist .arpymail-subject-text {
    flex: 1 1 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  #messagelist td.subject > span.date {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    opacity: 1 !important;
  }
  #layout,
  body.task-mail #layout {
    top: 0 !important;
    height: 100% !important;
    padding: 0 !important;
  }
}

/* ============================================================
   41. SETĂRI — corecturi
   ------------------------------------------------------------
   Elastic (ui.js L917) transformă <table class="propform"> în
   rânduri: celula 1 primește .col-sm-4, celula 2 .col-sm-8, iar
   <label> din prima celulă primește .col-form-label.

   Greșeala mea din secțiunea 33: am dat `flex: 0 0 240px` pe
   .col-form-label, adică pe ETICHETĂ, nu pe coloană. Eticheta e
   un bloc în interiorul celulei, deci dimensiunea n-a ajuns
   niciodată la coloană, iar controlul a căzut sub ea.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Eticheta redevine normală; coloanele preiau lățimile. */
  body.task-settings .propform .col-form-label,
  body.task-settings .propform label.col-form-label {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--am-muted) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
  }

  body.task-settings .propform .form-group.row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 18px !important;
  }
  body.task-settings .propform .form-group.row > .col-sm-4,
  body.task-settings .propform .form-group.row > td:first-child {
    flex: 0 0 260px !important;
    width: 260px !important;
    max-width: 260px !important;
    padding: 0 !important;
  }
  body.task-settings .propform .form-group.row > .col-sm-8,
  body.task-settings .propform .form-group.row > td:last-child {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }
  body.task-settings .propform .form-group.row .form-control,
  body.task-settings .propform .form-group.row .custom-select {
    max-width: 420px !important;
  }

  /* --- fieldset până în margine ---------------------------- */
  body.task-settings fieldset,
  body.task-settings fieldset.main,
  body.task-settings .propform > fieldset {
    max-width: none !important;
    width: auto !important;
    margin: 0 0 18px !important;
  }
  body.task-settings .formcontent,
  body.task-settings #preferences-frame body {
    padding: 18px 22px !important;
  }

  /* --- comutatoarele nu mai intră peste text ---------------
     Bootstrap rezervă 2.25rem (36px) în stânga, dar pista
     noastră are 38px și butonul alunecă peste etichetă. */
  body.task-settings .custom-switch,
  body.task-settings .custom-control.custom-switch {
    min-height: 24px !important;
    padding-left: 52px !important;
  }
  body.task-settings .custom-switch .custom-control-label::before {
    left: -52px !important;
    top: 1px !important;
  }
  body.task-settings .custom-switch .custom-control-label::after {
    left: -50px !important;
    top: 3px !important;
  }
  /* Checkbox simplu (nu switch) în setări. */
  body.task-settings .custom-checkbox .custom-control-label::before,
  body.task-settings .custom-checkbox .custom-control-label::after {
    width: 18px !important;
    height: 18px !important;
    top: 2px !important;
  }

  /* Toolbar-ul din #layout-content: mutat în secțiunea 59.
     Regula de aici viza `a.button`, clasă pe care butoanele
     de toolbar NU o au; prindea doar a.back-list-button și îl
     scotea din ascunderea pusă de Elastic. */

  /* --- lista din mijloc (#layout-list) --------------------- */
  body.task-settings #layout-list .searchbar,
  body.task-settings #layout-list .header .searchbar {
    height: 44px !important;
    margin: 8px 12px !important;
    padding: 0 6px 0 12px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 22px !important;
    background: var(--am-bg) !important;
  }
  body.task-settings #layout-list .searchbar input {
    height: 42px !important;
    border: 0 !important;
    background: transparent !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
  }
  body.task-settings #layout-list .listing li > a,
  body.task-settings #layout-list .listing tr > td {
    min-height: 46px !important;
  }
}

/* ============================================================
   42. ASPECT „LISTĂ + PREVIZUALIZARE"
   ------------------------------------------------------------
   arpymail.css are 24 de reguli ancorate în
     html[data-arpymail-mail-layout="yahoo"]
   și niciuna pentru "split". Când alegi previzualizarea, atributul
   devine "split", toate acele reguli se opresc, iar interfața cade
   pe Elastic: reapare rail-ul întunecat #layout-menu (L221 îl
   ascunde doar în modul yahoo) și toolbar-ul cu etichete text.
   Aici repetăm esențialul pentru modul split.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Rail-ul întunecat Elastic nu apare în niciun mod de poștă. */
  body.task-mail #layout-menu,
  body.task-addressbook #layout-menu {
    display: none !important;
  }

  html[data-arpymail-mail-layout="split"] body.task-mail:not(.action-show):not(.action-compose) #layout-sidebar {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 0 !important;
    background: var(--am-bg) !important;
    overflow: visible !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail:not(.action-show):not(.action-compose) #folderlist-content {
    position: static !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 0 6px !important;
    overflow-y: auto !important;
  }

  /* Lista devine coloana din stânga, previzualizarea cardul din dreapta. */
  html[data-arpymail-mail-layout="split"] body.task-mail:not(.action-show):not(.action-compose) #layout-list {
    flex: 0 0 460px !important;
    width: 460px !important;
    max-width: 460px !important;
    min-width: 380px !important;
    margin: 8px 10px 8px 0 !important;
    height: calc(100% - 16px) !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 16px !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail:not(.action-show):not(.action-compose) #layout-content {
    display: flex !important;
    flex: 1 1 auto !important;
    margin: 8px 10px 8px 0 !important;
    height: calc(100% - 16px) !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 16px !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }

  /* Toolbar-ul previzualizării: doar iconițe, ca în vizualizarea mesajului. */
  html[data-arpymail-mail-layout="split"] body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header {
    flex: 0 0 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #layout-content > .header a.button {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 19px !important;
    color: var(--am-muted) !important;
    cursor: pointer !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #layout-content > .header a.button:hover {
    background: var(--am-hover) !important;
    color: var(--am-text) !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #layout-content > .header a.button:before {
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 17px !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #layout-content > .header a.button .inner {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #layout-content > .header .dropbutton a.dropdown {
    display: none !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #layout-content > .header > .header-title {
    display: none !important;
  }

  /* În modul split rândurile sunt înguste: fără tavă de acțiuni și
     fără previzualizare în text, altfel nu încape nimic. */
  html[data-arpymail-mail-layout="split"] body.task-mail #messagelist .arpymail-row-actions,
  html[data-arpymail-mail-layout="split"] body.task-mail #messagelist .arpymail-preview-snippet {
    display: none !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #messagelist td.subject {
    flex-wrap: wrap !important;
    padding-right: 12px !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #messagelist .arpymail-subject-text {
    flex: 1 1 100% !important;
    max-width: none !important;
  }
  html[data-arpymail-mail-layout="split"] body.task-mail #messagelist td.subject > span.fromto {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* ============================================================
   43. RAIL ȘI TOOLBAR — reguli valabile în ORICE mod
   ------------------------------------------------------------
   În 1.5.36 am repetat pentru modul split doar containerul, nu și
   regulile de element: cele din arpymail.css (L267-L300) rămân
   legate de layout="yahoo", deci în split elementele cad pe
   stilul Elastic — iconiță la stânga, etichetă trunchiată.

   Ca să nu se mai repete, aici NU mai scriem pe mod. Selectorii
   acoperă orice valoare a atributului și, unde e cazul, și
   rail-ul propriu din setări.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Antetul cu numele contului nu apare în rail, în niciun mod. */
  body.task-mail #layout-sidebar > .header,
  body.task-mail #layout-sidebar > .footer,
  #arpymail-rail > .header {
    display: none !important;
  }

  body.task-mail #layout-sidebar #mailboxlist,
  #arpymail-rail #mailboxlist {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  body.task-mail #layout-sidebar #mailboxlist li,
  #arpymail-rail #mailboxlist li {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
  }
  body.task-mail #layout-sidebar #mailboxlist a,
  #arpymail-rail #mailboxlist a {
    min-height: 56px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 5px 3px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: var(--am-muted) !important;
    font-family: var(--am-font) !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
  }
  body.task-mail #layout-sidebar #mailboxlist li.selected > a,
  #arpymail-rail #mailboxlist li.selected > a,
  body.task-mail #layout-sidebar #mailboxlist a:hover,
  #arpymail-rail #mailboxlist a:hover {
    background: var(--am-hover) !important;
    color: var(--am-text) !important;
  }
  body.task-mail #layout-sidebar #mailboxlist a:before,
  #arpymail-rail #mailboxlist a:before {
    content: "" !important;
    display: block !important;
    float: none !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
  /* Contorul de necitite rămâne ascuns în orice mod. */
  body.task-mail #layout-sidebar #mailboxlist .unreadcount,
  #arpymail-rail #mailboxlist .unreadcount {
    display: none !important;
  }

  /* --- toolbar-ul din panoul de previzualizare -------------
     Butoanele nu au clasa `button`, ci clasa acțiunii (a.reply,
     a.forward…), și stau în ul#toolbar-menu. De aia regulile mele
     din 1.5.36, scrise pe `a.button`, n-au prins nimic. */
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu > li {
    margin: 0 !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu a {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 19px !important;
    color: var(--am-muted) !important;
    cursor: pointer !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu a:hover {
    background: var(--am-hover) !important;
    color: var(--am-text) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu a:before {
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 17px !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu a .inner {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu .dropbutton a.dropdown,
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header > a.toolbar-menu-button,
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header > a.back-list-button {
    display: none !important;
  }
}

/* ============================================================
   44. TOOLBAR-UL DIN PREVIZUALIZARE
   Construit de arpymail-message.js, la fel ca la citirea
   mesajului. Setul Elastic rămâne în DOM, ascuns, pentru că
   Roundcube ține referințe la butoanele lui.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header #toolbar-menu,
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header > a.toolbar-menu-button,
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header > .header-title,
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .footer.content-frame-navigation {
    display: none !important;
  }

  body.task-mail:not(.action-show):not(.action-compose) #arpymail-msg-toolbar {
    padding: 0 4px !important;
  }
  /* Navigarea sus/jos rămâne; „închide" n-are sens în previzualizare. */
  body.task-mail:not(.action-show):not(.action-compose) #arpymail-msg-toolbar .am-close {
    display: none !important;
  }
  #arpymail-msg-toolbar.am-no-selection .am-msg-btn {
    opacity: .35 !important;
    pointer-events: none !important;
  }
}

/* Butoanele centrate: grupul de navigare iese din flux, ca grupul
   principal să fie centrat pe toată lățimea barei, nu pe restul rămas. */
@media screen and (min-width: 769px) {
  #arpymail-msg-toolbar {
    position: relative;
    justify-content: center;
  }
  #arpymail-msg-toolbar .am-msg-main {
    margin: 0 !important;
  }
  #arpymail-msg-toolbar .am-msg-nav {
    position: absolute;
    top: 50%;
    right: 4px;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%);
  }
}

/* ============================================================
   45. PREVIZUALIZARE — cadru lipit de toolbar, meniuri nedecupate
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Iframe-ul umple tot panoul, fără chenar sau margini. */
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .iframe-wrapper {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--am-surface) !important;
    overflow: hidden !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagecontframe {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: var(--am-surface) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #layout-content > .header {
    border-bottom: 1px solid var(--am-border) !important;
  }

  /* Headerele nu mai decupează meniurile deschise din ele. */
  body.task-mail #arpymail-list-header,
  body.task-mail #layout-content > .header,
  body.task-mail.action-show #layout-content > .header {
    overflow: visible !important;
  }

  /* Meniurile proprii sunt poziționate fix din JS. */
  #arpymail-list-header .am-more-menu,
  #arpymail-list-header .am-select-menu,
  #arpymail-msg-more {
    z-index: 1800 !important;
  }

}

/* ============================================================
   46. INTERIORUL CADRULUI DE PREVIZUALIZARE — minimal
   ------------------------------------------------------------
   Versiunea anterioară impunea height:100% și overflow:hidden pe
   mai multe niveluri din cadru și golea panoul. Aici atingem doar
   ce desenează cardul: margine, chenar, colțuri, umbră și
   max-width. Înălțimile și derularea rămân ale Elastic.

   Marcajul html.arpymail-framed vine din arpymail-ui.js, pentru
   că html.iframe nu e adăugată nicăieri de Elastic.
   ============================================================ */
html.arpymail-framed body.task-mail #layout-content,
html.arpymail-framed body.task-mail #message-header,
html.arpymail-framed body.task-mail #message-content,
html.arpymail-framed body.task-mail .content.frame-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  background: var(--am-surface) !important;
}
html.arpymail-framed body.task-mail #layout-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
html.arpymail-framed body.task-mail #layout {
  top: 0 !important;
  left: 0 !important;
  padding: 0 !important;
}
/* Elementele de shell nu au ce căuta într-un cadru. */
html.arpymail-framed #arpymail-chrome,
html.arpymail-framed #arpymail-tabs,
html.arpymail-framed #arpymail-rail,
html.arpymail-framed #arpymail-msg-toolbar,
html.arpymail-framed #arpymail-back,
html.arpymail-framed body.task-mail #layout-menu,
html.arpymail-framed body.task-mail #layout-content > .header {
  display: none !important;
}

/* Regula de card din secțiunea 42 se aplică și în cadrul de previzualizare,
   fiindcă acolo corpul nu are clasa action-show și `:not(.action-show)` trece.
   O excludem explicit; stripFrameCard() din JS face același lucru inline. */
@media screen and (min-width: 769px) {
  html.arpymail-framed body.task-mail #layout-content {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* ============================================================
   48. NUMAI ICONIȚE LUCIDE ÎN MENIURI + CADRUL ALINIAT
   ------------------------------------------------------------
   Elementele din meniuri foloseau caractere Unicode (☆ 🛇 🗑 ✕ 🖨),
   care se randează cu fontul emoji al sistemului — de aici
   aspectul „altfel" și impresia de îngroșat. Le înlocuim cu
   măști Lucide, care moștenesc currentColor.

   Regulile de antet erau scrise pe body.task-mail.action-show;
   în cadrul de previzualizare corpul NU are clasa aceea, deci nu
   se aplicau — de aia acolo avatarul stă deasupra numelui.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- iconițe de meniu, peste tot --- */
  body.task-mail #message-menu a.arpymail-sender-action:before,
  #arpymail-list-header .am-more-menu button:before,
  #arpymail-msg-more button:before {
    content: "" !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
  body.task-mail #message-menu a.am-star:before,
  #arpymail-list-header .am-more-menu .am-star:before,
  #arpymail-msg-more .am-star:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z' /%3E%3C/svg%3E"); }
  body.task-mail #message-menu a.am-block:before,
  #arpymail-list-header .am-more-menu .am-block:before,
  #arpymail-msg-more .am-block:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='M4.929 4.929 19.07 19.071' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='M4.929 4.929 19.07 19.071' /%3E%3C/svg%3E"); }
  body.task-mail #message-menu a.am-purge:before,
  #arpymail-list-header .am-more-menu .am-purge:before,
  #arpymail-msg-more .am-purge:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  body.task-mail #message-menu a.am-purge-all:before,
  #arpymail-list-header .am-more-menu .am-purge-all:before,
  #arpymail-msg-more .am-purge-all:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  body.task-mail #message-menu a.am-unsubscribe:before,
  #arpymail-list-header .am-more-menu .am-unsubscribe:before,
  #arpymail-msg-more .am-unsubscribe:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18' /%3E %3Cpath d='m6 6 12 12' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18' /%3E %3Cpath d='m6 6 12 12' /%3E%3C/svg%3E"); }
  body.task-mail #message-menu a.am-print:before,
  #arpymail-list-header .am-more-menu .am-print:before,
  #arpymail-msg-more .am-print:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2' /%3E %3Cpath d='M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6' /%3E %3Crect x='6' y='14' width='12' height='8' rx='1' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2' /%3E %3Cpath d='M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6' /%3E %3Crect x='6' y='14' width='12' height='8' rx='1' /%3E%3C/svg%3E"); }
  body.task-mail #message-menu a.am-source:before,
  #arpymail-list-header .am-more-menu .am-source:before,
  #arpymail-msg-more .am-source:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E %3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E %3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E"); }

  /* Textul meniurilor: greutate normală, nu îngroșat. */
  body.task-mail #message-menu a.arpymail-sender-action,
  #arpymail-list-header .am-more-menu button,
  #arpymail-msg-more button,
  body.task-mail .popupmenu ul.menu > li > a {
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
  }

  /* --- cadrul de previzualizare: același antet ca pagina întreagă --- */
  html.arpymail-framed body.task-mail .content.frame-content {
    padding: 1.3rem 1.4rem 1.6rem !important;
  }
  html.arpymail-framed body.task-mail h2.subject a.extwin {
    display: none !important;
  }
  html.arpymail-framed body.task-mail #message-header h2.subject {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin: 0 0 16px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }
  html.arpymail-framed body.task-mail .am-sender-sticky,
  html.arpymail-framed body.task-mail #message-header > .header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin: 0 -1.4rem 16px !important;
    padding: 10px 1.4rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  html.arpymail-framed body.task-mail .am-sender-sticky > .header-content,
  html.arpymail-framed body.task-mail #message-header .header-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  html.arpymail-framed body.task-mail .am-msg-avatar {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
  }
  /* Ascundem doar rândul de linkuri rămas în antet, NU și pe cel mutat
     în dropdown — altfel meniul apărea gol. */
  html.arpymail-framed body.task-mail .am-sender-sticky > .header-content > .header-links,
  html.arpymail-framed body.task-mail #message-header > .header > .header-content > .header-links {
    display: none !important;
  }
}

/* Fără „deschide în fereastră nouă" nicăieri: linkul deschidea o filă
   separată de browser, în afara skinului. */
body.task-mail h2.subject a.extwin,
body.task-mail #message-menu a.extwin,
body.task-mail #message-header a.extwin {
  display: none !important;
}

/* ============================================================
   49. MENIURI COMPACTE ȘI DROPDOWN DE DOSAR
   ============================================================ */
@media screen and (min-width: 769px) {

  /* Meniul „…" din toolbar-ul mesajului: aceleași cote ca cel din listă. */
  #arpymail-msg-more {
    min-width: 288px !important;
    padding: 6px !important;
  }
  #arpymail-msg-more button {
    min-height: 38px !important;
    height: 38px !important;
    gap: 12px !important;
    padding: 0 12px !important;
    line-height: 1.2 !important;
  }
  #arpymail-msg-more button:before,
  #arpymail-list-header .am-more-menu button:before {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }

  /* Dropdownul de la expeditor — poziționat fix din JS. */
  .am-meta-menu {
    z-index: 1850 !important;
    min-width: 212px !important;
  }
  .am-meta-menu .header-links {
    display: flex !important;
  }

  /* Dropdownul cu acțiuni pe dosar. */
  #arpymail-list-header .am-folder-menu {
    z-index: 1800;
    min-width: 254px;
    padding: 6px;
    border: 1px solid var(--am-border);
    border-radius: 12px;
    background: var(--am-surface);
    box-shadow: 0 12px 32px rgba(20, 20, 28, .16);
  }
  #arpymail-list-header .am-folder-menu[hidden] { display: none; }
  #arpymail-list-header .am-folder-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--am-text);
    font-family: var(--am-font);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }
  #arpymail-list-header .am-folder-menu button:hover { background: var(--am-hover); }
  #arpymail-list-header .am-folder-menu button:before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
}

@media screen and (min-width: 769px) {
  #arpymail-list-header .am-folder-menu .am-expunge:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); }
  #arpymail-list-header .am-folder-menu .am-purge:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  #arpymail-list-header .am-folder-menu .am-mark-all-read:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z' /%3E %3Cpath d='m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z' /%3E %3Cpath d='m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10' /%3E%3C/svg%3E"); }
  #arpymail-list-header .am-folder-menu .am-folders:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); }
}

/* ============================================================
   50. DIALOGURI (jQuery UI) — stil Yahoo, legat de temă
   „Listează opțiuni" și celelalte dialoguri veneau pe tema
   implicită jQuery UI: colțuri mici, titlu gri, butoane albastre
   fixe care nu urmau culoarea de accent.
   ============================================================ */
.ui-dialog {
  padding: 0 !important;
  border: 1px solid var(--am-border) !important;
  border-radius: 18px !important;
  background: var(--am-surface) !important;
  box-shadow: 0 22px 54px rgba(20, 20, 28, .22) !important;
  font-family: var(--am-font) !important;
  overflow: hidden !important;
}
.ui-widget-overlay {
  background: rgba(20, 20, 28, .38) !important;
  opacity: 1 !important;
}
.ui-dialog .ui-dialog-titlebar {
  padding: 18px 22px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--am-surface) !important;
  color: var(--am-text) !important;
}
.ui-dialog .ui-dialog-title {
  margin: 0 !important;
  color: var(--am-text) !important;
  font-family: var(--am-font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}
.ui-dialog .ui-dialog-titlebar-close {
  width: 34px !important;
  height: 34px !important;
  right: 14px !important;
  top: 16px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: transparent !important;
  color: var(--am-muted) !important;
  cursor: pointer !important;
}
.ui-dialog .ui-dialog-titlebar-close:hover {
  background: var(--am-hover) !important;
  color: var(--am-text) !important;
}
.ui-dialog .ui-dialog-content {
  padding: 4px 22px 18px !important;
  border: 0 !important;
  background: var(--am-surface) !important;
  color: var(--am-text) !important;
  font-family: var(--am-font) !important;
  font-size: 14px !important;
}
.ui-dialog .ui-dialog-content .form-group.row {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--am-border) !important;
}
.ui-dialog .ui-dialog-content .form-group.row:last-child { border-bottom: 0 !important; }
.ui-dialog .ui-dialog-content .col-form-label {
  flex: 0 0 180px !important;
  max-width: 180px !important;
  padding: 0 !important;
  color: var(--am-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-align: left !important;
}
.ui-dialog .ui-dialog-content .col-sm-8 {
  flex: 1 1 auto !important;
  max-width: none !important;
  padding: 0 !important;
}
.ui-dialog .ui-dialog-content select,
.ui-dialog .ui-dialog-content .custom-select,
.ui-dialog .ui-dialog-content .form-control {
  height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid var(--am-border) !important;
  border-radius: 10px !important;
  background-color: var(--am-surface) !important;
  color: var(--am-text) !important;
  font-family: var(--am-font) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
.ui-dialog .ui-dialog-content select:focus,
.ui-dialog .ui-dialog-content .form-control:focus {
  border-color: var(--am-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--am-accent-rgb), .16) !important;
}
.ui-dialog .ui-dialog-buttonpane {
  margin: 0 !important;
  padding: 14px 22px 18px !important;
  border: 0 !important;
  border-top: 1px solid var(--am-border) !important;
  background: var(--am-surface) !important;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  float: none !important;
}
.ui-dialog .ui-dialog-buttonpane button,
.ui-dialog .ui-dialog-buttonpane .ui-button {
  min-width: 110px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 1px solid var(--am-border) !important;
  border-radius: 20px !important;
  background: var(--am-surface) !important;
  color: var(--am-text) !important;
  font-family: var(--am-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.ui-dialog .ui-dialog-buttonpane button:hover { background: var(--am-hover) !important; }
.ui-dialog .ui-dialog-buttonpane button.mainaction,
.ui-dialog .ui-dialog-buttonpane button.btn-primary,
.ui-dialog .ui-dialog-buttonpane .ui-button.mainaction {
  border-color: transparent !important;
  background: var(--am-accent) !important;
  color: #fff !important;
}
.ui-dialog .ui-dialog-buttonpane button.mainaction:hover { filter: brightness(1.08) !important; }
/* Iconițele bifă/x de pe butoane nu se potrivesc cu restul. */
.ui-dialog .ui-dialog-buttonpane button:before { display: none !important; }
.ui-dialog .ui-resizable-handle { display: none !important; }

/* ============================================================
   51. DIALOG — un singur card
   #listoptions-menu are clasa `popupmenu`, iar regulile din
   secțiunea 19 îi dau chenar, colțuri și umbră. Înăuntrul unui
   dialog asta desenează un card în card. Îl neutralizăm și
   strângem dialogul.
   ============================================================ */
.ui-dialog .popupmenu,
.ui-dialog #listoptions-menu,
.ui-dialog .propform {
  position: static !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ui-dialog { min-width: 0 !important; }
.ui-dialog .ui-dialog-titlebar { padding: 16px 20px 8px !important; }
.ui-dialog .ui-dialog-title { font-size: 17px !important; }
.ui-dialog .ui-dialog-content { padding: 2px 20px 14px !important; }
.ui-dialog .ui-dialog-buttonpane { padding: 12px 20px 14px !important; }

/* Rândurile: etichetă la stânga, control la dreapta. */
.ui-dialog .ui-dialog-content .form-group.row,
.ui-dialog #listoptions-menu .form-group.row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 8px 0 !important;
}
.ui-dialog .ui-dialog-content .form-group.row > label,
.ui-dialog #listoptions-menu .form-group.row > label,
.ui-dialog .ui-dialog-content .col-form-label {
  flex: 0 0 160px !important;
  width: 160px !important;
  max-width: 160px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--am-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-align: left !important;
}
.ui-dialog .ui-dialog-content .form-group.row > div,
.ui-dialog #listoptions-menu .form-group.row > .col-sm-8 {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}
.ui-dialog .ui-dialog-content select { height: 36px !important; }

/* Butoanele aliniate și de aceeași înălțime. */
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  align-items: center !important;
}
.ui-dialog .ui-dialog-buttonpane button,
.ui-dialog .ui-dialog-buttonpane .ui-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 104px !important;
  height: 38px !important;
  line-height: 1 !important;
}

/* Mai mult aer sub butoanele dialogului. */
.ui-dialog .ui-dialog-buttonpane {
  padding: 16px 20px 22px !important;
}

/* ============================================================
   52. SETĂRI — iconițe, comutatoare, radio, temă
   Totul scoped pe body.task-settings; inboxul nu e atins.
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- iconițele din listele de secțiuni --------------------
     Elastic le dă `float: left` și lățime în em, ceea ce le scoate
     din alinierea flex a rândului. */
  body.task-settings .listing li > a:before,
  body.task-settings .listing tr > td:before,
  body.task-settings #layout-sidebar .listing a:before,
  body.task-settings #layout-list .listing a:before {
    float: none !important;
    display: block !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    line-height: 22px !important;
    font-size: 17px !important;
    text-align: center !important;
  }

  /* --- comutatoarele ---------------------------------------
     Bootstrap desenează pista la stânga etichetei, cu offset
     NEGATIV. Când eticheta e goală — cum e la „Dată formatată" —
     pista ajunge în afara rândului și dispare. Trecem pe offset
     pozitiv: pista la left:0, textul împins la dreapta. */
  body.task-settings .custom-control.custom-switch {
    position: relative !important;
    display: inline-block !important;
    min-width: 40px !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding-left: 0 !important;
  }
  body.task-settings .custom-switch .custom-control-label {
    display: inline-block !important;
    min-height: 22px !important;
    padding-left: 48px !important;
    line-height: 22px !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
    cursor: pointer !important;
  }
  body.task-settings .custom-switch .custom-control-label::before {
    left: 0 !important;
    top: 0 !important;
    width: 38px !important;
    height: 22px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background-color: #cdcbd4 !important;
    transition: background-color .15s ease !important;
  }
  body.task-settings .custom-switch .custom-control-label::after {
    left: 2px !important;
    top: 2px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 9px !important;
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(20, 20, 28, .28) !important;
    transition: transform .15s ease !important;
  }
  body.task-settings .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--am-accent) !important;
  }
  body.task-settings .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(16px) !important;
  }

  /* --- butoane radio ---------------------------------------- */
  body.task-settings input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    border: 2px solid #adaab4 !important;
    border-radius: 50% !important;
    background: var(--am-surface) !important;
    cursor: pointer !important;
    transition: border-color .12s ease !important;
  }
  body.task-settings input[type="radio"]:hover { border-color: var(--am-accent) !important; }
  body.task-settings input[type="radio"]:checked {
    border-color: var(--am-accent) !important;
    border-width: 6px !important;
  }
  body.task-settings input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(var(--am-accent-rgb), .18) !important;
    outline: none !important;
  }

  /* --- Aspect Roundcube: rândurile mai strânse -------------- */
  body.task-settings .arpymail-appearance .form-group.row,
  body.task-settings #arpymail-appearance .form-group.row {
    padding: 6px 0 !important;
  }
  body.task-settings .arpymail-palette {
    gap: 10px !important;
    padding: 0 !important;
  }
  body.task-settings .arpymail-palette label,
  body.task-settings .arpymail-palette > * {
    margin: 0 !important;
  }
}

/* ============================================================
   53. SETĂRI — iconițe Lucide în loc de fontul Elastic
   Tiparul din elastic/styles.min.css:
     .listing.iconized li.<sectiune>>a:before   { content:"\fXXX" }
     .listing.iconized tr.<sectiune>>td.section:before { content:"\fXXX" }
   Le înlocuim cu măști Lucide, pe aceleași clase.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-settings .popover .listing li > a:before,
  body.task-settings .select-menu .listing li > a:before {
    background-color: transparent !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  body.task-settings .listing.iconized li.preferences > a:before,
  body.task-settings .listing.iconized li.folders > a:before,
  body.task-settings .listing.iconized li.identities > a:before,
  body.task-settings .listing.iconized li.responses > a:before,
  body.task-settings .listing.iconized li.filter > a:before,
  body.task-settings .listing.iconized li.password > a:before,
  body.task-settings .listing.iconized li.twofactorauth > a:before,
  body.task-settings .listing.iconized li.userinfo > a:before,
  body.task-settings .listing.iconized li.forward > a:before,
  body.task-settings .listing.iconized li.vacation > a:before,
  body.task-settings .listing.iconized tr.general > td.section:before,
  body.task-settings .listing.iconized tr.mailbox > td.section:before,
  body.task-settings .listing.iconized tr.mailview > td.section:before,
  body.task-settings .listing.iconized tr.compose > td.section:before,
  body.task-settings .listing.iconized tr.addressbook > td.section:before,
  body.task-settings .listing.iconized tr.folders > td.section:before,
  body.task-settings .listing.iconized tr.server > td.section:before,
  body.task-settings .listing.iconized tr.encryption > td.section:before,
  body.task-settings .listing.iconized tr.calendar > td.section:before,
  body.task-settings .listing.iconized tr.chat > td.section:before {
    content: "" !important;
    display: block !important;
    float: none !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
  body.task-settings .listing.iconized li.preferences > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3' /%3E %3Cpath d='M12 19H3' /%3E %3Cpath d='M14 3v4' /%3E %3Cpath d='M16 17v4' /%3E %3Cpath d='M21 12h-9' /%3E %3Cpath d='M21 19h-5' /%3E %3Cpath d='M21 5h-7' /%3E %3Cpath d='M8 10v4' /%3E %3Cpath d='M8 12H3' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3' /%3E %3Cpath d='M12 19H3' /%3E %3Cpath d='M14 3v4' /%3E %3Cpath d='M16 17v4' /%3E %3Cpath d='M21 12h-9' /%3E %3Cpath d='M21 19h-5' /%3E %3Cpath d='M21 5h-7' /%3E %3Cpath d='M8 10v4' /%3E %3Cpath d='M8 12H3' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.folders > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.identities > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10h2'/%3E%3Cpath d='M16 14h2'/%3E%3Cpath d='M6.17 15a3 3 0 0 1 5.66 0'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10h2'/%3E%3Cpath d='M16 14h2'/%3E%3Cpath d='M6.17 15a3 3 0 0 1 5.66 0'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.responses > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.filter > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h20' /%3E %3Cpath d='M6 12h12' /%3E %3Cpath d='M9 19h6' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h20' /%3E %3Cpath d='M6 12h12' /%3E %3Cpath d='M9 19h6' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.password > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5' fill='currentColor'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5' fill='currentColor'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.twofactorauth > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.userinfo > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 2v2' /%3E %3Cpath d='M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2' /%3E %3Cpath d='M8 2v2' /%3E %3Ccircle cx='12' cy='10' r='3' /%3E %3Crect x='3' y='3' width='18' height='18' rx='2' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 2v2' /%3E %3Cpath d='M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2' /%3E %3Cpath d='M8 2v2' /%3E %3Ccircle cx='12' cy='10' r='3' /%3E %3Crect x='3' y='3' width='18' height='18' rx='2' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized li.forward > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 17 5-5-5-5' /%3E %3Cpath d='M4 18v-2a4 4 0 0 1 4-4h12' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 17 5-5-5-5' /%3E %3Cpath d='M4 18v-2a4 4 0 0 1 4-4h12' /%3E%3C/svg%3E"); }
  /* 1.5.65: Răspuns automat (managesieve_vacation) — reply.svg din lucide.zip */
  body.task-settings .listing.iconized li.vacation > a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4' /%3E %3Cpath d='m9 17-5-5 5-5' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4' /%3E %3Cpath d='m9 17-5-5 5-5' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.general > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cline x1='8' x2='16' y1='21' y2='21'/%3E%3Cline x1='12' x2='12' y1='17' y2='21'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cline x1='8' x2='16' y1='21' y2='21'/%3E%3Cline x1='12' x2='12' y1='17' y2='21'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.mailbox > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12' /%3E %3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12' /%3E %3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.mailview > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z' /%3E %3Cpath d='m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z' /%3E %3Cpath d='m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.compose > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.addressbook > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.folders > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.server > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='8' x='2' y='2' rx='2'/%3E%3Crect width='20' height='8' x='2' y='14' rx='2'/%3E%3Cline x1='6' x2='6.01' y1='6' y2='6'/%3E%3Cline x1='6' x2='6.01' y1='18' y2='18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='8' x='2' y='2' rx='2'/%3E%3Crect width='20' height='8' x='2' y='14' rx='2'/%3E%3Cline x1='6' x2='6.01' y1='6' y2='6'/%3E%3Cline x1='6' x2='6.01' y1='18' y2='18'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.encryption > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.calendar > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v3' /%3E %3Cpath d='M16 2v3' /%3E %3Crect x='3' y='3' width='18' height='18' rx='2' /%3E %3Cpath d='M3 9h18' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v3' /%3E %3Cpath d='M16 2v3' /%3E %3Crect x='3' y='3' width='18' height='18' rx='2' /%3E %3Cpath d='M3 9h18' /%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr.chat > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
  body.task-settings .listing.iconized tr:not(.general):not(.mailbox):not(.mailview):not(.compose):not(.addressbook):not(.folders):not(.server):not(.encryption):not(.calendar):not(.chat) > td.section:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915' /%3E %3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915' /%3E %3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E"); }
}

/* ============================================================
   54. TEMĂ, COMUTATOR ȘI PALETĂ — corecturi
   ============================================================ */
@media screen and (min-width: 769px) {

  /* --- comutatorul tăiat -----------------------------------
     Eticheta goală lăsa containerul mai îngust decât pista.
     Îi dăm dimensiunea pistei și oprim decuparea. */
  body.task-settings .custom-control.custom-switch {
    width: auto !important;
    min-width: 40px !important;
    height: 24px !important;
    overflow: visible !important;
  }
  body.task-settings .custom-switch .custom-control-label {
    display: inline-block !important;
    min-width: 40px !important;
    height: 22px !important;
    overflow: visible !important;
  }
  body.task-settings .custom-switch .custom-control-label::before,
  body.task-settings .custom-switch .custom-control-label::after {
    box-sizing: border-box !important;
  }

  /* --- paleta de culori nu mai intră peste rândul de sus --- */
  body.task-settings .arpymail-palette {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 14px 16px !important;
    padding: 6px 0 !important;
  }
  body.task-settings .arpymail-palette > * {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  body.task-settings .arpymail-palette button,
  body.task-settings .arpymail-palette .arpymail-swatch {
    display: block !important;
  }
  /* Rândul care le conține trebuie să le lase loc pe verticală. */
  body.task-settings .propform .form-group.row {
    align-items: flex-start !important;
    padding: 12px 0 !important;
  }
  body.task-settings .propform .col-form-label {
    padding-top: 8px !important;
  }
}

/* ============================================================
   55. ALEGEREA TEMEI — lăsată Elastic
   Elastic o randează ca tabel: .skinselection e `table-row`, iar
   spans-urile din ea `table-cell`. Aspectul nativ e deja cel
   dorit — radio, miniatură, apoi nume/autor/licență în dreapta.
   Încercarea mea de a-l trece pe flex a stivuit totul, așa că nu
   mai ating structura; doar culori și colțuri.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-settings .skinselection .skinthumbnail {
    border: 1px solid var(--am-border) !important;
    border-radius: 8px !important;
  }
  body.task-settings .skinselection .skinname {
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 14px !important;
  }
  body.task-settings .skinselection .skinauthor,
  body.task-settings .skinselection .skinlicense {
    color: var(--am-muted) !important;
    font-family: var(--am-font) !important;
    font-size: 12px !important;
  }
  body.task-settings .skinselection .skinlicense a,
  body.task-settings .skinselection a {
    color: var(--am-accent) !important;
  }
}

/* ============================================================
   56. POPOVERUL DE SELECT — bifa aliniată, fără pătrate negre
   ------------------------------------------------------------
   Regula de iconițe din secțiunea 53 folosea
     background-color: currentColor + mask-image
   pe `.listing.iconized li > a:before`. Opțiunile din popoverul
   de select cad sub același selector, dar n-au nicio mască, deci
   rămâneau cu fundalul plin — pătratele negre din captură.
   ============================================================ */
.popover.select-menu .listing li > a,
.popover .listing li > a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.popover.select-menu .listing li > a:before,
.popover .listing li > a:before {
  content: "" !important;
  float: none !important;
  display: block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  background: none !important;
  background-color: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  line-height: 18px !important;
  font-size: 15px !important;
  text-align: center !important;
}
/* Bifa apare doar pe opțiunea curentă, dar spațiul e rezervat mereu,
   ca textul să fie aliniat pe toate rândurile. */
.popover.select-menu .listing li > a.selected:before,
.popover .listing li > a.selected:before,
.popover .listing li.selected > a:before {
  content: "\2713" !important;
  color: var(--am-accent) !important;
  font-weight: 700 !important;
}

/* ============================================================
   57. POPOVERUL DE SELECT ÎN SETĂRI — specificitate suficientă
   ------------------------------------------------------------
   Regula de excludere din 1.5.54 avea exact aceeași specificitate
   ca cea care desenează iconițele:
     body.task-settings .listing.iconized li > a:before   (0,3,4)
     body.task-settings .popover .listing li > a:before   (0,3,4)
   La egalitate câștigă ultima din fișier, iar a mea era prima.
   Aici urc la (0,4,4) și o pun la final.
   ============================================================ */
body.task-settings .popover.select-menu .listing li > a:before,
body.task-settings .popover.select-menu .listing li > a.selected:before,
body.task-settings .popover .listing.iconized li > a:before,
body.task-settings .popover .listing li > a:before {
  content: "" !important;
  float: none !important;
  display: block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  background: none !important;
  background-color: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  line-height: 18px !important;
  font-size: 15px !important;
  text-align: center !important;
}
body.task-settings .popover.select-menu .listing li > a.selected:before,
body.task-settings .popover .listing li.selected > a:before,
body.task-settings .popover .listing li > a.selected:before {
  content: "\2713" !important;
  color: var(--am-accent) !important;
  font-weight: 700 !important;
}
body.task-settings .popover.select-menu .listing li > a,
body.task-settings .popover .listing li > a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ============================================================
   58. PALETA DE CULORI — restaurare
   ------------------------------------------------------------
   arpymail.css L1182 desenează fiecare opțiune ca
     label.arpymail-swatch  (inline-flex, coloană)
       > input[type=radio]  (ascuns)
       > span.arpymail-swatch-dot   (cercul colorat)
       > span.arpymail-swatch-name
   Regula mea de radio din 1.5.51 a făcut inputul ascuns vizibil,
   iar `display: block` din 1.5.52 a rupt coloana. Aici le anulez
   pe amândouă, doar în interiorul paletei.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-settings .arpymail-palette input[type="radio"],
  body.task-settings .arpymail-swatch input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  body.task-settings .arpymail-swatch {
    position: relative !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 52px !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: var(--am-muted) !important;
    font-family: var(--am-font) !important;
    font-size: 11px !important;
  }
  body.task-settings .arpymail-swatch-dot {
    display: block !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--swatch) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08) !important;
  }
  body.task-settings .arpymail-swatch input:checked + .arpymail-swatch-dot {
    box-shadow: 0 0 0 3px var(--am-surface), 0 0 0 5px var(--swatch) !important;
  }
  body.task-settings .arpymail-swatch input:checked ~ .arpymail-swatch-name {
    color: var(--am-text) !important;
    font-weight: 700 !important;
  }
  body.task-settings .arpymail-palette {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 6px 0 !important;
  }
  /* Aceleași reguli și pentru celelalte grupuri de butoane din
     „Aspect Roundcube", ca să nu le atingă stilul de radio. */
  body.task-settings .arpymail-segmented input[type="radio"],
  body.task-settings .arpymail-choice input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: none !important;
  }
}

/* Inelul de selecție e desenat cu box-shadow și iese 5px în afara
   cercului. Fără spațiu rezervat, se taie sus/jos și se suprapune
   peste nume. Îi facem loc. */
@media screen and (min-width: 769px) {
  body.task-settings .arpymail-palette {
    gap: 18px 22px !important;
    padding: 12px 0 8px !important;
    overflow: visible !important;
  }
  body.task-settings .arpymail-swatch {
    gap: 12px !important;
    padding: 6px 0 2px !important;
    min-width: 56px !important;
    overflow: visible !important;
  }
  body.task-settings .arpymail-swatch-dot {
    margin: 0 auto !important;
  }
  body.task-settings .arpymail-swatch-name {
    display: block !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

/* Paletă compactă: doar cercurile, fără etichete.
   Numele rămâne în DOM, decupat vizual, ca să fie citit în
   continuare de cititoarele de ecran. */
@media screen and (min-width: 769px) {
  body.task-settings .arpymail-palette {
    gap: 10px !important;
    padding: 10px 0 8px !important;
  }
  body.task-settings .arpymail-swatch {
    gap: 0 !important;
    min-width: 0 !important;
    padding: 5px !important;
  }
  body.task-settings .arpymail-swatch-name {
    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;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

/* ============================================================
   59. SETĂRI — antet, toolbar și manager de dosare (1.5.62)
   ------------------------------------------------------------
   Înlocuiește cele DOUĂ secțiuni 59 din 1.5.60/1.5.61 (a doua fusese
   adăugată ca să o corecteze pe prima, dar prima rămăsese activă)
   și blocul de toolbar din secțiunea 41.

   Cauze, verificate în elastic/ui.js și styles.min.css:
   a) „⋮" din antet era a.back-list-button — „Înapoi" pentru mobil.
      Elastic îl ascunde pe desktop cu jQuery .hide(), adică stil
      INLINE (screen_resize_small_none), plus CSS la >=1201px.
      `display: inline-flex !important` din 41 bătea stilul inline,
      iar prima 59 îi dădea o mască implicită cu trei puncte.
   b) Toolbar-ul: Elastic dă `.menu.toolbar li { height:58px }` și
      `a { float:left }`; antetul are 52px, deci butoanele stăteau
      în vârful li-ului, tăiate. <ul> are și clasa .listing, deci îl
      prindeau regulile de listă (min-height 44px, hover pe li).
   c) Lista de dosare e <ul class="treelist listing">, NU tabel.
      Elastic pune comutatorul absolut în dreapta rândului
      (ul.listing li .custom-switch). Secțiunea 52 îl face
      `position:relative; inline-block`, iar <a> e flex (bloc), deci
      comutatorul cădea pe linia următoare.
   d) `#layout-list .listing tbody tr { display:flex; padding:0 14px }`
      din 1.5.61 nu prindea lista de dosare (nu e tabel), dar prindea
      #sections-table, #identities-table, #responses-table și listele
      de filtre — de aici marginile din jurul rândului selectat.
      Regula a fost scoasă, nu înlocuită.

   Măști Lucide: doar clasele enumerate. Nicio regulă generică.
   `back` = arrow-left.svg, `checked` = check.svg (verificate).
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-settings .toolbar a.create:before,
  body.task-settings #layout-content > .header a.create:before,
  body.task-settings #layout-list > .header a.create:before,
  body.task-settings .toolbar a.add:before,
  body.task-settings #layout-content > .header a.add:before,
  body.task-settings #layout-list > .header a.add:before,
  body.task-settings .toolbar a.delete:before,
  body.task-settings #layout-content > .header a.delete:before,
  body.task-settings #layout-list > .header a.delete:before,
  body.task-settings .toolbar a.remove:before,
  body.task-settings #layout-content > .header a.remove:before,
  body.task-settings #layout-list > .header a.remove:before,
  body.task-settings .toolbar a.actions:before,
  body.task-settings #layout-content > .header a.actions:before,
  body.task-settings #layout-list > .header a.actions:before,
  body.task-settings .toolbar a.options:before,
  body.task-settings #layout-content > .header a.options:before,
  body.task-settings #layout-list > .header a.options:before,
  body.task-settings .toolbar a.save:before,
  body.task-settings #layout-content > .header a.save:before,
  body.task-settings #layout-list > .header a.save:before,
  body.task-settings .toolbar a.search:before,
  body.task-settings #layout-content > .header a.search:before,
  body.task-settings #layout-list > .header a.search:before,
  body.task-settings .toolbar a.import:before,
  body.task-settings #layout-content > .header a.import:before,
  body.task-settings #layout-list > .header a.import:before,
  body.task-settings .toolbar a.export:before,
  body.task-settings #layout-content > .header a.export:before,
  body.task-settings #layout-list > .header a.export:before,
  body.task-settings .toolbar a.purge:before,
  body.task-settings #layout-content > .header a.purge:before,
  body.task-settings #layout-list > .header a.purge:before,
  body.task-settings .toolbar a.expunge:before,
  body.task-settings #layout-content > .header a.expunge:before,
  body.task-settings #layout-list > .header a.expunge:before,
  body.task-settings .toolbar a.folders:before,
  body.task-settings #layout-content > .header a.folders:before,
  body.task-settings #layout-list > .header a.folders:before,
  body.task-settings .toolbar a.back:before,
  body.task-settings #layout-content > .header a.back:before,
  body.task-settings #layout-list > .header a.back:before,
  body.task-settings .toolbar a.refresh:before,
  body.task-settings #layout-content > .header a.refresh:before,
  body.task-settings #layout-list > .header a.refresh:before,
  body.task-settings .toolbar a.filterlink:before,
  body.task-settings #layout-content > .header a.filterlink:before,
  body.task-settings #layout-list > .header a.filterlink:before,
  body.task-settings .toolbar a.up:before,
  body.task-settings #layout-content > .header a.up:before,
  body.task-settings #layout-list > .header a.up:before,
  body.task-settings .toolbar a.down:before,
  body.task-settings #layout-content > .header a.down:before,
  body.task-settings #layout-list > .header a.down:before,
  body.task-settings .toolbar a.close:before,
  body.task-settings #layout-content > .header a.close:before,
  body.task-settings #layout-list > .header a.close:before,
  body.task-settings .toolbar a.cancel:before,
  body.task-settings #layout-content > .header a.cancel:before,
  body.task-settings #layout-list > .header a.cancel:before,
  body.task-settings .toolbar a.checked:before,
  body.task-settings #layout-content > .header a.checked:before,
  body.task-settings #layout-list > .header a.checked:before {
    content: "" !important;
    display: block !important;
    float: none !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
  body.task-settings .toolbar a.create:before,
  body.task-settings #layout-content > .header a.create:before,
  body.task-settings #layout-list > .header a.create:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.add:before,
  body.task-settings #layout-content > .header a.add:before,
  body.task-settings #layout-list > .header a.add:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.delete:before,
  body.task-settings #layout-content > .header a.delete:before,
  body.task-settings #layout-list > .header a.delete:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.remove:before,
  body.task-settings #layout-content > .header a.remove:before,
  body.task-settings #layout-list > .header a.remove:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.actions:before,
  body.task-settings #layout-content > .header a.actions:before,
  body.task-settings #layout-list > .header a.actions:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='12' cy='5' r='1'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='12' cy='5' r='1'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.options:before,
  body.task-settings #layout-content > .header a.options:before,
  body.task-settings #layout-list > .header a.options:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3' /%3E %3Cpath d='M12 19H3' /%3E %3Cpath d='M14 3v4' /%3E %3Cpath d='M16 17v4' /%3E %3Cpath d='M21 12h-9' /%3E %3Cpath d='M21 19h-5' /%3E %3Cpath d='M21 5h-7' /%3E %3Cpath d='M8 10v4' /%3E %3Cpath d='M8 12H3' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3' /%3E %3Cpath d='M12 19H3' /%3E %3Cpath d='M14 3v4' /%3E %3Cpath d='M16 17v4' /%3E %3Cpath d='M21 12h-9' /%3E %3Cpath d='M21 19h-5' /%3E %3Cpath d='M21 5h-7' /%3E %3Cpath d='M8 10v4' /%3E %3Cpath d='M8 12H3' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.save:before,
  body.task-settings #layout-content > .header a.save:before,
  body.task-settings #layout-list > .header a.save:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7'/%3E%3Cpath d='M7 3v4a1 1 0 0 0 1 1h7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7'/%3E%3Cpath d='M7 3v4a1 1 0 0 0 1 1h7'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.search:before,
  body.task-settings #layout-content > .header a.search:before,
  body.task-settings #layout-list > .header a.search:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34' /%3E %3Ccircle cx='11' cy='11' r='8' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34' /%3E %3Ccircle cx='11' cy='11' r='8' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.import:before,
  body.task-settings #layout-content > .header a.import:before,
  body.task-settings #layout-list > .header a.import:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' x2='12' y1='3' y2='15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' x2='12' y1='3' y2='15'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.export:before,
  body.task-settings #layout-content > .header a.export:before,
  body.task-settings #layout-list > .header a.export:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.purge:before,
  body.task-settings #layout-content > .header a.purge:before,
  body.task-settings #layout-list > .header a.purge:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.expunge:before,
  body.task-settings #layout-content > .header a.expunge:before,
  body.task-settings #layout-list > .header a.expunge:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1' /%3E %3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' /%3E %3Cpath d='M10 12h4' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.folders:before,
  body.task-settings #layout-content > .header a.folders:before,
  body.task-settings #layout-list > .header a.folders:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.back:before,
  body.task-settings #layout-content > .header a.back:before,
  body.task-settings #layout-list > .header a.back:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7' /%3E %3Cpath d='M19 12H5' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7' /%3E %3Cpath d='M19 12H5' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.refresh:before,
  body.task-settings #layout-content > .header a.refresh:before,
  body.task-settings #layout-list > .header a.refresh:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8' /%3E %3Cpath d='M21 3v5h-5' /%3E %3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16' /%3E %3Cpath d='M8 16H3v5' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8' /%3E %3Cpath d='M21 3v5h-5' /%3E %3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16' /%3E %3Cpath d='M8 16H3v5' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.filterlink:before,
  body.task-settings #layout-content > .header a.filterlink:before,
  body.task-settings #layout-list > .header a.filterlink:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h20' /%3E %3Cpath d='M6 12h12' /%3E %3Cpath d='M9 19h6' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h20' /%3E %3Cpath d='M6 12h12' /%3E %3Cpath d='M9 19h6' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.up:before,
  body.task-settings #layout-content > .header a.up:before,
  body.task-settings #layout-list > .header a.up:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7' /%3E %3Cpath d='M12 19V5' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7' /%3E %3Cpath d='M12 19V5' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.down:before,
  body.task-settings #layout-content > .header a.down:before,
  body.task-settings #layout-list > .header a.down:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14' /%3E %3Cpath d='m19 12-7 7-7-7' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14' /%3E %3Cpath d='m19 12-7 7-7-7' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.close:before,
  body.task-settings #layout-content > .header a.close:before,
  body.task-settings #layout-list > .header a.close:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18' /%3E %3Cpath d='m6 6 12 12' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18' /%3E %3Cpath d='m6 6 12 12' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.cancel:before,
  body.task-settings #layout-content > .header a.cancel:before,
  body.task-settings #layout-list > .header a.cancel:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18' /%3E %3Cpath d='m6 6 12 12' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18' /%3E %3Cpath d='m6 6 12 12' /%3E%3C/svg%3E"); }
  body.task-settings .toolbar a.checked:before,
  body.task-settings #layout-content > .header a.checked:before,
  body.task-settings #layout-list > .header a.checked:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5' /%3E%3C/svg%3E"); }

  /* --- a) butoanele pentru ecrane mici ----------------------
     Pe desktop cele trei coloane sunt vizibile; „Înapoi" și meniul
     de toolbar nu au ce face. a.back-sidebar-button rămâne neatins:
     între 769 și 1200px Elastic ascunde bara laterală și butonul
     acela chiar e drumul înapoi (chevron nativ). */
  body.task-settings[class] #layout-content > .header > a.back-list-button,
  body.task-settings[class] #layout-content > .header > a.toolbar-menu-button,
  body.task-settings[class] #layout-list > .header > a.toolbar-menu-button {
    display: none !important;
  }
  /* a.toolbar-list-button NU se ascunde aici (corectură 1.5.63).
     Între 769 și 1200px Elastic pune bara listei în popupmenu și
     butonul acesta e singura cale spre ea; la >=1201px îl ascunde
     Elastic singur. */

  /* Chevronul din coloana din mijloc (769–1200px). Elastic îi dă
     :before cu line-height 58px într-un <a> de ~19px, deci glifa
     cădea sub mijlocul antetului. Nu atingem `display`: la >=1201px
     Elastic îl ascunde singur și trebuie să rămână așa. */
  body.task-settings[class] #layout-list > .header > a.back-sidebar-button,
  body.task-settings[class] #layout-list > .header > a.toolbar-list-button {
    align-self: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 4px 0 -8px !important;
    padding: 0 !important;
    border-radius: 17px !important;
    line-height: 34px !important;
    text-align: center !important;
  }
  body.task-settings[class] #layout-list > .header > a.back-sidebar-button:hover,
  body.task-settings[class] #layout-list > .header > a.toolbar-list-button:hover {
    background: var(--am-hover) !important;
  }
  body.task-settings[class] #layout-list > .header > a.back-sidebar-button:before,
  body.task-settings[class] #layout-list > .header > a.toolbar-list-button:before {
    float: none !important;
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    line-height: 34px !important;
    font-size: 15px !important;
    text-align: center !important;
  }

  /* --- b) toolbar-ul din antete ------------------------------
     Aceleași reguli pentru coloana din dreapta (ul#toolbar-menu) și
     pentru cea din mijloc (ul#toolbar-list-menu, de ex. „Acțiuni" la
     Filtre). `:not(.popupmenu)`: între 769 și 1200px Elastic face din
     bara listei un popupmenu ascuns; nu-l forțăm vizibil. */
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    gap: 2px !important;
    height: 100% !important;
    min-width: 0 !important;
    margin: 0 0 0 -10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: normal !important;
    list-style: none !important;
    overflow: visible !important;
  }
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    list-style: none !important;
  }
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    float: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px 0 10px !important;
    border: 0 !important;
    border-radius: 17px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--am-text) !important;
    font-family: var(--am-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color .12s ease !important;
  }
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a:not(.disabled):hover,
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a:not(.disabled):focus-visible {
    background: var(--am-hover) !important;
    outline: none !important;
  }
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a.disabled {
    opacity: .4 !important;
    cursor: default !important;
  }
  /* Doar așezarea iconiței. Fără width/background aici: lățimea și
     masca vin din regula de mai sus, iar un background-color fără
     mask-image ar da pătrat plin. */
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a:before {
    float: none !important;
    flex: 0 0 auto !important;
    min-width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    line-height: 18px !important;
    font-size: 16px !important;
    text-align: center !important;
  }
  body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a .inner {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    clip: auto !important;
    overflow: visible !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  /* Clonele. toolbar_init() copiază fiecare buton din bara LISTEI și
     în bara din dreapta, cu clasele .hidden-big .hidden-large, pentru
     ecranele unde lista nu se vede. `display: inline-flex !important`
     de mai sus le scotea din ascundere — de aici al doilea „Acțiuni"
     din coloana 3. Clona are propriul popover legat de ACELAȘI meniu
     ca originalul, iar popups_close() îl închidea imediat. */
  html.layout-large body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a.hidden-large,
  html.layout-large body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a.hidden-big,
  html.layout-normal body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li > a.hidden-big {
    display: none !important;
  }
  html.layout-large body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li:has(> a.hidden-large),
  html.layout-large body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li:has(> a.hidden-big),
  html.layout-normal body.task-settings[class] #layout > div > .header > ul.menu.toolbar:not(.popupmenu) > li:has(> a.hidden-big) {
    display: none !important;
  }

  /* --- c) manager de dosare: comutatorul pe rândul lui ------
     Înapoi la modelul Elastic: rândul (<a>) are înălțime fixă și
     loc rezervat în dreapta, comutatorul stă absolut peste el.
     Fiecare <li> e position:relative (ul.listing li), deci și
     subdosarele își poziționează comutatorul pe propriul rând. */
  /* <a> trece pe bloc, nu flex: textul dintr-un flex e element
     anonim care nu se poate tăia cu „…" și curge peste padding,
     deci pe sub comutator. Iconița rămâne în linie, centrată. */
  body.task-settings[class] #subscription-table li > a {
    display: block !important;
    box-sizing: border-box !important;
    height: 46px !important;
    min-height: 46px !important;
    padding-right: 68px !important;
    line-height: 46px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.task-settings[class] #subscription-table li > a:before {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: -3px 12px 0 0 !important;
  }
  body.task-settings[class] #subscription-table li .custom-control.custom-switch {
    position: absolute !important;
    top: 0 !important;
    right: 16px !important;
    left: auto !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.task-settings[class] #subscription-table li .custom-switch .custom-control-label {
    display: block !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 22px !important;
    min-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Elastic: ul.listing li .custom-switch .custom-control-label:before
     { margin-top: .4rem } — cobora pista cu ~6px sub text. */
  body.task-settings[class] #subscription-table li .custom-switch .custom-control-label::before,
  body.task-settings[class] #subscription-table li .custom-switch .custom-control-label::after {
    margin: 0 !important;
  }
  body.task-settings[class] #subscription-table li .custom-switch .custom-control-input:disabled ~ .custom-control-label {
    opacity: .45 !important;
    cursor: default !important;
  }

  /* Subdosarele: `padding: 0 16px !important` din secțiunea 33
     anula indentarea Elastic (ul.treelist li ul li a). O refacem,
     cu săgeata de expandare în spațiul din stânga iconiței. */
  body.task-settings[class] #subscription-table li li > a { padding-left: 40px !important; }
  body.task-settings[class] #subscription-table li li li > a { padding-left: 64px !important; }
  body.task-settings[class] #subscription-table li li li li > a { padding-left: 88px !important; }
  body.task-settings[class] #subscription-table li div.treetoggle {
    top: 0 !important;
    left: 0 !important;
    width: 16px !important;
    height: 46px !important;
    line-height: 46px !important;
    text-align: center !important;
    z-index: 1 !important;
  }
  body.task-settings[class] #subscription-table li li div.treetoggle { left: 24px !important; }
  body.task-settings[class] #subscription-table li li li div.treetoggle { left: 48px !important; }
  body.task-settings[class] #subscription-table li li li li div.treetoggle { left: 72px !important; }
}

/* ============================================================
   60. SETĂRI › FILTRE — „Aplică pe existente" (1.5.64)
   ------------------------------------------------------------
   Butonul e adăugat de scripts/arpymail-sieve.js în bara din
   dreapta și primește pastila din secțiunea 59. Iconița:
   list-filter.svg din lucide.zip. Dialogul e un dialog jQuery UI
   obișnuit (rcmail.show_popup_dialog), deja tematizat; aici doar
   conținutul lui.
   ============================================================ */
@media screen and (min-width: 769px) {
  body.task-settings #layout-content > .header a.arpymail-sieve-run:before {
    content: "" !important;
    display: block !important;
    float: none !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    background-color: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h20' /%3E %3Cpath d='M6 12h12' /%3E %3Cpath d='M9 19h6' /%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h20' /%3E %3Cpath d='M6 12h12' /%3E %3Cpath d='M9 19h6' /%3E%3C/svg%3E") center / contain no-repeat;
  }

  .arpymail-sieve-dialog {
    font-family: var(--am-font);
    font-size: 14px;
    color: var(--am-text);
  }
  .arpymail-sieve-dialog .am-sd-intro {
    margin: 0 0 16px;
    color: var(--am-muted);
    line-height: 1.5;
  }
  .arpymail-sieve-dialog .am-sd-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
  }
  .arpymail-sieve-dialog .am-sd-field > span {
    flex: 0 0 auto;
    font-weight: 600;
  }
  .arpymail-sieve-dialog .am-sd-field select {
    flex: 1 1 auto;
    max-width: 340px;
  }
  .arpymail-sieve-dialog .am-sd-rules {
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--am-border);
    border-radius: 12px;
  }
  .arpymail-sieve-dialog .am-sd-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--am-border);
    font-weight: 400;
    cursor: pointer;
  }
  .arpymail-sieve-dialog .am-sd-rule:first-child {
    border-top: 0;
  }
  .arpymail-sieve-dialog .am-sd-rule:not(.is-off):hover {
    background: var(--am-hover);
  }
  .arpymail-sieve-dialog .am-sd-rule.is-off {
    cursor: default;
    opacity: .6;
  }
  .arpymail-sieve-dialog .am-sd-rule input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--am-accent);
  }
  .arpymail-sieve-dialog .am-sd-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .arpymail-sieve-dialog .am-sd-name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .arpymail-sieve-dialog .am-sd-what,
  .arpymail-sieve-dialog .am-sd-count {
    color: var(--am-muted);
    font-size: 12.5px;
  }
  .arpymail-sieve-dialog .am-sd-count {
    flex: 0 0 auto;
    max-width: 200px;
    text-align: right;
  }
  .arpymail-sieve-dialog .am-sd-count.is-hit {
    color: var(--am-accent);
    font-weight: 600;
  }
  .arpymail-sieve-dialog .am-sd-count.is-error {
    color: #c62828;
  }
  .arpymail-sieve-dialog .am-sd-empty {
    margin: 0;
    padding: 14px;
    color: var(--am-muted);
  }
  .arpymail-sieve-dialog .am-sd-summary {
    min-height: 20px;
    margin-top: 14px;
    font-weight: 600;
  }
}

/* ============================================================
   61. SETĂRI — Răspuns automat și Redirecționare (1.5.66)
   ------------------------------------------------------------
   Bara laterală: scripts/arpymail-sieve.js mută li.vacation și
   li.forward imediat după li.responses și le pune .am-subitem.
   Formularele (managesieve, rcube_sieve_vacation::vacation_form):
   form#form > fieldset > legend + table.propform; Elastic face din
   fiecare <tr> un .form-group.row cu td.col-sm-4 + td.col-sm-8.
   1.5.67: selectorul nu mai cere id="form" — în Roundcube 1.7
   formularul are alt id, iar tot blocul de formular din 1.5.66
   nu se aplica (de aici bifa albastră și câmpurile late).
   Scriptul adaugă comutatorul de stare (.am-switch, select-ul
   original rămâne ascuns în formular) și „Setări avansate"
   pliabile (.am-collapsible). Clasa body vine de la Elastic:
   action-<acțiune cu „.” înlocuit de „-”>.
   ============================================================ */
@media screen and (min-width: 769px) {
  /* --- bara laterală: subelemente ale lui Răspunsuri -------- */
  body.task-settings #settings-menu li.am-subitem {
    position: relative;
  }
  body.task-settings #settings-menu li.am-subitem:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 27px;
    z-index: 1;
    width: 1px;
    background: var(--am-border);
    pointer-events: none;
  }
  body.task-settings[class] #settings-menu li.am-subitem > a {
    min-height: 40px !important;
    padding-left: 48px !important;
    font-size: 13.5px !important;
  }
  body.task-settings[class] #settings-menu li.am-subitem > a:before {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
  }
  body.task-settings[class] #settings-menu li.am-has-sub.am-parent-active > a {
    color: var(--am-accent) !important;
    font-weight: 600 !important;
  }

  /* --- antet: titlul paginii, ascuns de Elastic pe desktop --- */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content > .header > .header-title {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--am-text) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* --- formularul ca o coloană de carduri ------------------- */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content .formcontent {
    padding: 24px 32px 40px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form {
    max-width: 820px !important;
    margin: 0 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset {
    min-width: 0;
    margin: 0 0 20px !important;
    padding: 0 24px 8px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 16px !important;
    background: var(--am-surface) !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset > legend {
    float: left;
    width: 100%;
    margin: 0 !important;
    padding: 18px 0 8px !important;
    border: 0 !important;
    color: var(--am-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset > legend + * {
    clear: both;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form table.propform {
    width: 100% !important;
    margin: 0 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form tr.form-group {
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    border-top: 1px solid var(--am-border) !important;
    border-bottom: 0 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form tbody > tr.form-group:first-child {
    border-top: 0 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form tr.form-group > td {
    padding: 0 !important;
    border: 0 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form tr.form-group > td:first-child {
    flex: 0 0 210px !important;
    max-width: 210px !important;
    padding: 10px 16px 0 0 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form tr.form-group > td:first-child label {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--am-muted) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form tr.form-group > td:last-child {
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: 540px !important;
  }

  /* câmpuri */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form textarea#vacation_reason {
    min-height: 180px !important;
    resize: vertical;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.datetime {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.datetime > input.datepicker {
    flex: 0 0 180px !important;
    width: 180px !important;
    max-width: 180px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.datetime > input:not(.datepicker) {
    flex: 0 0 110px !important;
    width: 110px !important;
    max-width: 110px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form span.input-group:has(> #vacation_interval) {
    max-width: 240px;
    flex-wrap: nowrap;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.input-group-combo {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.input-group-combo > select {
    flex: 0 0 230px !important;
    width: 230px !important;
    max-width: 230px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.input-group-combo > .input-group {
    flex: 1 1 220px !important;
    width: auto !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td:last-child input[type="button"] {
    height: 34px !important;
    margin: 8px 0 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 17px !important;
    background: transparent !important;
    color: var(--am-text) !important;
    font-size: 13px !important;
    cursor: pointer;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td:last-child input[type="button"]:hover {
    background: var(--am-hover) !important;
  }

  /* --- comutatorul de stare --------------------------------- */
  body.task-settings select.am-switch-source {
    display: none !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    color: var(--am-text);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch-track {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: var(--am-border);
    transition: background-color .15s ease;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch-track:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: transform .15s ease;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch.is-on .am-switch-track {
    background: var(--am-accent);
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch.is-on .am-switch-track:after {
    transform: translateX(16px);
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch > input:focus-visible + .am-switch-track {
    outline: 2px solid var(--am-accent);
    outline-offset: 2px;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .am-switch-text {
    font-weight: 600;
  }

  /* --- „Setări avansate" pliabile --------------------------- */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset.am-collapsible > legend {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset.am-collapsible > legend:after {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6' /%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6' /%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .15s ease;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset.am-collapsible.is-collapsed > legend:after {
    transform: rotate(-90deg);
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset.am-collapsible.is-collapsed {
    padding-bottom: 6px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form fieldset.am-collapsible.is-collapsed > table {
    display: none !important;
  }

  /* --- dată și oră native (1.5.67) --------------------------
     arpymail-sieve.js trece câmpurile pe type="date"/"time" doar
     dacă formatul serverului e AAAA-LL-ZZ și HH:MM, adică exact
     valoarea pe care o trimit câmpurile native. Selectorul nativ
     se deschide lângă câmpul lui; cel jQuery UI nu mai e legat. */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.datetime > input[type="date"] {
    flex: 0 0 170px !important;
    width: 170px !important;
    max-width: 170px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form td.datetime > input[type="time"] {
    flex: 0 0 120px !important;
    width: 120px !important;
    max-width: 120px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form input[type="date"],
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form input[type="time"] {
    color-scheme: light;
  }
  html.dark-mode body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form input[type="date"],
  html.dark-mode body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form input[type="time"] {
    color-scheme: dark;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form input[type="date"]::-webkit-calendar-picker-indicator,
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .6;
  }

  /* --- câmp + „zile" / coș = un singur câmp (1.5.68) ---------
     Bootstrap pune .input-group-append lângă câmp, dar regula
     generală din Setări (border-radius 10px, max-width 420px pe
     orice .form-control) îi dădea câmpului colțuri rotunde și pe
     dreapta, iar adaosul rămânea o cutie gri separată. Aici:
     câmpul pierde marginea dreaptă, adaosul o continuă, cu o
     linie subțire între ele; focusul se vede pe tot grupul.
     Lista „Adresele mele" are regulile ei, mai jos. */
  /* Fără `display`: Bootstrap îl face deja flex, iar managesieve ascunde
     #action_target_span cu style="display:none" — un !important l-ar arăta mereu. */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form div.input-group,
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form span.input-group {
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 420px !important;
    border-radius: 10px;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form span.input-group:has(> #vacation_interval) {
    max-width: 200px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group:has(> .input-group-append) > input.form-control,
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group:has(> .input-group-append) > input[type="text"] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    border-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group > .input-group-append {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group > .input-group-append > .input-group-text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 44px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 0 10px 10px 0 !important;
    background: var(--am-surface) !important;
    color: var(--am-muted) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }
  /* focus: marginea accent pe tot grupul, linia dintre ele rămâne discretă */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--am-accent-rgb), .16) !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group:focus-within > input,
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group:focus-within > .input-group-append > .input-group-text {
    border-top-color: var(--am-accent) !important;
    border-bottom-color: var(--am-accent) !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group:focus-within > input {
    border-left-color: var(--am-accent) !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group:focus-within > .input-group-append > .input-group-text {
    border-right-color: var(--am-accent) !important;
  }
  /* coșul: iconița Lucide a barei (aceeași mască ca a.delete din secțiunea 59) */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group-append > a.input-group-text {
    cursor: pointer;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group-append > a.input-group-text .inner {
    display: none !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group-append > a.input-group-text:is(.delete, .reset):before {
    content: "" !important;
    display: block !important;
    float: none !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    background-color: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .input-group-append > a.input-group-text:is(.delete, .reset):hover {
    color: #c62828 !important;
  }

  /* --- „Adresele mele": UN singur câmp cu o listă înăuntru (1.5.69)
     Elastic (ui.js smart_field_init) construiește:
       div.multi-input > div.content > div.input-group (un rând pe adresă)
         > input.form-control + span.input-group-append > a.icon.reset
     Chenarul e pe .content, nu pe rânduri; rândurile sunt despărțite
     doar de o linie. Regula generală din Setări punea chenar și pe
     fiecare câmp, de aici „câmp în câmp". .content primește .focused
     cât timp un rând are focus. */
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input {
    max-width: 420px !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input > .content {
    max-width: 420px !important;
    overflow: hidden auto !important;
    border: 1px solid var(--am-border) !important;
    border-radius: 10px !important;
    background: var(--am-surface) !important;
    box-shadow: none !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input > .content.focused {
    border-color: var(--am-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--am-accent-rgb), .16) !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input > .content > .input-group {
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input > .content > .input-group + .input-group {
    border-top: 1px solid var(--am-border) !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input > .content > .input-group:focus-within {
    box-shadow: none !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input > .content > .input-group > input.form-control {
    height: 38px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.task-settings[class]:is(.action-plugin-managesieve-vacation, .action-plugin-managesieve-forward) #layout-content form .multi-input > .content > .input-group > .input-group-append > .input-group-text {
    border: 0 !important;
    border-left: 1px solid var(--am-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
}

/* ============================================================
   62. AJUTOR (pluginul help) — ca Setările (1.5.70)
   ------------------------------------------------------------
   templates/includes/layout.html pune pe body clasele
   „task-settings am-help” când task-ul e help, la parsare, ca să
   nu clipească. Așa coloana din stânga și cardul de conținut iau
   exact suprafețele Setărilor; aici rămân doar diferențele.
   Structura (plugins/help/skins/elastic/templates/help.html):
     #layout-sidebar > .scroller > ul.listing.iconized
       > li > a.help | a.about | a.license   (clasa e pe <a>, nu pe <li>)
     #layout-content > .header > .header-title + iframe#helpcontentframe
   Cadrul încarcă: „Despre” = settings/about (template-ul Elastic
   about.html), „Licență” = help/license (#help-license), „Ajutor” =
   documentația online, de pe alt domeniu: interiorul ei nu se poate
   stiliza.
   Iconițe: file-text.svg din lucide.zip; circle-help și info sunt
   transcrise, NU sunt în zip — de verificat.
   ============================================================ */
@media screen and (min-width: 769px) {
  /* --- meniul din stânga ------------------------------------- */
  body.am-help #layout-sidebar .listing.iconized li > a:is(.help, .about, .license):before {
    content: "" !important;
    display: block !important;
    float: none !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
  body.am-help #layout-sidebar .listing.iconized li > a.help:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3' /%3E%3Cpath d='M12 17h.01' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3' /%3E%3Cpath d='M12 17h.01' /%3E%3C/svg%3E"); }
  body.am-help #layout-sidebar .listing.iconized li > a.about:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='M12 16v-4' /%3E%3Cpath d='M12 8h.01' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='M12 16v-4' /%3E%3Cpath d='M12 8h.01' /%3E%3C/svg%3E"); }
  body.am-help #layout-sidebar .listing.iconized li > a.license:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E%3Cpath d='M10 9H8' /%3E%3Cpath d='M16 13H8' /%3E%3Cpath d='M16 17H8' /%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E%3Cpath d='M10 9H8' /%3E%3Cpath d='M16 13H8' /%3E%3Cpath d='M16 17H8' /%3E%3C/svg%3E"); }

  /* --- antetul conținutului: titlul paginii deschise ---------- */
  body.am-help[class] #layout-content > .header > .header-title {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--am-text) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.am-help[class] #layout-content > .header > a.task-menu-button {
    display: none !important;
  }
}

/* --- în cadru: „Despre” și „Licență” (fără media query: cadrul are
       lățimea coloanei, nu a ecranului) -------------------------- */
body.task-settings[class].action-about .frame-content,
body.am-help[class] #help-license {
  box-sizing: border-box;
  max-width: 880px;
  margin: 0 !important;
  padding: 28px 32px 40px !important;
  color: var(--am-text);
  font-family: var(--am-font);
  font-size: 14px;
  line-height: 1.6;
}

/* Despre: antetul aplicației */
body.task-settings[class].action-about .frame-content h2.sysname {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--am-text) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
body.task-settings[class].action-about .frame-content p.copyright,
body.task-settings[class].action-about .frame-content p.license {
  margin: 0 0 4px !important;
  color: var(--am-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
body.task-settings[class].action-about .frame-content a,
body.am-help[class] #help-license a {
  color: var(--am-accent) !important;
  text-decoration: none !important;
}
body.task-settings[class].action-about .frame-content a:hover,
body.am-help[class] #help-license a:hover {
  text-decoration: underline !important;
}

/* Despre: secțiunile „Temă interfață” și „Module” ca un card fiecare */
body.task-settings[class].action-about .frame-content .readtext {
  margin: 24px 0 0 !important;
  padding: 0 !important;
}
body.task-settings[class].action-about .frame-content .readtext > h3 {
  margin: 24px 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--am-text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
body.task-settings[class].action-about .frame-content .readtext > h3:first-child {
  margin-top: 0 !important;
}
body.task-settings[class].action-about .frame-content .readtext > p,
body.task-settings[class].action-about .frame-content .readtext > div:not(.table-responsive) {
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid var(--am-border) !important;
  border-radius: 14px !important;
  background: var(--am-surface) !important;
  color: var(--am-muted) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}
body.task-settings[class].action-about .frame-content .readtext > p > span:first-child,
body.task-settings[class].action-about .frame-content .readtext > p .name {
  color: var(--am-text) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

/* Despre: tabelul de module */
body.task-settings[class].action-about .frame-content table.records-table {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--am-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  background: var(--am-surface) !important;
  table-layout: auto !important;
}
body.task-settings[class].action-about .frame-content table.records-table th,
body.task-settings[class].action-about .frame-content table.records-table td {
  padding: 10px 16px !important;
  border: 0 !important;
  border-top: 1px solid var(--am-border) !important;
  background: transparent !important;
  color: var(--am-text) !important;
  font-size: 13.5px !important;
  text-align: left !important;
  vertical-align: middle !important;
}
body.task-settings[class].action-about .frame-content table.records-table thead th {
  border-top: 0 !important;
  background: var(--am-hover) !important;
  color: var(--am-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
}
body.task-settings[class].action-about .frame-content table.records-table tbody tr:hover td {
  background: var(--am-hover) !important;
}
body.task-settings[class].action-about .frame-content table.records-table td.name,
body.task-settings[class].action-about .frame-content table.records-table td:first-child {
  font-weight: 600 !important;
}
body.task-settings[class].action-about .frame-content table.records-table td.version,
body.task-settings[class].action-about .frame-content table.records-table td:nth-child(2) {
  color: var(--am-muted) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.task-settings[class].action-about .frame-content table.records-table td.license,
body.task-settings[class].action-about .frame-content table.records-table td:nth-child(3) {
  color: var(--am-muted) !important;
}

/* Licență: text lung, citibil */
body.am-help[class] #help-license {
  max-width: 820px;
}
body.am-help[class] #help-license h2 {
  margin: 0 0 4px !important;
  color: var(--am-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-align: left !important;
}
body.am-help[class] #help-license h2 + p {
  margin-top: 0 !important;
  color: var(--am-muted) !important;
  text-align: left !important;
}
body.am-help[class] #help-license h3 {
  margin: 28px 0 8px !important;
  color: var(--am-text) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
}
body.am-help[class] #help-license p,
body.am-help[class] #help-license li {
  margin: 0 0 12px !important;
  color: var(--am-text) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
body.am-help[class] #help-license ol,
body.am-help[class] #help-license ul {
  margin: 0 0 12px !important;
  padding-left: 22px !important;
}
