/* Webmail Pozitivizion : charte de la maquette webmail_ui sur Elastic */

@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/poppins-800.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Material Symbols Rounded";
  font-weight: 300 500;
  font-display: block;
  src: url("fonts/material-symbols-rounded.woff2") format("woff2");
}

:root {
  --pz-ink: #1d1424;
  --pz-ink-2: #2c2133;
  --pz-ink-3: #4a3d54;
  --pz-muted: #6b5e75;
  --pz-muted-2: #8a7d94;
  --pz-placeholder: #a094aa;
  --pz-night: #1b0f24;
  --pz-night-text: #cbbcd6;
  --pz-night-muted: #9d8aab;
  --pz-night-section: #7d6a8c;
  --pz-violet: #9314b8;
  --pz-violet-hover: #7d0fa0;
  --pz-violet-dark: #63187d;
  --pz-magenta: #b916d8;
  --pz-magenta-hover: #a312c0;
  --pz-orchid: #e59cf5;
  --pz-bg: #f4f1f7;
  --pz-bg-login: #f7f4f9;
  --pz-wash: #f1ebf5;
  --pz-wash-2: #f4e6f9;
  --pz-hover: #efe7f4;
  --pz-line: #ebe4f0;
  --pz-line-2: #e2d9e8;
  --pz-line-3: #efe9f3;
  --pz-star: #c2701a;
  --pz-star-off: #b3a6bd;
  --pz-sans: "DM Sans", Helvetica, Arial, sans-serif;
  --pz-display: "Poppins", "DM Sans", sans-serif;
  --pz-icons: "Material Symbols Rounded";
}

/* Socle */

html, body, input, select, textarea, button, .btn, .popover, .ui-dialog, .tooltip {
  font-family: var(--pz-sans) !important;
}

body {
  color: var(--pz-ink);
  background: var(--pz-bg);
  -webkit-font-smoothing: antialiased;
}

a, a:visited { color: var(--pz-violet); }
a:hover { color: var(--pz-violet-dark); }
::selection { background: var(--pz-orchid); color: var(--pz-night); }
input::placeholder, textarea::placeholder { color: var(--pz-placeholder) !important; }

.pz-icon, .pz-icon-before::before {
  font-family: var(--pz-icons) !important;
  font-weight: 400;
  font-style: normal;
  font-size: 21px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  overflow: hidden;
}

.btn-primary, .btn-primary:not(:disabled):not(.disabled):active,
.btn.mainaction, .formbuttons .btn.mainaction {
  background: var(--pz-violet) !important;
  border-color: var(--pz-violet) !important;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 600;
}
.btn-primary:hover, .btn.mainaction:hover { background: var(--pz-violet-hover) !important; border-color: var(--pz-violet-hover) !important; }
.btn-secondary { border-radius: 12px; }

.form-control:focus, .custom-select:focus, input:focus, textarea:focus {
  border-color: var(--pz-violet) !important;
  box-shadow: 0 0 0 4px rgba(147, 20, 184, 0.12) !important;
}
.custom-control-input:checked ~ .custom-control-label::before,
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--pz-violet) !important;
  border-color: var(--pz-violet) !important;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--pz-violet); }

.popover, .popupmenu.popover-body, .ui-dialog {
  border-radius: 16px !important;
  border-color: var(--pz-line) !important;
  box-shadow: 0 18px 50px rgba(27, 15, 36, 0.18) !important;
}
.popover .listing li a.active:hover, .popupmenu .listing li a.active:hover,
.listing li.selected, .listing li.focused { background-color: var(--pz-wash) !important; }

.ui-dialog .ui-dialog-titlebar { font-family: var(--pz-display) !important; }

/* Messages d'état : bandeau sombre centré en bas, comme la maquette */

#messagestack {
  top: auto !important;
  bottom: 28px;
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: auto !important;
  max-width: calc(100vw - 32px);
}
#messagestack > div {
  background: var(--pz-night) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(27, 15, 36, 0.3) !important;
  font-size: 14px;
  font-weight: 500;
}
#messagestack > div.confirmation::before, #messagestack > div.notice::before { color: var(--pz-orchid) !important; }

/* Éléments d'Elastic sans équivalent dans la charte */

a.theme, a.about, #layout-menu .special-buttons a.about, .floating-action-buttons { display: none !important; }

/* Colonne des tâches d'Elastic (tablette, contacts, paramètres) aux couleurs du rail */

#layout-menu { background: var(--pz-night) !important; }
#layout-menu #taskmenu a {
  color: var(--pz-night-text) !important;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
