/**
 * Consysmail — Gmail-inspired theme
 * Loaded after styles.min.css
 */

/* ══════════════════════════════════════
   FONT — Inter globally
══════════════════════════════════════ */
body, button, input, select, textarea,
.ui-dialog, .popupmenu, .dropdown-menu {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}


/* ══════════════════════════════════════
   TOP HEADER BAR
══════════════════════════════════════ */
#cm-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: #20808d;
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 8px 0 16px;
  gap: 8px;
  z-index: 1000;
  box-shadow: none;
}

/* Hide on login page */
body.task-login #cm-topbar { display: none !important; }

/* Left — logo + brand name */
.cm-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 200px;
  text-decoration: none;
}
.cm-topbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.cm-topbar-brand {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.cm-topbar-brand strong {
  color: #fff;
  font-weight: 700;
}

/* Centre — search bar container */
.cm-topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
}

/* Search bar wrapper once moved into topbar */
#cm-topbar-center .searchbar {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,0.2) !important;
  border: none !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 8px 0 16px !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  position: relative !important;
}
#cm-topbar-center .searchbar:focus-within {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}
#cm-topbar-center .searchbar:focus-within input[type="text"] { color: #1f1f1f !important; }
#cm-topbar-center .searchbar:focus-within a.button,
#cm-topbar-center .searchbar:focus-within button { color: #444746 !important; }
#cm-topbar-center .searchbar form {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  height: 100% !important;
}
#cm-topbar-center .searchbar input[type="text"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 0.97rem !important;
  color: rgba(255,255,255,0.95) !important;
  flex: 1 !important;
  height: 100% !important;
  padding: 0 8px !important;
  min-width: 0 !important;
}
#cm-topbar-center .searchbar input::placeholder { color: rgba(255,255,255,0.65) !important; }
#cm-topbar-center .searchbar a.button,
#cm-topbar-center .searchbar button {
  border-radius: 50% !important;
  background: transparent !important;
  color: rgba(255,255,255,0.85) !important;
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#cm-topbar-center .searchbar a.button:hover,
#cm-topbar-center .searchbar button:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* Advanced search options panel — drop below topbar */
#cm-topbar-center #searchmenu {
  position: fixed !important;
  top: 64px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 520px !important;
  max-width: 90vw !important;
  background: #fff !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
  z-index: 999 !important;
  border: 1px solid #e3e3e3 !important;
  border-top: none !important;
}

/* Hide search on non-mail pages */
body:not(.task-mail) #cm-topbar-center { visibility: hidden; }

/* Right — avatar + buttons */
.cm-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cm-topbar-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  transition: background 0.15s;
  flex-shrink: 0;
}
.cm-topbar-btn:hover { background: rgba(255,255,255,0.15) !important; color: #fff !important; }
.cm-topbar-btn svg { width: 20px; height: 20px; stroke: currentColor; pointer-events: none; }
.cm-topbar-logout svg { stroke: rgba(255,255,255,0.85); }
.cm-topbar-logout:hover { background: rgba(255,255,255,0.15) !important; }

/* Avatar circle */
.cm-topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #20808d !important;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
  transition: box-shadow 0.15s;
  position: relative;
}
.cm-topbar-avatar:hover { box-shadow: 0 0 0 3px #d3e3fd; }

/* ── Avatar dropdown ── */
.cm-avatar-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  min-width: 280px;
  z-index: 1100;
  overflow: hidden;
  animation: cm-dropdown-in 0.12s ease;
}
.cm-avatar-menu.open { display: block; }