#layout-menu #taskmenu a:hover { background: rgba(255, 255, 255, 0.06) !important; color: #fff !important; }
#layout-menu #taskmenu a.selected { background: rgba(229, 156, 245, 0.16) !important; color: #fff !important; }
#layout-menu #taskmenu a.compose { color: var(--pz-orchid) !important; }
#layout-menu #taskmenu a.logout { color: var(--pz-night-muted) !important; }
#layout-menu #taskmenu a::before {
  font-family: var(--pz-icons) !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  font-feature-settings: "liga";
}
#layout-menu #taskmenu a.compose::before { content: "edit_square"; }
#layout-menu #taskmenu a.mail::before { content: "inbox"; }
#layout-menu #taskmenu a.contacts::before { content: "contacts"; }
#layout-menu #taskmenu a.settings::before { content: "settings"; }
#layout-menu #taskmenu a.logout::before { content: "logout"; }
#layout-menu .popover-header #logo { max-width: 44px; }

/* ========== Connexion ========== */

body.task-login, body.task-logout { background: var(--pz-bg-login); }
body.task-login #layout, body.task-logout #layout { display: flex; min-height: 100vh; }

.pz-visual {
  flex: 1.1;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  background: var(--pz-night);
  color: #f3ecf7;
}
.pz-visual-logo { position: relative; width: 240px; height: auto; display: block; }
.pz-visual-main { position: relative; max-width: 560px; }
.pz-eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pz-orchid);
}
.pz-hero {
  margin: 0;
  font-family: var(--pz-display);
  font-weight: 700;
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pz-lead { margin: 22px 0 0; max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--pz-night-text); }
.pz-visual-foot { position: relative; display: flex; flex-wrap: wrap; gap: 24px; margin: 0; font-size: 13px; color: var(--pz-night-muted); }

.pz-squares { position: absolute; right: 56px; top: 64px; width: 200px; height: 200px; }
.pz-squares i { position: absolute; display: block; }
.pz-squares i:nth-child(1) { left: 10px; top: 46px; width: 46px; height: 46px; background: var(--pz-magenta); }
.pz-squares i:nth-child(2) { left: 104px; top: 0; width: 40px; height: 40px; background: var(--pz-violet); }
.pz-squares i:nth-child(3) { left: 132px; top: 72px; width: 30px; height: 30px; background: #bb1edb; }
.pz-squares i:nth-child(4) { left: 80px; top: 114px; width: 38px; height: 38px; background: #780c99; }
.pz-squares i:nth-child(5) { left: 176px; top: 150px; width: 22px; height: 22px; background: var(--pz-magenta); }
.pz-squares i:nth-child(6) { left: 184px; top: 22px; width: 10px; height: 10px; background: var(--pz-orchid); }

body.task-login #layout-content, body.task-logout #layout-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: transparent;
  border: 0;
}
body.task-login #layout-content > #logo, body.task-logout #layout-content > #logo { display: none; }

#login-form {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.task-login #layout-content, #login-form { text-align: left; }
#login-form table, #login-form tbody, #login-form tr { display: block; width: 100%; }
#login-form tbody { display: flex; flex-direction: column; gap: 18px; }
#login-form tr.form-group { margin: 0 !important; padding: 0; }
#login-form td.input { display: flex !important; width: 100%; padding: 0 !important; }
#login-form td.input .form-control { width: 100% !important; flex: 1 1 auto; }
#login-form td.title { display: none !important; }
#login-form .input-group-prepend { display: none; }
#login-form .form-control {
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--pz-line-2) !important;
  border-radius: 14px !important;
  background: #fff;
  font-size: 15px;
  color: var(--pz-ink);
}
#login-form .formbuttons { margin: 6px 0 0; }
#rcmloginsubmit {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px !important;
  font-size: 16px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0;
}
#rcmloginsubmit .pz-icon { font-size: 20px; }
#login-footer { display: none; }

.pz-login-intro { display: flex; flex-direction: column; }
.pz-login-logo, .pz-login-tagline { display: none; }
.pz-login-title { margin: 0; font-family: var(--pz-display); font-weight: 600; font-size: 30px; letter-spacing: -0.01em; color: var(--pz-ink); }
.pz-login-subtitle { margin: 6px 0 0; font-size: 15px; color: var(--pz-muted); }
.pz-field-label {
  display: flex;
  justify-content: space-between;
  margin: 0 0 -10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--pz-ink-3);
}
.pz-field-label label { margin: 0; font-weight: 600; }
.pz-field-label a { font-weight: 500; }
.pz-login-help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--pz-muted-2); }

@media (max-width: 819px) {
  .pz-visual { display: none; }
  .pz-login-logo { display: block; width: 200px; height: auto; margin-bottom: 14px; }
  .pz-login-tagline {
    display: block;
    margin: 0 0 24px;
    font-family: var(--pz-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    color: var(--pz-violet-dark);
  }
}

/* ========== Application : grand écran ========== */

body.task-mail #layout, body.task-addressbook #layout, body.task-settings #layout { background: var(--pz-bg); }

@media (min-width: 1201px) {
  html.pz-task-mail:not(.pz-action-compose) #layout-menu { display: none !important; }
}

/* Rail (barre latérale des dossiers) */

html.pz-task-mail:not(.pz-action-compose) #layout-sidebar {
  flex: none !important;
  width: 256px !important;
  min-width: 256px !important;
  max-width: 256px !important;
  border: 0 !important;
  background: var(--pz-night) !important;
  color: var(--pz-night-text);
  padding: 18px 14px 12px;
  gap: 6px;
}
html.pz-task-mail:not(.pz-action-compose) #layout-sidebar > .header {
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  position: absolute;
  right: 8px;
  top: 24px;
  z-index: 2;
}
html.pz-task-mail:not(.pz-action-compose) #layout-sidebar > .header .header-title { display: none; }
html.pz-task-mail:not(.pz-action-compose) #layout-sidebar > .header a.button { color: var(--pz-night-muted); }
html.pz-task-mail:not(.pz-action-compose) #layout-sidebar > .header a.button:hover { color: #fff; }

.pz-rail-top { display: flex; flex-direction: column; gap: 12px; flex: none; }
.pz-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px 0; }
.pz-brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.pz-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.pz-brand-name { font-family: var(--pz-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: #fff; }
.pz-brand-sub { margin-top: 3px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pz-orchid); }

.pz-compose {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--pz-magenta);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pz-compose:hover { background: var(--pz-magenta-hover); }
.pz-compose .pz-icon { font-size: 22px; }

html.pz-task-mail #folderlist-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  margin-top: 8px;
  padding: 0;
  background: transparent;
}

html.pz-task-mail #mailboxlist, .pz-shortcuts, .pz-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html.pz-task-mail #mailboxlist li { border: 0 !important; background: transparent !important; }
html.pz-task-mail #mailboxlist li > a, .pz-shortcuts a, .pz-labels a {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px !important;
  border-radius: 12px;
  color: var(--pz-night-text) !important;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none !important;
}
html.pz-task-mail #mailboxlist li > a:hover, .pz-shortcuts a:hover, .pz-labels a:hover { background: rgba(255, 255, 255, 0.05); color: #fff !important; }
html.pz-task-mail #mailboxlist:not(.pz-filtered) li.selected > a,
.pz-shortcuts li.selected a, .pz-labels li.selected a {
  background: rgba(229, 156, 245, 0.16) !important;
  color: #fff !important;
  font-weight: 600;
}
html.pz-task-mail #mailboxlist li.droptarget > a { background: rgba(229, 156, 245, 0.28) !important; }

html.pz-task-mail #mailboxlist li > a::before, .pz-shortcuts .pz-icon {
  width: 21px !important;
  margin: 0 !important;
  flex: none;
  font-family: var(--pz-icons) !important;
  font-weight: 400 !important;
  font-size: 21px !important;
  line-height: 1;
  font-feature-settings: "liga";
  content: "folder" !important;
}
html.pz-task-mail #mailboxlist li.inbox > a::before { content: "inbox" !important; }
html.pz-task-mail #mailboxlist li.drafts > a::before { content: "draft" !important; }
html.pz-task-mail #mailboxlist li.sent > a::before { content: "send" !important; }
html.pz-task-mail #mailboxlist li.junk > a::before { content: "report" !important; }
html.pz-task-mail #mailboxlist li.trash > a::before { content: "delete" !important; }
html.pz-task-mail #mailboxlist li.archive > a::before { content: "archive" !important; }

html.pz-task-mail #mailboxlist .unreadcount {
  margin-left: auto;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  min-width: 0;
}
html.pz-task-mail #mailboxlist li.inbox .unreadcount { background: var(--pz-magenta) !important; }
html.pz-task-mail #mailboxlist div.treetoggle { color: var(--pz-night-muted); }

.pz-section-title { padding: 18px 12px 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pz-night-section); }
.pz-shortcut-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-label-dot { width: 10px; height: 10px; flex: none; margin: 0 5.5px; display: inline-block; }

html.pz-task-mail:not(.pz-action-compose) #layout-sidebar > .footer {
  flex: none;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
}
html.pz-task-mail:not(.pz-action-compose) #layout-sidebar #quotadisplay { display: none !important; }