@keyframes cm-dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cm-avatar-menu-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
}
.cm-avatar-menu-avatar-lg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #20808d;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.cm-avatar-menu-email {
  font-size: 0.9rem;
  color: #444746;
  font-weight: 500;
  word-break: break-all;
}
.cm-avatar-menu-divider {
  height: 1px;
  background: #e3e3e3;
  margin: 4px 0;
}
.cm-avatar-menu-item {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  font-size: 0.9rem;
  color: #1f1f1f !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.12s;
}
.cm-avatar-menu-item:hover { background: #f1f3f4 !important; }
.cm-avatar-menu-item svg {
  width: 18px; height: 18px;
  stroke: #444746;
  flex-shrink: 0;
}
.cm-avatar-menu-logout { color: #c5221f !important; }
.cm-avatar-menu-logout svg { stroke: #c5221f; }
.cm-avatar-menu-logout:hover { background: #fce8e6 !important; }

/* Hide sidebar header bar on desktop (only back-button needed on mobile) */
#layout-sidebar .header {
  background-color: #20808d !important;
  border-bottom: none !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}
@media (max-width: 768px) {
  #layout-sidebar .header {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
    padding: 0 0.25em !important;
  }
}


/* ══════════════════════════════════════
   PUSH LAYOUT DOWN BELOW TOPBAR
══════════════════════════════════════ */
body:not(.task-login) #layout {
  margin-top: 64px !important;
  height: calc(100vh - 64px) !important;
}
body:not(.task-login) html,
body:not(.task-login) {
  height: 100% !important;
  overflow: hidden !important;
}


/* ══════════════════════════════════════
   LAYOUT — clean white shell
══════════════════════════════════════ */
body { background: #20808d !important; }

#layout,
#layout-sidebar,
#layout-list,
#layout-content {
  border: none !important;
  box-shadow: none !important;
}


/* ══════════════════════════════════════
   TASK MENU — sleek icon-only strip on the RIGHT
══════════════════════════════════════ */
#layout-menu {
  order: 999 !important;
  width: 44px !important;
  min-width: 44px !important;
  background-color: #20808d !important;
  border-left: 1px solid rgba(255,255,255,0.15) !important;
  border-right: none !important;
}
#layout-menu .popover-header {
  background-color: #20808d !important;
}
#taskmenu .special-buttons {
  background-color: #20808d !important;
}

/* Hide text labels at ALL screen sizes */
#taskmenu span.inner {
  display: none !important;
}

/* Icon buttons — target all <a> elements (they don't carry .button class) */
#taskmenu a {
  position: relative !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  margin: 2px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #888 !important;
  transition: color 0.15s !important;
  padding: 0 !important;
  background: none !important;
  font-size: 1.2rem !important;
}
#taskmenu a::before {
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  line-height: normal !important;
}

/* White icons, subtle hover */
#taskmenu a { color: rgba(255,255,255,0.75) !important; }
#taskmenu a.selected,
#taskmenu a.selected:hover,
#taskmenu a:hover,
#taskmenu a:focus {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* Logout */
#taskmenu a.logout       { color: rgba(255,255,255,0.55) !important; }
#taskmenu a.logout:hover,
#taskmenu a.logout:focus { background: rgba(255,255,255,0.15) !important; color: #fff !important; }

/* Tooltip — floats LEFT since strip is on the right edge */
#taskmenu a::after {
  content: attr(title) !important;
  position: absolute !important;
  right: calc(100% + 10px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #2d2d2d !important;
  color: #fff !important;
  font-size: 0.73rem !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.15s 0.4s !important;
  z-index: 9999 !important;
  font-family: 'Inter', sans-serif !important;
}
#taskmenu a:hover::after { opacity: 1 !important; }

.floating-action-buttons a.button.compose {
  background-color: #c2e7ff !important;
  color: #001d35 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}


/* ══════════════════════════════════════
   SIDEBAR — folder list, Gmail-style on teal
══════════════════════════════════════ */
#layout-sidebar {
  background-color: #20808d !important;
  border-right: none !important;
}
#layout-sidebar .header {
  background-color: #20808d !important;
  border-bottom: none !important;
}
/* Remove the white footer patch at the bottom of the folder list */
#layout-sidebar .footer {
  background: transparent !important;
  border-top: none !important;
  color: rgba(255,255,255,0.7) !important;
}
#layout-sidebar .footer .quota-widget,
#layout-sidebar .footer .count { color: rgba(255,255,255,0.7) !important; }
/* Folder rows — white text, no separating lines */
#mailboxlist li,
#mailboxlist li > a,
#mailboxlist li > div {
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
}
#mailboxlist li > a,
#mailboxlist li > div {
  border-radius: 0 50px 50px 0 !important;
  margin-right: 12px !important;
  padding-left: 16px !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}
#mailboxlist li > a:hover,
#mailboxlist li > div:hover {
  background-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
#mailboxlist li.selected > a,
#mailboxlist li.selected > div {
  background-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
#mailboxlist .unreadcount {
  background: none !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
}


/* ══════════════════════════════════════
   HEADERS — white, thin separator
══════════════════════════════════════ */
#layout-list .header,
#layout-content .header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f0f0f0 !important;
  box-shadow: none !important;
}




/* ══════════════════════════════════════
   MESSAGE LIST — Gmail typography
══════════════════════════════════════ */
#messagelist-content,
#layout-list { background-color: #ffffff !important; }