.pz-storage { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.pz-storage.hidden { display: none; }
.pz-storage-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--pz-night-text); }
.pz-storage-bar { height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.pz-storage-bar span { display: block; height: 100%; background: var(--pz-orchid); }
.pz-storage-bar span.warning { background: #ff8a65; }

.pz-tools { display: flex; gap: 6px; }
.pz-tool {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pz-night-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.pz-tool:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.pz-tool .pz-icon { font-size: 17px; }

.pz-account { display: flex; align-items: center; gap: 10px; padding: 6px; }
.pz-account-email { flex: 1; min-width: 0; font-size: 12.5px; color: var(--pz-night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-rail-button {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pz-night-muted);
  cursor: pointer;
}
.pz-rail-button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pz-rail-button .pz-icon { font-size: 19px; }

.pz-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.pz-avatar-me { width: 40px; height: 40px; background: var(--pz-orchid) !important; color: var(--pz-night); }
.pz-avatar-large { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }

/* Liste des messages */

html.pz-task-mail #layout-list {
  flex: none !important;
  width: 410px !important;
  min-width: 340px !important;
  max-width: none !important;
  border: 0 !important;
  background: var(--pz-bg) !important;
}
@media (max-width: 1200px) {
  html.pz-task-mail #layout-list { width: 340px !important; }
}

html.pz-task-mail #messagelist-header {
  border: 0 !important;
  background: transparent !important;
  min-height: 0;
}
@media (min-width: 1201px) {
  html.pz-task-mail #messagelist-header { position: absolute; right: 14px; top: 80px; z-index: 3; width: auto; padding: 0; height: auto; }
  html.pz-task-mail #messagelist-header .header-title { display: none; }
  html.pz-task-mail .pz-folder-title, html.pz-task-mail .pz-folder-meta { padding-right: 120px; }
}
html.pz-task-mail #messagelist-header .toolbar { gap: 2px; }
html.pz-task-mail #messagelist-header .toolbar a, html.pz-task-mail #messagelist-header a.button.refresh {
  width: 34px;
  min-width: 0;
  height: 34px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--pz-muted-2);
}
html.pz-task-mail #messagelist-header .toolbar a:not(.disabled):hover, html.pz-task-mail #messagelist-header a.button:hover { background: var(--pz-hover); color: var(--pz-violet); }
html.pz-task-mail #messagelist-header .toolbar a::before, html.pz-task-mail #messagelist-header a.button::before { margin: 0 !important; font-size: 15px; }
html.pz-task-mail #messagelist-header .toolbar a .inner, html.pz-task-mail #messagelist-header a.button .inner {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
html.pz-task-mail #messagelist-header .toolbar a.threads { display: none; }

/* Menu de survol de Roundcube 1.7 : l'étoile de la ligne et la barre d'outils le remplacent. */
html.pz-task-mail #messagelist-content .listing-hover-menu { display: none !important; }

html.pz-task-mail #layout-list .searchbar {
  margin: 18px 18px 0;
  height: 46px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--pz-line) !important;
  border-radius: 14px;
  background: #fff;
}
html.pz-task-mail #layout-list .searchbar input { font-size: 14.5px; color: var(--pz-ink); background: transparent; }
html.pz-task-mail #layout-list .searchbar a.button::before, html.pz-task-mail #layout-list .searchbar .button::before { color: var(--pz-muted-2); }

.pz-list-head { display: flex; flex-direction: column; padding: 14px 18px 10px; }
.pz-folder-title { margin: 0; font-family: var(--pz-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; color: var(--pz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-folder-meta { margin-top: 2px; font-size: 13px; color: var(--pz-muted-2); }
.pz-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pz-filter {
  height: 32px;
  padding: 0 14px;
  border: 1.5px solid var(--pz-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--pz-ink-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pz-filter:hover { border-color: #d6b3e3; }
.pz-filter.active { background: var(--pz-night); border-color: var(--pz-night); color: #fff; }

html.pz-task-mail #messagelist-content { padding: 4px 10px 24px; background: transparent; }
html.pz-task-mail #messagelist {
  border-collapse: separate !important;
  border-spacing: 0 4px;
  background: transparent;
}
html.pz-task-mail #messagelist thead { display: none; }
html.pz-task-mail #messagelist tbody tr { background: transparent !important; border: 0 !important; }
html.pz-task-mail #messagelist tbody tr td { border: 0 !important; background: transparent !important; }
html.pz-task-mail #messagelist tbody tr td.flags, html.pz-task-mail #messagelist tbody tr td.selection { display: none; }
html.pz-task-mail #messagelist.withselection tbody tr td.selection { display: table-cell; vertical-align: top; padding-top: 20px; }

html.pz-task-mail #messagelist tbody tr td.subject {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar from date"
    "avatar subject subject"
    "avatar preview preview"
    "avatar meta meta";
  column-gap: 12px;
  row-gap: 3px;
  padding: 14px !important;
  border-radius: 16px;
  line-height: 1.35;
  cursor: pointer;
  color: var(--pz-ink);
}
html.pz-task-mail #messagelist tbody tr:hover td.subject { background: rgba(255, 255, 255, 0.55) !important; }
html.pz-task-mail #messagelist tbody tr.selected td.subject,
html.pz-task-mail #messagelist tbody tr.selected:hover td.subject {
  background: #fff !important;
  box-shadow: 0 6px 20px rgba(60, 20, 80, 0.08);
  outline: 1.5px solid #ead9f2;
  color: var(--pz-ink) !important;
}
html.pz-task-mail #messagelist tbody tr.focused td.subject { outline: 1.5px solid #ead9f2; }

#messagelist td.subject .pz-avatar { grid-area: avatar; align-self: start; }
html.pz-task-mail #messagelist td.subject > span:not(.pz-avatar) { height: auto !important; line-height: 1.35 !important; }
html.pz-task-mail #messagelist td.subject span.fromto {
  grid-area: from;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 !important;
  width: auto !important;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--pz-ink) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
}
html.pz-task-mail #messagelist td.subject span.fromto .adr { overflow: hidden; text-overflow: ellipsis; }
html.pz-task-mail #messagelist td.subject span.date {
  grid-area: date;
  margin: 0;
  width: auto !important;
  font-size: 12px;
  color: var(--pz-muted-2) !important;
  white-space: nowrap;
  opacity: 1;
}
html.pz-task-mail #messagelist td.subject span.size { display: none !important; }
html.pz-task-mail #messagelist td.subject span.subject {
  grid-area: subject;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 !important;
  width: auto !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--pz-ink-2);
}
html.pz-task-mail #messagelist td.subject span.subject a {
  color: inherit !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.pz-task-mail #messagelist td.subject span.msgicon { display: none; }
.pz-preview {
  grid-area: preview;
  font-size: 13px;
  color: #7a6d84;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pz-row-meta { grid-area: meta; display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 30px; }
.pz-row-meta .pz-attach { font-size: 17px; color: var(--pz-muted-2); }
.pz-star {
  width: 30px;
  height: 30px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pz-star-off);
  cursor: pointer;
}
.pz-star:hover { background: var(--pz-hover); }
.pz-star .pz-icon { font-size: 19px; }
html.pz-task-mail #messagelist tr.flagged .pz-star { color: var(--pz-star); }
html.pz-task-mail #messagelist tr.flagged .pz-star .pz-icon { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

html.pz-task-mail #messagelist tr.unread span.fromto,
html.pz-task-mail #messagelist tr.unread span.subject { font-weight: 700 !important; }
html.pz-task-mail #messagelist tr.unread span.fromto::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--pz-magenta);
}
html.pz-task-mail #messagelist tr.deleted span.subject a { text-decoration: line-through; }
html.pz-task-mail #messagelist tr.flagged td.subject span.fromto,
html.pz-task-mail #messagelist tr.flagged td.subject span.subject a { color: inherit !important; }

.pz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--pz-wash);
  color: #5b4d66;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}
.pz-chip-dot { width: 7px; height: 7px; flex: none; }
.pz-chip-large { align-self: flex-start; padding: 5px 10px; border-radius: 7px; font-size: 12px; margin-bottom: 14px; }
.pz-chip-large .pz-chip-dot { width: 8px; height: 8px; }

html.pz-task-mail #messagelist tbody tr.message-list-empty td,
html.pz-task-mail #messagelist-content .listing-info {
  padding: 60px 20px !important;
  text-align: center;
  font-family: var(--pz-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--pz-ink-2);
}

html.pz-task-mail #layout-list .pagenav { border: 0; background: transparent; }
html.pz-task-mail #layout-list .pagenav a.button { color: var(--pz-muted-2); }

/* Lecture (cadre de prévisualisation) */

html.pz-task-mail:not(.pz-action-compose) #layout-content {
  margin: 10px 10px 10px 0;
  border: 0 !important;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 var(--pz-line), 0 10px 40px rgba(60, 20, 80, 0.06);
}
@media (max-width: 768px) {
  html.pz-task-mail:not(.pz-action-compose) #layout-content { margin: 0; border-radius: 0; box-shadow: none; }
}

html.pz-task-mail #layout-content > .header { border-bottom: 1px solid var(--pz-line-3) !important; background: #fff; }
html.pz-task-mail #layout-content > .header .header-title { font-family: var(--pz-display); font-weight: 600; }
@media (min-width: 1201px) {
  html.pz-task-mail:not(.pz-action-compose) #layout-content > .header .header-title { display: none; }
}