table.messagelist tr {
  border-bottom: 1px solid #f1f3f4 !important;
}
table.messagelist tr:hover td {
  background-color: #f2f6fc !important;
}
table.messagelist tr.selected td {
  background-color: #d3e3fd !important;
  color: #155e66 !important;
}
table.messagelist tr.unread td.sender,
table.messagelist tr.unread td.subject {
  font-weight: 700 !important;
  color: #1f1f1f !important;
}
table.messagelist tr:not(.unread) td.sender,
table.messagelist tr:not(.unread) td.subject {
  font-weight: 400 !important;
  color: #444746 !important;
}
table.messagelist td.date {
  color: #444746 !important;
  font-size: 0.8rem !important;
}
table.messagelist .unreadcount,
table.messagelist .badge {
  background-color: #20808d !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
}


/* ══════════════════════════════════════
   ACCENT — Gmail blue
══════════════════════════════════════ */
.listing li .focus-indicator,
.listing tr .focus-indicator { background-color: #20808d !important; }

.btn-primary,
button.btn.btn-primary,
a.btn.btn-primary {
  background-color: #20808d !important;
  border-color: #20808d !important;
  color: #fff !important;
  border-radius: 20px !important;
}
.btn-primary:hover {
  background-color: #155e66 !important;
  border-color: #155e66 !important;
}

.menu a:hover, .menu a:focus,
.popupmenu li a:hover, .popupmenu li a:focus {
  background-color: #e9eef6 !important;
  color: #1f1f1f !important;
  border-radius: 8px !important;
}
.menu a:hover::before,
.popupmenu li a:hover::before { color: #1f1f1f !important; }

a { color: #20808d !important; }
a:hover { color: #155e66 !important; }

input:focus, select:focus, textarea:focus {
  border-color: #20808d !important;
  box-shadow: 0 0 0 2px rgba(32,128,141,0.2) !important;
  outline: none !important;
}

#rcmdraglayer {
  background-color: #fff !important;
  color: #1f1f1f !important;
  border: 1px solid #e3e3e3 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.toolbar a.button, .toolbar button {
  border-radius: 50% !important;
  color: #444746 !important;
}
.toolbar a.button:hover, .toolbar button:hover {
  background-color: #e9eef6 !important;
  color: #1f1f1f !important;
}

.ui-dialog {
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
  border: none !important;
}


/* ══════════════════════════════════════
   PREVIEW CARD — header layout + navigation + toggle
══════════════════════════════════════ */

/* Override compiled header — it has overflow:hidden, white-space:nowrap,
   justify-content:center which all fight our layout */
#layout-content .header {
  justify-content: flex-start !important;
  align-items: center !important;
  overflow: visible !important;
  white-space: normal !important;
  line-height: normal !important;
}

/* Remove the -20rem negative margin trick on the title */
#layout-content .header .header-title {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* Default (split view): toolbar flows normally, left-aligned */
#layout-content .header #mailtoolbar {
  position: static !important;
  transform: none !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* Full-width message view: toolbar spans header, actions centred, nav pulled right */
body.cm-preview-hidden.cm-viewing-message #layout-content .header #mailtoolbar {
  position: relative !important;
  transform: none !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
}
body.cm-preview-hidden.cm-viewing-message #layout-content .header #cm-preview-nav {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}

/* Collapse spacer so action buttons group together */
#layout-content .header #mailtoolbar span.spacer {
  flex: 0 !important;
  width: 8px !important;
}

/* Nav pinned to right via auto left margin */
#layout-content .header #cm-preview-nav {
  position: static !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Count text */
#cm-preview-nav .cm-nav-count {
  font-size: 0.75rem !important;
  color: #5f6368 !important;
  white-space: nowrap !important;
  padding: 0 4px 0 8px !important;
  font-weight: 500 !important;
}

/* Nav buttons — small circles */
.cm-nav-btn {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #5f6368 !important;
  transition: background 0.15s !important;
  padding: 0 !important;
  text-decoration: none !important;
}
.cm-nav-btn::before {
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  font-size: 0.85em !important;
  line-height: 1 !important;
}
.cm-nav-btn .inner   { display: none !important; }
.cm-nav-btn:hover    { background: #e9eef6 !important; color: #1f1f1f !important; }
.cm-nav-btn.disabled { color: #d1d5db !important; pointer-events: none !important; }

/* ── Split-pane toggle button ── */
.cm-split-toggle {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: none !important;
  background: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #5f6368 !important;
  margin-left: 2px !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
  transition: background 0.15s, color 0.15s !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
.cm-split-toggle:hover {
  background: #e9eef6 !important;
  color: #1f1f1f !important;
}
.cm-split-toggle svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  pointer-events: none !important;
  display: block !important;
}

/* ══════════════════════════════════════
   SINGLE-CARD SWAP (preview collapsed)
══════════════════════════════════════ */

/* Toggle button in the list header — only visible when collapsed */
.cm-split-toggle-list { display: none !important; }
body.cm-preview-hidden #messagelist-header .cm-split-toggle-list {
  display: flex !important;
  margin-left: auto !important;
  order: 999 !important;
}
/* Hide list toggle while viewing a message (content header has its own) */
body.cm-preview-hidden.cm-viewing-message #messagelist-header .cm-split-toggle-list {
  display: none !important;
}

/* Keep the folder sidebar fixed so it never grows to squeeze the card */
body.cm-preview-hidden #layout-sidebar { flex: 0 0 auto !important; }

/* Collapsed: list fills card, content hidden */
body.cm-preview-hidden #layout-content { display: none !important; }
body.cm-preview-hidden #layout-list {
  width: auto !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  border-radius: 16px !important;
  margin: 8px 6px 8px 6px !important;
}

/* Viewing a message: content fills card, list hidden */
body.cm-preview-hidden.cm-viewing-message #layout-list { display: none !important; }
body.cm-preview-hidden.cm-viewing-message #layout-content {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  border: none !important;
  border-radius: 16px !important;
  margin: 8px 6px 8px 6px !important;
}
body.cm-preview-hidden.cm-viewing-message #layout-content .iframe-wrapper,
body.cm-preview-hidden.cm-viewing-message #messagecontframe {
  width: 100% !important;
}

/* Custom back button — hidden by default, shown only when viewing */
.cm-msg-back { display: none; }
body.cm-preview-hidden.cm-viewing-message #cm-msg-back {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background: none !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  color: #444746 !important;
  flex-shrink: 0 !important;
  margin-right: 4px !important;
}
body.cm-preview-hidden.cm-viewing-message #cm-msg-back:hover { background: #e9eef6 !important; }
.cm-msg-back svg { width: 20px !important; height: 20px !important; stroke: currentColor !important; pointer-events: none !important; }



/* ══════════════════════════════════════
   COMPOSE BUTTON — sidebar pill (Gmail style)
══════════════════════════════════════ */
a.cm-sidebar-compose {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 16px 12px 8px !important;
  padding: 14px 22px !important;
  background: #fff !important;
  border-radius: 16px !important;
  color: #155e66 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  transition: background 0.15s, box-shadow 0.15s !important;
  white-space: nowrap !important;
}
a.cm-sidebar-compose:hover {
  background: rgba(255,255,255,0.9) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25) !important;
}
a.cm-sidebar-compose::before { color: #155e66 !important; }
.cm-sidebar-compose-inner { color: #155e66 !important; }
/* Pencil icon via ::before (uses Roundcube's icon font) */
a.cm-sidebar-compose::before {
  font-size: 1.1em !important;
  width: auto !important;
  height: auto !important;
  color: #001d35 !important;
  margin: 0 !important;
}
.cm-sidebar-compose-inner {
  color: #001d35 !important;
}


/* ══════════════════════════════════════
   SETTINGS PANEL — inline card (Gmail style)
══════════════════════════════════════ */

/* Overlay not used */
.cm-settings-overlay { display: none !important; }

/* Settings panel — fixed below topbar, above icon strip, zero-width when closed */
#cm-settings-panel {
  position: fixed !important;
  top: 72px !important;        /* 64px topbar + 8px gap */
  right: 50px !important;      /* 44px icon strip + 6px gap */
  bottom: 8px !important;
  width: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 500 !important;
  transition:
    width     0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s !important;
}
#cm-settings-panel.open {
  width: 360px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04) !important;
}

/* Content card shrinks to give settings panel its space */
#layout-content {
  transition: margin-right 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
body.cm-settings-open #layout-content {
  margin-right: 372px !important;  /* 360px panel + 6px left gap + 6px right gap */
}

.cm-settings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 48px;
  min-height: 48px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #fff;
  white-space: nowrap;
  z-index: 1;
}
.cm-settings-panel-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.cm-settings-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #444746;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.cm-settings-close:hover {
  background: #fce8e6;
  border-color: #c5221f;
  color: #c5221f;
}
.cm-settings-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; }

.cm-settings-iframe {
  flex: 1;
  border: none;
  width: 100%;
  min-width: 360px; /* prevent iframe collapsing during animation */
}


/* ══════════════════════════════════════
   MESSAGE LIST + PREVIEW — card style
══════════════════════════════════════ */
#layout-list {
  border-radius: 16px 0 0 16px !important;
  margin: 8px 0 8px 6px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04) !important;
}
#layout-content {
  border-radius: 0 16px 16px 0 !important;
  margin: 8px 6px 8px 0 !important;  /* right gap before the icon strip */
  overflow: hidden !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04) !important;
}
/* Keep layout panels' height correct after margin */
body:not(.task-login) #layout {
  height: calc(100vh - 64px) !important;
  align-items: stretch !important;
}