/* Barre d'outils en icônes seules ; sous 769 px, Elastic la replie en menu. */
@media (min-width: 769px) {
  html.pz-task-mail #layout-content > .header { height: auto; min-height: 70px; padding: 14px 18px; }
  html.pz-task-mail #layout-content > .header .toolbar {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    height: 42px;
    margin: 0 auto 0 0 !important;
    justify-content: flex-start;
    border: 0 !important;
  }
  html.pz-task-mail #layout-content > .header .toolbar > li { display: flex; align-items: center; border: 0 !important; }
  html.pz-task-mail #layout-content > .header .toolbar .spacer { display: none; }
  html.pz-task-mail #layout-content > .header .toolbar a:not(.dropdown) {
    min-width: 42px;
    height: 42px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--pz-ink-3) !important;
  }
  html.pz-task-mail #layout-content > .header .toolbar a:not(.dropdown):not(.disabled):hover { background: #f4eef8; color: var(--pz-violet) !important; }
  html.pz-task-mail #layout-content > .header .toolbar a.disabled { opacity: 0.35; }
  html.pz-task-mail #layout-content > .header .toolbar a .inner {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  html.pz-task-mail #layout-content > .header .toolbar a:not(.dropdown)::before { margin: 0 !important; height: auto !important; line-height: 1 !important; }
  html.pz-task-mail #layout-content > .header .toolbar .dropbutton {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0 !important;
  }
  html.pz-task-mail #layout-content > .header .toolbar .dropbutton a.dropdown {
    width: 14px;
    height: 42px;
    margin-left: -6px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pz-muted-2);
  }
  html.pz-task-mail #layout-content > .header .toolbar .dropbutton a.dropdown::before { margin: 0 !important; font-size: 10px; }
  html.pz-task-mail #layout-content > .header .toolbar .dropbutton a.dropdown.disabled { opacity: 0.35; }
}

html.pz-task-mail #layout-content .toolbar :is(a.reply, a.reply-all, a.forward, a.delete, a.archive, a.junk, a.notjunk, a.markmessage, a.more, a.pz-label-button, a.print)::before {
  font-family: var(--pz-icons) !important;
  font-weight: 400 !important;
  font-size: 21px !important;
  font-feature-settings: "liga";
}
html.pz-task-mail #layout-content .toolbar a.reply::before { content: "reply"; }
html.pz-task-mail #layout-content .toolbar a.reply-all::before { content: "reply_all"; }
html.pz-task-mail #layout-content .toolbar a.forward::before { content: "forward"; }
html.pz-task-mail #layout-content .toolbar a.delete::before { content: "delete"; }
html.pz-task-mail #layout-content .toolbar a.archive::before { content: "archive"; }
html.pz-task-mail #layout-content .toolbar a.junk::before { content: "report"; }
html.pz-task-mail #layout-content .toolbar a.notjunk::before { content: "mark_email_read"; }
html.pz-task-mail #layout-content .toolbar a.markmessage::before { content: "mark_email_unread"; }
html.pz-task-mail #layout-content .toolbar a.more::before { content: "more_horiz"; }
html.pz-task-mail #layout-content .toolbar a.pz-label-button::before { content: "label"; }
html.pz-task-mail #layout-content .toolbar a.print::before { content: "print"; }

.pz-label-menu a, #pz-label-menu a { display: flex !important; align-items: center; gap: 10px; }
#pz-label-menu .pz-label-dot { margin: 0 5px; }
#pz-label-menu .pz-icon { font-size: 18px; color: var(--pz-muted-2); }

/* Contenu du message (page du cadre) */

body.task-mail.action-preview, body.task-mail.action-show { background: #fff; }
body.action-preview #layout-content .content, body.action-show #layout-content .content {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 48px) 120px !important;
}

#message-header { display: flex; flex-direction: column; padding: 0 0 26px; border: 0 !important; background: transparent; }
#message-header h2.subject {
  margin: 0 0 22px;
  padding: 0;
  font-family: var(--pz-display) !important;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--pz-ink);
  text-wrap: pretty;
}
#message-header h2.subject::before, #message-header h2.subject a.extwin { display: none !important; }
#message-header > .header { display: block; padding: 0; }
#message-header > .header > img.contactphoto { display: none; }
#message-header .header-content { margin: 0; }
#message-header .header-summary { display: none; }
#message-header .header-links { margin-top: 8px; font-size: 12.5px; }
#message-header .header-links a { color: var(--pz-muted-2); }
#message-header .header-links a:hover { color: var(--pz-violet); }
#message-header table.header-headers { margin-top: 10px; font-size: 13px; }

.pz-from { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pz-from-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.pz-from-name { font-size: 15.5px; font-weight: 600; color: var(--pz-ink); }
.pz-from-email, .pz-from-date { font-size: 13px; color: var(--pz-muted-2); }

#message-content { display: flex; flex-direction: column; gap: 26px; }
#message-content .rightcol { order: 1; margin: 0; padding: 0; }
#message-content .leftcol { order: 2; margin: 0; padding: 0; width: auto !important; float: none; border: 0 !important; }

#messagebody, #messagebody .message-part, #messagebody div.pre, #messagebody pre {
  font-family: var(--pz-sans) !important;
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  color: var(--pz-ink-2);
}
#messagebody .message-part { padding: 0; border: 0; }

.pz-attach-title { margin-bottom: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pz-muted-2); }
#attachment-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0 !important;
}
#attachment-list li {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 12px;
  border: 1.5px solid var(--pz-line) !important;
  border-radius: 14px;
  background: #fff;
  float: none !important;
  width: auto !important;
}
#attachment-list li:hover { border-color: #d6b3e3 !important; background: #fcfafd; }
#attachment-list li a.filename {
  flex: 1;
  min-width: 0;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas: "icon name" "icon size";
  column-gap: 12px;
  align-items: center;
  padding: 0 !important;
  color: var(--pz-ink) !important;
  text-decoration: none !important;
}
#attachment-list li::before, #attachment-list li a.filename::before { display: none !important; }
#attachment-list li a.filename { height: auto !important; line-height: 1.35; background: none !important; }
.pz-attach-icon {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--pz-wash-2);
  color: var(--pz-violet);
}
#attachment-list .attachment-name { grid-area: name; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#attachment-list .attachment-size { grid-area: size; font-size: 12px; color: var(--pz-muted-2); }
#attachment-list li a.dropdown { position: static !important; color: var(--pz-muted-2); }
#attachment-list li a.dropdown::before {
  font-family: var(--pz-icons) !important;
  font-weight: 400 !important;
  font-size: 20px;
  font-feature-settings: "liga";
  content: "download" !important;
}

.pz-quick-reply {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
  padding: 14px;
  border: 1.5px solid var(--pz-line);
  border-radius: 18px;
  background: #fbf9fc;
}
.pz-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-quick-chips button {
  padding: 7px 12px;
  border: 1.5px solid #e2d4ea;
  border-radius: 999px;
  background: #fff;
  color: var(--pz-violet-dark);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pz-quick-chips button:hover { background: var(--pz-wash-2); border-color: #d6b3e3; }
.pz-quick-reply textarea {
  min-height: 70px;
  padding: 0;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent;
  resize: vertical;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pz-ink);
}
.pz-quick-actions { display: flex; justify-content: flex-end; }
.pz-button-primary {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--pz-violet);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.pz-button-primary:hover { background: var(--pz-violet-hover); }
.pz-button-primary .pz-icon { font-size: 18px; }

/* Rédaction : fenêtre « Nouveau message » de la maquette, en pleine colonne */

html.pz-action-compose body, html.pz-action-compose #layout { background: var(--pz-bg) !important; }

html.pz-action-compose #layout-content {
  border: 0 !important;
  background: #fff;
}
@media (min-width: 769px) {
  html.pz-action-compose #layout-content {
    margin: 10px 0 10px 10px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--pz-line), 0 24px 70px rgba(27, 15, 36, 0.12);
  }
}

html.pz-action-compose #layout-content > .header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px 10px 20px !important;
  border: 0 !important;
  background: var(--pz-night) !important;
}
html.pz-action-compose #layout-content > .header .header-title {
  display: block !important;
  flex: 1;
  order: -1;
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--pz-display) !important;
  font-weight: 600;
  font-size: 15px;
  text-align: left !important;
  position: static !important;
  width: auto !important;
  padding: 0 !important;
}
html.pz-action-compose #layout-content > .header .toolbar { margin: 0 !important; }
html.pz-action-compose #layout-content > .header .toolbar a:not(.dropdown) { color: var(--pz-night-text) !important; }
html.pz-action-compose #layout-content > .header .toolbar a:not(.dropdown):not(.disabled):hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }
html.pz-action-compose #layout-content > .header a.button { color: var(--pz-night-text); }
.pz-compose-close {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pz-night-text);
  cursor: pointer;
}
.pz-compose-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.pz-compose-close .pz-icon { font-size: 20px; }
@media (max-width: 768px) {
  .pz-compose-close { display: none; }
}

html.pz-action-compose #compose-content { background: #fff; padding: 0 !important; }
html.pz-action-compose #compose-content > form { padding: 0 !important; }
html.pz-action-compose #compose-headers { padding: 0 !important; margin: 0 !important; }
html.pz-action-compose #compose-headers .form-group.row {
  min-height: 50px;
  margin: 0 !important;
  padding: 0 20px;
  align-items: center;
  border-bottom: 1px solid var(--pz-line-3);
}
html.pz-action-compose #compose-headers .form-group.row > label,
html.pz-action-compose #compose-headers .form-group.row > .col-form-label {
  flex: 0 0 64px;
  max-width: 64px;
  padding: 0;
  font-size: 13.5px;
  color: var(--pz-muted-2);
}
html.pz-action-compose #compose-headers .form-group.row > div { flex: 1; max-width: none; padding: 0; }
html.pz-action-compose #compose-headers .form-control,
html.pz-action-compose #compose-headers .custom-select,
html.pz-action-compose #compose-headers .recipient-input,
html.pz-action-compose #compose-headers .input-group > .form-control {
  border: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  padding-left: 0;
  font-size: 14.5px;
  color: var(--pz-ink);
}
html.pz-action-compose #compose-headers .input-group-append .btn,
html.pz-action-compose #compose-headers .input-group-append a {
  border: 0 !important;
  background: transparent !important;
  color: var(--pz-muted) !important;
}
html.pz-action-compose #compose-headers .recipient-input li.recipient {
  border: 0;
  border-radius: 8px;
  background: var(--pz-wash);
  color: var(--pz-violet-dark);
}

html.pz-action-compose #composebodycontainer { margin: 0 !important; padding: 0 !important; }
html.pz-action-compose #composebodycontainer .tox-tinymce,
html.pz-action-compose #composebody {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html.pz-action-compose #composebody { padding: 16px 20px; font-size: 15px; line-height: 1.6; }
html.pz-action-compose .tox .tox-toolbar, html.pz-action-compose .tox .tox-toolbar__primary,
html.pz-action-compose .tox .tox-toolbar-overlord, html.pz-action-compose .tox .tox-editor-header {
  background: #fbf9fc !important;
  border-bottom: 1px solid var(--pz-line-3) !important;
}

html.pz-action-compose #compose-content .formbuttons {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 16px 20px !important;
  border-top: 1px dashed var(--pz-line);
  background: #fff;
}
html.pz-action-compose #compose-content .formbuttons button.send {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 12px !important;
  font-size: 14.5px;
}
html.pz-action-compose #compose-content .formbuttons .float-right { margin-left: auto; }
html.pz-action-compose #compose-content .formbuttons a.extwin { color: var(--pz-muted-2) !important; font-size: 13px; }

/* Volet des options et pièces jointes */

html.pz-action-compose #layout-sidebar {
  border: 0 !important;
  background: var(--pz-bg) !important;
}
html.pz-action-compose #layout-sidebar > .header { border: 0 !important; background: transparent !important; }
html.pz-action-compose #layout-sidebar > .header .header-title { font-family: var(--pz-display); font-weight: 600; font-size: 15px; color: var(--pz-ink); }
html.pz-action-compose #compose-attachments {
  margin: 0 14px 18px !important;
  border: 1.5px dashed var(--pz-line-2) !important;
  border-radius: 18px;
  background: #fff;
}
html.pz-action-compose #compose-attachments .hint { color: var(--pz-muted-2); font-size: 13px; }
html.pz-action-compose #compose-attachments button.attach {
  border: 1.5px solid #e2d4ea !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--pz-violet) !important;
  font-weight: 600;
}
html.pz-action-compose #compose-attachments button.attach:hover { background: var(--pz-wash-2) !important; }
html.pz-action-compose #compose-attachments::after { color: var(--pz-line-2) !important; }
html.pz-action-compose #compose-attachments .attachmentslist li { border-radius: 10px; }
html.pz-action-compose #compose-options { padding: 0 14px; }
html.pz-action-compose #compose-options label { color: var(--pz-ink-3); font-size: 13.5px; }
html.pz-action-compose #compose-options .custom-select { border-radius: 10px; border-color: var(--pz-line-2); }

/* Mobile : navigation du bas et bouton de rédaction */

.pz-bottom-nav, .pz-fab { display: none; }

@media (max-width: 768px) {
  html.pz-task-mail #layout-list, html.pz-task-mail:not(.pz-action-compose) #layout-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  html.pz-task-mail:not(.pz-action-compose) #layout-sidebar > .header { position: static; display: flex; padding: 0 0 6px; }

  html.pz-task-mail #messagelist-header .header-title {
    font-size: 0 !important;
    width: 150px;
    height: 34px;
    background: url("assets/logo.png") left center / auto 30px no-repeat;
  }
  html.pz-task-mail #messagelist-content { padding-bottom: 110px; }

  .pz-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 20px;
    background: var(--pz-night);
    box-shadow: 0 12px 30px rgba(27, 15, 36, 0.28);
  }
  .pz-bottom-nav button {
    width: 64px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pz-night-muted);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
  }
  .pz-bottom-nav button .pz-icon { font-size: 22px; }
  .pz-bottom-nav button.active { color: var(--pz-orchid); }

  .pz-fab {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 31;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--pz-magenta);
    color: #fff;
    box-shadow: 0 10px 24px rgba(185, 22, 216, 0.4);
    cursor: pointer;
  }
  .pz-fab .pz-icon { font-size: 26px; }

  html:has(#layout-content:not(.hidden)) .pz-bottom-nav,
  html:has(#layout-content:not(.hidden)) .pz-fab,
  html:has(#layout-sidebar:not(.hidden)) .pz-fab,
  html.pz-action-compose .pz-bottom-nav,
  html.pz-action-compose .pz-fab { display: none; }

  #messagestack { bottom: 96px; }
}
